var ede = Object.defineProperty
  , tde = Object.defineProperties;
var nde = Object.getOwnPropertyDescriptors;
var vy = Object.getOwnPropertySymbols;
var uR = Object.prototype.hasOwnProperty
  , cR = Object.prototype.propertyIsEnumerable;
var fR = Math.pow
  , sR = (t,e,n)=>e in t ? ede(t, e, {
    enumerable: !0,
    configurable: !0,
    writable: !0,
    value: n
}) : t[e] = n
  , on = (t,e)=>{
    for (var n in e || (e = {}))
        uR.call(e, n) && sR(t, n, e[n]);
    if (vy)
        for (var n of vy(e))
            cR.call(e, n) && sR(t, n, e[n]);
    return t
}
  , vi = (t,e)=>tde(t, nde(e));
var j2 = (t,e)=>{
    var n = {};
    for (var r in t)
        uR.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
    if (t != null && vy)
        for (var r of vy(t))
            e.indexOf(r) < 0 && cR.call(t, r) && (n[r] = t[r]);
    return n
}
;
var Uh = (t,e,n)=>new Promise((r,a)=>{
    var i = s=>{
        try {
            l(n.next(s))
        } catch (u) {
            a(u)
        }
    }
      , o = s=>{
        try {
            l(n.throw(s))
        } catch (u) {
            a(u)
        }
    }
      , l = s=>s.done ? r(s.value) : Promise.resolve(s.value).then(i, o);
    l((n = n.apply(t, e)).next())
}
);
function Fk(t, e) {
    const n = Object.create(null)
      , r = t.split(",");
    for (let a = 0; a < r.length; a++)
        n[r[a]] = !0;
    return e ? a=>!!n[a.toLowerCase()] : a=>!!n[a]
}
const Yn = {}
  , ov = []
  , fo = ()=>{}
  , rde = ()=>!1
  , ade = /^on[^a-z]/
  , gC = t=>ade.test(t)
  , Bk = t=>t.startsWith("onUpdate:")
  , yr = Object.assign
  , Vk = (t,e)=>{
    const n = t.indexOf(e);
    n > -1 && t.splice(n, 1)
}
  , ide = Object.prototype.hasOwnProperty
  , mn = (t,e)=>ide.call(t, e)
  , Ft = Array.isArray
  , lv = t=>mC(t) === "[object Map]"
  , IY = t=>mC(t) === "[object Set]"
  , Xt = t=>typeof t == "function"
  , rr = t=>typeof t == "string"
  , zk = t=>typeof t == "symbol"
  , Gn = t=>t !== null && typeof t == "object"
  , kY = t=>Gn(t) && Xt(t.then) && Xt(t.catch)
  , OY = Object.prototype.toString
  , mC = t=>OY.call(t)
  , ode = t=>mC(t).slice(8, -1)
  , DY = t=>mC(t) === "[object Object]"
  , Hk = t=>rr(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t
  , ob = Fk(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted")
  , yC = t=>{
    const e = Object.create(null);
    return n=>e[n] || (e[n] = t(n))
}
  , lde = /-(\w)/g
  , Va = yC(t=>t.replace(lde, (e,n)=>n ? n.toUpperCase() : ""))
  , sde = /\B([A-Z])/g
  , ih = yC(t=>t.replace(sde, "-$1").toLowerCase())
  , bC = yC(t=>t.charAt(0).toUpperCase() + t.slice(1))
  , lb = yC(t=>t ? `on${bC(t)}` : "")
  , qg = (t,e)=>!Object.is(t, e)
  , W2 = (t,e)=>{
    for (let n = 0; n < t.length; n++)
        t[n](e)
}
  , yx = (t,e,n)=>{
    Object.defineProperty(t, e, {
        configurable: !0,
        enumerable: !1,
        value: n
    })
}
  , ude = t=>{
    const e = parseFloat(t);
    return isNaN(e) ? t : e
}
  , cde = t=>{
    const e = rr(t) ? Number(t) : NaN;
    return isNaN(e) ? t : e
}
;
let dR;
const M3 = ()=>dR || (dR = typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
function sm(t) {
    if (Ft(t)) {
        const e = {};
        for (let n = 0; n < t.length; n++) {
            const r = t[n]
              , a = rr(r) ? hde(r) : sm(r);
            if (a)
                for (const i in a)
                    e[i] = a[i]
        }
        return e
    } else {
        if (rr(t))
            return t;
        if (Gn(t))
            return t
    }
}
const fde = /;(?![^(]*\))/g
  , dde = /:([^]+)/
  , vde = /\/\*[^]*?\*\//g;
function hde(t) {
    const e = {};
    return t.replace(vde, "").split(fde).forEach(n=>{
        if (n) {
            const r = n.split(dde);
            r.length > 1 && (e[r[0].trim()] = r[1].trim())
        }
    }
    ),
    e
}
function Pv(t) {
    let e = "";
    if (rr(t))
        e = t;
    else if (Ft(t))
        for (let n = 0; n < t.length; n++) {
            const r = Pv(t[n]);
            r && (e += r + " ")
        }
    else if (Gn(t))
        for (const n in t)
            t[n] && (e += n + " ");
    return e.trim()
}
function pde(t) {
    if (!t)
        return null;
    let {class: e, style: n} = t;
    return e && !rr(e) && (t.class = Pv(e)),
    n && (t.style = sm(n)),
    t
}
const gde = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly"
  , mde = Fk(gde);
function EY(t) {
    return !!t || t === ""
}
const spt = t=>rr(t) ? t : t == null ? "" : Ft(t) || Gn(t) && (t.toString === OY || !Xt(t.toString)) ? JSON.stringify(t, LY, 2) : String(t)
  , LY = (t,e)=>e && e.__v_isRef ? LY(t, e.value) : lv(e) ? {
    [`Map(${e.size})`]: [...e.entries()].reduce((n,[r,a])=>(n[`${r} =>`] = a,
    n), {})
} : IY(e) ? {
    [`Set(${e.size})`]: [...e.values()]
} : Gn(e) && !Ft(e) && !DY(e) ? String(e) : e;
let Ja;
class RY {
    constructor(e=!1) {
        this.detached = e,
        this._active = !0,
        this.effects = [],
        this.cleanups = [],
        this.parent = Ja,
        !e && Ja && (this.index = (Ja.scopes || (Ja.scopes = [])).push(this) - 1)
    }
    get active() {
        return this._active
    }
    run(e) {
        if (this._active) {
            const n = Ja;
            try {
                return Ja = this,
                e()
            } finally {
                Ja = n
            }
        }
    }
    on() {
        Ja = this
    }
    off() {
        Ja = this.parent
    }
    stop(e) {
        if (this._active) {
            let n, r;
            for (n = 0,
            r = this.effects.length; n < r; n++)
                this.effects[n].stop();
            for (n = 0,
            r = this.cleanups.length; n < r; n++)
                this.cleanups[n]();
            if (this.scopes)
                for (n = 0,
                r = this.scopes.length; n < r; n++)
                    this.scopes[n].stop(!0);
            if (!this.detached && this.parent && !e) {
                const a = this.parent.scopes.pop();
                a && a !== this && (this.parent.scopes[this.index] = a,
                a.index = this.index)
            }
            this.parent = void 0,
            this._active = !1
        }
    }
}
function jk(t) {
    return new RY(t)
}
function yde(t, e=Ja) {
    e && e.active && e.effects.push(t)
}
function xC() {
    return Ja
}
function Wk(t) {
    Ja && Ja.cleanups.push(t)
}
const Gk = t=>{
    const e = new Set(t);
    return e.w = 0,
    e.n = 0,
    e
}
  , NY = t=>(t.w & Tu) > 0
  , $Y = t=>(t.n & Tu) > 0
  , bde = ({deps: t})=>{
    if (t.length)
        for (let e = 0; e < t.length; e++)
            t[e].w |= Tu
}
  , xde = t=>{
    const {deps: e} = t;
    if (e.length) {
        let n = 0;
        for (let r = 0; r < e.length; r++) {
            const a = e[r];
            NY(a) && !$Y(a) ? a.delete(t) : e[n++] = a,
            a.w &= ~Tu,
            a.n &= ~Tu
        }
        e.length = n
    }
}
  , bx = new WeakMap;
let Fp = 0
  , Tu = 1;
const A3 = 30;
let ao;
const cf = Symbol("")
  , I3 = Symbol("");
class Kk {
    constructor(e, n=null, r) {
        this.fn = e,
        this.scheduler = n,
        this.active = !0,
        this.deps = [],
        this.parent = void 0,
        yde(this, r)
    }
    run() {
        if (!this.active)
            return this.fn();
        let e = ao
          , n = fu;
        for (; e; ) {
            if (e === this)
                return;
            e = e.parent
        }
        try {
            return this.parent = ao,
            ao = this,
            fu = !0,
            Tu = 1 << ++Fp,
            Fp <= A3 ? bde(this) : vR(this),
            this.fn()
        } finally {
            Fp <= A3 && xde(this),
            Tu = 1 << --Fp,
            ao = this.parent,
            fu = n,
            this.parent = void 0,
            this.deferStop && this.stop()
        }
    }
    stop() {
        ao === this ? this.deferStop = !0 : this.active && (vR(this),
        this.onStop && this.onStop(),
        this.active = !1)
    }
}
function vR(t) {
    const {deps: e} = t;
    if (e.length) {
        for (let n = 0; n < e.length; n++)
            e[n].delete(t);
        e.length = 0
    }
}
let fu = !0;
const FY = [];
function oh() {
    FY.push(fu),
    fu = !1
}
function lh() {
    const t = FY.pop();
    fu = t === void 0 ? !0 : t
}
function za(t, e, n) {
    if (fu && ao) {
        let r = bx.get(t);
        r || bx.set(t, r = new Map);
        let a = r.get(n);
        a || r.set(n, a = Gk()),
        BY(a)
    }
}
function BY(t, e) {
    let n = !1;
    Fp <= A3 ? $Y(t) || (t.n |= Tu,
    n = !NY(t)) : n = !t.has(ao),
    n && (t.add(ao),
    ao.deps.push(t))
}
function os(t, e, n, r, a, i) {
    const o = bx.get(t);
    if (!o)
        return;
    let l = [];
    if (e === "clear")
        l = [...o.values()];
    else if (n === "length" && Ft(t)) {
        const s = Number(r);
        o.forEach((u,c)=>{
            (c === "length" || c >= s) && l.push(u)
        }
        )
    } else
        switch (n !== void 0 && l.push(o.get(n)),
        e) {
        case "add":
            Ft(t) ? Hk(n) && l.push(o.get("length")) : (l.push(o.get(cf)),
            lv(t) && l.push(o.get(I3)));
            break;
        case "delete":
            Ft(t) || (l.push(o.get(cf)),
            lv(t) && l.push(o.get(I3)));
            break;
        case "set":
            lv(t) && l.push(o.get(cf));
            break
        }
    if (l.length === 1)
        l[0] && k3(l[0]);
    else {
        const s = [];
        for (const u of l)
            u && s.push(...u);
        k3(Gk(s))
    }
}
function k3(t, e) {
    const n = Ft(t) ? t : [...t];
    for (const r of n)
        r.computed && hR(r);
    for (const r of n)
        r.computed || hR(r)
}
function hR(t, e) {
    (t !== ao || t.allowRecurse) && (t.scheduler ? t.scheduler() : t.run())
}
function Sde(t, e) {
    var n;
    return (n = bx.get(t)) == null ? void 0 : n.get(e)
}
const Cde = Fk("__proto__,__v_isRef,__isVue")
  , VY = new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t !== "arguments" && t !== "caller").map(t=>Symbol[t]).filter(zk))
  , wde = Uk()
  , _de = Uk(!1, !0)
  , Tde = Uk(!0)
  , pR = Pde();
function Pde() {
    const t = {};
    return ["includes", "indexOf", "lastIndexOf"].forEach(e=>{
        t[e] = function(...n) {
            const r = _t(this);
            for (let i = 0, o = this.length; i < o; i++)
                za(r, "get", i + "");
            const a = r[e](...n);
            return a === -1 || a === !1 ? r[e](...n.map(_t)) : a
        }
    }
    ),
    ["push", "pop", "shift", "unshift", "splice"].forEach(e=>{
        t[e] = function(...n) {
            oh();
            const r = _t(this)[e].apply(this, n);
            return lh(),
            r
        }
    }
    ),
    t
}
function Mde(t) {
    const e = _t(this);
    return za(e, "has", t),
    e.hasOwnProperty(t)
}
function Uk(t=!1, e=!1) {
    return function(r, a, i) {
        if (a === "__v_isReactive")
            return !t;
        if (a === "__v_isReadonly")
            return t;
        if (a === "__v_isShallow")
            return e;
        if (a === "__v_raw" && i === (t ? e ? jde : GY : e ? WY : jY).get(r))
            return r;
        const o = Ft(r);
        if (!t) {
            if (o && mn(pR, a))
                return Reflect.get(pR, a, i);
            if (a === "hasOwnProperty")
                return Mde
        }
        const l = Reflect.get(r, a, i);
        return (zk(a) ? VY.has(a) : Cde(a)) || (t || za(r, "get", a),
        e) ? l : Hn(l) ? o && Hk(a) ? l : l.value : Gn(l) ? t ? CC(l) : en(l) : l
    }
}
const Ade = zY()
  , Ide = zY(!0);
function zY(t=!1) {
    return function(n, r, a, i) {
        let o = n[r];
        if (Mv(o) && Hn(o) && !Hn(a))
            return !1;
        if (!t && (!xx(a) && !Mv(a) && (o = _t(o),
        a = _t(a)),
        !Ft(n) && Hn(o) && !Hn(a)))
            return o.value = a,
            !0;
        const l = Ft(n) && Hk(r) ? Number(r) < n.length : mn(n, r)
          , s = Reflect.set(n, r, a, i);
        return n === _t(i) && (l ? qg(a, o) && os(n, "set", r, a) : os(n, "add", r, a)),
        s
    }
}
function kde(t, e) {
    const n = mn(t, e);
    t[e];
    const r = Reflect.deleteProperty(t, e);
    return r && n && os(t, "delete", e, void 0),
    r
}
function Ode(t, e) {
    const n = Reflect.has(t, e);
    return (!zk(e) || !VY.has(e)) && za(t, "has", e),
    n
}
function Dde(t) {
    return za(t, "iterate", Ft(t) ? "length" : cf),
    Reflect.ownKeys(t)
}
const HY = {
    get: wde,
    set: Ade,
    deleteProperty: kde,
    has: Ode,
    ownKeys: Dde
}
  , Ede = {
    get: Tde,
    set(t, e) {
        return !0
    },
    deleteProperty(t, e) {
        return !0
    }
}
  , Lde = yr({}, HY, {
    get: _de,
    set: Ide
})
  , Yk = t=>t
  , SC = t=>Reflect.getPrototypeOf(t);
function hy(t, e, n=!1, r=!1) {
    t = t.__v_raw;
    const a = _t(t)
      , i = _t(e);
    n || (e !== i && za(a, "get", e),
    za(a, "get", i));
    const {has: o} = SC(a)
      , l = r ? Yk : n ? Qk : Xg;
    if (o.call(a, e))
        return l(t.get(e));
    if (o.call(a, i))
        return l(t.get(i));
    t !== a && t.get(e)
}
function py(t, e=!1) {
    const n = this.__v_raw
      , r = _t(n)
      , a = _t(t);
    return e || (t !== a && za(r, "has", t),
    za(r, "has", a)),
    t === a ? n.has(t) : n.has(t) || n.has(a)
}
function gy(t, e=!1) {
    return t = t.__v_raw,
    !e && za(_t(t), "iterate", cf),
    Reflect.get(t, "size", t)
}
function gR(t) {
    t = _t(t);
    const e = _t(this);
    return SC(e).has.call(e, t) || (e.add(t),
    os(e, "add", t, t)),
    this
}
function mR(t, e) {
    e = _t(e);
    const n = _t(this)
      , {has: r, get: a} = SC(n);
    let i = r.call(n, t);
    i || (t = _t(t),
    i = r.call(n, t));
    const o = a.call(n, t);
    return n.set(t, e),
    i ? qg(e, o) && os(n, "set", t, e) : os(n, "add", t, e),
    this
}
function yR(t) {
    const e = _t(this)
      , {has: n, get: r} = SC(e);
    let a = n.call(e, t);
    a || (t = _t(t),
    a = n.call(e, t)),
    r && r.call(e, t);
    const i = e.delete(t);
    return a && os(e, "delete", t, void 0),
    i
}
function bR() {
    const t = _t(this)
      , e = t.size !== 0
      , n = t.clear();
    return e && os(t, "clear", void 0, void 0),
    n
}
function my(t, e) {
    return function(r, a) {
        const i = this
          , o = i.__v_raw
          , l = _t(o)
          , s = e ? Yk : t ? Qk : Xg;
        return !t && za(l, "iterate", cf),
        o.forEach((u,c)=>r.call(a, s(u), s(c), i))
    }
}
function yy(t, e, n) {
    return function(...r) {
        const a = this.__v_raw
          , i = _t(a)
          , o = lv(i)
          , l = t === "entries" || t === Symbol.iterator && o
          , s = t === "keys" && o
          , u = a[t](...r)
          , c = n ? Yk : e ? Qk : Xg;
        return !e && za(i, "iterate", s ? I3 : cf),
        {
            next() {
                const {value: f, done: d} = u.next();
                return d ? {
                    value: f,
                    done: d
                } : {
                    value: l ? [c(f[0]), c(f[1])] : c(f),
                    done: d
                }
            },
            [Symbol.iterator]() {
                return this
            }
        }
    }
}
function Ts(t) {
    return function(...e) {
        return t === "delete" ? !1 : this
    }
}
function Rde() {
    const t = {
        get(i) {
            return hy(this, i)
        },
        get size() {
            return gy(this)
        },
        has: py,
        add: gR,
        set: mR,
        delete: yR,
        clear: bR,
        forEach: my(!1, !1)
    }
      , e = {
        get(i) {
            return hy(this, i, !1, !0)
        },
        get size() {
            return gy(this)
        },
        has: py,
        add: gR,
        set: mR,
        delete: yR,
        clear: bR,
        forEach: my(!1, !0)
    }
      , n = {
        get(i) {
            return hy(this, i, !0)
        },
        get size() {
            return gy(this, !0)
        },
        has(i) {
            return py.call(this, i, !0)
        },
        add: Ts("add"),
        set: Ts("set"),
        delete: Ts("delete"),
        clear: Ts("clear"),
        forEach: my(!0, !1)
    }
      , r = {
        get(i) {
            return hy(this, i, !0, !0)
        },
        get size() {
            return gy(this, !0)
        },
        has(i) {
            return py.call(this, i, !0)
        },
        add: Ts("add"),
        set: Ts("set"),
        delete: Ts("delete"),
        clear: Ts("clear"),
        forEach: my(!0, !0)
    };
    return ["keys", "values", "entries", Symbol.iterator].forEach(i=>{
        t[i] = yy(i, !1, !1),
        n[i] = yy(i, !0, !1),
        e[i] = yy(i, !1, !0),
        r[i] = yy(i, !0, !0)
    }
    ),
    [t, n, e, r]
}
const [Nde,$de,Fde,Bde] = Rde();
function qk(t, e) {
    const n = e ? t ? Bde : Fde : t ? $de : Nde;
    return (r,a,i)=>a === "__v_isReactive" ? !t : a === "__v_isReadonly" ? t : a === "__v_raw" ? r : Reflect.get(mn(n, a) && a in r ? n : r, a, i)
}
const Vde = {
    get: qk(!1, !1)
}
  , zde = {
    get: qk(!1, !0)
}
  , Hde = {
    get: qk(!0, !1)
}
  , jY = new WeakMap
  , WY = new WeakMap
  , GY = new WeakMap
  , jde = new WeakMap;
function Wde(t) {
    switch (t) {
    case "Object":
    case "Array":
        return 1;
    case "Map":
    case "Set":
    case "WeakMap":
    case "WeakSet":
        return 2;
    default:
        return 0
    }
}
function Gde(t) {
    return t.__v_skip || !Object.isExtensible(t) ? 0 : Wde(ode(t))
}
function en(t) {
    return Mv(t) ? t : Zk(t, !1, HY, Vde, jY)
}
function Xk(t) {
    return Zk(t, !1, Lde, zde, WY)
}
function CC(t) {
    return Zk(t, !0, Ede, Hde, GY)
}
function Zk(t, e, n, r, a) {
    if (!Gn(t) || t.__v_raw && !(e && t.__v_isReactive))
        return t;
    const i = a.get(t);
    if (i)
        return i;
    const o = Gde(t);
    if (o === 0)
        return t;
    const l = new Proxy(t,o === 2 ? r : n);
    return a.set(t, l),
    l
}
function du(t) {
    return Mv(t) ? du(t.__v_raw) : !!(t && t.__v_isReactive)
}
function Mv(t) {
    return !!(t && t.__v_isReadonly)
}
function xx(t) {
    return !!(t && t.__v_isShallow)
}
function KY(t) {
    return du(t) || Mv(t)
}
function _t(t) {
    const e = t && t.__v_raw;
    return e ? _t(e) : t
}
function um(t) {
    return yx(t, "__v_skip", !0),
    t
}
const Xg = t=>Gn(t) ? en(t) : t
  , Qk = t=>Gn(t) ? CC(t) : t;
function UY(t) {
    fu && ao && (t = _t(t),
    BY(t.dep || (t.dep = Gk())))
}
function YY(t, e) {
    t = _t(t);
    const n = t.dep;
    n && k3(n)
}
function Hn(t) {
    return !!(t && t.__v_isRef === !0)
}
function Q(t) {
    return qY(t, !1)
}
function Mt(t) {
    return qY(t, !0)
}
function qY(t, e) {
    return Hn(t) ? t : new Kde(t,e)
}
class Kde {
    constructor(e, n) {
        this.__v_isShallow = n,
        this.dep = void 0,
        this.__v_isRef = !0,
        this._rawValue = n ? e : _t(e),
        this._value = n ? e : Xg(e)
    }
    get value() {
        return UY(this),
        this._value
    }
    set value(e) {
        const n = this.__v_isShallow || xx(e) || Mv(e);
        e = n ? e : _t(e),
        qg(e, this._rawValue) && (this._rawValue = e,
        this._value = n ? e : Xg(e),
        YY(this))
    }
}
function Pn(t) {
    return Hn(t) ? t.value : t
}
const Ude = {
    get: (t,e,n)=>Pn(Reflect.get(t, e, n)),
    set: (t,e,n,r)=>{
        const a = t[e];
        return Hn(a) && !Hn(n) ? (a.value = n,
        !0) : Reflect.set(t, e, n, r)
    }
};
function XY(t) {
    return du(t) ? t : new Proxy(t,Ude)
}
function vu(t) {
    const e = Ft(t) ? new Array(t.length) : {};
    for (const n in t)
        e[n] = ZY(t, n);
    return e
}
class Yde {
    constructor(e, n, r) {
        this._object = e,
        this._key = n,
        this._defaultValue = r,
        this.__v_isRef = !0
    }
    get value() {
        const e = this._object[this._key];
        return e === void 0 ? this._defaultValue : e
    }
    set value(e) {
        this._object[this._key] = e
    }
    get dep() {
        return Sde(_t(this._object), this._key)
    }
}
class qde {
    constructor(e) {
        this._getter = e,
        this.__v_isRef = !0,
        this.__v_isReadonly = !0
    }
    get value() {
        return this._getter()
    }
}
function at(t, e, n) {
    return Hn(t) ? t : Xt(t) ? new qde(t) : Gn(t) && arguments.length > 1 ? ZY(t, e, n) : Q(t)
}
function ZY(t, e, n) {
    const r = t[e];
    return Hn(r) ? r : new Yde(t,e,n)
}
class Xde {
    constructor(e, n, r, a) {
        this._setter = n,
        this.dep = void 0,
        this.__v_isRef = !0,
        this.__v_isReadonly = !1,
        this._dirty = !0,
        this.effect = new Kk(e,()=>{
            this._dirty || (this._dirty = !0,
            YY(this))
        }
        ),
        this.effect.computed = this,
        this.effect.active = this._cacheable = !a,
        this.__v_isReadonly = r
    }
    get value() {
        const e = _t(this);
        return UY(e),
        (e._dirty || !e._cacheable) && (e._dirty = !1,
        e._value = e.effect.run()),
        e._value
    }
    set value(e) {
        this._setter(e)
    }
}
function Zde(t, e, n=!1) {
    let r, a;
    const i = Xt(t);
    return i ? (r = t,
    a = fo) : (r = t.get,
    a = t.set),
    new Xde(r,a,i || !a,n)
}
function hu(t, e, n, r) {
    let a;
    try {
        a = r ? t(...r) : t()
    } catch (i) {
        cm(i, e, n)
    }
    return a
}
function Ei(t, e, n, r) {
    if (Xt(t)) {
        const i = hu(t, e, n, r);
        return i && kY(i) && i.catch(o=>{
            cm(o, e, n)
        }
        ),
        i
    }
    const a = [];
    for (let i = 0; i < t.length; i++)
        a.push(Ei(t[i], e, n, r));
    return a
}
function cm(t, e, n, r=!0) {
    const a = e ? e.vnode : null;
    if (e) {
        let i = e.parent;
        const o = e.proxy
          , l = n;
        for (; i; ) {
            const u = i.ec;
            if (u) {
                for (let c = 0; c < u.length; c++)
                    if (u[c](t, o, l) === !1)
                        return
            }
            i = i.parent
        }
        const s = e.appContext.config.errorHandler;
        if (s) {
            hu(s, null, 10, [t, o, l]);
            return
        }
    }
}
let Zg = !1
  , O3 = !1;
const ia = [];
let Jo = 0;
const sv = [];
let zl = null
  , Bc = 0;
const QY = Promise.resolve();
let Jk = null;
function yt(t) {
    const e = Jk || QY;
    return t ? e.then(this ? t.bind(this) : t) : e
}
function Qde(t) {
    let e = Jo + 1
      , n = ia.length;
    for (; e < n; ) {
        const r = e + n >>> 1;
        Qg(ia[r]) < t ? e = r + 1 : n = r
    }
    return e
}
function wC(t) {
    (!ia.length || !ia.includes(t, Zg && t.allowRecurse ? Jo + 1 : Jo)) && (t.id == null ? ia.push(t) : ia.splice(Qde(t.id), 0, t),
    JY())
}
function JY() {
    !Zg && !O3 && (O3 = !0,
    Jk = QY.then(tq))
}
function Jde(t) {
    const e = ia.indexOf(t);
    e > Jo && ia.splice(e, 1)
}
function eve(t) {
    Ft(t) ? sv.push(...t) : (!zl || !zl.includes(t, t.allowRecurse ? Bc + 1 : Bc)) && sv.push(t),
    JY()
}
function xR(t, e=Zg ? Jo + 1 : 0) {
    for (; e < ia.length; e++) {
        const n = ia[e];
        n && n.pre && (ia.splice(e, 1),
        e--,
        n())
    }
}
function eq(t) {
    if (sv.length) {
        const e = [...new Set(sv)];
        if (sv.length = 0,
        zl) {
            zl.push(...e);
            return
        }
        for (zl = e,
        zl.sort((n,r)=>Qg(n) - Qg(r)),
        Bc = 0; Bc < zl.length; Bc++)
            zl[Bc]();
        zl = null,
        Bc = 0
    }
}
const Qg = t=>t.id == null ? 1 / 0 : t.id
  , tve = (t,e)=>{
    const n = Qg(t) - Qg(e);
    if (n === 0) {
        if (t.pre && !e.pre)
            return -1;
        if (e.pre && !t.pre)
            return 1
    }
    return n
}
;
function tq(t) {
    O3 = !1,
    Zg = !0,
    ia.sort(tve);
    const e = fo;
    try {
        for (Jo = 0; Jo < ia.length; Jo++) {
            const n = ia[Jo];
            n && n.active !== !1 && hu(n, null, 14)
        }
    } finally {
        Jo = 0,
        ia.length = 0,
        eq(),
        Zg = !1,
        Jk = null,
        (ia.length || sv.length) && tq()
    }
}
function nve(t, e, ...n) {
    if (t.isUnmounted)
        return;
    const r = t.vnode.props || Yn;
    let a = n;
    const i = e.startsWith("update:")
      , o = i && e.slice(7);
    if (o && o in r) {
        const c = `${o === "modelValue" ? "model" : o}Modifiers`
          , {number: f, trim: d} = r[c] || Yn;
        d && (a = n.map(v=>rr(v) ? v.trim() : v)),
        f && (a = n.map(ude))
    }
    let l, s = r[l = lb(e)] || r[l = lb(Va(e))];
    !s && i && (s = r[l = lb(ih(e))]),
    s && Ei(s, t, 6, a);
    const u = r[l + "Once"];
    if (u) {
        if (!t.emitted)
            t.emitted = {};
        else if (t.emitted[l])
            return;
        t.emitted[l] = !0,
        Ei(u, t, 6, a)
    }
}
function nq(t, e, n=!1) {
    const r = e.emitsCache
      , a = r.get(t);
    if (a !== void 0)
        return a;
    const i = t.emits;
    let o = {}
      , l = !1;
    if (!Xt(t)) {
        const s = u=>{
            const c = nq(u, e, !0);
            c && (l = !0,
            yr(o, c))
        }
        ;
        !n && e.mixins.length && e.mixins.forEach(s),
        t.extends && s(t.extends),
        t.mixins && t.mixins.forEach(s)
    }
    return !i && !l ? (Gn(t) && r.set(t, null),
    null) : (Ft(i) ? i.forEach(s=>o[s] = null) : yr(o, i),
    Gn(t) && r.set(t, o),
    o)
}
function _C(t, e) {
    return !t || !gC(e) ? !1 : (e = e.slice(2).replace(/Once$/, ""),
    mn(t, e[0].toLowerCase() + e.slice(1)) || mn(t, ih(e)) || mn(t, e))
}
let zr = null
  , TC = null;
function Sx(t) {
    const e = zr;
    return zr = t,
    TC = t && t.type.__scopeId || null,
    e
}
function rve(t) {
    TC = t
}
function ave() {
    TC = null
}
const ive = t=>Js;
function Js(t, e=zr, n) {
    if (!e || t._n)
        return t;
    const r = (...a)=>{
        r._d && LR(-1);
        const i = Sx(e);
        let o;
        try {
            o = t(...a)
        } finally {
            Sx(i),
            r._d && LR(1)
        }
        return o
    }
    ;
    return r._n = !0,
    r._c = !0,
    r._d = !0,
    r
}
function G2(t) {
    const {type: e, vnode: n, proxy: r, withProxy: a, props: i, propsOptions: [o], slots: l, attrs: s, emit: u, render: c, renderCache: f, data: d, setupState: v, ctx: h, inheritAttrs: p} = t;
    let g, m;
    const y = Sx(t);
    try {
        if (n.shapeFlag & 4) {
            const x = a || r;
            g = Zo(c.call(x, x, f, i, v, d, h)),
            m = s
        } else {
            const x = e;
            g = Zo(x.length > 1 ? x(i, {
                attrs: s,
                slots: l,
                emit: u
            }) : x(i, null)),
            m = e.props ? s : ove(s)
        }
    } catch (x) {
        sg.length = 0,
        cm(x, t, 1),
        g = _(ai)
    }
    let b = g;
    if (m && p !== !1) {
        const x = Object.keys(m)
          , {shapeFlag: C} = b;
        x.length && C & 7 && (o && x.some(Bk) && (m = lve(m, o)),
        b = Zr(b, m))
    }
    return n.dirs && (b = Zr(b),
    b.dirs = b.dirs ? b.dirs.concat(n.dirs) : n.dirs),
    n.transition && (b.transition = n.transition),
    g = b,
    Sx(y),
    g
}
const ove = t=>{
    let e;
    for (const n in t)
        (n === "class" || n === "style" || gC(n)) && ((e || (e = {}))[n] = t[n]);
    return e
}
  , lve = (t,e)=>{
    const n = {};
    for (const r in t)
        (!Bk(r) || !(r.slice(9)in e)) && (n[r] = t[r]);
    return n
}
;
function sve(t, e, n) {
    const {props: r, children: a, component: i} = t
      , {props: o, children: l, patchFlag: s} = e
      , u = i.emitsOptions;
    if (e.dirs || e.transition)
        return !0;
    if (n && s >= 0) {
        if (s & 1024)
            return !0;
        if (s & 16)
            return r ? SR(r, o, u) : !!o;
        if (s & 8) {
            const c = e.dynamicProps;
            for (let f = 0; f < c.length; f++) {
                const d = c[f];
                if (o[d] !== r[d] && !_C(u, d))
                    return !0
            }
        }
    } else
        return (a || l) && (!l || !l.$stable) ? !0 : r === o ? !1 : r ? o ? SR(r, o, u) : !0 : !!o;
    return !1
}
function SR(t, e, n) {
    const r = Object.keys(e);
    if (r.length !== Object.keys(t).length)
        return !0;
    for (let a = 0; a < r.length; a++) {
        const i = r[a];
        if (e[i] !== t[i] && !_C(n, i))
            return !0
    }
    return !1
}
function uve({vnode: t, parent: e}, n) {
    for (; e && e.subTree === t; )
        (t = e.vnode).el = n,
        e = e.parent
}
const cve = t=>t.__isSuspense;
function fve(t, e) {
    e && e.pendingBranch ? Ft(t) ? e.effects.push(...t) : e.effects.push(t) : eve(t)
}
function pt(t, e) {
    return eO(t, null, e)
}
const by = {};
function Te(t, e, n) {
    return eO(t, e, n)
}
function eO(t, e, {immediate: n, deep: r, flush: a, onTrack: i, onTrigger: o}=Yn) {
    var l;
    const s = xC() === ((l = Cr) == null ? void 0 : l.scope) ? Cr : null;
    let u, c = !1, f = !1;
    if (Hn(t) ? (u = ()=>t.value,
    c = xx(t)) : du(t) ? (u = ()=>t,
    r = !0) : Ft(t) ? (f = !0,
    c = t.some(x=>du(x) || xx(x)),
    u = ()=>t.map(x=>{
        if (Hn(x))
            return x.value;
        if (du(x))
            return Qc(x);
        if (Xt(x))
            return hu(x, s, 2)
    }
    )) : Xt(t) ? e ? u = ()=>hu(t, s, 2) : u = ()=>{
        if (!(s && s.isUnmounted))
            return d && d(),
            Ei(t, s, 3, [v])
    }
    : u = fo,
    e && r) {
        const x = u;
        u = ()=>Qc(x())
    }
    let d, v = x=>{
        d = y.onStop = ()=>{
            hu(x, s, 4)
        }
    }
    , h;
    if (kv)
        if (v = fo,
        e ? n && Ei(e, s, 3, [u(), f ? [] : void 0, v]) : u(),
        a === "sync") {
            const x = the();
            h = x.__watcherHandles || (x.__watcherHandles = [])
        } else
            return fo;
    let p = f ? new Array(t.length).fill(by) : by;
    const g = ()=>{
        if (!!y.active)
            if (e) {
                const x = y.run();
                (r || c || (f ? x.some((C,S)=>qg(C, p[S])) : qg(x, p))) && (d && d(),
                Ei(e, s, 3, [x, p === by ? void 0 : f && p[0] === by ? [] : p, v]),
                p = x)
            } else
                y.run()
    }
    ;
    g.allowRecurse = !!e;
    let m;
    a === "sync" ? m = g : a === "post" ? m = ()=>La(g, s && s.suspense) : (g.pre = !0,
    s && (g.id = s.uid),
    m = ()=>wC(g));
    const y = new Kk(u,m);
    e ? n ? g() : p = y.run() : a === "post" ? La(y.run.bind(y), s && s.suspense) : y.run();
    const b = ()=>{
        y.stop(),
        s && s.scope && Vk(s.scope.effects, y)
    }
    ;
    return h && h.push(b),
    b
}
function dve(t, e, n) {
    const r = this.proxy
      , a = rr(t) ? t.includes(".") ? rq(r, t) : ()=>r[t] : t.bind(r, r);
    let i;
    Xt(e) ? i = e : (i = e.handler,
    n = e);
    const o = Cr;
    Iv(this);
    const l = eO(a, i.bind(r), n);
    return o ? Iv(o) : ff(),
    l
}
function rq(t, e) {
    const n = e.split(".");
    return ()=>{
        let r = t;
        for (let a = 0; a < n.length && r; a++)
            r = r[n[a]];
        return r
    }
}
function Qc(t, e) {
    if (!Gn(t) || t.__v_skip || (e = e || new Set,
    e.has(t)))
        return t;
    if (e.add(t),
    Hn(t))
        Qc(t.value, e);
    else if (Ft(t))
        for (let n = 0; n < t.length; n++)
            Qc(t[n], e);
    else if (IY(t) || lv(t))
        t.forEach(n=>{
            Qc(n, e)
        }
        );
    else if (DY(t))
        for (const n in t)
            Qc(t[n], e);
    return t
}
function Fr(t, e) {
    const n = zr;
    if (n === null)
        return t;
    const r = IC(n) || n.proxy
      , a = t.dirs || (t.dirs = []);
    for (let i = 0; i < e.length; i++) {
        let[o,l,s,u=Yn] = e[i];
        o && (Xt(o) && (o = {
            mounted: o,
            updated: o
        }),
        o.deep && Qc(l),
        a.push({
            dir: o,
            instance: r,
            value: l,
            oldValue: void 0,
            arg: s,
            modifiers: u
        }))
    }
    return t
}
function Zu(t, e, n, r) {
    const a = t.dirs
      , i = e && e.dirs;
    for (let o = 0; o < a.length; o++) {
        const l = a[o];
        i && (l.oldValue = i[o].value);
        let s = l.dir[r];
        s && (oh(),
        Ei(s, n, 8, [t.el, l, t, e]),
        lh())
    }
}
function aq() {
    const t = {
        isMounted: !1,
        isLeaving: !1,
        isUnmounting: !1,
        leavingVNodes: new Map
    };
    return ct(()=>{
        t.isMounted = !0
    }
    ),
    Nt(()=>{
        t.isUnmounting = !0
    }
    ),
    t
}
const hi = [Function, Array]
  , iq = {
    mode: String,
    appear: Boolean,
    persisted: Boolean,
    onBeforeEnter: hi,
    onEnter: hi,
    onAfterEnter: hi,
    onEnterCancelled: hi,
    onBeforeLeave: hi,
    onLeave: hi,
    onAfterLeave: hi,
    onLeaveCancelled: hi,
    onBeforeAppear: hi,
    onAppear: hi,
    onAfterAppear: hi,
    onAppearCancelled: hi
}
  , vve = {
    name: "BaseTransition",
    props: iq,
    setup(t, {slots: e}) {
        const n = qn()
          , r = aq();
        let a;
        return ()=>{
            const i = e.default && tO(e.default(), !0);
            if (!i || !i.length)
                return;
            let o = i[0];
            if (i.length > 1) {
                for (const p of i)
                    if (p.type !== ai) {
                        o = p;
                        break
                    }
            }
            const l = _t(t)
              , {mode: s} = l;
            if (r.isLeaving)
                return K2(o);
            const u = CR(o);
            if (!u)
                return K2(o);
            const c = Jg(u, l, r, n);
            e0(u, c);
            const f = n.subTree
              , d = f && CR(f);
            let v = !1;
            const {getTransitionKey: h} = u.type;
            if (h) {
                const p = h();
                a === void 0 ? a = p : p !== a && (a = p,
                v = !0)
            }
            if (d && d.type !== ai && (!Vc(u, d) || v)) {
                const p = Jg(d, l, r, n);
                if (e0(d, p),
                s === "out-in")
                    return r.isLeaving = !0,
                    p.afterLeave = ()=>{
                        r.isLeaving = !1,
                        n.update.active !== !1 && n.update()
                    }
                    ,
                    K2(o);
                s === "in-out" && u.type !== ai && (p.delayLeave = (g,m,y)=>{
                    const b = oq(r, d);
                    b[String(d.key)] = d,
                    g._leaveCb = ()=>{
                        m(),
                        g._leaveCb = void 0,
                        delete c.delayedLeave
                    }
                    ,
                    c.delayedLeave = y
                }
                )
            }
            return o
        }
    }
}
  , hve = vve;
function oq(t, e) {
    const {leavingVNodes: n} = t;
    let r = n.get(e.type);
    return r || (r = Object.create(null),
    n.set(e.type, r)),
    r
}
function Jg(t, e, n, r) {
    const {appear: a, mode: i, persisted: o=!1, onBeforeEnter: l, onEnter: s, onAfterEnter: u, onEnterCancelled: c, onBeforeLeave: f, onLeave: d, onAfterLeave: v, onLeaveCancelled: h, onBeforeAppear: p, onAppear: g, onAfterAppear: m, onAppearCancelled: y} = e
      , b = String(t.key)
      , x = oq(n, t)
      , C = (T,P)=>{
        T && Ei(T, r, 9, P)
    }
      , S = (T,P)=>{
        const M = P[1];
        C(T, P),
        Ft(T) ? T.every(A=>A.length <= 1) && M() : T.length <= 1 && M()
    }
      , w = {
        mode: i,
        persisted: o,
        beforeEnter(T) {
            let P = l;
            if (!n.isMounted)
                if (a)
                    P = p || l;
                else
                    return;
            T._leaveCb && T._leaveCb(!0);
            const M = x[b];
            M && Vc(t, M) && M.el._leaveCb && M.el._leaveCb(),
            C(P, [T])
        },
        enter(T) {
            let P = s
              , M = u
              , A = c;
            if (!n.isMounted)
                if (a)
                    P = g || s,
                    M = m || u,
                    A = y || c;
                else
                    return;
            let O = !1;
            const k = T._enterCb = D=>{
                O || (O = !0,
                D ? C(A, [T]) : C(M, [T]),
                w.delayedLeave && w.delayedLeave(),
                T._enterCb = void 0)
            }
            ;
            P ? S(P, [T, k]) : k()
        },
        leave(T, P) {
            const M = String(t.key);
            if (T._enterCb && T._enterCb(!0),
            n.isUnmounting)
                return P();
            C(f, [T]);
            let A = !1;
            const O = T._leaveCb = k=>{
                A || (A = !0,
                P(),
                k ? C(h, [T]) : C(v, [T]),
                T._leaveCb = void 0,
                x[M] === t && delete x[M])
            }
            ;
            x[M] = t,
            d ? S(d, [T, O]) : O()
        },
        clone(T) {
            return Jg(T, e, n, r)
        }
    };
    return w
}
function K2(t) {
    if (fm(t))
        return t = Zr(t),
        t.children = null,
        t
}
function CR(t) {
    return fm(t) ? t.children ? t.children[0] : void 0 : t
}
function e0(t, e) {
    t.shapeFlag & 6 && t.component ? e0(t.component.subTree, e) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent),
    t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e
}
function tO(t, e=!1, n) {
    let r = []
      , a = 0;
    for (let i = 0; i < t.length; i++) {
        let o = t[i];
        const l = n == null ? o.key : String(n) + String(o.key != null ? o.key : i);
        o.type === xt ? (o.patchFlag & 128 && a++,
        r = r.concat(tO(o.children, e, l))) : (e || o.type !== ai) && r.push(l != null ? Zr(o, {
            key: l
        }) : o)
    }
    if (a > 1)
        for (let i = 0; i < r.length; i++)
            r[i].patchFlag = -2;
    return r
}
function de(t, e) {
    return Xt(t) ? (()=>yr({
        name: t.name
    }, e, {
        setup: t
    }))() : t
}
const ig = t=>!!t.type.__asyncLoader;
function upt(t) {
    Xt(t) && (t = {
        loader: t
    });
    const {loader: e, loadingComponent: n, errorComponent: r, delay: a=200, timeout: i, suspensible: o=!0, onError: l} = t;
    let s = null, u, c = 0;
    const f = ()=>(c++,
    s = null,
    d())
      , d = ()=>{
        let v;
        return s || (v = s = e().catch(h=>{
            if (h = h instanceof Error ? h : new Error(String(h)),
            l)
                return new Promise((p,g)=>{
                    l(h, ()=>p(f()), ()=>g(h), c + 1)
                }
                );
            throw h
        }
        ).then(h=>v !== s && s ? s : (h && (h.__esModule || h[Symbol.toStringTag] === "Module") && (h = h.default),
        u = h,
        h)))
    }
    ;
    return de({
        name: "AsyncComponentWrapper",
        __asyncLoader: d,
        get __asyncResolved() {
            return u
        },
        setup() {
            const v = Cr;
            if (u)
                return ()=>U2(u, v);
            const h = y=>{
                s = null,
                cm(y, v, 13, !r)
            }
            ;
            if (o && v.suspense || kv)
                return d().then(y=>()=>U2(y, v)).catch(y=>(h(y),
                ()=>r ? _(r, {
                    error: y
                }) : null));
            const p = Q(!1)
              , g = Q()
              , m = Q(!!a);
            return a && setTimeout(()=>{
                m.value = !1
            }
            , a),
            i != null && setTimeout(()=>{
                if (!p.value && !g.value) {
                    const y = new Error(`Async component timed out after ${i}ms.`);
                    h(y),
                    g.value = y
                }
            }
            , i),
            d().then(()=>{
                p.value = !0,
                v.parent && fm(v.parent.vnode) && wC(v.parent.update)
            }
            ).catch(y=>{
                h(y),
                g.value = y
            }
            ),
            ()=>{
                if (p.value && u)
                    return U2(u, v);
                if (g.value && r)
                    return _(r, {
                        error: g.value
                    });
                if (n && !m.value)
                    return _(n)
            }
        }
    })
}
function U2(t, e) {
    const {ref: n, props: r, children: a, ce: i} = e.vnode
      , o = _(t, r, a);
    return o.ref = n,
    o.ce = i,
    delete e.vnode.ce,
    o
}
const fm = t=>t.type.__isKeepAlive;
function PC(t, e) {
    sq(t, "a", e)
}
function lq(t, e) {
    sq(t, "da", e)
}
function sq(t, e, n=Cr) {
    const r = t.__wdc || (t.__wdc = ()=>{
        let a = n;
        for (; a; ) {
            if (a.isDeactivated)
                return;
            a = a.parent
        }
        return t()
    }
    );
    if (MC(e, r, n),
    n) {
        let a = n.parent;
        for (; a && a.parent; )
            fm(a.parent.vnode) && pve(r, e, n, a),
            a = a.parent
    }
}
function pve(t, e, n, r) {
    const a = MC(e, t, r, !0);
    dr(()=>{
        Vk(r[e], a)
    }
    , n)
}
function MC(t, e, n=Cr, r=!1) {
    if (n) {
        const a = n[t] || (n[t] = [])
          , i = e.__weh || (e.__weh = (...o)=>{
            if (n.isUnmounted)
                return;
            oh(),
            Iv(n);
            const l = Ei(e, n, t, o);
            return ff(),
            lh(),
            l
        }
        );
        return r ? a.unshift(i) : a.push(i),
        i
    }
}
const ps = t=>(e,n=Cr)=>(!kv || t === "sp") && MC(t, (...r)=>e(...r), n)
  , dm = ps("bm")
  , ct = ps("m")
  , nO = ps("bu")
  , ua = ps("u")
  , Nt = ps("bum")
  , dr = ps("um")
  , gve = ps("sp")
  , mve = ps("rtg")
  , yve = ps("rtc");
function bve(t, e=Cr) {
    MC("ec", t, e)
}
const rO = "components"
  , xve = "directives";
function uq(t, e) {
    return aO(rO, t, !0, e) || t
}
const cq = Symbol.for("v-ndc");
function wR(t) {
    return rr(t) ? aO(rO, t, !1) || t : t || cq
}
function fq(t) {
    return aO(xve, t)
}
function aO(t, e, n=!0, r=!1) {
    const a = zr || Cr;
    if (a) {
        const i = a.type;
        if (t === rO) {
            const l = Qve(i, !1);
            if (l && (l === e || l === Va(e) || l === bC(Va(e))))
                return i
        }
        const o = _R(a[t] || i[t], e) || _R(a.appContext[t], e);
        return !o && r ? i : o
    }
}
function _R(t, e) {
    return t && (t[e] || t[Va(e)] || t[bC(Va(e))])
}
function Sve(t, e, n, r) {
    let a;
    const i = n && n[r];
    if (Ft(t) || rr(t)) {
        a = new Array(t.length);
        for (let o = 0, l = t.length; o < l; o++)
            a[o] = e(t[o], o, void 0, i && i[o])
    } else if (typeof t == "number") {
        a = new Array(t);
        for (let o = 0; o < t; o++)
            a[o] = e(o + 1, o, void 0, i && i[o])
    } else if (Gn(t))
        if (t[Symbol.iterator])
            a = Array.from(t, (o,l)=>e(o, l, void 0, i && i[l]));
        else {
            const o = Object.keys(t);
            a = new Array(o.length);
            for (let l = 0, s = o.length; l < s; l++) {
                const u = o[l];
                a[l] = e(t[u], u, l, i && i[l])
            }
        }
    else
        a = [];
    return n && (n[r] = a),
    a
}
function cpt(t, e) {
    for (let n = 0; n < e.length; n++) {
        const r = e[n];
        if (Ft(r))
            for (let a = 0; a < r.length; a++)
                t[r[a].name] = r[a].fn;
        else
            r && (t[r.name] = r.key ? (...a)=>{
                const i = r.fn(...a);
                return i && (i.key = r.key),
                i
            }
            : r.fn)
    }
    return t
}
function oo(t, e, n={}, r, a) {
    if (zr.isCE || zr.parent && ig(zr.parent) && zr.parent.isCE)
        return e !== "default" && (n.name = e),
        _("slot", n, r && r());
    let i = t[e];
    i && i._c && (i._d = !1),
    Xo();
    const o = i && dq(i(n))
      , l = Av(xt, {
        key: n.key || o && o.key || `_${e}`
    }, o || (r ? r() : []), o && t._ === 1 ? 64 : -2);
    return !a && l.scopeId && (l.slotScopeIds = [l.scopeId + "-s"]),
    i && i._c && (i._d = !0),
    l
}
function dq(t) {
    return t.some(e=>Hr(e) ? !(e.type === ai || e.type === xt && !dq(e.children)) : !0) ? t : null
}
function Cve(t, e) {
    const n = {};
    for (const r in t)
        n[e && /[A-Z]/.test(r) ? `on:${r}` : lb(r)] = t[r];
    return n
}
const D3 = t=>t ? Pq(t) ? IC(t) || t.proxy : D3(t.parent) : null
  , og = yr(Object.create(null), {
    $: t=>t,
    $el: t=>t.vnode.el,
    $data: t=>t.data,
    $props: t=>t.props,
    $attrs: t=>t.attrs,
    $slots: t=>t.slots,
    $refs: t=>t.refs,
    $parent: t=>D3(t.parent),
    $root: t=>D3(t.root),
    $emit: t=>t.emit,
    $options: t=>iO(t),
    $forceUpdate: t=>t.f || (t.f = ()=>wC(t.update)),
    $nextTick: t=>t.n || (t.n = yt.bind(t.proxy)),
    $watch: t=>dve.bind(t)
})
  , Y2 = (t,e)=>t !== Yn && !t.__isScriptSetup && mn(t, e)
  , wve = {
    get({_: t}, e) {
        const {ctx: n, setupState: r, data: a, props: i, accessCache: o, type: l, appContext: s} = t;
        let u;
        if (e[0] !== "$") {
            const v = o[e];
            if (v !== void 0)
                switch (v) {
                case 1:
                    return r[e];
                case 2:
                    return a[e];
                case 4:
                    return n[e];
                case 3:
                    return i[e]
                }
            else {
                if (Y2(r, e))
                    return o[e] = 1,
                    r[e];
                if (a !== Yn && mn(a, e))
                    return o[e] = 2,
                    a[e];
                if ((u = t.propsOptions[0]) && mn(u, e))
                    return o[e] = 3,
                    i[e];
                if (n !== Yn && mn(n, e))
                    return o[e] = 4,
                    n[e];
                E3 && (o[e] = 0)
            }
        }
        const c = og[e];
        let f, d;
        if (c)
            return e === "$attrs" && za(t, "get", e),
            c(t);
        if ((f = l.__cssModules) && (f = f[e]))
            return f;
        if (n !== Yn && mn(n, e))
            return o[e] = 4,
            n[e];
        if (d = s.config.globalProperties,
        mn(d, e))
            return d[e]
    },
    set({_: t}, e, n) {
        const {data: r, setupState: a, ctx: i} = t;
        return Y2(a, e) ? (a[e] = n,
        !0) : r !== Yn && mn(r, e) ? (r[e] = n,
        !0) : mn(t.props, e) || e[0] === "$" && e.slice(1)in t ? !1 : (i[e] = n,
        !0)
    },
    has({_: {data: t, setupState: e, accessCache: n, ctx: r, appContext: a, propsOptions: i}}, o) {
        let l;
        return !!n[o] || t !== Yn && mn(t, o) || Y2(e, o) || (l = i[0]) && mn(l, o) || mn(r, o) || mn(og, o) || mn(a.config.globalProperties, o)
    },
    defineProperty(t, e, n) {
        return n.get != null ? t._.accessCache[e] = 0 : mn(n, "value") && this.set(t, e, n.value, null),
        Reflect.defineProperty(t, e, n)
    }
};
function fpt() {
    return vq().slots
}
function _ve() {
    return vq().attrs
}
function vq() {
    const t = qn();
    return t.setupContext || (t.setupContext = Aq(t))
}
function TR(t) {
    return Ft(t) ? t.reduce((e,n)=>(e[n] = null,
    e), {}) : t
}
let E3 = !0;
function Tve(t) {
    const e = iO(t)
      , n = t.proxy
      , r = t.ctx;
    E3 = !1,
    e.beforeCreate && PR(e.beforeCreate, t, "bc");
    const {data: a, computed: i, methods: o, watch: l, provide: s, inject: u, created: c, beforeMount: f, mounted: d, beforeUpdate: v, updated: h, activated: p, deactivated: g, beforeDestroy: m, beforeUnmount: y, destroyed: b, unmounted: x, render: C, renderTracked: S, renderTriggered: w, errorCaptured: T, serverPrefetch: P, expose: M, inheritAttrs: A, components: O, directives: k, filters: D} = e;
    if (u && Pve(u, r, null),
    o)
        for (const N in o) {
            const R = o[N];
            Xt(R) && (r[N] = R.bind(n))
        }
    if (a) {
        const N = a.call(n, n);
        Gn(N) && (t.data = en(N))
    }
    if (E3 = !0,
    i)
        for (const N in i) {
            const R = i[N]
              , $ = Xt(R) ? R.bind(n, n) : Xt(R.get) ? R.get.bind(n, n) : fo
              , W = !Xt(R) && Xt(R.set) ? R.set.bind(n) : fo
              , B = j({
                get: $,
                set: W
            });
            Object.defineProperty(r, N, {
                enumerable: !0,
                configurable: !0,
                get: ()=>B.value,
                set: G=>B.value = G
            })
        }
    if (l)
        for (const N in l)
            hq(l[N], r, n, N);
    if (s) {
        const N = Xt(s) ? s.call(n) : s;
        Reflect.ownKeys(N).forEach(R=>{
            It(R, N[R])
        }
        )
    }
    c && PR(c, t, "c");
    function L(N, R) {
        Ft(R) ? R.forEach($=>N($.bind(n))) : R && N(R.bind(n))
    }
    if (L(dm, f),
    L(ct, d),
    L(nO, v),
    L(ua, h),
    L(PC, p),
    L(lq, g),
    L(bve, T),
    L(yve, S),
    L(mve, w),
    L(Nt, y),
    L(dr, x),
    L(gve, P),
    Ft(M))
        if (M.length) {
            const N = t.exposed || (t.exposed = {});
            M.forEach(R=>{
                Object.defineProperty(N, R, {
                    get: ()=>n[R],
                    set: $=>n[R] = $
                })
            }
            )
        } else
            t.exposed || (t.exposed = {});
    C && t.render === fo && (t.render = C),
    A != null && (t.inheritAttrs = A),
    O && (t.components = O),
    k && (t.directives = k)
}
function Pve(t, e, n=fo) {
    Ft(t) && (t = L3(t));
    for (const r in t) {
        const a = t[r];
        let i;
        Gn(a) ? "default"in a ? i = vt(a.from || r, a.default, !0) : i = vt(a.from || r) : i = vt(a),
        Hn(i) ? Object.defineProperty(e, r, {
            enumerable: !0,
            configurable: !0,
            get: ()=>i.value,
            set: o=>i.value = o
        }) : e[r] = i
    }
}
function PR(t, e, n) {
    Ei(Ft(t) ? t.map(r=>r.bind(e.proxy)) : t.bind(e.proxy), e, n)
}
function hq(t, e, n, r) {
    const a = r.includes(".") ? rq(n, r) : ()=>n[r];
    if (rr(t)) {
        const i = e[t];
        Xt(i) && Te(a, i)
    } else if (Xt(t))
        Te(a, t.bind(n));
    else if (Gn(t))
        if (Ft(t))
            t.forEach(i=>hq(i, e, n, r));
        else {
            const i = Xt(t.handler) ? t.handler.bind(n) : e[t.handler];
            Xt(i) && Te(a, i, t)
        }
}
function iO(t) {
    const e = t.type
      , {mixins: n, extends: r} = e
      , {mixins: a, optionsCache: i, config: {optionMergeStrategies: o}} = t.appContext
      , l = i.get(e);
    let s;
    return l ? s = l : !a.length && !n && !r ? s = e : (s = {},
    a.length && a.forEach(u=>Cx(s, u, o, !0)),
    Cx(s, e, o)),
    Gn(e) && i.set(e, s),
    s
}
function Cx(t, e, n, r=!1) {
    const {mixins: a, extends: i} = e;
    i && Cx(t, i, n, !0),
    a && a.forEach(o=>Cx(t, o, n, !0));
    for (const o in e)
        if (!(r && o === "expose")) {
            const l = Mve[o] || n && n[o];
            t[o] = l ? l(t[o], e[o]) : e[o]
        }
    return t
}
const Mve = {
    data: MR,
    props: AR,
    emits: AR,
    methods: Bp,
    computed: Bp,
    beforeCreate: va,
    created: va,
    beforeMount: va,
    mounted: va,
    beforeUpdate: va,
    updated: va,
    beforeDestroy: va,
    beforeUnmount: va,
    destroyed: va,
    unmounted: va,
    activated: va,
    deactivated: va,
    errorCaptured: va,
    serverPrefetch: va,
    components: Bp,
    directives: Bp,
    watch: Ive,
    provide: MR,
    inject: Ave
};
function MR(t, e) {
    return e ? t ? function() {
        return yr(Xt(t) ? t.call(this, this) : t, Xt(e) ? e.call(this, this) : e)
    }
    : e : t
}
function Ave(t, e) {
    return Bp(L3(t), L3(e))
}
function L3(t) {
    if (Ft(t)) {
        const e = {};
        for (let n = 0; n < t.length; n++)
            e[t[n]] = t[n];
        return e
    }
    return t
}
function va(t, e) {
    return t ? [...new Set([].concat(t, e))] : e
}
function Bp(t, e) {
    return t ? yr(Object.create(null), t, e) : e
}
function AR(t, e) {
    return t ? Ft(t) && Ft(e) ? [...new Set([...t, ...e])] : yr(Object.create(null), TR(t), TR(e != null ? e : {})) : e
}
function Ive(t, e) {
    if (!t)
        return e;
    if (!e)
        return t;
    const n = yr(Object.create(null), t);
    for (const r in e)
        n[r] = va(t[r], e[r]);
    return n
}
function pq() {
    return {
        app: null,
        config: {
            isNativeTag: rde,
            performance: !1,
            globalProperties: {},
            optionMergeStrategies: {},
            errorHandler: void 0,
            warnHandler: void 0,
            compilerOptions: {}
        },
        mixins: [],
        components: {},
        directives: {},
        provides: Object.create(null),
        optionsCache: new WeakMap,
        propsCache: new WeakMap,
        emitsCache: new WeakMap
    }
}
let kve = 0;
function Ove(t, e) {
    return function(r, a=null) {
        Xt(r) || (r = yr({}, r)),
        a != null && !Gn(a) && (a = null);
        const i = pq()
          , o = new Set;
        let l = !1;
        const s = i.app = {
            _uid: kve++,
            _component: r,
            _props: a,
            _container: null,
            _context: i,
            _instance: null,
            version: nhe,
            get config() {
                return i.config
            },
            set config(u) {},
            use(u, ...c) {
                return o.has(u) || (u && Xt(u.install) ? (o.add(u),
                u.install(s, ...c)) : Xt(u) && (o.add(u),
                u(s, ...c))),
                s
            },
            mixin(u) {
                return i.mixins.includes(u) || i.mixins.push(u),
                s
            },
            component(u, c) {
                return c ? (i.components[u] = c,
                s) : i.components[u]
            },
            directive(u, c) {
                return c ? (i.directives[u] = c,
                s) : i.directives[u]
            },
            mount(u, c, f) {
                if (!l) {
                    const d = _(r, a);
                    return d.appContext = i,
                    c && e ? e(d, u) : t(d, u, f),
                    l = !0,
                    s._container = u,
                    u.__vue_app__ = s,
                    IC(d.component) || d.component.proxy
                }
            },
            unmount() {
                l && (t(null, s._container),
                delete s._container.__vue_app__)
            },
            provide(u, c) {
                return i.provides[u] = c,
                s
            },
            runWithContext(u) {
                t0 = s;
                try {
                    return u()
                } finally {
                    t0 = null
                }
            }
        };
        return s
    }
}
let t0 = null;
function It(t, e) {
    if (Cr) {
        let n = Cr.provides;
        const r = Cr.parent && Cr.parent.provides;
        r === n && (n = Cr.provides = Object.create(r)),
        n[t] = e
    }
}
function vt(t, e, n=!1) {
    const r = Cr || zr;
    if (r || t0) {
        const a = r ? r.parent == null ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : t0._context.provides;
        if (a && t in a)
            return a[t];
        if (arguments.length > 1)
            return n && Xt(e) ? e.call(r && r.proxy) : e
    }
}
function Dve() {
    return !!(Cr || zr || t0)
}
function Eve(t, e, n, r=!1) {
    const a = {}
      , i = {};
    yx(i, AC, 1),
    t.propsDefaults = Object.create(null),
    gq(t, e, a, i);
    for (const o in t.propsOptions[0])
        o in a || (a[o] = void 0);
    n ? t.props = r ? a : Xk(a) : t.type.props ? t.props = a : t.props = i,
    t.attrs = i
}
function Lve(t, e, n, r) {
    const {props: a, attrs: i, vnode: {patchFlag: o}} = t
      , l = _t(a)
      , [s] = t.propsOptions;
    let u = !1;
    if ((r || o > 0) && !(o & 16)) {
        if (o & 8) {
            const c = t.vnode.dynamicProps;
            for (let f = 0; f < c.length; f++) {
                let d = c[f];
                if (_C(t.emitsOptions, d))
                    continue;
                const v = e[d];
                if (s)
                    if (mn(i, d))
                        v !== i[d] && (i[d] = v,
                        u = !0);
                    else {
                        const h = Va(d);
                        a[h] = R3(s, l, h, v, t, !1)
                    }
                else
                    v !== i[d] && (i[d] = v,
                    u = !0)
            }
        }
    } else {
        gq(t, e, a, i) && (u = !0);
        let c;
        for (const f in l)
            (!e || !mn(e, f) && ((c = ih(f)) === f || !mn(e, c))) && (s ? n && (n[f] !== void 0 || n[c] !== void 0) && (a[f] = R3(s, l, f, void 0, t, !0)) : delete a[f]);
        if (i !== l)
            for (const f in i)
                (!e || !mn(e, f) && !0) && (delete i[f],
                u = !0)
    }
    u && os(t, "set", "$attrs")
}
function gq(t, e, n, r) {
    const [a,i] = t.propsOptions;
    let o = !1, l;
    if (e)
        for (let s in e) {
            if (ob(s))
                continue;
            const u = e[s];
            let c;
            a && mn(a, c = Va(s)) ? !i || !i.includes(c) ? n[c] = u : (l || (l = {}))[c] = u : _C(t.emitsOptions, s) || (!(s in r) || u !== r[s]) && (r[s] = u,
            o = !0)
        }
    if (i) {
        const s = _t(n)
          , u = l || Yn;
        for (let c = 0; c < i.length; c++) {
            const f = i[c];
            n[f] = R3(a, s, f, u[f], t, !mn(u, f))
        }
    }
    return o
}
function R3(t, e, n, r, a, i) {
    const o = t[n];
    if (o != null) {
        const l = mn(o, "default");
        if (l && r === void 0) {
            const s = o.default;
            if (o.type !== Function && !o.skipFactory && Xt(s)) {
                const {propsDefaults: u} = a;
                n in u ? r = u[n] : (Iv(a),
                r = u[n] = s.call(null, e),
                ff())
            } else
                r = s
        }
        o[0] && (i && !l ? r = !1 : o[1] && (r === "" || r === ih(n)) && (r = !0))
    }
    return r
}
function mq(t, e, n=!1) {
    const r = e.propsCache
      , a = r.get(t);
    if (a)
        return a;
    const i = t.props
      , o = {}
      , l = [];
    let s = !1;
    if (!Xt(t)) {
        const c = f=>{
            s = !0;
            const [d,v] = mq(f, e, !0);
            yr(o, d),
            v && l.push(...v)
        }
        ;
        !n && e.mixins.length && e.mixins.forEach(c),
        t.extends && c(t.extends),
        t.mixins && t.mixins.forEach(c)
    }
    if (!i && !s)
        return Gn(t) && r.set(t, ov),
        ov;
    if (Ft(i))
        for (let c = 0; c < i.length; c++) {
            const f = Va(i[c]);
            IR(f) && (o[f] = Yn)
        }
    else if (i)
        for (const c in i) {
            const f = Va(c);
            if (IR(f)) {
                const d = i[c]
                  , v = o[f] = Ft(d) || Xt(d) ? {
                    type: d
                } : yr({}, d);
                if (v) {
                    const h = DR(Boolean, v.type)
                      , p = DR(String, v.type);
                    v[0] = h > -1,
                    v[1] = p < 0 || h < p,
                    (h > -1 || mn(v, "default")) && l.push(f)
                }
            }
        }
    const u = [o, l];
    return Gn(t) && r.set(t, u),
    u
}
function IR(t) {
    return t[0] !== "$"
}
function kR(t) {
    const e = t && t.toString().match(/^\s*(function|class) (\w+)/);
    return e ? e[2] : t === null ? "null" : ""
}
function OR(t, e) {
    return kR(t) === kR(e)
}
function DR(t, e) {
    return Ft(e) ? e.findIndex(n=>OR(n, t)) : Xt(e) && OR(e, t) ? 0 : -1
}
const yq = t=>t[0] === "_" || t === "$stable"
  , oO = t=>Ft(t) ? t.map(Zo) : [Zo(t)]
  , Rve = (t,e,n)=>{
    if (e._n)
        return e;
    const r = Js((...a)=>oO(e(...a)), n);
    return r._c = !1,
    r
}
  , bq = (t,e,n)=>{
    const r = t._ctx;
    for (const a in t) {
        if (yq(a))
            continue;
        const i = t[a];
        if (Xt(i))
            e[a] = Rve(a, i, r);
        else if (i != null) {
            const o = oO(i);
            e[a] = ()=>o
        }
    }
}
  , xq = (t,e)=>{
    const n = oO(e);
    t.slots.default = ()=>n
}
  , Nve = (t,e)=>{
    if (t.vnode.shapeFlag & 32) {
        const n = e._;
        n ? (t.slots = _t(e),
        yx(e, "_", n)) : bq(e, t.slots = {})
    } else
        t.slots = {},
        e && xq(t, e);
    yx(t.slots, AC, 1)
}
  , $ve = (t,e,n)=>{
    const {vnode: r, slots: a} = t;
    let i = !0
      , o = Yn;
    if (r.shapeFlag & 32) {
        const l = e._;
        l ? n && l === 1 ? i = !1 : (yr(a, e),
        !n && l === 1 && delete a._) : (i = !e.$stable,
        bq(e, a)),
        o = e
    } else
        e && (xq(t, e),
        o = {
            default: 1
        });
    if (i)
        for (const l in a)
            !yq(l) && !(l in o) && delete a[l]
}
;
function N3(t, e, n, r, a=!1) {
    if (Ft(t)) {
        t.forEach((d,v)=>N3(d, e && (Ft(e) ? e[v] : e), n, r, a));
        return
    }
    if (ig(r) && !a)
        return;
    const i = r.shapeFlag & 4 ? IC(r.component) || r.component.proxy : r.el
      , o = a ? null : i
      , {i: l, r: s} = t
      , u = e && e.r
      , c = l.refs === Yn ? l.refs = {} : l.refs
      , f = l.setupState;
    if (u != null && u !== s && (rr(u) ? (c[u] = null,
    mn(f, u) && (f[u] = null)) : Hn(u) && (u.value = null)),
    Xt(s))
        hu(s, l, 12, [o, c]);
    else {
        const d = rr(s)
          , v = Hn(s);
        if (d || v) {
            const h = ()=>{
                if (t.f) {
                    const p = d ? mn(f, s) ? f[s] : c[s] : s.value;
                    a ? Ft(p) && Vk(p, i) : Ft(p) ? p.includes(i) || p.push(i) : d ? (c[s] = [i],
                    mn(f, s) && (f[s] = c[s])) : (s.value = [i],
                    t.k && (c[t.k] = s.value))
                } else
                    d ? (c[s] = o,
                    mn(f, s) && (f[s] = o)) : v && (s.value = o,
                    t.k && (c[t.k] = o))
            }
            ;
            o ? (h.id = -1,
            La(h, n)) : h()
        }
    }
}
const La = fve;
function Fve(t) {
    return Bve(t)
}
function Bve(t, e) {
    const n = M3();
    n.__VUE__ = !0;
    const {insert: r, remove: a, patchProp: i, createElement: o, createText: l, createComment: s, setText: u, setElementText: c, parentNode: f, nextSibling: d, setScopeId: v=fo, insertStaticContent: h} = t
      , p = (q,F,H,ee=null,re=null,ue=null,ve=!1,fe=null,ce=!!F.dynamicChildren)=>{
        if (q === F)
            return;
        q && !Vc(q, F) && (ee = Y(q),
        G(q, re, ue, !0),
        q = null),
        F.patchFlag === -2 && (ce = !1,
        F.dynamicChildren = null);
        const {type: le, ref: oe, shapeFlag: se} = F;
        switch (le) {
        case gs:
            g(q, F, H, ee);
            break;
        case ai:
            m(q, F, H, ee);
            break;
        case q2:
            q == null && y(F, H, ee, ve);
            break;
        case xt:
            O(q, F, H, ee, re, ue, ve, fe, ce);
            break;
        default:
            se & 1 ? C(q, F, H, ee, re, ue, ve, fe, ce) : se & 6 ? k(q, F, H, ee, re, ue, ve, fe, ce) : (se & 64 || se & 128) && le.process(q, F, H, ee, re, ue, ve, fe, ce, ne)
        }
        oe != null && re && N3(oe, q && q.ref, ue, F || q, !F)
    }
      , g = (q,F,H,ee)=>{
        if (q == null)
            r(F.el = l(F.children), H, ee);
        else {
            const re = F.el = q.el;
            F.children !== q.children && u(re, F.children)
        }
    }
      , m = (q,F,H,ee)=>{
        q == null ? r(F.el = s(F.children || ""), H, ee) : F.el = q.el
    }
      , y = (q,F,H,ee)=>{
        [q.el,q.anchor] = h(q.children, F, H, ee, q.el, q.anchor)
    }
      , b = ({el: q, anchor: F},H,ee)=>{
        let re;
        for (; q && q !== F; )
            re = d(q),
            r(q, H, ee),
            q = re;
        r(F, H, ee)
    }
      , x = ({el: q, anchor: F})=>{
        let H;
        for (; q && q !== F; )
            H = d(q),
            a(q),
            q = H;
        a(F)
    }
      , C = (q,F,H,ee,re,ue,ve,fe,ce)=>{
        ve = ve || F.type === "svg",
        q == null ? S(F, H, ee, re, ue, ve, fe, ce) : P(q, F, re, ue, ve, fe, ce)
    }
      , S = (q,F,H,ee,re,ue,ve,fe)=>{
        let ce, le;
        const {type: oe, props: se, shapeFlag: xe, transition: Pe, dirs: Fe} = q;
        if (ce = q.el = o(q.type, ue, se && se.is, se),
        xe & 8 ? c(ce, q.children) : xe & 16 && T(q.children, ce, null, ee, re, ue && oe !== "foreignObject", ve, fe),
        Fe && Zu(q, null, ee, "created"),
        w(ce, q, q.scopeId, ve, ee),
        se) {
            for (const _e in se)
                _e !== "value" && !ob(_e) && i(ce, _e, null, se[_e], ue, q.children, ee, re, X);
            "value"in se && i(ce, "value", null, se.value),
            (le = se.onVnodeBeforeMount) && $o(le, ee, q)
        }
        Fe && Zu(q, null, ee, "beforeMount");
        const ze = (!re || re && !re.pendingBranch) && Pe && !Pe.persisted;
        ze && Pe.beforeEnter(ce),
        r(ce, F, H),
        ((le = se && se.onVnodeMounted) || ze || Fe) && La(()=>{
            le && $o(le, ee, q),
            ze && Pe.enter(ce),
            Fe && Zu(q, null, ee, "mounted")
        }
        , re)
    }
      , w = (q,F,H,ee,re)=>{
        if (H && v(q, H),
        ee)
            for (let ue = 0; ue < ee.length; ue++)
                v(q, ee[ue]);
        if (re) {
            let ue = re.subTree;
            if (F === ue) {
                const ve = re.vnode;
                w(q, ve, ve.scopeId, ve.slotScopeIds, re.parent)
            }
        }
    }
      , T = (q,F,H,ee,re,ue,ve,fe,ce=0)=>{
        for (let le = ce; le < q.length; le++) {
            const oe = q[le] = fe ? Ks(q[le]) : Zo(q[le]);
            p(null, oe, F, H, ee, re, ue, ve, fe)
        }
    }
      , P = (q,F,H,ee,re,ue,ve)=>{
        const fe = F.el = q.el;
        let {patchFlag: ce, dynamicChildren: le, dirs: oe} = F;
        ce |= q.patchFlag & 16;
        const se = q.props || Yn
          , xe = F.props || Yn;
        let Pe;
        H && Qu(H, !1),
        (Pe = xe.onVnodeBeforeUpdate) && $o(Pe, H, F, q),
        oe && Zu(F, q, H, "beforeUpdate"),
        H && Qu(H, !0);
        const Fe = re && F.type !== "foreignObject";
        if (le ? M(q.dynamicChildren, le, fe, H, ee, Fe, ue) : ve || R(q, F, fe, null, H, ee, Fe, ue, !1),
        ce > 0) {
            if (ce & 16)
                A(fe, F, se, xe, H, ee, re);
            else if (ce & 2 && se.class !== xe.class && i(fe, "class", null, xe.class, re),
            ce & 4 && i(fe, "style", se.style, xe.style, re),
            ce & 8) {
                const ze = F.dynamicProps;
                for (let _e = 0; _e < ze.length; _e++) {
                    const me = ze[_e]
                      , Ie = se[me]
                      , Oe = xe[me];
                    (Oe !== Ie || me === "value") && i(fe, me, Ie, Oe, re, q.children, H, ee, X)
                }
            }
            ce & 1 && q.children !== F.children && c(fe, F.children)
        } else
            !ve && le == null && A(fe, F, se, xe, H, ee, re);
        ((Pe = xe.onVnodeUpdated) || oe) && La(()=>{
            Pe && $o(Pe, H, F, q),
            oe && Zu(F, q, H, "updated")
        }
        , ee)
    }
      , M = (q,F,H,ee,re,ue,ve)=>{
        for (let fe = 0; fe < F.length; fe++) {
            const ce = q[fe]
              , le = F[fe]
              , oe = ce.el && (ce.type === xt || !Vc(ce, le) || ce.shapeFlag & 70) ? f(ce.el) : H;
            p(ce, le, oe, null, ee, re, ue, ve, !0)
        }
    }
      , A = (q,F,H,ee,re,ue,ve)=>{
        if (H !== ee) {
            if (H !== Yn)
                for (const fe in H)
                    !ob(fe) && !(fe in ee) && i(q, fe, H[fe], null, ve, F.children, re, ue, X);
            for (const fe in ee) {
                if (ob(fe))
                    continue;
                const ce = ee[fe]
                  , le = H[fe];
                ce !== le && fe !== "value" && i(q, fe, le, ce, ve, F.children, re, ue, X)
            }
            "value"in ee && i(q, "value", H.value, ee.value)
        }
    }
      , O = (q,F,H,ee,re,ue,ve,fe,ce)=>{
        const le = F.el = q ? q.el : l("")
          , oe = F.anchor = q ? q.anchor : l("");
        let {patchFlag: se, dynamicChildren: xe, slotScopeIds: Pe} = F;
        Pe && (fe = fe ? fe.concat(Pe) : Pe),
        q == null ? (r(le, H, ee),
        r(oe, H, ee),
        T(F.children, H, oe, re, ue, ve, fe, ce)) : se > 0 && se & 64 && xe && q.dynamicChildren ? (M(q.dynamicChildren, xe, H, re, ue, ve, fe),
        (F.key != null || re && F === re.subTree) && lO(q, F, !0)) : R(q, F, H, oe, re, ue, ve, fe, ce)
    }
      , k = (q,F,H,ee,re,ue,ve,fe,ce)=>{
        F.slotScopeIds = fe,
        q == null ? F.shapeFlag & 512 ? re.ctx.activate(F, H, ee, ve, ce) : D(F, H, ee, re, ue, ve, ce) : E(q, F, ce)
    }
      , D = (q,F,H,ee,re,ue,ve)=>{
        const fe = q.component = Yve(q, ee, re);
        if (fm(q) && (fe.ctx.renderer = ne),
        qve(fe),
        fe.asyncDep) {
            if (re && re.registerDep(fe, L),
            !q.el) {
                const ce = fe.subTree = _(ai);
                m(null, ce, F, H)
            }
            return
        }
        L(fe, q, F, H, re, ue, ve)
    }
      , E = (q,F,H)=>{
        const ee = F.component = q.component;
        if (sve(q, F, H))
            if (ee.asyncDep && !ee.asyncResolved) {
                N(ee, F, H);
                return
            } else
                ee.next = F,
                Jde(ee.update),
                ee.update();
        else
            F.el = q.el,
            ee.vnode = F
    }
      , L = (q,F,H,ee,re,ue,ve)=>{
        const fe = ()=>{
            if (q.isMounted) {
                let {next: oe, bu: se, u: xe, parent: Pe, vnode: Fe} = q, ze = oe, _e;
                Qu(q, !1),
                oe ? (oe.el = Fe.el,
                N(q, oe, ve)) : oe = Fe,
                se && W2(se),
                (_e = oe.props && oe.props.onVnodeBeforeUpdate) && $o(_e, Pe, oe, Fe),
                Qu(q, !0);
                const me = G2(q)
                  , Ie = q.subTree;
                q.subTree = me,
                p(Ie, me, f(Ie.el), Y(Ie), q, re, ue),
                oe.el = me.el,
                ze === null && uve(q, me.el),
                xe && La(xe, re),
                (_e = oe.props && oe.props.onVnodeUpdated) && La(()=>$o(_e, Pe, oe, Fe), re)
            } else {
                let oe;
                const {el: se, props: xe} = F
                  , {bm: Pe, m: Fe, parent: ze} = q
                  , _e = ig(F);
                if (Qu(q, !1),
                Pe && W2(Pe),
                !_e && (oe = xe && xe.onVnodeBeforeMount) && $o(oe, ze, F),
                Qu(q, !0),
                se && ae) {
                    const me = ()=>{
                        q.subTree = G2(q),
                        ae(se, q.subTree, q, re, null)
                    }
                    ;
                    _e ? F.type.__asyncLoader().then(()=>!q.isUnmounted && me()) : me()
                } else {
                    const me = q.subTree = G2(q);
                    p(null, me, H, ee, q, re, ue),
                    F.el = me.el
                }
                if (Fe && La(Fe, re),
                !_e && (oe = xe && xe.onVnodeMounted)) {
                    const me = F;
                    La(()=>$o(oe, ze, me), re)
                }
                (F.shapeFlag & 256 || ze && ig(ze.vnode) && ze.vnode.shapeFlag & 256) && q.a && La(q.a, re),
                q.isMounted = !0,
                F = H = ee = null
            }
        }
          , ce = q.effect = new Kk(fe,()=>wC(le),q.scope)
          , le = q.update = ()=>ce.run();
        le.id = q.uid,
        Qu(q, !0),
        le()
    }
      , N = (q,F,H)=>{
        F.component = q;
        const ee = q.vnode.props;
        q.vnode = F,
        q.next = null,
        Lve(q, F.props, ee, H),
        $ve(q, F.children, H),
        oh(),
        xR(),
        lh()
    }
      , R = (q,F,H,ee,re,ue,ve,fe,ce=!1)=>{
        const le = q && q.children
          , oe = q ? q.shapeFlag : 0
          , se = F.children
          , {patchFlag: xe, shapeFlag: Pe} = F;
        if (xe > 0) {
            if (xe & 128) {
                W(le, se, H, ee, re, ue, ve, fe, ce);
                return
            } else if (xe & 256) {
                $(le, se, H, ee, re, ue, ve, fe, ce);
                return
            }
        }
        Pe & 8 ? (oe & 16 && X(le, re, ue),
        se !== le && c(H, se)) : oe & 16 ? Pe & 16 ? W(le, se, H, ee, re, ue, ve, fe, ce) : X(le, re, ue, !0) : (oe & 8 && c(H, ""),
        Pe & 16 && T(se, H, ee, re, ue, ve, fe, ce))
    }
      , $ = (q,F,H,ee,re,ue,ve,fe,ce)=>{
        q = q || ov,
        F = F || ov;
        const le = q.length
          , oe = F.length
          , se = Math.min(le, oe);
        let xe;
        for (xe = 0; xe < se; xe++) {
            const Pe = F[xe] = ce ? Ks(F[xe]) : Zo(F[xe]);
            p(q[xe], Pe, H, null, re, ue, ve, fe, ce)
        }
        le > oe ? X(q, re, ue, !0, !1, se) : T(F, H, ee, re, ue, ve, fe, ce, se)
    }
      , W = (q,F,H,ee,re,ue,ve,fe,ce)=>{
        let le = 0;
        const oe = F.length;
        let se = q.length - 1
          , xe = oe - 1;
        for (; le <= se && le <= xe; ) {
            const Pe = q[le]
              , Fe = F[le] = ce ? Ks(F[le]) : Zo(F[le]);
            if (Vc(Pe, Fe))
                p(Pe, Fe, H, null, re, ue, ve, fe, ce);
            else
                break;
            le++
        }
        for (; le <= se && le <= xe; ) {
            const Pe = q[se]
              , Fe = F[xe] = ce ? Ks(F[xe]) : Zo(F[xe]);
            if (Vc(Pe, Fe))
                p(Pe, Fe, H, null, re, ue, ve, fe, ce);
            else
                break;
            se--,
            xe--
        }
        if (le > se) {
            if (le <= xe) {
                const Pe = xe + 1
                  , Fe = Pe < oe ? F[Pe].el : ee;
                for (; le <= xe; )
                    p(null, F[le] = ce ? Ks(F[le]) : Zo(F[le]), H, Fe, re, ue, ve, fe, ce),
                    le++
            }
        } else if (le > xe)
            for (; le <= se; )
                G(q[le], re, ue, !0),
                le++;
        else {
            const Pe = le
              , Fe = le
              , ze = new Map;
            for (le = Fe; le <= xe; le++) {
                const be = F[le] = ce ? Ks(F[le]) : Zo(F[le]);
                be.key != null && ze.set(be.key, le)
            }
            let _e, me = 0;
            const Ie = xe - Fe + 1;
            let Oe = !1
              , Ce = 0;
            const pe = new Array(Ie);
            for (le = 0; le < Ie; le++)
                pe[le] = 0;
            for (le = Pe; le <= se; le++) {
                const be = q[le];
                if (me >= Ie) {
                    G(be, re, ue, !0);
                    continue
                }
                let Ae;
                if (be.key != null)
                    Ae = ze.get(be.key);
                else
                    for (_e = Fe; _e <= xe; _e++)
                        if (pe[_e - Fe] === 0 && Vc(be, F[_e])) {
                            Ae = _e;
                            break
                        }
                Ae === void 0 ? G(be, re, ue, !0) : (pe[Ae - Fe] = le + 1,
                Ae >= Ce ? Ce = Ae : Oe = !0,
                p(be, F[Ae], H, null, re, ue, ve, fe, ce),
                me++)
            }
            const ye = Oe ? Vve(pe) : ov;
            for (_e = ye.length - 1,
            le = Ie - 1; le >= 0; le--) {
                const be = Fe + le
                  , Ae = F[be]
                  , Re = be + 1 < oe ? F[be + 1].el : ee;
                pe[le] === 0 ? p(null, Ae, H, Re, re, ue, ve, fe, ce) : Oe && (_e < 0 || le !== ye[_e] ? B(Ae, H, Re, 2) : _e--)
            }
        }
    }
      , B = (q,F,H,ee,re=null)=>{
        const {el: ue, type: ve, transition: fe, children: ce, shapeFlag: le} = q;
        if (le & 6) {
            B(q.component.subTree, F, H, ee);
            return
        }
        if (le & 128) {
            q.suspense.move(F, H, ee);
            return
        }
        if (le & 64) {
            ve.move(q, F, H, ne);
            return
        }
        if (ve === xt) {
            r(ue, F, H);
            for (let se = 0; se < ce.length; se++)
                B(ce[se], F, H, ee);
            r(q.anchor, F, H);
            return
        }
        if (ve === q2) {
            b(q, F, H);
            return
        }
        if (ee !== 2 && le & 1 && fe)
            if (ee === 0)
                fe.beforeEnter(ue),
                r(ue, F, H),
                La(()=>fe.enter(ue), re);
            else {
                const {leave: se, delayLeave: xe, afterLeave: Pe} = fe
                  , Fe = ()=>r(ue, F, H)
                  , ze = ()=>{
                    se(ue, ()=>{
                        Fe(),
                        Pe && Pe()
                    }
                    )
                }
                ;
                xe ? xe(ue, Fe, ze) : ze()
            }
        else
            r(ue, F, H)
    }
      , G = (q,F,H,ee=!1,re=!1)=>{
        const {type: ue, props: ve, ref: fe, children: ce, dynamicChildren: le, shapeFlag: oe, patchFlag: se, dirs: xe} = q;
        if (fe != null && N3(fe, null, H, q, !0),
        oe & 256) {
            F.ctx.deactivate(q);
            return
        }
        const Pe = oe & 1 && xe
          , Fe = !ig(q);
        let ze;
        if (Fe && (ze = ve && ve.onVnodeBeforeUnmount) && $o(ze, F, q),
        oe & 6)
            U(q.component, H, ee);
        else {
            if (oe & 128) {
                q.suspense.unmount(H, ee);
                return
            }
            Pe && Zu(q, null, F, "beforeUnmount"),
            oe & 64 ? q.type.remove(q, F, H, re, ne, ee) : le && (ue !== xt || se > 0 && se & 64) ? X(le, F, H, !1, !0) : (ue === xt && se & 384 || !re && oe & 16) && X(ce, F, H),
            ee && K(q)
        }
        (Fe && (ze = ve && ve.onVnodeUnmounted) || Pe) && La(()=>{
            ze && $o(ze, F, q),
            Pe && Zu(q, null, F, "unmounted")
        }
        , H)
    }
      , K = q=>{
        const {type: F, el: H, anchor: ee, transition: re} = q;
        if (F === xt) {
            V(H, ee);
            return
        }
        if (F === q2) {
            x(q);
            return
        }
        const ue = ()=>{
            a(H),
            re && !re.persisted && re.afterLeave && re.afterLeave()
        }
        ;
        if (q.shapeFlag & 1 && re && !re.persisted) {
            const {leave: ve, delayLeave: fe} = re
              , ce = ()=>ve(H, ue);
            fe ? fe(q.el, ue, ce) : ce()
        } else
            ue()
    }
      , V = (q,F)=>{
        let H;
        for (; q !== F; )
            H = d(q),
            a(q),
            q = H;
        a(F)
    }
      , U = (q,F,H)=>{
        const {bum: ee, scope: re, update: ue, subTree: ve, um: fe} = q;
        ee && W2(ee),
        re.stop(),
        ue && (ue.active = !1,
        G(ve, q, F, H)),
        fe && La(fe, F),
        La(()=>{
            q.isUnmounted = !0
        }
        , F),
        F && F.pendingBranch && !F.isUnmounted && q.asyncDep && !q.asyncResolved && q.suspenseId === F.pendingId && (F.deps--,
        F.deps === 0 && F.resolve())
    }
      , X = (q,F,H,ee=!1,re=!1,ue=0)=>{
        for (let ve = ue; ve < q.length; ve++)
            G(q[ve], F, H, ee, re)
    }
      , Y = q=>q.shapeFlag & 6 ? Y(q.component.subTree) : q.shapeFlag & 128 ? q.suspense.next() : d(q.anchor || q.el)
      , te = (q,F,H)=>{
        q == null ? F._vnode && G(F._vnode, null, null, !0) : p(F._vnode || null, q, F, null, null, null, H),
        xR(),
        eq(),
        F._vnode = q
    }
      , ne = {
        p,
        um: G,
        m: B,
        r: K,
        mt: D,
        mc: T,
        pc: R,
        pbc: M,
        n: Y,
        o: t
    };
    let ie, ae;
    return e && ([ie,ae] = e(ne)),
    {
        render: te,
        hydrate: ie,
        createApp: Ove(te, ie)
    }
}
function Qu({effect: t, update: e}, n) {
    t.allowRecurse = e.allowRecurse = n
}
function lO(t, e, n=!1) {
    const r = t.children
      , a = e.children;
    if (Ft(r) && Ft(a))
        for (let i = 0; i < r.length; i++) {
            const o = r[i];
            let l = a[i];
            l.shapeFlag & 1 && !l.dynamicChildren && ((l.patchFlag <= 0 || l.patchFlag === 32) && (l = a[i] = Ks(a[i]),
            l.el = o.el),
            n || lO(o, l)),
            l.type === gs && (l.el = o.el)
        }
}
function Vve(t) {
    const e = t.slice()
      , n = [0];
    let r, a, i, o, l;
    const s = t.length;
    for (r = 0; r < s; r++) {
        const u = t[r];
        if (u !== 0) {
            if (a = n[n.length - 1],
            t[a] < u) {
                e[r] = a,
                n.push(r);
                continue
            }
            for (i = 0,
            o = n.length - 1; i < o; )
                l = i + o >> 1,
                t[n[l]] < u ? i = l + 1 : o = l;
            u < t[n[i]] && (i > 0 && (e[r] = n[i - 1]),
            n[i] = r)
        }
    }
    for (i = n.length,
    o = n[i - 1]; i-- > 0; )
        n[i] = o,
        o = e[o];
    return n
}
const zve = t=>t.__isTeleport
  , lg = t=>t && (t.disabled || t.disabled === "")
  , ER = t=>typeof SVGElement != "undefined" && t instanceof SVGElement
  , $3 = (t,e)=>{
    const n = t && t.to;
    return rr(n) ? e ? e(n) : null : n
}
  , Hve = {
    __isTeleport: !0,
    process(t, e, n, r, a, i, o, l, s, u) {
        const {mc: c, pc: f, pbc: d, o: {insert: v, querySelector: h, createText: p, createComment: g}} = u
          , m = lg(e.props);
        let {shapeFlag: y, children: b, dynamicChildren: x} = e;
        if (t == null) {
            const C = e.el = p("")
              , S = e.anchor = p("");
            v(C, n, r),
            v(S, n, r);
            const w = e.target = $3(e.props, h)
              , T = e.targetAnchor = p("");
            w && (v(T, w),
            o = o || ER(w));
            const P = (M,A)=>{
                y & 16 && c(b, M, A, a, i, o, l, s)
            }
            ;
            m ? P(n, S) : w && P(w, T)
        } else {
            e.el = t.el;
            const C = e.anchor = t.anchor
              , S = e.target = t.target
              , w = e.targetAnchor = t.targetAnchor
              , T = lg(t.props)
              , P = T ? n : S
              , M = T ? C : w;
            if (o = o || ER(S),
            x ? (d(t.dynamicChildren, x, P, a, i, o, l),
            lO(t, e, !0)) : s || f(t, e, P, M, a, i, o, l, !1),
            m)
                T || xy(e, n, C, u, 1);
            else if ((e.props && e.props.to) !== (t.props && t.props.to)) {
                const A = e.target = $3(e.props, h);
                A && xy(e, A, null, u, 0)
            } else
                T && xy(e, S, w, u, 1)
        }
        Sq(e)
    },
    remove(t, e, n, r, {um: a, o: {remove: i}}, o) {
        const {shapeFlag: l, children: s, anchor: u, targetAnchor: c, target: f, props: d} = t;
        if (f && i(c),
        (o || !lg(d)) && (i(u),
        l & 16))
            for (let v = 0; v < s.length; v++) {
                const h = s[v];
                a(h, e, n, !0, !!h.dynamicChildren)
            }
    },
    move: xy,
    hydrate: jve
};
function xy(t, e, n, {o: {insert: r}, m: a}, i=2) {
    i === 0 && r(t.targetAnchor, e, n);
    const {el: o, anchor: l, shapeFlag: s, children: u, props: c} = t
      , f = i === 2;
    if (f && r(o, e, n),
    (!f || lg(c)) && s & 16)
        for (let d = 0; d < u.length; d++)
            a(u[d], e, n, 2);
    f && r(l, e, n)
}
function jve(t, e, n, r, a, i, {o: {nextSibling: o, parentNode: l, querySelector: s}}, u) {
    const c = e.target = $3(e.props, s);
    if (c) {
        const f = c._lpa || c.firstChild;
        if (e.shapeFlag & 16)
            if (lg(e.props))
                e.anchor = u(o(t), e, l(t), n, r, a, i),
                e.targetAnchor = f;
            else {
                e.anchor = o(t);
                let d = f;
                for (; d; )
                    if (d = o(d),
                    d && d.nodeType === 8 && d.data === "teleport anchor") {
                        e.targetAnchor = d,
                        c._lpa = e.targetAnchor && o(e.targetAnchor);
                        break
                    }
                u(f, e, c, n, r, a, i)
            }
        Sq(e)
    }
    return e.anchor && o(e.anchor)
}
const sO = Hve;
function Sq(t) {
    const e = t.ctx;
    if (e && e.ut) {
        let n = t.children[0].el;
        for (; n !== t.targetAnchor; )
            n.nodeType === 1 && n.setAttribute("data-v-owner", e.uid),
            n = n.nextSibling;
        e.ut()
    }
}
const xt = Symbol.for("v-fgt")
  , gs = Symbol.for("v-txt")
  , ai = Symbol.for("v-cmt")
  , q2 = Symbol.for("v-stc")
  , sg = [];
let lo = null;
function Xo(t=!1) {
    sg.push(lo = t ? null : [])
}
function Wve() {
    sg.pop(),
    lo = sg[sg.length - 1] || null
}
let n0 = 1;
function LR(t) {
    n0 += t
}
function Cq(t) {
    return t.dynamicChildren = n0 > 0 ? lo || ov : null,
    Wve(),
    n0 > 0 && lo && lo.push(t),
    t
}
function Sy(t, e, n, r, a, i) {
    return Cq(_q(t, e, n, r, a, i, !0))
}
function Av(t, e, n, r, a) {
    return Cq(_(t, e, n, r, a, !0))
}
function Hr(t) {
    return t ? t.__v_isVNode === !0 : !1
}
function Vc(t, e) {
    return t.type === e.type && t.key === e.key
}
const AC = "__vInternal"
  , wq = ({key: t})=>t != null ? t : null
  , sb = ({ref: t, ref_key: e, ref_for: n})=>(typeof t == "number" && (t = "" + t),
t != null ? rr(t) || Hn(t) || Xt(t) ? {
    i: zr,
    r: t,
    k: e,
    f: !!n
} : t : null);
function _q(t, e=null, n=null, r=0, a=null, i=t === xt ? 0 : 1, o=!1, l=!1) {
    const s = {
        __v_isVNode: !0,
        __v_skip: !0,
        type: t,
        props: e,
        key: e && wq(e),
        ref: e && sb(e),
        scopeId: TC,
        slotScopeIds: null,
        children: n,
        component: null,
        suspense: null,
        ssContent: null,
        ssFallback: null,
        dirs: null,
        transition: null,
        el: null,
        anchor: null,
        target: null,
        targetAnchor: null,
        staticCount: 0,
        shapeFlag: i,
        patchFlag: r,
        dynamicProps: a,
        dynamicChildren: null,
        appContext: null,
        ctx: zr
    };
    return l ? (uO(s, n),
    i & 128 && t.normalize(s)) : n && (s.shapeFlag |= rr(n) ? 8 : 16),
    n0 > 0 && !o && lo && (s.patchFlag > 0 || i & 6) && s.patchFlag !== 32 && lo.push(s),
    s
}
const _ = Gve;
function Gve(t, e=null, n=null, r=0, a=null, i=!1) {
    if ((!t || t === cq) && (t = ai),
    Hr(t)) {
        const l = Zr(t, e, !0);
        return n && uO(l, n),
        n0 > 0 && !i && lo && (l.shapeFlag & 6 ? lo[lo.indexOf(t)] = l : lo.push(l)),
        l.patchFlag |= -2,
        l
    }
    if (Jve(t) && (t = t.__vccOpts),
    e) {
        e = Tq(e);
        let {class: l, style: s} = e;
        l && !rr(l) && (e.class = Pv(l)),
        Gn(s) && (KY(s) && !Ft(s) && (s = yr({}, s)),
        e.style = sm(s))
    }
    const o = rr(t) ? 1 : cve(t) ? 128 : zve(t) ? 64 : Gn(t) ? 4 : Xt(t) ? 2 : 0;
    return _q(t, e, n, r, a, o, i, !0)
}
function Tq(t) {
    return t ? KY(t) || AC in t ? yr({}, t) : t : null
}
function Zr(t, e, n=!1) {
    const {props: r, ref: a, patchFlag: i, children: o} = t
      , l = e ? cO(r || {}, e) : r;
    return {
        __v_isVNode: !0,
        __v_skip: !0,
        type: t.type,
        props: l,
        key: l && wq(l),
        ref: e && e.ref ? n && a ? Ft(a) ? a.concat(sb(e)) : [a, sb(e)] : sb(e) : a,
        scopeId: t.scopeId,
        slotScopeIds: t.slotScopeIds,
        children: o,
        target: t.target,
        targetAnchor: t.targetAnchor,
        staticCount: t.staticCount,
        shapeFlag: t.shapeFlag,
        patchFlag: e && t.type !== xt ? i === -1 ? 16 : i | 16 : i,
        dynamicProps: t.dynamicProps,
        dynamicChildren: t.dynamicChildren,
        appContext: t.appContext,
        dirs: t.dirs,
        transition: t.transition,
        component: t.component,
        suspense: t.suspense,
        ssContent: t.ssContent && Zr(t.ssContent),
        ssFallback: t.ssFallback && Zr(t.ssFallback),
        el: t.el,
        anchor: t.anchor,
        ctx: t.ctx,
        ce: t.ce
    }
}
function Fi(t=" ", e=0) {
    return _(gs, null, t, e)
}
function RR(t="", e=!1) {
    return e ? (Xo(),
    Av(ai, null, t)) : _(ai, null, t)
}
function Zo(t) {
    return t == null || typeof t == "boolean" ? _(ai) : Ft(t) ? _(xt, null, t.slice()) : typeof t == "object" ? Ks(t) : _(gs, null, String(t))
}
function Ks(t) {
    return t.el === null && t.patchFlag !== -1 || t.memo ? t : Zr(t)
}
function uO(t, e) {
    let n = 0;
    const {shapeFlag: r} = t;
    if (e == null)
        e = null;
    else if (Ft(e))
        n = 16;
    else if (typeof e == "object")
        if (r & 65) {
            const a = e.default;
            a && (a._c && (a._d = !1),
            uO(t, a()),
            a._c && (a._d = !0));
            return
        } else {
            n = 32;
            const a = e._;
            !a && !(AC in e) ? e._ctx = zr : a === 3 && zr && (zr.slots._ === 1 ? e._ = 1 : (e._ = 2,
            t.patchFlag |= 1024))
        }
    else
        Xt(e) ? (e = {
            default: e,
            _ctx: zr
        },
        n = 32) : (e = String(e),
        r & 64 ? (n = 16,
        e = [Fi(e)]) : n = 8);
    t.children = e,
    t.shapeFlag |= n
}
function cO(...t) {
    const e = {};
    for (let n = 0; n < t.length; n++) {
        const r = t[n];
        for (const a in r)
            if (a === "class")
                e.class !== r.class && (e.class = Pv([e.class, r.class]));
            else if (a === "style")
                e.style = sm([e.style, r.style]);
            else if (gC(a)) {
                const i = e[a]
                  , o = r[a];
                o && i !== o && !(Ft(i) && i.includes(o)) && (e[a] = i ? [].concat(i, o) : o)
            } else
                a !== "" && (e[a] = r[a])
    }
    return e
}
function $o(t, e, n, r=null) {
    Ei(t, e, 7, [n, r])
}
const Kve = pq();
let Uve = 0;
function Yve(t, e, n) {
    const r = t.type
      , a = (e ? e.appContext : t.appContext) || Kve
      , i = {
        uid: Uve++,
        vnode: t,
        type: r,
        parent: e,
        appContext: a,
        root: null,
        next: null,
        subTree: null,
        effect: null,
        update: null,
        scope: new RY(!0),
        render: null,
        proxy: null,
        exposed: null,
        exposeProxy: null,
        withProxy: null,
        provides: e ? e.provides : Object.create(a.provides),
        accessCache: null,
        renderCache: [],
        components: null,
        directives: null,
        propsOptions: mq(r, a),
        emitsOptions: nq(r, a),
        emit: null,
        emitted: null,
        propsDefaults: Yn,
        inheritAttrs: r.inheritAttrs,
        ctx: Yn,
        data: Yn,
        props: Yn,
        attrs: Yn,
        slots: Yn,
        refs: Yn,
        setupState: Yn,
        setupContext: null,
        attrsProxy: null,
        slotsProxy: null,
        suspense: n,
        suspenseId: n ? n.pendingId : 0,
        asyncDep: null,
        asyncResolved: !1,
        isMounted: !1,
        isUnmounted: !1,
        isDeactivated: !1,
        bc: null,
        c: null,
        bm: null,
        m: null,
        bu: null,
        u: null,
        um: null,
        bum: null,
        da: null,
        a: null,
        rtg: null,
        rtc: null,
        ec: null,
        sp: null
    };
    return i.ctx = {
        _: i
    },
    i.root = e ? e.root : i,
    i.emit = nve.bind(null, i),
    t.ce && t.ce(i),
    i
}
let Cr = null;
const qn = ()=>Cr || zr;
let fO, cd, NR = "__VUE_INSTANCE_SETTERS__";
(cd = M3()[NR]) || (cd = M3()[NR] = []),
cd.push(t=>Cr = t),
fO = t=>{
    cd.length > 1 ? cd.forEach(e=>e(t)) : cd[0](t)
}
;
const Iv = t=>{
    fO(t),
    t.scope.on()
}
  , ff = ()=>{
    Cr && Cr.scope.off(),
    fO(null)
}
;
function Pq(t) {
    return t.vnode.shapeFlag & 4
}
let kv = !1;
function qve(t, e=!1) {
    kv = e;
    const {props: n, children: r} = t.vnode
      , a = Pq(t);
    Eve(t, n, a, e),
    Nve(t, r);
    const i = a ? Xve(t, e) : void 0;
    return kv = !1,
    i
}
function Xve(t, e) {
    const n = t.type;
    t.accessCache = Object.create(null),
    t.proxy = um(new Proxy(t.ctx,wve));
    const {setup: r} = n;
    if (r) {
        const a = t.setupContext = r.length > 1 ? Aq(t) : null;
        Iv(t),
        oh();
        const i = hu(r, t, 0, [t.props, a]);
        if (lh(),
        ff(),
        kY(i)) {
            if (i.then(ff, ff),
            e)
                return i.then(o=>{
                    $R(t, o, e)
                }
                ).catch(o=>{
                    cm(o, t, 0)
                }
                );
            t.asyncDep = i
        } else
            $R(t, i, e)
    } else
        Mq(t, e)
}
function $R(t, e, n) {
    Xt(e) ? t.type.__ssrInlineRender ? t.ssrRender = e : t.render = e : Gn(e) && (t.setupState = XY(e)),
    Mq(t, n)
}
let FR;
function Mq(t, e, n) {
    const r = t.type;
    if (!t.render) {
        if (!e && FR && !r.render) {
            const a = r.template || iO(t).template;
            if (a) {
                const {isCustomElement: i, compilerOptions: o} = t.appContext.config
                  , {delimiters: l, compilerOptions: s} = r
                  , u = yr(yr({
                    isCustomElement: i,
                    delimiters: l
                }, o), s);
                r.render = FR(a, u)
            }
        }
        t.render = r.render || fo
    }
    Iv(t),
    oh(),
    Tve(t),
    lh(),
    ff()
}
function Zve(t) {
    return t.attrsProxy || (t.attrsProxy = new Proxy(t.attrs,{
        get(e, n) {
            return za(t, "get", "$attrs"),
            e[n]
        }
    }))
}
function Aq(t) {
    const e = n=>{
        t.exposed = n || {}
    }
    ;
    return {
        get attrs() {
            return Zve(t)
        },
        slots: t.slots,
        emit: t.emit,
        expose: e
    }
}
function IC(t) {
    if (t.exposed)
        return t.exposeProxy || (t.exposeProxy = new Proxy(XY(um(t.exposed)),{
            get(e, n) {
                if (n in e)
                    return e[n];
                if (n in og)
                    return og[n](t)
            },
            has(e, n) {
                return n in e || n in og
            }
        }))
}
function Qve(t, e=!0) {
    return Xt(t) ? t.displayName || t.name : t.name || e && t.__name
}
function Jve(t) {
    return Xt(t) && "__vccOpts"in t
}
const j = (t,e)=>Zde(t, e, kv);
function Pu(t, e, n) {
    const r = arguments.length;
    return r === 2 ? Gn(e) && !Ft(e) ? Hr(e) ? _(t, null, [e]) : _(t, e) : _(t, null, e) : (r > 3 ? n = Array.prototype.slice.call(arguments, 2) : r === 3 && Hr(n) && (n = [n]),
    _(t, e, n))
}
const ehe = Symbol.for("v-scx")
  , the = ()=>vt(ehe)
  , nhe = "3.3.4"
  , rhe = "http://www.w3.org/2000/svg"
  , zc = typeof document != "undefined" ? document : null
  , BR = zc && zc.createElement("template")
  , ahe = {
    insert: (t,e,n)=>{
        e.insertBefore(t, n || null)
    }
    ,
    remove: t=>{
        const e = t.parentNode;
        e && e.removeChild(t)
    }
    ,
    createElement: (t,e,n,r)=>{
        const a = e ? zc.createElementNS(rhe, t) : zc.createElement(t, n ? {
            is: n
        } : void 0);
        return t === "select" && r && r.multiple != null && a.setAttribute("multiple", r.multiple),
        a
    }
    ,
    createText: t=>zc.createTextNode(t),
    createComment: t=>zc.createComment(t),
    setText: (t,e)=>{
        t.nodeValue = e
    }
    ,
    setElementText: (t,e)=>{
        t.textContent = e
    }
    ,
    parentNode: t=>t.parentNode,
    nextSibling: t=>t.nextSibling,
    querySelector: t=>zc.querySelector(t),
    setScopeId(t, e) {
        t.setAttribute(e, "")
    },
    insertStaticContent(t, e, n, r, a, i) {
        const o = n ? n.previousSibling : e.lastChild;
        if (a && (a === i || a.nextSibling))
            for (; e.insertBefore(a.cloneNode(!0), n),
            !(a === i || !(a = a.nextSibling)); )
                ;
        else {
            BR.innerHTML = r ? `<svg>${t}</svg>` : t;
            const l = BR.content;
            if (r) {
                const s = l.firstChild;
                for (; s.firstChild; )
                    l.appendChild(s.firstChild);
                l.removeChild(s)
            }
            e.insertBefore(l, n)
        }
        return [o ? o.nextSibling : e.firstChild, n ? n.previousSibling : e.lastChild]
    }
};
function ihe(t, e, n) {
    const r = t._vtc;
    r && (e = (e ? [e, ...r] : [...r]).join(" ")),
    e == null ? t.removeAttribute("class") : n ? t.setAttribute("class", e) : t.className = e
}
function ohe(t, e, n) {
    const r = t.style
      , a = rr(n);
    if (n && !a) {
        if (e && !rr(e))
            for (const i in e)
                n[i] == null && F3(r, i, "");
        for (const i in n)
            F3(r, i, n[i])
    } else {
        const i = r.display;
        a ? e !== n && (r.cssText = n) : e && t.removeAttribute("style"),
        "_vod"in t && (r.display = i)
    }
}
const VR = /\s*!important$/;
function F3(t, e, n) {
    if (Ft(n))
        n.forEach(r=>F3(t, e, r));
    else if (n == null && (n = ""),
    e.startsWith("--"))
        t.setProperty(e, n);
    else {
        const r = lhe(t, e);
        VR.test(n) ? t.setProperty(ih(r), n.replace(VR, ""), "important") : t[r] = n
    }
}
const zR = ["Webkit", "Moz", "ms"]
  , X2 = {};
function lhe(t, e) {
    const n = X2[e];
    if (n)
        return n;
    let r = Va(e);
    if (r !== "filter" && r in t)
        return X2[e] = r;
    r = bC(r);
    for (let a = 0; a < zR.length; a++) {
        const i = zR[a] + r;
        if (i in t)
            return X2[e] = i
    }
    return e
}
const HR = "http://www.w3.org/1999/xlink";
function she(t, e, n, r, a) {
    if (r && e.startsWith("xlink:"))
        n == null ? t.removeAttributeNS(HR, e.slice(6, e.length)) : t.setAttributeNS(HR, e, n);
    else {
        const i = mde(e);
        n == null || i && !EY(n) ? t.removeAttribute(e) : t.setAttribute(e, i ? "" : n)
    }
}
function uhe(t, e, n, r, a, i, o) {
    if (e === "innerHTML" || e === "textContent") {
        r && o(r, a, i),
        t[e] = n == null ? "" : n;
        return
    }
    const l = t.tagName;
    if (e === "value" && l !== "PROGRESS" && !l.includes("-")) {
        t._value = n;
        const u = l === "OPTION" ? t.getAttribute("value") : t.value
          , c = n == null ? "" : n;
        u !== c && (t.value = c),
        n == null && t.removeAttribute(e);
        return
    }
    let s = !1;
    if (n === "" || n == null) {
        const u = typeof t[e];
        u === "boolean" ? n = EY(n) : n == null && u === "string" ? (n = "",
        s = !0) : u === "number" && (n = 0,
        s = !0)
    }
    try {
        t[e] = n
    } catch (u) {}
    s && t.removeAttribute(e)
}
function che(t, e, n, r) {
    t.addEventListener(e, n, r)
}
function fhe(t, e, n, r) {
    t.removeEventListener(e, n, r)
}
function dhe(t, e, n, r, a=null) {
    const i = t._vei || (t._vei = {})
      , o = i[e];
    if (r && o)
        o.value = r;
    else {
        const [l,s] = vhe(e);
        if (r) {
            const u = i[e] = ghe(r, a);
            che(t, l, u, s)
        } else
            o && (fhe(t, l, o, s),
            i[e] = void 0)
    }
}
const jR = /(?:Once|Passive|Capture)$/;
function vhe(t) {
    let e;
    if (jR.test(t)) {
        e = {};
        let r;
        for (; r = t.match(jR); )
            t = t.slice(0, t.length - r[0].length),
            e[r[0].toLowerCase()] = !0
    }
    return [t[2] === ":" ? t.slice(3) : ih(t.slice(2)), e]
}
let Z2 = 0;
const hhe = Promise.resolve()
  , phe = ()=>Z2 || (hhe.then(()=>Z2 = 0),
Z2 = Date.now());
function ghe(t, e) {
    const n = r=>{
        if (!r._vts)
            r._vts = Date.now();
        else if (r._vts <= n.attached)
            return;
        Ei(mhe(r, n.value), e, 5, [r])
    }
    ;
    return n.value = t,
    n.attached = phe(),
    n
}
function mhe(t, e) {
    if (Ft(e)) {
        const n = t.stopImmediatePropagation;
        return t.stopImmediatePropagation = ()=>{
            n.call(t),
            t._stopped = !0
        }
        ,
        e.map(r=>a=>!a._stopped && r && r(a))
    } else
        return e
}
const WR = /^on[a-z]/
  , yhe = (t,e,n,r,a=!1,i,o,l,s)=>{
    e === "class" ? ihe(t, r, a) : e === "style" ? ohe(t, n, r) : gC(e) ? Bk(e) || dhe(t, e, n, r, o) : (e[0] === "." ? (e = e.slice(1),
    !0) : e[0] === "^" ? (e = e.slice(1),
    !1) : bhe(t, e, r, a)) ? uhe(t, e, r, i, o, l, s) : (e === "true-value" ? t._trueValue = r : e === "false-value" && (t._falseValue = r),
    she(t, e, r, a))
}
;
function bhe(t, e, n, r) {
    return r ? !!(e === "innerHTML" || e === "textContent" || e in t && WR.test(e) && Xt(n)) : e === "spellcheck" || e === "draggable" || e === "translate" || e === "form" || e === "list" && t.tagName === "INPUT" || e === "type" && t.tagName === "TEXTAREA" || WR.test(e) && rr(n) ? !1 : e in t
}
const Ps = "transition"
  , Yh = "animation"
  , bl = (t,{slots: e})=>Pu(hve, kq(t), e);
bl.displayName = "Transition";
const Iq = {
    name: String,
    type: String,
    css: {
        type: Boolean,
        default: !0
    },
    duration: [String, Number, Object],
    enterFromClass: String,
    enterActiveClass: String,
    enterToClass: String,
    appearFromClass: String,
    appearActiveClass: String,
    appearToClass: String,
    leaveFromClass: String,
    leaveActiveClass: String,
    leaveToClass: String
}
  , xhe = bl.props = yr({}, iq, Iq)
  , Ju = (t,e=[])=>{
    Ft(t) ? t.forEach(n=>n(...e)) : t && t(...e)
}
  , GR = t=>t ? Ft(t) ? t.some(e=>e.length > 1) : t.length > 1 : !1;
function kq(t) {
    const e = {};
    for (const O in t)
        O in Iq || (e[O] = t[O]);
    if (t.css === !1)
        return e;
    const {name: n="v", type: r, duration: a, enterFromClass: i=`${n}-enter-from`, enterActiveClass: o=`${n}-enter-active`, enterToClass: l=`${n}-enter-to`, appearFromClass: s=i, appearActiveClass: u=o, appearToClass: c=l, leaveFromClass: f=`${n}-leave-from`, leaveActiveClass: d=`${n}-leave-active`, leaveToClass: v=`${n}-leave-to`} = t
      , h = She(a)
      , p = h && h[0]
      , g = h && h[1]
      , {onBeforeEnter: m, onEnter: y, onEnterCancelled: b, onLeave: x, onLeaveCancelled: C, onBeforeAppear: S=m, onAppear: w=y, onAppearCancelled: T=b} = e
      , P = (O,k,D)=>{
        Vs(O, k ? c : l),
        Vs(O, k ? u : o),
        D && D()
    }
      , M = (O,k)=>{
        O._isLeaving = !1,
        Vs(O, f),
        Vs(O, v),
        Vs(O, d),
        k && k()
    }
      , A = O=>(k,D)=>{
        const E = O ? w : y
          , L = ()=>P(k, O, D);
        Ju(E, [k, L]),
        KR(()=>{
            Vs(k, O ? s : i),
            Bl(k, O ? c : l),
            GR(E) || UR(k, r, p, L)
        }
        )
    }
    ;
    return yr(e, {
        onBeforeEnter(O) {
            Ju(m, [O]),
            Bl(O, i),
            Bl(O, o)
        },
        onBeforeAppear(O) {
            Ju(S, [O]),
            Bl(O, s),
            Bl(O, u)
        },
        onEnter: A(!1),
        onAppear: A(!0),
        onLeave(O, k) {
            O._isLeaving = !0;
            const D = ()=>M(O, k);
            Bl(O, f),
            Dq(),
            Bl(O, d),
            KR(()=>{
                !O._isLeaving || (Vs(O, f),
                Bl(O, v),
                GR(x) || UR(O, r, g, D))
            }
            ),
            Ju(x, [O, D])
        },
        onEnterCancelled(O) {
            P(O, !1),
            Ju(b, [O])
        },
        onAppearCancelled(O) {
            P(O, !0),
            Ju(T, [O])
        },
        onLeaveCancelled(O) {
            M(O),
            Ju(C, [O])
        }
    })
}
function She(t) {
    if (t == null)
        return null;
    if (Gn(t))
        return [Q2(t.enter), Q2(t.leave)];
    {
        const e = Q2(t);
        return [e, e]
    }
}
function Q2(t) {
    return cde(t)
}
function Bl(t, e) {
    e.split(/\s+/).forEach(n=>n && t.classList.add(n)),
    (t._vtc || (t._vtc = new Set)).add(e)
}
function Vs(t, e) {
    e.split(/\s+/).forEach(r=>r && t.classList.remove(r));
    const {_vtc: n} = t;
    n && (n.delete(e),
    n.size || (t._vtc = void 0))
}
function KR(t) {
    requestAnimationFrame(()=>{
        requestAnimationFrame(t)
    }
    )
}
let Che = 0;
function UR(t, e, n, r) {
    const a = t._endId = ++Che
      , i = ()=>{
        a === t._endId && r()
    }
    ;
    if (n)
        return setTimeout(i, n);
    const {type: o, timeout: l, propCount: s} = Oq(t, e);
    if (!o)
        return r();
    const u = o + "end";
    let c = 0;
    const f = ()=>{
        t.removeEventListener(u, d),
        i()
    }
      , d = v=>{
        v.target === t && ++c >= s && f()
    }
    ;
    setTimeout(()=>{
        c < s && f()
    }
    , l + 1),
    t.addEventListener(u, d)
}
function Oq(t, e) {
    const n = window.getComputedStyle(t)
      , r = h=>(n[h] || "").split(", ")
      , a = r(`${Ps}Delay`)
      , i = r(`${Ps}Duration`)
      , o = YR(a, i)
      , l = r(`${Yh}Delay`)
      , s = r(`${Yh}Duration`)
      , u = YR(l, s);
    let c = null
      , f = 0
      , d = 0;
    e === Ps ? o > 0 && (c = Ps,
    f = o,
    d = i.length) : e === Yh ? u > 0 && (c = Yh,
    f = u,
    d = s.length) : (f = Math.max(o, u),
    c = f > 0 ? o > u ? Ps : Yh : null,
    d = c ? c === Ps ? i.length : s.length : 0);
    const v = c === Ps && /\b(transform|all)(,|$)/.test(r(`${Ps}Property`).toString());
    return {
        type: c,
        timeout: f,
        propCount: d,
        hasTransform: v
    }
}
function YR(t, e) {
    for (; t.length < e.length; )
        t = t.concat(t);
    return Math.max(...e.map((n,r)=>qR(n) + qR(t[r])))
}
function qR(t) {
    return Number(t.slice(0, -1).replace(",", ".")) * 1e3
}
function Dq() {
    return document.body.offsetHeight
}
const Eq = new WeakMap
  , Lq = new WeakMap
  , Rq = {
    name: "TransitionGroup",
    props: yr({}, xhe, {
        tag: String,
        moveClass: String
    }),
    setup(t, {slots: e}) {
        const n = qn()
          , r = aq();
        let a, i;
        return ua(()=>{
            if (!a.length)
                return;
            const o = t.moveClass || `${t.name || "v"}-move`;
            if (!Mhe(a[0].el, n.vnode.el, o))
                return;
            a.forEach(_he),
            a.forEach(The);
            const l = a.filter(Phe);
            Dq(),
            l.forEach(s=>{
                const u = s.el
                  , c = u.style;
                Bl(u, o),
                c.transform = c.webkitTransform = c.transitionDuration = "";
                const f = u._moveCb = d=>{
                    d && d.target !== u || (!d || /transform$/.test(d.propertyName)) && (u.removeEventListener("transitionend", f),
                    u._moveCb = null,
                    Vs(u, o))
                }
                ;
                u.addEventListener("transitionend", f)
            }
            )
        }
        ),
        ()=>{
            const o = _t(t)
              , l = kq(o);
            let s = o.tag || xt;
            a = i,
            i = e.default ? tO(e.default()) : [];
            for (let u = 0; u < i.length; u++) {
                const c = i[u];
                c.key != null && e0(c, Jg(c, l, r, n))
            }
            if (a)
                for (let u = 0; u < a.length; u++) {
                    const c = a[u];
                    e0(c, Jg(c, l, r, n)),
                    Eq.set(c, c.el.getBoundingClientRect())
                }
            return _(s, null, i)
        }
    }
}
  , whe = t=>delete t.mode;
Rq.props;
const dO = Rq;
function _he(t) {
    const e = t.el;
    e._moveCb && e._moveCb(),
    e._enterCb && e._enterCb()
}
function The(t) {
    Lq.set(t, t.el.getBoundingClientRect())
}
function Phe(t) {
    const e = Eq.get(t)
      , n = Lq.get(t)
      , r = e.left - n.left
      , a = e.top - n.top;
    if (r || a) {
        const i = t.el.style;
        return i.transform = i.webkitTransform = `translate(${r}px,${a}px)`,
        i.transitionDuration = "0s",
        t
    }
}
function Mhe(t, e, n) {
    const r = t.cloneNode();
    t._vtc && t._vtc.forEach(o=>{
        o.split(/\s+/).forEach(l=>l && r.classList.remove(l))
    }
    ),
    n.split(/\s+/).forEach(o=>o && r.classList.add(o)),
    r.style.display = "none";
    const a = e.nodeType === 1 ? e : e.parentNode;
    a.appendChild(r);
    const {hasTransform: i} = Oq(r);
    return a.removeChild(r),
    i
}
const Ahe = ["ctrl", "shift", "alt", "meta"]
  , Ihe = {
    stop: t=>t.stopPropagation(),
    prevent: t=>t.preventDefault(),
    self: t=>t.target !== t.currentTarget,
    ctrl: t=>!t.ctrlKey,
    shift: t=>!t.shiftKey,
    alt: t=>!t.altKey,
    meta: t=>!t.metaKey,
    left: t=>"button"in t && t.button !== 0,
    middle: t=>"button"in t && t.button !== 1,
    right: t=>"button"in t && t.button !== 2,
    exact: (t,e)=>Ahe.some(n=>t[`${n}Key`] && !e.includes(n))
}
  , XR = (t,e)=>(n,...r)=>{
    for (let a = 0; a < e.length; a++) {
        const i = Ihe[e[a]];
        if (i && i(n, e))
            return
    }
    return t(n, ...r)
}
  , Io = {
    beforeMount(t, {value: e}, {transition: n}) {
        t._vod = t.style.display === "none" ? "" : t.style.display,
        n && e ? n.beforeEnter(t) : qh(t, e)
    },
    mounted(t, {value: e}, {transition: n}) {
        n && e && n.enter(t)
    },
    updated(t, {value: e, oldValue: n}, {transition: r}) {
        !e != !n && (r ? e ? (r.beforeEnter(t),
        qh(t, !0),
        r.enter(t)) : r.leave(t, ()=>{
            qh(t, !1)
        }
        ) : qh(t, e))
    },
    beforeUnmount(t, {value: e}) {
        qh(t, e)
    }
};
function qh(t, e) {
    t.style.display = e ? t._vod : "none"
}
const khe = yr({
    patchProp: yhe
}, ahe);
let ZR;
function Nq() {
    return ZR || (ZR = Fve(khe))
}
const _x = (...t)=>{
    Nq().render(...t)
}
  , Ohe = (...t)=>{
    const e = Nq().createApp(...t)
      , {mount: n} = e;
    return e.mount = r=>{
        const a = Dhe(r);
        if (!a)
            return;
        const i = e._component;
        !Xt(i) && !i.render && !i.template && (i.template = a.innerHTML),
        a.innerHTML = "";
        const o = n(a, !1, a instanceof SVGElement);
        return a instanceof Element && (a.removeAttribute("v-cloak"),
        a.setAttribute("data-v-app", "")),
        o
    }
    ,
    e
}
;
function Dhe(t) {
    return rr(t) ? document.querySelector(t) : t
}
/*!
  * shared v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */
const B3 = typeof window != "undefined"
  , Ehe = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol"
  , Fu = t=>Ehe ? Symbol(t) : t
  , Lhe = (t,e,n)=>Rhe({
    l: t,
    k: e,
    s: n
})
  , Rhe = t=>JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027")
  , Ir = t=>typeof t == "number" && isFinite(t)
  , Nhe = t=>hO(t) === "[object Date]"
  , Mu = t=>hO(t) === "[object RegExp]"
  , kC = t=>Yt(t) && Object.keys(t).length === 0;
function $he(t, e) {}
const jr = Object.assign;
let QR;
const ug = ()=>QR || (QR = typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
function JR(t) {
    return t.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;")
}
const Fhe = Object.prototype.hasOwnProperty;
function vO(t, e) {
    return Fhe.call(t, e)
}
const jn = Array.isArray
  , pr = t=>typeof t == "function"
  , Je = t=>typeof t == "string"
  , hn = t=>typeof t == "boolean"
  , Wn = t=>t !== null && typeof t == "object"
  , $q = Object.prototype.toString
  , hO = t=>$q.call(t)
  , Yt = t=>hO(t) === "[object Object]"
  , Bhe = t=>t == null ? "" : jn(t) || Yt(t) && t.toString === $q ? JSON.stringify(t, null, 2) : String(t);
/*!
  * message-compiler v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */
const Cn = {
    EXPECTED_TOKEN: 1,
    INVALID_TOKEN_IN_PLACEHOLDER: 2,
    UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
    UNKNOWN_ESCAPE_SEQUENCE: 4,
    INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
    UNBALANCED_CLOSING_BRACE: 6,
    UNTERMINATED_CLOSING_BRACE: 7,
    EMPTY_PLACEHOLDER: 8,
    NOT_ALLOW_NEST_PLACEHOLDER: 9,
    INVALID_LINKED_FORMAT: 10,
    MUST_HAVE_MESSAGES_IN_PLURAL: 11,
    UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
    UNEXPECTED_EMPTY_LINKED_KEY: 13,
    UNEXPECTED_LEXICAL_ANALYSIS: 14,
    __EXTEND_POINT__: 15
};
function OC(t, e, n={}) {
    const {domain: r, messages: a, args: i} = n
      , o = t
      , l = new SyntaxError(String(o));
    return l.code = t,
    e && (l.location = e),
    l.domain = r,
    l
}
function Vhe(t) {
    throw t
}
function zhe(t, e, n) {
    return {
        line: t,
        column: e,
        offset: n
    }
}
function V3(t, e, n) {
    const r = {
        start: t,
        end: e
    };
    return n != null && (r.source = n),
    r
}
const kl = " "
  , Hhe = "\r"
  , pa = `
`
  , jhe = String.fromCharCode(8232)
  , Whe = String.fromCharCode(8233);
function Ghe(t) {
    const e = t;
    let n = 0
      , r = 1
      , a = 1
      , i = 0;
    const o = w=>e[w] === Hhe && e[w + 1] === pa
      , l = w=>e[w] === pa
      , s = w=>e[w] === Whe
      , u = w=>e[w] === jhe
      , c = w=>o(w) || l(w) || s(w) || u(w)
      , f = ()=>n
      , d = ()=>r
      , v = ()=>a
      , h = ()=>i
      , p = w=>o(w) || s(w) || u(w) ? pa : e[w]
      , g = ()=>p(n)
      , m = ()=>p(n + i);
    function y() {
        return i = 0,
        c(n) && (r++,
        a = 0),
        o(n) && n++,
        n++,
        a++,
        e[n]
    }
    function b() {
        return o(n + i) && i++,
        i++,
        e[n + i]
    }
    function x() {
        n = 0,
        r = 1,
        a = 1,
        i = 0
    }
    function C(w=0) {
        i = w
    }
    function S() {
        const w = n + i;
        for (; w !== n; )
            y();
        i = 0
    }
    return {
        index: f,
        line: d,
        column: v,
        peekOffset: h,
        charAt: p,
        currentChar: g,
        currentPeek: m,
        next: y,
        peek: b,
        reset: x,
        resetPeek: C,
        skipToPeek: S
    }
}
const Ms = void 0
  , eN = "'"
  , Khe = "tokenizer";
function Uhe(t, e={}) {
    const n = e.location !== !1
      , r = Ghe(t)
      , a = ()=>r.index()
      , i = ()=>zhe(r.line(), r.column(), r.index())
      , o = i()
      , l = a()
      , s = {
        currentType: 14,
        offset: l,
        startLoc: o,
        endLoc: o,
        lastType: 14,
        lastOffset: l,
        lastStartLoc: o,
        lastEndLoc: o,
        braceNest: 0,
        inLinked: !1,
        text: ""
    }
      , u = ()=>s
      , {onError: c} = e;
    function f(F, H, ee, ...re) {
        const ue = u();
        if (H.column += ee,
        H.offset += ee,
        c) {
            const ve = V3(ue.startLoc, H)
              , fe = OC(F, ve, {
                domain: Khe,
                args: re
            });
            c(fe)
        }
    }
    function d(F, H, ee) {
        F.endLoc = i(),
        F.currentType = H;
        const re = {
            type: H
        };
        return n && (re.loc = V3(F.startLoc, F.endLoc)),
        ee != null && (re.value = ee),
        re
    }
    const v = F=>d(F, 14);
    function h(F, H) {
        return F.currentChar() === H ? (F.next(),
        H) : (f(Cn.EXPECTED_TOKEN, i(), 0, H),
        "")
    }
    function p(F) {
        let H = "";
        for (; F.currentPeek() === kl || F.currentPeek() === pa; )
            H += F.currentPeek(),
            F.peek();
        return H
    }
    function g(F) {
        const H = p(F);
        return F.skipToPeek(),
        H
    }
    function m(F) {
        if (F === Ms)
            return !1;
        const H = F.charCodeAt(0);
        return H >= 97 && H <= 122 || H >= 65 && H <= 90 || H === 95
    }
    function y(F) {
        if (F === Ms)
            return !1;
        const H = F.charCodeAt(0);
        return H >= 48 && H <= 57
    }
    function b(F, H) {
        const {currentType: ee} = H;
        if (ee !== 2)
            return !1;
        p(F);
        const re = m(F.currentPeek());
        return F.resetPeek(),
        re
    }
    function x(F, H) {
        const {currentType: ee} = H;
        if (ee !== 2)
            return !1;
        p(F);
        const re = F.currentPeek() === "-" ? F.peek() : F.currentPeek()
          , ue = y(re);
        return F.resetPeek(),
        ue
    }
    function C(F, H) {
        const {currentType: ee} = H;
        if (ee !== 2)
            return !1;
        p(F);
        const re = F.currentPeek() === eN;
        return F.resetPeek(),
        re
    }
    function S(F, H) {
        const {currentType: ee} = H;
        if (ee !== 8)
            return !1;
        p(F);
        const re = F.currentPeek() === ".";
        return F.resetPeek(),
        re
    }
    function w(F, H) {
        const {currentType: ee} = H;
        if (ee !== 9)
            return !1;
        p(F);
        const re = m(F.currentPeek());
        return F.resetPeek(),
        re
    }
    function T(F, H) {
        const {currentType: ee} = H;
        if (!(ee === 8 || ee === 12))
            return !1;
        p(F);
        const re = F.currentPeek() === ":";
        return F.resetPeek(),
        re
    }
    function P(F, H) {
        const {currentType: ee} = H;
        if (ee !== 10)
            return !1;
        const re = ()=>{
            const ve = F.currentPeek();
            return ve === "{" ? m(F.peek()) : ve === "@" || ve === "%" || ve === "|" || ve === ":" || ve === "." || ve === kl || !ve ? !1 : ve === pa ? (F.peek(),
            re()) : m(ve)
        }
          , ue = re();
        return F.resetPeek(),
        ue
    }
    function M(F) {
        p(F);
        const H = F.currentPeek() === "|";
        return F.resetPeek(),
        H
    }
    function A(F) {
        const H = p(F)
          , ee = F.currentPeek() === "%" && F.peek() === "{";
        return F.resetPeek(),
        {
            isModulo: ee,
            hasSpace: H.length > 0
        }
    }
    function O(F, H=!0) {
        const ee = (ue=!1,ve="",fe=!1)=>{
            const ce = F.currentPeek();
            return ce === "{" ? ve === "%" ? !1 : ue : ce === "@" || !ce ? ve === "%" ? !0 : ue : ce === "%" ? (F.peek(),
            ee(ue, "%", !0)) : ce === "|" ? ve === "%" || fe ? !0 : !(ve === kl || ve === pa) : ce === kl ? (F.peek(),
            ee(!0, kl, fe)) : ce === pa ? (F.peek(),
            ee(!0, pa, fe)) : !0
        }
          , re = ee();
        return H && F.resetPeek(),
        re
    }
    function k(F, H) {
        const ee = F.currentChar();
        return ee === Ms ? Ms : H(ee) ? (F.next(),
        ee) : null
    }
    function D(F) {
        return k(F, ee=>{
            const re = ee.charCodeAt(0);
            return re >= 97 && re <= 122 || re >= 65 && re <= 90 || re >= 48 && re <= 57 || re === 95 || re === 36
        }
        )
    }
    function E(F) {
        return k(F, ee=>{
            const re = ee.charCodeAt(0);
            return re >= 48 && re <= 57
        }
        )
    }
    function L(F) {
        return k(F, ee=>{
            const re = ee.charCodeAt(0);
            return re >= 48 && re <= 57 || re >= 65 && re <= 70 || re >= 97 && re <= 102
        }
        )
    }
    function N(F) {
        let H = ""
          , ee = "";
        for (; H = E(F); )
            ee += H;
        return ee
    }
    function R(F) {
        g(F);
        const H = F.currentChar();
        return H !== "%" && f(Cn.EXPECTED_TOKEN, i(), 0, H),
        F.next(),
        "%"
    }
    function $(F) {
        let H = "";
        for (; ; ) {
            const ee = F.currentChar();
            if (ee === "{" || ee === "}" || ee === "@" || ee === "|" || !ee)
                break;
            if (ee === "%")
                if (O(F))
                    H += ee,
                    F.next();
                else
                    break;
            else if (ee === kl || ee === pa)
                if (O(F))
                    H += ee,
                    F.next();
                else {
                    if (M(F))
                        break;
                    H += ee,
                    F.next()
                }
            else
                H += ee,
                F.next()
        }
        return H
    }
    function W(F) {
        g(F);
        let H = ""
          , ee = "";
        for (; H = D(F); )
            ee += H;
        return F.currentChar() === Ms && f(Cn.UNTERMINATED_CLOSING_BRACE, i(), 0),
        ee
    }
    function B(F) {
        g(F);
        let H = "";
        return F.currentChar() === "-" ? (F.next(),
        H += `-${N(F)}`) : H += N(F),
        F.currentChar() === Ms && f(Cn.UNTERMINATED_CLOSING_BRACE, i(), 0),
        H
    }
    function G(F) {
        g(F),
        h(F, "'");
        let H = ""
          , ee = "";
        const re = ve=>ve !== eN && ve !== pa;
        for (; H = k(F, re); )
            H === "\\" ? ee += K(F) : ee += H;
        const ue = F.currentChar();
        return ue === pa || ue === Ms ? (f(Cn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0),
        ue === pa && (F.next(),
        h(F, "'")),
        ee) : (h(F, "'"),
        ee)
    }
    function K(F) {
        const H = F.currentChar();
        switch (H) {
        case "\\":
        case "'":
            return F.next(),
            `\\${H}`;
        case "u":
            return V(F, H, 4);
        case "U":
            return V(F, H, 6);
        default:
            return f(Cn.UNKNOWN_ESCAPE_SEQUENCE, i(), 0, H),
            ""
        }
    }
    function V(F, H, ee) {
        h(F, H);
        let re = "";
        for (let ue = 0; ue < ee; ue++) {
            const ve = L(F);
            if (!ve) {
                f(Cn.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${H}${re}${F.currentChar()}`);
                break
            }
            re += ve
        }
        return `\\${H}${re}`
    }
    function U(F) {
        g(F);
        let H = ""
          , ee = "";
        const re = ue=>ue !== "{" && ue !== "}" && ue !== kl && ue !== pa;
        for (; H = k(F, re); )
            ee += H;
        return ee
    }
    function X(F) {
        let H = ""
          , ee = "";
        for (; H = D(F); )
            ee += H;
        return ee
    }
    function Y(F) {
        const H = (ee=!1,re)=>{
            const ue = F.currentChar();
            return ue === "{" || ue === "%" || ue === "@" || ue === "|" || !ue || ue === kl ? re : ue === pa ? (re += ue,
            F.next(),
            H(ee, re)) : (re += ue,
            F.next(),
            H(!0, re))
        }
        ;
        return H(!1, "")
    }
    function te(F) {
        g(F);
        const H = h(F, "|");
        return g(F),
        H
    }
    function ne(F, H) {
        let ee = null;
        switch (F.currentChar()) {
        case "{":
            return H.braceNest >= 1 && f(Cn.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0),
            F.next(),
            ee = d(H, 2, "{"),
            g(F),
            H.braceNest++,
            ee;
        case "}":
            return H.braceNest > 0 && H.currentType === 2 && f(Cn.EMPTY_PLACEHOLDER, i(), 0),
            F.next(),
            ee = d(H, 3, "}"),
            H.braceNest--,
            H.braceNest > 0 && g(F),
            H.inLinked && H.braceNest === 0 && (H.inLinked = !1),
            ee;
        case "@":
            return H.braceNest > 0 && f(Cn.UNTERMINATED_CLOSING_BRACE, i(), 0),
            ee = ie(F, H) || v(H),
            H.braceNest = 0,
            ee;
        default:
            let ue = !0
              , ve = !0
              , fe = !0;
            if (M(F))
                return H.braceNest > 0 && f(Cn.UNTERMINATED_CLOSING_BRACE, i(), 0),
                ee = d(H, 1, te(F)),
                H.braceNest = 0,
                H.inLinked = !1,
                ee;
            if (H.braceNest > 0 && (H.currentType === 5 || H.currentType === 6 || H.currentType === 7))
                return f(Cn.UNTERMINATED_CLOSING_BRACE, i(), 0),
                H.braceNest = 0,
                ae(F, H);
            if (ue = b(F, H))
                return ee = d(H, 5, W(F)),
                g(F),
                ee;
            if (ve = x(F, H))
                return ee = d(H, 6, B(F)),
                g(F),
                ee;
            if (fe = C(F, H))
                return ee = d(H, 7, G(F)),
                g(F),
                ee;
            if (!ue && !ve && !fe)
                return ee = d(H, 13, U(F)),
                f(Cn.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, ee.value),
                g(F),
                ee;
            break
        }
        return ee
    }
    function ie(F, H) {
        const {currentType: ee} = H;
        let re = null;
        const ue = F.currentChar();
        switch ((ee === 8 || ee === 9 || ee === 12 || ee === 10) && (ue === pa || ue === kl) && f(Cn.INVALID_LINKED_FORMAT, i(), 0),
        ue) {
        case "@":
            return F.next(),
            re = d(H, 8, "@"),
            H.inLinked = !0,
            re;
        case ".":
            return g(F),
            F.next(),
            d(H, 9, ".");
        case ":":
            return g(F),
            F.next(),
            d(H, 10, ":");
        default:
            return M(F) ? (re = d(H, 1, te(F)),
            H.braceNest = 0,
            H.inLinked = !1,
            re) : S(F, H) || T(F, H) ? (g(F),
            ie(F, H)) : w(F, H) ? (g(F),
            d(H, 12, X(F))) : P(F, H) ? (g(F),
            ue === "{" ? ne(F, H) || re : d(H, 11, Y(F))) : (ee === 8 && f(Cn.INVALID_LINKED_FORMAT, i(), 0),
            H.braceNest = 0,
            H.inLinked = !1,
            ae(F, H))
        }
    }
    function ae(F, H) {
        let ee = {
            type: 14
        };
        if (H.braceNest > 0)
            return ne(F, H) || v(H);
        if (H.inLinked)
            return ie(F, H) || v(H);
        switch (F.currentChar()) {
        case "{":
            return ne(F, H) || v(H);
        case "}":
            return f(Cn.UNBALANCED_CLOSING_BRACE, i(), 0),
            F.next(),
            d(H, 3, "}");
        case "@":
            return ie(F, H) || v(H);
        default:
            if (M(F))
                return ee = d(H, 1, te(F)),
                H.braceNest = 0,
                H.inLinked = !1,
                ee;
            const {isModulo: ue, hasSpace: ve} = A(F);
            if (ue)
                return ve ? d(H, 0, $(F)) : d(H, 4, R(F));
            if (O(F))
                return d(H, 0, $(F));
            break
        }
        return ee
    }
    function q() {
        const {currentType: F, offset: H, startLoc: ee, endLoc: re} = s;
        return s.lastType = F,
        s.lastOffset = H,
        s.lastStartLoc = ee,
        s.lastEndLoc = re,
        s.offset = a(),
        s.startLoc = i(),
        r.currentChar() === Ms ? d(s, 14) : ae(r, s)
    }
    return {
        nextToken: q,
        currentOffset: a,
        currentPosition: i,
        context: u
    }
}
const Yhe = "parser"
  , qhe = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
function Xhe(t, e, n) {
    switch (t) {
    case "\\\\":
        return "\\";
    case "\\'":
        return "'";
    default:
        {
            const r = parseInt(e || n, 16);
            return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "\uFFFD"
        }
    }
}
function Zhe(t={}) {
    const e = t.location !== !1
      , {onError: n} = t;
    function r(m, y, b, x, ...C) {
        const S = m.currentPosition();
        if (S.offset += x,
        S.column += x,
        n) {
            const w = V3(b, S)
              , T = OC(y, w, {
                domain: Yhe,
                args: C
            });
            n(T)
        }
    }
    function a(m, y, b) {
        const x = {
            type: m,
            start: y,
            end: y
        };
        return e && (x.loc = {
            start: b,
            end: b
        }),
        x
    }
    function i(m, y, b, x) {
        m.end = y,
        x && (m.type = x),
        e && m.loc && (m.loc.end = b)
    }
    function o(m, y) {
        const b = m.context()
          , x = a(3, b.offset, b.startLoc);
        return x.value = y,
        i(x, m.currentOffset(), m.currentPosition()),
        x
    }
    function l(m, y) {
        const b = m.context()
          , {lastOffset: x, lastStartLoc: C} = b
          , S = a(5, x, C);
        return S.index = parseInt(y, 10),
        m.nextToken(),
        i(S, m.currentOffset(), m.currentPosition()),
        S
    }
    function s(m, y) {
        const b = m.context()
          , {lastOffset: x, lastStartLoc: C} = b
          , S = a(4, x, C);
        return S.key = y,
        m.nextToken(),
        i(S, m.currentOffset(), m.currentPosition()),
        S
    }
    function u(m, y) {
        const b = m.context()
          , {lastOffset: x, lastStartLoc: C} = b
          , S = a(9, x, C);
        return S.value = y.replace(qhe, Xhe),
        m.nextToken(),
        i(S, m.currentOffset(), m.currentPosition()),
        S
    }
    function c(m) {
        const y = m.nextToken()
          , b = m.context()
          , {lastOffset: x, lastStartLoc: C} = b
          , S = a(8, x, C);
        return y.type !== 12 ? (r(m, Cn.UNEXPECTED_EMPTY_LINKED_MODIFIER, b.lastStartLoc, 0),
        S.value = "",
        i(S, x, C),
        {
            nextConsumeToken: y,
            node: S
        }) : (y.value == null && r(m, Cn.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, Fo(y)),
        S.value = y.value || "",
        i(S, m.currentOffset(), m.currentPosition()),
        {
            node: S
        })
    }
    function f(m, y) {
        const b = m.context()
          , x = a(7, b.offset, b.startLoc);
        return x.value = y,
        i(x, m.currentOffset(), m.currentPosition()),
        x
    }
    function d(m) {
        const y = m.context()
          , b = a(6, y.offset, y.startLoc);
        let x = m.nextToken();
        if (x.type === 9) {
            const C = c(m);
            b.modifier = C.node,
            x = C.nextConsumeToken || m.nextToken()
        }
        switch (x.type !== 10 && r(m, Cn.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Fo(x)),
        x = m.nextToken(),
        x.type === 2 && (x = m.nextToken()),
        x.type) {
        case 11:
            x.value == null && r(m, Cn.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Fo(x)),
            b.key = f(m, x.value || "");
            break;
        case 5:
            x.value == null && r(m, Cn.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Fo(x)),
            b.key = s(m, x.value || "");
            break;
        case 6:
            x.value == null && r(m, Cn.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Fo(x)),
            b.key = l(m, x.value || "");
            break;
        case 7:
            x.value == null && r(m, Cn.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Fo(x)),
            b.key = u(m, x.value || "");
            break;
        default:
            r(m, Cn.UNEXPECTED_EMPTY_LINKED_KEY, y.lastStartLoc, 0);
            const C = m.context()
              , S = a(7, C.offset, C.startLoc);
            return S.value = "",
            i(S, C.offset, C.startLoc),
            b.key = S,
            i(b, C.offset, C.startLoc),
            {
                nextConsumeToken: x,
                node: b
            }
        }
        return i(b, m.currentOffset(), m.currentPosition()),
        {
            node: b
        }
    }
    function v(m) {
        const y = m.context()
          , b = y.currentType === 1 ? m.currentOffset() : y.offset
          , x = y.currentType === 1 ? y.endLoc : y.startLoc
          , C = a(2, b, x);
        C.items = [];
        let S = null;
        do {
            const P = S || m.nextToken();
            switch (S = null,
            P.type) {
            case 0:
                P.value == null && r(m, Cn.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Fo(P)),
                C.items.push(o(m, P.value || ""));
                break;
            case 6:
                P.value == null && r(m, Cn.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Fo(P)),
                C.items.push(l(m, P.value || ""));
                break;
            case 5:
                P.value == null && r(m, Cn.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Fo(P)),
                C.items.push(s(m, P.value || ""));
                break;
            case 7:
                P.value == null && r(m, Cn.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, Fo(P)),
                C.items.push(u(m, P.value || ""));
                break;
            case 8:
                const M = d(m);
                C.items.push(M.node),
                S = M.nextConsumeToken || null;
                break
            }
        } while (y.currentType !== 14 && y.currentType !== 1);
        const w = y.currentType === 1 ? y.lastOffset : m.currentOffset()
          , T = y.currentType === 1 ? y.lastEndLoc : m.currentPosition();
        return i(C, w, T),
        C
    }
    function h(m, y, b, x) {
        const C = m.context();
        let S = x.items.length === 0;
        const w = a(1, y, b);
        w.cases = [],
        w.cases.push(x);
        do {
            const T = v(m);
            S || (S = T.items.length === 0),
            w.cases.push(T)
        } while (C.currentType !== 14);
        return S && r(m, Cn.MUST_HAVE_MESSAGES_IN_PLURAL, b, 0),
        i(w, m.currentOffset(), m.currentPosition()),
        w
    }
    function p(m) {
        const y = m.context()
          , {offset: b, startLoc: x} = y
          , C = v(m);
        return y.currentType === 14 ? C : h(m, b, x, C)
    }
    function g(m) {
        const y = Uhe(m, jr({}, t))
          , b = y.context()
          , x = a(0, b.offset, b.startLoc);
        return e && x.loc && (x.loc.source = m),
        x.body = p(y),
        b.currentType !== 14 && r(y, Cn.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, m[b.offset] || ""),
        i(x, y.currentOffset(), y.currentPosition()),
        x
    }
    return {
        parse: g
    }
}
function Fo(t) {
    if (t.type === 14)
        return "EOF";
    const e = (t.value || "").replace(/\r?\n/gu, "\\n");
    return e.length > 10 ? e.slice(0, 9) + "\u2026" : e
}
function Qhe(t, e={}) {
    const n = {
        ast: t,
        helpers: new Set
    };
    return {
        context: ()=>n,
        helper: i=>(n.helpers.add(i),
        i)
    }
}
function tN(t, e) {
    for (let n = 0; n < t.length; n++)
        pO(t[n], e)
}
function pO(t, e) {
    switch (t.type) {
    case 1:
        tN(t.cases, e),
        e.helper("plural");
        break;
    case 2:
        tN(t.items, e);
        break;
    case 6:
        pO(t.key, e),
        e.helper("linked"),
        e.helper("type");
        break;
    case 5:
        e.helper("interpolate"),
        e.helper("list");
        break;
    case 4:
        e.helper("interpolate"),
        e.helper("named");
        break
    }
}
function Jhe(t, e={}) {
    const n = Qhe(t);
    n.helper("normalize"),
    t.body && pO(t.body, n);
    const r = n.context();
    t.helpers = Array.from(r.helpers)
}
function epe(t, e) {
    const {sourceMap: n, filename: r, breakLineCode: a, needIndent: i} = e
      , o = {
        source: t.loc.source,
        filename: r,
        code: "",
        column: 1,
        line: 1,
        offset: 0,
        map: void 0,
        breakLineCode: a,
        needIndent: i,
        indentLevel: 0
    }
      , l = ()=>o;
    function s(p, g) {
        o.code += p
    }
    function u(p, g=!0) {
        const m = g ? a : "";
        s(i ? m + "  ".repeat(p) : m)
    }
    function c(p=!0) {
        const g = ++o.indentLevel;
        p && u(g)
    }
    function f(p=!0) {
        const g = --o.indentLevel;
        p && u(g)
    }
    function d() {
        u(o.indentLevel)
    }
    return {
        context: l,
        push: s,
        indent: c,
        deindent: f,
        newline: d,
        helper: p=>`_${p}`,
        needIndent: ()=>o.needIndent
    }
}
function tpe(t, e) {
    const {helper: n} = t;
    t.push(`${n("linked")}(`),
    Ov(t, e.key),
    e.modifier ? (t.push(", "),
    Ov(t, e.modifier),
    t.push(", _type")) : t.push(", undefined, _type"),
    t.push(")")
}
function npe(t, e) {
    const {helper: n, needIndent: r} = t;
    t.push(`${n("normalize")}([`),
    t.indent(r());
    const a = e.items.length;
    for (let i = 0; i < a && (Ov(t, e.items[i]),
    i !== a - 1); i++)
        t.push(", ");
    t.deindent(r()),
    t.push("])")
}
function rpe(t, e) {
    const {helper: n, needIndent: r} = t;
    if (e.cases.length > 1) {
        t.push(`${n("plural")}([`),
        t.indent(r());
        const a = e.cases.length;
        for (let i = 0; i < a && (Ov(t, e.cases[i]),
        i !== a - 1); i++)
            t.push(", ");
        t.deindent(r()),
        t.push("])")
    }
}
function ape(t, e) {
    e.body ? Ov(t, e.body) : t.push("null")
}
function Ov(t, e) {
    const {helper: n} = t;
    switch (e.type) {
    case 0:
        ape(t, e);
        break;
    case 1:
        rpe(t, e);
        break;
    case 2:
        npe(t, e);
        break;
    case 6:
        tpe(t, e);
        break;
    case 8:
        t.push(JSON.stringify(e.value), e);
        break;
    case 7:
        t.push(JSON.stringify(e.value), e);
        break;
    case 5:
        t.push(`${n("interpolate")}(${n("list")}(${e.index}))`, e);
        break;
    case 4:
        t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`, e);
        break;
    case 9:
        t.push(JSON.stringify(e.value), e);
        break;
    case 3:
        t.push(JSON.stringify(e.value), e);
        break
    }
}
const ipe = (t,e={})=>{
    const n = Je(e.mode) ? e.mode : "normal"
      , r = Je(e.filename) ? e.filename : "message.intl"
      , a = !!e.sourceMap
      , i = e.breakLineCode != null ? e.breakLineCode : n === "arrow" ? ";" : `
`
      , o = e.needIndent ? e.needIndent : n !== "arrow"
      , l = t.helpers || []
      , s = epe(t, {
        mode: n,
        filename: r,
        sourceMap: a,
        breakLineCode: i,
        needIndent: o
    });
    s.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"),
    s.indent(o),
    l.length > 0 && (s.push(`const { ${l.map(f=>`${f}: _${f}`).join(", ")} } = ctx`),
    s.newline()),
    s.push("return "),
    Ov(s, t),
    s.deindent(o),
    s.push("}");
    const {code: u, map: c} = s.context();
    return {
        ast: t,
        code: u,
        map: c ? c.toJSON() : void 0
    }
}
;
function ope(t, e={}) {
    const n = jr({}, e)
      , a = Zhe(n).parse(t);
    return Jhe(a, n),
    ipe(a, n)
}
/*!
  * devtools-if v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */
const Fq = {
    I18nInit: "i18n:init",
    FunctionTranslate: "function:translate"
};
/*!
  * core-base v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */
const Bu = [];
Bu[0] = {
    w: [0],
    i: [3, 0],
    ["["]: [4],
    o: [7]
};
Bu[1] = {
    w: [1],
    ["."]: [2],
    ["["]: [4],
    o: [7]
};
Bu[2] = {
    w: [2],
    i: [3, 0],
    [0]: [3, 0]
};
Bu[3] = {
    i: [3, 0],
    [0]: [3, 0],
    w: [1, 1],
    ["."]: [2, 1],
    ["["]: [4, 1],
    o: [7, 1]
};
Bu[4] = {
    ["'"]: [5, 0],
    ['"']: [6, 0],
    ["["]: [4, 2],
    ["]"]: [1, 3],
    o: 8,
    l: [4, 0]
};
Bu[5] = {
    ["'"]: [4, 0],
    o: 8,
    l: [5, 0]
};
Bu[6] = {
    ['"']: [4, 0],
    o: 8,
    l: [6, 0]
};
const lpe = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
function spe(t) {
    return lpe.test(t)
}
function upe(t) {
    const e = t.charCodeAt(0)
      , n = t.charCodeAt(t.length - 1);
    return e === n && (e === 34 || e === 39) ? t.slice(1, -1) : t
}
function cpe(t) {
    if (t == null)
        return "o";
    switch (t.charCodeAt(0)) {
    case 91:
    case 93:
    case 46:
    case 34:
    case 39:
        return t;
    case 95:
    case 36:
    case 45:
        return "i";
    case 9:
    case 10:
    case 13:
    case 160:
    case 65279:
    case 8232:
    case 8233:
        return "w"
    }
    return "i"
}
function fpe(t) {
    const e = t.trim();
    return t.charAt(0) === "0" && isNaN(parseInt(t)) ? !1 : spe(e) ? upe(e) : "*" + e
}
function dpe(t) {
    const e = [];
    let n = -1, r = 0, a = 0, i, o, l, s, u, c, f;
    const d = [];
    d[0] = ()=>{
        o === void 0 ? o = l : o += l
    }
    ,
    d[1] = ()=>{
        o !== void 0 && (e.push(o),
        o = void 0)
    }
    ,
    d[2] = ()=>{
        d[0](),
        a++
    }
    ,
    d[3] = ()=>{
        if (a > 0)
            a--,
            r = 4,
            d[0]();
        else {
            if (a = 0,
            o === void 0 || (o = fpe(o),
            o === !1))
                return !1;
            d[1]()
        }
    }
    ;
    function v() {
        const h = t[n + 1];
        if (r === 5 && h === "'" || r === 6 && h === '"')
            return n++,
            l = "\\" + h,
            d[0](),
            !0
    }
    for (; r !== null; )
        if (n++,
        i = t[n],
        !(i === "\\" && v())) {
            if (s = cpe(i),
            f = Bu[r],
            u = f[s] || f.l || 8,
            u === 8 || (r = u[0],
            u[1] !== void 0 && (c = d[u[1]],
            c && (l = i,
            c() === !1))))
                return;
            if (r === 7)
                return e
        }
}
const nN = new Map;
function vpe(t, e) {
    return Wn(t) ? t[e] : null
}
function hpe(t, e) {
    if (!Wn(t))
        return null;
    let n = nN.get(e);
    if (n || (n = dpe(e),
    n && nN.set(e, n)),
    !n)
        return null;
    const r = n.length;
    let a = t
      , i = 0;
    for (; i < r; ) {
        const o = a[n[i]];
        if (o === void 0)
            return null;
        a = o,
        i++
    }
    return a
}
const ppe = t=>t
  , gpe = t=>""
  , mpe = "text"
  , ype = t=>t.length === 0 ? "" : t.join("")
  , bpe = Bhe;
function rN(t, e) {
    return t = Math.abs(t),
    e === 2 ? t ? t > 1 ? 1 : 0 : 1 : t ? Math.min(t, 2) : 0
}
function xpe(t) {
    const e = Ir(t.pluralIndex) ? t.pluralIndex : -1;
    return t.named && (Ir(t.named.count) || Ir(t.named.n)) ? Ir(t.named.count) ? t.named.count : Ir(t.named.n) ? t.named.n : e : e
}
function Spe(t, e) {
    e.count || (e.count = t),
    e.n || (e.n = t)
}
function Cpe(t={}) {
    const e = t.locale
      , n = xpe(t)
      , r = Wn(t.pluralRules) && Je(e) && pr(t.pluralRules[e]) ? t.pluralRules[e] : rN
      , a = Wn(t.pluralRules) && Je(e) && pr(t.pluralRules[e]) ? rN : void 0
      , i = m=>m[r(n, m.length, a)]
      , o = t.list || []
      , l = m=>o[m]
      , s = t.named || {};
    Ir(t.pluralIndex) && Spe(n, s);
    const u = m=>s[m];
    function c(m) {
        const y = pr(t.messages) ? t.messages(m) : Wn(t.messages) ? t.messages[m] : !1;
        return y || (t.parent ? t.parent.message(m) : gpe)
    }
    const f = m=>t.modifiers ? t.modifiers[m] : ppe
      , d = Yt(t.processor) && pr(t.processor.normalize) ? t.processor.normalize : ype
      , v = Yt(t.processor) && pr(t.processor.interpolate) ? t.processor.interpolate : bpe
      , h = Yt(t.processor) && Je(t.processor.type) ? t.processor.type : mpe
      , g = {
        list: l,
        named: u,
        plural: i,
        linked: (m,...y)=>{
            const [b,x] = y;
            let C = "text"
              , S = "";
            y.length === 1 ? Wn(b) ? (S = b.modifier || S,
            C = b.type || C) : Je(b) && (S = b || S) : y.length === 2 && (Je(b) && (S = b || S),
            Je(x) && (C = x || C));
            let w = c(m)(g);
            return C === "vnode" && jn(w) && S && (w = w[0]),
            S ? f(S)(w, C) : w
        }
        ,
        message: c,
        type: h,
        interpolate: v,
        normalize: d
    };
    return g
}
let r0 = null;
function wpe(t) {
    r0 = t
}
function _pe(t, e, n) {
    r0 && r0.emit(Fq.I18nInit, {
        timestamp: Date.now(),
        i18n: t,
        version: e,
        meta: n
    })
}
const Tpe = Ppe(Fq.FunctionTranslate);
function Ppe(t) {
    return e=>r0 && r0.emit(t, e)
}
const Mpe = {
    NOT_FOUND_KEY: 1,
    FALLBACK_TO_TRANSLATE: 2,
    CANNOT_FORMAT_NUMBER: 3,
    FALLBACK_TO_NUMBER_FORMAT: 4,
    CANNOT_FORMAT_DATE: 5,
    FALLBACK_TO_DATE_FORMAT: 6,
    __EXTEND_POINT__: 7
};
function Ape(t, e, n) {
    return [...new Set([n, ...jn(e) ? e : Wn(e) ? Object.keys(e) : Je(e) ? [e] : [n]])]
}
function Bq(t, e, n) {
    const r = Je(n) ? n : vm
      , a = t;
    a.__localeChainCache || (a.__localeChainCache = new Map);
    let i = a.__localeChainCache.get(r);
    if (!i) {
        i = [];
        let o = [n];
        for (; jn(o); )
            o = aN(i, o, e);
        const l = jn(e) || !Yt(e) ? e : e.default ? e.default : null;
        o = Je(l) ? [l] : l,
        jn(o) && aN(i, o, !1),
        a.__localeChainCache.set(r, i)
    }
    return i
}
function aN(t, e, n) {
    let r = !0;
    for (let a = 0; a < e.length && hn(r); a++) {
        const i = e[a];
        Je(i) && (r = Ipe(t, e[a], n))
    }
    return r
}
function Ipe(t, e, n) {
    let r;
    const a = e.split("-");
    do {
        const i = a.join("-");
        r = kpe(t, i, n),
        a.splice(-1, 1)
    } while (a.length && r === !0);
    return r
}
function kpe(t, e, n) {
    let r = !1;
    if (!t.includes(e) && (r = !0,
    e)) {
        r = e[e.length - 1] !== "!";
        const a = e.replace(/!/g, "");
        t.push(a),
        (jn(n) || Yt(n)) && n[a] && (r = n[a])
    }
    return r
}
const Ope = "9.2.2"
  , DC = -1
  , vm = "en-US"
  , iN = ""
  , oN = t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;
function Dpe() {
    return {
        upper: (t,e)=>e === "text" && Je(t) ? t.toUpperCase() : e === "vnode" && Wn(t) && "__v_isVNode"in t ? t.children.toUpperCase() : t,
        lower: (t,e)=>e === "text" && Je(t) ? t.toLowerCase() : e === "vnode" && Wn(t) && "__v_isVNode"in t ? t.children.toLowerCase() : t,
        capitalize: (t,e)=>e === "text" && Je(t) ? oN(t) : e === "vnode" && Wn(t) && "__v_isVNode"in t ? oN(t.children) : t
    }
}
let Vq;
function Epe(t) {
    Vq = t
}
let zq;
function Lpe(t) {
    zq = t
}
let Hq;
function Rpe(t) {
    Hq = t
}
let jq = null;
const lN = t=>{
    jq = t
}
  , Npe = ()=>jq;
let Wq = null;
const sN = t=>{
    Wq = t
}
  , $pe = ()=>Wq;
let uN = 0;
function Fpe(t={}) {
    const e = Je(t.version) ? t.version : Ope
      , n = Je(t.locale) ? t.locale : vm
      , r = jn(t.fallbackLocale) || Yt(t.fallbackLocale) || Je(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : n
      , a = Yt(t.messages) ? t.messages : {
        [n]: {}
    }
      , i = Yt(t.datetimeFormats) ? t.datetimeFormats : {
        [n]: {}
    }
      , o = Yt(t.numberFormats) ? t.numberFormats : {
        [n]: {}
    }
      , l = jr({}, t.modifiers || {}, Dpe())
      , s = t.pluralRules || {}
      , u = pr(t.missing) ? t.missing : null
      , c = hn(t.missingWarn) || Mu(t.missingWarn) ? t.missingWarn : !0
      , f = hn(t.fallbackWarn) || Mu(t.fallbackWarn) ? t.fallbackWarn : !0
      , d = !!t.fallbackFormat
      , v = !!t.unresolving
      , h = pr(t.postTranslation) ? t.postTranslation : null
      , p = Yt(t.processor) ? t.processor : null
      , g = hn(t.warnHtmlMessage) ? t.warnHtmlMessage : !0
      , m = !!t.escapeParameter
      , y = pr(t.messageCompiler) ? t.messageCompiler : Vq
      , b = pr(t.messageResolver) ? t.messageResolver : zq || vpe
      , x = pr(t.localeFallbacker) ? t.localeFallbacker : Hq || Ape
      , C = Wn(t.fallbackContext) ? t.fallbackContext : void 0
      , S = pr(t.onWarn) ? t.onWarn : $he
      , w = t
      , T = Wn(w.__datetimeFormatters) ? w.__datetimeFormatters : new Map
      , P = Wn(w.__numberFormatters) ? w.__numberFormatters : new Map
      , M = Wn(w.__meta) ? w.__meta : {};
    uN++;
    const A = {
        version: e,
        cid: uN,
        locale: n,
        fallbackLocale: r,
        messages: a,
        modifiers: l,
        pluralRules: s,
        missing: u,
        missingWarn: c,
        fallbackWarn: f,
        fallbackFormat: d,
        unresolving: v,
        postTranslation: h,
        processor: p,
        warnHtmlMessage: g,
        escapeParameter: m,
        messageCompiler: y,
        messageResolver: b,
        localeFallbacker: x,
        fallbackContext: C,
        onWarn: S,
        __meta: M
    };
    return A.datetimeFormats = i,
    A.numberFormats = o,
    A.__datetimeFormatters = T,
    A.__numberFormatters = P,
    __INTLIFY_PROD_DEVTOOLS__ && _pe(A, e, M),
    A
}
function gO(t, e, n, r, a) {
    const {missing: i, onWarn: o} = t;
    if (i !== null) {
        const l = i(t, n, e, a);
        return Je(l) ? l : e
    } else
        return e
}
function Xh(t, e, n) {
    const r = t;
    r.__localeChainCache = new Map,
    t.localeFallbacker(t, n, e)
}
const Bpe = t=>t;
let cN = Object.create(null);
function Vpe(t, e={}) {
    {
        const r = (e.onCacheKey || Bpe)(t)
          , a = cN[r];
        if (a)
            return a;
        let i = !1;
        const o = e.onError || Vhe;
        e.onError = u=>{
            i = !0,
            o(u)
        }
        ;
        const {code: l} = ope(t, e)
          , s = new Function(`return ${l}`)();
        return i ? s : cN[r] = s
    }
}
let Gq = Cn.__EXTEND_POINT__;
const J2 = ()=>++Gq
  , Zd = {
    INVALID_ARGUMENT: Gq,
    INVALID_DATE_ARGUMENT: J2(),
    INVALID_ISO_DATE_ARGUMENT: J2(),
    __EXTEND_POINT__: J2()
};
function Qd(t) {
    return OC(t, null, void 0)
}
const fN = ()=>""
  , Qo = t=>pr(t);
function dN(t, ...e) {
    const {fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: i, fallbackLocale: o, messages: l} = t
      , [s,u] = z3(...e)
      , c = hn(u.missingWarn) ? u.missingWarn : t.missingWarn
      , f = hn(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn
      , d = hn(u.escapeParameter) ? u.escapeParameter : t.escapeParameter
      , v = !!u.resolvedMessage
      , h = Je(u.default) || hn(u.default) ? hn(u.default) ? i ? s : ()=>s : u.default : n ? i ? s : ()=>s : ""
      , p = n || h !== ""
      , g = Je(u.locale) ? u.locale : t.locale;
    d && zpe(u);
    let[m,y,b] = v ? [s, g, l[g] || {}] : Kq(t, s, g, o, f, c)
      , x = m
      , C = s;
    if (!v && !(Je(x) || Qo(x)) && p && (x = h,
    C = x),
    !v && (!(Je(x) || Qo(x)) || !Je(y)))
        return a ? DC : s;
    let S = !1;
    const w = ()=>{
        S = !0
    }
      , T = Qo(x) ? x : Uq(t, s, y, x, C, w);
    if (S)
        return x;
    const P = Wpe(t, y, b, u)
      , M = Cpe(P)
      , A = Hpe(t, T, M)
      , O = r ? r(A, s) : A;
    if (__INTLIFY_PROD_DEVTOOLS__) {
        const k = {
            timestamp: Date.now(),
            key: Je(s) ? s : Qo(x) ? x.key : "",
            locale: y || (Qo(x) ? x.locale : ""),
            format: Je(x) ? x : Qo(x) ? x.source : "",
            message: O
        };
        k.meta = jr({}, t.__meta, Npe() || {}),
        Tpe(k)
    }
    return O
}
function zpe(t) {
    jn(t.list) ? t.list = t.list.map(e=>Je(e) ? JR(e) : e) : Wn(t.named) && Object.keys(t.named).forEach(e=>{
        Je(t.named[e]) && (t.named[e] = JR(t.named[e]))
    }
    )
}
function Kq(t, e, n, r, a, i) {
    const {messages: o, onWarn: l, messageResolver: s, localeFallbacker: u} = t
      , c = u(t, r, n);
    let f = {}, d, v = null;
    const h = "translate";
    for (let p = 0; p < c.length && (d = c[p],
    f = o[d] || {},
    (v = s(f, e)) === null && (v = f[e]),
    !(Je(v) || pr(v))); p++) {
        const g = gO(t, e, d, i, h);
        g !== e && (v = g)
    }
    return [v, d, f]
}
function Uq(t, e, n, r, a, i) {
    const {messageCompiler: o, warnHtmlMessage: l} = t;
    if (Qo(r)) {
        const u = r;
        return u.locale = u.locale || n,
        u.key = u.key || e,
        u
    }
    if (o == null) {
        const u = ()=>r;
        return u.locale = n,
        u.key = e,
        u
    }
    const s = o(r, jpe(t, n, a, r, l, i));
    return s.locale = n,
    s.key = e,
    s.source = r,
    s
}
function Hpe(t, e, n) {
    return e(n)
}
function z3(...t) {
    const [e,n,r] = t
      , a = {};
    if (!Je(e) && !Ir(e) && !Qo(e))
        throw Qd(Zd.INVALID_ARGUMENT);
    const i = Ir(e) ? String(e) : (Qo(e),
    e);
    return Ir(n) ? a.plural = n : Je(n) ? a.default = n : Yt(n) && !kC(n) ? a.named = n : jn(n) && (a.list = n),
    Ir(r) ? a.plural = r : Je(r) ? a.default = r : Yt(r) && jr(a, r),
    [i, a]
}
function jpe(t, e, n, r, a, i) {
    return {
        warnHtmlMessage: a,
        onError: o=>{
            throw i && i(o),
            o
        }
        ,
        onCacheKey: o=>Lhe(e, n, o)
    }
}
function Wpe(t, e, n, r) {
    const {modifiers: a, pluralRules: i, messageResolver: o, fallbackLocale: l, fallbackWarn: s, missingWarn: u, fallbackContext: c} = t
      , d = {
        locale: e,
        modifiers: a,
        pluralRules: i,
        messages: v=>{
            let h = o(n, v);
            if (h == null && c) {
                const [,,p] = Kq(c, v, e, l, s, u);
                h = o(p, v)
            }
            if (Je(h)) {
                let p = !1;
                const m = Uq(t, v, e, h, v, ()=>{
                    p = !0
                }
                );
                return p ? fN : m
            } else
                return Qo(h) ? h : fN
        }
    };
    return t.processor && (d.processor = t.processor),
    r.list && (d.list = r.list),
    r.named && (d.named = r.named),
    Ir(r.plural) && (d.pluralIndex = r.plural),
    d
}
function vN(t, ...e) {
    const {datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: i, localeFallbacker: o} = t
      , {__datetimeFormatters: l} = t
      , [s,u,c,f] = H3(...e)
      , d = hn(c.missingWarn) ? c.missingWarn : t.missingWarn;
    hn(c.fallbackWarn) ? c.fallbackWarn : t.fallbackWarn;
    const v = !!c.part
      , h = Je(c.locale) ? c.locale : t.locale
      , p = o(t, a, h);
    if (!Je(s) || s === "")
        return new Intl.DateTimeFormat(h,f).format(u);
    let g = {}, m, y = null;
    const b = "datetime format";
    for (let S = 0; S < p.length && (m = p[S],
    g = n[m] || {},
    y = g[s],
    !Yt(y)); S++)
        gO(t, s, m, d, b);
    if (!Yt(y) || !Je(m))
        return r ? DC : s;
    let x = `${m}__${s}`;
    kC(f) || (x = `${x}__${JSON.stringify(f)}`);
    let C = l.get(x);
    return C || (C = new Intl.DateTimeFormat(m,jr({}, y, f)),
    l.set(x, C)),
    v ? C.formatToParts(u) : C.format(u)
}
const Yq = ["localeMatcher", "weekday", "era", "year", "month", "day", "hour", "minute", "second", "timeZoneName", "formatMatcher", "hour12", "timeZone", "dateStyle", "timeStyle", "calendar", "dayPeriod", "numberingSystem", "hourCycle", "fractionalSecondDigits"];
function H3(...t) {
    const [e,n,r,a] = t
      , i = {};
    let o = {}, l;
    if (Je(e)) {
        const s = e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
        if (!s)
            throw Qd(Zd.INVALID_ISO_DATE_ARGUMENT);
        const u = s[3] ? s[3].trim().startsWith("T") ? `${s[1].trim()}${s[3].trim()}` : `${s[1].trim()}T${s[3].trim()}` : s[1].trim();
        l = new Date(u);
        try {
            l.toISOString()
        } catch (c) {
            throw Qd(Zd.INVALID_ISO_DATE_ARGUMENT)
        }
    } else if (Nhe(e)) {
        if (isNaN(e.getTime()))
            throw Qd(Zd.INVALID_DATE_ARGUMENT);
        l = e
    } else if (Ir(e))
        l = e;
    else
        throw Qd(Zd.INVALID_ARGUMENT);
    return Je(n) ? i.key = n : Yt(n) && Object.keys(n).forEach(s=>{
        Yq.includes(s) ? o[s] = n[s] : i[s] = n[s]
    }
    ),
    Je(r) ? i.locale = r : Yt(r) && (o = r),
    Yt(a) && (o = a),
    [i.key || "", l, i, o]
}
function hN(t, e, n) {
    const r = t;
    for (const a in n) {
        const i = `${e}__${a}`;
        !r.__datetimeFormatters.has(i) || r.__datetimeFormatters.delete(i)
    }
}
function pN(t, ...e) {
    const {numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: i, localeFallbacker: o} = t
      , {__numberFormatters: l} = t
      , [s,u,c,f] = j3(...e)
      , d = hn(c.missingWarn) ? c.missingWarn : t.missingWarn;
    hn(c.fallbackWarn) ? c.fallbackWarn : t.fallbackWarn;
    const v = !!c.part
      , h = Je(c.locale) ? c.locale : t.locale
      , p = o(t, a, h);
    if (!Je(s) || s === "")
        return new Intl.NumberFormat(h,f).format(u);
    let g = {}, m, y = null;
    const b = "number format";
    for (let S = 0; S < p.length && (m = p[S],
    g = n[m] || {},
    y = g[s],
    !Yt(y)); S++)
        gO(t, s, m, d, b);
    if (!Yt(y) || !Je(m))
        return r ? DC : s;
    let x = `${m}__${s}`;
    kC(f) || (x = `${x}__${JSON.stringify(f)}`);
    let C = l.get(x);
    return C || (C = new Intl.NumberFormat(m,jr({}, y, f)),
    l.set(x, C)),
    v ? C.formatToParts(u) : C.format(u)
}
const qq = ["localeMatcher", "style", "currency", "currencyDisplay", "currencySign", "useGrouping", "minimumIntegerDigits", "minimumFractionDigits", "maximumFractionDigits", "minimumSignificantDigits", "maximumSignificantDigits", "compactDisplay", "notation", "signDisplay", "unit", "unitDisplay", "roundingMode", "roundingPriority", "roundingIncrement", "trailingZeroDisplay"];
function j3(...t) {
    const [e,n,r,a] = t
      , i = {};
    let o = {};
    if (!Ir(e))
        throw Qd(Zd.INVALID_ARGUMENT);
    const l = e;
    return Je(n) ? i.key = n : Yt(n) && Object.keys(n).forEach(s=>{
        qq.includes(s) ? o[s] = n[s] : i[s] = n[s]
    }
    ),
    Je(r) ? i.locale = r : Yt(r) && (o = r),
    Yt(a) && (o = a),
    [i.key || "", l, i, o]
}
function gN(t, e, n) {
    const r = t;
    for (const a in n) {
        const i = `${e}__${a}`;
        !r.__numberFormatters.has(i) || r.__numberFormatters.delete(i)
    }
}
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ug().__INTLIFY_PROD_DEVTOOLS__ = !1);
/*!
  * vue-i18n v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */
const Gpe = "9.2.2";
function Kpe() {
    typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (ug().__VUE_I18N_FULL_INSTALL__ = !0),
    typeof __VUE_I18N_LEGACY_API__ != "boolean" && (ug().__VUE_I18N_LEGACY_API__ = !0),
    typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ug().__INTLIFY_PROD_DEVTOOLS__ = !1)
}
Mpe.__EXTEND_POINT__;
let Xq = Cn.__EXTEND_POINT__;
const ka = ()=>++Xq
  , Tr = {
    UNEXPECTED_RETURN_TYPE: Xq,
    INVALID_ARGUMENT: ka(),
    MUST_BE_CALL_SETUP_TOP: ka(),
    NOT_INSLALLED: ka(),
    NOT_AVAILABLE_IN_LEGACY_MODE: ka(),
    REQUIRED_VALUE: ka(),
    INVALID_VALUE: ka(),
    CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: ka(),
    NOT_INSLALLED_WITH_PROVIDE: ka(),
    UNEXPECTED_ERROR: ka(),
    NOT_COMPATIBLE_LEGACY_VUE_I18N: ka(),
    BRIDGE_SUPPORT_VUE_2_ONLY: ka(),
    MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION: ka(),
    NOT_AVAILABLE_COMPOSITION_IN_LEGACY: ka(),
    __EXTEND_POINT__: ka()
};
function Er(t, ...e) {
    return OC(t, null, void 0)
}
const W3 = Fu("__transrateVNode")
  , G3 = Fu("__datetimeParts")
  , K3 = Fu("__numberParts")
  , Zq = Fu("__setPluralRules");
Fu("__intlifyMeta");
const Qq = Fu("__injectWithOption");
function U3(t) {
    if (!Wn(t))
        return t;
    for (const e in t)
        if (!!vO(t, e))
            if (!e.includes("."))
                Wn(t[e]) && U3(t[e]);
            else {
                const n = e.split(".")
                  , r = n.length - 1;
                let a = t;
                for (let i = 0; i < r; i++)
                    n[i]in a || (a[n[i]] = {}),
                    a = a[n[i]];
                a[n[r]] = t[e],
                delete t[e],
                Wn(a[n[r]]) && U3(a[n[r]])
            }
    return t
}
function EC(t, e) {
    const {messages: n, __i18n: r, messageResolver: a, flatJson: i} = e
      , o = Yt(n) ? n : jn(r) ? {} : {
        [t]: {}
    };
    if (jn(r) && r.forEach(l=>{
        if ("locale"in l && "resource"in l) {
            const {locale: s, resource: u} = l;
            s ? (o[s] = o[s] || {},
            cg(u, o[s])) : cg(u, o)
        } else
            Je(l) && cg(JSON.parse(l), o)
    }
    ),
    a == null && i)
        for (const l in o)
            vO(o, l) && U3(o[l]);
    return o
}
const Cy = t=>!Wn(t) || jn(t);
function cg(t, e) {
    if (Cy(t) || Cy(e))
        throw Er(Tr.INVALID_VALUE);
    for (const n in t)
        vO(t, n) && (Cy(t[n]) || Cy(e[n]) ? e[n] = t[n] : cg(t[n], e[n]))
}
function Jq(t) {
    return t.type
}
function eX(t, e, n) {
    let r = Wn(e.messages) ? e.messages : {};
    "__i18nGlobal"in n && (r = EC(t.locale.value, {
        messages: r,
        __i18n: n.__i18nGlobal
    }));
    const a = Object.keys(r);
    a.length && a.forEach(i=>{
        t.mergeLocaleMessage(i, r[i])
    }
    );
    {
        if (Wn(e.datetimeFormats)) {
            const i = Object.keys(e.datetimeFormats);
            i.length && i.forEach(o=>{
                t.mergeDateTimeFormat(o, e.datetimeFormats[o])
            }
            )
        }
        if (Wn(e.numberFormats)) {
            const i = Object.keys(e.numberFormats);
            i.length && i.forEach(o=>{
                t.mergeNumberFormat(o, e.numberFormats[o])
            }
            )
        }
    }
}
function mN(t) {
    return _(gs, null, t, 0)
}
const yN = "__INTLIFY_META__";
let bN = 0;
function xN(t) {
    return (e,n,r,a)=>t(n, r, qn() || void 0, a)
}
const Upe = ()=>{
    const t = qn();
    let e = null;
    return t && (e = Jq(t)[yN]) ? {
        [yN]: e
    } : null
}
;
function mO(t={}, e) {
    const {__root: n} = t
      , r = n === void 0;
    let a = hn(t.inheritLocale) ? t.inheritLocale : !0;
    const i = Q(n && a ? n.locale.value : Je(t.locale) ? t.locale : vm)
      , o = Q(n && a ? n.fallbackLocale.value : Je(t.fallbackLocale) || jn(t.fallbackLocale) || Yt(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : i.value)
      , l = Q(EC(i.value, t))
      , s = Q(Yt(t.datetimeFormats) ? t.datetimeFormats : {
        [i.value]: {}
    })
      , u = Q(Yt(t.numberFormats) ? t.numberFormats : {
        [i.value]: {}
    });
    let c = n ? n.missingWarn : hn(t.missingWarn) || Mu(t.missingWarn) ? t.missingWarn : !0
      , f = n ? n.fallbackWarn : hn(t.fallbackWarn) || Mu(t.fallbackWarn) ? t.fallbackWarn : !0
      , d = n ? n.fallbackRoot : hn(t.fallbackRoot) ? t.fallbackRoot : !0
      , v = !!t.fallbackFormat
      , h = pr(t.missing) ? t.missing : null
      , p = pr(t.missing) ? xN(t.missing) : null
      , g = pr(t.postTranslation) ? t.postTranslation : null
      , m = n ? n.warnHtmlMessage : hn(t.warnHtmlMessage) ? t.warnHtmlMessage : !0
      , y = !!t.escapeParameter;
    const b = n ? n.modifiers : Yt(t.modifiers) ? t.modifiers : {};
    let x = t.pluralRules || n && n.pluralRules, C;
    C = (()=>{
        r && sN(null);
        const oe = {
            version: Gpe,
            locale: i.value,
            fallbackLocale: o.value,
            messages: l.value,
            modifiers: b,
            pluralRules: x,
            missing: p === null ? void 0 : p,
            missingWarn: c,
            fallbackWarn: f,
            fallbackFormat: v,
            unresolving: !0,
            postTranslation: g === null ? void 0 : g,
            warnHtmlMessage: m,
            escapeParameter: y,
            messageResolver: t.messageResolver,
            __meta: {
                framework: "vue"
            }
        };
        oe.datetimeFormats = s.value,
        oe.numberFormats = u.value,
        oe.__datetimeFormatters = Yt(C) ? C.__datetimeFormatters : void 0,
        oe.__numberFormatters = Yt(C) ? C.__numberFormatters : void 0;
        const se = Fpe(oe);
        return r && sN(se),
        se
    }
    )(),
    Xh(C, i.value, o.value);
    function w() {
        return [i.value, o.value, l.value, s.value, u.value]
    }
    const T = j({
        get: ()=>i.value,
        set: oe=>{
            i.value = oe,
            C.locale = i.value
        }
    })
      , P = j({
        get: ()=>o.value,
        set: oe=>{
            o.value = oe,
            C.fallbackLocale = o.value,
            Xh(C, i.value, oe)
        }
    })
      , M = j(()=>l.value)
      , A = j(()=>s.value)
      , O = j(()=>u.value);
    function k() {
        return pr(g) ? g : null
    }
    function D(oe) {
        g = oe,
        C.postTranslation = oe
    }
    function E() {
        return h
    }
    function L(oe) {
        oe !== null && (p = xN(oe)),
        h = oe,
        C.missing = p
    }
    const N = (oe,se,xe,Pe,Fe,ze)=>{
        w();
        let _e;
        if (__INTLIFY_PROD_DEVTOOLS__)
            try {
                lN(Upe()),
                r || (C.fallbackContext = n ? $pe() : void 0),
                _e = oe(C)
            } finally {
                lN(null),
                r || (C.fallbackContext = void 0)
            }
        else
            _e = oe(C);
        if (Ir(_e) && _e === DC) {
            const [me,Ie] = se();
            return n && d ? Pe(n) : Fe(me)
        } else {
            if (ze(_e))
                return _e;
            throw Er(Tr.UNEXPECTED_RETURN_TYPE)
        }
    }
    ;
    function R(...oe) {
        return N(se=>Reflect.apply(dN, null, [se, ...oe]), ()=>z3(...oe), "translate", se=>Reflect.apply(se.t, se, [...oe]), se=>se, se=>Je(se))
    }
    function $(...oe) {
        const [se,xe,Pe] = oe;
        if (Pe && !Wn(Pe))
            throw Er(Tr.INVALID_ARGUMENT);
        return R(se, xe, jr({
            resolvedMessage: !0
        }, Pe || {}))
    }
    function W(...oe) {
        return N(se=>Reflect.apply(vN, null, [se, ...oe]), ()=>H3(...oe), "datetime format", se=>Reflect.apply(se.d, se, [...oe]), ()=>iN, se=>Je(se))
    }
    function B(...oe) {
        return N(se=>Reflect.apply(pN, null, [se, ...oe]), ()=>j3(...oe), "number format", se=>Reflect.apply(se.n, se, [...oe]), ()=>iN, se=>Je(se))
    }
    function G(oe) {
        return oe.map(se=>Je(se) || Ir(se) || hn(se) ? mN(String(se)) : se)
    }
    const V = {
        normalize: G,
        interpolate: oe=>oe,
        type: "vnode"
    };
    function U(...oe) {
        return N(se=>{
            let xe;
            const Pe = se;
            try {
                Pe.processor = V,
                xe = Reflect.apply(dN, null, [Pe, ...oe])
            } finally {
                Pe.processor = null
            }
            return xe
        }
        , ()=>z3(...oe), "translate", se=>se[W3](...oe), se=>[mN(se)], se=>jn(se))
    }
    function X(...oe) {
        return N(se=>Reflect.apply(pN, null, [se, ...oe]), ()=>j3(...oe), "number format", se=>se[K3](...oe), ()=>[], se=>Je(se) || jn(se))
    }
    function Y(...oe) {
        return N(se=>Reflect.apply(vN, null, [se, ...oe]), ()=>H3(...oe), "datetime format", se=>se[G3](...oe), ()=>[], se=>Je(se) || jn(se))
    }
    function te(oe) {
        x = oe,
        C.pluralRules = x
    }
    function ne(oe, se) {
        const xe = Je(se) ? se : i.value
          , Pe = q(xe);
        return C.messageResolver(Pe, oe) !== null
    }
    function ie(oe) {
        let se = null;
        const xe = Bq(C, o.value, i.value);
        for (let Pe = 0; Pe < xe.length; Pe++) {
            const Fe = l.value[xe[Pe]] || {}
              , ze = C.messageResolver(Fe, oe);
            if (ze != null) {
                se = ze;
                break
            }
        }
        return se
    }
    function ae(oe) {
        const se = ie(oe);
        return se != null ? se : n ? n.tm(oe) || {} : {}
    }
    function q(oe) {
        return l.value[oe] || {}
    }
    function F(oe, se) {
        l.value[oe] = se,
        C.messages = l.value
    }
    function H(oe, se) {
        l.value[oe] = l.value[oe] || {},
        cg(se, l.value[oe]),
        C.messages = l.value
    }
    function ee(oe) {
        return s.value[oe] || {}
    }
    function re(oe, se) {
        s.value[oe] = se,
        C.datetimeFormats = s.value,
        hN(C, oe, se)
    }
    function ue(oe, se) {
        s.value[oe] = jr(s.value[oe] || {}, se),
        C.datetimeFormats = s.value,
        hN(C, oe, se)
    }
    function ve(oe) {
        return u.value[oe] || {}
    }
    function fe(oe, se) {
        u.value[oe] = se,
        C.numberFormats = u.value,
        gN(C, oe, se)
    }
    function ce(oe, se) {
        u.value[oe] = jr(u.value[oe] || {}, se),
        C.numberFormats = u.value,
        gN(C, oe, se)
    }
    bN++,
    n && B3 && (Te(n.locale, oe=>{
        a && (i.value = oe,
        C.locale = oe,
        Xh(C, i.value, o.value))
    }
    ),
    Te(n.fallbackLocale, oe=>{
        a && (o.value = oe,
        C.fallbackLocale = oe,
        Xh(C, i.value, o.value))
    }
    ));
    const le = {
        id: bN,
        locale: T,
        fallbackLocale: P,
        get inheritLocale() {
            return a
        },
        set inheritLocale(oe) {
            a = oe,
            oe && n && (i.value = n.locale.value,
            o.value = n.fallbackLocale.value,
            Xh(C, i.value, o.value))
        },
        get availableLocales() {
            return Object.keys(l.value).sort()
        },
        messages: M,
        get modifiers() {
            return b
        },
        get pluralRules() {
            return x || {}
        },
        get isGlobal() {
            return r
        },
        get missingWarn() {
            return c
        },
        set missingWarn(oe) {
            c = oe,
            C.missingWarn = c
        },
        get fallbackWarn() {
            return f
        },
        set fallbackWarn(oe) {
            f = oe,
            C.fallbackWarn = f
        },
        get fallbackRoot() {
            return d
        },
        set fallbackRoot(oe) {
            d = oe
        },
        get fallbackFormat() {
            return v
        },
        set fallbackFormat(oe) {
            v = oe,
            C.fallbackFormat = v
        },
        get warnHtmlMessage() {
            return m
        },
        set warnHtmlMessage(oe) {
            m = oe,
            C.warnHtmlMessage = oe
        },
        get escapeParameter() {
            return y
        },
        set escapeParameter(oe) {
            y = oe,
            C.escapeParameter = oe
        },
        t: R,
        getLocaleMessage: q,
        setLocaleMessage: F,
        mergeLocaleMessage: H,
        getPostTranslationHandler: k,
        setPostTranslationHandler: D,
        getMissingHandler: E,
        setMissingHandler: L,
        [Zq]: te
    };
    return le.datetimeFormats = A,
    le.numberFormats = O,
    le.rt = $,
    le.te = ne,
    le.tm = ae,
    le.d = W,
    le.n = B,
    le.getDateTimeFormat = ee,
    le.setDateTimeFormat = re,
    le.mergeDateTimeFormat = ue,
    le.getNumberFormat = ve,
    le.setNumberFormat = fe,
    le.mergeNumberFormat = ce,
    le[Qq] = t.__injectWithOption,
    le[W3] = U,
    le[G3] = Y,
    le[K3] = X,
    le
}
function Ype(t) {
    const e = Je(t.locale) ? t.locale : vm
      , n = Je(t.fallbackLocale) || jn(t.fallbackLocale) || Yt(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : e
      , r = pr(t.missing) ? t.missing : void 0
      , a = hn(t.silentTranslationWarn) || Mu(t.silentTranslationWarn) ? !t.silentTranslationWarn : !0
      , i = hn(t.silentFallbackWarn) || Mu(t.silentFallbackWarn) ? !t.silentFallbackWarn : !0
      , o = hn(t.fallbackRoot) ? t.fallbackRoot : !0
      , l = !!t.formatFallbackMessages
      , s = Yt(t.modifiers) ? t.modifiers : {}
      , u = t.pluralizationRules
      , c = pr(t.postTranslation) ? t.postTranslation : void 0
      , f = Je(t.warnHtmlInMessage) ? t.warnHtmlInMessage !== "off" : !0
      , d = !!t.escapeParameterHtml
      , v = hn(t.sync) ? t.sync : !0;
    let h = t.messages;
    if (Yt(t.sharedMessages)) {
        const C = t.sharedMessages;
        h = Object.keys(C).reduce((w,T)=>{
            const P = w[T] || (w[T] = {});
            return jr(P, C[T]),
            w
        }
        , h || {})
    }
    const {__i18n: p, __root: g, __injectWithOption: m} = t
      , y = t.datetimeFormats
      , b = t.numberFormats
      , x = t.flatJson;
    return {
        locale: e,
        fallbackLocale: n,
        messages: h,
        flatJson: x,
        datetimeFormats: y,
        numberFormats: b,
        missing: r,
        missingWarn: a,
        fallbackWarn: i,
        fallbackRoot: o,
        fallbackFormat: l,
        modifiers: s,
        pluralRules: u,
        postTranslation: c,
        warnHtmlMessage: f,
        escapeParameter: d,
        messageResolver: t.messageResolver,
        inheritLocale: v,
        __i18n: p,
        __root: g,
        __injectWithOption: m
    }
}
function Y3(t={}, e) {
    {
        const n = mO(Ype(t))
          , r = {
            id: n.id,
            get locale() {
                return n.locale.value
            },
            set locale(a) {
                n.locale.value = a
            },
            get fallbackLocale() {
                return n.fallbackLocale.value
            },
            set fallbackLocale(a) {
                n.fallbackLocale.value = a
            },
            get messages() {
                return n.messages.value
            },
            get datetimeFormats() {
                return n.datetimeFormats.value
            },
            get numberFormats() {
                return n.numberFormats.value
            },
            get availableLocales() {
                return n.availableLocales
            },
            get formatter() {
                return {
                    interpolate() {
                        return []
                    }
                }
            },
            set formatter(a) {},
            get missing() {
                return n.getMissingHandler()
            },
            set missing(a) {
                n.setMissingHandler(a)
            },
            get silentTranslationWarn() {
                return hn(n.missingWarn) ? !n.missingWarn : n.missingWarn
            },
            set silentTranslationWarn(a) {
                n.missingWarn = hn(a) ? !a : a
            },
            get silentFallbackWarn() {
                return hn(n.fallbackWarn) ? !n.fallbackWarn : n.fallbackWarn
            },
            set silentFallbackWarn(a) {
                n.fallbackWarn = hn(a) ? !a : a
            },
            get modifiers() {
                return n.modifiers
            },
            get formatFallbackMessages() {
                return n.fallbackFormat
            },
            set formatFallbackMessages(a) {
                n.fallbackFormat = a
            },
            get postTranslation() {
                return n.getPostTranslationHandler()
            },
            set postTranslation(a) {
                n.setPostTranslationHandler(a)
            },
            get sync() {
                return n.inheritLocale
            },
            set sync(a) {
                n.inheritLocale = a
            },
            get warnHtmlInMessage() {
                return n.warnHtmlMessage ? "warn" : "off"
            },
            set warnHtmlInMessage(a) {
                n.warnHtmlMessage = a !== "off"
            },
            get escapeParameterHtml() {
                return n.escapeParameter
            },
            set escapeParameterHtml(a) {
                n.escapeParameter = a
            },
            get preserveDirectiveContent() {
                return !0
            },
            set preserveDirectiveContent(a) {},
            get pluralizationRules() {
                return n.pluralRules || {}
            },
            __composer: n,
            t(...a) {
                const [i,o,l] = a
                  , s = {};
                let u = null
                  , c = null;
                if (!Je(i))
                    throw Er(Tr.INVALID_ARGUMENT);
                const f = i;
                return Je(o) ? s.locale = o : jn(o) ? u = o : Yt(o) && (c = o),
                jn(l) ? u = l : Yt(l) && (c = l),
                Reflect.apply(n.t, n, [f, u || c || {}, s])
            },
            rt(...a) {
                return Reflect.apply(n.rt, n, [...a])
            },
            tc(...a) {
                const [i,o,l] = a
                  , s = {
                    plural: 1
                };
                let u = null
                  , c = null;
                if (!Je(i))
                    throw Er(Tr.INVALID_ARGUMENT);
                const f = i;
                return Je(o) ? s.locale = o : Ir(o) ? s.plural = o : jn(o) ? u = o : Yt(o) && (c = o),
                Je(l) ? s.locale = l : jn(l) ? u = l : Yt(l) && (c = l),
                Reflect.apply(n.t, n, [f, u || c || {}, s])
            },
            te(a, i) {
                return n.te(a, i)
            },
            tm(a) {
                return n.tm(a)
            },
            getLocaleMessage(a) {
                return n.getLocaleMessage(a)
            },
            setLocaleMessage(a, i) {
                n.setLocaleMessage(a, i)
            },
            mergeLocaleMessage(a, i) {
                n.mergeLocaleMessage(a, i)
            },
            d(...a) {
                return Reflect.apply(n.d, n, [...a])
            },
            getDateTimeFormat(a) {
                return n.getDateTimeFormat(a)
            },
            setDateTimeFormat(a, i) {
                n.setDateTimeFormat(a, i)
            },
            mergeDateTimeFormat(a, i) {
                n.mergeDateTimeFormat(a, i)
            },
            n(...a) {
                return Reflect.apply(n.n, n, [...a])
            },
            getNumberFormat(a) {
                return n.getNumberFormat(a)
            },
            setNumberFormat(a, i) {
                n.setNumberFormat(a, i)
            },
            mergeNumberFormat(a, i) {
                n.mergeNumberFormat(a, i)
            },
            getChoiceIndex(a, i) {
                return -1
            },
            __onComponentInstanceCreated(a) {
                const {componentInstanceCreatedListener: i} = t;
                i && i(a, r)
            }
        };
        return r
    }
}
const yO = {
    tag: {
        type: [String, Object]
    },
    locale: {
        type: String
    },
    scope: {
        type: String,
        validator: t=>t === "parent" || t === "global",
        default: "parent"
    },
    i18n: {
        type: Object
    }
};
function qpe({slots: t}, e) {
    return e.length === 1 && e[0] === "default" ? (t.default ? t.default() : []).reduce((r,a)=>r = [...r, ...jn(a.children) ? a.children : [a]], []) : e.reduce((n,r)=>{
        const a = t[r];
        return a && (n[r] = a()),
        n
    }
    , {})
}
function tX(t) {
    return xt
}
const SN = {
    name: "i18n-t",
    props: jr({
        keypath: {
            type: String,
            required: !0
        },
        plural: {
            type: [Number, String],
            validator: t=>Ir(t) || !isNaN(t)
        }
    }, yO),
    setup(t, e) {
        const {slots: n, attrs: r} = e
          , a = t.i18n || bO({
            useScope: t.scope,
            __useComponent: !0
        });
        return ()=>{
            const i = Object.keys(n).filter(f=>f !== "_")
              , o = {};
            t.locale && (o.locale = t.locale),
            t.plural !== void 0 && (o.plural = Je(t.plural) ? +t.plural : t.plural);
            const l = qpe(e, i)
              , s = a[W3](t.keypath, l, o)
              , u = jr({}, r)
              , c = Je(t.tag) || Wn(t.tag) ? t.tag : tX();
            return Pu(c, u, s)
        }
    }
};
function Xpe(t) {
    return jn(t) && !Je(t[0])
}
function nX(t, e, n, r) {
    const {slots: a, attrs: i} = e;
    return ()=>{
        const o = {
            part: !0
        };
        let l = {};
        t.locale && (o.locale = t.locale),
        Je(t.format) ? o.key = t.format : Wn(t.format) && (Je(t.format.key) && (o.key = t.format.key),
        l = Object.keys(t.format).reduce((d,v)=>n.includes(v) ? jr({}, d, {
            [v]: t.format[v]
        }) : d, {}));
        const s = r(t.value, o, l);
        let u = [o.key];
        jn(s) ? u = s.map((d,v)=>{
            const h = a[d.type]
              , p = h ? h({
                [d.type]: d.value,
                index: v,
                parts: s
            }) : [d.value];
            return Xpe(p) && (p[0].key = `${d.type}-${v}`),
            p
        }
        ) : Je(s) && (u = [s]);
        const c = jr({}, i)
          , f = Je(t.tag) || Wn(t.tag) ? t.tag : tX();
        return Pu(f, c, u)
    }
}
const CN = {
    name: "i18n-n",
    props: jr({
        value: {
            type: Number,
            required: !0
        },
        format: {
            type: [String, Object]
        }
    }, yO),
    setup(t, e) {
        const n = t.i18n || bO({
            useScope: "parent",
            __useComponent: !0
        });
        return nX(t, e, qq, (...r)=>n[K3](...r))
    }
}
  , wN = {
    name: "i18n-d",
    props: jr({
        value: {
            type: [Number, Date],
            required: !0
        },
        format: {
            type: [String, Object]
        }
    }, yO),
    setup(t, e) {
        const n = t.i18n || bO({
            useScope: "parent",
            __useComponent: !0
        });
        return nX(t, e, Yq, (...r)=>n[G3](...r))
    }
};
function Zpe(t, e) {
    const n = t;
    if (t.mode === "composition")
        return n.__getInstance(e) || t.global;
    {
        const r = n.__getInstance(e);
        return r != null ? r.__composer : t.global.__composer
    }
}
function Qpe(t) {
    const e = o=>{
        const {instance: l, modifiers: s, value: u} = o;
        if (!l || !l.$)
            throw Er(Tr.UNEXPECTED_ERROR);
        const c = Zpe(t, l.$)
          , f = _N(u);
        return [Reflect.apply(c.t, c, [...TN(f)]), c]
    }
    ;
    return {
        created: (o,l)=>{
            const [s,u] = e(l);
            B3 && t.global === u && (o.__i18nWatcher = Te(u.locale, ()=>{
                l.instance && l.instance.$forceUpdate()
            }
            )),
            o.__composer = u,
            o.textContent = s
        }
        ,
        unmounted: o=>{
            B3 && o.__i18nWatcher && (o.__i18nWatcher(),
            o.__i18nWatcher = void 0,
            delete o.__i18nWatcher),
            o.__composer && (o.__composer = void 0,
            delete o.__composer)
        }
        ,
        beforeUpdate: (o,{value: l})=>{
            if (o.__composer) {
                const s = o.__composer
                  , u = _N(l);
                o.textContent = Reflect.apply(s.t, s, [...TN(u)])
            }
        }
        ,
        getSSRProps: o=>{
            const [l] = e(o);
            return {
                textContent: l
            }
        }
    }
}
function _N(t) {
    if (Je(t))
        return {
            path: t
        };
    if (Yt(t)) {
        if (!("path"in t))
            throw Er(Tr.REQUIRED_VALUE, "path");
        return t
    } else
        throw Er(Tr.INVALID_VALUE)
}
function TN(t) {
    const {path: e, locale: n, args: r, choice: a, plural: i} = t
      , o = {}
      , l = r || {};
    return Je(n) && (o.locale = n),
    Ir(a) && (o.plural = a),
    Ir(i) && (o.plural = i),
    [e, l, o]
}
function Jpe(t, e, ...n) {
    const r = Yt(n[0]) ? n[0] : {}
      , a = !!r.useI18nComponentName;
    (hn(r.globalInstall) ? r.globalInstall : !0) && (t.component(a ? "i18n" : SN.name, SN),
    t.component(CN.name, CN),
    t.component(wN.name, wN)),
    t.directive("t", Qpe(e))
}
function ege(t, e, n) {
    return {
        beforeCreate() {
            const r = qn();
            if (!r)
                throw Er(Tr.UNEXPECTED_ERROR);
            const a = this.$options;
            if (a.i18n) {
                const i = a.i18n;
                a.__i18n && (i.__i18n = a.__i18n),
                i.__root = e,
                this === this.$root ? this.$i18n = PN(t, i) : (i.__injectWithOption = !0,
                this.$i18n = Y3(i))
            } else
                a.__i18n ? this === this.$root ? this.$i18n = PN(t, a) : this.$i18n = Y3({
                    __i18n: a.__i18n,
                    __injectWithOption: !0,
                    __root: e
                }) : this.$i18n = t;
            a.__i18nGlobal && eX(e, a, a),
            t.__onComponentInstanceCreated(this.$i18n),
            n.__setInstance(r, this.$i18n),
            this.$t = (...i)=>this.$i18n.t(...i),
            this.$rt = (...i)=>this.$i18n.rt(...i),
            this.$tc = (...i)=>this.$i18n.tc(...i),
            this.$te = (i,o)=>this.$i18n.te(i, o),
            this.$d = (...i)=>this.$i18n.d(...i),
            this.$n = (...i)=>this.$i18n.n(...i),
            this.$tm = i=>this.$i18n.tm(i)
        },
        mounted() {},
        unmounted() {
            const r = qn();
            if (!r)
                throw Er(Tr.UNEXPECTED_ERROR);
            delete this.$t,
            delete this.$rt,
            delete this.$tc,
            delete this.$te,
            delete this.$d,
            delete this.$n,
            delete this.$tm,
            n.__deleteInstance(r),
            delete this.$i18n
        }
    }
}
function PN(t, e) {
    t.locale = e.locale || t.locale,
    t.fallbackLocale = e.fallbackLocale || t.fallbackLocale,
    t.missing = e.missing || t.missing,
    t.silentTranslationWarn = e.silentTranslationWarn || t.silentFallbackWarn,
    t.silentFallbackWarn = e.silentFallbackWarn || t.silentFallbackWarn,
    t.formatFallbackMessages = e.formatFallbackMessages || t.formatFallbackMessages,
    t.postTranslation = e.postTranslation || t.postTranslation,
    t.warnHtmlInMessage = e.warnHtmlInMessage || t.warnHtmlInMessage,
    t.escapeParameterHtml = e.escapeParameterHtml || t.escapeParameterHtml,
    t.sync = e.sync || t.sync,
    t.__composer[Zq](e.pluralizationRules || t.pluralizationRules);
    const n = EC(t.locale, {
        messages: e.messages,
        __i18n: e.__i18n
    });
    return Object.keys(n).forEach(r=>t.mergeLocaleMessage(r, n[r])),
    e.datetimeFormats && Object.keys(e.datetimeFormats).forEach(r=>t.mergeDateTimeFormat(r, e.datetimeFormats[r])),
    e.numberFormats && Object.keys(e.numberFormats).forEach(r=>t.mergeNumberFormat(r, e.numberFormats[r])),
    t
}
const tge = Fu("global-vue-i18n");
function dpt(t={}, e) {
    const n = __VUE_I18N_LEGACY_API__ && hn(t.legacy) ? t.legacy : __VUE_I18N_LEGACY_API__
      , r = hn(t.globalInjection) ? t.globalInjection : !0
      , a = __VUE_I18N_LEGACY_API__ && n ? !!t.allowComposition : !0
      , i = new Map
      , [o,l] = nge(t, n)
      , s = Fu("");
    function u(d) {
        return i.get(d) || null
    }
    function c(d, v) {
        i.set(d, v)
    }
    function f(d) {
        i.delete(d)
    }
    {
        let v;
        const d = {
            get mode() {
                return __VUE_I18N_LEGACY_API__ && n ? "legacy" : "composition"
            },
            get allowComposition() {
                return a
            },
            install(h, ...p) {
                return Uh(this, null, function*() {
                    h.__VUE_I18N_SYMBOL__ = s,
                    h.provide(h.__VUE_I18N_SYMBOL__, d),
                    !n && r && fge(h, d.global),
                    __VUE_I18N_FULL_INSTALL__ && Jpe(h, d, ...p),
                    __VUE_I18N_LEGACY_API__ && n && h.mixin(ege(l, l.__composer, d));
                    const g = h.unmount;
                    h.unmount = ()=>{
                        d.dispose(),
                        g()
                    }
                })
            },
            get global() {
                return l
            },
            dispose() {
                o.stop()
            },
            __instances: i,
            __getInstance: u,
            __setInstance: c,
            __deleteInstance: f
        };
        return d
    }
}
function bO(t={}) {
    const e = qn();
    if (e == null)
        throw Er(Tr.MUST_BE_CALL_SETUP_TOP);
    if (!e.isCE && e.appContext.app != null && !e.appContext.app.__VUE_I18N_SYMBOL__)
        throw Er(Tr.NOT_INSLALLED);
    const n = rge(e)
      , r = ige(n)
      , a = Jq(e)
      , i = age(t, a);
    if (__VUE_I18N_LEGACY_API__ && n.mode === "legacy" && !t.__useComponent) {
        if (!n.allowComposition)
            throw Er(Tr.NOT_AVAILABLE_IN_LEGACY_MODE);
        return sge(e, i, r, t)
    }
    if (i === "global")
        return eX(r, t, a),
        r;
    if (i === "parent") {
        let s = oge(n, e, t.__useComponent);
        return s == null && (s = r),
        s
    }
    const o = n;
    let l = o.__getInstance(e);
    if (l == null) {
        const s = jr({}, t);
        "__i18n"in a && (s.__i18n = a.__i18n),
        r && (s.__root = r),
        l = mO(s),
        lge(o, e),
        o.__setInstance(e, l)
    }
    return l
}
function nge(t, e, n) {
    const r = jk();
    {
        const a = __VUE_I18N_LEGACY_API__ && e ? r.run(()=>Y3(t)) : r.run(()=>mO(t));
        if (a == null)
            throw Er(Tr.UNEXPECTED_ERROR);
        return [r, a]
    }
}
function rge(t) {
    {
        const e = vt(t.isCE ? tge : t.appContext.app.__VUE_I18N_SYMBOL__);
        if (!e)
            throw Er(t.isCE ? Tr.NOT_INSLALLED_WITH_PROVIDE : Tr.UNEXPECTED_ERROR);
        return e
    }
}
function age(t, e) {
    return kC(t) ? "__i18n"in e ? "local" : "global" : t.useScope ? t.useScope : "local"
}
function ige(t) {
    return t.mode === "composition" ? t.global : t.global.__composer
}
function oge(t, e, n=!1) {
    let r = null;
    const a = e.root;
    let i = e.parent;
    for (; i != null; ) {
        const o = t;
        if (t.mode === "composition")
            r = o.__getInstance(i);
        else if (__VUE_I18N_LEGACY_API__) {
            const l = o.__getInstance(i);
            l != null && (r = l.__composer,
            n && r && !r[Qq] && (r = null))
        }
        if (r != null || a === i)
            break;
        i = i.parent
    }
    return r
}
function lge(t, e, n) {
    ct(()=>{}
    , e),
    dr(()=>{
        t.__deleteInstance(e)
    }
    , e)
}
function sge(t, e, n, r={}) {
    const a = e === "local"
      , i = Mt(null);
    if (a && t.proxy && !(t.proxy.$options.i18n || t.proxy.$options.__i18n))
        throw Er(Tr.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
    const o = hn(r.inheritLocale) ? r.inheritLocale : !0
      , l = Q(a && o ? n.locale.value : Je(r.locale) ? r.locale : vm)
      , s = Q(a && o ? n.fallbackLocale.value : Je(r.fallbackLocale) || jn(r.fallbackLocale) || Yt(r.fallbackLocale) || r.fallbackLocale === !1 ? r.fallbackLocale : l.value)
      , u = Q(EC(l.value, r))
      , c = Q(Yt(r.datetimeFormats) ? r.datetimeFormats : {
        [l.value]: {}
    })
      , f = Q(Yt(r.numberFormats) ? r.numberFormats : {
        [l.value]: {}
    })
      , d = a ? n.missingWarn : hn(r.missingWarn) || Mu(r.missingWarn) ? r.missingWarn : !0
      , v = a ? n.fallbackWarn : hn(r.fallbackWarn) || Mu(r.fallbackWarn) ? r.fallbackWarn : !0
      , h = a ? n.fallbackRoot : hn(r.fallbackRoot) ? r.fallbackRoot : !0
      , p = !!r.fallbackFormat
      , g = pr(r.missing) ? r.missing : null
      , m = pr(r.postTranslation) ? r.postTranslation : null
      , y = a ? n.warnHtmlMessage : hn(r.warnHtmlMessage) ? r.warnHtmlMessage : !0
      , b = !!r.escapeParameter
      , x = a ? n.modifiers : Yt(r.modifiers) ? r.modifiers : {}
      , C = r.pluralRules || a && n.pluralRules;
    function S() {
        return [l.value, s.value, u.value, c.value, f.value]
    }
    const w = j({
        get: ()=>i.value ? i.value.locale.value : l.value,
        set: H=>{
            i.value && (i.value.locale.value = H),
            l.value = H
        }
    })
      , T = j({
        get: ()=>i.value ? i.value.fallbackLocale.value : s.value,
        set: H=>{
            i.value && (i.value.fallbackLocale.value = H),
            s.value = H
        }
    })
      , P = j(()=>i.value ? i.value.messages.value : u.value)
      , M = j(()=>c.value)
      , A = j(()=>f.value);
    function O() {
        return i.value ? i.value.getPostTranslationHandler() : m
    }
    function k(H) {
        i.value && i.value.setPostTranslationHandler(H)
    }
    function D() {
        return i.value ? i.value.getMissingHandler() : g
    }
    function E(H) {
        i.value && i.value.setMissingHandler(H)
    }
    function L(H) {
        return S(),
        H()
    }
    function N(...H) {
        return i.value ? L(()=>Reflect.apply(i.value.t, null, [...H])) : L(()=>"")
    }
    function R(...H) {
        return i.value ? Reflect.apply(i.value.rt, null, [...H]) : ""
    }
    function $(...H) {
        return i.value ? L(()=>Reflect.apply(i.value.d, null, [...H])) : L(()=>"")
    }
    function W(...H) {
        return i.value ? L(()=>Reflect.apply(i.value.n, null, [...H])) : L(()=>"")
    }
    function B(H) {
        return i.value ? i.value.tm(H) : {}
    }
    function G(H, ee) {
        return i.value ? i.value.te(H, ee) : !1
    }
    function K(H) {
        return i.value ? i.value.getLocaleMessage(H) : {}
    }
    function V(H, ee) {
        i.value && (i.value.setLocaleMessage(H, ee),
        u.value[H] = ee)
    }
    function U(H, ee) {
        i.value && i.value.mergeLocaleMessage(H, ee)
    }
    function X(H) {
        return i.value ? i.value.getDateTimeFormat(H) : {}
    }
    function Y(H, ee) {
        i.value && (i.value.setDateTimeFormat(H, ee),
        c.value[H] = ee)
    }
    function te(H, ee) {
        i.value && i.value.mergeDateTimeFormat(H, ee)
    }
    function ne(H) {
        return i.value ? i.value.getNumberFormat(H) : {}
    }
    function ie(H, ee) {
        i.value && (i.value.setNumberFormat(H, ee),
        f.value[H] = ee)
    }
    function ae(H, ee) {
        i.value && i.value.mergeNumberFormat(H, ee)
    }
    const q = {
        get id() {
            return i.value ? i.value.id : -1
        },
        locale: w,
        fallbackLocale: T,
        messages: P,
        datetimeFormats: M,
        numberFormats: A,
        get inheritLocale() {
            return i.value ? i.value.inheritLocale : o
        },
        set inheritLocale(H) {
            i.value && (i.value.inheritLocale = H)
        },
        get availableLocales() {
            return i.value ? i.value.availableLocales : Object.keys(u.value)
        },
        get modifiers() {
            return i.value ? i.value.modifiers : x
        },
        get pluralRules() {
            return i.value ? i.value.pluralRules : C
        },
        get isGlobal() {
            return i.value ? i.value.isGlobal : !1
        },
        get missingWarn() {
            return i.value ? i.value.missingWarn : d
        },
        set missingWarn(H) {
            i.value && (i.value.missingWarn = H)
        },
        get fallbackWarn() {
            return i.value ? i.value.fallbackWarn : v
        },
        set fallbackWarn(H) {
            i.value && (i.value.missingWarn = H)
        },
        get fallbackRoot() {
            return i.value ? i.value.fallbackRoot : h
        },
        set fallbackRoot(H) {
            i.value && (i.value.fallbackRoot = H)
        },
        get fallbackFormat() {
            return i.value ? i.value.fallbackFormat : p
        },
        set fallbackFormat(H) {
            i.value && (i.value.fallbackFormat = H)
        },
        get warnHtmlMessage() {
            return i.value ? i.value.warnHtmlMessage : y
        },
        set warnHtmlMessage(H) {
            i.value && (i.value.warnHtmlMessage = H)
        },
        get escapeParameter() {
            return i.value ? i.value.escapeParameter : b
        },
        set escapeParameter(H) {
            i.value && (i.value.escapeParameter = H)
        },
        t: N,
        getPostTranslationHandler: O,
        setPostTranslationHandler: k,
        getMissingHandler: D,
        setMissingHandler: E,
        rt: R,
        d: $,
        n: W,
        tm: B,
        te: G,
        getLocaleMessage: K,
        setLocaleMessage: V,
        mergeLocaleMessage: U,
        getDateTimeFormat: X,
        setDateTimeFormat: Y,
        mergeDateTimeFormat: te,
        getNumberFormat: ne,
        setNumberFormat: ie,
        mergeNumberFormat: ae
    };
    function F(H) {
        H.locale.value = l.value,
        H.fallbackLocale.value = s.value,
        Object.keys(u.value).forEach(ee=>{
            H.mergeLocaleMessage(ee, u.value[ee])
        }
        ),
        Object.keys(c.value).forEach(ee=>{
            H.mergeDateTimeFormat(ee, c.value[ee])
        }
        ),
        Object.keys(f.value).forEach(ee=>{
            H.mergeNumberFormat(ee, f.value[ee])
        }
        ),
        H.escapeParameter = b,
        H.fallbackFormat = p,
        H.fallbackRoot = h,
        H.fallbackWarn = v,
        H.missingWarn = d,
        H.warnHtmlMessage = y
    }
    return dm(()=>{
        if (t.proxy == null || t.proxy.$i18n == null)
            throw Er(Tr.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
        const H = i.value = t.proxy.$i18n.__composer;
        e === "global" ? (l.value = H.locale.value,
        s.value = H.fallbackLocale.value,
        u.value = H.messages.value,
        c.value = H.datetimeFormats.value,
        f.value = H.numberFormats.value) : a && F(H)
    }
    ),
    q
}
const uge = ["locale", "fallbackLocale", "availableLocales"]
  , cge = ["t", "rt", "d", "n", "tm"];
function fge(t, e) {
    const n = Object.create(null);
    uge.forEach(r=>{
        const a = Object.getOwnPropertyDescriptor(e, r);
        if (!a)
            throw Er(Tr.UNEXPECTED_ERROR);
        const i = Hn(a.value) ? {
            get() {
                return a.value.value
            },
            set(o) {
                a.value.value = o
            }
        } : {
            get() {
                return a.get && a.get()
            }
        };
        Object.defineProperty(n, r, i)
    }
    ),
    t.config.globalProperties.$i18n = n,
    cge.forEach(r=>{
        const a = Object.getOwnPropertyDescriptor(e, r);
        if (!a || !a.value)
            throw Er(Tr.UNEXPECTED_ERROR);
        Object.defineProperty(t.config.globalProperties, `$${r}`, a)
    }
    )
}
Epe(Vpe);
Lpe(hpe);
Rpe(Bq);
Kpe();
if (__INTLIFY_PROD_DEVTOOLS__) {
    const t = ug();
    t.__INTLIFY__ = !0,
    wpe(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)
}
const rX = {
    items_per_page: "\u6761/\u9875",
    jump_to: "\u8DF3\u81F3",
    jump_to_confirm: "\u786E\u5B9A",
    page: "\u9875",
    prev_page: "\u4E0A\u4E00\u9875",
    next_page: "\u4E0B\u4E00\u9875",
    prev_5: "\u5411\u524D 5 \u9875",
    next_5: "\u5411\u540E 5 \u9875",
    prev_3: "\u5411\u524D 3 \u9875",
    next_3: "\u5411\u540E 3 \u9875"
};
function We(t) {
    return We = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
        return typeof e
    }
    : function(e) {
        return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
    }
    ,
    We(t)
}
function dge(t, e) {
    if (We(t) !== "object" || t === null)
        return t;
    var n = t[Symbol.toPrimitive];
    if (n !== void 0) {
        var r = n.call(t, e || "default");
        if (We(r) !== "object")
            return r;
        throw new TypeError("@@toPrimitive must return a primitive value.")
    }
    return (e === "string" ? String : Number)(t)
}
function aX(t) {
    var e = dge(t, "string");
    return We(e) === "symbol" ? e : String(e)
}
function z(t, e, n) {
    return e = aX(e),
    e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
function MN(t, e) {
    var n = Object.keys(t);
    if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(t);
        e && (r = r.filter(function(a) {
            return Object.getOwnPropertyDescriptor(t, a).enumerable
        })),
        n.push.apply(n, r)
    }
    return n
}
function I(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? arguments[e] : {};
        e % 2 ? MN(Object(n), !0).forEach(function(r) {
            z(t, r, n[r])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : MN(Object(n)).forEach(function(r) {
            Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r))
        })
    }
    return t
}
var vge = {
    locale: "zh_CN",
    today: "\u4ECA\u5929",
    now: "\u6B64\u523B",
    backToToday: "\u8FD4\u56DE\u4ECA\u5929",
    ok: "\u786E\u5B9A",
    timeSelect: "\u9009\u62E9\u65F6\u95F4",
    dateSelect: "\u9009\u62E9\u65E5\u671F",
    weekSelect: "\u9009\u62E9\u5468",
    clear: "\u6E05\u9664",
    month: "\u6708",
    year: "\u5E74",
    previousMonth: "\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",
    nextMonth: "\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",
    monthSelect: "\u9009\u62E9\u6708\u4EFD",
    yearSelect: "\u9009\u62E9\u5E74\u4EFD",
    decadeSelect: "\u9009\u62E9\u5E74\u4EE3",
    yearFormat: "YYYY\u5E74",
    dayFormat: "D\u65E5",
    dateFormat: "YYYY\u5E74M\u6708D\u65E5",
    dateTimeFormat: "YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",
    previousYear: "\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",
    nextYear: "\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",
    previousDecade: "\u4E0A\u4E00\u5E74\u4EE3",
    nextDecade: "\u4E0B\u4E00\u5E74\u4EE3",
    previousCentury: "\u4E0A\u4E00\u4E16\u7EAA",
    nextCentury: "\u4E0B\u4E00\u4E16\u7EAA"
};
const hge = vge;
var pge = {
    placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4",
    rangePlaceholder: ["\u5F00\u59CB\u65F6\u95F4", "\u7ED3\u675F\u65F6\u95F4"]
};
const iX = pge;
var oX = {
    lang: I({
        placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F",
        yearPlaceholder: "\u8BF7\u9009\u62E9\u5E74\u4EFD",
        quarterPlaceholder: "\u8BF7\u9009\u62E9\u5B63\u5EA6",
        monthPlaceholder: "\u8BF7\u9009\u62E9\u6708\u4EFD",
        weekPlaceholder: "\u8BF7\u9009\u62E9\u5468",
        rangePlaceholder: ["\u5F00\u59CB\u65E5\u671F", "\u7ED3\u675F\u65E5\u671F"],
        rangeYearPlaceholder: ["\u5F00\u59CB\u5E74\u4EFD", "\u7ED3\u675F\u5E74\u4EFD"],
        rangeMonthPlaceholder: ["\u5F00\u59CB\u6708\u4EFD", "\u7ED3\u675F\u6708\u4EFD"],
        rangeQuarterPlaceholder: ["\u5F00\u59CB\u5B63\u5EA6", "\u7ED3\u675F\u5B63\u5EA6"],
        rangeWeekPlaceholder: ["\u5F00\u59CB\u5468", "\u7ED3\u675F\u5468"]
    }, hge),
    timePickerLocale: I({}, iX)
};
oX.lang.ok = "\u786E\u5B9A";
const AN = oX;
var Ka = "${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}"
  , gge = {
    locale: "zh-cn",
    Pagination: rX,
    DatePicker: AN,
    TimePicker: iX,
    Calendar: AN,
    global: {
        placeholder: "\u8BF7\u9009\u62E9"
    },
    Table: {
        filterTitle: "\u7B5B\u9009",
        filterConfirm: "\u786E\u5B9A",
        filterReset: "\u91CD\u7F6E",
        filterEmptyText: "\u65E0\u7B5B\u9009\u9879",
        filterCheckall: "\u5168\u9009",
        filterSearchPlaceholder: "\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",
        selectAll: "\u5168\u9009\u5F53\u9875",
        selectInvert: "\u53CD\u9009\u5F53\u9875",
        selectNone: "\u6E05\u7A7A\u6240\u6709",
        selectionAll: "\u5168\u9009\u6240\u6709",
        sortTitle: "\u6392\u5E8F",
        expand: "\u5C55\u5F00\u884C",
        collapse: "\u5173\u95ED\u884C",
        triggerDesc: "\u70B9\u51FB\u964D\u5E8F",
        triggerAsc: "\u70B9\u51FB\u5347\u5E8F",
        cancelSort: "\u53D6\u6D88\u6392\u5E8F"
    },
    Modal: {
        okText: "\u786E\u5B9A",
        cancelText: "\u53D6\u6D88",
        justOkText: "\u77E5\u9053\u4E86"
    },
    Popconfirm: {
        cancelText: "\u53D6\u6D88",
        okText: "\u786E\u5B9A"
    },
    Transfer: {
        searchPlaceholder: "\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",
        itemUnit: "\u9879",
        itemsUnit: "\u9879",
        remove: "\u5220\u9664",
        selectCurrent: "\u5168\u9009\u5F53\u9875",
        removeCurrent: "\u5220\u9664\u5F53\u9875",
        selectAll: "\u5168\u9009\u6240\u6709",
        removeAll: "\u5220\u9664\u5168\u90E8",
        selectInvert: "\u53CD\u9009\u5F53\u9875"
    },
    Upload: {
        uploading: "\u6587\u4EF6\u4E0A\u4F20\u4E2D",
        removeFile: "\u5220\u9664\u6587\u4EF6",
        uploadError: "\u4E0A\u4F20\u9519\u8BEF",
        previewFile: "\u9884\u89C8\u6587\u4EF6",
        downloadFile: "\u4E0B\u8F7D\u6587\u4EF6"
    },
    Empty: {
        description: "\u6682\u65E0\u6570\u636E"
    },
    Icon: {
        icon: "\u56FE\u6807"
    },
    Text: {
        edit: "\u7F16\u8F91",
        copy: "\u590D\u5236",
        copied: "\u590D\u5236\u6210\u529F",
        expand: "\u5C55\u5F00"
    },
    PageHeader: {
        back: "\u8FD4\u56DE"
    },
    Form: {
        optional: "\uFF08\u53EF\u9009\uFF09",
        defaultValidateMessages: {
            default: "\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",
            required: "\u8BF7\u8F93\u5165${label}",
            enum: "${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",
            whitespace: "${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",
            date: {
                format: "${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",
                parse: "${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",
                invalid: "${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"
            },
            types: {
                string: Ka,
                method: Ka,
                array: Ka,
                object: Ka,
                number: Ka,
                date: Ka,
                boolean: Ka,
                integer: Ka,
                float: Ka,
                regexp: Ka,
                email: Ka,
                url: Ka,
                hex: Ka
            },
            string: {
                len: "${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",
                min: "${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",
                max: "${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",
                range: "${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"
            },
            number: {
                len: "${label}\u5FC5\u987B\u7B49\u4E8E${len}",
                min: "${label}\u6700\u5C0F\u503C\u4E3A${min}",
                max: "${label}\u6700\u5927\u503C\u4E3A${max}",
                range: "${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"
            },
            array: {
                len: "\u987B\u4E3A${len}\u4E2A${label}",
                min: "\u6700\u5C11${min}\u4E2A${label}",
                max: "\u6700\u591A${max}\u4E2A${label}",
                range: "${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"
            },
            pattern: {
                mismatch: "${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"
            }
        }
    },
    Image: {
        preview: "\u9884\u89C8"
    }
};
const vpt = gge
  , lX = {
    items_per_page: "/ page",
    jump_to: "Go to",
    jump_to_confirm: "confirm",
    page: "",
    prev_page: "Previous Page",
    next_page: "Next Page",
    prev_5: "Previous 5 Pages",
    next_5: "Next 5 Pages",
    prev_3: "Previous 3 Pages",
    next_3: "Next 3 Pages"
};
var mge = {
    locale: "en_US",
    today: "Today",
    now: "Now",
    backToToday: "Back to today",
    ok: "Ok",
    clear: "Clear",
    month: "Month",
    year: "Year",
    timeSelect: "select time",
    dateSelect: "select date",
    weekSelect: "Choose a week",
    monthSelect: "Choose a month",
    yearSelect: "Choose a year",
    decadeSelect: "Choose a decade",
    yearFormat: "YYYY",
    dateFormat: "M/D/YYYY",
    dayFormat: "D",
    dateTimeFormat: "M/D/YYYY HH:mm:ss",
    monthBeforeYear: !0,
    previousMonth: "Previous month (PageUp)",
    nextMonth: "Next month (PageDown)",
    previousYear: "Last year (Control + left)",
    nextYear: "Next year (Control + right)",
    previousDecade: "Last decade",
    nextDecade: "Next decade",
    previousCentury: "Last century",
    nextCentury: "Next century"
};
const yge = mge;
var bge = {
    placeholder: "Select time",
    rangePlaceholder: ["Start time", "End time"]
};
const sX = bge;
var xge = {
    lang: I({
        placeholder: "Select date",
        yearPlaceholder: "Select year",
        quarterPlaceholder: "Select quarter",
        monthPlaceholder: "Select month",
        weekPlaceholder: "Select week",
        rangePlaceholder: ["Start date", "End date"],
        rangeYearPlaceholder: ["Start year", "End year"],
        rangeQuarterPlaceholder: ["Start quarter", "End quarter"],
        rangeMonthPlaceholder: ["Start month", "End month"],
        rangeWeekPlaceholder: ["Start week", "End week"]
    }, yge),
    timePickerLocale: I({}, sX)
};
const a0 = xge;
var Ua = "${label} is not a valid ${type}"
  , Sge = {
    locale: "en",
    Pagination: lX,
    DatePicker: a0,
    TimePicker: sX,
    Calendar: a0,
    global: {
        placeholder: "Please select"
    },
    Table: {
        filterTitle: "Filter menu",
        filterConfirm: "OK",
        filterReset: "Reset",
        filterEmptyText: "No filters",
        filterCheckall: "Select all items",
        filterSearchPlaceholder: "Search in filters",
        emptyText: "No data",
        selectAll: "Select current page",
        selectInvert: "Invert current page",
        selectNone: "Clear all data",
        selectionAll: "Select all data",
        sortTitle: "Sort",
        expand: "Expand row",
        collapse: "Collapse row",
        triggerDesc: "Click to sort descending",
        triggerAsc: "Click to sort ascending",
        cancelSort: "Click to cancel sorting"
    },
    Modal: {
        okText: "OK",
        cancelText: "Cancel",
        justOkText: "OK"
    },
    Popconfirm: {
        okText: "OK",
        cancelText: "Cancel"
    },
    Transfer: {
        titles: ["", ""],
        searchPlaceholder: "Search here",
        itemUnit: "item",
        itemsUnit: "items",
        remove: "Remove",
        selectCurrent: "Select current page",
        removeCurrent: "Remove current page",
        selectAll: "Select all data",
        removeAll: "Remove all data",
        selectInvert: "Invert current page"
    },
    Upload: {
        uploading: "Uploading...",
        removeFile: "Remove file",
        uploadError: "Upload error",
        previewFile: "Preview file",
        downloadFile: "Download file"
    },
    Empty: {
        description: "No Data"
    },
    Icon: {
        icon: "icon"
    },
    Text: {
        edit: "Edit",
        copy: "Copy",
        copied: "Copied",
        expand: "Expand"
    },
    PageHeader: {
        back: "Back"
    },
    Form: {
        optional: "(optional)",
        defaultValidateMessages: {
            default: "Field validation error for ${label}",
            required: "Please enter ${label}",
            enum: "${label} must be one of [${enum}]",
            whitespace: "${label} cannot be a blank character",
            date: {
                format: "${label} date format is invalid",
                parse: "${label} cannot be converted to a date",
                invalid: "${label} is an invalid date"
            },
            types: {
                string: Ua,
                method: Ua,
                array: Ua,
                object: Ua,
                number: Ua,
                date: Ua,
                boolean: Ua,
                integer: Ua,
                float: Ua,
                regexp: Ua,
                email: Ua,
                url: Ua,
                hex: Ua
            },
            string: {
                len: "${label} must be ${len} characters",
                min: "${label} must be at least ${min} characters",
                max: "${label} must be up to ${max} characters",
                range: "${label} must be between ${min}-${max} characters"
            },
            number: {
                len: "${label} must be equal to ${len}",
                min: "${label} must be minimum ${min}",
                max: "${label} must be maximum ${max}",
                range: "${label} must be between ${min}-${max}"
            },
            array: {
                len: "Must be ${len} ${label}",
                min: "At least ${min} ${label}",
                max: "At most ${max} ${label}",
                range: "The amount of ${label} must be between ${min}-${max}"
            },
            pattern: {
                mismatch: "${label} does not match the pattern ${pattern}"
            }
        }
    },
    Image: {
        preview: "Preview"
    }
};
const yo = Sge
  , Cge = {
    items_per_page: "/ trang",
    jump_to: "\u0110\u1EBFn",
    jump_to_confirm: "x\xE1c nh\u1EADn",
    page: "",
    prev_page: "Trang Tr\u01B0\u1EDBc",
    next_page: "Trang K\u1EBF",
    prev_5: "V\u1EC1 5 Trang Tr\u01B0\u1EDBc",
    next_5: "\u0110\u1EBFn 5 Trang K\u1EBF",
    prev_3: "V\u1EC1 3 Trang Tr\u01B0\u1EDBc",
    next_3: "\u0110\u1EBFn 3 Trang K\u1EBF"
};
var wge = {
    locale: "vi_VN",
    today: "H\xF4m nay",
    now: "B\xE2y gi\u1EDD",
    backToToday: "Tr\u1EDF v\u1EC1 h\xF4m nay",
    ok: "Ok",
    clear: "X\xF3a",
    month: "Th\xE1ng",
    year: "N\u0103m",
    timeSelect: "Ch\u1ECDn th\u1EDDi gian",
    dateSelect: "Ch\u1ECDn ng\xE0y",
    weekSelect: "Ch\u1ECDn tu\u1EA7n",
    monthSelect: "Ch\u1ECDn th\xE1ng",
    yearSelect: "Ch\u1ECDn n\u0103m",
    decadeSelect: "Ch\u1ECDn th\u1EADp k\u1EF7",
    yearFormat: "YYYY",
    dateFormat: "D/M/YYYY",
    dayFormat: "D",
    dateTimeFormat: "D/M/YYYY HH:mm:ss",
    monthBeforeYear: !0,
    previousMonth: "Th\xE1ng tr\u01B0\u1EDBc (PageUp)",
    nextMonth: "Th\xE1ng sau (PageDown)",
    previousYear: "N\u0103m tr\u01B0\u1EDBc (Control + left)",
    nextYear: "N\u0103m sau (Control + right)",
    previousDecade: "Th\u1EADp k\u1EF7 tr\u01B0\u1EDBc",
    nextDecade: "Th\u1EADp k\u1EF7 sau",
    previousCentury: "Th\u1EBF k\u1EF7 tr\u01B0\u1EDBc",
    nextCentury: "Th\u1EBF k\u1EF7 sau"
};
const _ge = wge;
var Tge = {
    placeholder: "Ch\u1ECDn th\u1EDDi gian"
};
const uX = Tge;
var Pge = {
    lang: I({
        placeholder: "Ch\u1ECDn th\u1EDDi \u0111i\u1EC3m",
        rangePlaceholder: ["Ng\xE0y b\u1EAFt \u0111\u1EA7u", "Ng\xE0y k\u1EBFt th\xFAc"]
    }, _ge),
    timePickerLocale: I({}, uX)
};
const IN = Pge;
var Mge = {
    locale: "vi",
    Pagination: Cge,
    DatePicker: IN,
    TimePicker: uX,
    Calendar: IN,
    Table: {
        filterTitle: "B\u1ED9 ",
        filterConfirm: "OK",
        filterReset: "T\u1EA1o L\u1EA1i",
        selectAll: "Ch\u1ECDn T\u1EA5t C\u1EA3",
        selectInvert: "Ch\u1ECDn Ng\u01B0\u1EE3c L\u1EA1i"
    },
    Modal: {
        okText: "OK",
        cancelText: "Hu\u1EF7",
        justOkText: "OK"
    },
    Popconfirm: {
        okText: "OK",
        cancelText: "Hu\u1EF7"
    },
    Transfer: {
        searchPlaceholder: "T\xECm \u1EDF \u0111\xE2y",
        itemUnit: "m\u1EE5c",
        itemsUnit: "m\u1EE5c"
    },
    Upload: {
        uploading: "\u0110ang t\u1EA3i l\xEAn...",
        removeFile: "G\u1EE1 b\u1ECF t\u1EADp tin",
        uploadError: "L\u1ED7i t\u1EA3i l\xEAn",
        previewFile: "Xem th\u1EED t\u1EADp tin",
        downloadFile: "T\u1EA3i t\u1EADp tin"
    },
    Empty: {
        description: "Tr\u1ED1ng"
    }
};
const hpt = Mge;
var Age = !1;
/*!
 * pinia v2.1.6
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let cX;
const LC = t=>cX = t
  , fX = Symbol();
function q3(t) {
    return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function"
}
var fg;
(function(t) {
    t.direct = "direct",
    t.patchObject = "patch object",
    t.patchFunction = "patch function"
}
)(fg || (fg = {}));
function ppt() {
    const t = jk(!0)
      , e = t.run(()=>Q({}));
    let n = []
      , r = [];
    const a = um({
        install(i) {
            LC(a),
            a._a = i,
            i.provide(fX, a),
            i.config.globalProperties.$pinia = a,
            r.forEach(o=>n.push(o)),
            r = []
        },
        use(i) {
            return !this._a && !Age ? r.push(i) : n.push(i),
            this
        },
        _p: n,
        _a: null,
        _e: t,
        _s: new Map,
        state: e
    });
    return a
}
const dX = ()=>{}
;
function kN(t, e, n, r=dX) {
    t.push(e);
    const a = ()=>{
        const i = t.indexOf(e);
        i > -1 && (t.splice(i, 1),
        r())
    }
    ;
    return !n && xC() && Wk(a),
    a
}
function fd(t, ...e) {
    t.slice().forEach(n=>{
        n(...e)
    }
    )
}
const Ige = t=>t();
function X3(t, e) {
    t instanceof Map && e instanceof Map && e.forEach((n,r)=>t.set(r, n)),
    t instanceof Set && e instanceof Set && e.forEach(t.add, t);
    for (const n in e) {
        if (!e.hasOwnProperty(n))
            continue;
        const r = e[n]
          , a = t[n];
        q3(a) && q3(r) && t.hasOwnProperty(n) && !Hn(r) && !du(r) ? t[n] = X3(a, r) : t[n] = r
    }
    return t
}
const kge = Symbol();
function Oge(t) {
    return !q3(t) || !t.hasOwnProperty(kge)
}
const {assign: zs} = Object;
function Dge(t) {
    return !!(Hn(t) && t.effect)
}
function Ege(t, e, n, r) {
    const {state: a, actions: i, getters: o} = e
      , l = n.state.value[t];
    let s;
    function u() {
        l || (n.state.value[t] = a ? a() : {});
        const c = vu(n.state.value[t]);
        return zs(c, i, Object.keys(o || {}).reduce((f,d)=>(f[d] = um(j(()=>{
            LC(n);
            const v = n._s.get(t);
            return o[d].call(v, v)
        }
        )),
        f), {}))
    }
    return s = vX(t, u, e, n, r, !0),
    s
}
function vX(t, e, n={}, r, a, i) {
    let o;
    const l = zs({
        actions: {}
    }, n)
      , s = {
        deep: !0
    };
    let u, c, f = [], d = [], v;
    const h = r.state.value[t];
    !i && !h && (r.state.value[t] = {}),
    Q({});
    let p;
    function g(T) {
        let P;
        u = c = !1,
        typeof T == "function" ? (T(r.state.value[t]),
        P = {
            type: fg.patchFunction,
            storeId: t,
            events: v
        }) : (X3(r.state.value[t], T),
        P = {
            type: fg.patchObject,
            payload: T,
            storeId: t,
            events: v
        });
        const M = p = Symbol();
        yt().then(()=>{
            p === M && (u = !0)
        }
        ),
        c = !0,
        fd(f, P, r.state.value[t])
    }
    const m = i ? function() {
        const {state: P} = n
          , M = P ? P() : {};
        this.$patch(A=>{
            zs(A, M)
        }
        )
    }
    : dX;
    function y() {
        o.stop(),
        f = [],
        d = [],
        r._s.delete(t)
    }
    function b(T, P) {
        return function() {
            LC(r);
            const M = Array.from(arguments)
              , A = []
              , O = [];
            function k(L) {
                A.push(L)
            }
            function D(L) {
                O.push(L)
            }
            fd(d, {
                args: M,
                name: T,
                store: C,
                after: k,
                onError: D
            });
            let E;
            try {
                E = P.apply(this && this.$id === t ? this : C, M)
            } catch (L) {
                throw fd(O, L),
                L
            }
            return E instanceof Promise ? E.then(L=>(fd(A, L),
            L)).catch(L=>(fd(O, L),
            Promise.reject(L))) : (fd(A, E),
            E)
        }
    }
    const x = {
        _p: r,
        $id: t,
        $onAction: kN.bind(null, d),
        $patch: g,
        $reset: m,
        $subscribe(T, P={}) {
            const M = kN(f, T, P.detached, ()=>A())
              , A = o.run(()=>Te(()=>r.state.value[t], O=>{
                (P.flush === "sync" ? c : u) && T({
                    storeId: t,
                    type: fg.direct,
                    events: v
                }, O)
            }
            , zs({}, s, P)));
            return M
        },
        $dispose: y
    }
      , C = en(x);
    r._s.set(t, C);
    const S = r._a && r._a.runWithContext || Ige
      , w = r._e.run(()=>(o = jk(),
    S(()=>o.run(e))));
    for (const T in w) {
        const P = w[T];
        if (Hn(P) && !Dge(P) || du(P))
            i || (h && Oge(P) && (Hn(P) ? P.value = h[T] : X3(P, h[T])),
            r.state.value[t][T] = P);
        else if (typeof P == "function") {
            const M = b(T, P);
            w[T] = M,
            l.actions[T] = P
        }
    }
    return zs(C, w),
    zs(_t(C), w),
    Object.defineProperty(C, "$state", {
        get: ()=>r.state.value[t],
        set: T=>{
            g(P=>{
                zs(P, T)
            }
            )
        }
    }),
    r._p.forEach(T=>{
        zs(C, o.run(()=>T({
            store: C,
            app: r._a,
            pinia: r,
            options: l
        })))
    }
    ),
    h && i && n.hydrate && n.hydrate(C.$state, h),
    u = !0,
    c = !0,
    C
}
function gpt(t, e, n) {
    let r, a;
    const i = typeof e == "function";
    typeof t == "string" ? (r = t,
    a = i ? n : e) : (a = t,
    r = t.id);
    function o(l, s) {
        const u = Dve();
        return l = l || (u ? vt(fX, null) : null),
        l && LC(l),
        l = cX,
        l._s.has(r) || (i ? vX(r, e, a, l) : Ege(r, a, l)),
        l._s.get(r)
    }
    return o.$id = r,
    o
}
var Ht = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
function Lge(t) {
    var e = t.default;
    if (typeof e == "function") {
        var n = function() {
            return e.apply(this, arguments)
        };
        n.prototype = e.prototype
    } else
        n = {};
    return Object.defineProperty(n, "__esModule", {
        value: !0
    }),
    Object.keys(t).forEach(function(r) {
        var a = Object.getOwnPropertyDescriptor(t, r);
        Object.defineProperty(n, r, a.get ? a : {
            enumerable: !0,
            get: function() {
                return t[r]
            }
        })
    }),
    n
}
var hX = {
    exports: {}
};
function Rge(t) {
    throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')
}
var e_ = {
    exports: {}
};
const Nge = {}
  , $ge = Object.freeze(Object.defineProperty({
    __proto__: null,
    default: Nge
}, Symbol.toStringTag, {
    value: "Module"
}))
  , Fge = Lge($ge);
var ON;
function dn() {
    return ON || (ON = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r()
        }
        )(Ht, function() {
                var n = n || function(r, a) {

//                if (typeof window != "undefined" && window.crypto && (i = window.crypto),
//                typeof self != "undefined" && self.crypto && (i = self.crypto),
//                typeof globalThis != "undefined" && globalThis.crypto && (i = globalThis.crypto),
//                !i && typeof window != "undefined" && window.msCrypto && (i = window.msCrypto),
//                !i && typeof Ht != "undefined" && Ht.crypto && (i = Ht.crypto),
//                !i && typeof Rge == "function")
//                    try {
//                        i = crypto.webcrypto
//                    } catch (y) {}
                var o = function() {
                    return Math.floor(Math.random() * 0x100000000)
//                    if (i) {
//                        if (typeof i.getRandomValues == "function")
//                            try {
//                                return i.getRandomValues(new Uint32Array(1))[0]
//                            } catch (y) {}
//                        if (typeof i.randomBytes == "function")
//                            try {
//                                return i.randomBytes(4).readInt32LE()
//                            } catch (y) {}
//                    }
//                    throw new Error("Native crypto module could not be used to get secure random number.")
                }
                  , l = Object.create || function() {
                    function y() {}
                    return function(b) {
                        var x;
                        return y.prototype = b,
                        x = new y,
                        y.prototype = null,
                        x
                    }
                }()
                  , s = {}
                  , u = s.lib = {}
                  , c = u.Base = function() {
                    return {
                        extend: function(y) {
                            var b = l(this);
                            return y && b.mixIn(y),
                            (!b.hasOwnProperty("init") || this.init === b.init) && (b.init = function() {
                                b.$super.init.apply(this, arguments)
                            }
                            ),
                            b.init.prototype = b,
                            b.$super = this,
                            b
                        },
                        create: function() {
                            var y = this.extend();
                            return y.init.apply(y, arguments),
                            y
                        },
                        init: function() {},
                        mixIn: function(y) {
                            for (var b in y)
                                y.hasOwnProperty(b) && (this[b] = y[b]);
                            y.hasOwnProperty("toString") && (this.toString = y.toString)
                        },
                        clone: function() {
                            return this.init.prototype.extend(this)
                        }
                    }
                }()
                  , f = u.WordArray = c.extend({
                    init: function(y, b) {
                        y = this.words = y || [],
                        b != a ? this.sigBytes = b : this.sigBytes = y.length * 4
                    },
                    toString: function(y) {
                        return (y || v).stringify(this)
                    },
                    concat: function(y) {
                        var b = this.words
                          , x = y.words
                          , C = this.sigBytes
                          , S = y.sigBytes;
                        if (this.clamp(),
                        C % 4)
                            for (var w = 0; w < S; w++) {
                                var T = x[w >>> 2] >>> 24 - w % 4 * 8 & 255;
                                b[C + w >>> 2] |= T << 24 - (C + w) % 4 * 8
                            }
                        else
                            for (var P = 0; P < S; P += 4)
                                b[C + P >>> 2] = x[P >>> 2];
                        return this.sigBytes += S,
                        this
                    },
                    clamp: function() {
                        var y = this.words
                          , b = this.sigBytes;
                        y[b >>> 2] &= 4294967295 << 32 - b % 4 * 8,
                        y.length = r.ceil(b / 4)
                    },
                    clone: function() {
                        var y = c.clone.call(this);
                        return y.words = this.words.slice(0),
                        y
                    },
                    random: function(y) {
                        for (var b = [], x = 0; x < y; x += 4)
                            b.push(o());
                        return new f.init(b,y)
                    }
                })
                  , d = s.enc = {}
                  , v = d.Hex = {
                    stringify: function(y) {
                        for (var b = y.words, x = y.sigBytes, C = [], S = 0; S < x; S++) {
                            var w = b[S >>> 2] >>> 24 - S % 4 * 8 & 255;
                            C.push((w >>> 4).toString(16)),
                            C.push((w & 15).toString(16))
                        }
                        return C.join("")
                    },
                    parse: function(y) {
                        for (var b = y.length, x = [], C = 0; C < b; C += 2)
                            x[C >>> 3] |= parseInt(y.substr(C, 2), 16) << 24 - C % 8 * 4;
                        return new f.init(x,b / 2)
                    }
                }
                  , h = d.Latin1 = {
                    stringify: function(y) {
                        for (var b = y.words, x = y.sigBytes, C = [], S = 0; S < x; S++) {
                            var w = b[S >>> 2] >>> 24 - S % 4 * 8 & 255;
                            C.push(String.fromCharCode(w))
                        }
                        return C.join("")
                    },
                    parse: function(y) {
                        for (var b = y.length, x = [], C = 0; C < b; C++)
                            x[C >>> 2] |= (y.charCodeAt(C) & 255) << 24 - C % 4 * 8;
                        return new f.init(x,b)
                    }
                }
                  , p = d.Utf8 = {
                    stringify: function(y) {
                        try {
                            return decodeURIComponent(escape(h.stringify(y)))
                        } catch (b) {
                            throw new Error("Malformed UTF-8 data")
                        }
                    },
                    parse: function(y) {
                        return h.parse(unescape(encodeURIComponent(y)))
                    }
                }
                  , g = u.BufferedBlockAlgorithm = c.extend({
                    reset: function() {
                        this._data = new f.init,
                        this._nDataBytes = 0
                    },
                    _append: function(y) {
                        typeof y == "string" && (y = p.parse(y)),
                        this._data.concat(y),
                        this._nDataBytes += y.sigBytes
                    },
                    _process: function(y) {
                        var b, x = this._data, C = x.words, S = x.sigBytes, w = this.blockSize, T = w * 4, P = S / T;
                        y ? P = r.ceil(P) : P = r.max((P | 0) - this._minBufferSize, 0);
                        var M = P * w
                          , A = r.min(M * 4, S);
                        if (M) {
                            for (var O = 0; O < M; O += w)
                                this._doProcessBlock(C, O);
                            b = C.splice(0, M),
                            x.sigBytes -= A
                        }
                        return new f.init(b,A)
                    },
                    clone: function() {
                        var y = c.clone.call(this);
                        return y._data = this._data.clone(),
                        y
                    },
                    _minBufferSize: 0
                });
                u.Hasher = g.extend({
                    cfg: c.extend(),
                    init: function(y) {
                        this.cfg = this.cfg.extend(y),
                        this.reset()
                    },
                    reset: function() {
                        g.reset.call(this),
                        this._doReset()
                    },
                    update: function(y) {
                        return this._append(y),
                        this._process(),
                        this
                    },
                    finalize: function(y) {
                        y && this._append(y);
                        var b = this._doFinalize();
                        return b
                    },
                    blockSize: 16,
                    _createHelper: function(y) {
                        return function(b, x) {
                            return new y.init(x).finalize(b)
                        }
                    },
                    _createHmacHelper: function(y) {
                        return function(b, x) {
                            return new m.HMAC.init(y,x).finalize(b)
                        }
                    }
                });
                var m = s.algo = {};
                return s
            }(Math);
            return n
        })
    }(e_)),
    e_.exports
}
var t_ = {
    exports: {}
}, DN;
function sh() {
    return DN || (DN = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r(dn())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.WordArray
                  , o = r.enc;
                o.Base64 = {
                    stringify: function(s) {
                        var u = s.words
                          , c = s.sigBytes
                          , f = this._map;
                        s.clamp();
                        for (var d = [], v = 0; v < c; v += 3)
                            for (var h = u[v >>> 2] >>> 24 - v % 4 * 8 & 255, p = u[v + 1 >>> 2] >>> 24 - (v + 1) % 4 * 8 & 255, g = u[v + 2 >>> 2] >>> 24 - (v + 2) % 4 * 8 & 255, m = h << 16 | p << 8 | g, y = 0; y < 4 && v + y * .75 < c; y++)
                                d.push(f.charAt(m >>> 6 * (3 - y) & 63));
                        var b = f.charAt(64);
                        if (b)
                            for (; d.length % 4; )
                                d.push(b);
                        return d.join("")
                    },
                    parse: function(s) {
                        var u = s.length
                          , c = this._map
                          , f = this._reverseMap;
                        if (!f) {
                            f = this._reverseMap = [];
                            for (var d = 0; d < c.length; d++)
                                f[c.charCodeAt(d)] = d
                        }
                        var v = c.charAt(64);
                        if (v) {
                            var h = s.indexOf(v);
                            h !== -1 && (u = h)
                        }
                        return l(s, u, f)
                    },
                    _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
                };
                function l(s, u, c) {
                    for (var f = [], d = 0, v = 0; v < u; v++)
                        if (v % 4) {
                            var h = c[s.charCodeAt(v - 1)] << v % 4 * 2
                              , p = c[s.charCodeAt(v)] >>> 6 - v % 4 * 2
                              , g = h | p;
                            f[d >>> 2] |= g << 24 - d % 4 * 8,
                            d++
                        }
                    return i.create(f, d)
                }
            }(),
            n.enc.Base64
        })
    }(t_)),
    t_.exports
}
var n_ = {
    exports: {}
}, EN;
function uh() {
    return EN || (EN = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r(dn())
        }
        )(Ht, function(n) {
            return function(r) {
                var a = n
                  , i = a.lib
                  , o = i.WordArray
                  , l = i.Hasher
                  , s = a.algo
                  , u = [];
                (function() {
                    for (var p = 0; p < 64; p++)
                        u[p] = r.abs(r.sin(p + 1)) * 4294967296 | 0
                }
                )();
                var c = s.MD5 = l.extend({
                    _doReset: function() {
                        this._hash = new o.init([1732584193, 4023233417, 2562383102, 271733878])
                    },
                    _doProcessBlock: function(p, g) {
                        for (var m = 0; m < 16; m++) {
                            var y = g + m
                              , b = p[y];
                            p[y] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360
                        }
                        var x = this._hash.words
                          , C = p[g + 0]
                          , S = p[g + 1]
                          , w = p[g + 2]
                          , T = p[g + 3]
                          , P = p[g + 4]
                          , M = p[g + 5]
                          , A = p[g + 6]
                          , O = p[g + 7]
                          , k = p[g + 8]
                          , D = p[g + 9]
                          , E = p[g + 10]
                          , L = p[g + 11]
                          , N = p[g + 12]
                          , R = p[g + 13]
                          , $ = p[g + 14]
                          , W = p[g + 15]
                          , B = x[0]
                          , G = x[1]
                          , K = x[2]
                          , V = x[3];
                        B = f(B, G, K, V, C, 7, u[0]),
                        V = f(V, B, G, K, S, 12, u[1]),
                        K = f(K, V, B, G, w, 17, u[2]),
                        G = f(G, K, V, B, T, 22, u[3]),
                        B = f(B, G, K, V, P, 7, u[4]),
                        V = f(V, B, G, K, M, 12, u[5]),
                        K = f(K, V, B, G, A, 17, u[6]),
                        G = f(G, K, V, B, O, 22, u[7]),
                        B = f(B, G, K, V, k, 7, u[8]),
                        V = f(V, B, G, K, D, 12, u[9]),
                        K = f(K, V, B, G, E, 17, u[10]),
                        G = f(G, K, V, B, L, 22, u[11]),
                        B = f(B, G, K, V, N, 7, u[12]),
                        V = f(V, B, G, K, R, 12, u[13]),
                        K = f(K, V, B, G, $, 17, u[14]),
                        G = f(G, K, V, B, W, 22, u[15]),
                        B = d(B, G, K, V, S, 5, u[16]),
                        V = d(V, B, G, K, A, 9, u[17]),
                        K = d(K, V, B, G, L, 14, u[18]),
                        G = d(G, K, V, B, C, 20, u[19]),
                        B = d(B, G, K, V, M, 5, u[20]),
                        V = d(V, B, G, K, E, 9, u[21]),
                        K = d(K, V, B, G, W, 14, u[22]),
                        G = d(G, K, V, B, P, 20, u[23]),
                        B = d(B, G, K, V, D, 5, u[24]),
                        V = d(V, B, G, K, $, 9, u[25]),
                        K = d(K, V, B, G, T, 14, u[26]),
                        G = d(G, K, V, B, k, 20, u[27]),
                        B = d(B, G, K, V, R, 5, u[28]),
                        V = d(V, B, G, K, w, 9, u[29]),
                        K = d(K, V, B, G, O, 14, u[30]),
                        G = d(G, K, V, B, N, 20, u[31]),
                        B = v(B, G, K, V, M, 4, u[32]),
                        V = v(V, B, G, K, k, 11, u[33]),
                        K = v(K, V, B, G, L, 16, u[34]),
                        G = v(G, K, V, B, $, 23, u[35]),
                        B = v(B, G, K, V, S, 4, u[36]),
                        V = v(V, B, G, K, P, 11, u[37]),
                        K = v(K, V, B, G, O, 16, u[38]),
                        G = v(G, K, V, B, E, 23, u[39]),
                        B = v(B, G, K, V, R, 4, u[40]),
                        V = v(V, B, G, K, C, 11, u[41]),
                        K = v(K, V, B, G, T, 16, u[42]),
                        G = v(G, K, V, B, A, 23, u[43]),
                        B = v(B, G, K, V, D, 4, u[44]),
                        V = v(V, B, G, K, N, 11, u[45]),
                        K = v(K, V, B, G, W, 16, u[46]),
                        G = v(G, K, V, B, w, 23, u[47]),
                        B = h(B, G, K, V, C, 6, u[48]),
                        V = h(V, B, G, K, O, 10, u[49]),
                        K = h(K, V, B, G, $, 15, u[50]),
                        G = h(G, K, V, B, M, 21, u[51]),
                        B = h(B, G, K, V, N, 6, u[52]),
                        V = h(V, B, G, K, T, 10, u[53]),
                        K = h(K, V, B, G, E, 15, u[54]),
                        G = h(G, K, V, B, S, 21, u[55]),
                        B = h(B, G, K, V, k, 6, u[56]),
                        V = h(V, B, G, K, W, 10, u[57]),
                        K = h(K, V, B, G, A, 15, u[58]),
                        G = h(G, K, V, B, R, 21, u[59]),
                        B = h(B, G, K, V, P, 6, u[60]),
                        V = h(V, B, G, K, L, 10, u[61]),
                        K = h(K, V, B, G, w, 15, u[62]),
                        G = h(G, K, V, B, D, 21, u[63]),
                        x[0] = x[0] + B | 0,
                        x[1] = x[1] + G | 0,
                        x[2] = x[2] + K | 0,
                        x[3] = x[3] + V | 0
                    },
                    _doFinalize: function() {
                        var p = this._data
                          , g = p.words
                          , m = this._nDataBytes * 8
                          , y = p.sigBytes * 8;
                        g[y >>> 5] |= 128 << 24 - y % 32;
                        var b = r.floor(m / 4294967296)
                          , x = m;
                        g[(y + 64 >>> 9 << 4) + 15] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360,
                        g[(y + 64 >>> 9 << 4) + 14] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360,
                        p.sigBytes = (g.length + 1) * 4,
                        this._process();
                        for (var C = this._hash, S = C.words, w = 0; w < 4; w++) {
                            var T = S[w];
                            S[w] = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360
                        }
                        return C
                    },
                    clone: function() {
                        var p = l.clone.call(this);
                        return p._hash = this._hash.clone(),
                        p
                    }
                });
                function f(p, g, m, y, b, x, C) {
                    var S = p + (g & m | ~g & y) + b + C;
                    return (S << x | S >>> 32 - x) + g
                }
                function d(p, g, m, y, b, x, C) {
                    var S = p + (g & y | m & ~y) + b + C;
                    return (S << x | S >>> 32 - x) + g
                }
                function v(p, g, m, y, b, x, C) {
                    var S = p + (g ^ m ^ y) + b + C;
                    return (S << x | S >>> 32 - x) + g
                }
                function h(p, g, m, y, b, x, C) {
                    var S = p + (m ^ (g | ~y)) + b + C;
                    return (S << x | S >>> 32 - x) + g
                }
                a.MD5 = l._createHelper(c),
                a.HmacMD5 = l._createHmacHelper(c)
            }(Math),
            n.MD5
        })
    }(n_)),
    n_.exports
}
var r_ = {
    exports: {}
}, a_ = {
    exports: {}
}, LN;
function xO() {
    return LN || (LN = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r(dn())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.WordArray
                  , o = a.Hasher
                  , l = r.algo
                  , s = []
                  , u = l.SHA1 = o.extend({
                    _doReset: function() {
                        this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
                    },
                    _doProcessBlock: function(c, f) {
                        for (var d = this._hash.words, v = d[0], h = d[1], p = d[2], g = d[3], m = d[4], y = 0; y < 80; y++) {
                            if (y < 16)
                                s[y] = c[f + y] | 0;
                            else {
                                var b = s[y - 3] ^ s[y - 8] ^ s[y - 14] ^ s[y - 16];
                                s[y] = b << 1 | b >>> 31
                            }
                            var x = (v << 5 | v >>> 27) + m + s[y];
                            y < 20 ? x += (h & p | ~h & g) + 1518500249 : y < 40 ? x += (h ^ p ^ g) + 1859775393 : y < 60 ? x += (h & p | h & g | p & g) - 1894007588 : x += (h ^ p ^ g) - 899497514,
                            m = g,
                            g = p,
                            p = h << 30 | h >>> 2,
                            h = v,
                            v = x
                        }
                        d[0] = d[0] + v | 0,
                        d[1] = d[1] + h | 0,
                        d[2] = d[2] + p | 0,
                        d[3] = d[3] + g | 0,
                        d[4] = d[4] + m | 0
                    },
                    _doFinalize: function() {
                        var c = this._data
                          , f = c.words
                          , d = this._nDataBytes * 8
                          , v = c.sigBytes * 8;
                        return f[v >>> 5] |= 128 << 24 - v % 32,
                        f[(v + 64 >>> 9 << 4) + 14] = Math.floor(d / 4294967296),
                        f[(v + 64 >>> 9 << 4) + 15] = d,
                        c.sigBytes = f.length * 4,
                        this._process(),
                        this._hash
                    },
                    clone: function() {
                        var c = o.clone.call(this);
                        return c._hash = this._hash.clone(),
                        c
                    }
                });
                r.SHA1 = o._createHelper(u),
                r.HmacSHA1 = o._createHmacHelper(u)
            }(),
            n.SHA1
        })
    }(a_)),
    a_.exports
}
var i_ = {
    exports: {}
}, RN;
function SO() {
    return RN || (RN = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r(dn())
        }
        )(Ht, function(n) {
            (function() {
                var r = n
                  , a = r.lib
                  , i = a.Base
                  , o = r.enc
                  , l = o.Utf8
                  , s = r.algo;
                s.HMAC = i.extend({
                    init: function(u, c) {
                        u = this._hasher = new u.init,
                        typeof c == "string" && (c = l.parse(c));
                        var f = u.blockSize
                          , d = f * 4;
                        c.sigBytes > d && (c = u.finalize(c)),
                        c.clamp();
                        for (var v = this._oKey = c.clone(), h = this._iKey = c.clone(), p = v.words, g = h.words, m = 0; m < f; m++)
                            p[m] ^= 1549556828,
                            g[m] ^= 909522486;
                        v.sigBytes = h.sigBytes = d,
                        this.reset()
                    },
                    reset: function() {
                        var u = this._hasher;
                        u.reset(),
                        u.update(this._iKey)
                    },
                    update: function(u) {
                        return this._hasher.update(u),
                        this
                    },
                    finalize: function(u) {
                        var c = this._hasher
                          , f = c.finalize(u);
                        c.reset();
                        var d = c.finalize(this._oKey.clone().concat(f));
                        return d
                    }
                })
            }
            )()
        })
    }(i_)),
    i_.exports
}
var NN;
function Wf() {
    return NN || (NN = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), xO(), SO())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.Base
                  , o = a.WordArray
                  , l = r.algo
                  , s = l.MD5
                  , u = l.EvpKDF = i.extend({
                    cfg: i.extend({
                        keySize: 128 / 32,
                        hasher: s,
                        iterations: 1
                    }),
                    init: function(c) {
                        this.cfg = this.cfg.extend(c)
                    },
                    compute: function(c, f) {
                        for (var d, v = this.cfg, h = v.hasher.create(), p = o.create(), g = p.words, m = v.keySize, y = v.iterations; g.length < m; ) {
                            d && h.update(d),
                            d = h.update(c).finalize(f),
                            h.reset();
                            for (var b = 1; b < y; b++)
                                d = h.finalize(d),
                                h.reset();
                            p.concat(d)
                        }
                        return p.sigBytes = m * 4,
                        p
                    }
                });
                r.EvpKDF = function(c, f, d) {
                    return u.create(d).compute(c, f)
                }
            }(),
            n.EvpKDF
        })
    }(r_)),
    r_.exports
}
var o_ = {
    exports: {}
}, $N;
function Gr() {
    return $N || ($N = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), Wf())
        }
        )(Ht, function(n) {
            n.lib.Cipher || function(r) {
                var a = n
                  , i = a.lib
                  , o = i.Base
                  , l = i.WordArray
                  , s = i.BufferedBlockAlgorithm
                  , u = a.enc;
                u.Utf8;
                var c = u.Base64
                  , f = a.algo
                  , d = f.EvpKDF
                  , v = i.Cipher = s.extend({
                    cfg: o.extend(),
                    createEncryptor: function(M, A) {
                        return this.create(this._ENC_XFORM_MODE, M, A)
                    },
                    createDecryptor: function(M, A) {
                        return this.create(this._DEC_XFORM_MODE, M, A)
                    },
                    init: function(M, A, O) {
                        this.cfg = this.cfg.extend(O),
                        this._xformMode = M,
                        this._key = A,
                        this.reset()
                    },
                    reset: function() {
                        s.reset.call(this),
                        this._doReset()
                    },
                    process: function(M) {
                        return this._append(M),
                        this._process()
                    },
                    finalize: function(M) {
                        M && this._append(M);
                        var A = this._doFinalize();
                        return A
                    },
                    keySize: 128 / 32,
                    ivSize: 128 / 32,
                    _ENC_XFORM_MODE: 1,
                    _DEC_XFORM_MODE: 2,
                    _createHelper: function() {
                        function M(A) {
                            return typeof A == "string" ? P : S
                        }
                        return function(A) {
                            return {
                                encrypt: function(O, k, D) {
                                    return M(k).encrypt(A, O, k, D)
                                },
                                decrypt: function(O, k, D) {
                                    return M(k).decrypt(A, O, k, D)
                                }
                            }
                        }
                    }()
                });
                i.StreamCipher = v.extend({
                    _doFinalize: function() {
                        var M = this._process(!0);
                        return M
                    },
                    blockSize: 1
                });
                var h = a.mode = {}
                  , p = i.BlockCipherMode = o.extend({
                    createEncryptor: function(M, A) {
                        return this.Encryptor.create(M, A)
                    },
                    createDecryptor: function(M, A) {
                        return this.Decryptor.create(M, A)
                    },
                    init: function(M, A) {
                        this._cipher = M,
                        this._iv = A
                    }
                })
                  , g = h.CBC = function() {
                    var M = p.extend();
                    M.Encryptor = M.extend({
                        processBlock: function(O, k) {
                            var D = this._cipher
                              , E = D.blockSize;
                            A.call(this, O, k, E),
                            D.encryptBlock(O, k),
                            this._prevBlock = O.slice(k, k + E)
                        }
                    }),
                    M.Decryptor = M.extend({
                        processBlock: function(O, k) {
                            var D = this._cipher
                              , E = D.blockSize
                              , L = O.slice(k, k + E);
                            D.decryptBlock(O, k),
                            A.call(this, O, k, E),
                            this._prevBlock = L
                        }
                    });
                    function A(O, k, D) {
                        var E, L = this._iv;
                        L ? (E = L,
                        this._iv = r) : E = this._prevBlock;
                        for (var N = 0; N < D; N++)
                            O[k + N] ^= E[N]
                    }
                    return M
                }()
                  , m = a.pad = {}
                  , y = m.Pkcs7 = {
                    pad: function(M, A) {
                        for (var O = A * 4, k = O - M.sigBytes % O, D = k << 24 | k << 16 | k << 8 | k, E = [], L = 0; L < k; L += 4)
                            E.push(D);
                        var N = l.create(E, k);
                        M.concat(N)
                    },
                    unpad: function(M) {
                        var A = M.words[M.sigBytes - 1 >>> 2] & 255;
                        M.sigBytes -= A
                    }
                };
                i.BlockCipher = v.extend({
                    cfg: v.cfg.extend({
                        mode: g,
                        padding: y
                    }),
                    reset: function() {
                        var M;
                        v.reset.call(this);
                        var A = this.cfg
                          , O = A.iv
                          , k = A.mode;
                        this._xformMode == this._ENC_XFORM_MODE ? M = k.createEncryptor : (M = k.createDecryptor,
                        this._minBufferSize = 1),
                        this._mode && this._mode.__creator == M ? this._mode.init(this, O && O.words) : (this._mode = M.call(k, this, O && O.words),
                        this._mode.__creator = M)
                    },
                    _doProcessBlock: function(M, A) {
                        this._mode.processBlock(M, A)
                    },
                    _doFinalize: function() {
                        var M, A = this.cfg.padding;
                        return this._xformMode == this._ENC_XFORM_MODE ? (A.pad(this._data, this.blockSize),
                        M = this._process(!0)) : (M = this._process(!0),
                        A.unpad(M)),
                        M
                    },
                    blockSize: 128 / 32
                });
                var b = i.CipherParams = o.extend({
                    init: function(M) {
                        this.mixIn(M)
                    },
                    toString: function(M) {
                        return (M || this.formatter).stringify(this)
                    }
                })
                  , x = a.format = {}
                  , C = x.OpenSSL = {
                    stringify: function(M) {
                        var A, O = M.ciphertext, k = M.salt;
                        return k ? A = l.create([1398893684, 1701076831]).concat(k).concat(O) : A = O,
                        A.toString(c)
                    },
                    parse: function(M) {
                        var A, O = c.parse(M), k = O.words;
                        return k[0] == 1398893684 && k[1] == 1701076831 && (A = l.create(k.slice(2, 4)),
                        k.splice(0, 4),
                        O.sigBytes -= 16),
                        b.create({
                            ciphertext: O,
                            salt: A
                        })
                    }
                }
                  , S = i.SerializableCipher = o.extend({
                    cfg: o.extend({
                        format: C
                    }),
                    encrypt: function(M, A, O, k) {
                        k = this.cfg.extend(k);
                        var D = M.createEncryptor(O, k)
                          , E = D.finalize(A)
                          , L = D.cfg;
                        return b.create({
                            ciphertext: E,
                            key: O,
                            iv: L.iv,
                            algorithm: M,
                            mode: L.mode,
                            padding: L.padding,
                            blockSize: M.blockSize,
                            formatter: k.format
                        })
                    },
                    decrypt: function(M, A, O, k) {
                        k = this.cfg.extend(k),
                        A = this._parse(A, k.format);
                        var D = M.createDecryptor(O, k).finalize(A.ciphertext);
                        return D
                    },
                    _parse: function(M, A) {
                        return typeof M == "string" ? A.parse(M, this) : M
                    }
                })
                  , w = a.kdf = {}
                  , T = w.OpenSSL = {
                    execute: function(M, A, O, k) {
                        k || (k = l.random(64 / 8));
                        var D = d.create({
                            keySize: A + O
                        }).compute(M, k)
                          , E = l.create(D.words.slice(A), O * 4);
                        return D.sigBytes = A * 4,
                        b.create({
                            key: D,
                            iv: E,
                            salt: k
                        })
                    }
                }
                  , P = i.PasswordBasedCipher = S.extend({
                    cfg: S.cfg.extend({
                        kdf: T
                    }),
                    encrypt: function(M, A, O, k) {
                        k = this.cfg.extend(k);
                        var D = k.kdf.execute(O, M.keySize, M.ivSize);
                        k.iv = D.iv;
                        var E = S.encrypt.call(this, M, A, D.key, k);
                        return E.mixIn(D),
                        E
                    },
                    decrypt: function(M, A, O, k) {
                        k = this.cfg.extend(k),
                        A = this._parse(A, k.format);
                        var D = k.kdf.execute(O, M.keySize, M.ivSize, A.salt);
                        k.iv = D.iv;
                        var E = S.decrypt.call(this, M, A, D.key, k);
                        return E
                    }
                })
            }()
        })
    }(o_)),
    o_.exports
}
(function(t, e) {
    (function(n, r, a) {
        t.exports = r(dn(), sh(), uh(), Wf(), Gr())
    }
    )(Ht, function(n) {
        return function() {
            var r = n
              , a = r.lib
              , i = a.BlockCipher
              , o = r.algo
              , l = []
              , s = []
              , u = []
              , c = []
              , f = []
              , d = []
              , v = []
              , h = []
              , p = []
              , g = [];
            (function() {
                for (var b = [], x = 0; x < 256; x++)
                    x < 128 ? b[x] = x << 1 : b[x] = x << 1 ^ 283;
                for (var C = 0, S = 0, x = 0; x < 256; x++) {
                    var w = S ^ S << 1 ^ S << 2 ^ S << 3 ^ S << 4;
                    w = w >>> 8 ^ w & 255 ^ 99,
                    l[C] = w,
                    s[w] = C;
                    var T = b[C]
                      , P = b[T]
                      , M = b[P]
                      , A = b[w] * 257 ^ w * 16843008;
                    u[C] = A << 24 | A >>> 8,
                    c[C] = A << 16 | A >>> 16,
                    f[C] = A << 8 | A >>> 24,
                    d[C] = A;
                    var A = M * 16843009 ^ P * 65537 ^ T * 257 ^ C * 16843008;
                    v[w] = A << 24 | A >>> 8,
                    h[w] = A << 16 | A >>> 16,
                    p[w] = A << 8 | A >>> 24,
                    g[w] = A,
                    C ? (C = T ^ b[b[b[M ^ T]]],
                    S ^= b[b[S]]) : C = S = 1
                }
            }
            )();
            var m = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54]
              , y = o.AES = i.extend({
                _doReset: function() {
                    var b;
                    if (!(this._nRounds && this._keyPriorReset === this._key)) {
                        for (var x = this._keyPriorReset = this._key, C = x.words, S = x.sigBytes / 4, w = this._nRounds = S + 6, T = (w + 1) * 4, P = this._keySchedule = [], M = 0; M < T; M++)
                            M < S ? P[M] = C[M] : (b = P[M - 1],
                            M % S ? S > 6 && M % S == 4 && (b = l[b >>> 24] << 24 | l[b >>> 16 & 255] << 16 | l[b >>> 8 & 255] << 8 | l[b & 255]) : (b = b << 8 | b >>> 24,
                            b = l[b >>> 24] << 24 | l[b >>> 16 & 255] << 16 | l[b >>> 8 & 255] << 8 | l[b & 255],
                            b ^= m[M / S | 0] << 24),
                            P[M] = P[M - S] ^ b);
                        for (var A = this._invKeySchedule = [], O = 0; O < T; O++) {
                            var M = T - O;
                            if (O % 4)
                                var b = P[M];
                            else
                                var b = P[M - 4];
                            O < 4 || M <= 4 ? A[O] = b : A[O] = v[l[b >>> 24]] ^ h[l[b >>> 16 & 255]] ^ p[l[b >>> 8 & 255]] ^ g[l[b & 255]]
                        }
                    }
                },
                encryptBlock: function(b, x) {
                    this._doCryptBlock(b, x, this._keySchedule, u, c, f, d, l)
                },
                decryptBlock: function(b, x) {
                    var C = b[x + 1];
                    b[x + 1] = b[x + 3],
                    b[x + 3] = C,
                    this._doCryptBlock(b, x, this._invKeySchedule, v, h, p, g, s);
                    var C = b[x + 1];
                    b[x + 1] = b[x + 3],
                    b[x + 3] = C
                },
                _doCryptBlock: function(b, x, C, S, w, T, P, M) {
                    for (var A = this._nRounds, O = b[x] ^ C[0], k = b[x + 1] ^ C[1], D = b[x + 2] ^ C[2], E = b[x + 3] ^ C[3], L = 4, N = 1; N < A; N++) {
                        var R = S[O >>> 24] ^ w[k >>> 16 & 255] ^ T[D >>> 8 & 255] ^ P[E & 255] ^ C[L++]
                          , $ = S[k >>> 24] ^ w[D >>> 16 & 255] ^ T[E >>> 8 & 255] ^ P[O & 255] ^ C[L++]
                          , W = S[D >>> 24] ^ w[E >>> 16 & 255] ^ T[O >>> 8 & 255] ^ P[k & 255] ^ C[L++]
                          , B = S[E >>> 24] ^ w[O >>> 16 & 255] ^ T[k >>> 8 & 255] ^ P[D & 255] ^ C[L++];
                        O = R,
                        k = $,
                        D = W,
                        E = B
                    }
                    var R = (M[O >>> 24] << 24 | M[k >>> 16 & 255] << 16 | M[D >>> 8 & 255] << 8 | M[E & 255]) ^ C[L++]
                      , $ = (M[k >>> 24] << 24 | M[D >>> 16 & 255] << 16 | M[E >>> 8 & 255] << 8 | M[O & 255]) ^ C[L++]
                      , W = (M[D >>> 24] << 24 | M[E >>> 16 & 255] << 16 | M[O >>> 8 & 255] << 8 | M[k & 255]) ^ C[L++]
                      , B = (M[E >>> 24] << 24 | M[O >>> 16 & 255] << 16 | M[k >>> 8 & 255] << 8 | M[D & 255]) ^ C[L++];
                    b[x] = R,
                    b[x + 1] = $,
                    b[x + 2] = W,
                    b[x + 3] = B
                },
                keySize: 256 / 32
            });
            r.AES = i._createHelper(y)
        }(),
        n.AES
    })
}
)(hX);
var pX = {
    exports: {}
};
(function(t, e) {
    (function(n, r) {
        t.exports = r(dn())
    }
    )(Ht, function(n) {
        return n.enc.Utf8
    })
}
)(pX);
const mpt = pX.exports;
var gX = {
    exports: {}
};
(function(t, e) {
    (function(n, r, a) {
        t.exports = r(dn(), Gr())
    }
    )(Ht, function(n) {
        return n.pad.Pkcs7
    })
}
)(gX);
const ypt = gX.exports;
var CO = {
    exports: {}
};
(function(t, e) {
    (function(n, r, a) {
        t.exports = r(dn(), Gr())
    }
    )(Ht, function(n) {
        return n.mode.ECB = function() {
            var r = n.lib.BlockCipherMode.extend();
            return r.Encryptor = r.extend({
                processBlock: function(a, i) {
                    this._cipher.encryptBlock(a, i)
                }
            }),
            r.Decryptor = r.extend({
                processBlock: function(a, i) {
                    this._cipher.decryptBlock(a, i)
                }
            }),
            r
        }(),
        n.mode.ECB
    })
}
)(CO);
const bpt = CO.exports;
var mX = {
    exports: {}
}, l_ = {
    exports: {}
}, FN;
function RC() {
    return FN || (FN = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r(dn())
        }
        )(Ht, function(n) {
            return function(r) {
                var a = n
                  , i = a.lib
                  , o = i.Base
                  , l = i.WordArray
                  , s = a.x64 = {};
                s.Word = o.extend({
                    init: function(u, c) {
                        this.high = u,
                        this.low = c
                    }
                }),
                s.WordArray = o.extend({
                    init: function(u, c) {
                        u = this.words = u || [],
                        c != r ? this.sigBytes = c : this.sigBytes = u.length * 8
                    },
                    toX32: function() {
                        for (var u = this.words, c = u.length, f = [], d = 0; d < c; d++) {
                            var v = u[d];
                            f.push(v.high),
                            f.push(v.low)
                        }
                        return l.create(f, this.sigBytes)
                    },
                    clone: function() {
                        for (var u = o.clone.call(this), c = u.words = this.words.slice(0), f = c.length, d = 0; d < f; d++)
                            c[d] = c[d].clone();
                        return u
                    }
                })
            }(),
            n
        })
    }(l_)),
    l_.exports
}
var s_ = {
    exports: {}
}, BN;
function Bge() {
    return BN || (BN = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r(dn())
        }
        )(Ht, function(n) {
            return function() {
                if (typeof ArrayBuffer == "function") {
                    var r = n
                      , a = r.lib
                      , i = a.WordArray
                      , o = i.init
                      , l = i.init = function(s) {
                        if (s instanceof ArrayBuffer && (s = new Uint8Array(s)),
                        (s instanceof Int8Array || typeof Uint8ClampedArray != "undefined" && s instanceof Uint8ClampedArray || s instanceof Int16Array || s instanceof Uint16Array || s instanceof Int32Array || s instanceof Uint32Array || s instanceof Float32Array || s instanceof Float64Array) && (s = new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),
                        s instanceof Uint8Array) {
                            for (var u = s.byteLength, c = [], f = 0; f < u; f++)
                                c[f >>> 2] |= s[f] << 24 - f % 4 * 8;
                            o.call(this, c, u)
                        } else
                            o.apply(this, arguments)
                    }
                    ;
                    l.prototype = i
                }
            }(),
            n.lib.WordArray
        })
    }(s_)),
    s_.exports
}
var u_ = {
    exports: {}
}, VN;
function Vge() {
    return VN || (VN = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r(dn())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.WordArray
                  , o = r.enc;
                o.Utf16 = o.Utf16BE = {
                    stringify: function(s) {
                        for (var u = s.words, c = s.sigBytes, f = [], d = 0; d < c; d += 2) {
                            var v = u[d >>> 2] >>> 16 - d % 4 * 8 & 65535;
                            f.push(String.fromCharCode(v))
                        }
                        return f.join("")
                    },
                    parse: function(s) {
                        for (var u = s.length, c = [], f = 0; f < u; f++)
                            c[f >>> 1] |= s.charCodeAt(f) << 16 - f % 2 * 16;
                        return i.create(c, u * 2)
                    }
                },
                o.Utf16LE = {
                    stringify: function(s) {
                        for (var u = s.words, c = s.sigBytes, f = [], d = 0; d < c; d += 2) {
                            var v = l(u[d >>> 2] >>> 16 - d % 4 * 8 & 65535);
                            f.push(String.fromCharCode(v))
                        }
                        return f.join("")
                    },
                    parse: function(s) {
                        for (var u = s.length, c = [], f = 0; f < u; f++)
                            c[f >>> 1] |= l(s.charCodeAt(f) << 16 - f % 2 * 16);
                        return i.create(c, u * 2)
                    }
                };
                function l(s) {
                    return s << 8 & 4278255360 | s >>> 8 & 16711935
                }
            }(),
            n.enc.Utf16
        })
    }(u_)),
    u_.exports
}
var c_ = {
    exports: {}
}, zN;
function zge() {
    return zN || (zN = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r(dn())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.WordArray
                  , o = r.enc;
                o.Base64url = {
                    stringify: function(s, u=!0) {
                        var c = s.words
                          , f = s.sigBytes
                          , d = u ? this._safe_map : this._map;
                        s.clamp();
                        for (var v = [], h = 0; h < f; h += 3)
                            for (var p = c[h >>> 2] >>> 24 - h % 4 * 8 & 255, g = c[h + 1 >>> 2] >>> 24 - (h + 1) % 4 * 8 & 255, m = c[h + 2 >>> 2] >>> 24 - (h + 2) % 4 * 8 & 255, y = p << 16 | g << 8 | m, b = 0; b < 4 && h + b * .75 < f; b++)
                                v.push(d.charAt(y >>> 6 * (3 - b) & 63));
                        var x = d.charAt(64);
                        if (x)
                            for (; v.length % 4; )
                                v.push(x);
                        return v.join("")
                    },
                    parse: function(s, u=!0) {
                        var c = s.length
                          , f = u ? this._safe_map : this._map
                          , d = this._reverseMap;
                        if (!d) {
                            d = this._reverseMap = [];
                            for (var v = 0; v < f.length; v++)
                                d[f.charCodeAt(v)] = v
                        }
                        var h = f.charAt(64);
                        if (h) {
                            var p = s.indexOf(h);
                            p !== -1 && (c = p)
                        }
                        return l(s, c, d)
                    },
                    _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
                    _safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
                };
                function l(s, u, c) {
                    for (var f = [], d = 0, v = 0; v < u; v++)
                        if (v % 4) {
                            var h = c[s.charCodeAt(v - 1)] << v % 4 * 2
                              , p = c[s.charCodeAt(v)] >>> 6 - v % 4 * 2
                              , g = h | p;
                            f[d >>> 2] |= g << 24 - d % 4 * 8,
                            d++
                        }
                    return i.create(f, d)
                }
            }(),
            n.enc.Base64url
        })
    }(c_)),
    c_.exports
}
var f_ = {
    exports: {}
}, HN;
function yX() {
    return HN || (HN = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r(dn())
        }
        )(Ht, function(n) {
            return function(r) {
                var a = n
                  , i = a.lib
                  , o = i.WordArray
                  , l = i.Hasher
                  , s = a.algo
                  , u = []
                  , c = [];
                (function() {
                    function v(m) {
                        for (var y = r.sqrt(m), b = 2; b <= y; b++)
                            if (!(m % b))
                                return !1;
                        return !0
                    }
                    function h(m) {
                        return (m - (m | 0)) * 4294967296 | 0
                    }
                    for (var p = 2, g = 0; g < 64; )
                        v(p) && (g < 8 && (u[g] = h(r.pow(p, 1 / 2))),
                        c[g] = h(r.pow(p, 1 / 3)),
                        g++),
                        p++
                }
                )();
                var f = []
                  , d = s.SHA256 = l.extend({
                    _doReset: function() {
                        this._hash = new o.init(u.slice(0))
                    },
                    _doProcessBlock: function(v, h) {
                        for (var p = this._hash.words, g = p[0], m = p[1], y = p[2], b = p[3], x = p[4], C = p[5], S = p[6], w = p[7], T = 0; T < 64; T++) {
                            if (T < 16)
                                f[T] = v[h + T] | 0;
                            else {
                                var P = f[T - 15]
                                  , M = (P << 25 | P >>> 7) ^ (P << 14 | P >>> 18) ^ P >>> 3
                                  , A = f[T - 2]
                                  , O = (A << 15 | A >>> 17) ^ (A << 13 | A >>> 19) ^ A >>> 10;
                                f[T] = M + f[T - 7] + O + f[T - 16]
                            }
                            var k = x & C ^ ~x & S
                              , D = g & m ^ g & y ^ m & y
                              , E = (g << 30 | g >>> 2) ^ (g << 19 | g >>> 13) ^ (g << 10 | g >>> 22)
                              , L = (x << 26 | x >>> 6) ^ (x << 21 | x >>> 11) ^ (x << 7 | x >>> 25)
                              , N = w + L + k + c[T] + f[T]
                              , R = E + D;
                            w = S,
                            S = C,
                            C = x,
                            x = b + N | 0,
                            b = y,
                            y = m,
                            m = g,
                            g = N + R | 0
                        }
                        p[0] = p[0] + g | 0,
                        p[1] = p[1] + m | 0,
                        p[2] = p[2] + y | 0,
                        p[3] = p[3] + b | 0,
                        p[4] = p[4] + x | 0,
                        p[5] = p[5] + C | 0,
                        p[6] = p[6] + S | 0,
                        p[7] = p[7] + w | 0
                    },
                    _doFinalize: function() {
                        var v = this._data
                          , h = v.words
                          , p = this._nDataBytes * 8
                          , g = v.sigBytes * 8;
                        return h[g >>> 5] |= 128 << 24 - g % 32,
                        h[(g + 64 >>> 9 << 4) + 14] = r.floor(p / 4294967296),
                        h[(g + 64 >>> 9 << 4) + 15] = p,
                        v.sigBytes = h.length * 4,
                        this._process(),
                        this._hash
                    },
                    clone: function() {
                        var v = l.clone.call(this);
                        return v._hash = this._hash.clone(),
                        v
                    }
                });
                a.SHA256 = l._createHelper(d),
                a.HmacSHA256 = l._createHmacHelper(d)
            }(Math),
            n.SHA256
        })
    }(f_)),
    f_.exports
}
var d_ = {
    exports: {}
}, jN;
function Hge() {
    return jN || (jN = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), yX())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.WordArray
                  , o = r.algo
                  , l = o.SHA256
                  , s = o.SHA224 = l.extend({
                    _doReset: function() {
                        this._hash = new i.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428])
                    },
                    _doFinalize: function() {
                        var u = l._doFinalize.call(this);
                        return u.sigBytes -= 4,
                        u
                    }
                });
                r.SHA224 = l._createHelper(s),
                r.HmacSHA224 = l._createHmacHelper(s)
            }(),
            n.SHA224
        })
    }(d_)),
    d_.exports
}
var v_ = {
    exports: {}
}, WN;
function bX() {
    return WN || (WN = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), RC())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.Hasher
                  , o = r.x64
                  , l = o.Word
                  , s = o.WordArray
                  , u = r.algo;
                function c() {
                    return l.create.apply(l, arguments)
                }
                var f = [c(1116352408, 3609767458), c(1899447441, 602891725), c(3049323471, 3964484399), c(3921009573, 2173295548), c(961987163, 4081628472), c(1508970993, 3053834265), c(2453635748, 2937671579), c(2870763221, 3664609560), c(3624381080, 2734883394), c(310598401, 1164996542), c(607225278, 1323610764), c(1426881987, 3590304994), c(1925078388, 4068182383), c(2162078206, 991336113), c(2614888103, 633803317), c(3248222580, 3479774868), c(3835390401, 2666613458), c(4022224774, 944711139), c(264347078, 2341262773), c(604807628, 2007800933), c(770255983, 1495990901), c(1249150122, 1856431235), c(1555081692, 3175218132), c(1996064986, 2198950837), c(2554220882, 3999719339), c(2821834349, 766784016), c(2952996808, 2566594879), c(3210313671, 3203337956), c(3336571891, 1034457026), c(3584528711, 2466948901), c(113926993, 3758326383), c(338241895, 168717936), c(666307205, 1188179964), c(773529912, 1546045734), c(1294757372, 1522805485), c(1396182291, 2643833823), c(1695183700, 2343527390), c(1986661051, 1014477480), c(2177026350, 1206759142), c(2456956037, 344077627), c(2730485921, 1290863460), c(2820302411, 3158454273), c(3259730800, 3505952657), c(3345764771, 106217008), c(3516065817, 3606008344), c(3600352804, 1432725776), c(4094571909, 1467031594), c(275423344, 851169720), c(430227734, 3100823752), c(506948616, 1363258195), c(659060556, 3750685593), c(883997877, 3785050280), c(958139571, 3318307427), c(1322822218, 3812723403), c(1537002063, 2003034995), c(1747873779, 3602036899), c(1955562222, 1575990012), c(2024104815, 1125592928), c(2227730452, 2716904306), c(2361852424, 442776044), c(2428436474, 593698344), c(2756734187, 3733110249), c(3204031479, 2999351573), c(3329325298, 3815920427), c(3391569614, 3928383900), c(3515267271, 566280711), c(3940187606, 3454069534), c(4118630271, 4000239992), c(116418474, 1914138554), c(174292421, 2731055270), c(289380356, 3203993006), c(460393269, 320620315), c(685471733, 587496836), c(852142971, 1086792851), c(1017036298, 365543100), c(1126000580, 2618297676), c(1288033470, 3409855158), c(1501505948, 4234509866), c(1607167915, 987167468), c(1816402316, 1246189591)]
                  , d = [];
                (function() {
                    for (var h = 0; h < 80; h++)
                        d[h] = c()
                }
                )();
                var v = u.SHA512 = i.extend({
                    _doReset: function() {
                        this._hash = new s.init([new l.init(1779033703,4089235720), new l.init(3144134277,2227873595), new l.init(1013904242,4271175723), new l.init(2773480762,1595750129), new l.init(1359893119,2917565137), new l.init(2600822924,725511199), new l.init(528734635,4215389547), new l.init(1541459225,327033209)])
                    },
                    _doProcessBlock: function(h, p) {
                        for (var g = this._hash.words, m = g[0], y = g[1], b = g[2], x = g[3], C = g[4], S = g[5], w = g[6], T = g[7], P = m.high, M = m.low, A = y.high, O = y.low, k = b.high, D = b.low, E = x.high, L = x.low, N = C.high, R = C.low, $ = S.high, W = S.low, B = w.high, G = w.low, K = T.high, V = T.low, U = P, X = M, Y = A, te = O, ne = k, ie = D, ae = E, q = L, F = N, H = R, ee = $, re = W, ue = B, ve = G, fe = K, ce = V, le = 0; le < 80; le++) {
                            var oe, se, xe = d[le];
                            if (le < 16)
                                se = xe.high = h[p + le * 2] | 0,
                                oe = xe.low = h[p + le * 2 + 1] | 0;
                            else {
                                var Pe = d[le - 15]
                                  , Fe = Pe.high
                                  , ze = Pe.low
                                  , _e = (Fe >>> 1 | ze << 31) ^ (Fe >>> 8 | ze << 24) ^ Fe >>> 7
                                  , me = (ze >>> 1 | Fe << 31) ^ (ze >>> 8 | Fe << 24) ^ (ze >>> 7 | Fe << 25)
                                  , Ie = d[le - 2]
                                  , Oe = Ie.high
                                  , Ce = Ie.low
                                  , pe = (Oe >>> 19 | Ce << 13) ^ (Oe << 3 | Ce >>> 29) ^ Oe >>> 6
                                  , ye = (Ce >>> 19 | Oe << 13) ^ (Ce << 3 | Oe >>> 29) ^ (Ce >>> 6 | Oe << 26)
                                  , be = d[le - 7]
                                  , Ae = be.high
                                  , Re = be.low
                                  , Ne = d[le - 16]
                                  , Se = Ne.high
                                  , we = Ne.low;
                                oe = me + Re,
                                se = _e + Ae + (oe >>> 0 < me >>> 0 ? 1 : 0),
                                oe = oe + ye,
                                se = se + pe + (oe >>> 0 < ye >>> 0 ? 1 : 0),
                                oe = oe + we,
                                se = se + Se + (oe >>> 0 < we >>> 0 ? 1 : 0),
                                xe.high = se,
                                xe.low = oe
                            }
                            var Ve = F & ee ^ ~F & ue
                              , Ye = H & re ^ ~H & ve
                              , Ue = U & Y ^ U & ne ^ Y & ne
                              , Ke = X & te ^ X & ie ^ te & ie
                              , Xe = (U >>> 28 | X << 4) ^ (U << 30 | X >>> 2) ^ (U << 25 | X >>> 7)
                              , it = (X >>> 28 | U << 4) ^ (X << 30 | U >>> 2) ^ (X << 25 | U >>> 7)
                              , nt = (F >>> 14 | H << 18) ^ (F >>> 18 | H << 14) ^ (F << 23 | H >>> 9)
                              , ht = (H >>> 14 | F << 18) ^ (H >>> 18 | F << 14) ^ (H << 23 | F >>> 9)
                              , ft = f[le]
                              , Zt = ft.high
                              , Tt = ft.low
                              , bt = ce + ht
                              , wt = fe + nt + (bt >>> 0 < ce >>> 0 ? 1 : 0)
                              , bt = bt + Ye
                              , wt = wt + Ve + (bt >>> 0 < Ye >>> 0 ? 1 : 0)
                              , bt = bt + Tt
                              , wt = wt + Zt + (bt >>> 0 < Tt >>> 0 ? 1 : 0)
                              , bt = bt + oe
                              , wt = wt + se + (bt >>> 0 < oe >>> 0 ? 1 : 0)
                              , Mn = it + Ke
                              , gn = Xe + Ue + (Mn >>> 0 < it >>> 0 ? 1 : 0);
                            fe = ue,
                            ce = ve,
                            ue = ee,
                            ve = re,
                            ee = F,
                            re = H,
                            H = q + bt | 0,
                            F = ae + wt + (H >>> 0 < q >>> 0 ? 1 : 0) | 0,
                            ae = ne,
                            q = ie,
                            ne = Y,
                            ie = te,
                            Y = U,
                            te = X,
                            X = bt + Mn | 0,
                            U = wt + gn + (X >>> 0 < bt >>> 0 ? 1 : 0) | 0
                        }
                        M = m.low = M + X,
                        m.high = P + U + (M >>> 0 < X >>> 0 ? 1 : 0),
                        O = y.low = O + te,
                        y.high = A + Y + (O >>> 0 < te >>> 0 ? 1 : 0),
                        D = b.low = D + ie,
                        b.high = k + ne + (D >>> 0 < ie >>> 0 ? 1 : 0),
                        L = x.low = L + q,
                        x.high = E + ae + (L >>> 0 < q >>> 0 ? 1 : 0),
                        R = C.low = R + H,
                        C.high = N + F + (R >>> 0 < H >>> 0 ? 1 : 0),
                        W = S.low = W + re,
                        S.high = $ + ee + (W >>> 0 < re >>> 0 ? 1 : 0),
                        G = w.low = G + ve,
                        w.high = B + ue + (G >>> 0 < ve >>> 0 ? 1 : 0),
                        V = T.low = V + ce,
                        T.high = K + fe + (V >>> 0 < ce >>> 0 ? 1 : 0)
                    },
                    _doFinalize: function() {
                        var h = this._data
                          , p = h.words
                          , g = this._nDataBytes * 8
                          , m = h.sigBytes * 8;
                        p[m >>> 5] |= 128 << 24 - m % 32,
                        p[(m + 128 >>> 10 << 5) + 30] = Math.floor(g / 4294967296),
                        p[(m + 128 >>> 10 << 5) + 31] = g,
                        h.sigBytes = p.length * 4,
                        this._process();
                        var y = this._hash.toX32();
                        return y
                    },
                    clone: function() {
                        var h = i.clone.call(this);
                        return h._hash = this._hash.clone(),
                        h
                    },
                    blockSize: 1024 / 32
                });
                r.SHA512 = i._createHelper(v),
                r.HmacSHA512 = i._createHmacHelper(v)
            }(),
            n.SHA512
        })
    }(v_)),
    v_.exports
}
var h_ = {
    exports: {}
}, GN;
function jge() {
    return GN || (GN = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), RC(), bX())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.x64
                  , i = a.Word
                  , o = a.WordArray
                  , l = r.algo
                  , s = l.SHA512
                  , u = l.SHA384 = s.extend({
                    _doReset: function() {
                        this._hash = new o.init([new i.init(3418070365,3238371032), new i.init(1654270250,914150663), new i.init(2438529370,812702999), new i.init(355462360,4144912697), new i.init(1731405415,4290775857), new i.init(2394180231,1750603025), new i.init(3675008525,1694076839), new i.init(1203062813,3204075428)])
                    },
                    _doFinalize: function() {
                        var c = s._doFinalize.call(this);
                        return c.sigBytes -= 16,
                        c
                    }
                });
                r.SHA384 = s._createHelper(u),
                r.HmacSHA384 = s._createHmacHelper(u)
            }(),
            n.SHA384
        })
    }(h_)),
    h_.exports
}
var p_ = {
    exports: {}
}, KN;
function Wge() {
    return KN || (KN = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), RC())
        }
        )(Ht, function(n) {
            return function(r) {
                var a = n
                  , i = a.lib
                  , o = i.WordArray
                  , l = i.Hasher
                  , s = a.x64
                  , u = s.Word
                  , c = a.algo
                  , f = []
                  , d = []
                  , v = [];
                (function() {
                    for (var g = 1, m = 0, y = 0; y < 24; y++) {
                        f[g + 5 * m] = (y + 1) * (y + 2) / 2 % 64;
                        var b = m % 5
                          , x = (2 * g + 3 * m) % 5;
                        g = b,
                        m = x
                    }
                    for (var g = 0; g < 5; g++)
                        for (var m = 0; m < 5; m++)
                            d[g + 5 * m] = m + (2 * g + 3 * m) % 5 * 5;
                    for (var C = 1, S = 0; S < 24; S++) {
                        for (var w = 0, T = 0, P = 0; P < 7; P++) {
                            if (C & 1) {
                                var M = (1 << P) - 1;
                                M < 32 ? T ^= 1 << M : w ^= 1 << M - 32
                            }
                            C & 128 ? C = C << 1 ^ 113 : C <<= 1
                        }
                        v[S] = u.create(w, T)
                    }
                }
                )();
                var h = [];
                (function() {
                    for (var g = 0; g < 25; g++)
                        h[g] = u.create()
                }
                )();
                var p = c.SHA3 = l.extend({
                    cfg: l.cfg.extend({
                        outputLength: 512
                    }),
                    _doReset: function() {
                        for (var g = this._state = [], m = 0; m < 25; m++)
                            g[m] = new u.init;
                        this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32
                    },
                    _doProcessBlock: function(g, m) {
                        for (var y = this._state, b = this.blockSize / 2, x = 0; x < b; x++) {
                            var C = g[m + 2 * x]
                              , S = g[m + 2 * x + 1];
                            C = (C << 8 | C >>> 24) & 16711935 | (C << 24 | C >>> 8) & 4278255360,
                            S = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360;
                            var w = y[x];
                            w.high ^= S,
                            w.low ^= C
                        }
                        for (var T = 0; T < 24; T++) {
                            for (var P = 0; P < 5; P++) {
                                for (var M = 0, A = 0, O = 0; O < 5; O++) {
                                    var w = y[P + 5 * O];
                                    M ^= w.high,
                                    A ^= w.low
                                }
                                var k = h[P];
                                k.high = M,
                                k.low = A
                            }
                            for (var P = 0; P < 5; P++)
                                for (var D = h[(P + 4) % 5], E = h[(P + 1) % 5], L = E.high, N = E.low, M = D.high ^ (L << 1 | N >>> 31), A = D.low ^ (N << 1 | L >>> 31), O = 0; O < 5; O++) {
                                    var w = y[P + 5 * O];
                                    w.high ^= M,
                                    w.low ^= A
                                }
                            for (var R = 1; R < 25; R++) {
                                var M, A, w = y[R], $ = w.high, W = w.low, B = f[R];
                                B < 32 ? (M = $ << B | W >>> 32 - B,
                                A = W << B | $ >>> 32 - B) : (M = W << B - 32 | $ >>> 64 - B,
                                A = $ << B - 32 | W >>> 64 - B);
                                var G = h[d[R]];
                                G.high = M,
                                G.low = A
                            }
                            var K = h[0]
                              , V = y[0];
                            K.high = V.high,
                            K.low = V.low;
                            for (var P = 0; P < 5; P++)
                                for (var O = 0; O < 5; O++) {
                                    var R = P + 5 * O
                                      , w = y[R]
                                      , U = h[R]
                                      , X = h[(P + 1) % 5 + 5 * O]
                                      , Y = h[(P + 2) % 5 + 5 * O];
                                    w.high = U.high ^ ~X.high & Y.high,
                                    w.low = U.low ^ ~X.low & Y.low
                                }
                            var w = y[0]
                              , te = v[T];
                            w.high ^= te.high,
                            w.low ^= te.low
                        }
                    },
                    _doFinalize: function() {
                        var g = this._data
                          , m = g.words;
                        this._nDataBytes * 8;
                        var y = g.sigBytes * 8
                          , b = this.blockSize * 32;
                        m[y >>> 5] |= 1 << 24 - y % 32,
                        m[(r.ceil((y + 1) / b) * b >>> 5) - 1] |= 128,
                        g.sigBytes = m.length * 4,
                        this._process();
                        for (var x = this._state, C = this.cfg.outputLength / 8, S = C / 8, w = [], T = 0; T < S; T++) {
                            var P = x[T]
                              , M = P.high
                              , A = P.low;
                            M = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360,
                            A = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360,
                            w.push(A),
                            w.push(M)
                        }
                        return new o.init(w,C)
                    },
                    clone: function() {
                        for (var g = l.clone.call(this), m = g._state = this._state.slice(0), y = 0; y < 25; y++)
                            m[y] = m[y].clone();
                        return g
                    }
                });
                a.SHA3 = l._createHelper(p),
                a.HmacSHA3 = l._createHmacHelper(p)
            }(Math),
            n.SHA3
        })
    }(p_)),
    p_.exports
}
var g_ = {
    exports: {}
}, UN;
function Gge() {
    return UN || (UN = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r(dn())
        }
        )(Ht, function(n) {
            /** @preserve
			(c) 2012 by Cédric Mesnil. All rights reserved.

			Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

			    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
			    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

			THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
			*/
            return function(r) {
                var a = n
                  , i = a.lib
                  , o = i.WordArray
                  , l = i.Hasher
                  , s = a.algo
                  , u = o.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13])
                  , c = o.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11])
                  , f = o.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6])
                  , d = o.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11])
                  , v = o.create([0, 1518500249, 1859775393, 2400959708, 2840853838])
                  , h = o.create([1352829926, 1548603684, 1836072691, 2053994217, 0])
                  , p = s.RIPEMD160 = l.extend({
                    _doReset: function() {
                        this._hash = o.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
                    },
                    _doProcessBlock: function(S, w) {
                        for (var T = 0; T < 16; T++) {
                            var P = w + T
                              , M = S[P];
                            S[P] = (M << 8 | M >>> 24) & 16711935 | (M << 24 | M >>> 8) & 4278255360
                        }
                        var A = this._hash.words, O = v.words, k = h.words, D = u.words, E = c.words, L = f.words, N = d.words, R, $, W, B, G, K, V, U, X, Y;
                        K = R = A[0],
                        V = $ = A[1],
                        U = W = A[2],
                        X = B = A[3],
                        Y = G = A[4];
                        for (var te, T = 0; T < 80; T += 1)
                            te = R + S[w + D[T]] | 0,
                            T < 16 ? te += g($, W, B) + O[0] : T < 32 ? te += m($, W, B) + O[1] : T < 48 ? te += y($, W, B) + O[2] : T < 64 ? te += b($, W, B) + O[3] : te += x($, W, B) + O[4],
                            te = te | 0,
                            te = C(te, L[T]),
                            te = te + G | 0,
                            R = G,
                            G = B,
                            B = C(W, 10),
                            W = $,
                            $ = te,
                            te = K + S[w + E[T]] | 0,
                            T < 16 ? te += x(V, U, X) + k[0] : T < 32 ? te += b(V, U, X) + k[1] : T < 48 ? te += y(V, U, X) + k[2] : T < 64 ? te += m(V, U, X) + k[3] : te += g(V, U, X) + k[4],
                            te = te | 0,
                            te = C(te, N[T]),
                            te = te + Y | 0,
                            K = Y,
                            Y = X,
                            X = C(U, 10),
                            U = V,
                            V = te;
                        te = A[1] + W + X | 0,
                        A[1] = A[2] + B + Y | 0,
                        A[2] = A[3] + G + K | 0,
                        A[3] = A[4] + R + V | 0,
                        A[4] = A[0] + $ + U | 0,
                        A[0] = te
                    },
                    _doFinalize: function() {
                        var S = this._data
                          , w = S.words
                          , T = this._nDataBytes * 8
                          , P = S.sigBytes * 8;
                        w[P >>> 5] |= 128 << 24 - P % 32,
                        w[(P + 64 >>> 9 << 4) + 14] = (T << 8 | T >>> 24) & 16711935 | (T << 24 | T >>> 8) & 4278255360,
                        S.sigBytes = (w.length + 1) * 4,
                        this._process();
                        for (var M = this._hash, A = M.words, O = 0; O < 5; O++) {
                            var k = A[O];
                            A[O] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360
                        }
                        return M
                    },
                    clone: function() {
                        var S = l.clone.call(this);
                        return S._hash = this._hash.clone(),
                        S
                    }
                });
                function g(S, w, T) {
                    return S ^ w ^ T
                }
                function m(S, w, T) {
                    return S & w | ~S & T
                }
                function y(S, w, T) {
                    return (S | ~w) ^ T
                }
                function b(S, w, T) {
                    return S & T | w & ~T
                }
                function x(S, w, T) {
                    return S ^ (w | ~T)
                }
                function C(S, w) {
                    return S << w | S >>> 32 - w
                }
                a.RIPEMD160 = l._createHelper(p),
                a.HmacRIPEMD160 = l._createHmacHelper(p)
            }(),
            n.RIPEMD160
        })
    }(g_)),
    g_.exports
}
var m_ = {
    exports: {}
}, YN;
function Kge() {
    return YN || (YN = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), xO(), SO())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.Base
                  , o = a.WordArray
                  , l = r.algo
                  , s = l.SHA1
                  , u = l.HMAC
                  , c = l.PBKDF2 = i.extend({
                    cfg: i.extend({
                        keySize: 128 / 32,
                        hasher: s,
                        iterations: 1
                    }),
                    init: function(f) {
                        this.cfg = this.cfg.extend(f)
                    },
                    compute: function(f, d) {
                        for (var v = this.cfg, h = u.create(v.hasher, f), p = o.create(), g = o.create([1]), m = p.words, y = g.words, b = v.keySize, x = v.iterations; m.length < b; ) {
                            var C = h.update(d).finalize(g);
                            h.reset();
                            for (var S = C.words, w = S.length, T = C, P = 1; P < x; P++) {
                                T = h.finalize(T),
                                h.reset();
                                for (var M = T.words, A = 0; A < w; A++)
                                    S[A] ^= M[A]
                            }
                            p.concat(C),
                            y[0]++
                        }
                        return p.sigBytes = b * 4,
                        p
                    }
                });
                r.PBKDF2 = function(f, d, v) {
                    return c.create(v).compute(f, d)
                }
            }(),
            n.PBKDF2
        })
    }(m_)),
    m_.exports
}
var y_ = {
    exports: {}
}, qN;
function Uge() {
    return qN || (qN = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), Gr())
        }
        )(Ht, function(n) {
            return n.mode.CFB = function() {
                var r = n.lib.BlockCipherMode.extend();
                r.Encryptor = r.extend({
                    processBlock: function(i, o) {
                        var l = this._cipher
                          , s = l.blockSize;
                        a.call(this, i, o, s, l),
                        this._prevBlock = i.slice(o, o + s)
                    }
                }),
                r.Decryptor = r.extend({
                    processBlock: function(i, o) {
                        var l = this._cipher
                          , s = l.blockSize
                          , u = i.slice(o, o + s);
                        a.call(this, i, o, s, l),
                        this._prevBlock = u
                    }
                });
                function a(i, o, l, s) {
                    var u, c = this._iv;
                    c ? (u = c.slice(0),
                    this._iv = void 0) : u = this._prevBlock,
                    s.encryptBlock(u, 0);
                    for (var f = 0; f < l; f++)
                        i[o + f] ^= u[f]
                }
                return r
            }(),
            n.mode.CFB
        })
    }(y_)),
    y_.exports
}
var b_ = {
    exports: {}
}, XN;
function Yge() {
    return XN || (XN = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), Gr())
        }
        )(Ht, function(n) {
            return n.mode.CTR = function() {
                var r = n.lib.BlockCipherMode.extend()
                  , a = r.Encryptor = r.extend({
                    processBlock: function(i, o) {
                        var l = this._cipher
                          , s = l.blockSize
                          , u = this._iv
                          , c = this._counter;
                        u && (c = this._counter = u.slice(0),
                        this._iv = void 0);
                        var f = c.slice(0);
                        l.encryptBlock(f, 0),
                        c[s - 1] = c[s - 1] + 1 | 0;
                        for (var d = 0; d < s; d++)
                            i[o + d] ^= f[d]
                    }
                });
                return r.Decryptor = a,
                r
            }(),
            n.mode.CTR
        })
    }(b_)),
    b_.exports
}
var x_ = {
    exports: {}
}, ZN;
function qge() {
    return ZN || (ZN = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), Gr())
        }
        )(Ht, function(n) {
            /** @preserve
 * Counter block mode compatible with  Dr Brian Gladman fileenc.c
 * derived from CryptoJS.mode.CTR
 * Jan Hruby jhruby.web@gmail.com
 */
            return n.mode.CTRGladman = function() {
                var r = n.lib.BlockCipherMode.extend();
                function a(l) {
                    if ((l >> 24 & 255) === 255) {
                        var s = l >> 16 & 255
                          , u = l >> 8 & 255
                          , c = l & 255;
                        s === 255 ? (s = 0,
                        u === 255 ? (u = 0,
                        c === 255 ? c = 0 : ++c) : ++u) : ++s,
                        l = 0,
                        l += s << 16,
                        l += u << 8,
                        l += c
                    } else
                        l += 1 << 24;
                    return l
                }
                function i(l) {
                    return (l[0] = a(l[0])) === 0 && (l[1] = a(l[1])),
                    l
                }
                var o = r.Encryptor = r.extend({
                    processBlock: function(l, s) {
                        var u = this._cipher
                          , c = u.blockSize
                          , f = this._iv
                          , d = this._counter;
                        f && (d = this._counter = f.slice(0),
                        this._iv = void 0),
                        i(d);
                        var v = d.slice(0);
                        u.encryptBlock(v, 0);
                        for (var h = 0; h < c; h++)
                            l[s + h] ^= v[h]
                    }
                });
                return r.Decryptor = o,
                r
            }(),
            n.mode.CTRGladman
        })
    }(x_)),
    x_.exports
}
var S_ = {
    exports: {}
}, QN;
function Xge() {
    return QN || (QN = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), Gr())
        }
        )(Ht, function(n) {
            return n.mode.OFB = function() {
                var r = n.lib.BlockCipherMode.extend()
                  , a = r.Encryptor = r.extend({
                    processBlock: function(i, o) {
                        var l = this._cipher
                          , s = l.blockSize
                          , u = this._iv
                          , c = this._keystream;
                        u && (c = this._keystream = u.slice(0),
                        this._iv = void 0),
                        l.encryptBlock(c, 0);
                        for (var f = 0; f < s; f++)
                            i[o + f] ^= c[f]
                    }
                });
                return r.Decryptor = a,
                r
            }(),
            n.mode.OFB
        })
    }(S_)),
    S_.exports
}
var C_ = {
    exports: {}
}, JN;
function Zge() {
    return JN || (JN = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), Gr())
        }
        )(Ht, function(n) {
            return n.pad.AnsiX923 = {
                pad: function(r, a) {
                    var i = r.sigBytes
                      , o = a * 4
                      , l = o - i % o
                      , s = i + l - 1;
                    r.clamp(),
                    r.words[s >>> 2] |= l << 24 - s % 4 * 8,
                    r.sigBytes += l
                },
                unpad: function(r) {
                    var a = r.words[r.sigBytes - 1 >>> 2] & 255;
                    r.sigBytes -= a
                }
            },
            n.pad.Ansix923
        })
    }(C_)),
    C_.exports
}
var w_ = {
    exports: {}
}, e7;
function Qge() {
    return e7 || (e7 = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), Gr())
        }
        )(Ht, function(n) {
            return n.pad.Iso10126 = {
                pad: function(r, a) {
                    var i = a * 4
                      , o = i - r.sigBytes % i;
                    r.concat(n.lib.WordArray.random(o - 1)).concat(n.lib.WordArray.create([o << 24], 1))
                },
                unpad: function(r) {
                    var a = r.words[r.sigBytes - 1 >>> 2] & 255;
                    r.sigBytes -= a
                }
            },
            n.pad.Iso10126
        })
    }(w_)),
    w_.exports
}
var __ = {
    exports: {}
}, t7;
function Jge() {
    return t7 || (t7 = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), Gr())
        }
        )(Ht, function(n) {
            return n.pad.Iso97971 = {
                pad: function(r, a) {
                    r.concat(n.lib.WordArray.create([2147483648], 1)),
                    n.pad.ZeroPadding.pad(r, a)
                },
                unpad: function(r) {
                    n.pad.ZeroPadding.unpad(r),
                    r.sigBytes--
                }
            },
            n.pad.Iso97971
        })
    }(__)),
    __.exports
}
var T_ = {
    exports: {}
}, n7;
function e0e() {
    return n7 || (n7 = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), Gr())
        }
        )(Ht, function(n) {
            return n.pad.ZeroPadding = {
                pad: function(r, a) {
                    var i = a * 4;
                    r.clamp(),
                    r.sigBytes += i - (r.sigBytes % i || i)
                },
                unpad: function(r) {
                    for (var a = r.words, i = r.sigBytes - 1, i = r.sigBytes - 1; i >= 0; i--)
                        if (a[i >>> 2] >>> 24 - i % 4 * 8 & 255) {
                            r.sigBytes = i + 1;
                            break
                        }
                }
            },
            n.pad.ZeroPadding
        })
    }(T_)),
    T_.exports
}
var P_ = {
    exports: {}
}, r7;
function t0e() {
    return r7 || (r7 = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), Gr())
        }
        )(Ht, function(n) {
            return n.pad.NoPadding = {
                pad: function() {},
                unpad: function() {}
            },
            n.pad.NoPadding
        })
    }(P_)),
    P_.exports
}
var M_ = {
    exports: {}
}, a7;
function n0e() {
    return a7 || (a7 = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), Gr())
        }
        )(Ht, function(n) {
            return function(r) {
                var a = n
                  , i = a.lib
                  , o = i.CipherParams
                  , l = a.enc
                  , s = l.Hex
                  , u = a.format;
                u.Hex = {
                    stringify: function(c) {
                        return c.ciphertext.toString(s)
                    },
                    parse: function(c) {
                        var f = s.parse(c);
                        return o.create({
                            ciphertext: f
                        })
                    }
                }
            }(),
            n.format.Hex
        })
    }(M_)),
    M_.exports
}
var A_ = {
    exports: {}
}, i7;
function r0e() {
    return i7 || (i7 = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), sh(), uh(), Wf(), Gr())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.WordArray
                  , o = a.BlockCipher
                  , l = r.algo
                  , s = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4]
                  , u = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32]
                  , c = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28]
                  , f = [{
                    0: 8421888,
                    268435456: 32768,
                    536870912: 8421378,
                    805306368: 2,
                    1073741824: 512,
                    1342177280: 8421890,
                    1610612736: 8389122,
                    1879048192: 8388608,
                    2147483648: 514,
                    2415919104: 8389120,
                    2684354560: 33280,
                    2952790016: 8421376,
                    3221225472: 32770,
                    3489660928: 8388610,
                    3758096384: 0,
                    4026531840: 33282,
                    134217728: 0,
                    402653184: 8421890,
                    671088640: 33282,
                    939524096: 32768,
                    1207959552: 8421888,
                    1476395008: 512,
                    1744830464: 8421378,
                    2013265920: 2,
                    2281701376: 8389120,
                    2550136832: 33280,
                    2818572288: 8421376,
                    3087007744: 8389122,
                    3355443200: 8388610,
                    3623878656: 32770,
                    3892314112: 514,
                    4160749568: 8388608,
                    1: 32768,
                    268435457: 2,
                    536870913: 8421888,
                    805306369: 8388608,
                    1073741825: 8421378,
                    1342177281: 33280,
                    1610612737: 512,
                    1879048193: 8389122,
                    2147483649: 8421890,
                    2415919105: 8421376,
                    2684354561: 8388610,
                    2952790017: 33282,
                    3221225473: 514,
                    3489660929: 8389120,
                    3758096385: 32770,
                    4026531841: 0,
                    134217729: 8421890,
                    402653185: 8421376,
                    671088641: 8388608,
                    939524097: 512,
                    1207959553: 32768,
                    1476395009: 8388610,
                    1744830465: 2,
                    2013265921: 33282,
                    2281701377: 32770,
                    2550136833: 8389122,
                    2818572289: 514,
                    3087007745: 8421888,
                    3355443201: 8389120,
                    3623878657: 0,
                    3892314113: 33280,
                    4160749569: 8421378
                }, {
                    0: 1074282512,
                    16777216: 16384,
                    33554432: 524288,
                    50331648: 1074266128,
                    67108864: 1073741840,
                    83886080: 1074282496,
                    100663296: 1073758208,
                    117440512: 16,
                    134217728: 540672,
                    150994944: 1073758224,
                    167772160: 1073741824,
                    184549376: 540688,
                    201326592: 524304,
                    218103808: 0,
                    234881024: 16400,
                    251658240: 1074266112,
                    8388608: 1073758208,
                    25165824: 540688,
                    41943040: 16,
                    58720256: 1073758224,
                    75497472: 1074282512,
                    92274688: 1073741824,
                    109051904: 524288,
                    125829120: 1074266128,
                    142606336: 524304,
                    159383552: 0,
                    176160768: 16384,
                    192937984: 1074266112,
                    209715200: 1073741840,
                    226492416: 540672,
                    243269632: 1074282496,
                    260046848: 16400,
                    268435456: 0,
                    285212672: 1074266128,
                    301989888: 1073758224,
                    318767104: 1074282496,
                    335544320: 1074266112,
                    352321536: 16,
                    369098752: 540688,
                    385875968: 16384,
                    402653184: 16400,
                    419430400: 524288,
                    436207616: 524304,
                    452984832: 1073741840,
                    469762048: 540672,
                    486539264: 1073758208,
                    503316480: 1073741824,
                    520093696: 1074282512,
                    276824064: 540688,
                    293601280: 524288,
                    310378496: 1074266112,
                    327155712: 16384,
                    343932928: 1073758208,
                    360710144: 1074282512,
                    377487360: 16,
                    394264576: 1073741824,
                    411041792: 1074282496,
                    427819008: 1073741840,
                    444596224: 1073758224,
                    461373440: 524304,
                    478150656: 0,
                    494927872: 16400,
                    511705088: 1074266128,
                    528482304: 540672
                }, {
                    0: 260,
                    1048576: 0,
                    2097152: 67109120,
                    3145728: 65796,
                    4194304: 65540,
                    5242880: 67108868,
                    6291456: 67174660,
                    7340032: 67174400,
                    8388608: 67108864,
                    9437184: 67174656,
                    10485760: 65792,
                    11534336: 67174404,
                    12582912: 67109124,
                    13631488: 65536,
                    14680064: 4,
                    15728640: 256,
                    524288: 67174656,
                    1572864: 67174404,
                    2621440: 0,
                    3670016: 67109120,
                    4718592: 67108868,
                    5767168: 65536,
                    6815744: 65540,
                    7864320: 260,
                    8912896: 4,
                    9961472: 256,
                    11010048: 67174400,
                    12058624: 65796,
                    13107200: 65792,
                    14155776: 67109124,
                    15204352: 67174660,
                    16252928: 67108864,
                    16777216: 67174656,
                    17825792: 65540,
                    18874368: 65536,
                    19922944: 67109120,
                    20971520: 256,
                    22020096: 67174660,
                    23068672: 67108868,
                    24117248: 0,
                    25165824: 67109124,
                    26214400: 67108864,
                    27262976: 4,
                    28311552: 65792,
                    29360128: 67174400,
                    30408704: 260,
                    31457280: 65796,
                    32505856: 67174404,
                    17301504: 67108864,
                    18350080: 260,
                    19398656: 67174656,
                    20447232: 0,
                    21495808: 65540,
                    22544384: 67109120,
                    23592960: 256,
                    24641536: 67174404,
                    25690112: 65536,
                    26738688: 67174660,
                    27787264: 65796,
                    28835840: 67108868,
                    29884416: 67109124,
                    30932992: 67174400,
                    31981568: 4,
                    33030144: 65792
                }, {
                    0: 2151682048,
                    65536: 2147487808,
                    131072: 4198464,
                    196608: 2151677952,
                    262144: 0,
                    327680: 4198400,
                    393216: 2147483712,
                    458752: 4194368,
                    524288: 2147483648,
                    589824: 4194304,
                    655360: 64,
                    720896: 2147487744,
                    786432: 2151678016,
                    851968: 4160,
                    917504: 4096,
                    983040: 2151682112,
                    32768: 2147487808,
                    98304: 64,
                    163840: 2151678016,
                    229376: 2147487744,
                    294912: 4198400,
                    360448: 2151682112,
                    425984: 0,
                    491520: 2151677952,
                    557056: 4096,
                    622592: 2151682048,
                    688128: 4194304,
                    753664: 4160,
                    819200: 2147483648,
                    884736: 4194368,
                    950272: 4198464,
                    1015808: 2147483712,
                    1048576: 4194368,
                    1114112: 4198400,
                    1179648: 2147483712,
                    1245184: 0,
                    1310720: 4160,
                    1376256: 2151678016,
                    1441792: 2151682048,
                    1507328: 2147487808,
                    1572864: 2151682112,
                    1638400: 2147483648,
                    1703936: 2151677952,
                    1769472: 4198464,
                    1835008: 2147487744,
                    1900544: 4194304,
                    1966080: 64,
                    2031616: 4096,
                    1081344: 2151677952,
                    1146880: 2151682112,
                    1212416: 0,
                    1277952: 4198400,
                    1343488: 4194368,
                    1409024: 2147483648,
                    1474560: 2147487808,
                    1540096: 64,
                    1605632: 2147483712,
                    1671168: 4096,
                    1736704: 2147487744,
                    1802240: 2151678016,
                    1867776: 4160,
                    1933312: 2151682048,
                    1998848: 4194304,
                    2064384: 4198464
                }, {
                    0: 128,
                    4096: 17039360,
                    8192: 262144,
                    12288: 536870912,
                    16384: 537133184,
                    20480: 16777344,
                    24576: 553648256,
                    28672: 262272,
                    32768: 16777216,
                    36864: 537133056,
                    40960: 536871040,
                    45056: 553910400,
                    49152: 553910272,
                    53248: 0,
                    57344: 17039488,
                    61440: 553648128,
                    2048: 17039488,
                    6144: 553648256,
                    10240: 128,
                    14336: 17039360,
                    18432: 262144,
                    22528: 537133184,
                    26624: 553910272,
                    30720: 536870912,
                    34816: 537133056,
                    38912: 0,
                    43008: 553910400,
                    47104: 16777344,
                    51200: 536871040,
                    55296: 553648128,
                    59392: 16777216,
                    63488: 262272,
                    65536: 262144,
                    69632: 128,
                    73728: 536870912,
                    77824: 553648256,
                    81920: 16777344,
                    86016: 553910272,
                    90112: 537133184,
                    94208: 16777216,
                    98304: 553910400,
                    102400: 553648128,
                    106496: 17039360,
                    110592: 537133056,
                    114688: 262272,
                    118784: 536871040,
                    122880: 0,
                    126976: 17039488,
                    67584: 553648256,
                    71680: 16777216,
                    75776: 17039360,
                    79872: 537133184,
                    83968: 536870912,
                    88064: 17039488,
                    92160: 128,
                    96256: 553910272,
                    100352: 262272,
                    104448: 553910400,
                    108544: 0,
                    112640: 553648128,
                    116736: 16777344,
                    120832: 262144,
                    124928: 537133056,
                    129024: 536871040
                }, {
                    0: 268435464,
                    256: 8192,
                    512: 270532608,
                    768: 270540808,
                    1024: 268443648,
                    1280: 2097152,
                    1536: 2097160,
                    1792: 268435456,
                    2048: 0,
                    2304: 268443656,
                    2560: 2105344,
                    2816: 8,
                    3072: 270532616,
                    3328: 2105352,
                    3584: 8200,
                    3840: 270540800,
                    128: 270532608,
                    384: 270540808,
                    640: 8,
                    896: 2097152,
                    1152: 2105352,
                    1408: 268435464,
                    1664: 268443648,
                    1920: 8200,
                    2176: 2097160,
                    2432: 8192,
                    2688: 268443656,
                    2944: 270532616,
                    3200: 0,
                    3456: 270540800,
                    3712: 2105344,
                    3968: 268435456,
                    4096: 268443648,
                    4352: 270532616,
                    4608: 270540808,
                    4864: 8200,
                    5120: 2097152,
                    5376: 268435456,
                    5632: 268435464,
                    5888: 2105344,
                    6144: 2105352,
                    6400: 0,
                    6656: 8,
                    6912: 270532608,
                    7168: 8192,
                    7424: 268443656,
                    7680: 270540800,
                    7936: 2097160,
                    4224: 8,
                    4480: 2105344,
                    4736: 2097152,
                    4992: 268435464,
                    5248: 268443648,
                    5504: 8200,
                    5760: 270540808,
                    6016: 270532608,
                    6272: 270540800,
                    6528: 270532616,
                    6784: 8192,
                    7040: 2105352,
                    7296: 2097160,
                    7552: 0,
                    7808: 268435456,
                    8064: 268443656
                }, {
                    0: 1048576,
                    16: 33555457,
                    32: 1024,
                    48: 1049601,
                    64: 34604033,
                    80: 0,
                    96: 1,
                    112: 34603009,
                    128: 33555456,
                    144: 1048577,
                    160: 33554433,
                    176: 34604032,
                    192: 34603008,
                    208: 1025,
                    224: 1049600,
                    240: 33554432,
                    8: 34603009,
                    24: 0,
                    40: 33555457,
                    56: 34604032,
                    72: 1048576,
                    88: 33554433,
                    104: 33554432,
                    120: 1025,
                    136: 1049601,
                    152: 33555456,
                    168: 34603008,
                    184: 1048577,
                    200: 1024,
                    216: 34604033,
                    232: 1,
                    248: 1049600,
                    256: 33554432,
                    272: 1048576,
                    288: 33555457,
                    304: 34603009,
                    320: 1048577,
                    336: 33555456,
                    352: 34604032,
                    368: 1049601,
                    384: 1025,
                    400: 34604033,
                    416: 1049600,
                    432: 1,
                    448: 0,
                    464: 34603008,
                    480: 33554433,
                    496: 1024,
                    264: 1049600,
                    280: 33555457,
                    296: 34603009,
                    312: 1,
                    328: 33554432,
                    344: 1048576,
                    360: 1025,
                    376: 34604032,
                    392: 33554433,
                    408: 34603008,
                    424: 0,
                    440: 34604033,
                    456: 1049601,
                    472: 1024,
                    488: 33555456,
                    504: 1048577
                }, {
                    0: 134219808,
                    1: 131072,
                    2: 134217728,
                    3: 32,
                    4: 131104,
                    5: 134350880,
                    6: 134350848,
                    7: 2048,
                    8: 134348800,
                    9: 134219776,
                    10: 133120,
                    11: 134348832,
                    12: 2080,
                    13: 0,
                    14: 134217760,
                    15: 133152,
                    2147483648: 2048,
                    2147483649: 134350880,
                    2147483650: 134219808,
                    2147483651: 134217728,
                    2147483652: 134348800,
                    2147483653: 133120,
                    2147483654: 133152,
                    2147483655: 32,
                    2147483656: 134217760,
                    2147483657: 2080,
                    2147483658: 131104,
                    2147483659: 134350848,
                    2147483660: 0,
                    2147483661: 134348832,
                    2147483662: 134219776,
                    2147483663: 131072,
                    16: 133152,
                    17: 134350848,
                    18: 32,
                    19: 2048,
                    20: 134219776,
                    21: 134217760,
                    22: 134348832,
                    23: 131072,
                    24: 0,
                    25: 131104,
                    26: 134348800,
                    27: 134219808,
                    28: 134350880,
                    29: 133120,
                    30: 2080,
                    31: 134217728,
                    2147483664: 131072,
                    2147483665: 2048,
                    2147483666: 134348832,
                    2147483667: 133152,
                    2147483668: 32,
                    2147483669: 134348800,
                    2147483670: 134217728,
                    2147483671: 134219808,
                    2147483672: 134350880,
                    2147483673: 134217760,
                    2147483674: 134219776,
                    2147483675: 0,
                    2147483676: 133120,
                    2147483677: 2080,
                    2147483678: 131104,
                    2147483679: 134350848
                }]
                  , d = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679]
                  , v = l.DES = o.extend({
                    _doReset: function() {
                        for (var m = this._key, y = m.words, b = [], x = 0; x < 56; x++) {
                            var C = s[x] - 1;
                            b[x] = y[C >>> 5] >>> 31 - C % 32 & 1
                        }
                        for (var S = this._subKeys = [], w = 0; w < 16; w++) {
                            for (var T = S[w] = [], P = c[w], x = 0; x < 24; x++)
                                T[x / 6 | 0] |= b[(u[x] - 1 + P) % 28] << 31 - x % 6,
                                T[4 + (x / 6 | 0)] |= b[28 + (u[x + 24] - 1 + P) % 28] << 31 - x % 6;
                            T[0] = T[0] << 1 | T[0] >>> 31;
                            for (var x = 1; x < 7; x++)
                                T[x] = T[x] >>> (x - 1) * 4 + 3;
                            T[7] = T[7] << 5 | T[7] >>> 27
                        }
                        for (var M = this._invSubKeys = [], x = 0; x < 16; x++)
                            M[x] = S[15 - x]
                    },
                    encryptBlock: function(m, y) {
                        this._doCryptBlock(m, y, this._subKeys)
                    },
                    decryptBlock: function(m, y) {
                        this._doCryptBlock(m, y, this._invSubKeys)
                    },
                    _doCryptBlock: function(m, y, b) {
                        this._lBlock = m[y],
                        this._rBlock = m[y + 1],
                        h.call(this, 4, 252645135),
                        h.call(this, 16, 65535),
                        p.call(this, 2, 858993459),
                        p.call(this, 8, 16711935),
                        h.call(this, 1, 1431655765);
                        for (var x = 0; x < 16; x++) {
                            for (var C = b[x], S = this._lBlock, w = this._rBlock, T = 0, P = 0; P < 8; P++)
                                T |= f[P][((w ^ C[P]) & d[P]) >>> 0];
                            this._lBlock = w,
                            this._rBlock = S ^ T
                        }
                        var M = this._lBlock;
                        this._lBlock = this._rBlock,
                        this._rBlock = M,
                        h.call(this, 1, 1431655765),
                        p.call(this, 8, 16711935),
                        p.call(this, 2, 858993459),
                        h.call(this, 16, 65535),
                        h.call(this, 4, 252645135),
                        m[y] = this._lBlock,
                        m[y + 1] = this._rBlock
                    },
                    keySize: 64 / 32,
                    ivSize: 64 / 32,
                    blockSize: 64 / 32
                });
                function h(m, y) {
                    var b = (this._lBlock >>> m ^ this._rBlock) & y;
                    this._rBlock ^= b,
                    this._lBlock ^= b << m
                }
                function p(m, y) {
                    var b = (this._rBlock >>> m ^ this._lBlock) & y;
                    this._lBlock ^= b,
                    this._rBlock ^= b << m
                }
                r.DES = o._createHelper(v);
                var g = l.TripleDES = o.extend({
                    _doReset: function() {
                        var m = this._key
                          , y = m.words;
                        if (y.length !== 2 && y.length !== 4 && y.length < 6)
                            throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
                        var b = y.slice(0, 2)
                          , x = y.length < 4 ? y.slice(0, 2) : y.slice(2, 4)
                          , C = y.length < 6 ? y.slice(0, 2) : y.slice(4, 6);
                        this._des1 = v.createEncryptor(i.create(b)),
                        this._des2 = v.createEncryptor(i.create(x)),
                        this._des3 = v.createEncryptor(i.create(C))
                    },
                    encryptBlock: function(m, y) {
                        this._des1.encryptBlock(m, y),
                        this._des2.decryptBlock(m, y),
                        this._des3.encryptBlock(m, y)
                    },
                    decryptBlock: function(m, y) {
                        this._des3.decryptBlock(m, y),
                        this._des2.encryptBlock(m, y),
                        this._des1.decryptBlock(m, y)
                    },
                    keySize: 192 / 32,
                    ivSize: 64 / 32,
                    blockSize: 64 / 32
                });
                r.TripleDES = o._createHelper(g)
            }(),
            n.TripleDES
        })
    }(A_)),
    A_.exports
}
var I_ = {
    exports: {}
}, o7;
function a0e() {
    return o7 || (o7 = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), sh(), uh(), Wf(), Gr())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.StreamCipher
                  , o = r.algo
                  , l = o.RC4 = i.extend({
                    _doReset: function() {
                        for (var c = this._key, f = c.words, d = c.sigBytes, v = this._S = [], h = 0; h < 256; h++)
                            v[h] = h;
                        for (var h = 0, p = 0; h < 256; h++) {
                            var g = h % d
                              , m = f[g >>> 2] >>> 24 - g % 4 * 8 & 255;
                            p = (p + v[h] + m) % 256;
                            var y = v[h];
                            v[h] = v[p],
                            v[p] = y
                        }
                        this._i = this._j = 0
                    },
                    _doProcessBlock: function(c, f) {
                        c[f] ^= s.call(this)
                    },
                    keySize: 256 / 32,
                    ivSize: 0
                });
                function s() {
                    for (var c = this._S, f = this._i, d = this._j, v = 0, h = 0; h < 4; h++) {
                        f = (f + 1) % 256,
                        d = (d + c[f]) % 256;
                        var p = c[f];
                        c[f] = c[d],
                        c[d] = p,
                        v |= c[(c[f] + c[d]) % 256] << 24 - h * 8
                    }
                    return this._i = f,
                    this._j = d,
                    v
                }
                r.RC4 = i._createHelper(l);
                var u = o.RC4Drop = l.extend({
                    cfg: l.cfg.extend({
                        drop: 192
                    }),
                    _doReset: function() {
                        l._doReset.call(this);
                        for (var c = this.cfg.drop; c > 0; c--)
                            s.call(this)
                    }
                });
                r.RC4Drop = i._createHelper(u)
            }(),
            n.RC4
        })
    }(I_)),
    I_.exports
}
var k_ = {
    exports: {}
}, l7;
function i0e() {
    return l7 || (l7 = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), sh(), uh(), Wf(), Gr())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.StreamCipher
                  , o = r.algo
                  , l = []
                  , s = []
                  , u = []
                  , c = o.Rabbit = i.extend({
                    _doReset: function() {
                        for (var d = this._key.words, v = this.cfg.iv, h = 0; h < 4; h++)
                            d[h] = (d[h] << 8 | d[h] >>> 24) & 16711935 | (d[h] << 24 | d[h] >>> 8) & 4278255360;
                        var p = this._X = [d[0], d[3] << 16 | d[2] >>> 16, d[1], d[0] << 16 | d[3] >>> 16, d[2], d[1] << 16 | d[0] >>> 16, d[3], d[2] << 16 | d[1] >>> 16]
                          , g = this._C = [d[2] << 16 | d[2] >>> 16, d[0] & 4294901760 | d[1] & 65535, d[3] << 16 | d[3] >>> 16, d[1] & 4294901760 | d[2] & 65535, d[0] << 16 | d[0] >>> 16, d[2] & 4294901760 | d[3] & 65535, d[1] << 16 | d[1] >>> 16, d[3] & 4294901760 | d[0] & 65535];
                        this._b = 0;
                        for (var h = 0; h < 4; h++)
                            f.call(this);
                        for (var h = 0; h < 8; h++)
                            g[h] ^= p[h + 4 & 7];
                        if (v) {
                            var m = v.words
                              , y = m[0]
                              , b = m[1]
                              , x = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360
                              , C = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360
                              , S = x >>> 16 | C & 4294901760
                              , w = C << 16 | x & 65535;
                            g[0] ^= x,
                            g[1] ^= S,
                            g[2] ^= C,
                            g[3] ^= w,
                            g[4] ^= x,
                            g[5] ^= S,
                            g[6] ^= C,
                            g[7] ^= w;
                            for (var h = 0; h < 4; h++)
                                f.call(this)
                        }
                    },
                    _doProcessBlock: function(d, v) {
                        var h = this._X;
                        f.call(this),
                        l[0] = h[0] ^ h[5] >>> 16 ^ h[3] << 16,
                        l[1] = h[2] ^ h[7] >>> 16 ^ h[5] << 16,
                        l[2] = h[4] ^ h[1] >>> 16 ^ h[7] << 16,
                        l[3] = h[6] ^ h[3] >>> 16 ^ h[1] << 16;
                        for (var p = 0; p < 4; p++)
                            l[p] = (l[p] << 8 | l[p] >>> 24) & 16711935 | (l[p] << 24 | l[p] >>> 8) & 4278255360,
                            d[v + p] ^= l[p]
                    },
                    blockSize: 128 / 32,
                    ivSize: 64 / 32
                });
                function f() {
                    for (var d = this._X, v = this._C, h = 0; h < 8; h++)
                        s[h] = v[h];
                    v[0] = v[0] + 1295307597 + this._b | 0,
                    v[1] = v[1] + 3545052371 + (v[0] >>> 0 < s[0] >>> 0 ? 1 : 0) | 0,
                    v[2] = v[2] + 886263092 + (v[1] >>> 0 < s[1] >>> 0 ? 1 : 0) | 0,
                    v[3] = v[3] + 1295307597 + (v[2] >>> 0 < s[2] >>> 0 ? 1 : 0) | 0,
                    v[4] = v[4] + 3545052371 + (v[3] >>> 0 < s[3] >>> 0 ? 1 : 0) | 0,
                    v[5] = v[5] + 886263092 + (v[4] >>> 0 < s[4] >>> 0 ? 1 : 0) | 0,
                    v[6] = v[6] + 1295307597 + (v[5] >>> 0 < s[5] >>> 0 ? 1 : 0) | 0,
                    v[7] = v[7] + 3545052371 + (v[6] >>> 0 < s[6] >>> 0 ? 1 : 0) | 0,
                    this._b = v[7] >>> 0 < s[7] >>> 0 ? 1 : 0;
                    for (var h = 0; h < 8; h++) {
                        var p = d[h] + v[h]
                          , g = p & 65535
                          , m = p >>> 16
                          , y = ((g * g >>> 17) + g * m >>> 15) + m * m
                          , b = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
                        u[h] = y ^ b
                    }
                    d[0] = u[0] + (u[7] << 16 | u[7] >>> 16) + (u[6] << 16 | u[6] >>> 16) | 0,
                    d[1] = u[1] + (u[0] << 8 | u[0] >>> 24) + u[7] | 0,
                    d[2] = u[2] + (u[1] << 16 | u[1] >>> 16) + (u[0] << 16 | u[0] >>> 16) | 0,
                    d[3] = u[3] + (u[2] << 8 | u[2] >>> 24) + u[1] | 0,
                    d[4] = u[4] + (u[3] << 16 | u[3] >>> 16) + (u[2] << 16 | u[2] >>> 16) | 0,
                    d[5] = u[5] + (u[4] << 8 | u[4] >>> 24) + u[3] | 0,
                    d[6] = u[6] + (u[5] << 16 | u[5] >>> 16) + (u[4] << 16 | u[4] >>> 16) | 0,
                    d[7] = u[7] + (u[6] << 8 | u[6] >>> 24) + u[5] | 0
                }
                r.Rabbit = i._createHelper(c)
            }(),
            n.Rabbit
        })
    }(k_)),
    k_.exports
}
var O_ = {
    exports: {}
}, s7;
function o0e() {
    return s7 || (s7 = 1,
    function(t, e) {
        (function(n, r, a) {
            t.exports = r(dn(), sh(), uh(), Wf(), Gr())
        }
        )(Ht, function(n) {
            return function() {
                var r = n
                  , a = r.lib
                  , i = a.StreamCipher
                  , o = r.algo
                  , l = []
                  , s = []
                  , u = []
                  , c = o.RabbitLegacy = i.extend({
                    _doReset: function() {
                        var d = this._key.words
                          , v = this.cfg.iv
                          , h = this._X = [d[0], d[3] << 16 | d[2] >>> 16, d[1], d[0] << 16 | d[3] >>> 16, d[2], d[1] << 16 | d[0] >>> 16, d[3], d[2] << 16 | d[1] >>> 16]
                          , p = this._C = [d[2] << 16 | d[2] >>> 16, d[0] & 4294901760 | d[1] & 65535, d[3] << 16 | d[3] >>> 16, d[1] & 4294901760 | d[2] & 65535, d[0] << 16 | d[0] >>> 16, d[2] & 4294901760 | d[3] & 65535, d[1] << 16 | d[1] >>> 16, d[3] & 4294901760 | d[0] & 65535];
                        this._b = 0;
                        for (var g = 0; g < 4; g++)
                            f.call(this);
                        for (var g = 0; g < 8; g++)
                            p[g] ^= h[g + 4 & 7];
                        if (v) {
                            var m = v.words
                              , y = m[0]
                              , b = m[1]
                              , x = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360
                              , C = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360
                              , S = x >>> 16 | C & 4294901760
                              , w = C << 16 | x & 65535;
                            p[0] ^= x,
                            p[1] ^= S,
                            p[2] ^= C,
                            p[3] ^= w,
                            p[4] ^= x,
                            p[5] ^= S,
                            p[6] ^= C,
                            p[7] ^= w;
                            for (var g = 0; g < 4; g++)
                                f.call(this)
                        }
                    },
                    _doProcessBlock: function(d, v) {
                        var h = this._X;
                        f.call(this),
                        l[0] = h[0] ^ h[5] >>> 16 ^ h[3] << 16,
                        l[1] = h[2] ^ h[7] >>> 16 ^ h[5] << 16,
                        l[2] = h[4] ^ h[1] >>> 16 ^ h[7] << 16,
                        l[3] = h[6] ^ h[3] >>> 16 ^ h[1] << 16;
                        for (var p = 0; p < 4; p++)
                            l[p] = (l[p] << 8 | l[p] >>> 24) & 16711935 | (l[p] << 24 | l[p] >>> 8) & 4278255360,
                            d[v + p] ^= l[p]
                    },
                    blockSize: 128 / 32,
                    ivSize: 64 / 32
                });
                function f() {
                    for (var d = this._X, v = this._C, h = 0; h < 8; h++)
                        s[h] = v[h];
                    v[0] = v[0] + 1295307597 + this._b | 0,
                    v[1] = v[1] + 3545052371 + (v[0] >>> 0 < s[0] >>> 0 ? 1 : 0) | 0,
                    v[2] = v[2] + 886263092 + (v[1] >>> 0 < s[1] >>> 0 ? 1 : 0) | 0,
                    v[3] = v[3] + 1295307597 + (v[2] >>> 0 < s[2] >>> 0 ? 1 : 0) | 0,
                    v[4] = v[4] + 3545052371 + (v[3] >>> 0 < s[3] >>> 0 ? 1 : 0) | 0,
                    v[5] = v[5] + 886263092 + (v[4] >>> 0 < s[4] >>> 0 ? 1 : 0) | 0,
                    v[6] = v[6] + 1295307597 + (v[5] >>> 0 < s[5] >>> 0 ? 1 : 0) | 0,
                    v[7] = v[7] + 3545052371 + (v[6] >>> 0 < s[6] >>> 0 ? 1 : 0) | 0,
                    this._b = v[7] >>> 0 < s[7] >>> 0 ? 1 : 0;
                    for (var h = 0; h < 8; h++) {
                        var p = d[h] + v[h]
                          , g = p & 65535
                          , m = p >>> 16
                          , y = ((g * g >>> 17) + g * m >>> 15) + m * m
                          , b = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
                        u[h] = y ^ b
                    }
                    d[0] = u[0] + (u[7] << 16 | u[7] >>> 16) + (u[6] << 16 | u[6] >>> 16) | 0,
                    d[1] = u[1] + (u[0] << 8 | u[0] >>> 24) + u[7] | 0,
                    d[2] = u[2] + (u[1] << 16 | u[1] >>> 16) + (u[0] << 16 | u[0] >>> 16) | 0,
                    d[3] = u[3] + (u[2] << 8 | u[2] >>> 24) + u[1] | 0,
                    d[4] = u[4] + (u[3] << 16 | u[3] >>> 16) + (u[2] << 16 | u[2] >>> 16) | 0,
                    d[5] = u[5] + (u[4] << 8 | u[4] >>> 24) + u[3] | 0,
                    d[6] = u[6] + (u[5] << 16 | u[5] >>> 16) + (u[4] << 16 | u[4] >>> 16) | 0,
                    d[7] = u[7] + (u[6] << 8 | u[6] >>> 24) + u[5] | 0
                }
                r.RabbitLegacy = i._createHelper(c)
            }(),
            n.RabbitLegacy
        })
    }(O_)),
    O_.exports
}
(function(t, e) {
    (function(n, r, a) {
        t.exports = r(dn(), RC(), Bge(), Vge(), sh(), zge(), uh(), xO(), yX(), Hge(), bX(), jge(), Wge(), Gge(), SO(), Kge(), Wf(), Gr(), Uge(), Yge(), qge(), Xge(), CO.exports, Zge(), Qge(), Jge(), e0e(), t0e(), n0e(), hX.exports, r0e(), a0e(), i0e(), o0e())
    }
    )(Ht, function(n) {
        return n
    })
}
)(mX);
const xpt = mX.exports;
var l0e = {
    exports: {}
}, D_ = {
    exports: {}
}, u7;
function xX() {
    return u7 || (u7 = 1,
    function(t, e) {
        (function(n, r) {
            t.exports = r()
        }
        )(Ht, function() {
            var n = 1e3
              , r = 6e4
              , a = 36e5
              , i = "millisecond"
              , o = "second"
              , l = "minute"
              , s = "hour"
              , u = "day"
              , c = "week"
              , f = "month"
              , d = "quarter"
              , v = "year"
              , h = "date"
              , p = "Invalid Date"
              , g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/
              , m = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g
              , y = {
                name: "en",
                weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
                months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
                ordinal: function(k) {
                    var D = ["th", "st", "nd", "rd"]
                      , E = k % 100;
                    return "[" + k + (D[(E - 20) % 10] || D[E] || D[0]) + "]"
                }
            }
              , b = function(k, D, E) {
                var L = String(k);
                return !L || L.length >= D ? k : "" + Array(D + 1 - L.length).join(E) + k
            }
              , x = {
                s: b,
                z: function(k) {
                    var D = -k.utcOffset()
                      , E = Math.abs(D)
                      , L = Math.floor(E / 60)
                      , N = E % 60;
                    return (D <= 0 ? "+" : "-") + b(L, 2, "0") + ":" + b(N, 2, "0")
                },
                m: function k(D, E) {
                    if (D.date() < E.date())
                        return -k(E, D);
                    var L = 12 * (E.year() - D.year()) + (E.month() - D.month())
                      , N = D.clone().add(L, f)
                      , R = E - N < 0
                      , $ = D.clone().add(L + (R ? -1 : 1), f);
                    return +(-(L + (E - N) / (R ? N - $ : $ - N)) || 0)
                },
                a: function(k) {
                    return k < 0 ? Math.ceil(k) || 0 : Math.floor(k)
                },
                p: function(k) {
                    return {
                        M: f,
                        y: v,
                        w: c,
                        d: u,
                        D: h,
                        h: s,
                        m: l,
                        s: o,
                        ms: i,
                        Q: d
                    }[k] || String(k || "").toLowerCase().replace(/s$/, "")
                },
                u: function(k) {
                    return k === void 0
                }
            }
              , C = "en"
              , S = {};
            S[C] = y;
            var w = function(k) {
                return k instanceof A
            }
              , T = function k(D, E, L) {
                var N;
                if (!D)
                    return C;
                if (typeof D == "string") {
                    var R = D.toLowerCase();
                    S[R] && (N = R),
                    E && (S[R] = E,
                    N = R);
                    var $ = D.split("-");
                    if (!N && $.length > 1)
                        return k($[0])
                } else {
                    var W = D.name;
                    S[W] = D,
                    N = W
                }
                return !L && N && (C = N),
                N || !L && C
            }
              , P = function(k, D) {
                if (w(k))
                    return k.clone();
                var E = typeof D == "object" ? D : {};
                return E.date = k,
                E.args = arguments,
                new A(E)
            }
              , M = x;
            M.l = T,
            M.i = w,
            M.w = function(k, D) {
                return P(k, {
                    locale: D.$L,
                    utc: D.$u,
                    x: D.$x,
                    $offset: D.$offset
                })
            }
            ;
            var A = function() {
                function k(E) {
                    this.$L = T(E.locale, null, !0),
                    this.parse(E)
                }
                var D = k.prototype;
                return D.parse = function(E) {
                    this.$d = function(L) {
                        var N = L.date
                          , R = L.utc;
                        if (N === null)
                            return new Date(NaN);
                        if (M.u(N))
                            return new Date;
                        if (N instanceof Date)
                            return new Date(N);
                        if (typeof N == "string" && !/Z$/i.test(N)) {
                            var $ = N.match(g);
                            if ($) {
                                var W = $[2] - 1 || 0
                                  , B = ($[7] || "0").substring(0, 3);
                                return R ? new Date(Date.UTC($[1], W, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, B)) : new Date($[1],W,$[3] || 1,$[4] || 0,$[5] || 0,$[6] || 0,B)
                            }
                        }
                        return new Date(N)
                    }(E),
                    this.$x = E.x || {},
                    this.init()
                }
                ,
                D.init = function() {
                    var E = this.$d;
                    this.$y = E.getFullYear(),
                    this.$M = E.getMonth(),
                    this.$D = E.getDate(),
                    this.$W = E.getDay(),
                    this.$H = E.getHours(),
                    this.$m = E.getMinutes(),
                    this.$s = E.getSeconds(),
                    this.$ms = E.getMilliseconds()
                }
                ,
                D.$utils = function() {
                    return M
                }
                ,
                D.isValid = function() {
                    return this.$d.toString() !== p
                }
                ,
                D.isSame = function(E, L) {
                    var N = P(E);
                    return this.startOf(L) <= N && N <= this.endOf(L)
                }
                ,
                D.isAfter = function(E, L) {
                    return P(E) < this.startOf(L)
                }
                ,
                D.isBefore = function(E, L) {
                    return this.endOf(L) < P(E)
                }
                ,
                D.$g = function(E, L, N) {
                    return M.u(E) ? this[L] : this.set(N, E)
                }
                ,
                D.unix = function() {
                    return Math.floor(this.valueOf() / 1e3)
                }
                ,
                D.valueOf = function() {
                    return this.$d.getTime()
                }
                ,
                D.startOf = function(E, L) {
                    var N = this
                      , R = !!M.u(L) || L
                      , $ = M.p(E)
                      , W = function(te, ne) {
                        var ie = M.w(N.$u ? Date.UTC(N.$y, ne, te) : new Date(N.$y,ne,te), N);
                        return R ? ie : ie.endOf(u)
                    }
                      , B = function(te, ne) {
                        return M.w(N.toDate()[te].apply(N.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), N)
                    }
                      , G = this.$W
                      , K = this.$M
                      , V = this.$D
                      , U = "set" + (this.$u ? "UTC" : "");
                    switch ($) {
                    case v:
                        return R ? W(1, 0) : W(31, 11);
                    case f:
                        return R ? W(1, K) : W(0, K + 1);
                    case c:
                        var X = this.$locale().weekStart || 0
                          , Y = (G < X ? G + 7 : G) - X;
                        return W(R ? V - Y : V + (6 - Y), K);
                    case u:
                    case h:
                        return B(U + "Hours", 0);
                    case s:
                        return B(U + "Minutes", 1);
                    case l:
                        return B(U + "Seconds", 2);
                    case o:
                        return B(U + "Milliseconds", 3);
                    default:
                        return this.clone()
                    }
                }
                ,
                D.endOf = function(E) {
                    return this.startOf(E, !1)
                }
                ,
                D.$set = function(E, L) {
                    var N, R = M.p(E), $ = "set" + (this.$u ? "UTC" : ""), W = (N = {},
                    N[u] = $ + "Date",
                    N[h] = $ + "Date",
                    N[f] = $ + "Month",
                    N[v] = $ + "FullYear",
                    N[s] = $ + "Hours",
                    N[l] = $ + "Minutes",
                    N[o] = $ + "Seconds",
                    N[i] = $ + "Milliseconds",
                    N)[R], B = R === u ? this.$D + (L - this.$W) : L;
                    if (R === f || R === v) {
                        var G = this.clone().set(h, 1);
                        G.$d[W](B),
                        G.init(),
                        this.$d = G.set(h, Math.min(this.$D, G.daysInMonth())).$d
                    } else
                        W && this.$d[W](B);
                    return this.init(),
                    this
                }
                ,
                D.set = function(E, L) {
                    return this.clone().$set(E, L)
                }
                ,
                D.get = function(E) {
                    return this[M.p(E)]()
                }
                ,
                D.add = function(E, L) {
                    var N, R = this;
                    E = Number(E);
                    var $ = M.p(L)
                      , W = function(K) {
                        var V = P(R);
                        return M.w(V.date(V.date() + Math.round(K * E)), R)
                    };
                    if ($ === f)
                        return this.set(f, this.$M + E);
                    if ($ === v)
                        return this.set(v, this.$y + E);
                    if ($ === u)
                        return W(1);
                    if ($ === c)
                        return W(7);
                    var B = (N = {},
                    N[l] = r,
                    N[s] = a,
                    N[o] = n,
                    N)[$] || 1
                      , G = this.$d.getTime() + E * B;
                    return M.w(G, this)
                }
                ,
                D.subtract = function(E, L) {
                    return this.add(-1 * E, L)
                }
                ,
                D.format = function(E) {
                    var L = this
                      , N = this.$locale();
                    if (!this.isValid())
                        return N.invalidDate || p;
                    var R = E || "YYYY-MM-DDTHH:mm:ssZ"
                      , $ = M.z(this)
                      , W = this.$H
                      , B = this.$m
                      , G = this.$M
                      , K = N.weekdays
                      , V = N.months
                      , U = N.meridiem
                      , X = function(ne, ie, ae, q) {
                        return ne && (ne[ie] || ne(L, R)) || ae[ie].slice(0, q)
                    }
                      , Y = function(ne) {
                        return M.s(W % 12 || 12, ne, "0")
                    }
                      , te = U || function(ne, ie, ae) {
                        var q = ne < 12 ? "AM" : "PM";
                        return ae ? q.toLowerCase() : q
                    }
                    ;
                    return R.replace(m, function(ne, ie) {
                        return ie || function(ae) {
                            switch (ae) {
                            case "YY":
                                return String(L.$y).slice(-2);
                            case "YYYY":
                                return M.s(L.$y, 4, "0");
                            case "M":
                                return G + 1;
                            case "MM":
                                return M.s(G + 1, 2, "0");
                            case "MMM":
                                return X(N.monthsShort, G, V, 3);
                            case "MMMM":
                                return X(V, G);
                            case "D":
                                return L.$D;
                            case "DD":
                                return M.s(L.$D, 2, "0");
                            case "d":
                                return String(L.$W);
                            case "dd":
                                return X(N.weekdaysMin, L.$W, K, 2);
                            case "ddd":
                                return X(N.weekdaysShort, L.$W, K, 3);
                            case "dddd":
                                return K[L.$W];
                            case "H":
                                return String(W);
                            case "HH":
                                return M.s(W, 2, "0");
                            case "h":
                                return Y(1);
                            case "hh":
                                return Y(2);
                            case "a":
                                return te(W, B, !0);
                            case "A":
                                return te(W, B, !1);
                            case "m":
                                return String(B);
                            case "mm":
                                return M.s(B, 2, "0");
                            case "s":
                                return String(L.$s);
                            case "ss":
                                return M.s(L.$s, 2, "0");
                            case "SSS":
                                return M.s(L.$ms, 3, "0");
                            case "Z":
                                return $
                            }
                            return null
                        }(ne) || $.replace(":", "")
                    })
                }
                ,
                D.utcOffset = function() {
                    return 15 * -Math.round(this.$d.getTimezoneOffset() / 15)
                }
                ,
                D.diff = function(E, L, N) {
                    var R, $ = this, W = M.p(L), B = P(E), G = (B.utcOffset() - this.utcOffset()) * r, K = this - B, V = function() {
                        return M.m($, B)
                    };
                    switch (W) {
                    case v:
                        R = V() / 12;
                        break;
                    case f:
                        R = V();
                        break;
                    case d:
                        R = V() / 3;
                        break;
                    case c:
                        R = (K - G) / 6048e5;
                        break;
                    case u:
                        R = (K - G) / 864e5;
                        break;
                    case s:
                        R = K / a;
                        break;
                    case l:
                        R = K / r;
                        break;
                    case o:
                        R = K / n;
                        break;
                    default:
                        R = K
                    }
                    return N ? R : M.a(R)
                }
                ,
                D.daysInMonth = function() {
                    return this.endOf(f).$D
                }
                ,
                D.$locale = function() {
                    return S[this.$L]
                }
                ,
                D.locale = function(E, L) {
                    if (!E)
                        return this.$L;
                    var N = this.clone()
                      , R = T(E, L, !0);
                    return R && (N.$L = R),
                    N
                }
                ,
                D.clone = function() {
                    return M.w(this.$d, this)
                }
                ,
                D.toDate = function() {
                    return new Date(this.valueOf())
                }
                ,
                D.toJSON = function() {
                    return this.isValid() ? this.toISOString() : null
                }
                ,
                D.toISOString = function() {
                    return this.$d.toISOString()
                }
                ,
                D.toString = function() {
                    return this.$d.toUTCString()
                }
                ,
                k
            }()
              , O = A.prototype;
            return P.prototype = O,
            [["$ms", i], ["$s", o], ["$m", l], ["$H", s], ["$W", u], ["$M", f], ["$y", v], ["$D", h]].forEach(function(k) {
                O[k[1]] = function(D) {
                    return this.$g(D, k[0], k[1])
                }
            }),
            P.extend = function(k, D) {
                return k.$i || (k(D, A, P),
                k.$i = !0),
                P
            }
            ,
            P.locale = T,
            P.isDayjs = w,
            P.unix = function(k) {
                return P(1e3 * k)
            }
            ,
            P.en = S[C],
            P.Ls = S,
            P.p = {},
            P
        })
    }(D_)),
    D_.exports
}
(function(t, e) {
    (function(n, r) {
        t.exports = r(xX())
    }
    )(Ht, function(n) {
        function r(o) {
            return o && typeof o == "object" && "default"in o ? o : {
                default: o
            }
        }
        var a = r(n)
          , i = {
            name: "zh-cn",
            weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),
            weekdaysShort: "\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),
            weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),
            months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),
            monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),
            ordinal: function(o, l) {
                return l === "W" ? o + "\u5468" : o + "\u65E5"
            },
            weekStart: 1,
            yearStart: 4,
            formats: {
                LT: "HH:mm",
                LTS: "HH:mm:ss",
                L: "YYYY/MM/DD",
                LL: "YYYY\u5E74M\u6708D\u65E5",
                LLL: "YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",
                LLLL: "YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",
                l: "YYYY/M/D",
                ll: "YYYY\u5E74M\u6708D\u65E5",
                lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm",
                llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm"
            },
            relativeTime: {
                future: "%s\u5185",
                past: "%s\u524D",
                s: "\u51E0\u79D2",
                m: "1 \u5206\u949F",
                mm: "%d \u5206\u949F",
                h: "1 \u5C0F\u65F6",
                hh: "%d \u5C0F\u65F6",
                d: "1 \u5929",
                dd: "%d \u5929",
                M: "1 \u4E2A\u6708",
                MM: "%d \u4E2A\u6708",
                y: "1 \u5E74",
                yy: "%d \u5E74"
            },
            meridiem: function(o, l) {
                var s = 100 * o + l;
                return s < 600 ? "\u51CC\u6668" : s < 900 ? "\u65E9\u4E0A" : s < 1100 ? "\u4E0A\u5348" : s < 1300 ? "\u4E2D\u5348" : s < 1800 ? "\u4E0B\u5348" : "\u665A\u4E0A"
            }
        };
        return a.default.locale(i, null, !0),
        i
    })
}
)(l0e);
var c7;
const NC = typeof window != "undefined"
  , Z3 = t=>typeof t == "function"
  , E_ = t=>typeof t == "number"
  , s0e = t=>typeof t == "string"
  , u0e = (t,e,n)=>Math.min(n, Math.max(e, t))
  , Mf = ()=>{}
;
NC && ((c7 = window == null ? void 0 : window.navigator) == null ? void 0 : c7.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
function i0(t) {
    return typeof t == "function" ? t() : Pn(t)
}
function SX(t, e) {
    function n(...r) {
        return new Promise((a,i)=>{
            Promise.resolve(t(()=>e.apply(this, r), {
                fn: e,
                thisArg: this,
                args: r
            })).then(a).catch(i)
        }
        )
    }
    return n
}
function c0e(t, e={}) {
    let n, r, a = Mf;
    const i = l=>{
        clearTimeout(l),
        a(),
        a = Mf
    }
    ;
    return l=>{
        const s = i0(t)
          , u = i0(e.maxWait);
        return n && i(n),
        s <= 0 || u !== void 0 && u <= 0 ? (r && (i(r),
        r = null),
        Promise.resolve(l())) : new Promise((c,f)=>{
            a = e.rejectOnCancel ? f : c,
            u && !r && (r = setTimeout(()=>{
                n && i(n),
                r = null,
                c(l())
            }
            , u)),
            n = setTimeout(()=>{
                r && i(r),
                r = null,
                c(l())
            }
            , s)
        }
        )
    }
}
function f0e(t, e=!0, n=!0, r=!1) {
    let a = 0, i, o = !0, l = Mf, s;
    const u = ()=>{
        i && (clearTimeout(i),
        i = void 0,
        l(),
        l = Mf)
    }
    ;
    return f=>{
        const d = i0(t)
          , v = Date.now() - a
          , h = ()=>s = f();
        return u(),
        d <= 0 ? (a = Date.now(),
        h()) : (v > d && (n || !o) ? (a = Date.now(),
        h()) : e && (s = new Promise((p,g)=>{
            l = r ? g : p,
            i = setTimeout(()=>{
                a = Date.now(),
                o = !0,
                p(h()),
                u()
            }
            , Math.max(0, d - v))
        }
        )),
        !n && !i && (i = setTimeout(()=>o = !0, d)),
        o = !1,
        s)
    }
}
function CX(t) {
    return t
}
function wO(t) {
    return xC() ? (Wk(t),
    !0) : !1
}
function Spt(t, e=200, n={}) {
    return SX(c0e(e, n), t)
}
function Cpt(t, e=200, n=!1, r=!0, a=!1) {
    return SX(f0e(e, n, r, a), t)
}
function d0e(t) {
    return typeof t == "function" ? j(t) : Q(t)
}
function v0e(t, e=!0) {
    qn() ? ct(t) : e ? t() : yt(t)
}
function wpt(t) {
    qn() && dr(t)
}
function h0e(t, e, n={}) {
    const {immediate: r=!0} = n
      , a = Q(!1);
    let i = null;
    function o() {
        i && (clearTimeout(i),
        i = null)
    }
    function l() {
        a.value = !1,
        o()
    }
    function s(...u) {
        o(),
        a.value = !0,
        i = setTimeout(()=>{
            a.value = !1,
            i = null,
            t(...u)
        }
        , i0(e))
    }
    return r && (a.value = !0,
    NC && s()),
    wO(l),
    {
        isPending: CC(a),
        start: s,
        stop: l
    }
}
function _pt(t, e, n) {
    let r;
    Hn(n) ? r = {
        evaluating: n
    } : r = n || {};
    const {lazy: a=!1, evaluating: i=void 0, shallow: o=!1, onError: l=Mf} = r
      , s = Q(!a)
      , u = o ? Mt(e) : Q(e);
    let c = 0;
    return pt(f=>Uh(this, null, function*() {
        if (!s.value)
            return;
        c++;
        const d = c;
        let v = !1;
        i && Promise.resolve().then(()=>{
            i.value = !0
        }
        );
        try {
            const h = yield t(p=>{
                f(()=>{
                    i && (i.value = !1),
                    v || p()
                }
                )
            }
            );
            d === c && (u.value = h)
        } catch (h) {
            l(h)
        } finally {
            i && d === c && (i.value = !1),
            v = !0
        }
    })),
    a ? j(()=>(s.value = !0,
    u.value)) : u
}
function p0e(t) {
    var e;
    const n = i0(t);
    return (e = n == null ? void 0 : n.$el) != null ? e : n
}
const wX = NC ? window : void 0
  , g0e = NC ? window.document : void 0;
function m0e(t, e=!1) {
    const n = Q()
      , r = ()=>n.value = Boolean(t());
    return r(),
    v0e(r, e),
    n
}
const Q3 = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}
  , J3 = "__vueuse_ssr_handlers__";
Q3[J3] = Q3[J3] || {};
Q3[J3];
function y0e(t, e={}) {
    const {immediate: n=!0, window: r=wX} = e
      , a = Q(!1);
    let i = 0
      , o = null;
    function l(c) {
        if (!a.value || !r)
            return;
        const f = c - i;
        t({
            delta: f,
            timestamp: c
        }),
        i = c,
        o = r.requestAnimationFrame(l)
    }
    function s() {
        !a.value && r && (a.value = !0,
        o = r.requestAnimationFrame(l))
    }
    function u() {
        a.value = !1,
        o != null && r && (r.cancelAnimationFrame(o),
        o = null)
    }
    return n && s(),
    wO(u),
    {
        isActive: CC(a),
        pause: u,
        resume: s
    }
}
var f7 = Object.getOwnPropertySymbols
  , b0e = Object.prototype.hasOwnProperty
  , x0e = Object.prototype.propertyIsEnumerable
  , S0e = (t,e)=>{
    var n = {};
    for (var r in t)
        b0e.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
    if (t != null && f7)
        for (var r of f7(t))
            e.indexOf(r) < 0 && x0e.call(t, r) && (n[r] = t[r]);
    return n
}
;
function C0e(t, e, n={}) {
    const r = n
      , {window: a=wX} = r
      , i = S0e(r, ["window"]);
    let o;
    const l = m0e(()=>a && "MutationObserver"in a)
      , s = ()=>{
        o && (o.disconnect(),
        o = void 0)
    }
      , u = Te(()=>p0e(t), f=>{
        s(),
        l.value && a && f && (o = new MutationObserver(e),
        o.observe(f, i))
    }
    , {
        immediate: !0
    })
      , c = ()=>{
        s(),
        u()
    }
    ;
    return wO(c),
    {
        isSupported: l,
        stop: c
    }
}
var d7;
(function(t) {
    t.UP = "UP",
    t.RIGHT = "RIGHT",
    t.DOWN = "DOWN",
    t.LEFT = "LEFT",
    t.NONE = "NONE"
}
)(d7 || (d7 = {}));
function Tpt(t=null, e={}) {
    var n, r;
    const {document: a=g0e} = e
      , i = d0e((n = t != null ? t : a == null ? void 0 : a.title) != null ? n : null)
      , o = t && Z3(t);
    function l(s) {
        if (!("titleTemplate"in e))
            return s;
        const u = e.titleTemplate || "%s";
        return Z3(u) ? u(s) : Pn(u).replace(/%s/g, s)
    }
    return Te(i, (s,u)=>{
        s !== u && a && (a.title = l(s0e(s) ? s : ""))
    }
    , {
        immediate: !0
    }),
    e.observe && !e.titleTemplate && a && !o && C0e((r = a.head) == null ? void 0 : r.querySelector("title"), ()=>{
        a && a.title !== i.value && (i.value = l(a.title))
    }
    , {
        childList: !0
    }),
    i
}
var w0e = Object.defineProperty
  , v7 = Object.getOwnPropertySymbols
  , _0e = Object.prototype.hasOwnProperty
  , T0e = Object.prototype.propertyIsEnumerable
  , h7 = (t,e,n)=>e in t ? w0e(t, e, {
    enumerable: !0,
    configurable: !0,
    writable: !0,
    value: n
}) : t[e] = n
  , P0e = (t,e)=>{
    for (var n in e || (e = {}))
        _0e.call(e, n) && h7(t, n, e[n]);
    if (v7)
        for (var n of v7(e))
            T0e.call(e, n) && h7(t, n, e[n]);
    return t
}
;
const M0e = {
    easeInSine: [.12, 0, .39, 0],
    easeOutSine: [.61, 1, .88, 1],
    easeInOutSine: [.37, 0, .63, 1],
    easeInQuad: [.11, 0, .5, 0],
    easeOutQuad: [.5, 1, .89, 1],
    easeInOutQuad: [.45, 0, .55, 1],
    easeInCubic: [.32, 0, .67, 0],
    easeOutCubic: [.33, 1, .68, 1],
    easeInOutCubic: [.65, 0, .35, 1],
    easeInQuart: [.5, 0, .75, 0],
    easeOutQuart: [.25, 1, .5, 1],
    easeInOutQuart: [.76, 0, .24, 1],
    easeInQuint: [.64, 0, .78, 0],
    easeOutQuint: [.22, 1, .36, 1],
    easeInOutQuint: [.83, 0, .17, 1],
    easeInExpo: [.7, 0, .84, 0],
    easeOutExpo: [.16, 1, .3, 1],
    easeInOutExpo: [.87, 0, .13, 1],
    easeInCirc: [.55, 0, 1, .45],
    easeOutCirc: [0, .55, .45, 1],
    easeInOutCirc: [.85, 0, .15, 1],
    easeInBack: [.36, 0, .66, -.56],
    easeOutBack: [.34, 1.56, .64, 1],
    easeInOutBack: [.68, -.6, .32, 1.6]
}
  , Ppt = P0e({
    linear: CX
}, M0e);
function A0e([t,e,n,r]) {
    const a = (c,f)=>1 - 3 * f + 3 * c
      , i = (c,f)=>3 * f - 6 * c
      , o = c=>3 * c
      , l = (c,f,d)=>((a(f, d) * c + i(f, d)) * c + o(f)) * c
      , s = (c,f,d)=>3 * a(f, d) * c * c + 2 * i(f, d) * c + o(f)
      , u = c=>{
        let f = c;
        for (let d = 0; d < 4; ++d) {
            const v = s(f, t, n);
            if (v === 0)
                return f;
            const h = l(f, t, n) - c;
            f -= h / v
        }
        return f
    }
    ;
    return c=>t === e && n === r ? c : l(u(c), e, r)
}
function Mpt(t, e={}) {
    const {delay: n=0, disabled: r=!1, duration: a=1e3, onFinished: i=Mf, onStarted: o=Mf, transition: l=CX} = e
      , s = j(()=>{
        const C = Pn(l);
        return Z3(C) ? C : A0e(C)
    }
    )
      , u = j(()=>{
        const C = Pn(t);
        return E_(C) ? C : C.map(Pn)
    }
    )
      , c = j(()=>E_(u.value) ? [u.value] : u.value)
      , f = Q(c.value.slice(0));
    let d, v, h, p, g;
    const {resume: m, pause: y} = y0e(()=>{
        const C = Date.now()
          , S = u0e(1 - (h - C) / d, 0, 1);
        f.value = g.map((w,T)=>{
            var P;
            return w + ((P = v[T]) != null ? P : 0) * s.value(S)
        }
        ),
        S >= 1 && (y(),
        i())
    }
    , {
        immediate: !1
    })
      , b = ()=>{
        y(),
        d = Pn(a),
        v = f.value.map((C,S)=>{
            var w, T;
            return ((w = c.value[S]) != null ? w : 0) - ((T = f.value[S]) != null ? T : 0)
        }
        ),
        g = f.value.slice(0),
        p = Date.now(),
        h = p + d,
        m(),
        o()
    }
      , x = h0e(b, n, {
        immediate: !1
    });
    return Te(c, ()=>{
        Pn(r) || (Pn(n) <= 0 ? b() : x.start())
    }
    , {
        deep: !0
    }),
    Te(()=>Pn(r), C=>{
        C && (f.value = c.value.slice(0),
        y())
    }
    ),
    j(()=>{
        const C = Pn(r) ? c : f;
        return E_(u.value) ? C.value[0] : C.value
    }
    )
}
/*!
  * vue-router v4.2.4
  * (c) 2023 Eduardo San Martin Morote
  * @license MIT
  */
const Bd = typeof window != "undefined";
function I0e(t) {
    return t.__esModule || t[Symbol.toStringTag] === "Module"
}
const kn = Object.assign;
function L_(t, e) {
    const n = {};
    for (const r in e) {
        const a = e[r];
        n[r] = bo(a) ? a.map(t) : t(a)
    }
    return n
}
const dg = ()=>{}
  , bo = Array.isArray
  , k0e = /\/$/
  , O0e = t=>t.replace(k0e, "");
function R_(t, e, n="/") {
    let r, a = {}, i = "", o = "";
    const l = e.indexOf("#");
    let s = e.indexOf("?");
    return l < s && l >= 0 && (s = -1),
    s > -1 && (r = e.slice(0, s),
    i = e.slice(s + 1, l > -1 ? l : e.length),
    a = t(i)),
    l > -1 && (r = r || e.slice(0, l),
    o = e.slice(l, e.length)),
    r = R0e(r != null ? r : e, n),
    {
        fullPath: r + (i && "?") + i + o,
        path: r,
        query: a,
        hash: o
    }
}
function D0e(t, e) {
    const n = e.query ? t(e.query) : "";
    return e.path + (n && "?") + n + (e.hash || "")
}
function p7(t, e) {
    return !e || !t.toLowerCase().startsWith(e.toLowerCase()) ? t : t.slice(e.length) || "/"
}
function E0e(t, e, n) {
    const r = e.matched.length - 1
      , a = n.matched.length - 1;
    return r > -1 && r === a && Dv(e.matched[r], n.matched[a]) && _X(e.params, n.params) && t(e.query) === t(n.query) && e.hash === n.hash
}
function Dv(t, e) {
    return (t.aliasOf || t) === (e.aliasOf || e)
}
function _X(t, e) {
    if (Object.keys(t).length !== Object.keys(e).length)
        return !1;
    for (const n in t)
        if (!L0e(t[n], e[n]))
            return !1;
    return !0
}
function L0e(t, e) {
    return bo(t) ? g7(t, e) : bo(e) ? g7(e, t) : t === e
}
function g7(t, e) {
    return bo(e) ? t.length === e.length && t.every((n,r)=>n === e[r]) : t.length === 1 && t[0] === e
}
function R0e(t, e) {
    if (t.startsWith("/"))
        return t;
    if (!t)
        return e;
    const n = e.split("/")
      , r = t.split("/")
      , a = r[r.length - 1];
    (a === ".." || a === ".") && r.push("");
    let i = n.length - 1, o, l;
    for (o = 0; o < r.length; o++)
        if (l = r[o],
        l !== ".")
            if (l === "..")
                i > 1 && i--;
            else
                break;
    return n.slice(0, i).join("/") + "/" + r.slice(o - (o === r.length ? 1 : 0)).join("/")
}
var o0;
(function(t) {
    t.pop = "pop",
    t.push = "push"
}
)(o0 || (o0 = {}));
var vg;
(function(t) {
    t.back = "back",
    t.forward = "forward",
    t.unknown = ""
}
)(vg || (vg = {}));
function N0e(t) {
    if (!t)
        if (Bd) {
            const e = document.querySelector("base");
            t = e && e.getAttribute("href") || "/",
            t = t.replace(/^\w+:\/\/[^\/]+/, "")
        } else
            t = "/";
    return t[0] !== "/" && t[0] !== "#" && (t = "/" + t),
    O0e(t)
}
const $0e = /^[^#]+#/;
function F0e(t, e) {
    return t.replace($0e, "#") + e
}
function B0e(t, e) {
    const n = document.documentElement.getBoundingClientRect()
      , r = t.getBoundingClientRect();
    return {
        behavior: e.behavior,
        left: r.left - n.left - (e.left || 0),
        top: r.top - n.top - (e.top || 0)
    }
}
const $C = ()=>({
    left: window.pageXOffset,
    top: window.pageYOffset
});
function V0e(t) {
    let e;
    if ("el"in t) {
        const n = t.el
          , r = typeof n == "string" && n.startsWith("#")
          , a = typeof n == "string" ? r ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
        if (!a)
            return;
        e = B0e(a, t)
    } else
        e = t;
    "scrollBehavior"in document.documentElement.style ? window.scrollTo(e) : window.scrollTo(e.left != null ? e.left : window.pageXOffset, e.top != null ? e.top : window.pageYOffset)
}
function m7(t, e) {
    return (history.state ? history.state.position - e : -1) + t
}
const eM = new Map;
function z0e(t, e) {
    eM.set(t, e)
}
function H0e(t) {
    const e = eM.get(t);
    return eM.delete(t),
    e
}
let j0e = ()=>location.protocol + "//" + location.host;
function TX(t, e) {
    const {pathname: n, search: r, hash: a} = e
      , i = t.indexOf("#");
    if (i > -1) {
        let l = a.includes(t.slice(i)) ? t.slice(i).length : 1
          , s = a.slice(l);
        return s[0] !== "/" && (s = "/" + s),
        p7(s, "")
    }
    return p7(n, t) + r + a
}
function W0e(t, e, n, r) {
    let a = []
      , i = []
      , o = null;
    const l = ({state: d})=>{
        const v = TX(t, location)
          , h = n.value
          , p = e.value;
        let g = 0;
        if (d) {
            if (n.value = v,
            e.value = d,
            o && o === h) {
                o = null;
                return
            }
            g = p ? d.position - p.position : 0
        } else
            r(v);
        a.forEach(m=>{
            m(n.value, h, {
                delta: g,
                type: o0.pop,
                direction: g ? g > 0 ? vg.forward : vg.back : vg.unknown
            })
        }
        )
    }
    ;
    function s() {
        o = n.value
    }
    function u(d) {
        a.push(d);
        const v = ()=>{
            const h = a.indexOf(d);
            h > -1 && a.splice(h, 1)
        }
        ;
        return i.push(v),
        v
    }
    function c() {
        const {history: d} = window;
        !d.state || d.replaceState(kn({}, d.state, {
            scroll: $C()
        }), "")
    }
    function f() {
        for (const d of i)
            d();
        i = [],
        window.removeEventListener("popstate", l),
        window.removeEventListener("beforeunload", c)
    }
    return window.addEventListener("popstate", l),
    window.addEventListener("beforeunload", c, {
        passive: !0
    }),
    {
        pauseListeners: s,
        listen: u,
        destroy: f
    }
}
function y7(t, e, n, r=!1, a=!1) {
    return {
        back: t,
        current: e,
        forward: n,
        replaced: r,
        position: window.history.length,
        scroll: a ? $C() : null
    }
}
function G0e(t) {
    const {history: e, location: n} = window
      , r = {
        value: TX(t, n)
    }
      , a = {
        value: e.state
    };
    a.value || i(r.value, {
        back: null,
        current: r.value,
        forward: null,
        position: e.length - 1,
        replaced: !0,
        scroll: null
    }, !0);
    function i(s, u, c) {
        const f = t.indexOf("#")
          , d = f > -1 ? (n.host && document.querySelector("base") ? t : t.slice(f)) + s : j0e() + t + s;
        try {
            e[c ? "replaceState" : "pushState"](u, "", d),
            a.value = u
        } catch (v) {
            n[c ? "replace" : "assign"](d)
        }
    }
    function o(s, u) {
        const c = kn({}, e.state, y7(a.value.back, s, a.value.forward, !0), u, {
            position: a.value.position
        });
        i(s, c, !0),
        r.value = s
    }
    function l(s, u) {
        const c = kn({}, a.value, e.state, {
            forward: s,
            scroll: $C()
        });
        i(c.current, c, !0);
        const f = kn({}, y7(r.value, s, null), {
            position: c.position + 1
        }, u);
        i(s, f, !1),
        r.value = s
    }
    return {
        location: r,
        state: a,
        push: l,
        replace: o
    }
}
function K0e(t) {
    t = N0e(t);
    const e = G0e(t)
      , n = W0e(t, e.state, e.location, e.replace);
    function r(i, o=!0) {
        o || n.pauseListeners(),
        history.go(i)
    }
    const a = kn({
        location: "",
        base: t,
        go: r,
        createHref: F0e.bind(null, t)
    }, e, n);
    return Object.defineProperty(a, "location", {
        enumerable: !0,
        get: ()=>e.location.value
    }),
    Object.defineProperty(a, "state", {
        enumerable: !0,
        get: ()=>e.state.value
    }),
    a
}
function Apt(t) {
    return t = location.host ? t || location.pathname + location.search : "",
    t.includes("#") || (t += "#"),
    K0e(t)
}
function U0e(t) {
    return typeof t == "string" || t && typeof t == "object"
}
function PX(t) {
    return typeof t == "string" || typeof t == "symbol"
}
const As = {
    path: "/",
    name: void 0,
    params: {},
    query: {},
    hash: "",
    fullPath: "/",
    matched: [],
    meta: {},
    redirectedFrom: void 0
}
  , MX = Symbol("");
var b7;
(function(t) {
    t[t.aborted = 4] = "aborted",
    t[t.cancelled = 8] = "cancelled",
    t[t.duplicated = 16] = "duplicated"
}
)(b7 || (b7 = {}));
function Ev(t, e) {
    return kn(new Error, {
        type: t,
        [MX]: !0
    }, e)
}
function Ol(t, e) {
    return t instanceof Error && MX in t && (e == null || !!(t.type & e))
}
const x7 = "[^/]+?"
  , Y0e = {
    sensitive: !1,
    strict: !1,
    start: !0,
    end: !0
}
  , q0e = /[.+*?^${}()[\]/\\]/g;
function X0e(t, e) {
    const n = kn({}, Y0e, e)
      , r = [];
    let a = n.start ? "^" : "";
    const i = [];
    for (const u of t) {
        const c = u.length ? [] : [90];
        n.strict && !u.length && (a += "/");
        for (let f = 0; f < u.length; f++) {
            const d = u[f];
            let v = 40 + (n.sensitive ? .25 : 0);
            if (d.type === 0)
                f || (a += "/"),
                a += d.value.replace(q0e, "\\$&"),
                v += 40;
            else if (d.type === 1) {
                const {value: h, repeatable: p, optional: g, regexp: m} = d;
                i.push({
                    name: h,
                    repeatable: p,
                    optional: g
                });
                const y = m || x7;
                if (y !== x7) {
                    v += 10;
                    try {
                        new RegExp(`(${y})`)
                    } catch (x) {
                        throw new Error(`Invalid custom RegExp for param "${h}" (${y}): ` + x.message)
                    }
                }
                let b = p ? `((?:${y})(?:/(?:${y}))*)` : `(${y})`;
                f || (b = g && u.length < 2 ? `(?:/${b})` : "/" + b),
                g && (b += "?"),
                a += b,
                v += 20,
                g && (v += -8),
                p && (v += -20),
                y === ".*" && (v += -50)
            }
            c.push(v)
        }
        r.push(c)
    }
    if (n.strict && n.end) {
        const u = r.length - 1;
        r[u][r[u].length - 1] += .7000000000000001
    }
    n.strict || (a += "/?"),
    n.end ? a += "$" : n.strict && (a += "(?:/|$)");
    const o = new RegExp(a,n.sensitive ? "" : "i");
    function l(u) {
        const c = u.match(o)
          , f = {};
        if (!c)
            return null;
        for (let d = 1; d < c.length; d++) {
            const v = c[d] || ""
              , h = i[d - 1];
            f[h.name] = v && h.repeatable ? v.split("/") : v
        }
        return f
    }
    function s(u) {
        let c = ""
          , f = !1;
        for (const d of t) {
            (!f || !c.endsWith("/")) && (c += "/"),
            f = !1;
            for (const v of d)
                if (v.type === 0)
                    c += v.value;
                else if (v.type === 1) {
                    const {value: h, repeatable: p, optional: g} = v
                      , m = h in u ? u[h] : "";
                    if (bo(m) && !p)
                        throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);
                    const y = bo(m) ? m.join("/") : m;
                    if (!y)
                        if (g)
                            d.length < 2 && (c.endsWith("/") ? c = c.slice(0, -1) : f = !0);
                        else
                            throw new Error(`Missing required param "${h}"`);
                    c += y
                }
        }
        return c || "/"
    }
    return {
        re: o,
        score: r,
        keys: i,
        parse: l,
        stringify: s
    }
}
function Z0e(t, e) {
    let n = 0;
    for (; n < t.length && n < e.length; ) {
        const r = e[n] - t[n];
        if (r)
            return r;
        n++
    }
    return t.length < e.length ? t.length === 1 && t[0] === 40 + 40 ? -1 : 1 : t.length > e.length ? e.length === 1 && e[0] === 40 + 40 ? 1 : -1 : 0
}
function Q0e(t, e) {
    let n = 0;
    const r = t.score
      , a = e.score;
    for (; n < r.length && n < a.length; ) {
        const i = Z0e(r[n], a[n]);
        if (i)
            return i;
        n++
    }
    if (Math.abs(a.length - r.length) === 1) {
        if (S7(r))
            return 1;
        if (S7(a))
            return -1
    }
    return a.length - r.length
}
function S7(t) {
    const e = t[t.length - 1];
    return t.length > 0 && e[e.length - 1] < 0
}
const J0e = {
    type: 0,
    value: ""
}
  , eme = /[a-zA-Z0-9_]/;
function tme(t) {
    if (!t)
        return [[]];
    if (t === "/")
        return [[J0e]];
    if (!t.startsWith("/"))
        throw new Error(`Invalid path "${t}"`);
    function e(v) {
        throw new Error(`ERR (${n})/"${u}": ${v}`)
    }
    let n = 0
      , r = n;
    const a = [];
    let i;
    function o() {
        i && a.push(i),
        i = []
    }
    let l = 0, s, u = "", c = "";
    function f() {
        !u || (n === 0 ? i.push({
            type: 0,
            value: u
        }) : n === 1 || n === 2 || n === 3 ? (i.length > 1 && (s === "*" || s === "+") && e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),
        i.push({
            type: 1,
            value: u,
            regexp: c,
            repeatable: s === "*" || s === "+",
            optional: s === "*" || s === "?"
        })) : e("Invalid state to consume buffer"),
        u = "")
    }
    function d() {
        u += s
    }
    for (; l < t.length; ) {
        if (s = t[l++],
        s === "\\" && n !== 2) {
            r = n,
            n = 4;
            continue
        }
        switch (n) {
        case 0:
            s === "/" ? (u && f(),
            o()) : s === ":" ? (f(),
            n = 1) : d();
            break;
        case 4:
            d(),
            n = r;
            break;
        case 1:
            s === "(" ? n = 2 : eme.test(s) ? d() : (f(),
            n = 0,
            s !== "*" && s !== "?" && s !== "+" && l--);
            break;
        case 2:
            s === ")" ? c[c.length - 1] == "\\" ? c = c.slice(0, -1) + s : n = 3 : c += s;
            break;
        case 3:
            f(),
            n = 0,
            s !== "*" && s !== "?" && s !== "+" && l--,
            c = "";
            break;
        default:
            e("Unknown state");
            break
        }
    }
    return n === 2 && e(`Unfinished custom RegExp for param "${u}"`),
    f(),
    o(),
    a
}
function nme(t, e, n) {
    const r = X0e(tme(t.path), n)
      , a = kn(r, {
        record: t,
        parent: e,
        children: [],
        alias: []
    });
    return e && !a.record.aliasOf == !e.record.aliasOf && e.children.push(a),
    a
}
function rme(t, e) {
    const n = []
      , r = new Map;
    e = _7({
        strict: !1,
        end: !0,
        sensitive: !1
    }, e);
    function a(c) {
        return r.get(c)
    }
    function i(c, f, d) {
        const v = !d
          , h = ame(c);
        h.aliasOf = d && d.record;
        const p = _7(e, c)
          , g = [h];
        if ("alias"in c) {
            const b = typeof c.alias == "string" ? [c.alias] : c.alias;
            for (const x of b)
                g.push(kn({}, h, {
                    components: d ? d.record.components : h.components,
                    path: x,
                    aliasOf: d ? d.record : h
                }))
        }
        let m, y;
        for (const b of g) {
            const {path: x} = b;
            if (f && x[0] !== "/") {
                const C = f.record.path
                  , S = C[C.length - 1] === "/" ? "" : "/";
                b.path = f.record.path + (x && S + x)
            }
            if (m = nme(b, f, p),
            d ? d.alias.push(m) : (y = y || m,
            y !== m && y.alias.push(m),
            v && c.name && !w7(m) && o(c.name)),
            h.children) {
                const C = h.children;
                for (let S = 0; S < C.length; S++)
                    i(C[S], m, d && d.children[S])
            }
            d = d || m,
            (m.record.components && Object.keys(m.record.components).length || m.record.name || m.record.redirect) && s(m)
        }
        return y ? ()=>{
            o(y)
        }
        : dg
    }
    function o(c) {
        if (PX(c)) {
            const f = r.get(c);
            f && (r.delete(c),
            n.splice(n.indexOf(f), 1),
            f.children.forEach(o),
            f.alias.forEach(o))
        } else {
            const f = n.indexOf(c);
            f > -1 && (n.splice(f, 1),
            c.record.name && r.delete(c.record.name),
            c.children.forEach(o),
            c.alias.forEach(o))
        }
    }
    function l() {
        return n
    }
    function s(c) {
        let f = 0;
        for (; f < n.length && Q0e(c, n[f]) >= 0 && (c.record.path !== n[f].record.path || !AX(c, n[f])); )
            f++;
        n.splice(f, 0, c),
        c.record.name && !w7(c) && r.set(c.record.name, c)
    }
    function u(c, f) {
        let d, v = {}, h, p;
        if ("name"in c && c.name) {
            if (d = r.get(c.name),
            !d)
                throw Ev(1, {
                    location: c
                });
            p = d.record.name,
            v = kn(C7(f.params, d.keys.filter(y=>!y.optional).map(y=>y.name)), c.params && C7(c.params, d.keys.map(y=>y.name))),
            h = d.stringify(v)
        } else if ("path"in c)
            h = c.path,
            d = n.find(y=>y.re.test(h)),
            d && (v = d.parse(h),
            p = d.record.name);
        else {
            if (d = f.name ? r.get(f.name) : n.find(y=>y.re.test(f.path)),
            !d)
                throw Ev(1, {
                    location: c,
                    currentLocation: f
                });
            p = d.record.name,
            v = kn({}, f.params, c.params),
            h = d.stringify(v)
        }
        const g = [];
        let m = d;
        for (; m; )
            g.unshift(m.record),
            m = m.parent;
        return {
            name: p,
            path: h,
            params: v,
            matched: g,
            meta: ome(g)
        }
    }
    return t.forEach(c=>i(c)),
    {
        addRoute: i,
        resolve: u,
        removeRoute: o,
        getRoutes: l,
        getRecordMatcher: a
    }
}
function C7(t, e) {
    const n = {};
    for (const r of e)
        r in t && (n[r] = t[r]);
    return n
}
function ame(t) {
    return {
        path: t.path,
        redirect: t.redirect,
        name: t.name,
        meta: t.meta || {},
        aliasOf: void 0,
        beforeEnter: t.beforeEnter,
        props: ime(t),
        children: t.children || [],
        instances: {},
        leaveGuards: new Set,
        updateGuards: new Set,
        enterCallbacks: {},
        components: "components"in t ? t.components || null : t.component && {
            default: t.component
        }
    }
}
function ime(t) {
    const e = {}
      , n = t.props || !1;
    if ("component"in t)
        e.default = n;
    else
        for (const r in t.components)
            e[r] = typeof n == "object" ? n[r] : n;
    return e
}
function w7(t) {
    for (; t; ) {
        if (t.record.aliasOf)
            return !0;
        t = t.parent
    }
    return !1
}
function ome(t) {
    return t.reduce((e,n)=>kn(e, n.meta), {})
}
function _7(t, e) {
    const n = {};
    for (const r in t)
        n[r] = r in e ? e[r] : t[r];
    return n
}
function AX(t, e) {
    return e.children.some(n=>n === t || AX(t, n))
}
const IX = /#/g
  , lme = /&/g
  , sme = /\//g
  , ume = /=/g
  , cme = /\?/g
  , kX = /\+/g
  , fme = /%5B/g
  , dme = /%5D/g
  , OX = /%5E/g
  , vme = /%60/g
  , DX = /%7B/g
  , hme = /%7C/g
  , EX = /%7D/g
  , pme = /%20/g;
function _O(t) {
    return encodeURI("" + t).replace(hme, "|").replace(fme, "[").replace(dme, "]")
}
function gme(t) {
    return _O(t).replace(DX, "{").replace(EX, "}").replace(OX, "^")
}
function tM(t) {
    return _O(t).replace(kX, "%2B").replace(pme, "+").replace(IX, "%23").replace(lme, "%26").replace(vme, "`").replace(DX, "{").replace(EX, "}").replace(OX, "^")
}
function mme(t) {
    return tM(t).replace(ume, "%3D")
}
function yme(t) {
    return _O(t).replace(IX, "%23").replace(cme, "%3F")
}
function bme(t) {
    return t == null ? "" : yme(t).replace(sme, "%2F")
}
function Tx(t) {
    try {
        return decodeURIComponent("" + t)
    } catch (e) {}
    return "" + t
}
function xme(t) {
    const e = {};
    if (t === "" || t === "?")
        return e;
    const r = (t[0] === "?" ? t.slice(1) : t).split("&");
    for (let a = 0; a < r.length; ++a) {
        const i = r[a].replace(kX, " ")
          , o = i.indexOf("=")
          , l = Tx(o < 0 ? i : i.slice(0, o))
          , s = o < 0 ? null : Tx(i.slice(o + 1));
        if (l in e) {
            let u = e[l];
            bo(u) || (u = e[l] = [u]),
            u.push(s)
        } else
            e[l] = s
    }
    return e
}
function T7(t) {
    let e = "";
    for (let n in t) {
        const r = t[n];
        if (n = mme(n),
        r == null) {
            r !== void 0 && (e += (e.length ? "&" : "") + n);
            continue
        }
        (bo(r) ? r.map(i=>i && tM(i)) : [r && tM(r)]).forEach(i=>{
            i !== void 0 && (e += (e.length ? "&" : "") + n,
            i != null && (e += "=" + i))
        }
        )
    }
    return e
}
function Sme(t) {
    const e = {};
    for (const n in t) {
        const r = t[n];
        r !== void 0 && (e[n] = bo(r) ? r.map(a=>a == null ? null : "" + a) : r == null ? r : "" + r)
    }
    return e
}
const Cme = Symbol("")
  , P7 = Symbol("")
  , FC = Symbol("")
  , TO = Symbol("")
  , nM = Symbol("");
function Zh() {
    let t = [];
    function e(r) {
        return t.push(r),
        ()=>{
            const a = t.indexOf(r);
            a > -1 && t.splice(a, 1)
        }
    }
    function n() {
        t = []
    }
    return {
        add: e,
        list: ()=>t.slice(),
        reset: n
    }
}
function Us(t, e, n, r, a) {
    const i = r && (r.enterCallbacks[a] = r.enterCallbacks[a] || []);
    return ()=>new Promise((o,l)=>{
        const s = f=>{
            f === !1 ? l(Ev(4, {
                from: n,
                to: e
            })) : f instanceof Error ? l(f) : U0e(f) ? l(Ev(2, {
                from: e,
                to: f
            })) : (i && r.enterCallbacks[a] === i && typeof f == "function" && i.push(f),
            o())
        }
          , u = t.call(r && r.instances[a], e, n, s);
        let c = Promise.resolve(u);
        t.length < 3 && (c = c.then(s)),
        c.catch(f=>l(f))
    }
    )
}
function N_(t, e, n, r) {
    const a = [];
    for (const i of t)
        for (const o in i.components) {
            let l = i.components[o];
            if (!(e !== "beforeRouteEnter" && !i.instances[o]))
                if (wme(l)) {
                    const u = (l.__vccOpts || l)[e];
                    u && a.push(Us(u, n, r, i, o))
                } else {
                    let s = l();
                    a.push(()=>s.then(u=>{
                        if (!u)
                            return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));
                        const c = I0e(u) ? u.default : u;
                        i.components[o] = c;
                        const d = (c.__vccOpts || c)[e];
                        return d && Us(d, n, r, i, o)()
                    }
                    ))
                }
        }
    return a
}
function wme(t) {
    return typeof t == "object" || "displayName"in t || "props"in t || "__vccOpts"in t
}
function M7(t) {
    const e = vt(FC)
      , n = vt(TO)
      , r = j(()=>e.resolve(Pn(t.to)))
      , a = j(()=>{
        const {matched: s} = r.value
          , {length: u} = s
          , c = s[u - 1]
          , f = n.matched;
        if (!c || !f.length)
            return -1;
        const d = f.findIndex(Dv.bind(null, c));
        if (d > -1)
            return d;
        const v = A7(s[u - 2]);
        return u > 1 && A7(c) === v && f[f.length - 1].path !== v ? f.findIndex(Dv.bind(null, s[u - 2])) : d
    }
    )
      , i = j(()=>a.value > -1 && Mme(n.params, r.value.params))
      , o = j(()=>a.value > -1 && a.value === n.matched.length - 1 && _X(n.params, r.value.params));
    function l(s={}) {
        return Pme(s) ? e[Pn(t.replace) ? "replace" : "push"](Pn(t.to)).catch(dg) : Promise.resolve()
    }
    return {
        route: r,
        href: j(()=>r.value.href),
        isActive: i,
        isExactActive: o,
        navigate: l
    }
}
const _me = de({
    name: "RouterLink",
    compatConfig: {
        MODE: 3
    },
    props: {
        to: {
            type: [String, Object],
            required: !0
        },
        replace: Boolean,
        activeClass: String,
        exactActiveClass: String,
        custom: Boolean,
        ariaCurrentValue: {
            type: String,
            default: "page"
        }
    },
    useLink: M7,
    setup(t, {slots: e}) {
        const n = en(M7(t))
          , {options: r} = vt(FC)
          , a = j(()=>({
            [I7(t.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
            [I7(t.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
        }));
        return ()=>{
            const i = e.default && e.default(n);
            return t.custom ? i : Pu("a", {
                "aria-current": n.isExactActive ? t.ariaCurrentValue : null,
                href: n.href,
                onClick: n.navigate,
                class: a.value
            }, i)
        }
    }
})
  , Tme = _me;
function Pme(t) {
    if (!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey) && !t.defaultPrevented && !(t.button !== void 0 && t.button !== 0)) {
        if (t.currentTarget && t.currentTarget.getAttribute) {
            const e = t.currentTarget.getAttribute("target");
            if (/\b_blank\b/i.test(e))
                return
        }
        return t.preventDefault && t.preventDefault(),
        !0
    }
}
function Mme(t, e) {
    for (const n in e) {
        const r = e[n]
          , a = t[n];
        if (typeof r == "string") {
            if (r !== a)
                return !1
        } else if (!bo(a) || a.length !== r.length || r.some((i,o)=>i !== a[o]))
            return !1
    }
    return !0
}
function A7(t) {
    return t ? t.aliasOf ? t.aliasOf.path : t.path : ""
}
const I7 = (t,e,n)=>t != null ? t : e != null ? e : n
  , Ame = de({
    name: "RouterView",
    inheritAttrs: !1,
    props: {
        name: {
            type: String,
            default: "default"
        },
        route: Object
    },
    compatConfig: {
        MODE: 3
    },
    setup(t, {attrs: e, slots: n}) {
        const r = vt(nM)
          , a = j(()=>t.route || r.value)
          , i = vt(P7, 0)
          , o = j(()=>{
            let u = Pn(i);
            const {matched: c} = a.value;
            let f;
            for (; (f = c[u]) && !f.components; )
                u++;
            return u
        }
        )
          , l = j(()=>a.value.matched[o.value]);
        It(P7, j(()=>o.value + 1)),
        It(Cme, l),
        It(nM, a);
        const s = Q();
        return Te(()=>[s.value, l.value, t.name], ([u,c,f],[d,v,h])=>{
            c && (c.instances[f] = u,
            v && v !== c && u && u === d && (c.leaveGuards.size || (c.leaveGuards = v.leaveGuards),
            c.updateGuards.size || (c.updateGuards = v.updateGuards))),
            u && c && (!v || !Dv(c, v) || !d) && (c.enterCallbacks[f] || []).forEach(p=>p(u))
        }
        , {
            flush: "post"
        }),
        ()=>{
            const u = a.value
              , c = t.name
              , f = l.value
              , d = f && f.components[c];
            if (!d)
                return k7(n.default, {
                    Component: d,
                    route: u
                });
            const v = f.props[c]
              , h = v ? v === !0 ? u.params : typeof v == "function" ? v(u) : v : null
              , g = Pu(d, kn({}, h, e, {
                onVnodeUnmounted: m=>{
                    m.component.isUnmounted && (f.instances[c] = null)
                }
                ,
                ref: s
            }));
            return k7(n.default, {
                Component: g,
                route: u
            }) || g
        }
    }
});
function k7(t, e) {
    if (!t)
        return null;
    const n = t(e);
    return n.length === 1 ? n[0] : n
}
const Ime = Ame;
function Ipt(t) {
    const e = rme(t.routes, t)
      , n = t.parseQuery || xme
      , r = t.stringifyQuery || T7
      , a = t.history
      , i = Zh()
      , o = Zh()
      , l = Zh()
      , s = Mt(As);
    let u = As;
    Bd && t.scrollBehavior && "scrollRestoration"in history && (history.scrollRestoration = "manual");
    const c = L_.bind(null, Y=>"" + Y)
      , f = L_.bind(null, bme)
      , d = L_.bind(null, Tx);
    function v(Y, te) {
        let ne, ie;
        return PX(Y) ? (ne = e.getRecordMatcher(Y),
        ie = te) : ie = Y,
        e.addRoute(ie, ne)
    }
    function h(Y) {
        const te = e.getRecordMatcher(Y);
        te && e.removeRoute(te)
    }
    function p() {
        return e.getRoutes().map(Y=>Y.record)
    }
    function g(Y) {
        return !!e.getRecordMatcher(Y)
    }
    function m(Y, te) {
        if (te = kn({}, te || s.value),
        typeof Y == "string") {
            const H = R_(n, Y, te.path)
              , ee = e.resolve({
                path: H.path
            }, te)
              , re = a.createHref(H.fullPath);
            return kn(H, ee, {
                params: d(ee.params),
                hash: Tx(H.hash),
                redirectedFrom: void 0,
                href: re
            })
        }
        let ne;
        if ("path"in Y)
            ne = kn({}, Y, {
                path: R_(n, Y.path, te.path).path
            });
        else {
            const H = kn({}, Y.params);
            for (const ee in H)
                H[ee] == null && delete H[ee];
            ne = kn({}, Y, {
                params: f(H)
            }),
            te.params = f(te.params)
        }
        const ie = e.resolve(ne, te)
          , ae = Y.hash || "";
        ie.params = c(d(ie.params));
        const q = D0e(r, kn({}, Y, {
            hash: gme(ae),
            path: ie.path
        }))
          , F = a.createHref(q);
        return kn({
            fullPath: q,
            hash: ae,
            query: r === T7 ? Sme(Y.query) : Y.query || {}
        }, ie, {
            redirectedFrom: void 0,
            href: F
        })
    }
    function y(Y) {
        return typeof Y == "string" ? R_(n, Y, s.value.path) : kn({}, Y)
    }
    function b(Y, te) {
        if (u !== Y)
            return Ev(8, {
                from: te,
                to: Y
            })
    }
    function x(Y) {
        return w(Y)
    }
    function C(Y) {
        return x(kn(y(Y), {
            replace: !0
        }))
    }
    function S(Y) {
        const te = Y.matched[Y.matched.length - 1];
        if (te && te.redirect) {
            const {redirect: ne} = te;
            let ie = typeof ne == "function" ? ne(Y) : ne;
            return typeof ie == "string" && (ie = ie.includes("?") || ie.includes("#") ? ie = y(ie) : {
                path: ie
            },
            ie.params = {}),
            kn({
                query: Y.query,
                hash: Y.hash,
                params: "path"in ie ? {} : Y.params
            }, ie)
        }
    }
    function w(Y, te) {
        const ne = u = m(Y)
          , ie = s.value
          , ae = Y.state
          , q = Y.force
          , F = Y.replace === !0
          , H = S(ne);
        if (H)
            return w(kn(y(H), {
                state: typeof H == "object" ? kn({}, ae, H.state) : ae,
                force: q,
                replace: F
            }), te || ne);
        const ee = ne;
        ee.redirectedFrom = te;
        let re;
        return !q && E0e(r, ie, ne) && (re = Ev(16, {
            to: ee,
            from: ie
        }),
        B(ie, ie, !0, !1)),
        (re ? Promise.resolve(re) : M(ee, ie)).catch(ue=>Ol(ue) ? Ol(ue, 2) ? ue : W(ue) : R(ue, ee, ie)).then(ue=>{
            if (ue) {
                if (Ol(ue, 2))
                    return w(kn({
                        replace: F
                    }, y(ue.to), {
                        state: typeof ue.to == "object" ? kn({}, ae, ue.to.state) : ae,
                        force: q
                    }), te || ee)
            } else
                ue = O(ee, ie, !0, F, ae);
            return A(ee, ie, ue),
            ue
        }
        )
    }
    function T(Y, te) {
        const ne = b(Y, te);
        return ne ? Promise.reject(ne) : Promise.resolve()
    }
    function P(Y) {
        const te = V.values().next().value;
        return te && typeof te.runWithContext == "function" ? te.runWithContext(Y) : Y()
    }
    function M(Y, te) {
        let ne;
        const [ie,ae,q] = kme(Y, te);
        ne = N_(ie.reverse(), "beforeRouteLeave", Y, te);
        for (const H of ie)
            H.leaveGuards.forEach(ee=>{
                ne.push(Us(ee, Y, te))
            }
            );
        const F = T.bind(null, Y, te);
        return ne.push(F),
        X(ne).then(()=>{
            ne = [];
            for (const H of i.list())
                ne.push(Us(H, Y, te));
            return ne.push(F),
            X(ne)
        }
        ).then(()=>{
            ne = N_(ae, "beforeRouteUpdate", Y, te);
            for (const H of ae)
                H.updateGuards.forEach(ee=>{
                    ne.push(Us(ee, Y, te))
                }
                );
            return ne.push(F),
            X(ne)
        }
        ).then(()=>{
            ne = [];
            for (const H of q)
                if (H.beforeEnter)
                    if (bo(H.beforeEnter))
                        for (const ee of H.beforeEnter)
                            ne.push(Us(ee, Y, te));
                    else
                        ne.push(Us(H.beforeEnter, Y, te));
            return ne.push(F),
            X(ne)
        }
        ).then(()=>(Y.matched.forEach(H=>H.enterCallbacks = {}),
        ne = N_(q, "beforeRouteEnter", Y, te),
        ne.push(F),
        X(ne))).then(()=>{
            ne = [];
            for (const H of o.list())
                ne.push(Us(H, Y, te));
            return ne.push(F),
            X(ne)
        }
        ).catch(H=>Ol(H, 8) ? H : Promise.reject(H))
    }
    function A(Y, te, ne) {
        l.list().forEach(ie=>P(()=>ie(Y, te, ne)))
    }
    function O(Y, te, ne, ie, ae) {
        const q = b(Y, te);
        if (q)
            return q;
        const F = te === As
          , H = Bd ? history.state : {};
        ne && (ie || F ? a.replace(Y.fullPath, kn({
            scroll: F && H && H.scroll
        }, ae)) : a.push(Y.fullPath, ae)),
        s.value = Y,
        B(Y, te, ne, F),
        W()
    }
    let k;
    function D() {
        k || (k = a.listen((Y,te,ne)=>{
            if (!U.listening)
                return;
            const ie = m(Y)
              , ae = S(ie);
            if (ae) {
                w(kn(ae, {
                    replace: !0
                }), ie).catch(dg);
                return
            }
            u = ie;
            const q = s.value;
            Bd && z0e(m7(q.fullPath, ne.delta), $C()),
            M(ie, q).catch(F=>Ol(F, 12) ? F : Ol(F, 2) ? (w(F.to, ie).then(H=>{
                Ol(H, 20) && !ne.delta && ne.type === o0.pop && a.go(-1, !1)
            }
            ).catch(dg),
            Promise.reject()) : (ne.delta && a.go(-ne.delta, !1),
            R(F, ie, q))).then(F=>{
                F = F || O(ie, q, !1),
                F && (ne.delta && !Ol(F, 8) ? a.go(-ne.delta, !1) : ne.type === o0.pop && Ol(F, 20) && a.go(-1, !1)),
                A(ie, q, F)
            }
            ).catch(dg)
        }
        ))
    }
    let E = Zh(), L = Zh(), N;
    function R(Y, te, ne) {
        W(Y);
        const ie = L.list();
        return ie.length && ie.forEach(ae=>ae(Y, te, ne)),
        Promise.reject(Y)
    }
    function $() {
        return N && s.value !== As ? Promise.resolve() : new Promise((Y,te)=>{
            E.add([Y, te])
        }
        )
    }
    function W(Y) {
        return N || (N = !Y,
        D(),
        E.list().forEach(([te,ne])=>Y ? ne(Y) : te()),
        E.reset()),
        Y
    }
    function B(Y, te, ne, ie) {
        const {scrollBehavior: ae} = t;
        if (!Bd || !ae)
            return Promise.resolve();
        const q = !ne && H0e(m7(Y.fullPath, 0)) || (ie || !ne) && history.state && history.state.scroll || null;
        return yt().then(()=>ae(Y, te, q)).then(F=>F && V0e(F)).catch(F=>R(F, Y, te))
    }
    const G = Y=>a.go(Y);
    let K;
    const V = new Set
      , U = {
        currentRoute: s,
        listening: !0,
        addRoute: v,
        removeRoute: h,
        hasRoute: g,
        getRoutes: p,
        resolve: m,
        options: t,
        push: x,
        replace: C,
        go: G,
        back: ()=>G(-1),
        forward: ()=>G(1),
        beforeEach: i.add,
        beforeResolve: o.add,
        afterEach: l.add,
        onError: L.add,
        isReady: $,
        install(Y) {
            const te = this;
            Y.component("RouterLink", Tme),
            Y.component("RouterView", Ime),
            Y.config.globalProperties.$router = te,
            Object.defineProperty(Y.config.globalProperties, "$route", {
                enumerable: !0,
                get: ()=>Pn(s)
            }),
            Bd && !K && s.value === As && (K = !0,
            x(a.location).catch(ae=>{}
            ));
            const ne = {};
            for (const ae in As)
                Object.defineProperty(ne, ae, {
                    get: ()=>s.value[ae],
                    enumerable: !0
                });
            Y.provide(FC, te),
            Y.provide(TO, Xk(ne)),
            Y.provide(nM, s);
            const ie = Y.unmount;
            V.add(Y),
            Y.unmount = function() {
                V.delete(Y),
                V.size < 1 && (u = As,
                k && k(),
                k = null,
                s.value = As,
                K = !1,
                N = !1),
                ie()
            }
        }
    };
    function X(Y) {
        return Y.reduce((te,ne)=>te.then(()=>P(ne)), Promise.resolve())
    }
    return U
}
function kme(t, e) {
    const n = []
      , r = []
      , a = []
      , i = Math.max(e.matched.length, t.matched.length);
    for (let o = 0; o < i; o++) {
        const l = e.matched[o];
        l && (t.matched.find(u=>Dv(u, l)) ? r.push(l) : n.push(l));
        const s = t.matched[o];
        s && (e.matched.find(u=>Dv(u, s)) || a.push(s))
    }
    return [n, r, a]
}
function kpt() {
    return vt(FC)
}
function Opt() {
    return vt(TO)
}
function Wt() {
    return Wt = Object.assign ? Object.assign.bind() : function(t) {
        for (var e = 1; e < arguments.length; e++) {
            var n = arguments[e];
            for (var r in n)
                Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r])
        }
        return t
    }
    ,
    Wt.apply(this, arguments)
}
var Ome = function(e) {
    return typeof e == "function"
}
  , Dme = Array.isArray
  , Eme = function(e) {
    return typeof e == "string"
}
  , Lme = function(e) {
    return e !== null && We(e) === "object"
}
  , Rme = /^on[^a-z]/
  , Nme = function(e) {
    return Rme.test(e)
}
  , LX = function(e) {
    var n = Object.create(null);
    return function(r) {
        var a = n[r];
        return a || (n[r] = e(r))
    }
}
  , $me = /-(\w)/g
  , PO = LX(function(t) {
    return t.replace($me, function(e, n) {
        return n ? n.toUpperCase() : ""
    })
})
  , Fme = /\B([A-Z])/g
  , Bme = LX(function(t) {
    return t.replace(Fme, "-$1").toLowerCase()
})
  , Vme = Object.prototype.hasOwnProperty
  , O7 = function(e, n) {
    return Vme.call(e, n)
};
function zme(t, e, n, r) {
    var a = t[n];
    if (a != null) {
        var i = O7(a, "default");
        if (i && r === void 0) {
            var o = a.default;
            r = a.type !== Function && Ome(o) ? o() : o
        }
        a.type === Boolean && (!O7(e, n) && !i ? r = !1 : r === "" && (r = !0))
    }
    return r
}
function Hme(t) {
    return Object.keys(t).reduce(function(e, n) {
        return (n.substr(0, 5) === "data-" || n.substr(0, 5) === "aria-") && (e[n] = t[n]),
        e
    }, {})
}
function Hc(t) {
    return typeof t == "number" ? "".concat(t, "px") : t
}
function Vp(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , n = arguments.length > 2 ? arguments[2] : void 0;
    return typeof t == "function" ? t(e) : t != null ? t : n
}
function he() {
    for (var t = [], e = 0; e < arguments.length; e++) {
        var n = e < 0 || arguments.length <= e ? void 0 : arguments[e];
        if (!!n) {
            if (Eme(n))
                t.push(n);
            else if (Dme(n))
                for (var r = 0; r < n.length; r++) {
                    var a = he(n[r]);
                    a && t.push(a)
                }
            else if (Lme(n))
                for (var i in n)
                    n[i] && t.push(i)
        }
    }
    return t.join(" ")
}
var RX = function() {
    if (typeof Map != "undefined")
        return Map;
    function t(e, n) {
        var r = -1;
        return e.some(function(a, i) {
            return a[0] === n ? (r = i,
            !0) : !1
        }),
        r
    }
    return function() {
        function e() {
            this.__entries__ = []
        }
        return Object.defineProperty(e.prototype, "size", {
            get: function() {
                return this.__entries__.length
            },
            enumerable: !0,
            configurable: !0
        }),
        e.prototype.get = function(n) {
            var r = t(this.__entries__, n)
              , a = this.__entries__[r];
            return a && a[1]
        }
        ,
        e.prototype.set = function(n, r) {
            var a = t(this.__entries__, n);
            ~a ? this.__entries__[a][1] = r : this.__entries__.push([n, r])
        }
        ,
        e.prototype.delete = function(n) {
            var r = this.__entries__
              , a = t(r, n);
            ~a && r.splice(a, 1)
        }
        ,
        e.prototype.has = function(n) {
            return !!~t(this.__entries__, n)
        }
        ,
        e.prototype.clear = function() {
            this.__entries__.splice(0)
        }
        ,
        e.prototype.forEach = function(n, r) {
            r === void 0 && (r = null);
            for (var a = 0, i = this.__entries__; a < i.length; a++) {
                var o = i[a];
                n.call(r, o[1], o[0])
            }
        }
        ,
        e
    }()
}()
  , rM = typeof window != "undefined" && typeof document != "undefined" && window.document === document
  , Px = function() {
    return typeof global != "undefined" && global.Math === Math ? global : typeof self != "undefined" && self.Math === Math ? self : typeof window != "undefined" && window.Math === Math ? window : Function("return this")()
}()
  , jme = function() {
    return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Px) : function(t) {
        return setTimeout(function() {
            return t(Date.now())
        }, 1e3 / 60)
    }
}()
  , Wme = 2;
function Gme(t, e) {
    var n = !1
      , r = !1
      , a = 0;
    function i() {
        n && (n = !1,
        t()),
        r && l()
    }
    function o() {
        jme(i)
    }
    function l() {
        var s = Date.now();
        if (n) {
            if (s - a < Wme)
                return;
            r = !0
        } else
            n = !0,
            r = !1,
            setTimeout(o, e);
        a = s
    }
    return l
}
var Kme = 20
  , Ume = ["top", "right", "bottom", "left", "width", "height", "size", "weight"]
  , Yme = typeof MutationObserver != "undefined"
  , qme = function() {
    function t() {
        this.connected_ = !1,
        this.mutationEventsAdded_ = !1,
        this.mutationsObserver_ = null,
        this.observers_ = [],
        this.onTransitionEnd_ = this.onTransitionEnd_.bind(this),
        this.refresh = Gme(this.refresh.bind(this), Kme)
    }
    return t.prototype.addObserver = function(e) {
        ~this.observers_.indexOf(e) || this.observers_.push(e),
        this.connected_ || this.connect_()
    }
    ,
    t.prototype.removeObserver = function(e) {
        var n = this.observers_
          , r = n.indexOf(e);
        ~r && n.splice(r, 1),
        !n.length && this.connected_ && this.disconnect_()
    }
    ,
    t.prototype.refresh = function() {
        var e = this.updateObservers_();
        e && this.refresh()
    }
    ,
    t.prototype.updateObservers_ = function() {
        var e = this.observers_.filter(function(n) {
            return n.gatherActive(),
            n.hasActive()
        });
        return e.forEach(function(n) {
            return n.broadcastActive()
        }),
        e.length > 0
    }
    ,
    t.prototype.connect_ = function() {
        !rM || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_),
        window.addEventListener("resize", this.refresh),
        Yme ? (this.mutationsObserver_ = new MutationObserver(this.refresh),
        this.mutationsObserver_.observe(document, {
            attributes: !0,
            childList: !0,
            characterData: !0,
            subtree: !0
        })) : (document.addEventListener("DOMSubtreeModified", this.refresh),
        this.mutationEventsAdded_ = !0),
        this.connected_ = !0)
    }
    ,
    t.prototype.disconnect_ = function() {
        !rM || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_),
        window.removeEventListener("resize", this.refresh),
        this.mutationsObserver_ && this.mutationsObserver_.disconnect(),
        this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh),
        this.mutationsObserver_ = null,
        this.mutationEventsAdded_ = !1,
        this.connected_ = !1)
    }
    ,
    t.prototype.onTransitionEnd_ = function(e) {
        var n = e.propertyName
          , r = n === void 0 ? "" : n
          , a = Ume.some(function(i) {
            return !!~r.indexOf(i)
        });
        a && this.refresh()
    }
    ,
    t.getInstance = function() {
        return this.instance_ || (this.instance_ = new t),
        this.instance_
    }
    ,
    t.instance_ = null,
    t
}()
  , NX = function(t, e) {
    for (var n = 0, r = Object.keys(e); n < r.length; n++) {
        var a = r[n];
        Object.defineProperty(t, a, {
            value: e[a],
            enumerable: !1,
            writable: !1,
            configurable: !0
        })
    }
    return t
}
  , Lv = function(t) {
    var e = t && t.ownerDocument && t.ownerDocument.defaultView;
    return e || Px
}
  , $X = BC(0, 0, 0, 0);
function Mx(t) {
    return parseFloat(t) || 0
}
function D7(t) {
    for (var e = [], n = 1; n < arguments.length; n++)
        e[n - 1] = arguments[n];
    return e.reduce(function(r, a) {
        var i = t["border-" + a + "-width"];
        return r + Mx(i)
    }, 0)
}
function Xme(t) {
    for (var e = ["top", "right", "bottom", "left"], n = {}, r = 0, a = e; r < a.length; r++) {
        var i = a[r]
          , o = t["padding-" + i];
        n[i] = Mx(o)
    }
    return n
}
function Zme(t) {
    var e = t.getBBox();
    return BC(0, 0, e.width, e.height)
}
function Qme(t) {
    var e = t.clientWidth
      , n = t.clientHeight;
    if (!e && !n)
        return $X;
    var r = Lv(t).getComputedStyle(t)
      , a = Xme(r)
      , i = a.left + a.right
      , o = a.top + a.bottom
      , l = Mx(r.width)
      , s = Mx(r.height);
    if (r.boxSizing === "border-box" && (Math.round(l + i) !== e && (l -= D7(r, "left", "right") + i),
    Math.round(s + o) !== n && (s -= D7(r, "top", "bottom") + o)),
    !eye(t)) {
        var u = Math.round(l + i) - e
          , c = Math.round(s + o) - n;
        Math.abs(u) !== 1 && (l -= u),
        Math.abs(c) !== 1 && (s -= c)
    }
    return BC(a.left, a.top, l, s)
}
var Jme = function() {
    return typeof SVGGraphicsElement != "undefined" ? function(t) {
        return t instanceof Lv(t).SVGGraphicsElement
    }
    : function(t) {
        return t instanceof Lv(t).SVGElement && typeof t.getBBox == "function"
    }
}();
function eye(t) {
    return t === Lv(t).document.documentElement
}
function tye(t) {
    return rM ? Jme(t) ? Zme(t) : Qme(t) : $X
}
function nye(t) {
    var e = t.x
      , n = t.y
      , r = t.width
      , a = t.height
      , i = typeof DOMRectReadOnly != "undefined" ? DOMRectReadOnly : Object
      , o = Object.create(i.prototype);
    return NX(o, {
        x: e,
        y: n,
        width: r,
        height: a,
        top: n,
        right: e + r,
        bottom: a + n,
        left: e
    }),
    o
}
function BC(t, e, n, r) {
    return {
        x: t,
        y: e,
        width: n,
        height: r
    }
}
var rye = function() {
    function t(e) {
        this.broadcastWidth = 0,
        this.broadcastHeight = 0,
        this.contentRect_ = BC(0, 0, 0, 0),
        this.target = e
    }
    return t.prototype.isActive = function() {
        var e = tye(this.target);
        return this.contentRect_ = e,
        e.width !== this.broadcastWidth || e.height !== this.broadcastHeight
    }
    ,
    t.prototype.broadcastRect = function() {
        var e = this.contentRect_;
        return this.broadcastWidth = e.width,
        this.broadcastHeight = e.height,
        e
    }
    ,
    t
}()
  , aye = function() {
    function t(e, n) {
        var r = nye(n);
        NX(this, {
            target: e,
            contentRect: r
        })
    }
    return t
}()
  , iye = function() {
    function t(e, n, r) {
        if (this.activeObservations_ = [],
        this.observations_ = new RX,
        typeof e != "function")
            throw new TypeError("The callback provided as parameter 1 is not a function.");
        this.callback_ = e,
        this.controller_ = n,
        this.callbackCtx_ = r
    }
    return t.prototype.observe = function(e) {
        if (!arguments.length)
            throw new TypeError("1 argument required, but only 0 present.");
        if (!(typeof Element == "undefined" || !(Element instanceof Object))) {
            if (!(e instanceof Lv(e).Element))
                throw new TypeError('parameter 1 is not of type "Element".');
            var n = this.observations_;
            n.has(e) || (n.set(e, new rye(e)),
            this.controller_.addObserver(this),
            this.controller_.refresh())
        }
    }
    ,
    t.prototype.unobserve = function(e) {
        if (!arguments.length)
            throw new TypeError("1 argument required, but only 0 present.");
        if (!(typeof Element == "undefined" || !(Element instanceof Object))) {
            if (!(e instanceof Lv(e).Element))
                throw new TypeError('parameter 1 is not of type "Element".');
            var n = this.observations_;
            !n.has(e) || (n.delete(e),
            n.size || this.controller_.removeObserver(this))
        }
    }
    ,
    t.prototype.disconnect = function() {
        this.clearActive(),
        this.observations_.clear(),
        this.controller_.removeObserver(this)
    }
    ,
    t.prototype.gatherActive = function() {
        var e = this;
        this.clearActive(),
        this.observations_.forEach(function(n) {
            n.isActive() && e.activeObservations_.push(n)
        })
    }
    ,
    t.prototype.broadcastActive = function() {
        if (!!this.hasActive()) {
            var e = this.callbackCtx_
              , n = this.activeObservations_.map(function(r) {
                return new aye(r.target,r.broadcastRect())
            });
            this.callback_.call(e, n, e),
            this.clearActive()
        }
    }
    ,
    t.prototype.clearActive = function() {
        this.activeObservations_.splice(0)
    }
    ,
    t.prototype.hasActive = function() {
        return this.activeObservations_.length > 0
    }
    ,
    t
}()
  , FX = typeof WeakMap != "undefined" ? new WeakMap : new RX
  , BX = function() {
    function t(e) {
        if (!(this instanceof t))
            throw new TypeError("Cannot call a class as a function.");
        if (!arguments.length)
            throw new TypeError("1 argument required, but only 0 present.");
        var n = qme.getInstance()
          , r = new iye(e,n,this);
        FX.set(this, r)
    }
    return t
}();
["observe", "unobserve", "disconnect"].forEach(function(t) {
    BX.prototype[t] = function() {
        var e;
        return (e = FX.get(this))[t].apply(e, arguments)
    }
});
var MO = function() {
    return typeof Px.ResizeObserver != "undefined" ? Px.ResizeObserver : BX
}();
function VX(t) {
    if (Array.isArray(t))
        return t
}
function oye(t, e) {
    var n = t == null ? null : typeof Symbol != "undefined" && t[Symbol.iterator] || t["@@iterator"];
    if (n != null) {
        var r, a, i, o, l = [], s = !0, u = !1;
        try {
            if (i = (n = n.call(t)).next,
            e === 0) {
                if (Object(n) !== n)
                    return;
                s = !1
            } else
                for (; !(s = (r = i.call(n)).done) && (l.push(r.value),
                l.length !== e); s = !0)
                    ;
        } catch (c) {
            u = !0,
            a = c
        } finally {
            try {
                if (!s && n.return != null && (o = n.return(),
                Object(o) !== o))
                    return
            } finally {
                if (u)
                    throw a
            }
        }
        return l
    }
}
function aM(t, e) {
    (e == null || e > t.length) && (e = t.length);
    for (var n = 0, r = new Array(e); n < e; n++)
        r[n] = t[n];
    return r
}
function VC(t, e) {
    if (!!t) {
        if (typeof t == "string")
            return aM(t, e);
        var n = Object.prototype.toString.call(t).slice(8, -1);
        if (n === "Object" && t.constructor && (n = t.constructor.name),
        n === "Map" || n === "Set")
            return Array.from(t);
        if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
            return aM(t, e)
    }
}
function zX() {
    throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
}
function De(t, e) {
    return VX(t) || oye(t, e) || VC(t, e) || zX()
}
function lye(t) {
    if (Array.isArray(t))
        return aM(t)
}
function HX(t) {
    if (typeof Symbol != "undefined" && t[Symbol.iterator] != null || t["@@iterator"] != null)
        return Array.from(t)
}
function sye() {
    throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
}
function $e(t) {
    return lye(t) || HX(t) || VC(t) || sye()
}
var uye = typeof global == "object" && global && global.Object === Object && global;
const jX = uye;
var cye = typeof self == "object" && self && self.Object === Object && self
  , fye = jX || cye || Function("return this")();
const ko = fye;
var dye = ko.Symbol;
const Bi = dye;
var WX = Object.prototype
  , vye = WX.hasOwnProperty
  , hye = WX.toString
  , Qh = Bi ? Bi.toStringTag : void 0;
function pye(t) {
    var e = vye.call(t, Qh)
      , n = t[Qh];
    try {
        t[Qh] = void 0;
        var r = !0
    } catch (i) {}
    var a = hye.call(t);
    return r && (e ? t[Qh] = n : delete t[Qh]),
    a
}
var gye = Object.prototype
  , mye = gye.toString;
function yye(t) {
    return mye.call(t)
}
var bye = "[object Null]"
  , xye = "[object Undefined]"
  , E7 = Bi ? Bi.toStringTag : void 0;
function Vu(t) {
    return t == null ? t === void 0 ? xye : bye : E7 && E7 in Object(t) ? pye(t) : yye(t)
}
function GX(t, e) {
    return function(n) {
        return t(e(n))
    }
}
var Sye = GX(Object.getPrototypeOf, Object);
const AO = Sye;
function xo(t) {
    return t != null && typeof t == "object"
}
var Cye = "[object Object]"
  , wye = Function.prototype
  , _ye = Object.prototype
  , KX = wye.toString
  , Tye = _ye.hasOwnProperty
  , Pye = KX.call(Object);
function IO(t) {
    if (!xo(t) || Vu(t) != Cye)
        return !1;
    var e = AO(t);
    if (e === null)
        return !0;
    var n = Tye.call(e, "constructor") && e.constructor;
    return typeof n == "function" && n instanceof n && KX.call(n) == Pye
}
var Mye = function(e) {
    return e != null && e !== ""
};
const iM = Mye;
var Aye = function(e, n) {
    var r = I({}, e);
    return Object.keys(n).forEach(function(a) {
        var i = r[a];
        if (i)
            i.type || i.default ? i.default = n[a] : i.def ? i.def(n[a]) : r[a] = {
                type: i,
                default: n[a]
            };
        else
            throw new Error("not have ".concat(a, " prop"))
    }),
    r
};
const $t = Aye;
var kO = function(e) {
    for (var n = Object.keys(e), r = {}, a = {}, i = {}, o = 0, l = n.length; o < l; o++) {
        var s = n[o];
        Nme(s) ? (r[s[2].toLowerCase() + s.slice(3)] = e[s],
        a[s] = e[s]) : i[s] = e[s]
    }
    return {
        onEvents: a,
        events: r,
        extraAttrs: i
    }
}
  , OO = function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""
      , n = arguments.length > 1 ? arguments[1] : void 0
      , r = {}
      , a = /;(?![^(]*\))/g
      , i = /:(.+)/;
    return We(e) === "object" ? e : (e.split(a).forEach(function(o) {
        if (o) {
            var l = o.split(i);
            if (l.length > 1) {
                var s = n ? PO(l[0].trim()) : l[0].trim();
                r[s] = l[1].trim()
            }
        }
    }),
    r)
}
  , Kl = function(e, n) {
    return e[n] !== void 0
}
  , bn = function t() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []
      , n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0
      , r = Array.isArray(e) ? e : [e]
      , a = [];
    return r.forEach(function(i) {
        Array.isArray(i) ? a.push.apply(a, $e(t(i, n))) : i && i.type === xt ? a.push.apply(a, $e(t(i.children, n))) : i && Hr(i) ? n && !pm(i) ? a.push(i) : n || a.push(i) : iM(i) && a.push(i)
    }),
    a
}
  , hm = function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default"
      , r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
    if (Hr(e))
        return e.type === xt ? n === "default" ? bn(e.children) : [] : e.children && e.children[n] ? bn(e.children[n](r)) : [];
    var a = e.$slots[n] && e.$slots[n](r);
    return bn(a)
}
  , eu = function(e) {
    for (var n, r = (e == null || (n = e.vnode) === null || n === void 0 ? void 0 : n.el) || e && (e.$el || e); r && !r.tagName; )
        r = r.nextSibling;
    return r
}
  , UX = function(e) {
    var n = {};
    if (e.$ && e.$.vnode) {
        var r = e.$.vnode.props || {};
        Object.keys(e.$props).forEach(function(l) {
            var s = e.$props[l]
              , u = Bme(l);
            (s !== void 0 || u in r) && (n[l] = s)
        })
    } else if (Hr(e) && We(e.type) === "object") {
        var a = e.props || {}
          , i = {};
        Object.keys(a).forEach(function(l) {
            i[PO(l)] = a[l]
        });
        var o = e.type.props || {};
        Object.keys(o).forEach(function(l) {
            var s = zme(o, i, l, i[l]);
            (s !== void 0 || l in i) && (n[l] = s)
        })
    }
    return n
}
  , DO = function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default"
      , r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e
      , a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0
      , i = void 0;
    if (e.$) {
        var o = e[n];
        if (o !== void 0)
            return typeof o == "function" && a ? o(r) : o;
        i = e.$slots[n],
        i = a && i ? i(r) : i
    } else if (Hr(e)) {
        var l = e.props && e.props[n];
        if (l !== void 0 && e.props !== null)
            return typeof l == "function" && a ? l(r) : l;
        e.type === xt ? i = e.children : e.children && e.children[n] && (i = e.children[n],
        i = a && i ? i(r) : i)
    }
    return Array.isArray(i) && (i = bn(i),
    i = i.length === 1 ? i[0] : i,
    i = i.length === 0 ? void 0 : i),
    i
};
function L7() {
    var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}
      , e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0
      , n = {};
    return t.$ ? n = I(I({}, n), t.$attrs) : n = I(I({}, n), t.props),
    kO(n)[e ? "onEvents" : "events"]
}
function Iye(t) {
    var e = (Hr(t) ? t.props : t.$attrs) || {}
      , n = e.class || {}
      , r = {};
    return typeof n == "string" ? n.split(" ").forEach(function(a) {
        r[a.trim()] = !0
    }) : Array.isArray(n) ? he(n).split(" ").forEach(function(a) {
        r[a.trim()] = !0
    }) : r = I(I({}, r), n),
    r
}
function YX(t, e) {
    var n = (Hr(t) ? t.props : t.$attrs) || {}
      , r = n.style || {};
    if (typeof r == "string")
        r = OO(r, e);
    else if (e && r) {
        var a = {};
        return Object.keys(r).forEach(function(i) {
            return a[PO(i)] = r[i]
        }),
        a
    }
    return r
}
function kye(t) {
    return t == null || t === "" || Array.isArray(t) && t.length === 0
}
function pm(t) {
    return t && (t.type === ai || t.type === xt && t.children.length === 0 || t.type === gs && t.children.trim() === "")
}
function Oye(t) {
    return t && t.type === gs
}
function ar() {
    var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []
      , e = [];
    return t.forEach(function(n) {
        Array.isArray(n) ? e.push.apply(e, $e(n)) : (n == null ? void 0 : n.type) === xt ? e.push.apply(e, $e(ar(n.children))) : e.push(n)
    }),
    e.filter(function(n) {
        return !pm(n)
    })
}
function Jh(t) {
    if (t) {
        var e = ar(t);
        return e.length ? e : void 0
    } else
        return t
}
function cr(t) {
    return Array.isArray(t) && t.length === 1 && (t = t[0]),
    t && t.__v_isVNode && We(t.type) !== "symbol"
}
function Dn(t, e) {
    var n, r, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default";
    return (n = e[a]) !== null && n !== void 0 ? n : (r = t[a]) === null || r === void 0 ? void 0 : r.call(t)
}
const Vi = de({
    compatConfig: {
        MODE: 3
    },
    name: "ResizeObserver",
    props: {
        disabled: Boolean,
        onResize: Function
    },
    emits: ["resize"],
    setup: function(e, n) {
        var r = n.slots
          , a = en({
            width: 0,
            height: 0,
            offsetHeight: 0,
            offsetWidth: 0
        })
          , i = null
          , o = null
          , l = function() {
            o && (o.disconnect(),
            o = null)
        }
          , s = function(d) {
            var v = e.onResize
              , h = d[0].target
              , p = h.getBoundingClientRect()
              , g = p.width
              , m = p.height
              , y = h.offsetWidth
              , b = h.offsetHeight
              , x = Math.floor(g)
              , C = Math.floor(m);
            if (a.width !== x || a.height !== C || a.offsetWidth !== y || a.offsetHeight !== b) {
                var S = {
                    width: x,
                    height: C,
                    offsetWidth: y,
                    offsetHeight: b
                };
                Wt(a, S),
                v && Promise.resolve().then(function() {
                    v(I(I({}, S), {}, {
                        offsetWidth: y,
                        offsetHeight: b
                    }), h)
                })
            }
        }
          , u = qn()
          , c = function() {
            var d = e.disabled;
            if (d) {
                l();
                return
            }
            var v = eu(u)
              , h = v !== i;
            h && (l(),
            i = v),
            !o && v && (o = new MO(s),
            o.observe(v))
        };
        return ct(function() {
            c()
        }),
        ua(function() {
            c()
        }),
        dr(function() {
            l()
        }),
        Te(function() {
            return e.disabled
        }, function() {
            c()
        }, {
            flush: "post"
        }),
        function() {
            var f;
            return (f = r.default) === null || f === void 0 ? void 0 : f.call(r)[0]
        }
    }
});
var qX = function(e) {
    return setTimeout(e, 16)
}
  , XX = function(e) {
    return clearTimeout(e)
};
typeof window != "undefined" && "requestAnimationFrame"in window && (qX = function(e) {
    return window.requestAnimationFrame(e)
}
,
XX = function(e) {
    return window.cancelAnimationFrame(e)
}
);
var R7 = 0
  , EO = new Map;
function ZX(t) {
    EO.delete(t)
}
function gt(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
    R7 += 1;
    var n = R7;
    function r(a) {
        if (a === 0)
            ZX(n),
            t();
        else {
            var i = qX(function() {
                r(a - 1)
            });
            EO.set(n, i)
        }
    }
    return r(e),
    n
}
gt.cancel = function(t) {
    var e = EO.get(t);
    return ZX(e),
    XX(e)
}
;
function oM(t) {
    var e, n = function(i) {
        return function() {
            e = null,
            t.apply(void 0, $e(i))
        }
    }, r = function() {
        if (e == null) {
            for (var i = arguments.length, o = new Array(i), l = 0; l < i; l++)
                o[l] = arguments[l];
            e = gt(n(o))
        }
    };
    return r.cancel = function() {
        return gt.cancel(e)
    }
    ,
    r
}
var Kn = function() {
    for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
        n[r] = arguments[r];
    return n
}
  , Dye = function() {
    for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
        n[r] = arguments[r];
    return n
}
  , Jn = function(e) {
    var n = e;
    return n.install = function(r) {
        r.component(n.displayName || n.name, e)
    }
    ,
    e
}
  , QX = !1;
try {
    var N7 = Object.defineProperty({}, "passive", {
        get: function() {
            QX = !0
        }
    });
    window.addEventListener("testPassive", null, N7),
    window.removeEventListener("testPassive", null, N7)
} catch (t) {}
const gr = QX;
function Nn(t, e, n, r) {
    if (t && t.addEventListener) {
        var a = r;
        a === void 0 && gr && (e === "touchstart" || e === "touchmove" || e === "wheel") && (a = {
            passive: !1
        }),
        t.addEventListener(e, n, a)
    }
    return {
        remove: function() {
            t && t.removeEventListener && t.removeEventListener(e, n)
        }
    }
}
function wy(t) {
    return t !== window ? t.getBoundingClientRect() : {
        top: 0,
        bottom: window.innerHeight
    }
}
function $7(t, e, n) {
    if (n !== void 0 && e.top > t.top - n)
        return "".concat(n + e.top, "px")
}
function F7(t, e, n) {
    if (n !== void 0 && e.bottom < t.bottom + n) {
        var r = window.innerHeight - e.bottom;
        return "".concat(n + r, "px")
    }
}
var JX = ["resize", "scroll", "touchstart", "touchmove", "touchend", "pageshow", "load"]
  , hg = [];
function B7(t, e) {
    if (!!t) {
        var n = hg.find(function(r) {
            return r.target === t
        });
        n ? n.affixList.push(e) : (n = {
            target: t,
            affixList: [e],
            eventHandlers: {}
        },
        hg.push(n),
        JX.forEach(function(r) {
            n.eventHandlers[r] = Nn(t, r, function() {
                n.affixList.forEach(function(a) {
                    var i = a.exposed.lazyUpdatePosition;
                    i()
                }, (r === "touchstart" || r === "touchmove") && gr ? {
                    passive: !0
                } : !1)
            })
        }))
    }
}
function V7(t) {
    var e = hg.find(function(n) {
        var r = n.affixList.some(function(a) {
            return a === t
        });
        return r && (n.affixList = n.affixList.filter(function(a) {
            return a !== t
        })),
        r
    });
    e && e.affixList.length === 0 && (hg = hg.filter(function(n) {
        return n !== e
    }),
    JX.forEach(function(n) {
        var r = e.eventHandlers[n];
        r && r.remove && r.remove()
    }))
}
function Eye(t, e) {
    if (t == null)
        return {};
    var n = {}, r = Object.keys(t), a, i;
    for (i = 0; i < r.length; i++)
        a = r[i],
        !(e.indexOf(a) >= 0) && (n[a] = t[a]);
    return n
}
function tt(t, e) {
    if (t == null)
        return {};
    var n = Eye(t, e), r, a;
    if (Object.getOwnPropertySymbols) {
        var i = Object.getOwnPropertySymbols(t);
        for (a = 0; a < i.length; a++)
            r = i[a],
            !(e.indexOf(r) >= 0) && (!Object.prototype.propertyIsEnumerable.call(t, r) || (n[r] = t[r]))
    }
    return n
}
const ch = de({
    compatConfig: {
        MODE: 3
    },
    name: "LocaleReceiver",
    props: {
        componentName: String,
        defaultLocale: {
            type: [Object, Function]
        },
        children: {
            type: Function
        }
    },
    setup: function(e, n) {
        var r = n.slots
          , a = vt("localeData", {})
          , i = j(function() {
            var l = e.componentName
              , s = l === void 0 ? "global" : l
              , u = e.defaultLocale
              , c = u || yo[s || "global"]
              , f = a.antLocale
              , d = s && f ? f[s] : {};
            return I(I({}, typeof c == "function" ? c() : c), d || {})
        })
          , o = j(function() {
            var l = a.antLocale
              , s = l && l.locale;
            return l && l.exist && !s ? yo.locale : s
        });
        return function() {
            var l = e.children || r.default
              , s = a.antLocale;
            return l == null ? void 0 : l(i.value, o.value, s)
        }
    }
});
function xl(t, e, n) {
    var r = vt("localeData", {})
      , a = j(function() {
        var i = r.antLocale
          , o = Pn(e) || yo[t || "global"]
          , l = t && i ? i[t] : {};
        return I(I(I({}, typeof o == "function" ? o() : o), l || {}), Pn(n) || {})
    });
    return [a]
}
var eZ = function() {
    var e = je("empty", {})
      , n = e.getPrefixCls
      , r = n("empty-img-default");
    return _("svg", {
        class: r,
        width: "184",
        height: "152",
        viewBox: "0 0 184 152"
    }, [_("g", {
        fill: "none",
        "fill-rule": "evenodd"
    }, [_("g", {
        transform: "translate(24 31.67)"
    }, [_("ellipse", {
        class: "".concat(r, "-ellipse"),
        cx: "67.797",
        cy: "106.89",
        rx: "67.797",
        ry: "12.668"
    }, null), _("path", {
        class: "".concat(r, "-path-1"),
        d: "M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"
    }, null), _("path", {
        class: "".concat(r, "-path-2"),
        d: "M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",
        transform: "translate(13.56)"
    }, null), _("path", {
        class: "".concat(r, "-path-3"),
        d: "M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"
    }, null), _("path", {
        class: "".concat(r, "-path-4"),
        d: "M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"
    }, null)]), _("path", {
        class: "".concat(r, "-path-5"),
        d: "M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"
    }, null), _("g", {
        class: "".concat(r, "-g"),
        transform: "translate(149.65 15.383)"
    }, [_("ellipse", {
        cx: "20.654",
        cy: "3.167",
        rx: "2.849",
        ry: "2.815"
    }, null), _("path", {
        d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"
    }, null)])])])
};
eZ.PRESENTED_IMAGE_DEFAULT = !0;
const Lye = eZ;
var tZ = function() {
    var e = je("empty", {})
      , n = e.getPrefixCls
      , r = n("empty-img-simple");
    return _("svg", {
        class: r,
        width: "64",
        height: "41",
        viewBox: "0 0 64 41"
    }, [_("g", {
        transform: "translate(0 1)",
        fill: "none",
        "fill-rule": "evenodd"
    }, [_("ellipse", {
        class: "".concat(r, "-ellipse"),
        fill: "#F5F5F5",
        cx: "32",
        cy: "33",
        rx: "32",
        ry: "7"
    }, null), _("g", {
        class: "".concat(r, "-g"),
        "fill-rule": "nonzero",
        stroke: "#D9D9D9"
    }, [_("path", {
        d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"
    }, null), _("path", {
        d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
        fill: "#FAFAFA",
        class: "".concat(r, "-path")
    }, null)])])])
};
tZ.PRESENTED_IMAGE_SIMPLE = !0;
const Rye = tZ;
function z7(t, e) {
    for (var n = 0; n < e.length; n++) {
        var r = e[n];
        r.enumerable = r.enumerable || !1,
        r.configurable = !0,
        "value"in r && (r.writable = !0),
        Object.defineProperty(t, r.key, r)
    }
}
function nZ(t, e, n) {
    return e && z7(t.prototype, e),
    n && z7(t, n),
    t
}
function ub() {
    return (ub = Object.assign || function(t) {
        for (var e = 1; e < arguments.length; e++) {
            var n = arguments[e];
            for (var r in n)
                Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r])
        }
        return t
    }
    ).apply(this, arguments)
}
function rZ(t, e) {
    t.prototype = Object.create(e.prototype),
    t.prototype.constructor = t,
    t.__proto__ = e
}
function aZ(t, e) {
    if (t == null)
        return {};
    var n, r, a = {}, i = Object.keys(t);
    for (r = 0; r < i.length; r++)
        e.indexOf(n = i[r]) >= 0 || (a[n] = t[n]);
    return a
}
function H7(t) {
    return ((e = t) != null && typeof e == "object" && Array.isArray(e) === !1) == 1 && Object.prototype.toString.call(t) === "[object Object]";
    var e
}
var iZ = Object.prototype
  , oZ = iZ.toString
  , Nye = iZ.hasOwnProperty
  , lZ = /^\s*function (\w+)/;
function j7(t) {
    var e, n = (e = t == null ? void 0 : t.type) !== null && e !== void 0 ? e : t;
    if (n) {
        var r = n.toString().match(lZ);
        return r ? r[1] : ""
    }
    return ""
}
var Af = function(t) {
    var e, n;
    return H7(t) !== !1 && typeof (e = t.constructor) == "function" && H7(n = e.prototype) !== !1 && n.hasOwnProperty("isPrototypeOf") !== !1
}
  , $ye = function(t) {
    return t
}
  , Ca = $ye
  , l0 = function(t, e) {
    return Nye.call(t, e)
}
  , Fye = Number.isInteger || function(t) {
    return typeof t == "number" && isFinite(t) && Math.floor(t) === t
}
  , Rv = Array.isArray || function(t) {
    return oZ.call(t) === "[object Array]"
}
  , Nv = function(t) {
    return oZ.call(t) === "[object Function]"
}
  , Ax = function(t) {
    return Af(t) && l0(t, "_vueTypes_name")
}
  , sZ = function(t) {
    return Af(t) && (l0(t, "type") || ["_vueTypes_name", "validator", "default", "required"].some(function(e) {
        return l0(t, e)
    }))
};
function LO(t, e) {
    return Object.defineProperty(t.bind(e), "__original", {
        value: t
    })
}
function Gf(t, e, n) {
    var r;
    n === void 0 && (n = !1);
    var a = !0
      , i = "";
    r = Af(t) ? t : {
        type: t
    };
    var o = Ax(r) ? r._vueTypes_name + " - " : "";
    if (sZ(r) && r.type !== null) {
        if (r.type === void 0 || r.type === !0 || !r.required && e === void 0)
            return a;
        Rv(r.type) ? (a = r.type.some(function(f) {
            return Gf(f, e, !0) === !0
        }),
        i = r.type.map(function(f) {
            return j7(f)
        }).join(" or ")) : a = (i = j7(r)) === "Array" ? Rv(e) : i === "Object" ? Af(e) : i === "String" || i === "Number" || i === "Boolean" || i === "Function" ? function(f) {
            if (f == null)
                return "";
            var d = f.constructor.toString().match(lZ);
            return d ? d[1] : ""
        }(e) === i : e instanceof r.type
    }
    if (!a) {
        var l = o + 'value "' + e + '" should be of type "' + i + '"';
        return n === !1 ? (Ca(l),
        !1) : l
    }
    if (l0(r, "validator") && Nv(r.validator)) {
        var s = Ca
          , u = [];
        if (Ca = function(f) {
            u.push(f)
        }
        ,
        a = r.validator(e),
        Ca = s,
        !a) {
            var c = (u.length > 1 ? "* " : "") + u.join(`
* `);
            return u.length = 0,
            n === !1 ? (Ca(c),
            a) : c
        }
    }
    return a
}
function li(t, e) {
    var n = Object.defineProperties(e, {
        _vueTypes_name: {
            value: t,
            writable: !0
        },
        isRequired: {
            get: function() {
                return this.required = !0,
                this
            }
        },
        def: {
            value: function(a) {
                return a !== void 0 || this.default ? Nv(a) || Gf(this, a, !0) === !0 ? (this.default = Rv(a) ? function() {
                    return [].concat(a)
                }
                : Af(a) ? function() {
                    return Object.assign({}, a)
                }
                : a,
                this) : (Ca(this._vueTypes_name + ' - invalid default value: "' + a + '"'),
                this) : this
            }
        }
    })
      , r = n.validator;
    return Nv(r) && (n.validator = LO(r, n)),
    n
}
function vl(t, e) {
    var n = li(t, e);
    return Object.defineProperty(n, "validate", {
        value: function(r) {
            return Nv(this.validator) && Ca(this._vueTypes_name + ` - calling .validate() will overwrite the current custom validator function. Validator info:
` + JSON.stringify(this)),
            this.validator = LO(r, this),
            this
        }
    })
}
function W7(t, e, n) {
    var r, a, i = (r = e,
    a = {},
    Object.getOwnPropertyNames(r).forEach(function(f) {
        a[f] = Object.getOwnPropertyDescriptor(r, f)
    }),
    Object.defineProperties({}, a));
    if (i._vueTypes_name = t,
    !Af(n))
        return i;
    var o, l, s = n.validator, u = aZ(n, ["validator"]);
    if (Nv(s)) {
        var c = i.validator;
        c && (c = (l = (o = c).__original) !== null && l !== void 0 ? l : o),
        i.validator = LO(c ? function(f) {
            return c.call(this, f) && s.call(this, f)
        }
        : s, i)
    }
    return Object.assign(i, u)
}
function zC(t) {
    return t.replace(/^(?!\s*$)/gm, "  ")
}
var Bye = function() {
    return vl("any", {})
}
  , Vye = function() {
    return vl("function", {
        type: Function
    })
}
  , zye = function() {
    return vl("boolean", {
        type: Boolean
    })
}
  , Hye = function() {
    return vl("string", {
        type: String
    })
}
  , jye = function() {
    return vl("number", {
        type: Number
    })
}
  , Wye = function() {
    return vl("array", {
        type: Array
    })
}
  , Gye = function() {
    return vl("object", {
        type: Object
    })
}
  , Kye = function() {
    return li("integer", {
        type: Number,
        validator: function(t) {
            return Fye(t)
        }
    })
}
  , Uye = function() {
    return li("symbol", {
        validator: function(t) {
            return typeof t == "symbol"
        }
    })
};
function Yye(t, e) {
    if (e === void 0 && (e = "custom validation failed"),
    typeof t != "function")
        throw new TypeError("[VueTypes error]: You must provide a function as argument");
    return li(t.name || "<<anonymous function>>", {
        validator: function(n) {
            var r = t(n);
            return r || Ca(this._vueTypes_name + " - " + e),
            r
        }
    })
}
function qye(t) {
    if (!Rv(t))
        throw new TypeError("[VueTypes error]: You must provide an array as argument.");
    var e = 'oneOf - value should be one of "' + t.join('", "') + '".'
      , n = t.reduce(function(r, a) {
        if (a != null) {
            var i = a.constructor;
            r.indexOf(i) === -1 && r.push(i)
        }
        return r
    }, []);
    return li("oneOf", {
        type: n.length > 0 ? n : void 0,
        validator: function(r) {
            var a = t.indexOf(r) !== -1;
            return a || Ca(e),
            a
        }
    })
}
function Xye(t) {
    if (!Rv(t))
        throw new TypeError("[VueTypes error]: You must provide an array as argument");
    for (var e = !1, n = [], r = 0; r < t.length; r += 1) {
        var a = t[r];
        if (sZ(a)) {
            if (Ax(a) && a._vueTypes_name === "oneOf") {
                n = n.concat(a.type);
                continue
            }
            if (Nv(a.validator) && (e = !0),
            a.type !== !0 && a.type) {
                n = n.concat(a.type);
                continue
            }
        }
        n.push(a)
    }
    return n = n.filter(function(i, o) {
        return n.indexOf(i) === o
    }),
    li("oneOfType", e ? {
        type: n,
        validator: function(i) {
            var o = []
              , l = t.some(function(s) {
                var u = Gf(Ax(s) && s._vueTypes_name === "oneOf" ? s.type || null : s, i, !0);
                return typeof u == "string" && o.push(u),
                u === !0
            });
            return l || Ca("oneOfType - provided value does not match any of the " + o.length + ` passed-in validators:
` + zC(o.join(`
`))),
            l
        }
    } : {
        type: n
    })
}
function Zye(t) {
    return li("arrayOf", {
        type: Array,
        validator: function(e) {
            var n, r = e.every(function(a) {
                return (n = Gf(t, a, !0)) === !0
            });
            return r || Ca(`arrayOf - value validation error:
` + zC(n)),
            r
        }
    })
}
function Qye(t) {
    return li("instanceOf", {
        type: t
    })
}
function Jye(t) {
    return li("objectOf", {
        type: Object,
        validator: function(e) {
            var n, r = Object.keys(e).every(function(a) {
                return (n = Gf(t, e[a], !0)) === !0
            });
            return r || Ca(`objectOf - value validation error:
` + zC(n)),
            r
        }
    })
}
function e1e(t) {
    var e = Object.keys(t)
      , n = e.filter(function(a) {
        var i;
        return !!(!((i = t[a]) === null || i === void 0) && i.required)
    })
      , r = li("shape", {
        type: Object,
        validator: function(a) {
            var i = this;
            if (!Af(a))
                return !1;
            var o = Object.keys(a);
            if (n.length > 0 && n.some(function(s) {
                return o.indexOf(s) === -1
            })) {
                var l = n.filter(function(s) {
                    return o.indexOf(s) === -1
                });
                return Ca(l.length === 1 ? 'shape - required property "' + l[0] + '" is not defined.' : 'shape - required properties "' + l.join('", "') + '" are not defined.'),
                !1
            }
            return o.every(function(s) {
                if (e.indexOf(s) === -1)
                    return i._vueTypes_isLoose === !0 || (Ca('shape - shape definition does not include a "' + s + '" property. Allowed keys: "' + e.join('", "') + '".'),
                    !1);
                var u = Gf(t[s], a[s], !0);
                return typeof u == "string" && Ca('shape - "' + s + `" property validation error:
 ` + zC(u)),
                u === !0
            })
        }
    });
    return Object.defineProperty(r, "_vueTypes_isLoose", {
        writable: !0,
        value: !1
    }),
    Object.defineProperty(r, "loose", {
        get: function() {
            return this._vueTypes_isLoose = !0,
            this
        }
    }),
    r
}
var Wo = function() {
    function t() {}
    return t.extend = function(e) {
        var n = this;
        if (Rv(e))
            return e.forEach(function(f) {
                return n.extend(f)
            }),
            this;
        var r = e.name
          , a = e.validate
          , i = a !== void 0 && a
          , o = e.getter
          , l = o !== void 0 && o
          , s = aZ(e, ["name", "validate", "getter"]);
        if (l0(this, r))
            throw new TypeError('[VueTypes error]: Type "' + r + '" already defined');
        var u, c = s.type;
        return Ax(c) ? (delete s.type,
        Object.defineProperty(this, r, l ? {
            get: function() {
                return W7(r, c, s)
            }
        } : {
            value: function() {
                var f, d = W7(r, c, s);
                return d.validator && (d.validator = (f = d.validator).bind.apply(f, [d].concat([].slice.call(arguments)))),
                d
            }
        })) : (u = l ? {
            get: function() {
                var f = Object.assign({}, s);
                return i ? vl(r, f) : li(r, f)
            },
            enumerable: !0
        } : {
            value: function() {
                var f, d, v = Object.assign({}, s);
                return f = i ? vl(r, v) : li(r, v),
                v.validator && (f.validator = (d = v.validator).bind.apply(d, [f].concat([].slice.call(arguments)))),
                f
            },
            enumerable: !0
        },
        Object.defineProperty(this, r, u))
    }
    ,
    nZ(t, null, [{
        key: "any",
        get: function() {
            return Bye()
        }
    }, {
        key: "func",
        get: function() {
            return Vye().def(this.defaults.func)
        }
    }, {
        key: "bool",
        get: function() {
            return zye().def(this.defaults.bool)
        }
    }, {
        key: "string",
        get: function() {
            return Hye().def(this.defaults.string)
        }
    }, {
        key: "number",
        get: function() {
            return jye().def(this.defaults.number)
        }
    }, {
        key: "array",
        get: function() {
            return Wye().def(this.defaults.array)
        }
    }, {
        key: "object",
        get: function() {
            return Gye().def(this.defaults.object)
        }
    }, {
        key: "integer",
        get: function() {
            return Kye().def(this.defaults.integer)
        }
    }, {
        key: "symbol",
        get: function() {
            return Uye()
        }
    }]),
    t
}();
function uZ(t) {
    var e;
    return t === void 0 && (t = {
        func: function() {},
        bool: !0,
        string: "",
        number: 0,
        array: function() {
            return []
        },
        object: function() {
            return {}
        },
        integer: 0
    }),
    (e = function(n) {
        function r() {
            return n.apply(this, arguments) || this
        }
        return rZ(r, n),
        nZ(r, null, [{
            key: "sensibleDefaults",
            get: function() {
                return ub({}, this.defaults)
            },
            set: function(a) {
                this.defaults = a !== !1 ? ub({}, a !== !0 ? a : t) : {}
            }
        }]),
        r
    }(Wo)).defaults = ub({}, t),
    e
}
Wo.defaults = {},
Wo.custom = Yye,
Wo.oneOf = qye,
Wo.instanceOf = Qye,
Wo.oneOfType = Xye,
Wo.arrayOf = Zye,
Wo.objectOf = Jye,
Wo.shape = e1e,
Wo.utils = {
    validate: function(t, e) {
        return Gf(e, t, !0) === !0
    },
    toType: function(t, e, n) {
        return n === void 0 && (n = !1),
        n ? vl(t, e) : li(t, e)
    }
};
(function(t) {
    function e() {
        return t.apply(this, arguments) || this
    }
    return rZ(e, t),
    e
}
)(uZ());
var cZ = uZ({
    func: void 0,
    bool: void 0,
    string: void 0,
    number: void 0,
    array: void 0,
    object: void 0,
    integer: void 0
});
cZ.extend([{
    name: "looseBool",
    getter: !0,
    type: Boolean,
    default: void 0
}, {
    name: "style",
    getter: !0,
    type: [String, Object],
    default: void 0
}, {
    name: "VueNode",
    getter: !0,
    type: null
}]);
function fZ(t) {
    return t.default = void 0,
    t
}
const J = cZ;
var t1e = ["image", "description", "imageStyle", "class"]
  , dZ = _(Lye, null, null)
  , vZ = _(Rye, null, null)
  , fh = function(e, n) {
    var r, a = n.slots, i = a === void 0 ? {} : a, o = n.attrs, l = je("empty", e), s = l.direction, u = l.prefixCls, c = u.value, f = I(I({}, e), o), d = f.image, v = d === void 0 ? dZ : d, h = f.description, p = h === void 0 ? ((r = i.description) === null || r === void 0 ? void 0 : r.call(i)) || void 0 : h, g = f.imageStyle, m = f.class, y = m === void 0 ? "" : m, b = tt(f, t1e);
    return _(ch, {
        componentName: "Empty",
        children: function(C) {
            var S, w = typeof p != "undefined" ? p : C.description, T = typeof w == "string" ? w : "empty", P = null;
            return typeof v == "string" ? P = _("img", {
                alt: T,
                src: v
            }, null) : P = v,
            _("div", I({
                class: he(c, y, (S = {},
                z(S, "".concat(c, "-normal"), v === vZ),
                z(S, "".concat(c, "-rtl"), s.value === "rtl"),
                S))
            }, b), [_("div", {
                class: "".concat(c, "-image"),
                style: g
            }, [P]), w && _("p", {
                class: "".concat(c, "-description")
            }, [w]), i.default && _("div", {
                class: "".concat(c, "-footer")
            }, [ar(i.default())])])
        }
    }, null)
};
fh.displayName = "AEmpty";
fh.PRESENTED_IMAGE_DEFAULT = dZ;
fh.PRESENTED_IMAGE_SIMPLE = vZ;
fh.inheritAttrs = !1;
fh.props = {
    prefixCls: String,
    image: J.any,
    description: J.any,
    imageStyle: {
        type: Object,
        default: void 0
    }
};
const Zs = Jn(fh);
var n1e = function(e) {
    var n = je("empty", e)
      , r = n.prefixCls
      , a = function(o) {
        switch (o) {
        case "Table":
        case "List":
            return _(Zs, {
                image: Zs.PRESENTED_IMAGE_SIMPLE
            }, null);
        case "Select":
        case "TreeSelect":
        case "Cascader":
        case "Transfer":
        case "Mentions":
            return _(Zs, {
                image: Zs.PRESENTED_IMAGE_SIMPLE,
                class: "".concat(r.value, "-small")
            }, null);
        default:
            return _(Zs, null, null)
        }
    };
    return a(e.componentName)
};
function hZ(t) {
    return _(n1e, {
        componentName: t
    }, null)
}
var G7 = {};
function r1e(t, e) {}
function a1e(t, e) {}
function pZ(t, e, n) {
    !e && !G7[n] && (t(!1, n),
    G7[n] = !0)
}
function gZ(t, e) {
    pZ(r1e, t, e)
}
function i1e(t, e) {
    pZ(a1e, t, e)
}
const ur = function(t, e) {
    var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
    gZ(t, "[antdv: ".concat(e, "] ").concat(n))
};
var lM = "internalMark"
  , cb = de({
    compatConfig: {
        MODE: 3
    },
    name: "ALocaleProvider",
    props: {
        locale: {
            type: Object
        },
        ANT_MARK__: String
    },
    setup: function(e, n) {
        var r = n.slots;
        ur(e.ANT_MARK__ === lM, "LocaleProvider", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");
        var a = en({
            antLocale: I(I({}, e.locale), {}, {
                exist: !0
            }),
            ANT_MARK__: lM
        });
        return It("localeData", a),
        Te(function() {
            return e.locale
        }, function() {
            a.antLocale = I(I({}, e.locale), {}, {
                exist: !0
            })
        }, {
            immediate: !0
        }),
        function() {
            var i;
            return (i = r.default) === null || i === void 0 ? void 0 : i.call(r)
        }
    }
});
cb.install = function(t) {
    return t.component(cb.name, cb),
    t
}
;
const mZ = Jn(cb);
Kn("bottomLeft", "bottomRight", "topLeft", "topRight");
var o1e = function(e) {
    return e !== void 0 && (e === "topLeft" || e === "topRight") ? "slide-down" : "slide-up"
}
  , zu = function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , r = I(e ? {
        name: e,
        appear: !0,
        enterFromClass: "".concat(e, "-enter ").concat(e, "-enter-prepare"),
        enterActiveClass: "".concat(e, "-enter ").concat(e, "-enter-prepare"),
        enterToClass: "".concat(e, "-enter ").concat(e, "-enter-active"),
        leaveFromClass: " ".concat(e, "-leave"),
        leaveActiveClass: "".concat(e, "-leave ").concat(e, "-leave-active"),
        leaveToClass: "".concat(e, "-leave ").concat(e, "-leave-active")
    } : {
        css: !1
    }, n);
    return r
}
  , RO = function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , r = I(e ? {
        name: e,
        appear: !0,
        appearActiveClass: "".concat(e),
        appearToClass: "".concat(e, "-appear ").concat(e, "-appear-active"),
        enterFromClass: "".concat(e, "-appear ").concat(e, "-enter ").concat(e, "-appear-prepare ").concat(e, "-enter-prepare"),
        enterActiveClass: "".concat(e),
        enterToClass: "".concat(e, "-enter ").concat(e, "-appear ").concat(e, "-appear-active ").concat(e, "-enter-active"),
        leaveActiveClass: "".concat(e, " ").concat(e, "-leave"),
        leaveToClass: "".concat(e, "-leave-active")
    } : {
        css: !1
    }, n);
    return r
}
  , So = function(e, n, r) {
    return r !== void 0 ? r : "".concat(e, "-").concat(n)
};
const dh = bl
  , l1e = de({
    name: "Notice",
    inheritAttrs: !1,
    props: ["prefixCls", "duration", "updateMark", "noticeKey", "closeIcon", "closable", "props", "onClick", "onClose", "holder", "visible"],
    setup: function(e, n) {
        var r = n.attrs, a = n.slots, i, o = !1, l = j(function() {
            return e.duration === void 0 ? 4.5 : e.duration
        }), s = function() {
            l.value && !o && (i = setTimeout(function() {
                c()
            }, l.value * 1e3))
        }, u = function() {
            i && (clearTimeout(i),
            i = null)
        }, c = function(v) {
            v && v.stopPropagation(),
            u();
            var h = e.onClose
              , p = e.noticeKey;
            h && h(p)
        }, f = function() {
            u(),
            s()
        };
        return ct(function() {
            s()
        }),
        dr(function() {
            o = !0,
            u()
        }),
        Te([l, function() {
            return e.updateMark
        }
        , function() {
            return e.visible
        }
        ], function(d, v) {
            var h = De(d, 3)
              , p = h[0]
              , g = h[1]
              , m = h[2]
              , y = De(v, 3)
              , b = y[0]
              , x = y[1]
              , C = y[2];
            (p !== b || g !== x || m !== C && C) && f()
        }, {
            flush: "post"
        }),
        function() {
            var d, v, h = e.prefixCls, p = e.closable, g = e.closeIcon, m = g === void 0 ? (d = a.closeIcon) === null || d === void 0 ? void 0 : d.call(a) : g, y = e.onClick, b = e.holder, x = r.class, C = r.style, S = "".concat(h, "-notice"), w = Object.keys(r).reduce(function(P, M) {
                return (M.substr(0, 5) === "data-" || M.substr(0, 5) === "aria-" || M === "role") && (P[M] = r[M]),
                P
            }, {}), T = _("div", I({
                class: he(S, x, z({}, "".concat(S, "-closable"), p)),
                style: C,
                onMouseenter: u,
                onMouseleave: s,
                onClick: y
            }, w), [_("div", {
                class: "".concat(S, "-content")
            }, [(v = a.default) === null || v === void 0 ? void 0 : v.call(a)]), p ? _("a", {
                tabindex: 0,
                onClick: c,
                class: "".concat(S, "-close")
            }, [m || _("span", {
                class: "".concat(S, "-close-x")
            }, null)]) : null]);
            return b ? _(sO, {
                to: b
            }, {
                default: function() {
                    return T
                }
            }) : T
        }
    }
});
var s1e = ["name", "getContainer", "appContext", "prefixCls", "rootPrefixCls", "transitionName", "hasTransitionName"]
  , K7 = 0
  , u1e = Date.now();
function U7() {
    var t = K7;
    return K7 += 1,
    "rcNotification_".concat(u1e, "_").concat(t)
}
var sM = de({
    name: "Notification",
    inheritAttrs: !1,
    props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.expose
          , i = n.slots
          , o = new Map
          , l = Q([])
          , s = j(function() {
            var f = e.prefixCls
              , d = e.animation
              , v = d === void 0 ? "fade" : d
              , h = e.transitionName;
            return !h && v && (h = "".concat(f, "-").concat(v)),
            RO(h)
        })
          , u = function(d, v) {
            var h = d.key || U7()
              , p = I(I({}, d), {}, {
                key: h
            })
              , g = e.maxCount
              , m = l.value.map(function(b) {
                return b.notice.key
            }).indexOf(h)
              , y = l.value.concat();
            m !== -1 ? y.splice(m, 1, {
                notice: p,
                holderCallback: v
            }) : (g && l.value.length >= g && (p.key = y[0].notice.key,
            p.updateMark = U7(),
            p.userPassKey = h,
            y.shift()),
            y.push({
                notice: p,
                holderCallback: v
            })),
            l.value = y
        }
          , c = function(d) {
            l.value = l.value.filter(function(v) {
                var h = v.notice
                  , p = h.key
                  , g = h.userPassKey
                  , m = g || p;
                return m !== d
            })
        };
        return a({
            add: u,
            remove: c,
            notices: l
        }),
        function() {
            var f, d, v = e.prefixCls, h = e.closeIcon, p = h === void 0 ? (f = i.closeIcon) === null || f === void 0 ? void 0 : f.call(i, {
                prefixCls: v
            }) : h, g = l.value.map(function(y, b) {
                var x = y.notice
                  , C = y.holderCallback
                  , S = b === l.value.length - 1 ? x.updateMark : void 0
                  , w = x.key
                  , T = x.userPassKey
                  , P = x.content
                  , M = I(I(I({
                    prefixCls: v,
                    closeIcon: typeof p == "function" ? p({
                        prefixCls: v
                    }) : p
                }, x), x.props), {}, {
                    key: w,
                    noticeKey: T || w,
                    updateMark: S,
                    onClose: function(O) {
                        var k;
                        c(O),
                        (k = x.onClose) === null || k === void 0 || k.call(x)
                    },
                    onClick: x.onClick
                });
                return C ? _("div", {
                    key: w,
                    class: "".concat(v, "-hook-holder"),
                    ref: function(O) {
                        typeof w != "undefined" && (O ? (o.set(w, O),
                        C(O, M)) : o.delete(w))
                    }
                }, null) : _(l1e, M, {
                    default: function() {
                        return [typeof P == "function" ? P({
                            prefixCls: v
                        }) : P]
                    }
                })
            }), m = (d = {},
            z(d, v, 1),
            z(d, r.class, !!r.class),
            d);
            return _("div", {
                class: m,
                style: r.style || {
                    top: "65px",
                    left: "50%"
                }
            }, [_(dO, I({
                tag: "div"
            }, s.value), {
                default: function() {
                    return [g]
                }
            })])
        }
    }
});
sM.newInstance = function(e, n) {
    var r = e || {}
      , a = r.name
      , i = a === void 0 ? "notification" : a
      , o = r.getContainer
      , l = r.appContext
      , s = r.prefixCls
      , u = r.rootPrefixCls
      , c = r.transitionName
      , f = r.hasTransitionName
      , d = tt(r, s1e)
      , v = document.createElement("div");
    if (o) {
        var h = o();
        h.appendChild(v)
    } else
        document.body.appendChild(v);
    var p = de({
        compatConfig: {
            MODE: 3
        },
        name: "NotificationWrapper",
        setup: function(y, b) {
            var x = b.attrs
              , C = Q();
            return ct(function() {
                n({
                    notice: function(w) {
                        var T;
                        (T = C.value) === null || T === void 0 || T.add(w)
                    },
                    removeNotice: function(w) {
                        var T;
                        (T = C.value) === null || T === void 0 || T.remove(w)
                    },
                    destroy: function() {
                        _x(null, v),
                        v.parentNode && v.parentNode.removeChild(v)
                    },
                    component: C
                })
            }),
            function() {
                var S = Ra
                  , w = S.getPrefixCls(i, s)
                  , T = S.getRootPrefixCls(u, w)
                  , P = f ? c : "".concat(T, "-").concat(c);
                return _(df, I(I({}, S), {}, {
                    notUpdateGlobalConfig: !0,
                    prefixCls: T
                }), {
                    default: function() {
                        return [_(sM, I(I({
                            ref: C
                        }, x), {}, {
                            prefixCls: w,
                            transitionName: P
                        }), null)]
                    }
                })
            }
        }
    })
      , g = _(p, d);
    g.appContext = l || g.appContext,
    _x(g, v)
}
;
const yZ = sM;
var c1e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "0 0 1024 1024",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
            }
        }]
    },
    name: "loading",
    theme: "outlined"
};
const f1e = c1e;
function qr(t, e) {
    d1e(t) && (t = "100%");
    var n = v1e(t);
    return t = e === 360 ? t : Math.min(e, Math.max(0, parseFloat(t))),
    n && (t = parseInt(String(t * e), 10) / 100),
    Math.abs(t - e) < 1e-6 ? 1 : (e === 360 ? t = (t < 0 ? t % e + e : t % e) / parseFloat(String(e)) : t = t % e / parseFloat(String(e)),
    t)
}
function _y(t) {
    return Math.min(1, Math.max(0, t))
}
function d1e(t) {
    return typeof t == "string" && t.indexOf(".") !== -1 && parseFloat(t) === 1
}
function v1e(t) {
    return typeof t == "string" && t.indexOf("%") !== -1
}
function bZ(t) {
    return t = parseFloat(t),
    (isNaN(t) || t < 0 || t > 1) && (t = 1),
    t
}
function Ty(t) {
    return t <= 1 ? "".concat(Number(t) * 100, "%") : t
}
function Jc(t) {
    return t.length === 1 ? "0" + t : String(t)
}
function h1e(t, e, n) {
    return {
        r: qr(t, 255) * 255,
        g: qr(e, 255) * 255,
        b: qr(n, 255) * 255
    }
}
function Y7(t, e, n) {
    t = qr(t, 255),
    e = qr(e, 255),
    n = qr(n, 255);
    var r = Math.max(t, e, n)
      , a = Math.min(t, e, n)
      , i = 0
      , o = 0
      , l = (r + a) / 2;
    if (r === a)
        o = 0,
        i = 0;
    else {
        var s = r - a;
        switch (o = l > .5 ? s / (2 - r - a) : s / (r + a),
        r) {
        case t:
            i = (e - n) / s + (e < n ? 6 : 0);
            break;
        case e:
            i = (n - t) / s + 2;
            break;
        case n:
            i = (t - e) / s + 4;
            break
        }
        i /= 6
    }
    return {
        h: i,
        s: o,
        l
    }
}
function $_(t, e, n) {
    return n < 0 && (n += 1),
    n > 1 && (n -= 1),
    n < 1 / 6 ? t + (e - t) * (6 * n) : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t
}
function p1e(t, e, n) {
    var r, a, i;
    if (t = qr(t, 360),
    e = qr(e, 100),
    n = qr(n, 100),
    e === 0)
        a = n,
        i = n,
        r = n;
    else {
        var o = n < .5 ? n * (1 + e) : n + e - n * e
          , l = 2 * n - o;
        r = $_(l, o, t + 1 / 3),
        a = $_(l, o, t),
        i = $_(l, o, t - 1 / 3)
    }
    return {
        r: r * 255,
        g: a * 255,
        b: i * 255
    }
}
function uM(t, e, n) {
    t = qr(t, 255),
    e = qr(e, 255),
    n = qr(n, 255);
    var r = Math.max(t, e, n)
      , a = Math.min(t, e, n)
      , i = 0
      , o = r
      , l = r - a
      , s = r === 0 ? 0 : l / r;
    if (r === a)
        i = 0;
    else {
        switch (r) {
        case t:
            i = (e - n) / l + (e < n ? 6 : 0);
            break;
        case e:
            i = (n - t) / l + 2;
            break;
        case n:
            i = (t - e) / l + 4;
            break
        }
        i /= 6
    }
    return {
        h: i,
        s,
        v: o
    }
}
function g1e(t, e, n) {
    t = qr(t, 360) * 6,
    e = qr(e, 100),
    n = qr(n, 100);
    var r = Math.floor(t)
      , a = t - r
      , i = n * (1 - e)
      , o = n * (1 - a * e)
      , l = n * (1 - (1 - a) * e)
      , s = r % 6
      , u = [n, o, i, i, l, n][s]
      , c = [l, n, n, o, i, i][s]
      , f = [i, i, l, n, n, o][s];
    return {
        r: u * 255,
        g: c * 255,
        b: f * 255
    }
}
function cM(t, e, n, r) {
    var a = [Jc(Math.round(t).toString(16)), Jc(Math.round(e).toString(16)), Jc(Math.round(n).toString(16))];
    return r && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("")
}
function m1e(t, e, n, r, a) {
    var i = [Jc(Math.round(t).toString(16)), Jc(Math.round(e).toString(16)), Jc(Math.round(n).toString(16)), Jc(y1e(r))];
    return a && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) && i[3].startsWith(i[3].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : i.join("")
}
function y1e(t) {
    return Math.round(parseFloat(t) * 255).toString(16)
}
function q7(t) {
    return Za(t) / 255
}
function Za(t) {
    return parseInt(t, 16)
}
function b1e(t) {
    return {
        r: t >> 16,
        g: (t & 65280) >> 8,
        b: t & 255
    }
}
var fM = {
    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 Vd(t) {
    var e = {
        r: 0,
        g: 0,
        b: 0
    }
      , n = 1
      , r = null
      , a = null
      , i = null
      , o = !1
      , l = !1;
    return typeof t == "string" && (t = C1e(t)),
    typeof t == "object" && (Dl(t.r) && Dl(t.g) && Dl(t.b) ? (e = h1e(t.r, t.g, t.b),
    o = !0,
    l = String(t.r).substr(-1) === "%" ? "prgb" : "rgb") : Dl(t.h) && Dl(t.s) && Dl(t.v) ? (r = Ty(t.s),
    a = Ty(t.v),
    e = g1e(t.h, r, a),
    o = !0,
    l = "hsv") : Dl(t.h) && Dl(t.s) && Dl(t.l) && (r = Ty(t.s),
    i = Ty(t.l),
    e = p1e(t.h, r, i),
    o = !0,
    l = "hsl"),
    Object.prototype.hasOwnProperty.call(t, "a") && (n = t.a)),
    n = bZ(n),
    {
        ok: o,
        format: t.format || l,
        r: Math.min(255, Math.max(e.r, 0)),
        g: Math.min(255, Math.max(e.g, 0)),
        b: Math.min(255, Math.max(e.b, 0)),
        a: n
    }
}
var x1e = "[-\\+]?\\d+%?"
  , S1e = "[-\\+]?\\d*\\.\\d+%?"
  , tu = "(?:".concat(S1e, ")|(?:").concat(x1e, ")")
  , F_ = "[\\s|\\(]+(".concat(tu, ")[,|\\s]+(").concat(tu, ")[,|\\s]+(").concat(tu, ")\\s*\\)?")
  , B_ = "[\\s|\\(]+(".concat(tu, ")[,|\\s]+(").concat(tu, ")[,|\\s]+(").concat(tu, ")[,|\\s]+(").concat(tu, ")\\s*\\)?")
  , Qi = {
    CSS_UNIT: new RegExp(tu),
    rgb: new RegExp("rgb" + F_),
    rgba: new RegExp("rgba" + B_),
    hsl: new RegExp("hsl" + F_),
    hsla: new RegExp("hsla" + B_),
    hsv: new RegExp("hsv" + F_),
    hsva: new RegExp("hsva" + B_),
    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 C1e(t) {
    if (t = t.trim().toLowerCase(),
    t.length === 0)
        return !1;
    var e = !1;
    if (fM[t])
        t = fM[t],
        e = !0;
    else if (t === "transparent")
        return {
            r: 0,
            g: 0,
            b: 0,
            a: 0,
            format: "name"
        };
    var n = Qi.rgb.exec(t);
    return n ? {
        r: n[1],
        g: n[2],
        b: n[3]
    } : (n = Qi.rgba.exec(t),
    n ? {
        r: n[1],
        g: n[2],
        b: n[3],
        a: n[4]
    } : (n = Qi.hsl.exec(t),
    n ? {
        h: n[1],
        s: n[2],
        l: n[3]
    } : (n = Qi.hsla.exec(t),
    n ? {
        h: n[1],
        s: n[2],
        l: n[3],
        a: n[4]
    } : (n = Qi.hsv.exec(t),
    n ? {
        h: n[1],
        s: n[2],
        v: n[3]
    } : (n = Qi.hsva.exec(t),
    n ? {
        h: n[1],
        s: n[2],
        v: n[3],
        a: n[4]
    } : (n = Qi.hex8.exec(t),
    n ? {
        r: Za(n[1]),
        g: Za(n[2]),
        b: Za(n[3]),
        a: q7(n[4]),
        format: e ? "name" : "hex8"
    } : (n = Qi.hex6.exec(t),
    n ? {
        r: Za(n[1]),
        g: Za(n[2]),
        b: Za(n[3]),
        format: e ? "name" : "hex"
    } : (n = Qi.hex4.exec(t),
    n ? {
        r: Za(n[1] + n[1]),
        g: Za(n[2] + n[2]),
        b: Za(n[3] + n[3]),
        a: q7(n[4] + n[4]),
        format: e ? "name" : "hex8"
    } : (n = Qi.hex3.exec(t),
    n ? {
        r: Za(n[1] + n[1]),
        g: Za(n[2] + n[2]),
        b: Za(n[3] + n[3]),
        format: e ? "name" : "hex"
    } : !1)))))))))
}
function Dl(t) {
    return Boolean(Qi.CSS_UNIT.exec(String(t)))
}
var V_ = function() {
    function t(e, n) {
        e === void 0 && (e = ""),
        n === void 0 && (n = {});
        var r;
        if (e instanceof t)
            return e;
        typeof e == "number" && (e = b1e(e)),
        this.originalInput = e;
        var a = Vd(e);
        this.originalInput = e,
        this.r = a.r,
        this.g = a.g,
        this.b = a.b,
        this.a = a.a,
        this.roundA = Math.round(100 * this.a) / 100,
        this.format = (r = n.format) !== null && r !== void 0 ? r : a.format,
        this.gradientType = n.gradientType,
        this.r < 1 && (this.r = Math.round(this.r)),
        this.g < 1 && (this.g = Math.round(this.g)),
        this.b < 1 && (this.b = Math.round(this.b)),
        this.isValid = a.ok
    }
    return t.prototype.isDark = function() {
        return this.getBrightness() < 128
    }
    ,
    t.prototype.isLight = function() {
        return !this.isDark()
    }
    ,
    t.prototype.getBrightness = function() {
        var e = this.toRgb();
        return (e.r * 299 + e.g * 587 + e.b * 114) / 1e3
    }
    ,
    t.prototype.getLuminance = function() {
        var e = this.toRgb(), n, r, a, i = e.r / 255, o = e.g / 255, l = e.b / 255;
        return i <= .03928 ? n = i / 12.92 : n = Math.pow((i + .055) / 1.055, 2.4),
        o <= .03928 ? r = o / 12.92 : r = Math.pow((o + .055) / 1.055, 2.4),
        l <= .03928 ? a = l / 12.92 : a = Math.pow((l + .055) / 1.055, 2.4),
        .2126 * n + .7152 * r + .0722 * a
    }
    ,
    t.prototype.getAlpha = function() {
        return this.a
    }
    ,
    t.prototype.setAlpha = function(e) {
        return this.a = bZ(e),
        this.roundA = Math.round(100 * this.a) / 100,
        this
    }
    ,
    t.prototype.isMonochrome = function() {
        var e = this.toHsl().s;
        return e === 0
    }
    ,
    t.prototype.toHsv = function() {
        var e = uM(this.r, this.g, this.b);
        return {
            h: e.h * 360,
            s: e.s,
            v: e.v,
            a: this.a
        }
    }
    ,
    t.prototype.toHsvString = function() {
        var e = uM(this.r, this.g, this.b)
          , n = Math.round(e.h * 360)
          , r = Math.round(e.s * 100)
          , a = Math.round(e.v * 100);
        return this.a === 1 ? "hsv(".concat(n, ", ").concat(r, "%, ").concat(a, "%)") : "hsva(".concat(n, ", ").concat(r, "%, ").concat(a, "%, ").concat(this.roundA, ")")
    }
    ,
    t.prototype.toHsl = function() {
        var e = Y7(this.r, this.g, this.b);
        return {
            h: e.h * 360,
            s: e.s,
            l: e.l,
            a: this.a
        }
    }
    ,
    t.prototype.toHslString = function() {
        var e = Y7(this.r, this.g, this.b)
          , n = Math.round(e.h * 360)
          , r = Math.round(e.s * 100)
          , a = Math.round(e.l * 100);
        return this.a === 1 ? "hsl(".concat(n, ", ").concat(r, "%, ").concat(a, "%)") : "hsla(".concat(n, ", ").concat(r, "%, ").concat(a, "%, ").concat(this.roundA, ")")
    }
    ,
    t.prototype.toHex = function(e) {
        return e === void 0 && (e = !1),
        cM(this.r, this.g, this.b, e)
    }
    ,
    t.prototype.toHexString = function(e) {
        return e === void 0 && (e = !1),
        "#" + this.toHex(e)
    }
    ,
    t.prototype.toHex8 = function(e) {
        return e === void 0 && (e = !1),
        m1e(this.r, this.g, this.b, this.a, e)
    }
    ,
    t.prototype.toHex8String = function(e) {
        return e === void 0 && (e = !1),
        "#" + this.toHex8(e)
    }
    ,
    t.prototype.toHexShortString = function(e) {
        return e === void 0 && (e = !1),
        this.a === 1 ? this.toHexString(e) : this.toHex8String(e)
    }
    ,
    t.prototype.toRgb = function() {
        return {
            r: Math.round(this.r),
            g: Math.round(this.g),
            b: Math.round(this.b),
            a: this.a
        }
    }
    ,
    t.prototype.toRgbString = function() {
        var e = Math.round(this.r)
          , n = Math.round(this.g)
          , r = Math.round(this.b);
        return this.a === 1 ? "rgb(".concat(e, ", ").concat(n, ", ").concat(r, ")") : "rgba(".concat(e, ", ").concat(n, ", ").concat(r, ", ").concat(this.roundA, ")")
    }
    ,
    t.prototype.toPercentageRgb = function() {
        var e = function(n) {
            return "".concat(Math.round(qr(n, 255) * 100), "%")
        };
        return {
            r: e(this.r),
            g: e(this.g),
            b: e(this.b),
            a: this.a
        }
    }
    ,
    t.prototype.toPercentageRgbString = function() {
        var e = function(n) {
            return Math.round(qr(n, 255) * 100)
        };
        return this.a === 1 ? "rgb(".concat(e(this.r), "%, ").concat(e(this.g), "%, ").concat(e(this.b), "%)") : "rgba(".concat(e(this.r), "%, ").concat(e(this.g), "%, ").concat(e(this.b), "%, ").concat(this.roundA, ")")
    }
    ,
    t.prototype.toName = function() {
        if (this.a === 0)
            return "transparent";
        if (this.a < 1)
            return !1;
        for (var e = "#" + cM(this.r, this.g, this.b, !1), n = 0, r = Object.entries(fM); n < r.length; n++) {
            var a = r[n]
              , i = a[0]
              , o = a[1];
            if (e === o)
                return i
        }
        return !1
    }
    ,
    t.prototype.toString = function(e) {
        var n = Boolean(e);
        e = e != null ? e : this.format;
        var r = !1
          , a = this.a < 1 && this.a >= 0
          , i = !n && a && (e.startsWith("hex") || e === "name");
        return i ? e === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (e === "rgb" && (r = this.toRgbString()),
        e === "prgb" && (r = this.toPercentageRgbString()),
        (e === "hex" || e === "hex6") && (r = this.toHexString()),
        e === "hex3" && (r = this.toHexString(!0)),
        e === "hex4" && (r = this.toHex8String(!0)),
        e === "hex8" && (r = this.toHex8String()),
        e === "name" && (r = this.toName()),
        e === "hsl" && (r = this.toHslString()),
        e === "hsv" && (r = this.toHsvString()),
        r || this.toHexString())
    }
    ,
    t.prototype.toNumber = function() {
        return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b)
    }
    ,
    t.prototype.clone = function() {
        return new t(this.toString())
    }
    ,
    t.prototype.lighten = function(e) {
        e === void 0 && (e = 10);
        var n = this.toHsl();
        return n.l += e / 100,
        n.l = _y(n.l),
        new t(n)
    }
    ,
    t.prototype.brighten = function(e) {
        e === void 0 && (e = 10);
        var n = this.toRgb();
        return n.r = Math.max(0, Math.min(255, n.r - Math.round(255 * -(e / 100)))),
        n.g = Math.max(0, Math.min(255, n.g - Math.round(255 * -(e / 100)))),
        n.b = Math.max(0, Math.min(255, n.b - Math.round(255 * -(e / 100)))),
        new t(n)
    }
    ,
    t.prototype.darken = function(e) {
        e === void 0 && (e = 10);
        var n = this.toHsl();
        return n.l -= e / 100,
        n.l = _y(n.l),
        new t(n)
    }
    ,
    t.prototype.tint = function(e) {
        return e === void 0 && (e = 10),
        this.mix("white", e)
    }
    ,
    t.prototype.shade = function(e) {
        return e === void 0 && (e = 10),
        this.mix("black", e)
    }
    ,
    t.prototype.desaturate = function(e) {
        e === void 0 && (e = 10);
        var n = this.toHsl();
        return n.s -= e / 100,
        n.s = _y(n.s),
        new t(n)
    }
    ,
    t.prototype.saturate = function(e) {
        e === void 0 && (e = 10);
        var n = this.toHsl();
        return n.s += e / 100,
        n.s = _y(n.s),
        new t(n)
    }
    ,
    t.prototype.greyscale = function() {
        return this.desaturate(100)
    }
    ,
    t.prototype.spin = function(e) {
        var n = this.toHsl()
          , r = (n.h + e) % 360;
        return n.h = r < 0 ? 360 + r : r,
        new t(n)
    }
    ,
    t.prototype.mix = function(e, n) {
        n === void 0 && (n = 50);
        var r = this.toRgb()
          , a = new t(e).toRgb()
          , i = n / 100
          , o = {
            r: (a.r - r.r) * i + r.r,
            g: (a.g - r.g) * i + r.g,
            b: (a.b - r.b) * i + r.b,
            a: (a.a - r.a) * i + r.a
        };
        return new t(o)
    }
    ,
    t.prototype.analogous = function(e, n) {
        e === void 0 && (e = 6),
        n === void 0 && (n = 30);
        var r = this.toHsl()
          , a = 360 / n
          , i = [this];
        for (r.h = (r.h - (a * e >> 1) + 720) % 360; --e; )
            r.h = (r.h + a) % 360,
            i.push(new t(r));
        return i
    }
    ,
    t.prototype.complement = function() {
        var e = this.toHsl();
        return e.h = (e.h + 180) % 360,
        new t(e)
    }
    ,
    t.prototype.monochromatic = function(e) {
        e === void 0 && (e = 6);
        for (var n = this.toHsv(), r = n.h, a = n.s, i = n.v, o = [], l = 1 / e; e--; )
            o.push(new t({
                h: r,
                s: a,
                v: i
            })),
            i = (i + l) % 1;
        return o
    }
    ,
    t.prototype.splitcomplement = function() {
        var e = this.toHsl()
          , n = e.h;
        return [this, new t({
            h: (n + 72) % 360,
            s: e.s,
            l: e.l
        }), new t({
            h: (n + 216) % 360,
            s: e.s,
            l: e.l
        })]
    }
    ,
    t.prototype.onBackground = function(e) {
        var n = this.toRgb()
          , r = new t(e).toRgb()
          , a = n.a + r.a * (1 - n.a);
        return new t({
            r: (n.r * n.a + r.r * r.a * (1 - n.a)) / a,
            g: (n.g * n.a + r.g * r.a * (1 - n.a)) / a,
            b: (n.b * n.a + r.b * r.a * (1 - n.a)) / a,
            a
        })
    }
    ,
    t.prototype.triad = function() {
        return this.polyad(3)
    }
    ,
    t.prototype.tetrad = function() {
        return this.polyad(4)
    }
    ,
    t.prototype.polyad = function(e) {
        for (var n = this.toHsl(), r = n.h, a = [this], i = 360 / e, o = 1; o < e; o++)
            a.push(new t({
                h: (r + o * i) % 360,
                s: n.s,
                l: n.l
            }));
        return a
    }
    ,
    t.prototype.equals = function(e) {
        return this.toRgbString() === new t(e).toRgbString()
    }
    ,
    t
}()
  , Py = 2
  , X7 = .16
  , w1e = .05
  , _1e = .05
  , T1e = .15
  , xZ = 5
  , SZ = 4
  , P1e = [{
    index: 7,
    opacity: .15
}, {
    index: 6,
    opacity: .25
}, {
    index: 5,
    opacity: .3
}, {
    index: 5,
    opacity: .45
}, {
    index: 5,
    opacity: .65
}, {
    index: 5,
    opacity: .85
}, {
    index: 4,
    opacity: .9
}, {
    index: 3,
    opacity: .95
}, {
    index: 2,
    opacity: .97
}, {
    index: 1,
    opacity: .98
}];
function Z7(t) {
    var e = t.r
      , n = t.g
      , r = t.b
      , a = uM(e, n, r);
    return {
        h: a.h * 360,
        s: a.s,
        v: a.v
    }
}
function My(t) {
    var e = t.r
      , n = t.g
      , r = t.b;
    return "#".concat(cM(e, n, r, !1))
}
function M1e(t, e, n) {
    var r = n / 100
      , a = {
        r: (e.r - t.r) * r + t.r,
        g: (e.g - t.g) * r + t.g,
        b: (e.b - t.b) * r + t.b
    };
    return a
}
function Q7(t, e, n) {
    var r;
    return Math.round(t.h) >= 60 && Math.round(t.h) <= 240 ? r = n ? Math.round(t.h) - Py * e : Math.round(t.h) + Py * e : r = n ? Math.round(t.h) + Py * e : Math.round(t.h) - Py * e,
    r < 0 ? r += 360 : r >= 360 && (r -= 360),
    r
}
function J7(t, e, n) {
    if (t.h === 0 && t.s === 0)
        return t.s;
    var r;
    return n ? r = t.s - X7 * e : e === SZ ? r = t.s + X7 : r = t.s + w1e * e,
    r > 1 && (r = 1),
    n && e === xZ && r > .1 && (r = .1),
    r < .06 && (r = .06),
    Number(r.toFixed(2))
}
function e$(t, e, n) {
    var r;
    return n ? r = t.v + _1e * e : r = t.v - T1e * e,
    r > 1 && (r = 1),
    Number(r.toFixed(2))
}
function s0(t) {
    for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], r = Vd(t), a = xZ; a > 0; a -= 1) {
        var i = Z7(r)
          , o = My(Vd({
            h: Q7(i, a, !0),
            s: J7(i, a, !0),
            v: e$(i, a, !0)
        }));
        n.push(o)
    }
    n.push(My(r));
    for (var l = 1; l <= SZ; l += 1) {
        var s = Z7(r)
          , u = My(Vd({
            h: Q7(s, l),
            s: J7(s, l),
            v: e$(s, l)
        }));
        n.push(u)
    }
    return e.theme === "dark" ? P1e.map(function(c) {
        var f = c.index
          , d = c.opacity
          , v = My(M1e(Vd(e.backgroundColor || "#141414"), Vd(n[f]), d * 100));
        return v
    }) : n
}
var uv = {
    red: "#F5222D",
    volcano: "#FA541C",
    orange: "#FA8C16",
    gold: "#FAAD14",
    yellow: "#FADB14",
    lime: "#A0D911",
    green: "#52C41A",
    cyan: "#13C2C2",
    blue: "#1890FF",
    geekblue: "#2F54EB",
    purple: "#722ED1",
    magenta: "#EB2F96",
    grey: "#666666"
}
  , z_ = {}
  , H_ = {};
Object.keys(uv).forEach(function(t) {
    z_[t] = s0(uv[t]),
    z_[t].primary = z_[t][5],
    H_[t] = s0(uv[t], {
        theme: "dark",
        backgroundColor: "#141414"
    }),
    H_[t].primary = H_[t][5]
});
var t$ = []
  , ep = []
  , A1e = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
function I1e() {
    var t = document.createElement("style");
    return t.setAttribute("type", "text/css"),
    t
}
function k1e(t, e) {
    if (e = e || {},
    t === void 0)
        throw new Error(A1e);
    var n = e.prepend === !0 ? "prepend" : "append"
      , r = e.container !== void 0 ? e.container : document.querySelector("head")
      , a = t$.indexOf(r);
    a === -1 && (a = t$.push(r) - 1,
    ep[a] = {});
    var i;
    return ep[a] !== void 0 && ep[a][n] !== void 0 ? i = ep[a][n] : (i = ep[a][n] = I1e(),
    n === "prepend" ? r.insertBefore(i, r.childNodes[0]) : r.appendChild(i)),
    t.charCodeAt(0) === 65279 && (t = t.substr(1, t.length)),
    i.styleSheet ? i.styleSheet.cssText += t : i.textContent += t,
    i
}
function n$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            O1e(t, a, n[a])
        })
    }
    return t
}
function O1e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
function r$(t) {
    return typeof t == "object" && typeof t.name == "string" && typeof t.theme == "string" && (typeof t.icon == "object" || typeof t.icon == "function")
}
function dM(t, e, n) {
    return n ? Pu(t.tag, n$({
        key: e
    }, n, t.attrs), (t.children || []).map(function(r, a) {
        return dM(r, "".concat(e, "-").concat(t.tag, "-").concat(a))
    })) : Pu(t.tag, n$({
        key: e
    }, t.attrs), (t.children || []).map(function(r, a) {
        return dM(r, "".concat(e, "-").concat(t.tag, "-").concat(a))
    }))
}
function CZ(t) {
    return s0(t)[0]
}
function wZ(t) {
    return t ? Array.isArray(t) ? t : [t] : []
}
var D1e = `
.anticon {
  display: inline-block;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`
  , a$ = !1
  , E1e = function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : D1e;
    yt(function() {
        a$ || (typeof window != "undefined" && window.document && window.document.documentElement && k1e(e, {
            prepend: !0
        }),
        a$ = !0)
    })
}
  , L1e = ["icon", "primaryColor", "secondaryColor"];
function R1e(t, e) {
    if (t == null)
        return {};
    var n = N1e(t, e), r, a;
    if (Object.getOwnPropertySymbols) {
        var i = Object.getOwnPropertySymbols(t);
        for (a = 0; a < i.length; a++)
            r = i[a],
            !(e.indexOf(r) >= 0) && (!Object.prototype.propertyIsEnumerable.call(t, r) || (n[r] = t[r]))
    }
    return n
}
function N1e(t, e) {
    if (t == null)
        return {};
    var n = {}, r = Object.keys(t), a, i;
    for (i = 0; i < r.length; i++)
        a = r[i],
        !(e.indexOf(a) >= 0) && (n[a] = t[a]);
    return n
}
function fb(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            $1e(t, a, n[a])
        })
    }
    return t
}
function $1e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var pg = {
    primaryColor: "#333",
    secondaryColor: "#E6E6E6",
    calculated: !1
};
function F1e(t) {
    var e = t.primaryColor
      , n = t.secondaryColor;
    pg.primaryColor = e,
    pg.secondaryColor = n || CZ(e),
    pg.calculated = !!n
}
function B1e() {
    return fb({}, pg)
}
var vh = function(e, n) {
    var r = fb({}, e, n.attrs)
      , a = r.icon
      , i = r.primaryColor
      , o = r.secondaryColor
      , l = R1e(r, L1e)
      , s = pg;
    if (i && (s = {
        primaryColor: i,
        secondaryColor: o || CZ(i)
    }),
    E1e(),
    r$(a),
    !r$(a))
        return null;
    var u = a;
    return u && typeof u.icon == "function" && (u = fb({}, u, {
        icon: u.icon(s.primaryColor, s.secondaryColor)
    })),
    dM(u.icon, "svg-".concat(u.name), fb({}, l, {
        "data-icon": u.name,
        width: "1em",
        height: "1em",
        fill: "currentColor",
        "aria-hidden": "true"
    }))
};
vh.props = {
    icon: Object,
    primaryColor: String,
    secondaryColor: String,
    focusable: String
};
vh.inheritAttrs = !1;
vh.displayName = "IconBase";
vh.getTwoToneColors = B1e;
vh.setTwoToneColors = F1e;
const NO = vh;
function V1e(t, e) {
    return W1e(t) || j1e(t, e) || H1e(t, e) || z1e()
}
function z1e() {
    throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
}
function H1e(t, e) {
    if (!!t) {
        if (typeof t == "string")
            return i$(t, e);
        var n = Object.prototype.toString.call(t).slice(8, -1);
        if (n === "Object" && t.constructor && (n = t.constructor.name),
        n === "Map" || n === "Set")
            return Array.from(t);
        if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
            return i$(t, e)
    }
}
function i$(t, e) {
    (e == null || e > t.length) && (e = t.length);
    for (var n = 0, r = new Array(e); n < e; n++)
        r[n] = t[n];
    return r
}
function j1e(t, e) {
    var n = t == null ? null : typeof Symbol != "undefined" && t[Symbol.iterator] || t["@@iterator"];
    if (n != null) {
        var r = [], a = !0, i = !1, o, l;
        try {
            for (n = n.call(t); !(a = (o = n.next()).done) && (r.push(o.value),
            !(e && r.length === e)); a = !0)
                ;
        } catch (s) {
            i = !0,
            l = s
        } finally {
            try {
                !a && n.return != null && n.return()
            } finally {
                if (i)
                    throw l
            }
        }
        return r
    }
}
function W1e(t) {
    if (Array.isArray(t))
        return t
}
function _Z(t) {
    var e = wZ(t)
      , n = V1e(e, 2)
      , r = n[0]
      , a = n[1];
    return NO.setTwoToneColors({
        primaryColor: r,
        secondaryColor: a
    })
}
function G1e() {
    var t = NO.getTwoToneColors();
    return t.calculated ? [t.primaryColor, t.secondaryColor] : t.primaryColor
}
var K1e = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
function U1e(t, e) {
    return Z1e(t) || X1e(t, e) || q1e(t, e) || Y1e()
}
function Y1e() {
    throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
}
function q1e(t, e) {
    if (!!t) {
        if (typeof t == "string")
            return o$(t, e);
        var n = Object.prototype.toString.call(t).slice(8, -1);
        if (n === "Object" && t.constructor && (n = t.constructor.name),
        n === "Map" || n === "Set")
            return Array.from(t);
        if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
            return o$(t, e)
    }
}
function o$(t, e) {
    (e == null || e > t.length) && (e = t.length);
    for (var n = 0, r = new Array(e); n < e; n++)
        r[n] = t[n];
    return r
}
function X1e(t, e) {
    var n = t == null ? null : typeof Symbol != "undefined" && t[Symbol.iterator] || t["@@iterator"];
    if (n != null) {
        var r = [], a = !0, i = !1, o, l;
        try {
            for (n = n.call(t); !(a = (o = n.next()).done) && (r.push(o.value),
            !(e && r.length === e)); a = !0)
                ;
        } catch (s) {
            i = !0,
            l = s
        } finally {
            try {
                !a && n.return != null && n.return()
            } finally {
                if (i)
                    throw l
            }
        }
        return r
    }
}
function Z1e(t) {
    if (Array.isArray(t))
        return t
}
function l$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            vM(t, a, n[a])
        })
    }
    return t
}
function vM(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
function Q1e(t, e) {
    if (t == null)
        return {};
    var n = J1e(t, e), r, a;
    if (Object.getOwnPropertySymbols) {
        var i = Object.getOwnPropertySymbols(t);
        for (a = 0; a < i.length; a++)
            r = i[a],
            !(e.indexOf(r) >= 0) && (!Object.prototype.propertyIsEnumerable.call(t, r) || (n[r] = t[r]))
    }
    return n
}
function J1e(t, e) {
    if (t == null)
        return {};
    var n = {}, r = Object.keys(t), a, i;
    for (i = 0; i < r.length; i++)
        a = r[i],
        !(e.indexOf(a) >= 0) && (n[a] = t[a]);
    return n
}
_Z("#1890ff");
var hh = function(e, n) {
    var r, a = l$({}, e, n.attrs), i = a.class, o = a.icon, l = a.spin, s = a.rotate, u = a.tabindex, c = a.twoToneColor, f = a.onClick, d = Q1e(a, K1e), v = (r = {
        anticon: !0
    },
    vM(r, "anticon-".concat(o.name), Boolean(o.name)),
    vM(r, i, i),
    r), h = l === "" || !!l || o.name === "loading" ? "anticon-spin" : "", p = u;
    p === void 0 && f && (p = -1,
    d.tabindex = p);
    var g = s ? {
        msTransform: "rotate(".concat(s, "deg)"),
        transform: "rotate(".concat(s, "deg)")
    } : void 0
      , m = wZ(c)
      , y = U1e(m, 2)
      , b = y[0]
      , x = y[1];
    return _("span", l$({
        role: "img",
        "aria-label": o.name
    }, d, {
        onClick: f,
        class: v
    }), [_(NO, {
        class: h,
        icon: o,
        primaryColor: b,
        secondaryColor: x,
        style: g
    }, null)])
};
hh.props = {
    spin: Boolean,
    rotate: Number,
    icon: Object,
    twoToneColor: String
};
hh.displayName = "AntdIcon";
hh.inheritAttrs = !1;
hh.getTwoToneColor = G1e;
hh.setTwoToneColor = _Z;
const lt = hh;
function s$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            ebe(t, a, n[a])
        })
    }
    return t
}
function ebe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var $O = function(e, n) {
    var r = s$({}, e, n.attrs);
    return _(lt, s$({}, r, {
        icon: f1e
    }), null)
};
$O.displayName = "LoadingOutlined";
$O.inheritAttrs = !1;
const Co = $O;
var tbe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
            }
        }]
    },
    name: "exclamation-circle",
    theme: "filled"
};
const nbe = tbe;
function u$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            rbe(t, a, n[a])
        })
    }
    return t
}
function rbe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var FO = function(e, n) {
    var r = u$({}, e, n.attrs);
    return _(lt, u$({}, r, {
        icon: nbe
    }), null)
};
FO.displayName = "ExclamationCircleFilled";
FO.inheritAttrs = !1;
const gm = FO;
var abe = {
    icon: {
        tag: "svg",
        attrs: {
            "fill-rule": "evenodd",
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"
            }
        }]
    },
    name: "close-circle",
    theme: "filled"
};
const ibe = abe;
function c$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            obe(t, a, n[a])
        })
    }
    return t
}
function obe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var BO = function(e, n) {
    var r = c$({}, e, n.attrs);
    return _(lt, c$({}, r, {
        icon: ibe
    }), null)
};
BO.displayName = "CloseCircleFilled";
BO.inheritAttrs = !1;
const ms = BO;
var lbe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"
            }
        }]
    },
    name: "check-circle",
    theme: "filled"
};
const sbe = lbe;
function f$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            ube(t, a, n[a])
        })
    }
    return t
}
function ube(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var VO = function(e, n) {
    var r = f$({}, e, n.attrs);
    return _(lt, f$({}, r, {
        icon: sbe
    }), null)
};
VO.displayName = "CheckCircleFilled";
VO.inheritAttrs = !1;
const mm = VO;
var cbe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
            }
        }]
    },
    name: "info-circle",
    theme: "filled"
};
const fbe = cbe;
function d$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            dbe(t, a, n[a])
        })
    }
    return t
}
function dbe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var zO = function(e, n) {
    var r = d$({}, e, n.attrs);
    return _(lt, d$({}, r, {
        icon: fbe
    }), null)
};
zO.displayName = "InfoCircleFilled";
zO.inheritAttrs = !1;
const TZ = zO;
var PZ = 3, MZ, wa, vbe = 1, AZ = "", IZ = "move-up", kZ = !1, OZ = function() {
    return document.body
}, DZ, EZ = !1;
function hbe() {
    return vbe++
}
function pbe(t) {
    t.top !== void 0 && (MZ = t.top,
    wa = null),
    t.duration !== void 0 && (PZ = t.duration),
    t.prefixCls !== void 0 && (AZ = t.prefixCls),
    t.getContainer !== void 0 && (OZ = t.getContainer,
    wa = null),
    t.transitionName !== void 0 && (IZ = t.transitionName,
    wa = null,
    kZ = !0),
    t.maxCount !== void 0 && (DZ = t.maxCount,
    wa = null),
    t.rtl !== void 0 && (EZ = t.rtl)
}
function gbe(t, e) {
    if (wa) {
        e(wa);
        return
    }
    yZ.newInstance({
        appContext: t.appContext,
        prefixCls: t.prefixCls || AZ,
        rootPrefixCls: t.rootPrefixCls,
        transitionName: IZ,
        hasTransitionName: kZ,
        style: {
            top: MZ
        },
        getContainer: OZ || t.getPopupContainer,
        maxCount: DZ,
        name: "message"
    }, function(n) {
        if (wa) {
            e(wa);
            return
        }
        wa = n,
        e(n)
    })
}
var mbe = {
    info: TZ,
    success: mm,
    error: ms,
    warning: gm,
    loading: Co
};
function ybe(t) {
    var e = t.duration !== void 0 ? t.duration : PZ
      , n = t.key || hbe()
      , r = new Promise(function(i) {
        var o = function() {
            return typeof t.onClose == "function" && t.onClose(),
            i(!0)
        };
        gbe(t, function(l) {
            l.notice({
                key: n,
                duration: e,
                style: t.style || {},
                class: t.class,
                content: function(u) {
                    var c, f = u.prefixCls, d = mbe[t.type], v = d ? _(d, null, null) : "", h = he("".concat(f, "-custom-content"), (c = {},
                    z(c, "".concat(f, "-").concat(t.type), t.type),
                    z(c, "".concat(f, "-rtl"), EZ === !0),
                    c));
                    return _("div", {
                        class: h
                    }, [typeof t.icon == "function" ? t.icon() : t.icon || v, _("span", null, [typeof t.content == "function" ? t.content() : t.content])])
                },
                onClose: o,
                onClick: t.onClick
            })
        })
    }
    )
      , a = function() {
        wa && wa.removeNotice(n)
    };
    return a.then = function(i, o) {
        return r.then(i, o)
    }
    ,
    a.promise = r,
    a
}
function bbe(t) {
    return Object.prototype.toString.call(t) === "[object Object]" && !!t.content
}
var Ix = {
    open: ybe,
    config: pbe,
    destroy: function(e) {
        if (wa)
            if (e) {
                var n = wa
                  , r = n.removeNotice;
                r(e)
            } else {
                var a = wa
                  , i = a.destroy;
                i(),
                wa = null
            }
    }
};
function xbe(t, e) {
    t[e] = function(n, r, a) {
        return bbe(n) ? t.open(I(I({}, n), {}, {
            type: e
        })) : (typeof r == "function" && (a = r,
        r = void 0),
        t.open({
            content: n,
            duration: r,
            type: e,
            onClose: a
        }))
    }
}
["success", "info", "warning", "error", "loading"].forEach(function(t) {
    return xbe(Ix, t)
});
Ix.warn = Ix.warning;
const HO = Ix;
function v$(t, e, n, r, a, i, o) {
    try {
        var l = t[i](o)
          , s = l.value
    } catch (u) {
        n(u);
        return
    }
    l.done ? e(s) : Promise.resolve(s).then(r, a)
}
function Kf(t) {
    return function() {
        var e = this
          , n = arguments;
        return new Promise(function(r, a) {
            var i = t.apply(e, n);
            function o(s) {
                v$(i, r, a, o, l, "next", s)
            }
            function l(s) {
                v$(i, r, a, o, l, "throw", s)
            }
            o(void 0)
        }
        )
    }
}
var LZ = {
    exports: {}
}
  , RZ = {
    exports: {}
};
(function(t) {
    function e(n) {
        return t.exports = e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
            return typeof r
        }
        : function(r) {
            return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r
        }
        ,
        t.exports.__esModule = !0,
        t.exports.default = t.exports,
        e(n)
    }
    t.exports = e,
    t.exports.__esModule = !0,
    t.exports.default = t.exports
}
)(RZ);
(function(t) {
    var e = RZ.exports.default;
    function n() {
        t.exports = n = function() {
            return r
        }
        ,
        t.exports.__esModule = !0,
        t.exports.default = t.exports;
        var r = {}
          , a = Object.prototype
          , i = a.hasOwnProperty
          , o = Object.defineProperty || function(D, E, L) {
            D[E] = L.value
        }
          , l = typeof Symbol == "function" ? Symbol : {}
          , s = l.iterator || "@@iterator"
          , u = l.asyncIterator || "@@asyncIterator"
          , c = l.toStringTag || "@@toStringTag";
        function f(D, E, L) {
            return Object.defineProperty(D, E, {
                value: L,
                enumerable: !0,
                configurable: !0,
                writable: !0
            }),
            D[E]
        }
        try {
            f({}, "")
        } catch (D) {
            f = function(L, N, R) {
                return L[N] = R
            }
        }
        function d(D, E, L, N) {
            var R = E && E.prototype instanceof p ? E : p
              , $ = Object.create(R.prototype)
              , W = new O(N || []);
            return o($, "_invoke", {
                value: T(D, L, W)
            }),
            $
        }
        function v(D, E, L) {
            try {
                return {
                    type: "normal",
                    arg: D.call(E, L)
                }
            } catch (N) {
                return {
                    type: "throw",
                    arg: N
                }
            }
        }
        r.wrap = d;
        var h = {};
        function p() {}
        function g() {}
        function m() {}
        var y = {};
        f(y, s, function() {
            return this
        });
        var b = Object.getPrototypeOf
          , x = b && b(b(k([])));
        x && x !== a && i.call(x, s) && (y = x);
        var C = m.prototype = p.prototype = Object.create(y);
        function S(D) {
            ["next", "throw", "return"].forEach(function(E) {
                f(D, E, function(L) {
                    return this._invoke(E, L)
                })
            })
        }
        function w(D, E) {
            function L(R, $, W, B) {
                var G = v(D[R], D, $);
                if (G.type !== "throw") {
                    var K = G.arg
                      , V = K.value;
                    return V && e(V) == "object" && i.call(V, "__await") ? E.resolve(V.__await).then(function(U) {
                        L("next", U, W, B)
                    }, function(U) {
                        L("throw", U, W, B)
                    }) : E.resolve(V).then(function(U) {
                        K.value = U,
                        W(K)
                    }, function(U) {
                        return L("throw", U, W, B)
                    })
                }
                B(G.arg)
            }
            var N;
            o(this, "_invoke", {
                value: function($, W) {
                    function B() {
                        return new E(function(G, K) {
                            L($, W, G, K)
                        }
                        )
                    }
                    return N = N ? N.then(B, B) : B()
                }
            })
        }
        function T(D, E, L) {
            var N = "suspendedStart";
            return function(R, $) {
                if (N === "executing")
                    throw new Error("Generator is already running");
                if (N === "completed") {
                    if (R === "throw")
                        throw $;
                    return {
                        value: void 0,
                        done: !0
                    }
                }
                for (L.method = R,
                L.arg = $; ; ) {
                    var W = L.delegate;
                    if (W) {
                        var B = P(W, L);
                        if (B) {
                            if (B === h)
                                continue;
                            return B
                        }
                    }
                    if (L.method === "next")
                        L.sent = L._sent = L.arg;
                    else if (L.method === "throw") {
                        if (N === "suspendedStart")
                            throw N = "completed",
                            L.arg;
                        L.dispatchException(L.arg)
                    } else
                        L.method === "return" && L.abrupt("return", L.arg);
                    N = "executing";
                    var G = v(D, E, L);
                    if (G.type === "normal") {
                        if (N = L.done ? "completed" : "suspendedYield",
                        G.arg === h)
                            continue;
                        return {
                            value: G.arg,
                            done: L.done
                        }
                    }
                    G.type === "throw" && (N = "completed",
                    L.method = "throw",
                    L.arg = G.arg)
                }
            }
        }
        function P(D, E) {
            var L = E.method
              , N = D.iterator[L];
            if (N === void 0)
                return E.delegate = null,
                L === "throw" && D.iterator.return && (E.method = "return",
                E.arg = void 0,
                P(D, E),
                E.method === "throw") || L !== "return" && (E.method = "throw",
                E.arg = new TypeError("The iterator does not provide a '" + L + "' method")),
                h;
            var R = v(N, D.iterator, E.arg);
            if (R.type === "throw")
                return E.method = "throw",
                E.arg = R.arg,
                E.delegate = null,
                h;
            var $ = R.arg;
            return $ ? $.done ? (E[D.resultName] = $.value,
            E.next = D.nextLoc,
            E.method !== "return" && (E.method = "next",
            E.arg = void 0),
            E.delegate = null,
            h) : $ : (E.method = "throw",
            E.arg = new TypeError("iterator result is not an object"),
            E.delegate = null,
            h)
        }
        function M(D) {
            var E = {
                tryLoc: D[0]
            };
            1 in D && (E.catchLoc = D[1]),
            2 in D && (E.finallyLoc = D[2],
            E.afterLoc = D[3]),
            this.tryEntries.push(E)
        }
        function A(D) {
            var E = D.completion || {};
            E.type = "normal",
            delete E.arg,
            D.completion = E
        }
        function O(D) {
            this.tryEntries = [{
                tryLoc: "root"
            }],
            D.forEach(M, this),
            this.reset(!0)
        }
        function k(D) {
            if (D || D === "") {
                var E = D[s];
                if (E)
                    return E.call(D);
                if (typeof D.next == "function")
                    return D;
                if (!isNaN(D.length)) {
                    var L = -1
                      , N = function R() {
                        for (; ++L < D.length; )
                            if (i.call(D, L))
                                return R.value = D[L],
                                R.done = !1,
                                R;
                        return R.value = void 0,
                        R.done = !0,
                        R
                    };
                    return N.next = N
                }
            }
            throw new TypeError(e(D) + " is not iterable")
        }
        return g.prototype = m,
        o(C, "constructor", {
            value: m,
            configurable: !0
        }),
        o(m, "constructor", {
            value: g,
            configurable: !0
        }),
        g.displayName = f(m, c, "GeneratorFunction"),
        r.isGeneratorFunction = function(D) {
            var E = typeof D == "function" && D.constructor;
            return !!E && (E === g || (E.displayName || E.name) === "GeneratorFunction")
        }
        ,
        r.mark = function(D) {
            return Object.setPrototypeOf ? Object.setPrototypeOf(D, m) : (D.__proto__ = m,
            f(D, c, "GeneratorFunction")),
            D.prototype = Object.create(C),
            D
        }
        ,
        r.awrap = function(D) {
            return {
                __await: D
            }
        }
        ,
        S(w.prototype),
        f(w.prototype, u, function() {
            return this
        }),
        r.AsyncIterator = w,
        r.async = function(D, E, L, N, R) {
            R === void 0 && (R = Promise);
            var $ = new w(d(D, E, L, N),R);
            return r.isGeneratorFunction(E) ? $ : $.next().then(function(W) {
                return W.done ? W.value : $.next()
            })
        }
        ,
        S(C),
        f(C, c, "Generator"),
        f(C, s, function() {
            return this
        }),
        f(C, "toString", function() {
            return "[object Generator]"
        }),
        r.keys = function(D) {
            var E = Object(D)
              , L = [];
            for (var N in E)
                L.push(N);
            return L.reverse(),
            function R() {
                for (; L.length; ) {
                    var $ = L.pop();
                    if ($ in E)
                        return R.value = $,
                        R.done = !1,
                        R
                }
                return R.done = !0,
                R
            }
        }
        ,
        r.values = k,
        O.prototype = {
            constructor: O,
            reset: function(E) {
                if (this.prev = 0,
                this.next = 0,
                this.sent = this._sent = void 0,
                this.done = !1,
                this.delegate = null,
                this.method = "next",
                this.arg = void 0,
                this.tryEntries.forEach(A),
                !E)
                    for (var L in this)
                        L.charAt(0) === "t" && i.call(this, L) && !isNaN(+L.slice(1)) && (this[L] = void 0)
            },
            stop: function() {
                this.done = !0;
                var E = this.tryEntries[0].completion;
                if (E.type === "throw")
                    throw E.arg;
                return this.rval
            },
            dispatchException: function(E) {
                if (this.done)
                    throw E;
                var L = this;
                function N(K, V) {
                    return W.type = "throw",
                    W.arg = E,
                    L.next = K,
                    V && (L.method = "next",
                    L.arg = void 0),
                    !!V
                }
                for (var R = this.tryEntries.length - 1; R >= 0; --R) {
                    var $ = this.tryEntries[R]
                      , W = $.completion;
                    if ($.tryLoc === "root")
                        return N("end");
                    if ($.tryLoc <= this.prev) {
                        var B = i.call($, "catchLoc")
                          , G = i.call($, "finallyLoc");
                        if (B && G) {
                            if (this.prev < $.catchLoc)
                                return N($.catchLoc, !0);
                            if (this.prev < $.finallyLoc)
                                return N($.finallyLoc)
                        } else if (B) {
                            if (this.prev < $.catchLoc)
                                return N($.catchLoc, !0)
                        } else {
                            if (!G)
                                throw new Error("try statement without catch or finally");
                            if (this.prev < $.finallyLoc)
                                return N($.finallyLoc)
                        }
                    }
                }
            },
            abrupt: function(E, L) {
                for (var N = this.tryEntries.length - 1; N >= 0; --N) {
                    var R = this.tryEntries[N];
                    if (R.tryLoc <= this.prev && i.call(R, "finallyLoc") && this.prev < R.finallyLoc) {
                        var $ = R;
                        break
                    }
                }
                $ && (E === "break" || E === "continue") && $.tryLoc <= L && L <= $.finallyLoc && ($ = null);
                var W = $ ? $.completion : {};
                return W.type = E,
                W.arg = L,
                $ ? (this.method = "next",
                this.next = $.finallyLoc,
                h) : this.complete(W)
            },
            complete: function(E, L) {
                if (E.type === "throw")
                    throw E.arg;
                return E.type === "break" || E.type === "continue" ? this.next = E.arg : E.type === "return" ? (this.rval = this.arg = E.arg,
                this.method = "return",
                this.next = "end") : E.type === "normal" && L && (this.next = L),
                h
            },
            finish: function(E) {
                for (var L = this.tryEntries.length - 1; L >= 0; --L) {
                    var N = this.tryEntries[L];
                    if (N.finallyLoc === E)
                        return this.complete(N.completion, N.afterLoc),
                        A(N),
                        h
                }
            },
            catch: function(E) {
                for (var L = this.tryEntries.length - 1; L >= 0; --L) {
                    var N = this.tryEntries[L];
                    if (N.tryLoc === E) {
                        var R = N.completion;
                        if (R.type === "throw") {
                            var $ = R.arg;
                            A(N)
                        }
                        return $
                    }
                }
                throw new Error("illegal catch attempt")
            },
            delegateYield: function(E, L, N) {
                return this.delegate = {
                    iterator: k(E),
                    resultName: L,
                    nextLoc: N
                },
                this.method === "next" && (this.arg = void 0),
                h
            }
        },
        r
    }
    t.exports = n,
    t.exports.__esModule = !0,
    t.exports.default = t.exports
}
)(LZ);
var db = LZ.exports()
  , Ha = db;
try {
    regeneratorRuntime = db
} catch (t) {
    typeof globalThis == "object" ? globalThis.regeneratorRuntime = db : Function("r", "regeneratorRuntime = r")(db)
}
var Sbe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"
            }
        }, {
            tag: "path",
            attrs: {
                d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
            }
        }]
    },
    name: "check-circle",
    theme: "outlined"
};
const Cbe = Sbe;
function h$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            wbe(t, a, n[a])
        })
    }
    return t
}
function wbe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var jO = function(e, n) {
    var r = h$({}, e, n.attrs);
    return _(lt, h$({}, r, {
        icon: Cbe
    }), null)
};
jO.displayName = "CheckCircleOutlined";
jO.inheritAttrs = !1;
const WO = jO;
var _be = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
            }
        }, {
            tag: "path",
            attrs: {
                d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"
            }
        }]
    },
    name: "info-circle",
    theme: "outlined"
};
const Tbe = _be;
function p$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            Pbe(t, a, n[a])
        })
    }
    return t
}
function Pbe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var GO = function(e, n) {
    var r = p$({}, e, n.attrs);
    return _(lt, p$({}, r, {
        icon: Tbe
    }), null)
};
GO.displayName = "InfoCircleOutlined";
GO.inheritAttrs = !1;
const KO = GO;
var Mbe = {
    icon: {
        tag: "svg",
        attrs: {
            "fill-rule": "evenodd",
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"
            }
        }]
    },
    name: "close-circle",
    theme: "outlined"
};
const Abe = Mbe;
function g$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            Ibe(t, a, n[a])
        })
    }
    return t
}
function Ibe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var UO = function(e, n) {
    var r = g$({}, e, n.attrs);
    return _(lt, g$({}, r, {
        icon: Abe
    }), null)
};
UO.displayName = "CloseCircleOutlined";
UO.inheritAttrs = !1;
const YO = UO;
var kbe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
            }
        }, {
            tag: "path",
            attrs: {
                d: "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"
            }
        }]
    },
    name: "exclamation-circle",
    theme: "outlined"
};
const Obe = kbe;
function m$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            Dbe(t, a, n[a])
        })
    }
    return t
}
function Dbe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var qO = function(e, n) {
    var r = m$({}, e, n.attrs);
    return _(lt, m$({}, r, {
        icon: Obe
    }), null)
};
qO.displayName = "ExclamationCircleOutlined";
qO.inheritAttrs = !1;
const HC = qO;
var Ebe = {
    icon: {
        tag: "svg",
        attrs: {
            "fill-rule": "evenodd",
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"
            }
        }]
    },
    name: "close",
    theme: "outlined"
};
const Lbe = Ebe;
function y$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            Rbe(t, a, n[a])
        })
    }
    return t
}
function Rbe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var XO = function(e, n) {
    var r = y$({}, e, n.attrs);
    return _(lt, y$({}, r, {
        icon: Lbe
    }), null)
};
XO.displayName = "CloseOutlined";
XO.inheritAttrs = !1;
const Sl = XO;
var jc = {}, NZ = 4.5, $Z = "24px", FZ = "24px", hM = "", BZ = "topRight", VZ = function() {
    return document.body
}, zZ = null, pM = !1, HZ;
function Nbe(t) {
    var e = t.duration
      , n = t.placement
      , r = t.bottom
      , a = t.top
      , i = t.getContainer
      , o = t.closeIcon
      , l = t.prefixCls;
    l !== void 0 && (hM = l),
    e !== void 0 && (NZ = e),
    n !== void 0 && (BZ = n),
    r !== void 0 && (FZ = typeof r == "number" ? "".concat(r, "px") : r),
    a !== void 0 && ($Z = typeof a == "number" ? "".concat(a, "px") : a),
    i !== void 0 && (VZ = i),
    o !== void 0 && (zZ = o),
    t.rtl !== void 0 && (pM = t.rtl),
    t.maxCount !== void 0 && (HZ = t.maxCount)
}
function $be(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $Z, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : FZ, r;
    switch (t) {
    case "topLeft":
        r = {
            left: "0px",
            top: e,
            bottom: "auto"
        };
        break;
    case "topRight":
        r = {
            right: "0px",
            top: e,
            bottom: "auto"
        };
        break;
    case "bottomLeft":
        r = {
            left: "0px",
            top: "auto",
            bottom: n
        };
        break;
    default:
        r = {
            right: "0px",
            top: "auto",
            bottom: n
        };
        break
    }
    return r
}
function Fbe(t, e) {
    var n = t.prefixCls
      , r = t.placement
      , a = r === void 0 ? BZ : r
      , i = t.getContainer
      , o = i === void 0 ? VZ : i
      , l = t.top
      , s = t.bottom
      , u = t.closeIcon
      , c = u === void 0 ? zZ : u
      , f = t.appContext
      , d = Qbe()
      , v = d.getPrefixCls
      , h = v("notification", n || hM)
      , p = "".concat(h, "-").concat(a, "-").concat(pM)
      , g = jc[p];
    if (g) {
        Promise.resolve(g).then(function(y) {
            e(y)
        });
        return
    }
    var m = he("".concat(h, "-").concat(a), z({}, "".concat(h, "-rtl"), pM === !0));
    yZ.newInstance({
        name: "notification",
        prefixCls: n || hM,
        class: m,
        style: $be(a, l, s),
        appContext: f,
        getContainer: o,
        closeIcon: function(b) {
            var x = b.prefixCls
              , C = _("span", {
                class: "".concat(x, "-close-x")
            }, [Vp(c, {}, _(Sl, {
                class: "".concat(x, "-close-icon")
            }, null))]);
            return C
        },
        maxCount: HZ,
        hasTransitionName: !0
    }, function(y) {
        jc[p] = y,
        e(y)
    })
}
var Bbe = {
    success: WO,
    info: KO,
    error: YO,
    warning: HC
};
function Vbe(t) {
    var e = t.icon
      , n = t.type
      , r = t.description
      , a = t.message
      , i = t.btn
      , o = t.duration === void 0 ? NZ : t.duration;
    Fbe(t, function(l) {
        l.notice({
            content: function(u) {
                var c = u.prefixCls
                  , f = "".concat(c, "-notice")
                  , d = null;
                if (e)
                    d = function() {
                        return _("span", {
                            class: "".concat(f, "-icon")
                        }, [Vp(e)])
                    }
                    ;
                else if (n) {
                    var v = Bbe[n];
                    d = function() {
                        return _(v, {
                            class: "".concat(f, "-icon ").concat(f, "-icon-").concat(n)
                        }, null)
                    }
                }
                return _("div", {
                    class: d ? "".concat(f, "-with-icon") : ""
                }, [d && d(), _("div", {
                    class: "".concat(f, "-message")
                }, [!r && d ? _("span", {
                    class: "".concat(f, "-message-single-line-auto-margin")
                }, null) : null, Vp(a)]), _("div", {
                    class: "".concat(f, "-description")
                }, [Vp(r)]), i ? _("span", {
                    class: "".concat(f, "-btn")
                }, [Vp(i)]) : null])
            },
            duration: o,
            closable: !0,
            onClose: t.onClose,
            onClick: t.onClick,
            key: t.key,
            style: t.style || {},
            class: t.class
        })
    })
}
var u0 = {
    open: Vbe,
    close: function(e) {
        Object.keys(jc).forEach(function(n) {
            return Promise.resolve(jc[n]).then(function(r) {
                r.removeNotice(e)
            })
        })
    },
    config: Nbe,
    destroy: function() {
        Object.keys(jc).forEach(function(e) {
            Promise.resolve(jc[e]).then(function(n) {
                n.destroy()
            }),
            delete jc[e]
        })
    }
}
  , zbe = ["success", "info", "warning", "error"];
zbe.forEach(function(t) {
    u0[t] = function(e) {
        return u0.open(I(I({}, e), {}, {
            type: t
        }))
    }
});
u0.warn = u0.warning;
const ZO = u0;
function Uf() {
    return !!(typeof window != "undefined" && window.document && window.document.createElement)
}
var Hbe = "vc-util-key";
function jZ() {
    var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}
      , e = t.mark;
    return e ? e.startsWith("data-") ? e : "data-".concat(e) : Hbe
}
function QO(t) {
    if (t.attachTo)
        return t.attachTo;
    var e = document.querySelector("head");
    return e || document.body
}
function b$(t) {
    var e, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
    if (!Uf())
        return null;
    var r = document.createElement("style");
    if ((e = n.csp) !== null && e !== void 0 && e.nonce) {
        var a;
        r.nonce = (a = n.csp) === null || a === void 0 ? void 0 : a.nonce
    }
    r.innerHTML = t;
    var i = QO(n)
      , o = i.firstChild;
    return n.prepend && i.prepend ? i.prepend(r) : n.prepend && o ? i.insertBefore(r, o) : i.appendChild(r),
    r
}
var gM = new Map;
function jbe(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , n = QO(e);
    return Array.from(gM.get(n).children).find(function(r) {
        return r.tagName === "STYLE" && r.getAttribute(jZ(e)) === t
    })
}
function Wbe(t, e) {
    var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}
      , r = QO(n);
    if (!gM.has(r)) {
        var a = b$("", n)
          , i = a.parentNode;
        gM.set(r, i),
        i.removeChild(a)
    }
    var o = jbe(e, n);
    if (o) {
        var l, s;
        if ((l = n.csp) !== null && l !== void 0 && l.nonce && o.nonce !== ((s = n.csp) === null || s === void 0 ? void 0 : s.nonce)) {
            var u;
            o.nonce = (u = n.csp) === null || u === void 0 ? void 0 : u.nonce
        }
        return o.innerHTML !== t && (o.innerHTML = t),
        o
    }
    var c = b$(t, n);
    return c.setAttribute(jZ(n), e),
    c
}
const sn = function(t, e, n) {
    gZ(t, "[ant-design-vue: ".concat(e, "] ").concat(n))
};
var Gbe = "-ant-".concat(Date.now(), "-").concat(Math.random());
function Kbe(t, e) {
    var n = {}
      , r = function(c, f) {
        var d = c.clone();
        return d = (f == null ? void 0 : f(d)) || d,
        d.toRgbString()
    }
      , a = function(c, f) {
        var d = new V_(c)
          , v = s0(d.toRgbString());
        n["".concat(f, "-color")] = r(d),
        n["".concat(f, "-color-disabled")] = v[1],
        n["".concat(f, "-color-hover")] = v[4],
        n["".concat(f, "-color-active")] = v[6],
        n["".concat(f, "-color-outline")] = d.clone().setAlpha(.2).toRgbString(),
        n["".concat(f, "-color-deprecated-bg")] = v[1],
        n["".concat(f, "-color-deprecated-border")] = v[3]
    };
    if (e.primaryColor) {
        a(e.primaryColor, "primary");
        var i = new V_(e.primaryColor)
          , o = s0(i.toRgbString());
        o.forEach(function(u, c) {
            n["primary-".concat(c + 1)] = u
        }),
        n["primary-color-deprecated-l-35"] = r(i, function(u) {
            return u.lighten(35)
        }),
        n["primary-color-deprecated-l-20"] = r(i, function(u) {
            return u.lighten(20)
        }),
        n["primary-color-deprecated-t-20"] = r(i, function(u) {
            return u.tint(20)
        }),
        n["primary-color-deprecated-t-50"] = r(i, function(u) {
            return u.tint(50)
        }),
        n["primary-color-deprecated-f-12"] = r(i, function(u) {
            return u.setAlpha(u.getAlpha() * .12)
        });
        var l = new V_(o[0]);
        n["primary-color-active-deprecated-f-30"] = r(l, function(u) {
            return u.setAlpha(u.getAlpha() * .3)
        }),
        n["primary-color-active-deprecated-d-02"] = r(l, function(u) {
            return u.darken(2)
        })
    }
    e.successColor && a(e.successColor, "success"),
    e.warningColor && a(e.warningColor, "warning"),
    e.errorColor && a(e.errorColor, "error"),
    e.infoColor && a(e.infoColor, "info");
    var s = Object.keys(n).map(function(u) {
        return "--".concat(t, "-").concat(u, ": ").concat(n[u], ";")
    });
    Uf() ? Wbe(`
  :root {
    `.concat(s.join(`
`), `
  }
  `), "".concat(Gbe, "-dynamic-theme")) : sn(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.")
}
var WZ = Symbol("GlobalFormContextKey")
  , Ube = function(e) {
    It(WZ, e)
}
  , Ybe = function() {
    return vt(WZ, {
        validateMessages: j(function() {})
    })
}
  , qbe = function() {
    return {
        getTargetContainer: {
            type: Function
        },
        getPopupContainer: {
            type: Function
        },
        prefixCls: String,
        getPrefixCls: {
            type: Function
        },
        renderEmpty: {
            type: Function
        },
        transformCellText: {
            type: Function
        },
        csp: {
            type: Object,
            default: void 0
        },
        input: {
            type: Object
        },
        autoInsertSpaceInButton: {
            type: Boolean,
            default: void 0
        },
        locale: {
            type: Object,
            default: void 0
        },
        pageHeader: {
            type: Object
        },
        componentSize: {
            type: String
        },
        direction: {
            type: String
        },
        space: {
            type: Object
        },
        virtual: {
            type: Boolean,
            default: void 0
        },
        dropdownMatchSelectWidth: {
            type: [Number, Boolean],
            default: !0
        },
        form: {
            type: Object,
            default: void 0
        },
        notUpdateGlobalConfig: Boolean
    }
}
  , Xbe = "ant";
function cv() {
    return Ra.prefixCls || Xbe
}
var mM = en({})
  , GZ = en({})
  , Ra = en({});
pt(function() {
    Wt(Ra, mM, GZ),
    Ra.prefixCls = cv(),
    Ra.getPrefixCls = function(t, e) {
        return e || (t ? "".concat(Ra.prefixCls, "-").concat(t) : Ra.prefixCls)
    }
    ,
    Ra.getRootPrefixCls = function(t, e) {
        return t || (Ra.prefixCls ? Ra.prefixCls : e && e.includes("-") ? e.replace(/^(.*)-[^-]*$/, "$1") : cv())
    }
});
var j_, Zbe = function(e) {
    j_ && j_(),
    j_ = pt(function() {
        Wt(GZ, en(e)),
        Wt(Ra, en(e))
    }),
    e.theme && Kbe(cv(), e.theme)
}, Qbe = function() {
    return {
        getPrefixCls: function(n, r) {
            return r || (n ? "".concat(cv(), "-").concat(n) : cv())
        },
        getRootPrefixCls: function(n, r) {
            return n || (Ra.prefixCls ? Ra.prefixCls : r && r.includes("-") ? r.replace(/^(.*)-[^-]*$/, "$1") : cv())
        }
    }
}, df = de({
    compatConfig: {
        MODE: 3
    },
    name: "AConfigProvider",
    inheritAttrs: !1,
    props: qbe(),
    setup: function(e, n) {
        var r = n.slots
          , a = function(f, d) {
            var v = e.prefixCls
              , h = v === void 0 ? "ant" : v;
            return d || (f ? "".concat(h, "-").concat(f) : h)
        }
          , i = function(f) {
            var d = e.renderEmpty || r.renderEmpty || hZ;
            return d(f)
        }
          , o = function(f, d) {
            var v = e.prefixCls;
            if (d)
                return d;
            var h = v || a("");
            return f ? "".concat(h, "-").concat(f) : h
        }
          , l = en(I(I({}, e), {}, {
            getPrefixCls: o,
            renderEmpty: i
        }));
        Object.keys(e).forEach(function(c) {
            Te(function() {
                return e[c]
            }, function() {
                l[c] = e[c]
            })
        }),
        e.notUpdateGlobalConfig || (Wt(mM, l),
        Te(l, function() {
            Wt(mM, l)
        }));
        var s = j(function() {
            var c = {};
            if (e.locale) {
                var f, d;
                c = ((f = e.locale.Form) === null || f === void 0 ? void 0 : f.defaultValidateMessages) || ((d = yo.Form) === null || d === void 0 ? void 0 : d.defaultValidateMessages) || {}
            }
            return e.form && e.form.validateMessages && (c = I(I({}, c), e.form.validateMessages)),
            c
        });
        Ube({
            validateMessages: s
        }),
        It("configProvider", l);
        var u = function(f) {
            var d;
            return _(mZ, {
                locale: e.locale || f,
                ANT_MARK__: lM
            }, {
                default: function() {
                    return [(d = r.default) === null || d === void 0 ? void 0 : d.call(r)]
                }
            })
        };
        return pt(function() {
            e.direction && (HO.config({
                rtl: e.direction === "rtl"
            }),
            ZO.config({
                rtl: e.direction === "rtl"
            }))
        }),
        function() {
            return _(ch, {
                children: function(f, d, v) {
                    return u(v)
                }
            }, null)
        }
    }
}), JO = en({
    getPrefixCls: function(e, n) {
        return n || (e ? "ant-".concat(e) : "ant")
    },
    renderEmpty: hZ,
    direction: "ltr"
});
df.config = Zbe;
df.install = function(t) {
    t.component(df.name, df)
}
;
const je = function(t, e) {
    var n = vt("configProvider", JO)
      , r = j(function() {
        return n.getPrefixCls(t, e.prefixCls)
    })
      , a = j(function() {
        var y;
        return (y = e.direction) !== null && y !== void 0 ? y : n.direction
    })
      , i = j(function() {
        return n.getPrefixCls()
    })
      , o = j(function() {
        return n.autoInsertSpaceInButton
    })
      , l = j(function() {
        return n.renderEmpty
    })
      , s = j(function() {
        return n.space
    })
      , u = j(function() {
        return n.pageHeader
    })
      , c = j(function() {
        return n.form
    })
      , f = j(function() {
        return e.getTargetContainer || n.getTargetContainer
    })
      , d = j(function() {
        return e.getPopupContainer || n.getPopupContainer
    })
      , v = j(function() {
        var y;
        return (y = e.dropdownMatchSelectWidth) !== null && y !== void 0 ? y : n.dropdownMatchSelectWidth
    })
      , h = j(function() {
        return (e.virtual === void 0 ? n.virtual !== !1 : e.virtual !== !1) && v.value !== !1
    })
      , p = j(function() {
        return e.size || n.componentSize
    })
      , g = j(function() {
        var y;
        return e.autocomplete || ((y = n.input) === null || y === void 0 ? void 0 : y.autocomplete)
    })
      , m = j(function() {
        return n.csp
    });
    return {
        configProvider: n,
        prefixCls: r,
        direction: a,
        size: p,
        getTargetContainer: f,
        getPopupContainer: d,
        space: s,
        pageHeader: u,
        form: c,
        autoInsertSpaceInButton: o,
        renderEmpty: l,
        virtual: h,
        dropdownMatchSelectWidth: v,
        rootPrefixCls: i,
        getPrefixCls: n.getPrefixCls,
        autocomplete: g,
        csp: m
    }
};
function Et(t, e) {
    for (var n = Wt({}, t), r = 0; r < e.length; r += 1) {
        var a = e[r];
        delete n[a]
    }
    return n
}
function Jbe() {
    return typeof window != "undefined" ? window : null
}
var Jd;
(function(t) {
    t[t.None = 0] = "None",
    t[t.Prepare = 1] = "Prepare"
}
)(Jd || (Jd = {}));
var exe = function() {
    return {
        offsetTop: Number,
        offsetBottom: Number,
        target: {
            type: Function,
            default: Jbe
        },
        prefixCls: String,
        onChange: Function,
        onTestUpdatePosition: Function
    }
}
  , txe = de({
    compatConfig: {
        MODE: 3
    },
    name: "AAffix",
    props: exe(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = n.expose
          , o = Q()
          , l = Q()
          , s = en({
            affixStyle: void 0,
            placeholderStyle: void 0,
            status: Jd.None,
            lastAffix: !1,
            prevTarget: null,
            timeout: null
        })
          , u = qn()
          , c = j(function() {
            return e.offsetBottom === void 0 && e.offsetTop === void 0 ? 0 : e.offsetTop
        })
          , f = j(function() {
            return e.offsetBottom
        })
          , d = function() {
            var b = s.status
              , x = s.lastAffix
              , C = e.target;
            if (!(b !== Jd.Prepare || !l.value || !o.value || !C)) {
                var S = C();
                if (!!S) {
                    var w = {
                        status: Jd.None
                    }
                      , T = wy(S)
                      , P = wy(o.value)
                      , M = $7(P, T, c.value)
                      , A = F7(P, T, f.value);
                    M !== void 0 ? (w.affixStyle = {
                        position: "fixed",
                        top: M,
                        width: P.width + "px",
                        height: P.height + "px"
                    },
                    w.placeholderStyle = {
                        width: P.width + "px",
                        height: P.height + "px"
                    }) : A !== void 0 && (w.affixStyle = {
                        position: "fixed",
                        bottom: A,
                        width: P.width + "px",
                        height: P.height + "px"
                    },
                    w.placeholderStyle = {
                        width: P.width + "px",
                        height: P.height + "px"
                    }),
                    w.lastAffix = !!w.affixStyle,
                    x !== w.lastAffix && a("change", w.lastAffix),
                    Wt(s, w)
                }
            }
        }
          , v = function() {
            Wt(s, {
                status: Jd.Prepare,
                affixStyle: void 0,
                placeholderStyle: void 0
            }),
            u.update()
        }
          , h = oM(function() {
            v()
        })
          , p = oM(function() {
            var y = e.target
              , b = s.affixStyle;
            if (y && b) {
                var x = y();
                if (x && o.value) {
                    var C = wy(x)
                      , S = wy(o.value)
                      , w = $7(S, C, c.value)
                      , T = F7(S, C, f.value);
                    if (w !== void 0 && b.top === w || T !== void 0 && b.bottom === T)
                        return
                }
            }
            v()
        });
        i({
            updatePosition: h,
            lazyUpdatePosition: p
        }),
        Te(function() {
            return e.target
        }, function(y) {
            var b = (y == null ? void 0 : y()) || null;
            s.prevTarget !== b && (V7(u),
            b && (B7(b, u),
            h()),
            s.prevTarget = b)
        }),
        Te(function() {
            return [e.offsetTop, e.offsetBottom]
        }, h),
        ct(function() {
            var y = e.target;
            y && (s.timeout = setTimeout(function() {
                B7(y(), u),
                h()
            }))
        }),
        ua(function() {
            d()
        }),
        dr(function() {
            clearTimeout(s.timeout),
            V7(u),
            h.cancel(),
            p.cancel()
        });
        var g = je("affix", e)
          , m = g.prefixCls;
        return function() {
            var y, b = s.affixStyle, x = s.placeholderStyle, C = he(z({}, m.value, b)), S = Et(e, ["prefixCls", "offsetTop", "offsetBottom", "target", "onChange", "onTestUpdatePosition"]);
            return _(Vi, {
                onResize: h
            }, {
                default: function() {
                    return [_("div", I(I({}, S), {}, {
                        style: x,
                        ref: o
                    }), [_("div", {
                        class: C,
                        ref: l,
                        style: b
                    }, [(y = r.default) === null || y === void 0 ? void 0 : y.call(r)])])]
                }
            })
        }
    }
});
const KZ = Jn(txe);
function yM(t) {
    return t != null && t === t.window
}
function eD(t, e) {
    if (typeof window == "undefined")
        return 0;
    var n = e ? "scrollTop" : "scrollLeft"
      , r = 0;
    if (yM(t) ? r = t[e ? "pageYOffset" : "pageXOffset"] : t instanceof Document ? r = t.documentElement[n] : t && (r = t[n]),
    t && !yM(t) && typeof r != "number") {
        var a;
        r = (a = (t.ownerDocument || t).documentElement) === null || a === void 0 ? void 0 : a[n]
    }
    return r
}
function nxe(t, e, n, r) {
    var a = n - e;
    return t /= r / 2,
    t < 1 ? a / 2 * t * t * t + e : a / 2 * ((t -= 2) * t * t + 2) + e
}
function tD(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , n = e.getContainer
      , r = n === void 0 ? function() {
        return window
    }
    : n
      , a = e.callback
      , i = e.duration
      , o = i === void 0 ? 450 : i
      , l = r()
      , s = eD(l, !0)
      , u = Date.now()
      , c = function f() {
        var d = Date.now()
          , v = d - u
          , h = nxe(v > o ? o : v, s, t, o);
        yM(l) ? l.scrollTo(window.pageXOffset, h) : l instanceof HTMLDocument || l.constructor.name === "HTMLDocument" ? l.documentElement.scrollTop = h : l.scrollTop = h,
        v < o ? gt(f) : typeof a == "function" && a()
    };
    gt(c)
}
function Ay() {}
var UZ = Symbol("anchorContextKey")
  , rxe = function(e) {
    It(UZ, e)
}
  , axe = function() {
    return vt(UZ, {
        registerLink: Ay,
        unregisterLink: Ay,
        scrollTo: Ay,
        activeLink: j(function() {
            return ""
        }),
        handleClick: Ay
    })
};
const ixe = rxe;
function oxe() {
    return window
}
function x$(t, e) {
    if (!t.getClientRects().length)
        return 0;
    var n = t.getBoundingClientRect();
    return n.width || n.height ? e === window ? (e = t.ownerDocument.documentElement,
    n.top - e.clientTop) : n.top - e.getBoundingClientRect().top : n.top
}
var S$ = /#([\S ]+)$/
  , lxe = function() {
    return {
        prefixCls: String,
        offsetTop: Number,
        bounds: Number,
        affix: {
            type: Boolean,
            default: !0
        },
        showInkInFixed: {
            type: Boolean,
            default: !1
        },
        getContainer: Function,
        wrapperClass: String,
        wrapperStyle: {
            type: Object,
            default: void 0
        },
        getCurrentAnchor: Function,
        targetOffset: Number,
        onChange: Function,
        onClick: Function
    }
};
const Wc = de({
    compatConfig: {
        MODE: 3
    },
    name: "AAnchor",
    inheritAttrs: !1,
    props: lxe(),
    setup: function(e, n) {
        var r = n.emit
          , a = n.attrs
          , i = n.slots
          , o = n.expose
          , l = je("anchor", e)
          , s = l.prefixCls
          , u = l.getTargetContainer
          , c = l.direction
          , f = Q()
          , d = Q()
          , v = en({
            links: [],
            scrollContainer: null,
            scrollEvent: null,
            animating: !1
        })
          , h = Q(null)
          , p = j(function() {
            var C = e.getContainer;
            return C || u.value || oxe
        })
          , g = function() {
            var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0
              , w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5
              , T = []
              , P = p.value();
            if (v.links.forEach(function(A) {
                var O = S$.exec(A.toString());
                if (!!O) {
                    var k = document.getElementById(O[1]);
                    if (k) {
                        var D = x$(k, P);
                        D < S + w && T.push({
                            link: A,
                            top: D
                        })
                    }
                }
            }),
            T.length) {
                var M = T.reduce(function(A, O) {
                    return O.top > A.top ? O : A
                });
                return M.link
            }
            return ""
        }
          , m = function(S) {
            var w = e.getCurrentAnchor;
            h.value !== S && (h.value = typeof w == "function" ? w() : S,
            r("change", S))
        }
          , y = function(S) {
            var w = e.offsetTop
              , T = e.targetOffset;
            m(S);
            var P = p.value()
              , M = eD(P, !0)
              , A = S$.exec(S);
            if (!!A) {
                var O = document.getElementById(A[1]);
                if (!!O) {
                    var k = x$(O, P)
                      , D = M + k;
                    D -= T !== void 0 ? T : w || 0,
                    v.animating = !0,
                    tD(D, {
                        callback: function() {
                            v.animating = !1
                        },
                        getContainer: p.value
                    })
                }
            }
        };
        o({
            scrollTo: y
        });
        var b = function() {
            if (!v.animating) {
                var S = e.offsetTop
                  , w = e.bounds
                  , T = e.targetOffset
                  , P = g(T !== void 0 ? T : S || 0, w);
                m(P)
            }
        }
          , x = function() {
            var S = d.value.getElementsByClassName("".concat(s.value, "-link-title-active"))[0];
            S && (f.value.style.top = "".concat(S.offsetTop + S.clientHeight / 2 - 4.5, "px"))
        };
        return ixe({
            registerLink: function(S) {
                v.links.includes(S) || v.links.push(S)
            },
            unregisterLink: function(S) {
                var w = v.links.indexOf(S);
                w !== -1 && v.links.splice(w, 1)
            },
            activeLink: h,
            scrollTo: y,
            handleClick: function(S, w) {
                r("click", S, w)
            }
        }),
        ct(function() {
            yt(function() {
                var C = p.value();
                v.scrollContainer = C,
                v.scrollEvent = Nn(v.scrollContainer, "scroll", b),
                b()
            })
        }),
        Nt(function() {
            v.scrollEvent && v.scrollEvent.remove()
        }),
        ua(function() {
            if (v.scrollEvent) {
                var C = p.value();
                v.scrollContainer !== C && (v.scrollContainer = C,
                v.scrollEvent.remove(),
                v.scrollEvent = Nn(v.scrollContainer, "scroll", b),
                b())
            }
            x()
        }),
        function() {
            var C, S = e.offsetTop, w = e.affix, T = e.showInkInFixed, P = s.value, M = he("".concat(P, "-ink-ball"), {
                visible: h.value
            }), A = he(e.wrapperClass, "".concat(P, "-wrapper"), z({}, "".concat(P, "-rtl"), c.value === "rtl")), O = he(P, z({}, "".concat(P, "-fixed"), !w && !T)), k = I({
                maxHeight: S ? "calc(100vh - ".concat(S, "px)") : "100vh"
            }, e.wrapperStyle), D = _("div", {
                class: A,
                style: k,
                ref: d
            }, [_("div", {
                class: O
            }, [_("div", {
                class: "".concat(P, "-ink")
            }, [_("span", {
                class: M,
                ref: f
            }, null)]), (C = i.default) === null || C === void 0 ? void 0 : C.call(i)])]);
            return w ? _(KZ, I(I({}, a), {}, {
                offsetTop: S,
                target: p.value
            }), {
                default: function() {
                    return [D]
                }
            }) : D
        }
    }
});
var sxe = function() {
    return {
        prefixCls: String,
        href: String,
        title: J.any,
        target: String
    }
};
const YZ = de({
    compatConfig: {
        MODE: 3
    },
    name: "AAnchorLink",
    props: $t(sxe(), {
        href: "#"
    }),
    slots: ["title"],
    setup: function(e, n) {
        var r = n.slots
          , a = null
          , i = axe()
          , o = i.handleClick
          , l = i.scrollTo
          , s = i.unregisterLink
          , u = i.registerLink
          , c = i.activeLink
          , f = je("anchor", e)
          , d = f.prefixCls
          , v = function(p) {
            var g = e.href;
            o(p, {
                title: a,
                href: g
            }),
            l(g)
        };
        return Te(function() {
            return e.href
        }, function(h, p) {
            yt(function() {
                s(p),
                u(h)
            })
        }),
        ct(function() {
            u(e.href)
        }),
        Nt(function() {
            s(e.href)
        }),
        function() {
            var h, p = e.href, g = e.target, m = d.value, y = Dn(r, e, "title");
            a = y;
            var b = c.value === p
              , x = he("".concat(m, "-link"), z({}, "".concat(m, "-link-active"), b))
              , C = he("".concat(m, "-link-title"), z({}, "".concat(m, "-link-title-active"), b));
            return _("div", {
                class: x
            }, [_("a", {
                class: C,
                href: p,
                title: typeof y == "string" ? y : "",
                target: g,
                onClick: v
            }, [y]), (h = r.default) === null || h === void 0 ? void 0 : h.call(r)])
        }
    }
});
Wc.Link = YZ;
Wc.install = function(t) {
    return t.component(Wc.name, Wc),
    t.component(Wc.Link.name, Wc.Link),
    t
}
;
function nD(t) {
    return VX(t) || HX(t) || VC(t) || zX()
}
function C$(t, e) {
    var n = t.key, r;
    return "value"in t && (r = t.value),
    n != null ? n : r !== void 0 ? r : "rc-index-key-".concat(e)
}
function qZ(t, e) {
    var n = t || {}
      , r = n.label
      , a = n.value
      , i = n.options;
    return {
        label: r || (e ? "children" : "label"),
        value: a || "value",
        options: i || "options"
    }
}
function uxe(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , n = e.fieldNames
      , r = e.childrenAsData
      , a = []
      , i = qZ(n, !1)
      , o = i.label
      , l = i.value
      , s = i.options;
    function u(c, f) {
        c.forEach(function(d) {
            var v = d[o];
            if (f || !(s in d)) {
                var h = d[l];
                a.push({
                    key: C$(d, a.length),
                    groupOption: f,
                    data: d,
                    label: v,
                    value: h
                })
            } else {
                var p = v;
                p === void 0 && r && (p = d.label),
                a.push({
                    key: C$(d, a.length),
                    group: !0,
                    data: d,
                    label: p
                }),
                u(d[s], !0)
            }
        })
    }
    return u(t, !1),
    a
}
function bM(t) {
    var e = I({}, t);
    return "props"in e || Object.defineProperty(e, "props", {
        get: function() {
            return e
        }
    }),
    e
}
function cxe(t, e) {
    if (!e || !e.length)
        return null;
    var n = !1;
    function r(i, o) {
        var l = nD(o)
          , s = l[0]
          , u = l.slice(1);
        if (!s)
            return [i];
        var c = i.split(s);
        return n = n || c.length > 1,
        c.reduce(function(f, d) {
            return [].concat($e(f), $e(r(d, u)))
        }, []).filter(function(f) {
            return f
        })
    }
    var a = r(t, e);
    return n ? a : null
}
function Gc(t, e) {
    return t ? t.contains(e) : !1
}
var XZ = ["moz", "ms", "webkit"];
function fxe() {
    var t = 0;
    return function(e) {
        var n = new Date().getTime()
          , r = Math.max(0, 16 - (n - t))
          , a = window.setTimeout(function() {
            e(n + r)
        }, r);
        return t = n + r,
        a
    }
}
function dxe() {
    if (typeof window == "undefined")
        return function() {}
        ;
    if (window.requestAnimationFrame)
        return window.requestAnimationFrame.bind(window);
    var t = XZ.filter(function(e) {
        return "".concat(e, "RequestAnimationFrame")in window
    })[0];
    return t ? window["".concat(t, "RequestAnimationFrame")] : fxe()
}
function vxe(t) {
    if (typeof window == "undefined")
        return null;
    if (window.cancelAnimationFrame)
        return window.cancelAnimationFrame(t);
    var e = XZ.filter(function(n) {
        return "".concat(n, "CancelAnimationFrame")in window || "".concat(n, "CancelRequestAnimationFrame")in window
    })[0];
    return e ? (window["".concat(e, "CancelAnimationFrame")] || window["".concat(e, "CancelRequestAnimationFrame")]).call(this, t) : clearTimeout(t)
}
var w$ = dxe()
  , hxe = function(e) {
    return vxe(e.id)
}
  , pxe = function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0
      , r = Date.now();
    function a() {
        Date.now() - r >= n ? e.call() : i.id = w$(a)
    }
    var i = {
        id: w$(a)
    };
    return i
}
  , rD = {
    visible: Boolean,
    prefixCls: String,
    zIndex: Number,
    destroyPopupOnHide: Boolean,
    forceRender: Boolean,
    animation: [String, Object],
    transitionName: String,
    stretch: {
        type: String
    },
    align: {
        type: Object
    },
    point: {
        type: Object
    },
    getRootDomNode: {
        type: Function
    },
    getClassNameFromAlign: {
        type: Function
    },
    onMouseenter: {
        type: Function
    },
    onMouseleave: {
        type: Function
    },
    onMousedown: {
        type: Function
    },
    onTouchstart: {
        type: Function
    }
}
  , gxe = I(I({}, rD), {}, {
    mobile: {
        type: Object
    }
})
  , mxe = I(I({}, rD), {}, {
    mask: Boolean,
    mobile: {
        type: Object
    },
    maskAnimation: String,
    maskTransitionName: String
});
function ZZ(t) {
    var e = t.prefixCls
      , n = t.animation
      , r = t.transitionName;
    return n ? {
        name: "".concat(e, "-").concat(n)
    } : r ? {
        name: r
    } : {}
}
function QZ(t) {
    var e = t.prefixCls
      , n = t.visible
      , r = t.zIndex
      , a = t.mask
      , i = t.maskAnimation
      , o = t.maskTransitionName;
    if (!a)
        return null;
    var l = {};
    return (o || i) && (l = ZZ({
        prefixCls: e,
        transitionName: o,
        animation: i
    })),
    _(bl, I({
        appear: !0
    }, l), {
        default: function() {
            return [Fr(_("div", {
                style: {
                    zIndex: r
                },
                class: "".concat(e, "-mask")
            }, null), [[fq("if"), n]])]
        }
    })
}
QZ.displayName = "Mask";
const yxe = de({
    compatConfig: {
        MODE: 3
    },
    name: "MobilePopupInner",
    inheritAttrs: !1,
    props: gxe,
    emits: ["mouseenter", "mouseleave", "mousedown", "touchstart", "align"],
    setup: function(e, n) {
        var r = n.expose
          , a = n.slots
          , i = Q();
        return r({
            forceAlign: function() {},
            getElement: function() {
                return i.value
            }
        }),
        function() {
            var o, l = e.zIndex, s = e.visible, u = e.prefixCls, c = e.mobile, f = c === void 0 ? {} : c, d = f.popupClassName, v = f.popupStyle, h = f.popupMotion, p = h === void 0 ? {} : h, g = f.popupRender, m = I({
                zIndex: l
            }, v), y = bn((o = a.default) === null || o === void 0 ? void 0 : o.call(a));
            y.length > 1 && (y = _("div", {
                class: "".concat(u, "-content")
            }, [y])),
            g && (y = g(y));
            var b = he(u, d);
            return _(bl, I({
                ref: i
            }, p), {
                default: function() {
                    return [s ? _("div", {
                        class: b,
                        style: m
                    }, [y]) : null]
                }
            })
        }
    }
});
var _$ = ["measure", "align", null, "motion"];
const bxe = function(t, e) {
    var n = Q(null)
      , r = Q()
      , a = Q(!1);
    function i(s) {
        a.value || (n.value = s)
    }
    function o() {
        gt.cancel(r.value)
    }
    function l(s) {
        o(),
        r.value = gt(function() {
            var u = n.value;
            switch (n.value) {
            case "align":
                u = "motion";
                break;
            case "motion":
                u = "stable";
                break
            }
            i(u),
            s == null || s()
        })
    }
    return Te(t, function() {
        i("measure")
    }, {
        immediate: !0,
        flush: "post"
    }),
    ct(function() {
        Te(n, function() {
            switch (n.value) {
            case "measure":
                e();
                break
            }
            n.value && (r.value = gt(Kf(Ha.mark(function s() {
                var u, c;
                return Ha.wrap(function(d) {
                    for (; ; )
                        switch (d.prev = d.next) {
                        case 0:
                            u = _$.indexOf(n.value),
                            c = _$[u + 1],
                            c && u !== -1 && i(c);
                        case 3:
                        case "end":
                            return d.stop()
                        }
                }, s)
            }))))
        }, {
            immediate: !0,
            flush: "post"
        })
    }),
    Nt(function() {
        a.value = !0,
        o()
    }),
    [n, l]
}
  , xxe = function(t) {
    var e = Q({
        width: 0,
        height: 0
    });
    function n(a) {
        e.value = {
            width: a.offsetWidth,
            height: a.offsetHeight
        }
    }
    var r = j(function() {
        var a = {};
        if (t.value) {
            var i = e.value
              , o = i.width
              , l = i.height;
            t.value.indexOf("height") !== -1 && l ? a.height = "".concat(l, "px") : t.value.indexOf("minHeight") !== -1 && l && (a.minHeight = "".concat(l, "px")),
            t.value.indexOf("width") !== -1 && o ? a.width = "".concat(o, "px") : t.value.indexOf("minWidth") !== -1 && o && (a.minWidth = "".concat(o, "px"))
        }
        return a
    });
    return [r, n]
};
function T$(t, e) {
    var n = Object.keys(t);
    if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(t);
        e && (r = r.filter(function(a) {
            return Object.getOwnPropertyDescriptor(t, a).enumerable
        })),
        n.push.apply(n, r)
    }
    return n
}
function P$(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? arguments[e] : {};
        e % 2 ? T$(Object(n), !0).forEach(function(r) {
            Sxe(t, r, n[r])
        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : T$(Object(n)).forEach(function(r) {
            Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r))
        })
    }
    return t
}
function xM(t) {
    return xM = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
        return typeof e
    }
    : function(e) {
        return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
    }
    ,
    xM(t)
}
function Sxe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var tp, Cxe = {
    Webkit: "-webkit-",
    Moz: "-moz-",
    ms: "-ms-",
    O: "-o-"
};
function kx() {
    if (tp !== void 0)
        return tp;
    tp = "";
    var t = document.createElement("p").style
      , e = "Transform";
    for (var n in Cxe)
        n + e in t && (tp = n);
    return tp
}
function JZ() {
    return kx() ? "".concat(kx(), "TransitionProperty") : "transitionProperty"
}
function jC() {
    return kx() ? "".concat(kx(), "Transform") : "transform"
}
function M$(t, e) {
    var n = JZ();
    n && (t.style[n] = e,
    n !== "transitionProperty" && (t.style.transitionProperty = e))
}
function W_(t, e) {
    var n = jC();
    n && (t.style[n] = e,
    n !== "transform" && (t.style.transform = e))
}
function wxe(t) {
    return t.style.transitionProperty || t.style[JZ()]
}
function _xe(t) {
    var e = window.getComputedStyle(t, null)
      , n = e.getPropertyValue("transform") || e.getPropertyValue(jC());
    if (n && n !== "none") {
        var r = n.replace(/[^0-9\-.,]/g, "").split(",");
        return {
            x: parseFloat(r[12] || r[4], 0),
            y: parseFloat(r[13] || r[5], 0)
        }
    }
    return {
        x: 0,
        y: 0
    }
}
var Txe = /matrix\((.*)\)/
  , Pxe = /matrix3d\((.*)\)/;
function Mxe(t, e) {
    var n = window.getComputedStyle(t, null)
      , r = n.getPropertyValue("transform") || n.getPropertyValue(jC());
    if (r && r !== "none") {
        var a, i = r.match(Txe);
        if (i)
            i = i[1],
            a = i.split(",").map(function(l) {
                return parseFloat(l, 10)
            }),
            a[4] = e.x,
            a[5] = e.y,
            W_(t, "matrix(".concat(a.join(","), ")"));
        else {
            var o = r.match(Pxe)[1];
            a = o.split(",").map(function(l) {
                return parseFloat(l, 10)
            }),
            a[12] = e.x,
            a[13] = e.y,
            W_(t, "matrix3d(".concat(a.join(","), ")"))
        }
    } else
        W_(t, "translateX(".concat(e.x, "px) translateY(").concat(e.y, "px) translateZ(0)"))
}
var Axe = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, ym;
function A$(t) {
    var e = t.style.display;
    t.style.display = "none",
    t.offsetHeight,
    t.style.display = e
}
function fv(t, e, n) {
    var r = n;
    if (xM(e) === "object") {
        for (var a in e)
            e.hasOwnProperty(a) && fv(t, a, e[a]);
        return
    }
    if (typeof r != "undefined") {
        typeof r == "number" && (r = "".concat(r, "px")),
        t.style[e] = r;
        return
    }
    return ym(t, e)
}
function Ixe(t) {
    var e, n, r, a = t.ownerDocument, i = a.body, o = a && a.documentElement;
    return e = t.getBoundingClientRect(),
    n = Math.floor(e.left),
    r = Math.floor(e.top),
    n -= o.clientLeft || i.clientLeft || 0,
    r -= o.clientTop || i.clientTop || 0,
    {
        left: n,
        top: r
    }
}
function eQ(t, e) {
    var n = t["page".concat(e ? "Y" : "X", "Offset")]
      , r = "scroll".concat(e ? "Top" : "Left");
    if (typeof n != "number") {
        var a = t.document;
        n = a.documentElement[r],
        typeof n != "number" && (n = a.body[r])
    }
    return n
}
function tQ(t) {
    return eQ(t)
}
function nQ(t) {
    return eQ(t, !0)
}
function c0(t) {
    var e = Ixe(t)
      , n = t.ownerDocument
      , r = n.defaultView || n.parentWindow;
    return e.left += tQ(r),
    e.top += nQ(r),
    e
}
function aD(t) {
    return t != null && t == t.window
}
function rQ(t) {
    return aD(t) ? t.document : t.nodeType === 9 ? t : t.ownerDocument
}
function kxe(t, e, n) {
    var r = n
      , a = ""
      , i = rQ(t);
    return r = r || i.defaultView.getComputedStyle(t, null),
    r && (a = r.getPropertyValue(e) || r[e]),
    a
}
var Oxe = new RegExp("^(".concat(Axe, ")(?!px)[a-z%]+$"),"i")
  , Dxe = /^(top|right|bottom|left)$/
  , G_ = "currentStyle"
  , K_ = "runtimeStyle"
  , ec = "left"
  , Exe = "px";
function Lxe(t, e) {
    var n = t[G_] && t[G_][e];
    if (Oxe.test(n) && !Dxe.test(e)) {
        var r = t.style
          , a = r[ec]
          , i = t[K_][ec];
        t[K_][ec] = t[G_][ec],
        r[ec] = e === "fontSize" ? "1em" : n || 0,
        n = r.pixelLeft + Exe,
        r[ec] = a,
        t[K_][ec] = i
    }
    return n === "" ? "auto" : n
}
typeof window != "undefined" && (ym = window.getComputedStyle ? kxe : Lxe);
function Iy(t, e) {
    return t === "left" ? e.useCssRight ? "right" : t : e.useCssBottom ? "bottom" : t
}
function I$(t) {
    if (t === "left")
        return "right";
    if (t === "right")
        return "left";
    if (t === "top")
        return "bottom";
    if (t === "bottom")
        return "top"
}
function k$(t, e, n) {
    fv(t, "position") === "static" && (t.style.position = "relative");
    var r = -999
      , a = -999
      , i = Iy("left", n)
      , o = Iy("top", n)
      , l = I$(i)
      , s = I$(o);
    i !== "left" && (r = 999),
    o !== "top" && (a = 999);
    var u = ""
      , c = c0(t);
    ("left"in e || "top"in e) && (u = wxe(t) || "",
    M$(t, "none")),
    "left"in e && (t.style[l] = "",
    t.style[i] = "".concat(r, "px")),
    "top"in e && (t.style[s] = "",
    t.style[o] = "".concat(a, "px")),
    A$(t);
    var f = c0(t)
      , d = {};
    for (var v in e)
        if (e.hasOwnProperty(v)) {
            var h = Iy(v, n)
              , p = v === "left" ? r : a
              , g = c[v] - f[v];
            h === v ? d[h] = p + g : d[h] = p - g
        }
    fv(t, d),
    A$(t),
    ("left"in e || "top"in e) && M$(t, u);
    var m = {};
    for (var y in e)
        if (e.hasOwnProperty(y)) {
            var b = Iy(y, n)
              , x = e[y] - c[y];
            y === b ? m[b] = d[b] + x : m[b] = d[b] - x
        }
    fv(t, m)
}
function Rxe(t, e) {
    var n = c0(t)
      , r = _xe(t)
      , a = {
        x: r.x,
        y: r.y
    };
    "left"in e && (a.x = r.x + e.left - n.left),
    "top"in e && (a.y = r.y + e.top - n.top),
    Mxe(t, a)
}
function Nxe(t, e, n) {
    if (n.ignoreShake) {
        var r = c0(t)
          , a = r.left.toFixed(0)
          , i = r.top.toFixed(0)
          , o = e.left.toFixed(0)
          , l = e.top.toFixed(0);
        if (a === o && i === l)
            return
    }
    n.useCssRight || n.useCssBottom ? k$(t, e, n) : n.useCssTransform && jC()in document.body.style ? Rxe(t, e) : k$(t, e, n)
}
function iD(t, e) {
    for (var n = 0; n < t.length; n++)
        e(t[n])
}
function aQ(t) {
    return ym(t, "boxSizing") === "border-box"
}
var $xe = ["margin", "border", "padding"]
  , SM = -1
  , Fxe = 2
  , CM = 1
  , Bxe = 0;
function Vxe(t, e, n) {
    var r = {}, a = t.style, i;
    for (i in e)
        e.hasOwnProperty(i) && (r[i] = a[i],
        a[i] = e[i]);
    n.call(t);
    for (i in e)
        e.hasOwnProperty(i) && (a[i] = r[i])
}
function zp(t, e, n) {
    var r = 0, a, i, o;
    for (i = 0; i < e.length; i++)
        if (a = e[i],
        a)
            for (o = 0; o < n.length; o++) {
                var l = void 0;
                a === "border" ? l = "".concat(a).concat(n[o], "Width") : l = a + n[o],
                r += parseFloat(ym(t, l)) || 0
            }
    return r
}
var nl = {
    getParent: function(e) {
        var n = e;
        do
            n.nodeType === 11 && n.host ? n = n.host : n = n.parentNode;
        while (n && n.nodeType !== 1 && n.nodeType !== 9);
        return n
    }
};
iD(["Width", "Height"], function(t) {
    nl["doc".concat(t)] = function(e) {
        var n = e.document;
        return Math.max(n.documentElement["scroll".concat(t)], n.body["scroll".concat(t)], nl["viewport".concat(t)](n))
    }
    ,
    nl["viewport".concat(t)] = function(e) {
        var n = "client".concat(t)
          , r = e.document
          , a = r.body
          , i = r.documentElement
          , o = i[n];
        return r.compatMode === "CSS1Compat" && o || a && a[n] || o
    }
});
function O$(t, e, n) {
    var r = n;
    if (aD(t))
        return e === "width" ? nl.viewportWidth(t) : nl.viewportHeight(t);
    if (t.nodeType === 9)
        return e === "width" ? nl.docWidth(t) : nl.docHeight(t);
    var a = e === "width" ? ["Left", "Right"] : ["Top", "Bottom"]
      , i = Math.floor(e === "width" ? t.getBoundingClientRect().width : t.getBoundingClientRect().height)
      , o = aQ(t)
      , l = 0;
    (i == null || i <= 0) && (i = void 0,
    l = ym(t, e),
    (l == null || Number(l) < 0) && (l = t.style[e] || 0),
    l = Math.floor(parseFloat(l)) || 0),
    r === void 0 && (r = o ? CM : SM);
    var s = i !== void 0 || o
      , u = i || l;
    return r === SM ? s ? u - zp(t, ["border", "padding"], a) : l : s ? r === CM ? u : u + (r === Fxe ? -zp(t, ["border"], a) : zp(t, ["margin"], a)) : l + zp(t, $xe.slice(r), a)
}
var zxe = {
    position: "absolute",
    visibility: "hidden",
    display: "block"
};
function D$() {
    for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
        e[n] = arguments[n];
    var r, a = e[0];
    return a.offsetWidth !== 0 ? r = O$.apply(void 0, e) : Vxe(a, zxe, function() {
        r = O$.apply(void 0, e)
    }),
    r
}
iD(["width", "height"], function(t) {
    var e = t.charAt(0).toUpperCase() + t.slice(1);
    nl["outer".concat(e)] = function(r, a) {
        return r && D$(r, t, a ? Bxe : CM)
    }
    ;
    var n = t === "width" ? ["Left", "Right"] : ["Top", "Bottom"];
    nl[t] = function(r, a) {
        var i = a;
        if (i !== void 0) {
            if (r) {
                var o = aQ(r);
                return o && (i += zp(r, ["padding", "border"], n)),
                fv(r, t, i)
            }
            return
        }
        return r && D$(r, t, SM)
    }
});
function iQ(t, e) {
    for (var n in e)
        e.hasOwnProperty(n) && (t[n] = e[n]);
    return t
}
var Ut = {
    getWindow: function(e) {
        if (e && e.document && e.setTimeout)
            return e;
        var n = e.ownerDocument || e;
        return n.defaultView || n.parentWindow
    },
    getDocument: rQ,
    offset: function(e, n, r) {
        if (typeof n != "undefined")
            Nxe(e, n, r || {});
        else
            return c0(e)
    },
    isWindow: aD,
    each: iD,
    css: fv,
    clone: function(e) {
        var n, r = {};
        for (n in e)
            e.hasOwnProperty(n) && (r[n] = e[n]);
        var a = e.overflow;
        if (a)
            for (n in e)
                e.hasOwnProperty(n) && (r.overflow[n] = e.overflow[n]);
        return r
    },
    mix: iQ,
    getWindowScrollLeft: function(e) {
        return tQ(e)
    },
    getWindowScrollTop: function(e) {
        return nQ(e)
    },
    merge: function() {
        for (var e = {}, n = 0; n < arguments.length; n++)
            Ut.mix(e, n < 0 || arguments.length <= n ? void 0 : arguments[n]);
        return e
    },
    viewportWidth: 0,
    viewportHeight: 0
};
iQ(Ut, nl);
var U_ = Ut.getParent;
function wM(t) {
    if (Ut.isWindow(t) || t.nodeType === 9)
        return null;
    var e = Ut.getDocument(t), n = e.body, r, a = Ut.css(t, "position"), i = a === "fixed" || a === "absolute";
    if (!i)
        return t.nodeName.toLowerCase() === "html" ? null : U_(t);
    for (r = U_(t); r && r !== n && r.nodeType !== 9; r = U_(r))
        if (a = Ut.css(r, "position"),
        a !== "static")
            return r;
    return null
}
var E$ = Ut.getParent;
function Hxe(t) {
    if (Ut.isWindow(t) || t.nodeType === 9)
        return !1;
    var e = Ut.getDocument(t)
      , n = e.body
      , r = null;
    for (r = E$(t); r && r !== n && r !== e; r = E$(r)) {
        var a = Ut.css(r, "position");
        if (a === "fixed")
            return !0
    }
    return !1
}
function oD(t, e) {
    for (var n = {
        left: 0,
        right: 1 / 0,
        top: 0,
        bottom: 1 / 0
    }, r = wM(t), a = Ut.getDocument(t), i = a.defaultView || a.parentWindow, o = a.body, l = a.documentElement; r; ) {
        if ((navigator.userAgent.indexOf("MSIE") === -1 || r.clientWidth !== 0) && r !== o && r !== l && Ut.css(r, "overflow") !== "visible") {
            var s = Ut.offset(r);
            s.left += r.clientLeft,
            s.top += r.clientTop,
            n.top = Math.max(n.top, s.top),
            n.right = Math.min(n.right, s.left + r.clientWidth),
            n.bottom = Math.min(n.bottom, s.top + r.clientHeight),
            n.left = Math.max(n.left, s.left)
        } else if (r === o || r === l)
            break;
        r = wM(r)
    }
    var u = null;
    if (!Ut.isWindow(t) && t.nodeType !== 9) {
        u = t.style.position;
        var c = Ut.css(t, "position");
        c === "absolute" && (t.style.position = "fixed")
    }
    var f = Ut.getWindowScrollLeft(i)
      , d = Ut.getWindowScrollTop(i)
      , v = Ut.viewportWidth(i)
      , h = Ut.viewportHeight(i)
      , p = l.scrollWidth
      , g = l.scrollHeight
      , m = window.getComputedStyle(o);
    if (m.overflowX === "hidden" && (p = i.innerWidth),
    m.overflowY === "hidden" && (g = i.innerHeight),
    t.style && (t.style.position = u),
    e || Hxe(t))
        n.left = Math.max(n.left, f),
        n.top = Math.max(n.top, d),
        n.right = Math.min(n.right, f + v),
        n.bottom = Math.min(n.bottom, d + h);
    else {
        var y = Math.max(p, f + v);
        n.right = Math.min(n.right, y);
        var b = Math.max(g, d + h);
        n.bottom = Math.min(n.bottom, b)
    }
    return n.top >= 0 && n.left >= 0 && n.bottom > n.top && n.right > n.left ? n : null
}
function jxe(t, e, n, r) {
    var a = Ut.clone(t)
      , i = {
        width: e.width,
        height: e.height
    };
    return r.adjustX && a.left < n.left && (a.left = n.left),
    r.resizeWidth && a.left >= n.left && a.left + i.width > n.right && (i.width -= a.left + i.width - n.right),
    r.adjustX && a.left + i.width > n.right && (a.left = Math.max(n.right - i.width, n.left)),
    r.adjustY && a.top < n.top && (a.top = n.top),
    r.resizeHeight && a.top >= n.top && a.top + i.height > n.bottom && (i.height -= a.top + i.height - n.bottom),
    r.adjustY && a.top + i.height > n.bottom && (a.top = Math.max(n.bottom - i.height, n.top)),
    Ut.mix(a, i)
}
function lD(t) {
    var e, n, r;
    if (!Ut.isWindow(t) && t.nodeType !== 9)
        e = Ut.offset(t),
        n = Ut.outerWidth(t),
        r = Ut.outerHeight(t);
    else {
        var a = Ut.getWindow(t);
        e = {
            left: Ut.getWindowScrollLeft(a),
            top: Ut.getWindowScrollTop(a)
        },
        n = Ut.viewportWidth(a),
        r = Ut.viewportHeight(a)
    }
    return e.width = n,
    e.height = r,
    e
}
function L$(t, e) {
    var n = e.charAt(0)
      , r = e.charAt(1)
      , a = t.width
      , i = t.height
      , o = t.left
      , l = t.top;
    return n === "c" ? l += i / 2 : n === "b" && (l += i),
    r === "c" ? o += a / 2 : r === "r" && (o += a),
    {
        left: o,
        top: l
    }
}
function ky(t, e, n, r, a) {
    var i = L$(e, n[1])
      , o = L$(t, n[0])
      , l = [o.left - i.left, o.top - i.top];
    return {
        left: Math.round(t.left - l[0] + r[0] - a[0]),
        top: Math.round(t.top - l[1] + r[1] - a[1])
    }
}
function R$(t, e, n) {
    return t.left < n.left || t.left + e.width > n.right
}
function N$(t, e, n) {
    return t.top < n.top || t.top + e.height > n.bottom
}
function Wxe(t, e, n) {
    return t.left > n.right || t.left + e.width < n.left
}
function Gxe(t, e, n) {
    return t.top > n.bottom || t.top + e.height < n.top
}
function Oy(t, e, n) {
    var r = [];
    return Ut.each(t, function(a) {
        r.push(a.replace(e, function(i) {
            return n[i]
        }))
    }),
    r
}
function Dy(t, e) {
    return t[e] = -t[e],
    t
}
function $$(t, e) {
    var n;
    return /%$/.test(t) ? n = parseInt(t.substring(0, t.length - 1), 10) / 100 * e : n = parseInt(t, 10),
    n || 0
}
function F$(t, e) {
    t[0] = $$(t[0], e.width),
    t[1] = $$(t[1], e.height)
}
function oQ(t, e, n, r) {
    var a = n.points
      , i = n.offset || [0, 0]
      , o = n.targetOffset || [0, 0]
      , l = n.overflow
      , s = n.source || t;
    i = [].concat(i),
    o = [].concat(o),
    l = l || {};
    var u = {}
      , c = 0
      , f = !!(l && l.alwaysByViewport)
      , d = oD(s, f)
      , v = lD(s);
    F$(i, v),
    F$(o, e);
    var h = ky(v, e, a, i, o)
      , p = Ut.merge(v, h);
    if (d && (l.adjustX || l.adjustY) && r) {
        if (l.adjustX && R$(h, v, d)) {
            var g = Oy(a, /[lr]/gi, {
                l: "r",
                r: "l"
            })
              , m = Dy(i, 0)
              , y = Dy(o, 0)
              , b = ky(v, e, g, m, y);
            Wxe(b, v, d) || (c = 1,
            a = g,
            i = m,
            o = y)
        }
        if (l.adjustY && N$(h, v, d)) {
            var x = Oy(a, /[tb]/gi, {
                t: "b",
                b: "t"
            })
              , C = Dy(i, 1)
              , S = Dy(o, 1)
              , w = ky(v, e, x, C, S);
            Gxe(w, v, d) || (c = 1,
            a = x,
            i = C,
            o = S)
        }
        c && (h = ky(v, e, a, i, o),
        Ut.mix(p, h));
        var T = R$(h, v, d)
          , P = N$(h, v, d);
        if (T || P) {
            var M = a;
            T && (M = Oy(a, /[lr]/gi, {
                l: "r",
                r: "l"
            })),
            P && (M = Oy(a, /[tb]/gi, {
                t: "b",
                b: "t"
            })),
            a = M,
            i = n.offset || [0, 0],
            o = n.targetOffset || [0, 0]
        }
        u.adjustX = l.adjustX && T,
        u.adjustY = l.adjustY && P,
        (u.adjustX || u.adjustY) && (p = jxe(h, v, d, u))
    }
    return p.width !== v.width && Ut.css(s, "width", Ut.width(s) + p.width - v.width),
    p.height !== v.height && Ut.css(s, "height", Ut.height(s) + p.height - v.height),
    Ut.offset(s, {
        left: p.left,
        top: p.top
    }, {
        useCssRight: n.useCssRight,
        useCssBottom: n.useCssBottom,
        useCssTransform: n.useCssTransform,
        ignoreShake: n.ignoreShake
    }),
    {
        points: a,
        offset: i,
        targetOffset: o,
        overflow: u
    }
}
function Kxe(t, e) {
    var n = oD(t, e)
      , r = lD(t);
    return !n || r.left + r.width <= n.left || r.top + r.height <= n.top || r.left >= n.right || r.top >= n.bottom
}
function sD(t, e, n) {
    var r = n.target || e
      , a = lD(r)
      , i = !Kxe(r, n.overflow && n.overflow.alwaysByViewport);
    return oQ(t, a, n, i)
}
sD.__getOffsetParent = wM;
sD.__getVisibleRectForElement = oD;
function Uxe(t, e, n) {
    var r, a, i = Ut.getDocument(t), o = i.defaultView || i.parentWindow, l = Ut.getWindowScrollLeft(o), s = Ut.getWindowScrollTop(o), u = Ut.viewportWidth(o), c = Ut.viewportHeight(o);
    "pageX"in e ? r = e.pageX : r = l + e.clientX,
    "pageY"in e ? a = e.pageY : a = s + e.clientY;
    var f = {
        left: r,
        top: a,
        width: 0,
        height: 0
    }
      , d = r >= 0 && r <= l + u && a >= 0 && a <= s + c
      , v = [n.points[0], "cc"];
    return oQ(t, f, P$(P$({}, n), {}, {
        points: v
    }), d)
}
function Qt(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0
      , r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1
      , a = t;
    if (Array.isArray(t) && (a = ar(t)[0]),
    !a)
        return null;
    var i = Zr(a, e, r);
    return i.props = n ? I(I({}, i.props), e) : i.props,
    ur(We(i.props.class) !== "object", "class must be string"),
    i
}
function Yxe(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
    return t.map(function(r) {
        return Qt(r, e, n)
    })
}
function gg(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0
      , r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
    if (Array.isArray(t))
        return t.map(function(i) {
            return gg(i, e, n, r)
        });
    var a = Qt(t, e, n, r);
    return Array.isArray(a.children) && (a.children = gg(a.children)),
    a
}
const uD = function(t) {
    if (!t)
        return !1;
    if (t.offsetParent)
        return !0;
    if (t.getBBox) {
        var e = t.getBBox();
        if (e.width || e.height)
            return !0
    }
    if (t.getBoundingClientRect) {
        var n = t.getBoundingClientRect();
        if (n.width || n.height)
            return !0
    }
    return !1
};
function qxe(t, e) {
    return t === e ? !0 : !t || !e ? !1 : "pageX"in e && "pageY"in e ? t.pageX === e.pageX && t.pageY === e.pageY : "clientX"in e && "clientY"in e ? t.clientX === e.clientX && t.clientY === e.clientY : !1
}
function Xxe(t, e) {
    t !== document.activeElement && Gc(e, t) && typeof t.focus == "function" && t.focus()
}
function B$(t, e) {
    var n = null
      , r = null;
    function a(o) {
        var l = De(o, 1)
          , s = l[0].target;
        if (!!document.documentElement.contains(s)) {
            var u = s.getBoundingClientRect()
              , c = u.width
              , f = u.height
              , d = Math.floor(c)
              , v = Math.floor(f);
            (n !== d || r !== v) && Promise.resolve().then(function() {
                e({
                    width: d,
                    height: v
                })
            }),
            n = d,
            r = v
        }
    }
    var i = new MO(a);
    return t && i.observe(t),
    function() {
        i.disconnect()
    }
}
const Zxe = function(t, e) {
    var n = !1
      , r = null;
    function a() {
        clearTimeout(r)
    }
    function i(o) {
        if (!n || o === !0) {
            if (t() === !1)
                return;
            n = !0,
            a(),
            r = setTimeout(function() {
                n = !1
            }, e.value)
        } else
            a(),
            r = setTimeout(function() {
                n = !1,
                i()
            }, e.value)
    }
    return [i, function() {
        n = !1,
        a()
    }
    ]
};
function Qxe() {
    this.__data__ = [],
    this.size = 0
}
function cD(t, e) {
    return t === e || t !== t && e !== e
}
function WC(t, e) {
    for (var n = t.length; n--; )
        if (cD(t[n][0], e))
            return n;
    return -1
}
var Jxe = Array.prototype
  , eSe = Jxe.splice;
function tSe(t) {
    var e = this.__data__
      , n = WC(e, t);
    if (n < 0)
        return !1;
    var r = e.length - 1;
    return n == r ? e.pop() : eSe.call(e, n, 1),
    --this.size,
    !0
}
function nSe(t) {
    var e = this.__data__
      , n = WC(e, t);
    return n < 0 ? void 0 : e[n][1]
}
function rSe(t) {
    return WC(this.__data__, t) > -1
}
function aSe(t, e) {
    var n = this.__data__
      , r = WC(n, t);
    return r < 0 ? (++this.size,
    n.push([t, e])) : n[r][1] = e,
    this
}
function ys(t) {
    var e = -1
      , n = t == null ? 0 : t.length;
    for (this.clear(); ++e < n; ) {
        var r = t[e];
        this.set(r[0], r[1])
    }
}
ys.prototype.clear = Qxe;
ys.prototype.delete = tSe;
ys.prototype.get = nSe;
ys.prototype.has = rSe;
ys.prototype.set = aSe;
function iSe() {
    this.__data__ = new ys,
    this.size = 0
}
function oSe(t) {
    var e = this.__data__
      , n = e.delete(t);
    return this.size = e.size,
    n
}
function lSe(t) {
    return this.__data__.get(t)
}
function sSe(t) {
    return this.__data__.has(t)
}
function wo(t) {
    var e = typeof t;
    return t != null && (e == "object" || e == "function")
}
var uSe = "[object AsyncFunction]"
  , cSe = "[object Function]"
  , fSe = "[object GeneratorFunction]"
  , dSe = "[object Proxy]";
function lQ(t) {
    if (!wo(t))
        return !1;
    var e = Vu(t);
    return e == cSe || e == fSe || e == uSe || e == dSe
}
var vSe = ko["__core-js_shared__"];
const Y_ = vSe;
var V$ = function() {
    var t = /[^.]+$/.exec(Y_ && Y_.keys && Y_.keys.IE_PROTO || "");
    return t ? "Symbol(src)_1." + t : ""
}();
function hSe(t) {
    return !!V$ && V$ in t
}
var pSe = Function.prototype
  , gSe = pSe.toString;
function Yf(t) {
    if (t != null) {
        try {
            return gSe.call(t)
        } catch (e) {}
        try {
            return t + ""
        } catch (e) {}
    }
    return ""
}
var mSe = /[\\^$.*+?()[\]{}|]/g
  , ySe = /^\[object .+?Constructor\]$/
  , bSe = Function.prototype
  , xSe = Object.prototype
  , SSe = bSe.toString
  , CSe = xSe.hasOwnProperty
  , wSe = RegExp("^" + SSe.call(CSe).replace(mSe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
function _Se(t) {
    if (!wo(t) || hSe(t))
        return !1;
    var e = lQ(t) ? wSe : ySe;
    return e.test(Yf(t))
}
function TSe(t, e) {
    return t == null ? void 0 : t[e]
}
function qf(t, e) {
    var n = TSe(t, e);
    return _Se(n) ? n : void 0
}
var PSe = qf(ko, "Map");
const f0 = PSe;
var MSe = qf(Object, "create");
const d0 = MSe;
function ASe() {
    this.__data__ = d0 ? d0(null) : {},
    this.size = 0
}
function ISe(t) {
    var e = this.has(t) && delete this.__data__[t];
    return this.size -= e ? 1 : 0,
    e
}
var kSe = "__lodash_hash_undefined__"
  , OSe = Object.prototype
  , DSe = OSe.hasOwnProperty;
function ESe(t) {
    var e = this.__data__;
    if (d0) {
        var n = e[t];
        return n === kSe ? void 0 : n
    }
    return DSe.call(e, t) ? e[t] : void 0
}
var LSe = Object.prototype
  , RSe = LSe.hasOwnProperty;
function NSe(t) {
    var e = this.__data__;
    return d0 ? e[t] !== void 0 : RSe.call(e, t)
}
var $Se = "__lodash_hash_undefined__";
function FSe(t, e) {
    var n = this.__data__;
    return this.size += this.has(t) ? 0 : 1,
    n[t] = d0 && e === void 0 ? $Se : e,
    this
}
function If(t) {
    var e = -1
      , n = t == null ? 0 : t.length;
    for (this.clear(); ++e < n; ) {
        var r = t[e];
        this.set(r[0], r[1])
    }
}
If.prototype.clear = ASe;
If.prototype.delete = ISe;
If.prototype.get = ESe;
If.prototype.has = NSe;
If.prototype.set = FSe;
function BSe() {
    this.size = 0,
    this.__data__ = {
        hash: new If,
        map: new (f0 || ys),
        string: new If
    }
}
function VSe(t) {
    var e = typeof t;
    return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null
}
function GC(t, e) {
    var n = t.__data__;
    return VSe(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map
}
function zSe(t) {
    var e = GC(this, t).delete(t);
    return this.size -= e ? 1 : 0,
    e
}
function HSe(t) {
    return GC(this, t).get(t)
}
function jSe(t) {
    return GC(this, t).has(t)
}
function WSe(t, e) {
    var n = GC(this, t)
      , r = n.size;
    return n.set(t, e),
    this.size += n.size == r ? 0 : 1,
    this
}
function bs(t) {
    var e = -1
      , n = t == null ? 0 : t.length;
    for (this.clear(); ++e < n; ) {
        var r = t[e];
        this.set(r[0], r[1])
    }
}
bs.prototype.clear = BSe;
bs.prototype.delete = zSe;
bs.prototype.get = HSe;
bs.prototype.has = jSe;
bs.prototype.set = WSe;
var GSe = 200;
function KSe(t, e) {
    var n = this.__data__;
    if (n instanceof ys) {
        var r = n.__data__;
        if (!f0 || r.length < GSe - 1)
            return r.push([t, e]),
            this.size = ++n.size,
            this;
        n = this.__data__ = new bs(r)
    }
    return n.set(t, e),
    this.size = n.size,
    this
}
function ll(t) {
    var e = this.__data__ = new ys(t);
    this.size = e.size
}
ll.prototype.clear = iSe;
ll.prototype.delete = oSe;
ll.prototype.get = lSe;
ll.prototype.has = sSe;
ll.prototype.set = KSe;
var USe = "__lodash_hash_undefined__";
function YSe(t) {
    return this.__data__.set(t, USe),
    this
}
function qSe(t) {
    return this.__data__.has(t)
}
function kf(t) {
    var e = -1
      , n = t == null ? 0 : t.length;
    for (this.__data__ = new bs; ++e < n; )
        this.add(t[e])
}
kf.prototype.add = kf.prototype.push = YSe;
kf.prototype.has = qSe;
function XSe(t, e) {
    for (var n = -1, r = t == null ? 0 : t.length; ++n < r; )
        if (e(t[n], n, t))
            return !0;
    return !1
}
function v0(t, e) {
    return t.has(e)
}
var ZSe = 1
  , QSe = 2;
function sQ(t, e, n, r, a, i) {
    var o = n & ZSe
      , l = t.length
      , s = e.length;
    if (l != s && !(o && s > l))
        return !1;
    var u = i.get(t)
      , c = i.get(e);
    if (u && c)
        return u == e && c == t;
    var f = -1
      , d = !0
      , v = n & QSe ? new kf : void 0;
    for (i.set(t, e),
    i.set(e, t); ++f < l; ) {
        var h = t[f]
          , p = e[f];
        if (r)
            var g = o ? r(p, h, f, e, t, i) : r(h, p, f, t, e, i);
        if (g !== void 0) {
            if (g)
                continue;
            d = !1;
            break
        }
        if (v) {
            if (!XSe(e, function(m, y) {
                if (!v0(v, y) && (h === m || a(h, m, n, r, i)))
                    return v.push(y)
            })) {
                d = !1;
                break
            }
        } else if (!(h === p || a(h, p, n, r, i))) {
            d = !1;
            break
        }
    }
    return i.delete(t),
    i.delete(e),
    d
}
var JSe = ko.Uint8Array;
const Ox = JSe;
function eCe(t) {
    var e = -1
      , n = Array(t.size);
    return t.forEach(function(r, a) {
        n[++e] = [a, r]
    }),
    n
}
function fD(t) {
    var e = -1
      , n = Array(t.size);
    return t.forEach(function(r) {
        n[++e] = r
    }),
    n
}
var tCe = 1
  , nCe = 2
  , rCe = "[object Boolean]"
  , aCe = "[object Date]"
  , iCe = "[object Error]"
  , oCe = "[object Map]"
  , lCe = "[object Number]"
  , sCe = "[object RegExp]"
  , uCe = "[object Set]"
  , cCe = "[object String]"
  , fCe = "[object Symbol]"
  , dCe = "[object ArrayBuffer]"
  , vCe = "[object DataView]"
  , z$ = Bi ? Bi.prototype : void 0
  , q_ = z$ ? z$.valueOf : void 0;
function hCe(t, e, n, r, a, i, o) {
    switch (n) {
    case vCe:
        if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset)
            return !1;
        t = t.buffer,
        e = e.buffer;
    case dCe:
        return !(t.byteLength != e.byteLength || !i(new Ox(t), new Ox(e)));
    case rCe:
    case aCe:
    case lCe:
        return cD(+t, +e);
    case iCe:
        return t.name == e.name && t.message == e.message;
    case sCe:
    case cCe:
        return t == e + "";
    case oCe:
        var l = eCe;
    case uCe:
        var s = r & tCe;
        if (l || (l = fD),
        t.size != e.size && !s)
            return !1;
        var u = o.get(t);
        if (u)
            return u == e;
        r |= nCe,
        o.set(t, e);
        var c = sQ(l(t), l(e), r, a, i, o);
        return o.delete(t),
        c;
    case fCe:
        if (q_)
            return q_.call(t) == q_.call(e)
    }
    return !1
}
function dD(t, e) {
    for (var n = -1, r = e.length, a = t.length; ++n < r; )
        t[a + n] = e[n];
    return t
}
var pCe = Array.isArray;
const zi = pCe;
function uQ(t, e, n) {
    var r = e(t);
    return zi(t) ? r : dD(r, n(t))
}
function gCe(t, e) {
    for (var n = -1, r = t == null ? 0 : t.length, a = 0, i = []; ++n < r; ) {
        var o = t[n];
        e(o, n, t) && (i[a++] = o)
    }
    return i
}
function cQ() {
    return []
}
var mCe = Object.prototype
  , yCe = mCe.propertyIsEnumerable
  , H$ = Object.getOwnPropertySymbols
  , bCe = H$ ? function(t) {
    return t == null ? [] : (t = Object(t),
    gCe(H$(t), function(e) {
        return yCe.call(t, e)
    }))
}
: cQ;
const vD = bCe;
function xCe(t, e) {
    for (var n = -1, r = Array(t); ++n < t; )
        r[n] = e(n);
    return r
}
var SCe = "[object Arguments]";
function j$(t) {
    return xo(t) && Vu(t) == SCe
}
var fQ = Object.prototype
  , CCe = fQ.hasOwnProperty
  , wCe = fQ.propertyIsEnumerable
  , _Ce = j$(function() {
    return arguments
}()) ? j$ : function(t) {
    return xo(t) && CCe.call(t, "callee") && !wCe.call(t, "callee")
}
;
const hD = _Ce;
function TCe() {
    return !1
}
var dQ = typeof exports == "object" && exports && !exports.nodeType && exports
  , W$ = dQ && typeof module == "object" && module && !module.nodeType && module
  , PCe = W$ && W$.exports === dQ
  , G$ = PCe ? ko.Buffer : void 0
  , MCe = G$ ? G$.isBuffer : void 0
  , ACe = MCe || TCe;
const Dx = ACe;
var ICe = 9007199254740991
  , kCe = /^(?:0|[1-9]\d*)$/;
function pD(t, e) {
    var n = typeof t;
    return e = e == null ? ICe : e,
    !!e && (n == "number" || n != "symbol" && kCe.test(t)) && t > -1 && t % 1 == 0 && t < e
}
var OCe = 9007199254740991;
function gD(t) {
    return typeof t == "number" && t > -1 && t % 1 == 0 && t <= OCe
}
var DCe = "[object Arguments]"
  , ECe = "[object Array]"
  , LCe = "[object Boolean]"
  , RCe = "[object Date]"
  , NCe = "[object Error]"
  , $Ce = "[object Function]"
  , FCe = "[object Map]"
  , BCe = "[object Number]"
  , VCe = "[object Object]"
  , zCe = "[object RegExp]"
  , HCe = "[object Set]"
  , jCe = "[object String]"
  , WCe = "[object WeakMap]"
  , GCe = "[object ArrayBuffer]"
  , KCe = "[object DataView]"
  , UCe = "[object Float32Array]"
  , YCe = "[object Float64Array]"
  , qCe = "[object Int8Array]"
  , XCe = "[object Int16Array]"
  , ZCe = "[object Int32Array]"
  , QCe = "[object Uint8Array]"
  , JCe = "[object Uint8ClampedArray]"
  , ewe = "[object Uint16Array]"
  , twe = "[object Uint32Array]"
  , Un = {};
Un[UCe] = Un[YCe] = Un[qCe] = Un[XCe] = Un[ZCe] = Un[QCe] = Un[JCe] = Un[ewe] = Un[twe] = !0;
Un[DCe] = Un[ECe] = Un[GCe] = Un[LCe] = Un[KCe] = Un[RCe] = Un[NCe] = Un[$Ce] = Un[FCe] = Un[BCe] = Un[VCe] = Un[zCe] = Un[HCe] = Un[jCe] = Un[WCe] = !1;
function nwe(t) {
    return xo(t) && gD(t.length) && !!Un[Vu(t)]
}
function bm(t) {
    return function(e) {
        return t(e)
    }
}
var vQ = typeof exports == "object" && exports && !exports.nodeType && exports
  , mg = vQ && typeof module == "object" && module && !module.nodeType && module
  , rwe = mg && mg.exports === vQ
  , X_ = rwe && jX.process
  , awe = function() {
    try {
        var t = mg && mg.require && mg.require("util").types;
        return t || X_ && X_.binding && X_.binding("util")
    } catch (e) {}
}();
const $v = awe;
var K$ = $v && $v.isTypedArray
  , iwe = K$ ? bm(K$) : nwe;
const hQ = iwe;
var owe = Object.prototype
  , lwe = owe.hasOwnProperty;
function pQ(t, e) {
    var n = zi(t)
      , r = !n && hD(t)
      , a = !n && !r && Dx(t)
      , i = !n && !r && !a && hQ(t)
      , o = n || r || a || i
      , l = o ? xCe(t.length, String) : []
      , s = l.length;
    for (var u in t)
        (e || lwe.call(t, u)) && !(o && (u == "length" || a && (u == "offset" || u == "parent") || i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || pD(u, s))) && l.push(u);
    return l
}
var swe = Object.prototype;
function mD(t) {
    var e = t && t.constructor
      , n = typeof e == "function" && e.prototype || swe;
    return t === n
}
var uwe = GX(Object.keys, Object);
const cwe = uwe;
var fwe = Object.prototype
  , dwe = fwe.hasOwnProperty;
function vwe(t) {
    if (!mD(t))
        return cwe(t);
    var e = [];
    for (var n in Object(t))
        dwe.call(t, n) && n != "constructor" && e.push(n);
    return e
}
function xm(t) {
    return t != null && gD(t.length) && !lQ(t)
}
function ph(t) {
    return xm(t) ? pQ(t) : vwe(t)
}
function _M(t) {
    return uQ(t, ph, vD)
}
var hwe = 1
  , pwe = Object.prototype
  , gwe = pwe.hasOwnProperty;
function mwe(t, e, n, r, a, i) {
    var o = n & hwe
      , l = _M(t)
      , s = l.length
      , u = _M(e)
      , c = u.length;
    if (s != c && !o)
        return !1;
    for (var f = s; f--; ) {
        var d = l[f];
        if (!(o ? d in e : gwe.call(e, d)))
            return !1
    }
    var v = i.get(t)
      , h = i.get(e);
    if (v && h)
        return v == e && h == t;
    var p = !0;
    i.set(t, e),
    i.set(e, t);
    for (var g = o; ++f < s; ) {
        d = l[f];
        var m = t[d]
          , y = e[d];
        if (r)
            var b = o ? r(y, m, d, e, t, i) : r(m, y, d, t, e, i);
        if (!(b === void 0 ? m === y || a(m, y, n, r, i) : b)) {
            p = !1;
            break
        }
        g || (g = d == "constructor")
    }
    if (p && !g) {
        var x = t.constructor
          , C = e.constructor;
        x != C && "constructor"in t && "constructor"in e && !(typeof x == "function" && x instanceof x && typeof C == "function" && C instanceof C) && (p = !1)
    }
    return i.delete(t),
    i.delete(e),
    p
}
var ywe = qf(ko, "DataView");
const TM = ywe;
var bwe = qf(ko, "Promise");
const PM = bwe;
var xwe = qf(ko, "Set");
const dv = xwe;
var Swe = qf(ko, "WeakMap");
const MM = Swe;
var U$ = "[object Map]"
  , Cwe = "[object Object]"
  , Y$ = "[object Promise]"
  , q$ = "[object Set]"
  , X$ = "[object WeakMap]"
  , Z$ = "[object DataView]"
  , wwe = Yf(TM)
  , _we = Yf(f0)
  , Twe = Yf(PM)
  , Pwe = Yf(dv)
  , Mwe = Yf(MM)
  , kc = Vu;
(TM && kc(new TM(new ArrayBuffer(1))) != Z$ || f0 && kc(new f0) != U$ || PM && kc(PM.resolve()) != Y$ || dv && kc(new dv) != q$ || MM && kc(new MM) != X$) && (kc = function(t) {
    var e = Vu(t)
      , n = e == Cwe ? t.constructor : void 0
      , r = n ? Yf(n) : "";
    if (r)
        switch (r) {
        case wwe:
            return Z$;
        case _we:
            return U$;
        case Twe:
            return Y$;
        case Pwe:
            return q$;
        case Mwe:
            return X$
        }
    return e
}
);
const h0 = kc;
var Awe = 1
  , Q$ = "[object Arguments]"
  , J$ = "[object Array]"
  , Ey = "[object Object]"
  , Iwe = Object.prototype
  , eF = Iwe.hasOwnProperty;
function kwe(t, e, n, r, a, i) {
    var o = zi(t)
      , l = zi(e)
      , s = o ? J$ : h0(t)
      , u = l ? J$ : h0(e);
    s = s == Q$ ? Ey : s,
    u = u == Q$ ? Ey : u;
    var c = s == Ey
      , f = u == Ey
      , d = s == u;
    if (d && Dx(t)) {
        if (!Dx(e))
            return !1;
        o = !0,
        c = !1
    }
    if (d && !c)
        return i || (i = new ll),
        o || hQ(t) ? sQ(t, e, n, r, a, i) : hCe(t, e, s, n, r, a, i);
    if (!(n & Awe)) {
        var v = c && eF.call(t, "__wrapped__")
          , h = f && eF.call(e, "__wrapped__");
        if (v || h) {
            var p = v ? t.value() : t
              , g = h ? e.value() : e;
            return i || (i = new ll),
            a(p, g, n, r, i)
        }
    }
    return d ? (i || (i = new ll),
    mwe(t, e, n, r, a, i)) : !1
}
function KC(t, e, n, r, a) {
    return t === e ? !0 : t == null || e == null || !xo(t) && !xo(e) ? t !== t && e !== e : kwe(t, e, n, r, KC, a)
}
function UC(t, e) {
    return KC(t, e)
}
var Owe = {
    align: Object,
    target: [Object, Function],
    onAlign: Function,
    monitorBufferTime: Number,
    monitorWindowResize: Boolean,
    disabled: Boolean
};
function tF(t) {
    return typeof t != "function" ? null : t()
}
function nF(t) {
    return We(t) !== "object" || !t ? null : t
}
const Dwe = de({
    compatConfig: {
        MODE: 3
    },
    name: "Align",
    props: Owe,
    emits: ["align"],
    setup: function(e, n) {
        var r = n.expose
          , a = n.slots
          , i = Q({})
          , o = Q()
          , l = Zxe(function() {
            var p = e.disabled
              , g = e.target
              , m = e.align
              , y = e.onAlign;
            if (!p && g && o.value) {
                var b = o.value, x, C = tF(g), S = nF(g);
                i.value.element = C,
                i.value.point = S,
                i.value.align = m;
                var w = document
                  , T = w.activeElement;
                return C && uD(C) ? x = sD(b, C, m) : S && (x = Uxe(b, S, m)),
                Xxe(T, b),
                y && x && y(b, x),
                !0
            }
            return !1
        }, j(function() {
            return e.monitorBufferTime
        }))
          , s = De(l, 2)
          , u = s[0]
          , c = s[1]
          , f = Q({
            cancel: function() {}
        })
          , d = Q({
            cancel: function() {}
        })
          , v = function() {
            var g = e.target
              , m = tF(g)
              , y = nF(g);
            o.value !== d.value.element && (d.value.cancel(),
            d.value.element = o.value,
            d.value.cancel = B$(o.value, u)),
            (i.value.element !== m || !qxe(i.value.point, y) || !UC(i.value.align, e.align)) && (u(),
            f.value.element !== m && (f.value.cancel(),
            f.value.element = m,
            f.value.cancel = B$(m, u)))
        };
        ct(function() {
            yt(function() {
                v()
            })
        }),
        ua(function() {
            yt(function() {
                v()
            })
        }),
        Te(function() {
            return e.disabled
        }, function(p) {
            p ? c() : u()
        }, {
            immediate: !0,
            flush: "post"
        });
        var h = Q(null);
        return Te(function() {
            return e.monitorWindowResize
        }, function(p) {
            p ? h.value || (h.value = Nn(window, "resize", u)) : h.value && (h.value.remove(),
            h.value = null)
        }, {
            flush: "post"
        }),
        dr(function() {
            f.value.cancel(),
            d.value.cancel(),
            h.value && h.value.remove(),
            c()
        }),
        r({
            forceAlign: function() {
                return u(!0)
            }
        }),
        function() {
            var p = a == null ? void 0 : a.default();
            return p ? Qt(p[0], {
                ref: o
            }, !0, !0) : null
        }
    }
})
  , Ewe = de({
    compatConfig: {
        MODE: 3
    },
    name: "PopupInner",
    inheritAttrs: !1,
    props: rD,
    emits: ["mouseenter", "mouseleave", "mousedown", "touchstart", "align"],
    setup: function(e, n) {
        var r = n.expose, a = n.attrs, i = n.slots, o = Q(), l = Q(), s = Q(), u = xxe(at(e, "stretch")), c = De(u, 2), f = c[0], d = c[1], v = function() {
            e.stretch && d(e.getRootDomNode())
        }, h = Q(!1), p;
        Te(function() {
            return e.visible
        }, function(A) {
            clearTimeout(p),
            A ? p = setTimeout(function() {
                h.value = e.visible
            }) : h.value = !1
        }, {
            immediate: !0
        });
        var g = bxe(h, v)
          , m = De(g, 2)
          , y = m[0]
          , b = m[1]
          , x = Q()
          , C = function() {
            return e.point ? e.point : e.getRootDomNode
        }
          , S = function() {
            var O;
            (O = o.value) === null || O === void 0 || O.forceAlign()
        }
          , w = function(O, k) {
            var D = e.getClassNameFromAlign(k)
              , E = s.value;
            if (s.value !== D && (s.value = D),
            y.value === "align") {
                var L;
                E !== D ? Promise.resolve().then(function() {
                    S()
                }) : b(function() {
                    var N;
                    (N = x.value) === null || N === void 0 || N.call(x)
                }),
                (L = e.onAlign) === null || L === void 0 || L.call(e, O, k)
            }
        }
          , T = j(function() {
            var A = We(e.animation) === "object" ? e.animation : ZZ(e);
            return ["onAfterEnter", "onAfterLeave"].forEach(function(O) {
                var k = A[O];
                A[O] = function(D) {
                    b(),
                    y.value = "stable",
                    k == null || k(D)
                }
            }),
            A
        })
          , P = function() {
            return new Promise(function(O) {
                x.value = O
            }
            )
        };
        Te([T, y], function() {
            !T.value && y.value === "motion" && b()
        }, {
            immediate: !0
        }),
        r({
            forceAlign: S,
            getElement: function() {
                return l.value.$el || l.value
            }
        });
        var M = j(function() {
            var A;
            return !((A = e.align) !== null && A !== void 0 && A.points && (y.value === "align" || y.value === "stable"))
        });
        return function() {
            var A, O = e.zIndex, k = e.align, D = e.prefixCls, E = e.destroyPopupOnHide, L = e.onMouseenter, N = e.onMouseleave, R = e.onTouchstart, $ = R === void 0 ? function() {}
            : R, W = e.onMousedown, B = y.value, G = [I(I({}, f.value), {}, {
                zIndex: O,
                opacity: B === "motion" || B === "stable" || !h.value ? null : 0,
                pointerEvents: !h.value && B !== "stable" ? "none" : null
            }), a.style], K = bn((A = i.default) === null || A === void 0 ? void 0 : A.call(i, {
                visible: e.visible
            }));
            K.length > 1 && (K = _("div", {
                class: "".concat(D, "-content")
            }, [K]));
            var V = he(D, a.class, s.value)
              , U = h.value || !e.visible
              , X = U ? zu(T.value.name, T.value) : {};
            return _(bl, I(I({
                ref: l
            }, X), {}, {
                onBeforeEnter: P
            }), {
                default: function() {
                    return !E || e.visible ? Fr(_(Dwe, {
                        target: C(),
                        key: "popup",
                        ref: o,
                        monitorWindowResize: !0,
                        disabled: M.value,
                        align: k,
                        onAlign: w
                    }, {
                        default: function() {
                            return _("div", I(I({
                                class: V,
                                onMouseenter: L,
                                onMouseleave: N,
                                onMousedown: XR(W, ["capture"])
                            }, z({}, gr ? "onTouchstartPassive" : "onTouchstart", XR($, ["capture"]))), {}, {
                                style: G
                            }), [K])
                        }
                    }), [[Io, h.value]]) : null
                }
            })
        }
    }
})
  , Lwe = de({
    compatConfig: {
        MODE: 3
    },
    name: "Popup",
    inheritAttrs: !1,
    props: mxe,
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.expose
          , o = Q(!1)
          , l = Q(!1)
          , s = Q();
        return Te([function() {
            return e.visible
        }
        , function() {
            return e.mobile
        }
        ], function() {
            o.value = e.visible,
            e.visible && e.mobile && (l.value = !0)
        }, {
            immediate: !0,
            flush: "post"
        }),
        i({
            forceAlign: function() {
                var c;
                (c = s.value) === null || c === void 0 || c.forceAlign()
            },
            getElement: function() {
                var c;
                return (c = s.value) === null || c === void 0 ? void 0 : c.getElement()
            }
        }),
        function() {
            var u = I(I(I({}, e), r), {}, {
                visible: o.value
            })
              , c = l.value ? _(yxe, I(I({}, u), {}, {
                mobile: e.mobile,
                ref: s
            }), {
                default: a.default
            }) : _(Ewe, I(I({}, u), {}, {
                ref: s
            }), {
                default: a.default
            });
            return _("div", null, [_(QZ, u, null), c])
        }
    }
});
function Rwe(t, e, n) {
    return n ? t[0] === e[0] : t[0] === e[0] && t[1] === e[1]
}
function rF(t, e, n) {
    var r = t[e] || {};
    return I(I({}, r), n)
}
function Nwe(t, e, n, r) {
    for (var a = n.points, i = Object.keys(t), o = 0; o < i.length; o += 1) {
        var l = i[o];
        if (Rwe(t[l].points, a, r))
            return "".concat(e, "-placement-").concat(l)
    }
    return ""
}
const Xf = {
    methods: {
        setState: function() {
            var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}
              , n = arguments.length > 1 ? arguments[1] : void 0
              , r = typeof e == "function" ? e(this.$data, this.$props) : e;
            if (this.getDerivedStateFromProps) {
                var a = this.getDerivedStateFromProps(UX(this), I(I({}, this.$data), r));
                if (a === null)
                    return;
                r = I(I({}, r), a || {})
            }
            Wt(this.$data, r),
            this._.isMounted && this.$forceUpdate(),
            yt(function() {
                n && n()
            })
        },
        __emit: function() {
            var e = [].slice.call(arguments, 0)
              , n = e[0];
            n = "on".concat(n[0].toUpperCase()).concat(n.substring(1));
            var r = this.$props[n] || this.$attrs[n];
            if (e.length && r)
                if (Array.isArray(r))
                    for (var a = 0, i = r.length; a < i; a++)
                        r[a].apply(r, $e(e.slice(1)));
                else
                    r.apply(void 0, $e(e.slice(1)))
        }
    }
};
var gQ = Symbol("TriggerContextKey")
  , mQ = function() {
    var e = null;
    return It(gQ, {
        setPortal: function(r) {
            e = r
        },
        popPortal: !0
    }),
    function() {
        return e
    }
}
  , $we = function(e) {
    return e ? vt(gQ, {
        setPortal: function() {},
        popPortal: !1
    }) : {
        setPortal: function() {},
        popPortal: !1
    }
}
  , yQ = Symbol("PortalContextKey")
  , yD = function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
        inTriggerContext: !0
    };
    It(yQ, {
        inTriggerContext: n.inTriggerContext,
        shouldRender: j(function() {
            var r = e || {}
              , a = r.sPopupVisible
              , i = r.popupRef
              , o = r.forceRender
              , l = r.autoDestroy
              , s = !1;
            return (a || i || o) && (s = !0),
            !a && l && (s = !1),
            s
        })
    })
}
  , Fwe = function() {
    yD({}, {
        inTriggerContext: !1
    });
    var e = vt(yQ, {
        shouldRender: j(function() {
            return !1
        }),
        inTriggerContext: !1
    });
    return {
        shouldRender: j(function() {
            return e.shouldRender.value || e.inTriggerContext === !1
        })
    }
};
const AM = de({
    compatConfig: {
        MODE: 3
    },
    name: "Portal",
    inheritAttrs: !1,
    props: {
        getContainer: J.func.isRequired,
        didUpdate: Function
    },
    setup: function(e, n) {
        var r = n.slots, a = !0, i, o = Fwe(), l = o.shouldRender;
        dm(function() {
            a = !1,
            l.value && (i = e.getContainer())
        });
        var s = Te(l, function() {
            l.value && !i && (i = e.getContainer()),
            i && s()
        });
        return ua(function() {
            yt(function() {
                if (l.value) {
                    var u;
                    (u = e.didUpdate) === null || u === void 0 || u.call(e, e)
                }
            })
        }),
        Nt(function() {
            i && i.parentNode && i.parentNode.removeChild(i)
        }),
        function() {
            if (!l.value)
                return null;
            if (a) {
                var u;
                return (u = r.default) === null || u === void 0 ? void 0 : u.call(r)
            }
            return i ? _(sO, {
                to: i
            }, r) : null
        }
    }
});
function aF() {}
function Bwe() {
    return ""
}
function Vwe(t) {
    return t ? t.ownerDocument : window.document
}
var zwe = ["onClick", "onMousedown", "onTouchstart", "onMouseenter", "onMouseleave", "onFocus", "onBlur", "onContextmenu"];
const gh = de({
    compatConfig: {
        MODE: 3
    },
    name: "Trigger",
    mixins: [Xf],
    inheritAttrs: !1,
    props: {
        action: J.oneOfType([J.string, J.arrayOf(J.string)]).def([]),
        showAction: J.any.def([]),
        hideAction: J.any.def([]),
        getPopupClassNameFromAlign: J.any.def(Bwe),
        onPopupVisibleChange: Function,
        afterPopupVisibleChange: J.func.def(aF),
        popup: J.any,
        popupStyle: {
            type: Object,
            default: void 0
        },
        prefixCls: J.string.def("rc-trigger-popup"),
        popupClassName: J.string.def(""),
        popupPlacement: String,
        builtinPlacements: J.object,
        popupTransitionName: String,
        popupAnimation: J.any,
        mouseEnterDelay: J.number.def(0),
        mouseLeaveDelay: J.number.def(.1),
        zIndex: Number,
        focusDelay: J.number.def(0),
        blurDelay: J.number.def(.15),
        getPopupContainer: Function,
        getDocument: J.func.def(Vwe),
        forceRender: {
            type: Boolean,
            default: void 0
        },
        destroyPopupOnHide: {
            type: Boolean,
            default: !1
        },
        mask: {
            type: Boolean,
            default: !1
        },
        maskClosable: {
            type: Boolean,
            default: !0
        },
        popupAlign: J.object.def(function() {
            return {}
        }),
        popupVisible: {
            type: Boolean,
            default: void 0
        },
        defaultPopupVisible: {
            type: Boolean,
            default: !1
        },
        maskTransitionName: String,
        maskAnimation: String,
        stretch: String,
        alignPoint: {
            type: Boolean,
            default: void 0
        },
        autoDestroy: {
            type: Boolean,
            default: !1
        },
        mobile: Object,
        getTriggerDOMNode: Function,
        tryPopPortal: Boolean
    },
    setup: function(e) {
        var n = j(function() {
            var s = e.popupPlacement
              , u = e.popupAlign
              , c = e.builtinPlacements;
            return s && c ? rF(c, s, u) : u
        })
          , r = $we(e.tryPopPortal)
          , a = r.setPortal
          , i = r.popPortal
          , o = Q(null)
          , l = function(u) {
            o.value = u
        };
        return {
            popPortal: i,
            setPortal: a,
            vcTriggerContext: vt("vcTriggerContext", {}),
            popupRef: o,
            setPopupRef: l,
            triggerRef: Q(null),
            align: n,
            focusTime: null,
            clickOutsideHandler: null,
            contextmenuOutsideHandler1: null,
            contextmenuOutsideHandler2: null,
            touchOutsideHandler: null,
            attachId: null,
            delayTimer: null,
            hasPopupMouseDown: !1,
            preClickTime: null,
            preTouchTime: null,
            mouseDownTimeout: null,
            childOriginEvents: {}
        }
    },
    data: function() {
        var e = this, n, r = this.$props, a;
        return this.popupVisible !== void 0 ? a = !!r.popupVisible : a = !!r.defaultPopupVisible,
        zwe.forEach(function(i) {
            e["fire".concat(i)] = function(o) {
                e.fireEvents(i, o)
            }
        }),
        (n = this.setPortal) === null || n === void 0 || n.call(this, _(AM, {
            key: "portal",
            getContainer: this.getContainer,
            didUpdate: this.handlePortalUpdate
        }, {
            default: this.getComponent
        })),
        {
            prevPopupVisible: a,
            sPopupVisible: a,
            point: null
        }
    },
    watch: {
        popupVisible: function(e) {
            e !== void 0 && (this.prevPopupVisible = this.sPopupVisible,
            this.sPopupVisible = e)
        }
    },
    created: function() {
        It("vcTriggerContext", {
            onPopupMouseDown: this.onPopupMouseDown
        }),
        yD(this)
    },
    deactivated: function() {
        this.setPopupVisible(!1)
    },
    mounted: function() {
        var e = this;
        this.$nextTick(function() {
            e.updatedCal()
        })
    },
    updated: function() {
        var e = this;
        this.$nextTick(function() {
            e.updatedCal()
        })
    },
    beforeUnmount: function() {
        this.clearDelayTimer(),
        this.clearOutsideHandler(),
        clearTimeout(this.mouseDownTimeout),
        gt.cancel(this.attachId)
    },
    methods: {
        updatedCal: function() {
            var e = this.$props
              , n = this.$data;
            if (n.sPopupVisible) {
                var r;
                !this.clickOutsideHandler && (this.isClickToHide() || this.isContextmenuToShow()) && (r = e.getDocument(this.getRootDomNode()),
                this.clickOutsideHandler = Nn(r, "mousedown", this.onDocumentClick)),
                this.touchOutsideHandler || (r = r || e.getDocument(this.getRootDomNode()),
                this.touchOutsideHandler = Nn(r, "touchstart", this.onDocumentClick, gr ? {
                    passive: !1
                } : !1)),
                !this.contextmenuOutsideHandler1 && this.isContextmenuToShow() && (r = r || e.getDocument(this.getRootDomNode()),
                this.contextmenuOutsideHandler1 = Nn(r, "scroll", this.onContextmenuClose)),
                !this.contextmenuOutsideHandler2 && this.isContextmenuToShow() && (this.contextmenuOutsideHandler2 = Nn(window, "blur", this.onContextmenuClose))
            } else
                this.clearOutsideHandler()
        },
        onMouseenter: function(e) {
            var n = this.$props.mouseEnterDelay;
            this.fireEvents("onMouseenter", e),
            this.delaySetPopupVisible(!0, n, n ? null : e)
        },
        onMouseMove: function(e) {
            this.fireEvents("onMousemove", e),
            this.setPoint(e)
        },
        onMouseleave: function(e) {
            this.fireEvents("onMouseleave", e),
            this.delaySetPopupVisible(!1, this.$props.mouseLeaveDelay)
        },
        onPopupMouseenter: function() {
            this.clearDelayTimer()
        },
        onPopupMouseleave: function(e) {
            var n;
            e && e.relatedTarget && !e.relatedTarget.setTimeout && Gc((n = this.popupRef) === null || n === void 0 ? void 0 : n.getElement(), e.relatedTarget) || this.delaySetPopupVisible(!1, this.$props.mouseLeaveDelay)
        },
        onFocus: function(e) {
            this.fireEvents("onFocus", e),
            this.clearDelayTimer(),
            this.isFocusToShow() && (this.focusTime = Date.now(),
            this.delaySetPopupVisible(!0, this.$props.focusDelay))
        },
        onMousedown: function(e) {
            this.fireEvents("onMousedown", e),
            this.preClickTime = Date.now()
        },
        onTouchstart: function(e) {
            this.fireEvents("onTouchstart", e),
            this.preTouchTime = Date.now()
        },
        onBlur: function(e) {
            Gc(e.target, e.relatedTarget || document.activeElement) || (this.fireEvents("onBlur", e),
            this.clearDelayTimer(),
            this.isBlurToHide() && this.delaySetPopupVisible(!1, this.$props.blurDelay))
        },
        onContextmenu: function(e) {
            e.preventDefault(),
            this.fireEvents("onContextmenu", e),
            this.setPopupVisible(!0, e)
        },
        onContextmenuClose: function() {
            this.isContextmenuToShow() && this.close()
        },
        onClick: function(e) {
            if (this.fireEvents("onClick", e),
            this.focusTime) {
                var n;
                if (this.preClickTime && this.preTouchTime ? n = Math.min(this.preClickTime, this.preTouchTime) : this.preClickTime ? n = this.preClickTime : this.preTouchTime && (n = this.preTouchTime),
                Math.abs(n - this.focusTime) < 20)
                    return;
                this.focusTime = 0
            }
            this.preClickTime = 0,
            this.preTouchTime = 0,
            this.isClickToShow() && (this.isClickToHide() || this.isBlurToHide()) && e && e.preventDefault && e.preventDefault(),
            e && e.domEvent && e.domEvent.preventDefault();
            var r = !this.$data.sPopupVisible;
            (this.isClickToHide() && !r || r && this.isClickToShow()) && this.setPopupVisible(!this.$data.sPopupVisible, e)
        },
        onPopupMouseDown: function() {
            var e = this
              , n = this.vcTriggerContext
              , r = n === void 0 ? {} : n;
            this.hasPopupMouseDown = !0,
            clearTimeout(this.mouseDownTimeout),
            this.mouseDownTimeout = setTimeout(function() {
                e.hasPopupMouseDown = !1
            }, 0),
            r.onPopupMouseDown && r.onPopupMouseDown.apply(r, arguments)
        },
        onDocumentClick: function(e) {
            if (!(this.$props.mask && !this.$props.maskClosable)) {
                var n = e.target
                  , r = this.getRootDomNode()
                  , a = this.getPopupDomNode();
                (!Gc(r, n) || this.isContextMenuOnly()) && !Gc(a, n) && !this.hasPopupMouseDown && this.delaySetPopupVisible(!1, .1)
            }
        },
        getPopupDomNode: function() {
            var e;
            return ((e = this.popupRef) === null || e === void 0 ? void 0 : e.getElement()) || null
        },
        getRootDomNode: function() {
            var e = this.$props.getTriggerDOMNode;
            if (e) {
                var n = eu(this.triggerRef);
                return eu(e(n))
            }
            try {
                var r = eu(this.triggerRef);
                if (r)
                    return r
            } catch (a) {}
            return eu(this)
        },
        handleGetPopupClassFromAlign: function(e) {
            var n = []
              , r = this.$props
              , a = r.popupPlacement
              , i = r.builtinPlacements
              , o = r.prefixCls
              , l = r.alignPoint
              , s = r.getPopupClassNameFromAlign;
            return a && i && n.push(Nwe(i, o, e, l)),
            s && n.push(s(e)),
            n.join(" ")
        },
        getPopupAlign: function() {
            var e = this.$props
              , n = e.popupPlacement
              , r = e.popupAlign
              , a = e.builtinPlacements;
            return n && a ? rF(a, n, r) : r
        },
        getComponent: function() {
            var e = this
              , n = {};
            this.isMouseEnterToShow() && (n.onMouseenter = this.onPopupMouseenter),
            this.isMouseLeaveToHide() && (n.onMouseleave = this.onPopupMouseleave),
            n.onMousedown = this.onPopupMouseDown,
            n[gr ? "onTouchstartPassive" : "onTouchstart"] = this.onPopupMouseDown;
            var r = this.handleGetPopupClassFromAlign
              , a = this.getRootDomNode
              , i = this.getContainer
              , o = this.$attrs
              , l = this.$props
              , s = l.prefixCls
              , u = l.destroyPopupOnHide
              , c = l.popupClassName
              , f = l.popupAnimation
              , d = l.popupTransitionName
              , v = l.popupStyle
              , h = l.mask
              , p = l.maskAnimation
              , g = l.maskTransitionName
              , m = l.zIndex
              , y = l.stretch
              , b = l.alignPoint
              , x = l.mobile
              , C = l.forceRender
              , S = this.$data
              , w = S.sPopupVisible
              , T = S.point
              , P = I(I({
                prefixCls: s,
                destroyPopupOnHide: u,
                visible: w,
                point: b ? T : null,
                align: this.align,
                animation: f,
                getClassNameFromAlign: r,
                stretch: y,
                getRootDomNode: a,
                mask: h,
                zIndex: m,
                transitionName: d,
                maskAnimation: p,
                maskTransitionName: g,
                getContainer: i,
                class: c,
                style: v,
                onAlign: o.onPopupAlign || aF
            }, n), {}, {
                ref: this.setPopupRef,
                mobile: x,
                forceRender: C
            });
            return _(Lwe, P, {
                default: this.$slots.popup || function() {
                    return DO(e, "popup")
                }
            })
        },
        attachParent: function(e) {
            var n = this;
            gt.cancel(this.attachId);
            var r = this.$props, a = r.getPopupContainer, i = r.getDocument, o = this.getRootDomNode(), l;
            a ? (o || a.length === 0) && (l = a(o)) : l = i(this.getRootDomNode()).body,
            l ? l.appendChild(e) : this.attachId = gt(function() {
                n.attachParent(e)
            })
        },
        getContainer: function() {
            var e = this.$props
              , n = e.getDocument
              , r = n(this.getRootDomNode()).createElement("div");
            return r.style.position = "absolute",
            r.style.top = "0",
            r.style.left = "0",
            r.style.width = "100%",
            this.attachParent(r),
            r
        },
        setPopupVisible: function(e, n) {
            var r = this.alignPoint
              , a = this.sPopupVisible
              , i = this.onPopupVisibleChange;
            this.clearDelayTimer(),
            a !== e && (Kl(this, "popupVisible") || this.setState({
                sPopupVisible: e,
                prevPopupVisible: a
            }),
            i && i(e)),
            r && n && e && this.setPoint(n)
        },
        setPoint: function(e) {
            var n = this.$props.alignPoint;
            !n || !e || this.setState({
                point: {
                    pageX: e.pageX,
                    pageY: e.pageY
                }
            })
        },
        handlePortalUpdate: function() {
            this.prevPopupVisible !== this.sPopupVisible && this.afterPopupVisibleChange(this.sPopupVisible)
        },
        delaySetPopupVisible: function(e, n, r) {
            var a = this
              , i = n * 1e3;
            if (this.clearDelayTimer(),
            i) {
                var o = r ? {
                    pageX: r.pageX,
                    pageY: r.pageY
                } : null;
                this.delayTimer = pxe(function() {
                    a.setPopupVisible(e, o),
                    a.clearDelayTimer()
                }, i)
            } else
                this.setPopupVisible(e, r)
        },
        clearDelayTimer: function() {
            this.delayTimer && (hxe(this.delayTimer),
            this.delayTimer = null)
        },
        clearOutsideHandler: function() {
            this.clickOutsideHandler && (this.clickOutsideHandler.remove(),
            this.clickOutsideHandler = null),
            this.contextmenuOutsideHandler1 && (this.contextmenuOutsideHandler1.remove(),
            this.contextmenuOutsideHandler1 = null),
            this.contextmenuOutsideHandler2 && (this.contextmenuOutsideHandler2.remove(),
            this.contextmenuOutsideHandler2 = null),
            this.touchOutsideHandler && (this.touchOutsideHandler.remove(),
            this.touchOutsideHandler = null)
        },
        createTwoChains: function(e) {
            var n = function() {}
              , r = L7(this);
            return this.childOriginEvents[e] && r[e] ? this["fire".concat(e)] : (n = this.childOriginEvents[e] || r[e] || n,
            n)
        },
        isClickToShow: function() {
            var e = this.$props
              , n = e.action
              , r = e.showAction;
            return n.indexOf("click") !== -1 || r.indexOf("click") !== -1
        },
        isContextMenuOnly: function() {
            var e = this.$props.action;
            return e === "contextmenu" || e.length === 1 && e[0] === "contextmenu"
        },
        isContextmenuToShow: function() {
            var e = this.$props
              , n = e.action
              , r = e.showAction;
            return n.indexOf("contextmenu") !== -1 || r.indexOf("contextmenu") !== -1
        },
        isClickToHide: function() {
            var e = this.$props
              , n = e.action
              , r = e.hideAction;
            return n.indexOf("click") !== -1 || r.indexOf("click") !== -1
        },
        isMouseEnterToShow: function() {
            var e = this.$props
              , n = e.action
              , r = e.showAction;
            return n.indexOf("hover") !== -1 || r.indexOf("mouseenter") !== -1
        },
        isMouseLeaveToHide: function() {
            var e = this.$props
              , n = e.action
              , r = e.hideAction;
            return n.indexOf("hover") !== -1 || r.indexOf("mouseleave") !== -1
        },
        isFocusToShow: function() {
            var e = this.$props
              , n = e.action
              , r = e.showAction;
            return n.indexOf("focus") !== -1 || r.indexOf("focus") !== -1
        },
        isBlurToHide: function() {
            var e = this.$props
              , n = e.action
              , r = e.hideAction;
            return n.indexOf("focus") !== -1 || r.indexOf("blur") !== -1
        },
        forcePopupAlign: function() {
            if (this.$data.sPopupVisible) {
                var e;
                (e = this.popupRef) === null || e === void 0 || e.forceAlign()
            }
        },
        fireEvents: function(e, n) {
            this.childOriginEvents[e] && this.childOriginEvents[e](n);
            var r = this.$props[e] || this.$attrs[e];
            r && r(n)
        },
        close: function() {
            this.setPopupVisible(!1)
        }
    },
    render: function() {
        var e = this
          , n = this.$attrs
          , r = ar(hm(this))
          , a = this.$props.alignPoint
          , i = r[0];
        this.childOriginEvents = L7(i);
        var o = {
            key: "trigger"
        };
        this.isContextmenuToShow() ? o.onContextmenu = this.onContextmenu : o.onContextmenu = this.createTwoChains("onContextmenu"),
        this.isClickToHide() || this.isClickToShow() ? (o.onClick = this.onClick,
        o.onMousedown = this.onMousedown,
        o[gr ? "onTouchstartPassive" : "onTouchstart"] = this.onTouchstart) : (o.onClick = this.createTwoChains("onClick"),
        o.onMousedown = this.createTwoChains("onMousedown"),
        o[gr ? "onTouchstartPassive" : "onTouchstart"] = this.createTwoChains("onTouchstart")),
        this.isMouseEnterToShow() ? (o.onMouseenter = this.onMouseenter,
        a && (o.onMousemove = this.onMouseMove)) : o.onMouseenter = this.createTwoChains("onMouseenter"),
        this.isMouseLeaveToHide() ? o.onMouseleave = this.onMouseleave : o.onMouseleave = this.createTwoChains("onMouseleave"),
        this.isFocusToShow() || this.isBlurToHide() ? (o.onFocus = this.onFocus,
        o.onBlur = this.onBlur) : (o.onFocus = this.createTwoChains("onFocus"),
        o.onBlur = function(c) {
            c && (!c.relatedTarget || !Gc(c.target, c.relatedTarget)) && e.createTwoChains("onBlur")(c)
        }
        );
        var l = he(i && i.props && i.props.class, n.class);
        l && (o.class = l);
        var s = Qt(i, I(I({}, o), {}, {
            ref: "triggerRef"
        }), !0, !0);
        if (this.popPortal)
            return s;
        var u = _(AM, {
            key: "portal",
            getContainer: this.getContainer,
            didUpdate: this.handlePortalUpdate
        }, {
            default: this.getComponent
        });
        return _(xt, null, [u, s])
    }
});
var Hwe = ["empty"]
  , jwe = function(e) {
    var n = e === !0 ? 0 : 1;
    return {
        bottomLeft: {
            points: ["tl", "bl"],
            offset: [0, 4],
            overflow: {
                adjustX: n,
                adjustY: 1
            }
        },
        bottomRight: {
            points: ["tr", "br"],
            offset: [0, 4],
            overflow: {
                adjustX: n,
                adjustY: 1
            }
        },
        topLeft: {
            points: ["bl", "tl"],
            offset: [0, -4],
            overflow: {
                adjustX: n,
                adjustY: 1
            }
        },
        topRight: {
            points: ["br", "tr"],
            offset: [0, -4],
            overflow: {
                adjustX: n,
                adjustY: 1
            }
        }
    }
}
  , Wwe = de({
    name: "SelectTrigger",
    inheritAttrs: !1,
    props: {
        dropdownAlign: Object,
        visible: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        dropdownClassName: String,
        dropdownStyle: J.object,
        placement: String,
        empty: {
            type: Boolean,
            default: void 0
        },
        prefixCls: String,
        popupClassName: String,
        animation: String,
        transitionName: String,
        getPopupContainer: Function,
        dropdownRender: Function,
        containerWidth: Number,
        dropdownMatchSelectWidth: J.oneOfType([Number, Boolean]).def(!0),
        popupElement: J.any,
        direction: String,
        getTriggerDOMNode: Function,
        onPopupVisibleChange: Function,
        onPopupMouseEnter: Function
    },
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.expose
          , o = j(function() {
            var s = e.dropdownMatchSelectWidth;
            return jwe(s)
        })
          , l = Q();
        return i({
            getPopupElement: function() {
                return l.value
            }
        }),
        function() {
            var s = I(I({}, e), a)
              , u = s.empty
              , c = u === void 0 ? !1 : u
              , f = tt(s, Hwe)
              , d = f.visible
              , v = f.dropdownAlign
              , h = f.prefixCls
              , p = f.popupElement
              , g = f.dropdownClassName
              , m = f.dropdownStyle
              , y = f.direction
              , b = y === void 0 ? "ltr" : y
              , x = f.placement
              , C = f.dropdownMatchSelectWidth
              , S = f.containerWidth
              , w = f.dropdownRender
              , T = f.animation
              , P = f.transitionName
              , M = f.getPopupContainer
              , A = f.getTriggerDOMNode
              , O = f.onPopupVisibleChange
              , k = f.onPopupMouseEnter
              , D = "".concat(h, "-dropdown")
              , E = p;
            w && (E = w({
                menuNode: p,
                props: e
            }));
            var L = T ? "".concat(D, "-").concat(T) : P
              , N = I({
                minWidth: "".concat(S, "px")
            }, m);
            return typeof C == "number" ? N.width = "".concat(C, "px") : C && (N.width = "".concat(S, "px")),
            _(gh, I(I({}, e), {}, {
                showAction: O ? ["click"] : [],
                hideAction: O ? ["click"] : [],
                popupPlacement: x || (b === "rtl" ? "bottomRight" : "bottomLeft"),
                builtinPlacements: o.value,
                prefixCls: D,
                popupTransitionName: L,
                popupAlign: v,
                popupVisible: d,
                getPopupContainer: M,
                popupClassName: he(g, z({}, "".concat(D, "-empty"), c)),
                popupStyle: N,
                getTriggerDOMNode: A,
                onPopupVisibleChange: O
            }), {
                default: r.default,
                popup: function() {
                    return _("div", {
                        ref: l,
                        onMouseenter: k
                    }, [E])
                }
            })
        }
    }
});
const Gwe = Wwe;
var zt = {
    MAC_ENTER: 3,
    BACKSPACE: 8,
    TAB: 9,
    NUM_CENTER: 12,
    ENTER: 13,
    SHIFT: 16,
    CTRL: 17,
    ALT: 18,
    PAUSE: 19,
    CAPS_LOCK: 20,
    ESC: 27,
    SPACE: 32,
    PAGE_UP: 33,
    PAGE_DOWN: 34,
    END: 35,
    HOME: 36,
    LEFT: 37,
    UP: 38,
    RIGHT: 39,
    DOWN: 40,
    PRINT_SCREEN: 44,
    INSERT: 45,
    DELETE: 46,
    ZERO: 48,
    ONE: 49,
    TWO: 50,
    THREE: 51,
    FOUR: 52,
    FIVE: 53,
    SIX: 54,
    SEVEN: 55,
    EIGHT: 56,
    NINE: 57,
    QUESTION_MARK: 63,
    A: 65,
    B: 66,
    C: 67,
    D: 68,
    E: 69,
    F: 70,
    G: 71,
    H: 72,
    I: 73,
    J: 74,
    K: 75,
    L: 76,
    M: 77,
    N: 78,
    O: 79,
    P: 80,
    Q: 81,
    R: 82,
    S: 83,
    T: 84,
    U: 85,
    V: 86,
    W: 87,
    X: 88,
    Y: 89,
    Z: 90,
    META: 91,
    WIN_KEY_RIGHT: 92,
    CONTEXT_MENU: 93,
    NUM_ZERO: 96,
    NUM_ONE: 97,
    NUM_TWO: 98,
    NUM_THREE: 99,
    NUM_FOUR: 100,
    NUM_FIVE: 101,
    NUM_SIX: 102,
    NUM_SEVEN: 103,
    NUM_EIGHT: 104,
    NUM_NINE: 105,
    NUM_MULTIPLY: 106,
    NUM_PLUS: 107,
    NUM_MINUS: 109,
    NUM_PERIOD: 110,
    NUM_DIVISION: 111,
    F1: 112,
    F2: 113,
    F3: 114,
    F4: 115,
    F5: 116,
    F6: 117,
    F7: 118,
    F8: 119,
    F9: 120,
    F10: 121,
    F11: 122,
    F12: 123,
    NUMLOCK: 144,
    SEMICOLON: 186,
    DASH: 189,
    EQUALS: 187,
    COMMA: 188,
    PERIOD: 190,
    SLASH: 191,
    APOSTROPHE: 192,
    SINGLE_QUOTE: 222,
    OPEN_SQUARE_BRACKET: 219,
    BACKSLASH: 220,
    CLOSE_SQUARE_BRACKET: 221,
    WIN_KEY: 224,
    MAC_FF_META: 224,
    WIN_IME: 229,
    isTextModifyingKeyEvent: function(e) {
        var n = e.keyCode;
        if (e.altKey && !e.ctrlKey || e.metaKey || n >= zt.F1 && n <= zt.F12)
            return !1;
        switch (n) {
        case zt.ALT:
        case zt.CAPS_LOCK:
        case zt.CONTEXT_MENU:
        case zt.CTRL:
        case zt.DOWN:
        case zt.END:
        case zt.ESC:
        case zt.HOME:
        case zt.INSERT:
        case zt.LEFT:
        case zt.MAC_FF_META:
        case zt.META:
        case zt.NUMLOCK:
        case zt.NUM_CENTER:
        case zt.PAGE_DOWN:
        case zt.PAGE_UP:
        case zt.PAUSE:
        case zt.PRINT_SCREEN:
        case zt.RIGHT:
        case zt.SHIFT:
        case zt.UP:
        case zt.WIN_KEY:
        case zt.WIN_KEY_RIGHT:
            return !1;
        default:
            return !0
        }
    },
    isCharacterKey: function(e) {
        if (e >= zt.ZERO && e <= zt.NINE || e >= zt.NUM_ZERO && e <= zt.NUM_MULTIPLY || e >= zt.A && e <= zt.Z || window.navigator.userAgent.indexOf("WebKit") !== -1 && e === 0)
            return !0;
        switch (e) {
        case zt.SPACE:
        case zt.QUESTION_MARK:
        case zt.NUM_PLUS:
        case zt.NUM_MINUS:
        case zt.NUM_PERIOD:
        case zt.NUM_DIVISION:
        case zt.SEMICOLON:
        case zt.DASH:
        case zt.EQUALS:
        case zt.COMMA:
        case zt.PERIOD:
        case zt.SLASH:
        case zt.APOSTROPHE:
        case zt.SINGLE_QUOTE:
        case zt.OPEN_SQUARE_BRACKET:
        case zt.BACKSLASH:
        case zt.CLOSE_SQUARE_BRACKET:
            return !0;
        default:
            return !1
        }
    }
};
const Ee = zt;
var YC = function(e, n) {
    var r, a = n.slots, i = e.class, o = e.customizeIcon, l = e.customizeIconProps, s = e.onMousedown, u = e.onClick, c;
    return typeof o == "function" ? c = o(l) : c = o,
    _("span", {
        class: i,
        onMousedown: function(d) {
            d.preventDefault(),
            s && s(d)
        },
        style: {
            userSelect: "none",
            WebkitUserSelect: "none"
        },
        unselectable: "on",
        onClick: u,
        "aria-hidden": !0
    }, [c !== void 0 ? c : _("span", {
        class: i.split(/\s+/).map(function(f) {
            return "".concat(f, "-icon")
        })
    }, [(r = a.default) === null || r === void 0 ? void 0 : r.call(a)])])
};
YC.inheritAttrs = !1;
YC.displayName = "TransBtn";
YC.props = {
    class: String,
    customizeIcon: J.any,
    customizeIconProps: J.any,
    onMousedown: Function,
    onClick: Function
};
const Ex = YC;
function Kwe(t) {
    t.target.composing = !0
}
function iF(t) {
    !t.target.composing || (t.target.composing = !1,
    Uwe(t.target, "input"))
}
function Uwe(t, e) {
    var n = document.createEvent("HTMLEvents");
    n.initEvent(e, !0, !0),
    t.dispatchEvent(n)
}
function Z_(t, e, n, r) {
    t.addEventListener(e, n, r)
}
var Ywe = {
    created: function(e, n) {
        (!n.modifiers || !n.modifiers.lazy) && (Z_(e, "compositionstart", Kwe),
        Z_(e, "compositionend", iF),
        Z_(e, "change", iF))
    }
};
const mh = Ywe;
var qwe = {
    inputRef: J.any,
    prefixCls: String,
    id: String,
    inputElement: J.VueNode,
    disabled: {
        type: Boolean,
        default: void 0
    },
    autofocus: {
        type: Boolean,
        default: void 0
    },
    autocomplete: String,
    editable: {
        type: Boolean,
        default: void 0
    },
    activeDescendantId: String,
    value: String,
    open: {
        type: Boolean,
        default: void 0
    },
    tabindex: J.oneOfType([J.number, J.string]),
    attrs: J.object,
    onKeydown: {
        type: Function
    },
    onMousedown: {
        type: Function
    },
    onChange: {
        type: Function
    },
    onPaste: {
        type: Function
    },
    onCompositionstart: {
        type: Function
    },
    onCompositionend: {
        type: Function
    },
    onFocus: {
        type: Function
    },
    onBlur: {
        type: Function
    }
}
  , Xwe = de({
    compatConfig: {
        MODE: 3
    },
    name: "Input",
    inheritAttrs: !1,
    props: qwe,
    setup: function(e) {
        var n = null
          , r = vt("VCSelectContainerEvent");
        return function() {
            var a, i, o = e.prefixCls, l = e.id, s = e.inputElement, u = e.disabled, c = e.tabindex, f = e.autofocus, d = e.autocomplete, v = e.editable, h = e.activeDescendantId, p = e.value, g = e.onKeydown, m = e.onMousedown, y = e.onChange, b = e.onPaste, x = e.onCompositionstart, C = e.onCompositionend, S = e.onFocus, w = e.onBlur, T = e.open, P = e.inputRef, M = e.attrs, A = s || Fr(_("input", null, null), [[mh]]), O = A.props || {}, k = O.onKeydown, D = O.onInput, E = O.onFocus, L = O.onBlur, N = O.onMousedown, R = O.onCompositionstart, $ = O.onCompositionend, W = O.style;
            return A = Qt(A, Wt(I(I(I({
                type: "search"
            }, O), {}, {
                id: l,
                ref: P,
                disabled: u,
                tabindex: c,
                autocomplete: d || "off",
                autofocus: f,
                class: he("".concat(o, "-selection-search-input"), (a = A) === null || a === void 0 || (i = a.props) === null || i === void 0 ? void 0 : i.class),
                role: "combobox",
                "aria-expanded": T,
                "aria-haspopup": "listbox",
                "aria-owns": "".concat(l, "_list"),
                "aria-autocomplete": "list",
                "aria-controls": "".concat(l, "_list"),
                "aria-activedescendant": h
            }, M), {}, {
                value: v ? p : "",
                readonly: !v,
                unselectable: v ? null : "on",
                style: I(I({}, W), {}, {
                    opacity: v ? null : 0
                }),
                onKeydown: function(G) {
                    g(G),
                    k && k(G)
                },
                onMousedown: function(G) {
                    m(G),
                    N && N(G)
                },
                onInput: function(G) {
                    y(G),
                    D && D(G)
                },
                onCompositionstart: function(G) {
                    x(G),
                    R && R(G)
                },
                onCompositionend: function(G) {
                    C(G),
                    $ && $(G)
                },
                onPaste: b,
                onFocus: function() {
                    clearTimeout(n),
                    E && E(arguments.length <= 0 ? void 0 : arguments[0]),
                    S && S(arguments.length <= 0 ? void 0 : arguments[0]),
                    r == null || r.focus(arguments.length <= 0 ? void 0 : arguments[0])
                },
                onBlur: function() {
                    for (var G = arguments.length, K = new Array(G), V = 0; V < G; V++)
                        K[V] = arguments[V];
                    n = setTimeout(function() {
                        L && L(K[0]),
                        w && w(K[0]),
                        r == null || r.blur(K[0])
                    }, 100)
                }
            }), A.type === "textarea" ? {} : {
                type: "search"
            }), !0, !0),
            A
        }
    }
});
const bQ = Xwe;
var Zwe = `accept acceptcharset accesskey action allowfullscreen allowtransparency
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
charset checked classid classname colspan cols content contenteditable contextmenu
controls coords crossorigin data datetime default defer dir disabled download draggable
enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
mediagroup method min minlength multiple muted name novalidate nonce open
optimum pattern placeholder poster preload radiogroup readonly rel required
reversed role rowspan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellcheck src srcdoc srclang srcset start step style
summary tabindex target title type usemap value width wmode wrap`
  , Qwe = `onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
    onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
    onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
    onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
    onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
    onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
    onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`
  , oF = "".concat(Zwe, " ").concat(Qwe).split(/[\s\n]+/)
  , Jwe = "aria-"
  , e2e = "data-";
function lF(t, e) {
    return t.indexOf(e) === 0
}
function Hu(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n;
    e === !1 ? n = {
        aria: !0,
        data: !0,
        attr: !0
    } : e === !0 ? n = {
        aria: !0
    } : n = I({}, e);
    var r = {};
    return Object.keys(t).forEach(function(a) {
        (n.aria && (a === "role" || lF(a, Jwe)) || n.data && lF(a, e2e) || n.attr && (oF.includes(a) || oF.includes(a.toLowerCase()))) && (r[a] = t[a])
    }),
    r
}
var xQ = Symbol("OverflowContextProviderKey")
  , IM = de({
    compatConfig: {
        MODE: 3
    },
    name: "OverflowContextProvider",
    inheritAttrs: !1,
    props: {
        value: {
            type: Object
        }
    },
    setup: function(e, n) {
        var r = n.slots;
        return It(xQ, j(function() {
            return e.value
        })),
        function() {
            var a;
            return (a = r.default) === null || a === void 0 ? void 0 : a.call(r)
        }
    }
})
  , t2e = function() {
    return vt(xQ, j(function() {
        return null
    }))
}
  , n2e = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "registerSize", "itemKey", "display", "order", "component"]
  , dd = void 0;
const vb = de({
    compatConfig: {
        MODE: 3
    },
    name: "Item",
    props: {
        prefixCls: String,
        item: J.any,
        renderItem: Function,
        responsive: Boolean,
        itemKey: {
            type: [String, Number]
        },
        registerSize: Function,
        display: Boolean,
        order: Number,
        component: J.any,
        invalidate: Boolean
    },
    setup: function(e, n) {
        var r = n.slots
          , a = n.expose
          , i = j(function() {
            return e.responsive && !e.display
        })
          , o = Q();
        a({
            itemNodeRef: o
        });
        function l(s) {
            e.registerSize(e.itemKey, s)
        }
        return dr(function() {
            l(null)
        }),
        function() {
            var s, u = e.prefixCls, c = e.invalidate, f = e.item, d = e.renderItem, v = e.responsive;
            e.registerSize,
            e.itemKey,
            e.display;
            var h = e.order, p = e.component, g = p === void 0 ? "div" : p, m = tt(e, n2e), y = (s = r.default) === null || s === void 0 ? void 0 : s.call(r), b = d && f !== dd ? d(f) : y, x;
            c || (x = {
                opacity: i.value ? 0 : 1,
                height: i.value ? 0 : dd,
                overflowY: i.value ? "hidden" : dd,
                order: v ? h : dd,
                pointerEvents: i.value ? "none" : dd,
                position: i.value ? "absolute" : dd
            });
            var C = {};
            return i.value && (C["aria-hidden"] = !0),
            _(Vi, {
                disabled: !v,
                onResize: function(w) {
                    var T = w.offsetWidth;
                    l(T)
                }
            }, {
                default: function() {
                    return _(g, I(I(I({
                        class: he(!c && u),
                        style: x
                    }, C), m), {}, {
                        ref: o
                    }), {
                        default: function() {
                            return [b]
                        }
                    })
                }
            })
        }
    }
});
var r2e = ["component"]
  , a2e = ["className"]
  , i2e = ["class"];
const o2e = de({
    compatConfig: {
        MODE: 3
    },
    name: "RawItem",
    inheritAttrs: !1,
    props: {
        component: J.any,
        title: J.any,
        id: String,
        onMouseenter: {
            type: Function
        },
        onMouseleave: {
            type: Function
        },
        onClick: {
            type: Function
        },
        onKeydown: {
            type: Function
        },
        onFocus: {
            type: Function
        }
    },
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = t2e();
        return function() {
            if (!i.value) {
                var o, l = e.component, s = l === void 0 ? "div" : l, u = tt(e, r2e);
                return _(s, I(I({}, u), a), {
                    default: function() {
                        return [(o = r.default) === null || o === void 0 ? void 0 : o.call(r)]
                    }
                })
            }
            var c = i.value
              , f = c.className
              , d = tt(c, a2e)
              , v = a.class
              , h = tt(a, i2e);
            return _(IM, {
                value: null
            }, {
                default: function() {
                    return [_(vb, I(I(I({
                        class: he(f, v)
                    }, d), h), e), r)]
                }
            })
        }
    }
});
var l2e = ["class", "style"]
  , SQ = "responsive"
  , CQ = "invalidate";
function s2e(t) {
    return "+ ".concat(t.length, " ...")
}
var u2e = function() {
    return {
        id: String,
        prefixCls: String,
        data: Array,
        itemKey: [String, Number, Function],
        itemWidth: {
            type: Number,
            default: 10
        },
        renderItem: Function,
        renderRawItem: Function,
        maxCount: [Number, String],
        renderRest: Function,
        renderRawRest: Function,
        suffix: J.any,
        component: String,
        itemComponent: J.any,
        onVisibleChange: Function,
        ssr: String,
        onMousedown: Function
    }
}
  , qC = de({
    name: "Overflow",
    inheritAttrs: !1,
    props: u2e(),
    emits: ["visibleChange"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.emit
          , i = n.slots
          , o = j(function() {
            return e.ssr === "full"
        })
          , l = Q(null)
          , s = j(function() {
            return l.value || 0
        })
          , u = Q(new Map)
          , c = Q(0)
          , f = Q(0)
          , d = Q(0)
          , v = Q(null)
          , h = Q(null)
          , p = j(function() {
            return h.value === null && o.value ? Number.MAX_SAFE_INTEGER : h.value || 0
        })
          , g = Q(!1)
          , m = j(function() {
            return "".concat(e.prefixCls, "-item")
        })
          , y = j(function() {
            return Math.max(c.value, f.value)
        })
          , b = j(function() {
            return !!(e.data.length && e.maxCount === SQ)
        })
          , x = j(function() {
            return e.maxCount === CQ
        })
          , C = j(function() {
            return b.value || typeof e.maxCount == "number" && e.data.length > e.maxCount
        })
          , S = j(function() {
            var L = e.data;
            return b.value ? l.value === null && o.value ? L = e.data : L = e.data.slice(0, Math.min(e.data.length, s.value / e.itemWidth)) : typeof e.maxCount == "number" && (L = e.data.slice(0, e.maxCount)),
            L
        })
          , w = j(function() {
            return b.value ? e.data.slice(p.value + 1) : e.data.slice(S.value.length)
        })
          , T = function(N, R) {
            var $;
            return typeof e.itemKey == "function" ? e.itemKey(N) : ($ = e.itemKey && (N == null ? void 0 : N[e.itemKey])) !== null && $ !== void 0 ? $ : R
        }
          , P = j(function() {
            return e.renderItem || function(L) {
                return L
            }
        })
          , M = function(N, R) {
            h.value = N,
            R || (g.value = N < e.data.length - 1,
            a("visibleChange", N))
        }
          , A = function(N, R) {
            l.value = R.clientWidth
        }
          , O = function(N, R) {
            var $ = new Map(u.value);
            R === null ? $.delete(N) : $.set(N, R),
            u.value = $
        }
          , k = function(N, R) {
            c.value = f.value,
            f.value = R
        }
          , D = function(N, R) {
            d.value = R
        }
          , E = function(N) {
            return u.value.get(T(S.value[N], N))
        };
        return Te([s, u, f, d, function() {
            return e.itemKey
        }
        , S], function() {
            if (s.value && y.value && S.value) {
                var L = d.value
                  , N = S.value.length
                  , R = N - 1;
                if (!N) {
                    M(0),
                    v.value = null;
                    return
                }
                for (var $ = 0; $ < N; $ += 1) {
                    var W = E($);
                    if (W === void 0) {
                        M($ - 1, !0);
                        break
                    }
                    if (L += W,
                    R === 0 && L <= s.value || $ === R - 1 && L + E(R) <= s.value) {
                        M(R),
                        v.value = null;
                        break
                    } else if (L + y.value > s.value) {
                        M($ - 1),
                        v.value = L - W - d.value + f.value;
                        break
                    }
                }
                e.suffix && E(0) + d.value > s.value && (v.value = null)
            }
        }),
        function() {
            var L = g.value && !!w.value.length
              , N = e.itemComponent
              , R = e.renderRawItem
              , $ = e.renderRawRest
              , W = e.renderRest
              , B = e.prefixCls
              , G = B === void 0 ? "rc-overflow" : B
              , K = e.suffix
              , V = e.component
              , U = V === void 0 ? "div" : V
              , X = e.id
              , Y = e.onMousedown
              , te = r.class
              , ne = r.style
              , ie = tt(r, l2e)
              , ae = {};
            v.value !== null && b.value && (ae = {
                position: "absolute",
                left: "".concat(v.value, "px"),
                top: 0
            });
            var q = {
                prefixCls: m.value,
                responsive: b.value,
                component: N,
                invalidate: x.value
            }
              , F = R ? function(ve, fe) {
                var ce = T(ve, fe);
                return _(IM, {
                    key: ce,
                    value: I(I({}, q), {}, {
                        order: fe,
                        item: ve,
                        itemKey: ce,
                        registerSize: O,
                        display: fe <= p.value
                    })
                }, {
                    default: function() {
                        return [R(ve, fe)]
                    }
                })
            }
            : function(ve, fe) {
                var ce = T(ve, fe);
                return _(vb, I(I({}, q), {}, {
                    order: fe,
                    key: ce,
                    item: ve,
                    renderItem: P.value,
                    itemKey: ce,
                    registerSize: O,
                    display: fe <= p.value
                }), null)
            }
              , H = function() {
                return null
            }
              , ee = {
                order: L ? p.value : Number.MAX_SAFE_INTEGER,
                className: "".concat(m.value, " ").concat(m.value, "-rest"),
                registerSize: k,
                display: L
            };
            if ($)
                $ && (H = function() {
                    return _(IM, {
                        value: I(I({}, q), ee)
                    }, {
                        default: function() {
                            return [$(w.value)]
                        }
                    })
                }
                );
            else {
                var re = W || s2e;
                H = function() {
                    return _(vb, I(I({}, q), ee), {
                        default: function() {
                            return typeof re == "function" ? re(w.value) : re
                        }
                    })
                }
            }
            var ue = function() {
                var fe;
                return _(U, I({
                    id: X,
                    class: he(!x.value && G, te),
                    style: ne,
                    onMousedown: Y
                }, ie), {
                    default: function() {
                        return [S.value.map(F), C.value ? H() : null, K && _(vb, I(I({}, q), {}, {
                            order: p.value,
                            class: "".concat(m.value, "-suffix"),
                            registerSize: D,
                            display: !0,
                            style: ae
                        }), {
                            default: function() {
                                return K
                            }
                        }), (fe = i.default) === null || fe === void 0 ? void 0 : fe.call(i)]
                    }
                })
            };
            return _(Vi, {
                disabled: !b.value,
                onResize: A
            }, {
                default: ue
            })
        }
    }
});
qC.Item = o2e;
qC.RESPONSIVE = SQ;
qC.INVALIDATE = CQ;
const vv = qC;
var wQ = Symbol("TreeSelectLegacyContextPropsKey");
function c2e(t) {
    return It(wQ, t)
}
function XC() {
    return vt(wQ, {})
}
var f2e = {
    id: String,
    prefixCls: String,
    values: J.array,
    open: {
        type: Boolean,
        default: void 0
    },
    searchValue: String,
    inputRef: J.any,
    placeholder: J.any,
    disabled: {
        type: Boolean,
        default: void 0
    },
    mode: String,
    showSearch: {
        type: Boolean,
        default: void 0
    },
    autofocus: {
        type: Boolean,
        default: void 0
    },
    autocomplete: String,
    activeDescendantId: String,
    tabindex: J.oneOfType([J.number, J.string]),
    removeIcon: J.any,
    choiceTransitionName: String,
    maxTagCount: J.oneOfType([J.number, J.string]),
    maxTagTextLength: Number,
    maxTagPlaceholder: J.any.def(function() {
        return function(t) {
            return "+ ".concat(t.length, " ...")
        }
    }),
    tagRender: Function,
    onToggleOpen: {
        type: Function
    },
    onRemove: Function,
    onInputChange: Function,
    onInputPaste: Function,
    onInputKeyDown: Function,
    onInputMouseDown: Function,
    onInputCompositionStart: Function,
    onInputCompositionEnd: Function
}
  , sF = function(e) {
    e.preventDefault(),
    e.stopPropagation()
}
  , d2e = de({
    name: "MultipleSelectSelector",
    inheritAttrs: !1,
    props: f2e,
    setup: function(e) {
        var n = Q()
          , r = Q(0)
          , a = Q(!1)
          , i = XC()
          , o = j(function() {
            return "".concat(e.prefixCls, "-selection")
        })
          , l = j(function() {
            return e.open || e.mode === "tags" ? e.searchValue : ""
        })
          , s = j(function() {
            return e.mode === "tags" || e.showSearch && (e.open || a.value)
        });
        ct(function() {
            Te(l, function() {
                r.value = n.value.scrollWidth
            }, {
                flush: "post",
                immediate: !0
            })
        });
        function u(v, h, p, g, m) {
            return _("span", {
                class: he("".concat(o.value, "-item"), z({}, "".concat(o.value, "-item-disabled"), p)),
                title: typeof v == "string" || typeof v == "number" ? v.toString() : void 0
            }, [_("span", {
                class: "".concat(o.value, "-item-content")
            }, [h]), g && _(Ex, {
                class: "".concat(o.value, "-item-remove"),
                onMousedown: sF,
                onClick: m,
                customizeIcon: e.removeIcon
            }, {
                default: function() {
                    return [Fi("\xD7")]
                }
            })])
        }
        function c(v, h, p, g, m, y) {
            var b = function(w) {
                sF(w),
                e.onToggleOpen(!open)
            }
              , x = y;
            if (i.keyEntities) {
                var C;
                x = ((C = i.keyEntities[v]) === null || C === void 0 ? void 0 : C.node) || {}
            }
            return _("span", {
                key: v,
                onMousedown: b
            }, [e.tagRender({
                label: h,
                value: v,
                disabled: p,
                closable: g,
                onClose: m,
                option: x
            })])
        }
        function f(v) {
            var h = v.disabled
              , p = v.label
              , g = v.value
              , m = v.option
              , y = !e.disabled && !h
              , b = p;
            if (typeof e.maxTagTextLength == "number" && (typeof p == "string" || typeof p == "number")) {
                var x = String(b);
                x.length > e.maxTagTextLength && (b = "".concat(x.slice(0, e.maxTagTextLength), "..."))
            }
            var C = function(w) {
                var T;
                w && w.stopPropagation(),
                (T = e.onRemove) === null || T === void 0 || T.call(e, v)
            };
            return typeof e.tagRender == "function" ? c(g, b, h, y, C, m) : u(p, b, h, y, C)
        }
        function d(v) {
            var h = e.maxTagPlaceholder
              , p = h === void 0 ? function(m) {
                return "+ ".concat(m.length, " ...")
            }
            : h
              , g = typeof p == "function" ? p(v) : p;
            return u(g, g, !1)
        }
        return function() {
            var v = e.id
              , h = e.prefixCls
              , p = e.values
              , g = e.open
              , m = e.inputRef
              , y = e.placeholder
              , b = e.disabled
              , x = e.autofocus
              , C = e.autocomplete
              , S = e.activeDescendantId
              , w = e.tabindex
              , T = e.onInputChange
              , P = e.onInputPaste
              , M = e.onInputKeyDown
              , A = e.onInputMouseDown
              , O = e.onInputCompositionStart
              , k = e.onInputCompositionEnd
              , D = _("div", {
                class: "".concat(o.value, "-search"),
                style: {
                    width: r.value + "px"
                },
                key: "input"
            }, [_(bQ, {
                inputRef: m,
                open: g,
                prefixCls: h,
                id: v,
                inputElement: null,
                disabled: b,
                autofocus: x,
                autocomplete: C,
                editable: s.value,
                activeDescendantId: S,
                value: l.value,
                onKeydown: M,
                onMousedown: A,
                onChange: T,
                onPaste: P,
                onCompositionstart: O,
                onCompositionend: k,
                tabindex: w,
                attrs: Hu(e, !0),
                onFocus: function() {
                    return a.value = !0
                },
                onBlur: function() {
                    return a.value = !1
                }
            }, null), _("span", {
                ref: n,
                class: "".concat(o.value, "-search-mirror"),
                "aria-hidden": !0
            }, [l.value, Fi("\xA0")])])
              , E = _(vv, {
                prefixCls: "".concat(o.value, "-overflow"),
                data: p,
                renderItem: f,
                renderRest: d,
                suffix: D,
                itemKey: "key",
                maxCount: e.maxTagCount,
                key: "overflow"
            }, null);
            return _(xt, null, [E, !p.length && !l.value && _("span", {
                class: "".concat(o.value, "-placeholder")
            }, [y])])
        }
    }
});
const v2e = d2e;
var h2e = {
    inputElement: J.any,
    id: String,
    prefixCls: String,
    values: J.array,
    open: {
        type: Boolean,
        default: void 0
    },
    searchValue: String,
    inputRef: J.any,
    placeholder: J.any,
    disabled: {
        type: Boolean,
        default: void 0
    },
    mode: String,
    showSearch: {
        type: Boolean,
        default: void 0
    },
    autofocus: {
        type: Boolean,
        default: void 0
    },
    autocomplete: String,
    activeDescendantId: String,
    tabindex: J.oneOfType([J.number, J.string]),
    activeValue: String,
    backfill: {
        type: Boolean,
        default: void 0
    },
    optionLabelRender: Function,
    onInputChange: Function,
    onInputPaste: Function,
    onInputKeyDown: Function,
    onInputMouseDown: Function,
    onInputCompositionStart: Function,
    onInputCompositionEnd: Function
}
  , bD = de({
    name: "SingleSelector",
    setup: function(e) {
        var n = Q(!1)
          , r = j(function() {
            return e.mode === "combobox"
        })
          , a = j(function() {
            return r.value || e.showSearch
        })
          , i = j(function() {
            var c = e.searchValue || "";
            return r.value && e.activeValue && !n.value && (c = e.activeValue),
            c
        })
          , o = XC();
        Te([r, function() {
            return e.activeValue
        }
        ], function() {
            r.value && (n.value = !1)
        }, {
            immediate: !0
        });
        var l = j(function() {
            return e.mode !== "combobox" && !e.open && !e.showSearch ? !1 : !!i.value
        })
          , s = j(function() {
            var c = e.values[0];
            return c && (typeof c.label == "string" || typeof c.label == "number") ? c.label.toString() : void 0
        })
          , u = function() {
            if (e.values[0])
                return null;
            var f = l.value ? {
                visibility: "hidden"
            } : void 0;
            return _("span", {
                class: "".concat(e.prefixCls, "-selection-placeholder"),
                style: f
            }, [e.placeholder])
        };
        return function() {
            var c, f = e.inputElement, d = e.prefixCls, v = e.id, h = e.values, p = e.inputRef, g = e.disabled, m = e.autofocus, y = e.autocomplete, b = e.activeDescendantId, x = e.open, C = e.tabindex, S = e.optionLabelRender, w = e.onInputKeyDown, T = e.onInputMouseDown, P = e.onInputChange, M = e.onInputPaste, A = e.onInputCompositionStart, O = e.onInputCompositionEnd, k = h[0], D = null;
            if (k && o.customSlots) {
                var E, L, N, R = (E = k.key) !== null && E !== void 0 ? E : k.value, $ = ((L = o.keyEntities[R]) === null || L === void 0 ? void 0 : L.node) || {};
                D = o.customSlots[(N = $.slots) === null || N === void 0 ? void 0 : N.title] || o.customSlots.title || k.label,
                typeof D == "function" && (D = D($))
            } else
                D = S && k ? S(k.option) : k == null ? void 0 : k.label;
            return _(xt, null, [_("span", {
                class: "".concat(d, "-selection-search")
            }, [_(bQ, {
                inputRef: p,
                prefixCls: d,
                id: v,
                open: x,
                inputElement: f,
                disabled: g,
                autofocus: m,
                autocomplete: y,
                editable: a.value,
                activeDescendantId: b,
                value: i.value,
                onKeydown: w,
                onMousedown: T,
                onChange: function(B) {
                    n.value = !0,
                    P(B)
                },
                onPaste: M,
                onCompositionstart: A,
                onCompositionend: O,
                tabindex: C,
                attrs: Hu(e, !0)
            }, null)]), !r.value && k && !l.value && _("span", {
                class: "".concat(d, "-selection-item"),
                title: s.value
            }, [_(xt, {
                key: (c = k.key) !== null && c !== void 0 ? c : k.value
            }, [D])]), u()])
        }
    }
});
bD.props = h2e;
bD.inheritAttrs = !1;
const p2e = bD;
function g2e(t) {
    return ![Ee.ESC, Ee.SHIFT, Ee.BACKSPACE, Ee.TAB, Ee.WIN_KEY, Ee.ALT, Ee.META, Ee.WIN_KEY_RIGHT, Ee.CTRL, Ee.SEMICOLON, Ee.EQUALS, Ee.CAPS_LOCK, Ee.CONTEXT_MENU, Ee.F1, Ee.F2, Ee.F3, Ee.F4, Ee.F5, Ee.F6, Ee.F7, Ee.F8, Ee.F9, Ee.F10, Ee.F11, Ee.F12].includes(t)
}
function _Q() {
    var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250, e = null, n;
    Nt(function() {
        clearTimeout(n)
    });
    function r(a) {
        (a || e === null) && (e = a),
        clearTimeout(n),
        n = setTimeout(function() {
            e = null
        }, t)
    }
    return [function() {
        return e
    }
    , r]
}
function p0() {
    var t = function e(n) {
        e.current = n
    };
    return t
}
var m2e = de({
    name: "Selector",
    inheritAttrs: !1,
    props: {
        id: String,
        prefixCls: String,
        showSearch: {
            type: Boolean,
            default: void 0
        },
        open: {
            type: Boolean,
            default: void 0
        },
        values: J.array,
        multiple: {
            type: Boolean,
            default: void 0
        },
        mode: String,
        searchValue: String,
        activeValue: String,
        inputElement: J.any,
        autofocus: {
            type: Boolean,
            default: void 0
        },
        activeDescendantId: String,
        tabindex: J.oneOfType([J.number, J.string]),
        disabled: {
            type: Boolean,
            default: void 0
        },
        placeholder: J.any,
        removeIcon: J.any,
        maxTagCount: J.oneOfType([J.number, J.string]),
        maxTagTextLength: Number,
        maxTagPlaceholder: J.any,
        tagRender: Function,
        optionLabelRender: Function,
        tokenWithEnter: {
            type: Boolean,
            default: void 0
        },
        choiceTransitionName: String,
        onToggleOpen: {
            type: Function
        },
        onSearch: Function,
        onSearchSubmit: Function,
        onRemove: Function,
        onInputKeyDown: {
            type: Function
        },
        domRef: Function
    },
    setup: function(e, n) {
        var r = n.expose
          , a = p0()
          , i = !1
          , o = _Q(0)
          , l = De(o, 2)
          , s = l[0]
          , u = l[1]
          , c = function(C) {
            var S = C.which;
            (S === Ee.UP || S === Ee.DOWN) && C.preventDefault(),
            e.onInputKeyDown && e.onInputKeyDown(C),
            S === Ee.ENTER && e.mode === "tags" && !i && !e.open && e.onSearchSubmit(C.target.value),
            g2e(S) && e.onToggleOpen(!0)
        }
          , f = function() {
            u(!0)
        }
          , d = null
          , v = function(C) {
            e.onSearch(C, !0, i) !== !1 && e.onToggleOpen(!0)
        }
          , h = function() {
            i = !0
        }
          , p = function(C) {
            i = !1,
            e.mode !== "combobox" && v(C.target.value)
        }
          , g = function(C) {
            var S = C.target.value;
            if (e.tokenWithEnter && d && /[\r\n]/.test(d)) {
                var w = d.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
                S = S.replace(w, d)
            }
            d = null,
            v(S)
        }
          , m = function(C) {
            var S = C.clipboardData
              , w = S.getData("text");
            d = w
        }
          , y = function(C) {
            var S = C.target;
            if (S !== a.current) {
                var w = document.body.style.msTouchAction !== void 0;
                w ? setTimeout(function() {
                    a.current.focus()
                }) : a.current.focus()
            }
        }
          , b = function(C) {
            var S = s();
            C.target !== a.current && !S && C.preventDefault(),
            (e.mode !== "combobox" && (!e.showSearch || !S) || !e.open) && (e.open && e.onSearch("", !0, !1),
            e.onToggleOpen())
        };
        return r({
            focus: function() {
                a.current.focus()
            },
            blur: function() {
                a.current.blur()
            }
        }),
        function() {
            var x = e.prefixCls
              , C = e.domRef
              , S = e.mode
              , w = {
                inputRef: a,
                onInputKeyDown: c,
                onInputMouseDown: f,
                onInputChange: g,
                onInputPaste: m,
                onInputCompositionStart: h,
                onInputCompositionEnd: p
            }
              , T = S === "multiple" || S === "tags" ? _(v2e, I(I({}, e), w), null) : _(p2e, I(I({}, e), w), null);
            return _("div", {
                ref: C,
                class: "".concat(x, "-selector"),
                onClick: y,
                onMousedown: b
            }, [T])
        }
    }
});
const y2e = m2e;
function b2e(t, e, n) {
    function r(a) {
        var i, o, l, s = a.target;
        s.shadowRoot && a.composed && (s = a.composedPath()[0] || s);
        var u = [(i = t[0]) === null || i === void 0 ? void 0 : i.value, (o = t[1]) === null || o === void 0 || (l = o.value) === null || l === void 0 ? void 0 : l.getPopupElement()];
        e.value && u.every(function(c) {
            return c && !c.contains(s) && c !== s
        }) && n(!1)
    }
    ct(function() {
        window.addEventListener("mousedown", r)
    }),
    Nt(function() {
        window.removeEventListener("mousedown", r)
    })
}
function x2e() {
    var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10, e = Q(!1), n, r = function() {
        clearTimeout(n)
    };
    ct(function() {
        r()
    });
    var a = function(o, l) {
        r(),
        n = setTimeout(function() {
            e.value = o,
            l && l()
        }, t)
    };
    return [e, a, r]
}
var TQ = Symbol("BaseSelectContextKey");
function S2e(t) {
    return It(TQ, t)
}
function Sm() {
    return vt(TQ, {})
}
const xD = function() {
    if (typeof navigator == "undefined" || typeof window == "undefined")
        return !1;
    var t = navigator.userAgent || navigator.vendor || window.opera;
    return !!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t == null ? void 0 : t.substr(0, 4)))
};
function Lx(t) {
    if (!Hn(t))
        return en(t);
    var e = new Proxy({},{
        get: function(r, a, i) {
            return Reflect.get(t.value, a, i)
        },
        set: function(r, a, i) {
            return t.value[a] = i,
            !0
        },
        deleteProperty: function(r, a) {
            return Reflect.deleteProperty(t.value, a)
        },
        has: function(r, a) {
            return Reflect.has(t.value, a)
        },
        ownKeys: function() {
            return Object.keys(t.value)
        },
        getOwnPropertyDescriptor: function() {
            return {
                enumerable: !0,
                configurable: !0
            }
        }
    });
    return en(e)
}
var C2e = ["prefixCls", "id", "open", "defaultOpen", "mode", "showSearch", "searchValue", "onSearch", "allowClear", "clearIcon", "showArrow", "inputIcon", "disabled", "loading", "getInputElement", "getPopupContainer", "placement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "tagRender", "optionLabelRender", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyup", "onKeydown", "onMousedown", "onClear", "omitDomProps", "getRawInputElement", "displayValues", "onDisplayValuesChange", "emptyOptions", "activeDescendantId", "activeValue", "OptionList"]
  , w2e = ["value", "onChange", "removeIcon", "placeholder", "autofocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabindex", "OptionList", "notFoundContent"]
  , _2e = function() {
    return {
        prefixCls: String,
        id: String,
        omitDomProps: Array,
        displayValues: Array,
        onDisplayValuesChange: Function,
        activeValue: String,
        activeDescendantId: String,
        onActiveValueChange: Function,
        searchValue: String,
        onSearch: Function,
        onSearchSplit: Function,
        maxLength: Number,
        OptionList: J.any,
        emptyOptions: Boolean
    }
}
  , ZC = function() {
    return {
        showSearch: {
            type: Boolean,
            default: void 0
        },
        tagRender: {
            type: Function
        },
        optionLabelRender: {
            type: Function
        },
        direction: {
            type: String
        },
        tabindex: Number,
        autofocus: Boolean,
        notFoundContent: J.any,
        placeholder: J.any,
        onClear: Function,
        choiceTransitionName: String,
        mode: String,
        disabled: {
            type: Boolean,
            default: void 0
        },
        loading: {
            type: Boolean,
            default: void 0
        },
        open: {
            type: Boolean,
            default: void 0
        },
        defaultOpen: {
            type: Boolean,
            default: void 0
        },
        onDropdownVisibleChange: {
            type: Function
        },
        getInputElement: {
            type: Function
        },
        getRawInputElement: {
            type: Function
        },
        maxTagTextLength: Number,
        maxTagCount: {
            type: [String, Number]
        },
        maxTagPlaceholder: J.any,
        tokenSeparators: {
            type: Array
        },
        allowClear: {
            type: Boolean,
            default: void 0
        },
        showArrow: {
            type: Boolean,
            default: void 0
        },
        inputIcon: J.any,
        clearIcon: J.any,
        removeIcon: J.any,
        animation: String,
        transitionName: String,
        dropdownStyle: {
            type: Object
        },
        dropdownClassName: String,
        dropdownMatchSelectWidth: {
            type: [Boolean, Number],
            default: void 0
        },
        dropdownRender: {
            type: Function
        },
        dropdownAlign: Object,
        placement: {
            type: String
        },
        getPopupContainer: {
            type: Function
        },
        showAction: {
            type: Array
        },
        onBlur: {
            type: Function
        },
        onFocus: {
            type: Function
        },
        onKeyup: Function,
        onKeydown: Function,
        onMousedown: Function,
        onPopupScroll: Function,
        onInputKeyDown: Function,
        onMouseenter: Function,
        onMouseleave: Function,
        onClick: Function
    }
}
  , T2e = function() {
    return I(I({}, _2e()), ZC())
};
function PQ(t) {
    return t === "tags" || t === "multiple"
}
const SD = de({
    compatConfig: {
        MODE: 3
    },
    name: "BaseSelect",
    inheritAttrs: !1,
    props: $t(T2e(), {
        showAction: [],
        notFoundContent: "Not Found"
    }),
    setup: function(e, n) {
        var r = n.attrs
          , a = n.expose
          , i = n.slots
          , o = j(function() {
            return PQ(e.mode)
        })
          , l = j(function() {
            return e.showSearch !== void 0 ? e.showSearch : o.value || e.mode === "combobox"
        })
          , s = Q(!1);
        ct(function() {
            s.value = xD()
        });
        var u = XC()
          , c = Q(null)
          , f = p0()
          , d = Q(null)
          , v = Q(null)
          , h = Q(null)
          , p = x2e()
          , g = De(p, 3)
          , m = g[0]
          , y = g[1]
          , b = g[2]
          , x = function() {
            var F;
            (F = v.value) === null || F === void 0 || F.focus()
        }
          , C = function() {
            var F;
            (F = v.value) === null || F === void 0 || F.blur()
        };
        a({
            focus: x,
            blur: C,
            scrollTo: function(F) {
                var H;
                return (H = h.value) === null || H === void 0 ? void 0 : H.scrollTo(F)
            }
        });
        var S = j(function() {
            var q;
            if (e.mode !== "combobox")
                return e.searchValue;
            var F = (q = e.displayValues[0]) === null || q === void 0 ? void 0 : q.value;
            return typeof F == "string" || typeof F == "number" ? String(F) : ""
        })
          , w = e.open !== void 0 ? e.open : e.defaultOpen
          , T = Q(w)
          , P = Q(w)
          , M = function(F) {
            T.value = e.open !== void 0 ? e.open : F,
            P.value = T.value
        };
        Te(function() {
            return e.open
        }, function() {
            M(e.open)
        });
        var A = j(function() {
            return !e.notFoundContent && e.emptyOptions
        });
        pt(function() {
            P.value = T.value,
            (e.disabled || A.value && P.value && e.mode === "combobox") && (P.value = !1)
        });
        var O = j(function() {
            return A.value ? !1 : P.value
        })
          , k = function(F) {
            var H = F !== void 0 ? F : !P.value;
            T.value !== H && !e.disabled && (M(H),
            e.onDropdownVisibleChange && e.onDropdownVisibleChange(H))
        }
          , D = j(function() {
            return (e.tokenSeparators || []).some(function(q) {
                return [`
`, `\r
`].includes(q)
            })
        })
          , E = function(F, H, ee) {
            var re, ue = !0, ve = F;
            (re = e.onActiveValueChange) === null || re === void 0 || re.call(e, null);
            var fe = ee ? null : cxe(F, e.tokenSeparators);
            if (e.mode !== "combobox" && fe) {
                var ce;
                ve = "",
                (ce = e.onSearchSplit) === null || ce === void 0 || ce.call(e, fe),
                k(!1),
                ue = !1
            }
            return e.onSearch && S.value !== ve && e.onSearch(ve, {
                source: H ? "typing" : "effect"
            }),
            ue
        }
          , L = function(F) {
            var H;
            !F || !F.trim() || (H = e.onSearch) === null || H === void 0 || H.call(e, F, {
                source: "submit"
            })
        };
        Te(P, function() {
            !P.value && !o.value && e.mode !== "combobox" && E("", !1, !1)
        }, {
            immediate: !0,
            flush: "post"
        }),
        Te(function() {
            return e.disabled
        }, function() {
            T.value && !!e.disabled && M(!1)
        }, {
            immediate: !0
        });
        var N = _Q()
          , R = De(N, 2)
          , $ = R[0]
          , W = R[1]
          , B = function(F) {
            var H, ee = $(), re = F.which;
            if (re === Ee.ENTER && (e.mode !== "combobox" && F.preventDefault(),
            P.value || k(!0)),
            W(!!S.value),
            re === Ee.BACKSPACE && !ee && o.value && !S.value && e.displayValues.length) {
                for (var ue = $e(e.displayValues), ve = null, fe = ue.length - 1; fe >= 0; fe -= 1) {
                    var ce = ue[fe];
                    if (!ce.disabled) {
                        ue.splice(fe, 1),
                        ve = ce;
                        break
                    }
                }
                ve && e.onDisplayValuesChange(ue, {
                    type: "remove",
                    values: [ve]
                })
            }
            for (var le = arguments.length, oe = new Array(le > 1 ? le - 1 : 0), se = 1; se < le; se++)
                oe[se - 1] = arguments[se];
            if (P.value && h.value) {
                var xe;
                (xe = h.value).onKeydown.apply(xe, [F].concat(oe))
            }
            (H = e.onKeydown) === null || H === void 0 || H.call.apply(H, [e, F].concat(oe))
        }
          , G = function(F) {
            for (var H = arguments.length, ee = new Array(H > 1 ? H - 1 : 0), re = 1; re < H; re++)
                ee[re - 1] = arguments[re];
            if (P.value && h.value) {
                var ue;
                (ue = h.value).onKeyup.apply(ue, [F].concat(ee))
            }
            e.onKeyup && e.onKeyup.apply(e, [F].concat(ee))
        }
          , K = function(F) {
            var H = e.displayValues.filter(function(ee) {
                return ee !== F
            });
            e.onDisplayValuesChange(H, {
                type: "remove",
                values: [F]
            })
        }
          , V = Q(!1)
          , U = function() {
            y(!0),
            e.disabled || (e.onFocus && !V.value && e.onFocus.apply(e, arguments),
            e.showAction && e.showAction.includes("focus") && k(!0)),
            V.value = !0
        }
          , X = function() {
            if (y(!1, function() {
                V.value = !1,
                k(!1)
            }),
            !e.disabled) {
                var F = S.value;
                F && (e.mode === "tags" ? e.onSearch(F, {
                    source: "submit"
                }) : e.mode === "multiple" && e.onSearch("", {
                    source: "blur"
                })),
                e.onBlur && e.onBlur.apply(e, arguments)
            }
        };
        It("VCSelectContainerEvent", {
            focus: U,
            blur: X
        });
        var Y = [];
        ct(function() {
            Y.forEach(function(q) {
                return clearTimeout(q)
            }),
            Y.splice(0, Y.length)
        }),
        Nt(function() {
            Y.forEach(function(q) {
                return clearTimeout(q)
            }),
            Y.splice(0, Y.length)
        });
        var te = function(F) {
            var H, ee, re = F.target, ue = (H = d.value) === null || H === void 0 ? void 0 : H.getPopupElement();
            if (ue && ue.contains(re)) {
                var ve = setTimeout(function() {
                    var oe = Y.indexOf(ve);
                    if (oe !== -1 && Y.splice(oe, 1),
                    b(),
                    !s.value && !ue.contains(document.activeElement)) {
                        var se;
                        (se = v.value) === null || se === void 0 || se.focus()
                    }
                });
                Y.push(ve)
            }
            for (var fe = arguments.length, ce = new Array(fe > 1 ? fe - 1 : 0), le = 1; le < fe; le++)
                ce[le - 1] = arguments[le];
            (ee = e.onMousedown) === null || ee === void 0 || ee.call.apply(ee, [e, F].concat(ce))
        }
          , ne = Q(null)
          , ie = qn()
          , ae = function() {
            ie.update()
        };
        return ct(function() {
            Te(O, function() {
                if (O.value) {
                    var q, F = Math.ceil((q = c.value) === null || q === void 0 ? void 0 : q.offsetWidth);
                    ne.value !== F && !Number.isNaN(F) && (ne.value = F)
                }
            }, {
                immediate: !0,
                flush: "post"
            })
        }),
        b2e([c, d], O, k),
        S2e(Lx(I(I({}, vu(e)), {}, {
            open: P,
            triggerOpen: O,
            showSearch: l,
            multiple: o,
            toggleOpen: k
        }))),
        function() {
            var q, F = I(I({}, e), r), H = F.prefixCls, ee = F.id;
            F.open,
            F.defaultOpen;
            var re = F.mode;
            F.showSearch,
            F.searchValue,
            F.onSearch;
            var ue = F.allowClear
              , ve = F.clearIcon
              , fe = F.showArrow
              , ce = F.inputIcon
              , le = F.disabled
              , oe = F.loading
              , se = F.getInputElement
              , xe = F.getPopupContainer
              , Pe = F.placement
              , Fe = F.animation
              , ze = F.transitionName
              , _e = F.dropdownStyle
              , me = F.dropdownClassName
              , Ie = F.dropdownMatchSelectWidth
              , Oe = F.dropdownRender
              , Ce = F.dropdownAlign;
            F.showAction;
            var pe = F.direction;
            F.tokenSeparators;
            var ye = F.tagRender
              , be = F.optionLabelRender;
            F.onPopupScroll,
            F.onDropdownVisibleChange,
            F.onFocus,
            F.onBlur,
            F.onKeyup,
            F.onKeydown,
            F.onMousedown;
            var Ae = F.onClear, Re = F.omitDomProps, Ne = F.getRawInputElement, Se = F.displayValues, we = F.onDisplayValuesChange, Ve = F.emptyOptions, Ye = F.activeDescendantId, Ue = F.activeValue, Ke = F.OptionList, Xe = tt(F, C2e), it = re === "combobox" && se && se() || null, nt = typeof Ne == "function" && Ne(), ht = I({}, Xe), ft;
            nt && (ft = function(Sn) {
                k(Sn)
            }
            ),
            w2e.forEach(function(xn) {
                delete ht[xn]
            }),
            Re == null || Re.forEach(function(xn) {
                delete ht[xn]
            });
            var Zt = fe !== void 0 ? fe : oe || !o.value && re !== "combobox", Tt;
            Zt && (Tt = _(Ex, {
                class: he("".concat(H, "-arrow"), z({}, "".concat(H, "-arrow-loading"), oe)),
                customizeIcon: ce,
                customizeIconProps: {
                    loading: oe,
                    searchValue: S.value,
                    open: P.value,
                    focused: m.value,
                    showSearch: l.value
                }
            }, null));
            var bt, wt = function() {
                Ae == null || Ae(),
                we([], {
                    type: "clear",
                    values: Se
                }),
                E("", !1, !1)
            };
            !le && ue && (Se.length || S.value) && (bt = _(Ex, {
                class: "".concat(H, "-clear"),
                onMousedown: wt,
                customizeIcon: ve
            }, {
                default: function() {
                    return [Fi("\xD7")]
                }
            }));
            var Mn = _(Ke, {
                ref: h
            }, I(I({}, u.customSlots), {}, {
                option: i.option
            })), gn = he(H, r.class, (q = {},
            z(q, "".concat(H, "-focused"), m.value),
            z(q, "".concat(H, "-multiple"), o.value),
            z(q, "".concat(H, "-single"), !o.value),
            z(q, "".concat(H, "-allow-clear"), ue),
            z(q, "".concat(H, "-show-arrow"), Zt),
            z(q, "".concat(H, "-disabled"), le),
            z(q, "".concat(H, "-loading"), oe),
            z(q, "".concat(H, "-open"), P.value),
            z(q, "".concat(H, "-customize-input"), it),
            z(q, "".concat(H, "-show-search"), l.value),
            q)), or = _(Gwe, {
                ref: d,
                disabled: le,
                prefixCls: H,
                visible: O.value,
                popupElement: Mn,
                containerWidth: ne.value,
                animation: Fe,
                transitionName: ze,
                dropdownStyle: _e,
                dropdownClassName: me,
                direction: pe,
                dropdownMatchSelectWidth: Ie,
                dropdownRender: Oe,
                dropdownAlign: Ce,
                placement: Pe,
                getPopupContainer: xe,
                empty: Ve,
                getTriggerDOMNode: function() {
                    return f.current
                },
                onPopupVisibleChange: ft,
                onPopupMouseEnter: ae
            }, {
                default: function() {
                    return nt ? cr(nt) && Qt(nt, {
                        ref: f
                    }, !1, !0) : _(y2e, I(I({}, e), {}, {
                        domRef: f,
                        prefixCls: H,
                        inputElement: it,
                        ref: v,
                        id: ee,
                        showSearch: l.value,
                        mode: re,
                        activeDescendantId: Ye,
                        tagRender: ye,
                        optionLabelRender: be,
                        values: Se,
                        open: P.value,
                        onToggleOpen: k,
                        activeValue: Ue,
                        searchValue: S.value,
                        onSearch: E,
                        onSearchSubmit: L,
                        onRemove: K,
                        tokenWithEnter: D.value
                    }), null)
                }
            }), er;
            return nt ? er = or : er = _("div", I(I({}, ht), {}, {
                class: gn,
                ref: c,
                onMousedown: te,
                onKeydown: B,
                onKeyup: G
            }), [m.value && !P.value && _("span", {
                style: {
                    width: 0,
                    height: 0,
                    position: "absolute",
                    overflow: "hidden",
                    opacity: 0
                },
                "aria-live": "polite"
            }, ["".concat(Se.map(function(xn) {
                var Sn = xn.label
                  , Fn = xn.value;
                return ["number", "string"].includes(We(Sn)) ? Sn : Fn
            }).join(", "))]), or, Tt, bt]),
            er
        }
    }
});
var QC = function(e, n) {
    var r, a = e.height, i = e.offset, o = e.prefixCls, l = e.onInnerResize, s = n.slots, u = {}, c = {
        display: "flex",
        flexDirection: "column"
    };
    return i !== void 0 && (u = {
        height: "".concat(a, "px"),
        position: "relative",
        overflow: "hidden"
    },
    c = I(I({}, c), {}, {
        transform: "translateY(".concat(i, "px)"),
        position: "absolute",
        left: 0,
        right: 0,
        top: 0
    })),
    _("div", {
        style: u
    }, [_(Vi, {
        onResize: function(d) {
            var v = d.offsetHeight;
            v && l && l()
        }
    }, {
        default: function() {
            return [_("div", {
                style: c,
                class: he(z({}, "".concat(o, "-holder-inner"), o))
            }, [(r = s.default) === null || r === void 0 ? void 0 : r.call(s)])]
        }
    })])
};
QC.displayName = "Filter";
QC.inheritAttrs = !1;
QC.props = {
    prefixCls: String,
    height: Number,
    offset: Number,
    onInnerResize: Function
};
const P2e = QC;
var MQ = function(e, n) {
    var r, a = e.setRef, i = n.slots, o = bn((r = i.default) === null || r === void 0 ? void 0 : r.call(i));
    return o && o.length ? Zr(o[0], {
        ref: a
    }) : o
};
MQ.props = {
    setRef: {
        type: Function,
        default: function() {}
    }
};
const M2e = MQ;
var A2e = 20;
function uF(t) {
    return "touches"in t ? t.touches[0].pageY : t.pageY
}
const I2e = de({
    compatConfig: {
        MODE: 3
    },
    name: "ScrollBar",
    inheritAttrs: !1,
    props: {
        prefixCls: String,
        scrollTop: Number,
        scrollHeight: Number,
        height: Number,
        count: Number,
        onScroll: {
            type: Function
        },
        onStartMove: {
            type: Function
        },
        onStopMove: {
            type: Function
        }
    },
    setup: function() {
        return {
            moveRaf: null,
            scrollbarRef: p0(),
            thumbRef: p0(),
            visibleTimeout: null,
            state: en({
                dragging: !1,
                pageY: null,
                startTop: null,
                visible: !1
            })
        }
    },
    watch: {
        scrollTop: {
            handler: function() {
                this.delayHidden()
            },
            flush: "post"
        }
    },
    mounted: function() {
        var e, n;
        (e = this.scrollbarRef.current) === null || e === void 0 || e.addEventListener("touchstart", this.onScrollbarTouchStart, gr ? {
            passive: !1
        } : !1),
        (n = this.thumbRef.current) === null || n === void 0 || n.addEventListener("touchstart", this.onMouseDown, gr ? {
            passive: !1
        } : !1)
    },
    beforeUnmount: function() {
        this.removeEvents(),
        clearTimeout(this.visibleTimeout)
    },
    methods: {
        delayHidden: function() {
            var e = this;
            clearTimeout(this.visibleTimeout),
            this.state.visible = !0,
            this.visibleTimeout = setTimeout(function() {
                e.state.visible = !1
            }, 2e3)
        },
        onScrollbarTouchStart: function(e) {
            e.preventDefault()
        },
        onContainerMouseDown: function(e) {
            e.stopPropagation(),
            e.preventDefault()
        },
        patchEvents: function() {
            window.addEventListener("mousemove", this.onMouseMove),
            window.addEventListener("mouseup", this.onMouseUp),
            this.thumbRef.current.addEventListener("touchmove", this.onMouseMove, gr ? {
                passive: !1
            } : !1),
            this.thumbRef.current.addEventListener("touchend", this.onMouseUp)
        },
        removeEvents: function() {
            window.removeEventListener("mousemove", this.onMouseMove),
            window.removeEventListener("mouseup", this.onMouseUp),
            this.scrollbarRef.current.removeEventListener("touchstart", this.onScrollbarTouchStart, gr ? {
                passive: !1
            } : !1),
            this.thumbRef.current && (this.thumbRef.current.removeEventListener("touchstart", this.onMouseDown, gr ? {
                passive: !1
            } : !1),
            this.thumbRef.current.removeEventListener("touchmove", this.onMouseMove, gr ? {
                passive: !1
            } : !1),
            this.thumbRef.current.removeEventListener("touchend", this.onMouseUp)),
            gt.cancel(this.moveRaf)
        },
        onMouseDown: function(e) {
            var n = this.$props.onStartMove;
            Wt(this.state, {
                dragging: !0,
                pageY: uF(e),
                startTop: this.getTop()
            }),
            n(),
            this.patchEvents(),
            e.stopPropagation(),
            e.preventDefault()
        },
        onMouseMove: function(e) {
            var n = this.state
              , r = n.dragging
              , a = n.pageY
              , i = n.startTop
              , o = this.$props.onScroll;
            if (gt.cancel(this.moveRaf),
            r) {
                var l = uF(e) - a
                  , s = i + l
                  , u = this.getEnableScrollRange()
                  , c = this.getEnableHeightRange()
                  , f = c ? s / c : 0
                  , d = Math.ceil(f * u);
                this.moveRaf = gt(function() {
                    o(d)
                })
            }
        },
        onMouseUp: function() {
            var e = this.$props.onStopMove;
            this.state.dragging = !1,
            e(),
            this.removeEvents()
        },
        getSpinHeight: function() {
            var e = this.$props
              , n = e.height
              , r = e.count
              , a = n / r * 10;
            return a = Math.max(a, A2e),
            a = Math.min(a, n / 2),
            Math.floor(a)
        },
        getEnableScrollRange: function() {
            var e = this.$props
              , n = e.scrollHeight
              , r = e.height;
            return n - r || 0
        },
        getEnableHeightRange: function() {
            var e = this.$props.height
              , n = this.getSpinHeight();
            return e - n || 0
        },
        getTop: function() {
            var e = this.$props.scrollTop
              , n = this.getEnableScrollRange()
              , r = this.getEnableHeightRange();
            if (e === 0 || n === 0)
                return 0;
            var a = e / n;
            return a * r
        },
        showScroll: function() {
            var e = this.$props
              , n = e.height
              , r = e.scrollHeight;
            return r > n
        }
    },
    render: function() {
        var e = this.state
          , n = e.dragging
          , r = e.visible
          , a = this.$props.prefixCls
          , i = this.getSpinHeight() + "px"
          , o = this.getTop() + "px"
          , l = this.showScroll()
          , s = l && r;
        return _("div", {
            ref: this.scrollbarRef,
            class: he("".concat(a, "-scrollbar"), z({}, "".concat(a, "-scrollbar-show"), l)),
            style: {
                width: "8px",
                top: 0,
                bottom: 0,
                right: 0,
                position: "absolute",
                display: s ? void 0 : "none"
            },
            onMousedown: this.onContainerMouseDown,
            onMousemove: this.delayHidden
        }, [_("div", {
            ref: this.thumbRef,
            class: he("".concat(a, "-scrollbar-thumb"), z({}, "".concat(a, "-scrollbar-thumb-moving"), n)),
            style: {
                width: "100%",
                height: i,
                top: o,
                left: 0,
                position: "absolute",
                background: "rgba(0, 0, 0, 0.5)",
                borderRadius: "99px",
                cursor: "pointer",
                userSelect: "none"
            },
            onMousedown: this.onMouseDown
        }, null)])
    }
});
function k2e(t, e, n, r) {
    var a = new Map
      , i = new Map
      , o = Q(Symbol("update"));
    Te(t, function() {
        o.value = Symbol("update")
    });
    var l = void 0;
    function s() {
        gt.cancel(l)
    }
    function u() {
        s(),
        l = gt(function() {
            a.forEach(function(f, d) {
                if (f && f.offsetParent) {
                    var v = f.offsetHeight;
                    i.get(d) !== v && (o.value = Symbol("update"),
                    i.set(d, f.offsetHeight))
                }
            })
        })
    }
    function c(f, d) {
        var v = e(f)
          , h = a.get(v);
        d ? (a.set(v, d.$el || d),
        u()) : a.delete(v),
        !h != !d && (d ? n == null || n(f) : r == null || r(f))
    }
    return dr(function() {
        s()
    }),
    [c, u, i, o]
}
function O2e(t, e, n, r, a, i, o, l) {
    var s;
    return function(u) {
        if (u == null) {
            l();
            return
        }
        gt.cancel(s);
        var c = e.value
          , f = r.itemHeight;
        if (typeof u == "number")
            o(u);
        else if (u && We(u) === "object") {
            var d, v = u.align;
            "index"in u ? d = u.index : d = c.findIndex(function(m) {
                return a(m) === u.key
            });
            var h = u.offset
              , p = h === void 0 ? 0 : h
              , g = function m(y, b) {
                if (!(y < 0 || !t.value)) {
                    var x = t.value.clientHeight
                      , C = !1
                      , S = b;
                    if (x) {
                        for (var w = b || v, T = 0, P = 0, M = 0, A = Math.min(c.length, d), O = 0; O <= A; O += 1) {
                            var k = a(c[O]);
                            P = T;
                            var D = n.get(k);
                            M = P + (D === void 0 ? f : D),
                            T = M,
                            O === d && D === void 0 && (C = !0)
                        }
                        var E = t.value.scrollTop
                          , L = null;
                        switch (w) {
                        case "top":
                            L = P - p;
                            break;
                        case "bottom":
                            L = M - x + p;
                            break;
                        default:
                            {
                                var N = E + x;
                                P < E ? S = "top" : M > N && (S = "bottom")
                            }
                        }
                        L !== null && L !== E && o(L)
                    }
                    s = gt(function() {
                        C && i(),
                        m(y - 1, S)
                    }, 2)
                }
            };
            g(5)
        }
    }
}
var D2e = (typeof navigator == "undefined" ? "undefined" : We(navigator)) === "object" && /Firefox/i.test(navigator.userAgent);
const E2e = D2e
  , AQ = function(t, e) {
    var n = !1
      , r = null;
    function a() {
        clearTimeout(r),
        n = !0,
        r = setTimeout(function() {
            n = !1
        }, 50)
    }
    return function(i) {
        var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1
          , l = i < 0 && t.value || i > 0 && e.value;
        return o && l ? (clearTimeout(r),
        n = !1) : (!l || n) && a(),
        !n && l
    }
};
function L2e(t, e, n, r) {
    var a = 0
      , i = null
      , o = null
      , l = !1
      , s = AQ(e, n);
    function u(f) {
        if (!!t.value) {
            gt.cancel(i);
            var d = f.deltaY;
            a += d,
            o = d,
            !s(d) && (E2e || f.preventDefault(),
            i = gt(function() {
                var v = l ? 10 : 1;
                r(a * v),
                a = 0
            }))
        }
    }
    function c(f) {
        !t.value || (l = f.detail === o)
    }
    return [u, c]
}
var R2e = 14 / 15;
function N2e(t, e, n) {
    var r = !1
      , a = 0
      , i = null
      , o = null
      , l = function() {
        i && (i.removeEventListener("touchmove", s),
        i.removeEventListener("touchend", u))
    }
      , s = function(v) {
        if (r) {
            var h = Math.ceil(v.touches[0].pageY)
              , p = a - h;
            a = h,
            n(p) && v.preventDefault(),
            clearInterval(o),
            o = setInterval(function() {
                p *= R2e,
                (!n(p, !0) || Math.abs(p) <= .1) && clearInterval(o)
            }, 16)
        }
    }
      , u = function() {
        r = !1,
        l()
    }
      , c = function(v) {
        l(),
        v.touches.length === 1 && !r && (r = !0,
        a = Math.ceil(v.touches[0].pageY),
        i = v.target,
        i.addEventListener("touchmove", s, {
            passive: !1
        }),
        i.addEventListener("touchend", u))
    }
      , f = function() {};
    ct(function() {
        document.addEventListener("touchmove", f, {
            passive: !1
        }),
        Te(t, function(d) {
            e.value.removeEventListener("touchstart", c),
            l(),
            clearInterval(o),
            d && e.value.addEventListener("touchstart", c, {
                passive: !1
            })
        }, {
            immediate: !0
        })
    }),
    Nt(function() {
        document.removeEventListener("touchmove", f)
    })
}
var $2e = ["prefixCls", "height", "itemHeight", "fullHeight", "data", "itemKey", "virtual", "component", "onScroll", "children", "style", "class"]
  , F2e = []
  , B2e = {
    overflowY: "auto",
    overflowAnchor: "none"
};
function V2e(t, e, n, r, a, i) {
    var o = i.getKey;
    return t.slice(e, n + 1).map(function(l, s) {
        var u = e + s
          , c = a(l, u, {})
          , f = o(l);
        return _(M2e, {
            key: f,
            setRef: function(v) {
                return r(l, v)
            }
        }, {
            default: function() {
                return [c]
            }
        })
    })
}
var z2e = de({
    compatConfig: {
        MODE: 3
    },
    name: "List",
    inheritAttrs: !1,
    props: {
        prefixCls: String,
        data: J.array,
        height: Number,
        itemHeight: Number,
        fullHeight: {
            type: Boolean,
            default: void 0
        },
        itemKey: {
            type: [String, Number, Function],
            required: !0
        },
        component: {
            type: [String, Object]
        },
        virtual: {
            type: Boolean,
            default: void 0
        },
        children: Function,
        onScroll: Function,
        onMousedown: Function,
        onMouseenter: Function,
        onVisibleChange: Function
    },
    setup: function(e, n) {
        var r = n.expose
          , a = j(function() {
            var K = e.height
              , V = e.itemHeight
              , U = e.virtual;
            return !!(U !== !1 && K && V)
        })
          , i = j(function() {
            var K = e.height
              , V = e.itemHeight
              , U = e.data;
            return a.value && U && V * U.length > K
        })
          , o = en({
            scrollTop: 0,
            scrollMoving: !1
        })
          , l = j(function() {
            return e.data || F2e
        })
          , s = Mt([]);
        Te(l, function() {
            s.value = _t(l.value).slice()
        }, {
            immediate: !0
        });
        var u = Mt(function(K) {});
        Te(function() {
            return e.itemKey
        }, function(K) {
            typeof K == "function" ? u.value = K : u.value = function(V) {
                return V == null ? void 0 : V[K]
            }
        }, {
            immediate: !0
        });
        var c = Q()
          , f = Q()
          , d = Q()
          , v = function(V) {
            return u.value(V)
        }
          , h = {
            getKey: v
        };
        function p(K) {
            var V;
            typeof K == "function" ? V = K(o.scrollTop) : V = K;
            var U = P(V);
            c.value && (c.value.scrollTop = U),
            o.scrollTop = U
        }
        var g = k2e(s, v, null, null)
          , m = De(g, 4)
          , y = m[0]
          , b = m[1]
          , x = m[2]
          , C = m[3]
          , S = en({
            scrollHeight: void 0,
            start: 0,
            end: 0,
            offset: void 0
        })
          , w = Q(0);
        ct(function() {
            yt(function() {
                var K;
                w.value = ((K = f.value) === null || K === void 0 ? void 0 : K.offsetHeight) || 0
            })
        }),
        ua(function() {
            yt(function() {
                var K;
                w.value = ((K = f.value) === null || K === void 0 ? void 0 : K.offsetHeight) || 0
            })
        }),
        Te([a, s], function() {
            a.value || Wt(S, {
                scrollHeight: void 0,
                start: 0,
                end: s.value.length - 1,
                offset: void 0
            })
        }, {
            immediate: !0
        }),
        Te([a, s, w, i], function() {
            a.value && !i.value && Wt(S, {
                scrollHeight: w.value,
                start: 0,
                end: s.value.length - 1,
                offset: void 0
            }),
            c.value && (o.scrollTop = c.value.scrollTop)
        }, {
            immediate: !0
        }),
        Te([i, a, function() {
            return o.scrollTop
        }
        , s, C, function() {
            return e.height
        }
        , w], function() {
            if (!(!a.value || !i.value)) {
                for (var K = 0, V, U, X, Y = s.value.length, te = s.value, ne = o.scrollTop, ie = e.itemHeight, ae = e.height, q = ne + ae, F = 0; F < Y; F += 1) {
                    var H = te[F]
                      , ee = v(H)
                      , re = x.get(ee);
                    re === void 0 && (re = ie);
                    var ue = K + re;
                    V === void 0 && ue >= ne && (V = F,
                    U = K),
                    X === void 0 && ue > q && (X = F),
                    K = ue
                }
                V === void 0 && (V = 0,
                U = 0,
                X = Math.ceil(ae / ie)),
                X === void 0 && (X = Y - 1),
                X = Math.min(X + 1, Y),
                Wt(S, {
                    scrollHeight: K,
                    start: V,
                    end: X,
                    offset: U
                })
            }
        }, {
            immediate: !0
        });
        var T = j(function() {
            return S.scrollHeight - e.height
        });
        function P(K) {
            var V = K;
            return Number.isNaN(T.value) || (V = Math.min(V, T.value)),
            V = Math.max(V, 0),
            V
        }
        var M = j(function() {
            return o.scrollTop <= 0
        })
          , A = j(function() {
            return o.scrollTop >= T.value
        })
          , O = AQ(M, A);
        function k(K) {
            var V = K;
            p(V)
        }
        function D(K) {
            var V, U = K.currentTarget.scrollTop;
            U !== o.scrollTop && p(U),
            (V = e.onScroll) === null || V === void 0 || V.call(e, K)
        }
        var E = L2e(a, M, A, function(K) {
            p(function(V) {
                var U = V + K;
                return U
            })
        })
          , L = De(E, 2)
          , N = L[0]
          , R = L[1];
        N2e(a, c, function(K, V) {
            return O(K, V) ? !1 : (N({
                preventDefault: function() {},
                deltaY: K
            }),
            !0)
        });
        function $(K) {
            a.value && K.preventDefault()
        }
        var W = function() {
            c.value && (c.value.removeEventListener("wheel", N, gr ? {
                passive: !1
            } : !1),
            c.value.removeEventListener("DOMMouseScroll", R),
            c.value.removeEventListener("MozMousePixelScroll", $))
        };
        pt(function() {
            yt(function() {
                c.value && (W(),
                c.value.addEventListener("wheel", N, gr ? {
                    passive: !1
                } : !1),
                c.value.addEventListener("DOMMouseScroll", R),
                c.value.addEventListener("MozMousePixelScroll", $))
            })
        }),
        Nt(function() {
            W()
        });
        var B = O2e(c, s, x, e, v, b, p, function() {
            var K;
            (K = d.value) === null || K === void 0 || K.delayHidden()
        });
        r({
            scrollTo: B
        });
        var G = j(function() {
            var K = null;
            return e.height && (K = I(z({}, e.fullHeight ? "height" : "maxHeight", e.height + "px"), B2e),
            a.value && (K.overflowY = "hidden",
            o.scrollMoving && (K.pointerEvents = "none"))),
            K
        });
        return Te([function() {
            return S.start
        }
        , function() {
            return S.end
        }
        , s], function() {
            if (e.onVisibleChange) {
                var K = s.value.slice(S.start, S.end + 1);
                e.onVisibleChange(K, s.value)
            }
        }, {
            flush: "post"
        }),
        {
            state: o,
            mergedData: s,
            componentStyle: G,
            onFallbackScroll: D,
            onScrollBar: k,
            componentRef: c,
            useVirtual: a,
            calRes: S,
            collectHeight: b,
            setInstance: y,
            sharedConfig: h,
            scrollBarRef: d,
            fillerInnerRef: f
        }
    },
    render: function() {
        var e = this
          , n = I(I({}, this.$props), this.$attrs)
          , r = n.prefixCls
          , a = r === void 0 ? "rc-virtual-list" : r
          , i = n.height;
        n.itemHeight,
        n.fullHeight,
        n.data,
        n.itemKey,
        n.virtual;
        var o = n.component
          , l = o === void 0 ? "div" : o;
        n.onScroll;
        var s = n.children
          , u = s === void 0 ? this.$slots.default : s
          , c = n.style
          , f = n.class
          , d = tt(n, $2e)
          , v = he(a, f)
          , h = this.state.scrollTop
          , p = this.calRes
          , g = p.scrollHeight
          , m = p.offset
          , y = p.start
          , b = p.end
          , x = this.componentStyle
          , C = this.onFallbackScroll
          , S = this.onScrollBar
          , w = this.useVirtual
          , T = this.collectHeight
          , P = this.sharedConfig
          , M = this.setInstance
          , A = this.mergedData;
        return _("div", I({
            style: I(I({}, c), {}, {
                position: "relative"
            }),
            class: v
        }, d), [_(l, {
            class: "".concat(a, "-holder"),
            style: x,
            ref: "componentRef",
            onScroll: C
        }, {
            default: function() {
                return [_(P2e, {
                    prefixCls: a,
                    height: g,
                    offset: m,
                    onInnerResize: T,
                    ref: "fillerInnerRef"
                }, {
                    default: function() {
                        return V2e(A, y, b, M, u, P)
                    }
                })]
            }
        }), w && _(I2e, {
            ref: "scrollBarRef",
            prefixCls: a,
            scrollTop: h,
            height: i,
            scrollHeight: g,
            count: A.length,
            onScroll: S,
            onStartMove: function() {
                e.state.scrollMoving = !0
            },
            onStopMove: function() {
                e.state.scrollMoving = !1
            }
        }, null)])
    }
});
const IQ = z2e;
function CD(t, e, n) {
    var r = Q(t());
    return Te(e, function(a, i) {
        n ? n(a, i) && (r.value = t()) : r.value = t()
    }),
    r
}
function H2e() {
    return /(mac\sos|macintosh)/i.test(navigator.appVersion)
}
var kQ = Symbol("SelectContextKey");
function j2e(t) {
    return It(kQ, t)
}
function W2e() {
    return vt(kQ, {})
}
var G2e = ["disabled", "title", "children", "style", "class", "className"];
function cF(t) {
    return typeof t == "string" || typeof t == "number"
}
var K2e = de({
    compatConfig: {
        MODE: 3
    },
    name: "OptionList",
    inheritAttrs: !1,
    slots: ["option"],
    setup: function(e, n) {
        var r = n.expose
          , a = n.slots
          , i = Sm()
          , o = W2e()
          , l = j(function() {
            return "".concat(i.prefixCls, "-item")
        })
          , s = CD(function() {
            return o.flattenOptions
        }, [function() {
            return i.open
        }
        , function() {
            return o.flattenOptions
        }
        ], function(S) {
            return S[0]
        })
          , u = p0()
          , c = function(w) {
            w.preventDefault()
        }
          , f = function(w) {
            u.current && u.current.scrollTo(typeof w == "number" ? {
                index: w
            } : w)
        }
          , d = function(w) {
            for (var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, P = s.value.length, M = 0; M < P; M += 1) {
                var A = (w + M * T + P) % P
                  , O = s.value[A]
                  , k = O.group
                  , D = O.data;
                if (!k && !D.disabled)
                    return A
            }
            return -1
        }
          , v = en({
            activeIndex: d(0)
        })
          , h = function(w) {
            var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
            v.activeIndex = w;
            var P = {
                source: T ? "keyboard" : "mouse"
            }
              , M = s.value[w];
            if (!M) {
                o.onActiveValue(null, -1, P);
                return
            }
            o.onActiveValue(M.value, w, P)
        };
        Te([function() {
            return s.value.length
        }
        , function() {
            return i.searchValue
        }
        ], function() {
            h(o.defaultActiveFirstOption !== !1 ? d(0) : -1)
        }, {
            immediate: !0
        });
        var p = function(w) {
            return o.rawValues.has(w) && i.mode !== "combobox"
        };
        Te([function() {
            return i.open
        }
        , function() {
            return i.searchValue
        }
        ], function() {
            if (!i.multiple && i.open && o.rawValues.size === 1) {
                var S = Array.from(o.rawValues)[0]
                  , w = _t(s.value).findIndex(function(T) {
                    var P = T.data;
                    return P[o.fieldNames.value] === S
                });
                w !== -1 && (h(w),
                yt(function() {
                    f(w)
                }))
            }
            i.open && yt(function() {
                var T;
                (T = u.current) === null || T === void 0 || T.scrollTo(void 0)
            })
        }, {
            immediate: !0,
            flush: "post"
        });
        var g = function(w) {
            w !== void 0 && o.onSelect(w, {
                selected: !o.rawValues.has(w)
            }),
            i.multiple || i.toggleOpen(!1)
        }
          , m = function(w) {
            return typeof w.label == "function" ? w.label() : w.label
        };
        function y(S) {
            var w = s.value[S];
            if (!w)
                return null;
            var T = w.data || {}
              , P = T.value
              , M = w.group
              , A = Hu(T, !0)
              , O = m(w);
            return w ? _("div", I(I({
                "aria-label": typeof O == "string" && !M ? O : null
            }, A), {}, {
                key: S,
                role: M ? "presentation" : "option",
                id: "".concat(i.id, "_list_").concat(S),
                "aria-selected": p(P)
            }), [P]) : null
        }
        var b = function(w) {
            var T = w.which
              , P = w.ctrlKey;
            switch (T) {
            case Ee.N:
            case Ee.P:
            case Ee.UP:
            case Ee.DOWN:
                {
                    var M = 0;
                    if (T === Ee.UP ? M = -1 : T === Ee.DOWN ? M = 1 : H2e() && P && (T === Ee.N ? M = 1 : T === Ee.P && (M = -1)),
                    M !== 0) {
                        var A = d(v.activeIndex + M, M);
                        f(A),
                        h(A, !0)
                    }
                    break
                }
            case Ee.ENTER:
                {
                    var O = s.value[v.activeIndex];
                    O && !O.data.disabled ? g(O.value) : g(void 0),
                    i.open && w.preventDefault();
                    break
                }
            case Ee.ESC:
                i.toggleOpen(!1),
                i.open && w.stopPropagation()
            }
        }
          , x = function() {}
          , C = function(w) {
            f(w)
        };
        return r({
            onKeydown: b,
            onKeyup: x,
            scrollTo: C
        }),
        function() {
            var S = i.id
              , w = i.notFoundContent
              , T = i.onPopupScroll
              , P = o.menuItemSelectedIcon
              , M = o.fieldNames
              , A = o.virtual
              , O = o.listHeight
              , k = o.listItemHeight
              , D = a.option
              , E = v.activeIndex
              , L = Object.keys(M).map(function(N) {
                return M[N]
            });
            return s.value.length === 0 ? _("div", {
                role: "listbox",
                id: "".concat(S, "_list"),
                class: "".concat(l.value, "-empty"),
                onMousedown: c
            }, [w]) : _(xt, null, [_("div", {
                role: "listbox",
                id: "".concat(S, "_list"),
                style: {
                    height: 0,
                    width: 0,
                    overflow: "hidden"
                }
            }, [y(E - 1), y(E), y(E + 1)]), _(IQ, {
                itemKey: "key",
                ref: u,
                data: s.value,
                height: O,
                itemHeight: k,
                fullHeight: !1,
                onMousedown: c,
                onScroll: T,
                virtual: A
            }, {
                default: function(R, $) {
                    var W, B = R.group, G = R.groupOption, K = R.data, V = R.value, U = K.key, X = typeof R.label == "function" ? R.label() : R.label;
                    if (B) {
                        var Y, te = (Y = K.title) !== null && Y !== void 0 ? Y : cF(X) && X;
                        return _("div", {
                            class: he(l.value, "".concat(l.value, "-group")),
                            title: te
                        }, [D ? D(K) : X !== void 0 ? X : U])
                    }
                    var ne = K.disabled
                      , ie = K.title;
                    K.children;
                    var ae = K.style
                      , q = K.class
                      , F = K.className
                      , H = tt(K, G2e)
                      , ee = Et(H, L)
                      , re = p(V)
                      , ue = "".concat(l.value, "-option")
                      , ve = he(l.value, ue, q, F, (W = {},
                    z(W, "".concat(ue, "-grouped"), G),
                    z(W, "".concat(ue, "-active"), E === $ && !ne),
                    z(W, "".concat(ue, "-disabled"), ne),
                    z(W, "".concat(ue, "-selected"), re),
                    W))
                      , fe = m(R)
                      , ce = !P || typeof P == "function" || re
                      , le = typeof fe == "number" ? fe : fe || V
                      , oe = cF(le) ? le.toString() : void 0;
                    return ie !== void 0 && (oe = ie),
                    _("div", I(I({}, ee), {}, {
                        "aria-selected": re,
                        class: ve,
                        title: oe,
                        onMousemove: function(xe) {
                            H.onMousemove && H.onMousemove(xe),
                            !(E === $ || ne) && h($)
                        },
                        onClick: function(xe) {
                            ne || g(V),
                            H.onClick && H.onClick(xe)
                        },
                        style: ae
                    }), [_("div", {
                        class: "".concat(ue, "-content")
                    }, [D ? D(K) : le]), cr(P) || re, ce && _(Ex, {
                        class: "".concat(l.value, "-option-state"),
                        customizeIcon: P,
                        customizeIconProps: {
                            isSelected: re
                        }
                    }, {
                        default: function() {
                            return [re ? "\u2713" : null]
                        }
                    })])
                }
            })])
        }
    }
});
const U2e = K2e;
var Y2e = ["value", "disabled"];
function q2e(t) {
    var e = t.key
      , n = t.children
      , r = t.props
      , a = r.value
      , i = r.disabled
      , o = tt(r, Y2e)
      , l = n == null ? void 0 : n.default;
    return I({
        key: e,
        value: a !== void 0 ? a : e,
        children: l,
        disabled: i || i === ""
    }, o)
}
function OQ(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1
      , n = bn(t).map(function(r, a) {
        var i;
        if (!cr(r) || !r.type)
            return null;
        var o = r.type.isSelectOptGroup
          , l = r.key
          , s = r.children
          , u = r.props;
        if (e || !o)
            return q2e(r);
        var c = s && s.default ? s.default() : void 0
          , f = (u == null ? void 0 : u.label) || ((i = s.label) === null || i === void 0 ? void 0 : i.call(s)) || l;
        return I(I({
            key: "__RC_SELECT_GRP__".concat(l === null ? a : String(l), "__")
        }, u), {}, {
            label: f,
            options: OQ(c || [])
        })
    }).filter(function(r) {
        return r
    });
    return n
}
function X2e(t, e, n) {
    var r = Mt()
      , a = Mt()
      , i = Mt()
      , o = Mt([]);
    return Te([t, e], function() {
        t.value ? o.value = _t(t.value).slice() : o.value = OQ(e.value)
    }, {
        immediate: !0,
        deep: !0
    }),
    pt(function() {
        var l = o.value
          , s = new Map
          , u = new Map
          , c = n.value;
        function f(d) {
            for (var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, h = 0; h < d.length; h += 1) {
                var p = d[h];
                !p[c.options] || v ? (s.set(p[c.value], p),
                u.set(p[c.label], p)) : f(p[c.options], !0)
            }
        }
        f(l),
        r.value = l,
        a.value = s,
        i.value = u
    }),
    {
        options: r,
        valueOptions: a,
        labelOptions: i
    }
}
var fF = 0
  , Z2e = Uf();
function Q2e() {
    var t;
    return Z2e ? (t = fF,
    fF += 1) : t = "TEST_OR_SSR",
    t
}
function wD() {
    var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Q("")
      , e = "rc_select_".concat(Q2e());
    return t.value || e
}
function DQ(t) {
    return Array.isArray(t) ? t : t !== void 0 ? [t] : []
}
function Q_(t, e) {
    return DQ(t).join("").toUpperCase().includes(e)
}
const J2e = function(t, e, n, r, a) {
    return j(function() {
        var i = n.value
          , o = a == null ? void 0 : a.value
          , l = r == null ? void 0 : r.value;
        if (!i || l === !1)
            return t.value;
        var s = e.value
          , u = s.options
          , c = s.label
          , f = s.value
          , d = []
          , v = typeof l == "function"
          , h = i.toUpperCase()
          , p = v ? l : function(m, y) {
            return o ? Q_(y[o], h) : y[u] ? Q_(y[c !== "children" ? c : "label"], h) : Q_(y[f], h)
        }
          , g = v ? function(m) {
            return bM(m)
        }
        : function(m) {
            return m
        }
        ;
        return t.value.forEach(function(m) {
            if (m[u]) {
                var y = p(i, g(m));
                if (y)
                    d.push(m);
                else {
                    var b = m[u].filter(function(x) {
                        return p(i, g(x))
                    });
                    b.length && d.push(I(I({}, m), {}, z({}, u, b)))
                }
                return
            }
            p(i, g(m)) && d.push(m)
        }),
        d
    })
}
  , e_e = function(t, e) {
    var n = Mt({
        values: new Map,
        options: new Map
    })
      , r = j(function() {
        var i = n.value
          , o = i.values
          , l = i.options
          , s = t.value.map(function(f) {
            if (f.label === void 0) {
                var d;
                return I(I({}, f), {}, {
                    label: (d = o.get(f.value)) === null || d === void 0 ? void 0 : d.label
                })
            }
            return f
        })
          , u = new Map
          , c = new Map;
        return s.forEach(function(f) {
            u.set(f.value, f),
            c.set(f.value, e.value.get(f.value) || l.get(f.value))
        }),
        n.value.values = u,
        n.value.options = c,
        s
    })
      , a = function(o) {
        return e.value.get(o) || n.value.options.get(o)
    };
    return [r, a]
};
function zn(t, e) {
    var n = e || {}
      , r = n.defaultValue
      , a = n.value
      , i = a === void 0 ? Q() : a
      , o = typeof t == "function" ? t() : t;
    i.value !== void 0 && (o = Pn(i)),
    r !== void 0 && (o = typeof r == "function" ? r() : r);
    var l = Q(o)
      , s = Q(o);
    pt(function() {
        var c = i.value !== void 0 ? i.value : l.value;
        e.postState && (c = e.postState(c)),
        s.value = c
    });
    function u(c) {
        var f = s.value;
        l.value = c,
        _t(s.value) !== c && e.onChange && e.onChange(c, f)
    }
    return Te(i, function() {
        l.value = i.value
    }),
    [s, u]
}
function Rn(t) {
    var e = typeof t == "function" ? t() : t
      , n = Q(e);
    function r(a) {
        n.value = a
    }
    return [n, r]
}
var t_e = ["inputValue"];
function EQ() {
    return I(I({}, ZC()), {}, {
        prefixCls: String,
        id: String,
        backfill: {
            type: Boolean,
            default: void 0
        },
        fieldNames: Object,
        inputValue: String,
        searchValue: String,
        onSearch: Function,
        autoClearSearchValue: {
            type: Boolean,
            default: void 0
        },
        onSelect: Function,
        onDeselect: Function,
        filterOption: {
            type: [Boolean, Function],
            default: void 0
        },
        filterSort: Function,
        optionFilterProp: String,
        optionLabelProp: String,
        options: Array,
        defaultActiveFirstOption: {
            type: Boolean,
            default: void 0
        },
        virtual: {
            type: Boolean,
            default: void 0
        },
        listHeight: Number,
        listItemHeight: Number,
        menuItemSelectedIcon: J.any,
        mode: String,
        labelInValue: {
            type: Boolean,
            default: void 0
        },
        value: J.any,
        defaultValue: J.any,
        onChange: Function,
        children: Array
    })
}
function n_e(t) {
    return !t || We(t) !== "object"
}
const r_e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Select",
    inheritAttrs: !1,
    props: $t(EQ(), {
        prefixCls: "vc-select",
        autoClearSearchValue: !0,
        listHeight: 200,
        listItemHeight: 20,
        dropdownMatchSelectWidth: !0
    }),
    setup: function(e, n) {
        var r = n.expose
          , a = n.attrs
          , i = n.slots
          , o = wD(at(e, "id"))
          , l = j(function() {
            return PQ(e.mode)
        })
          , s = j(function() {
            return !!(!e.options && e.children)
        })
          , u = j(function() {
            return e.filterOption === void 0 && e.mode === "combobox" ? !1 : e.filterOption
        })
          , c = j(function() {
            return qZ(e.fieldNames, s.value)
        })
          , f = zn("", {
            value: j(function() {
                return e.searchValue !== void 0 ? e.searchValue : e.inputValue
            }),
            postState: function(le) {
                return le || ""
            }
        })
          , d = De(f, 2)
          , v = d[0]
          , h = d[1]
          , p = X2e(at(e, "options"), at(e, "children"), c)
          , g = p.valueOptions
          , m = p.labelOptions
          , y = p.options
          , b = function(le) {
            var oe = DQ(le);
            return oe.map(function(se) {
                var xe, Pe, Fe, ze;
                if (n_e(se))
                    xe = se;
                else {
                    var _e;
                    Fe = se.key,
                    Pe = se.label,
                    xe = (_e = se.value) !== null && _e !== void 0 ? _e : Fe
                }
                var me = g.value.get(xe);
                if (me) {
                    var Ie;
                    Pe === void 0 && (Pe = me == null ? void 0 : me[e.optionLabelProp || c.value.label]),
                    Fe === void 0 && (Fe = (Ie = me == null ? void 0 : me.key) !== null && Ie !== void 0 ? Ie : xe),
                    ze = me == null ? void 0 : me.disabled
                }
                return {
                    label: Pe,
                    value: xe,
                    key: Fe,
                    disabled: ze,
                    option: me
                }
            })
        }
          , x = zn(e.defaultValue, {
            value: at(e, "value")
        })
          , C = De(x, 2)
          , S = C[0]
          , w = C[1]
          , T = j(function() {
            var ce, le = b(S.value);
            return e.mode === "combobox" && !((ce = le[0]) !== null && ce !== void 0 && ce.value) ? [] : le
        })
          , P = e_e(T, g)
          , M = De(P, 2)
          , A = M[0]
          , O = M[1]
          , k = j(function() {
            if (!e.mode && A.value.length === 1) {
                var ce = A.value[0];
                if (ce.value === null && (ce.label === null || ce.label === void 0))
                    return []
            }
            return A.value.map(function(le) {
                var oe;
                return I(I({}, le), {}, {
                    label: (oe = typeof le.label == "function" ? le.label() : le.label) !== null && oe !== void 0 ? oe : le.value
                })
            })
        })
          , D = j(function() {
            return new Set(A.value.map(function(ce) {
                return ce.value
            }))
        });
        pt(function() {
            if (e.mode === "combobox") {
                var ce, le = (ce = A.value[0]) === null || ce === void 0 ? void 0 : ce.value;
                le != null && h(String(le))
            }
        }, {
            flush: "post"
        });
        var E = function(le, oe) {
            var se, xe = oe != null ? oe : le;
            return se = {},
            z(se, c.value.value, le),
            z(se, c.value.label, xe),
            se
        }
          , L = Mt();
        pt(function() {
            if (e.mode !== "tags") {
                L.value = y.value;
                return
            }
            var ce = y.value.slice()
              , le = function(se) {
                return g.value.has(se)
            };
            $e(A.value).sort(function(oe, se) {
                return oe.value < se.value ? -1 : 1
            }).forEach(function(oe) {
                var se = oe.value;
                le(se) || ce.push(E(se, oe.label))
            }),
            L.value = ce
        });
        var N = J2e(L, c, v, u, at(e, "optionFilterProp"))
          , R = j(function() {
            return e.mode !== "tags" || !v.value || N.value.some(function(ce) {
                return ce[e.optionFilterProp || "value"] === v.value
            }) ? N.value : [E(v.value)].concat($e(N.value))
        })
          , $ = j(function() {
            return e.filterSort ? $e(R.value).sort(function(ce, le) {
                return e.filterSort(ce, le)
            }) : R.value
        })
          , W = j(function() {
            return uxe($.value, {
                fieldNames: c.value,
                childrenAsData: s.value
            })
        })
          , B = function(le) {
            var oe = b(le);
            if (w(oe),
            e.onChange && (oe.length !== A.value.length || oe.some(function(Pe, Fe) {
                var ze;
                return ((ze = A.value[Fe]) === null || ze === void 0 ? void 0 : ze.value) !== (Pe == null ? void 0 : Pe.value)
            }))) {
                var se = e.labelInValue ? oe.map(function(Pe) {
                    return I(I({}, Pe), {}, {
                        originLabel: Pe.label,
                        label: typeof Pe.label == "function" ? Pe.label() : Pe.label
                    })
                }) : oe.map(function(Pe) {
                    return Pe.value
                })
                  , xe = oe.map(function(Pe) {
                    return bM(O(Pe.value))
                });
                e.onChange(l.value ? se : se[0], l.value ? xe : xe[0])
            }
        }
          , G = Rn(null)
          , K = De(G, 2)
          , V = K[0]
          , U = K[1]
          , X = Rn(0)
          , Y = De(X, 2)
          , te = Y[0]
          , ne = Y[1]
          , ie = j(function() {
            return e.defaultActiveFirstOption !== void 0 ? e.defaultActiveFirstOption : e.mode !== "combobox"
        })
          , ae = function(le, oe) {
            var se = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}
              , xe = se.source
              , Pe = xe === void 0 ? "keyboard" : xe;
            ne(oe),
            e.backfill && e.mode === "combobox" && le !== null && Pe === "keyboard" && U(String(le))
        }
          , q = function(le, oe) {
            var se = function() {
                var pe, ye = O(le), be = ye == null ? void 0 : ye[c.value.label];
                return [e.labelInValue ? {
                    label: typeof be == "function" ? be() : be,
                    originLabel: be,
                    value: le,
                    key: (pe = ye == null ? void 0 : ye.key) !== null && pe !== void 0 ? pe : le
                } : le, bM(ye)]
            };
            if (oe && e.onSelect) {
                var xe = se()
                  , Pe = De(xe, 2)
                  , Fe = Pe[0]
                  , ze = Pe[1];
                e.onSelect(Fe, ze)
            } else if (!oe && e.onDeselect) {
                var _e = se()
                  , me = De(_e, 2)
                  , Ie = me[0]
                  , Oe = me[1];
                e.onDeselect(Ie, Oe)
            }
        }
          , F = function(le, oe) {
            var se, xe = l.value ? oe.selected : !0;
            xe ? se = l.value ? [].concat($e(A.value), [le]) : [le] : se = A.value.filter(function(Pe) {
                return Pe.value !== le
            }),
            B(se),
            q(le, xe),
            e.mode === "combobox" ? U("") : (!l.value || e.autoClearSearchValue) && (h(""),
            U(""))
        }
          , H = function(le, oe) {
            B(le),
            (oe.type === "remove" || oe.type === "clear") && oe.values.forEach(function(se) {
                q(se.value, !1)
            })
        }
          , ee = function(le, oe) {
            if (h(le),
            U(null),
            oe.source === "submit") {
                var se = (le || "").trim();
                if (se) {
                    var xe = Array.from(new Set([].concat($e(D.value), [se])));
                    B(xe),
                    q(se, !0),
                    h("")
                }
                return
            }
            if (oe.source !== "blur") {
                var Pe;
                e.mode === "combobox" && B(le),
                (Pe = e.onSearch) === null || Pe === void 0 || Pe.call(e, le)
            }
        }
          , re = function(le) {
            var oe = le;
            e.mode !== "tags" && (oe = le.map(function(xe) {
                var Pe = m.value.get(xe);
                return Pe == null ? void 0 : Pe.value
            }).filter(function(xe) {
                return xe !== void 0
            }));
            var se = Array.from(new Set([].concat($e(D.value), $e(oe))));
            B(se),
            se.forEach(function(xe) {
                q(xe, !0)
            })
        }
          , ue = j(function() {
            return e.virtual !== !1 && e.dropdownMatchSelectWidth !== !1
        });
        j2e(Lx(I(I({}, p), {}, {
            flattenOptions: W,
            onActiveValue: ae,
            defaultActiveFirstOption: ie,
            onSelect: F,
            menuItemSelectedIcon: at(e, "menuItemSelectedIcon"),
            rawValues: D,
            fieldNames: c,
            virtual: ue,
            listHeight: at(e, "listHeight"),
            listItemHeight: at(e, "listItemHeight"),
            childrenAsData: s
        })));
        var ve = Q();
        r({
            focus: function() {
                var le;
                (le = ve.value) === null || le === void 0 || le.focus()
            },
            blur: function() {
                var le;
                (le = ve.value) === null || le === void 0 || le.blur()
            },
            scrollTo: function(le) {
                var oe;
                (oe = ve.value) === null || oe === void 0 || oe.scrollTo(le)
            }
        });
        var fe = j(function() {
            return Et(e, ["id", "mode", "prefixCls", "backfill", "fieldNames", "inputValue", "searchValue", "onSearch", "autoClearSearchValue", "onSelect", "onDeselect", "dropdownMatchSelectWidth", "filterOption", "filterSort", "optionFilterProp", "optionLabelProp", "options", "children", "defaultActiveFirstOption", "menuItemSelectedIcon", "virtual", "listHeight", "listItemHeight", "value", "defaultValue", "labelInValue", "onChange"])
        });
        return function() {
            return _(SD, I(I(I({}, fe.value), a), {}, {
                id: o,
                prefixCls: e.prefixCls,
                ref: ve,
                omitDomProps: t_e,
                mode: e.mode,
                displayValues: k.value,
                onDisplayValuesChange: H,
                searchValue: v.value,
                onSearch: ee,
                onSearchSplit: re,
                dropdownMatchSelectWidth: e.dropdownMatchSelectWidth,
                OptionList: U2e,
                emptyOptions: !W.value.length,
                activeValue: V.value,
                activeDescendantId: "".concat(o, "_list_").concat(te.value)
            }), i)
        }
    }
});
var _D = function() {
    return null
};
_D.isSelectOption = !0;
_D.displayName = "ASelectOption";
const a_e = _D;
var TD = function() {
    return null
};
TD.isSelectOptGroup = !0;
TD.displayName = "ASelectOptGroup";
const i_e = TD;
var o_e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"
            }
        }]
    },
    name: "down",
    theme: "outlined"
};
const l_e = o_e;
function dF(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            s_e(t, a, n[a])
        })
    }
    return t
}
function s_e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var PD = function(e, n) {
    var r = dF({}, e, n.attrs);
    return _(lt, dF({}, r, {
        icon: l_e
    }), null)
};
PD.displayName = "DownOutlined";
PD.inheritAttrs = !1;
const Cm = PD;
var u_e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"
            }
        }]
    },
    name: "check",
    theme: "outlined"
};
const c_e = u_e;
function vF(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            f_e(t, a, n[a])
        })
    }
    return t
}
function f_e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var MD = function(e, n) {
    var r = vF({}, e, n.attrs);
    return _(lt, vF({}, r, {
        icon: c_e
    }), null)
};
MD.displayName = "CheckOutlined";
MD.inheritAttrs = !1;
const JC = MD;
var d_e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"
            }
        }]
    },
    name: "search",
    theme: "outlined"
};
const v_e = d_e;
function hF(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            h_e(t, a, n[a])
        })
    }
    return t
}
function h_e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var AD = function(e, n) {
    var r = hF({}, e, n.attrs);
    return _(lt, hF({}, r, {
        icon: v_e
    }), null)
};
AD.displayName = "SearchOutlined";
AD.inheritAttrs = !1;
const ew = AD;
function ID(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , n = t.loading
      , r = t.multiple
      , a = t.prefixCls
      , i = t.suffixIcon || e.suffixIcon && e.suffixIcon()
      , o = t.clearIcon || e.clearIcon && e.clearIcon()
      , l = t.menuItemSelectedIcon || e.menuItemSelectedIcon && e.menuItemSelectedIcon()
      , s = t.removeIcon || e.removeIcon && e.removeIcon()
      , u = o;
    o || (u = _(ms, null, null));
    var c = null;
    if (i !== void 0)
        c = i;
    else if (n)
        c = _(Co, {
            spin: !0
        }, null);
    else {
        var f = "".concat(a, "-suffix");
        c = function(p) {
            var g = p.open
              , m = p.showSearch;
            return g && m ? _(ew, {
                class: f
            }, null) : _(Cm, {
                class: f
            }, null)
        }
    }
    var d = null;
    l !== void 0 ? d = l : r ? d = _(JC, null, null) : d = null;
    var v = null;
    return s !== void 0 ? v = s : v = _(Sl, null, null),
    {
        clearIcon: u,
        suffixIcon: c,
        itemIcon: d,
        removeIcon: v
    }
}
var Rx = Symbol("ContextProps")
  , Nx = Symbol("InternalContextProps")
  , p_e = function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : j(function() {
        return !0
    })
      , r = Q(new Map)
      , a = function(l, s) {
        r.value.set(l, s),
        r.value = new Map(r.value)
    }
      , i = function(l) {
        r.value.delete(l),
        r.value = new Map(r.value)
    };
    Te([n, r], function() {}),
    It(Rx, e),
    It(Nx, {
        addFormItemField: a,
        removeFormItemField: i
    })
}
  , kM = {
    id: j(function() {}),
    onFieldBlur: function() {},
    onFieldChange: function() {},
    clearValidate: function() {}
}
  , OM = {
    addFormItemField: function() {},
    removeFormItemField: function() {}
}
  , br = function() {
    var e = vt(Nx, OM)
      , n = Symbol("FormItemFieldKey")
      , r = qn();
    return e.addFormItemField(n, r.type),
    Nt(function() {
        e.removeFormItemField(n)
    }),
    It(Nx, OM),
    It(Rx, kM),
    vt(Rx, kM)
};
const $x = de({
    compatConfig: {
        MODE: 3
    },
    name: "AFormItemRest",
    setup: function(e, n) {
        var r = n.slots;
        return It(Nx, OM),
        It(Rx, kM),
        function() {
            var a;
            return (a = r.default) === null || a === void 0 ? void 0 : a.call(r)
        }
    }
});
var kD = function() {
    return I(I({}, Et(EQ(), ["inputIcon", "mode", "getInputElement", "getRawInputElement", "backfill"])), {}, {
        value: {
            type: [Array, Object, String, Number]
        },
        defaultValue: {
            type: [Array, Object, String, Number]
        },
        notFoundContent: J.any,
        suffixIcon: J.any,
        itemIcon: J.any,
        size: String,
        mode: String,
        bordered: {
            type: Boolean,
            default: !0
        },
        transitionName: String,
        choiceTransitionName: {
            type: String,
            default: ""
        },
        "onUpdate:value": Function
    })
}
  , pF = "SECRET_COMBOBOX_MODE_DO_NOT_USE"
  , Yo = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASelect",
    Option: a_e,
    OptGroup: i_e,
    inheritAttrs: !1,
    props: $t(kD(), {
        listHeight: 256,
        listItemHeight: 24
    }),
    SECRET_COMBOBOX_MODE_DO_NOT_USE: pF,
    slots: ["notFoundContent", "suffixIcon", "itemIcon", "removeIcon", "clearIcon", "dropdownRender", "option", "placeholder", "tagRender", "maxTagPlaceholder", "optionLabel"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.emit
          , i = n.slots
          , o = n.expose
          , l = Q()
          , s = br()
          , u = function() {
            var M;
            (M = l.value) === null || M === void 0 || M.focus()
        }
          , c = function() {
            var M;
            (M = l.value) === null || M === void 0 || M.blur()
        }
          , f = function(M) {
            var A;
            (A = l.value) === null || A === void 0 || A.scrollTo(M)
        }
          , d = j(function() {
            var P = e.mode;
            if (P !== "combobox")
                return P === pF ? "combobox" : P
        })
          , v = je("select", e)
          , h = v.prefixCls
          , p = v.direction
          , g = v.configProvider
          , m = v.size
          , y = v.getPrefixCls
          , b = j(function() {
            return y()
        })
          , x = j(function() {
            return So(b.value, "slide-up", e.transitionName)
        })
          , C = j(function() {
            var P;
            return he((P = {},
            z(P, "".concat(h.value, "-lg"), m.value === "large"),
            z(P, "".concat(h.value, "-sm"), m.value === "small"),
            z(P, "".concat(h.value, "-rtl"), p.value === "rtl"),
            z(P, "".concat(h.value, "-borderless"), !e.bordered),
            P))
        })
          , S = function() {
            for (var M = arguments.length, A = new Array(M), O = 0; O < M; O++)
                A[O] = arguments[O];
            a("update:value", A[0]),
            a.apply(void 0, ["change"].concat(A)),
            s.onFieldChange()
        }
          , w = function(M) {
            a("blur", M),
            s.onFieldBlur()
        };
        o({
            blur: c,
            focus: u,
            scrollTo: f
        });
        var T = j(function() {
            return d.value === "multiple" || d.value === "tags"
        });
        return function() {
            var P, M, A = e.notFoundContent, O = e.listHeight, k = O === void 0 ? 256 : O, D = e.listItemHeight, E = D === void 0 ? 24 : D, L = e.getPopupContainer, N = e.dropdownClassName, R = e.virtual, $ = e.dropdownMatchSelectWidth, W = e.id, B = W === void 0 ? s.id.value : W, G = e.placeholder, K = G === void 0 ? (P = i.placeholder) === null || P === void 0 ? void 0 : P.call(i) : G, V = g.renderEmpty, U = g.getPopupContainer, X;
            A !== void 0 ? X = A : i.notFoundContent ? X = i.notFoundContent() : d.value === "combobox" ? X = null : X = V("Select");
            var Y = ID(I(I({}, e), {}, {
                multiple: T.value,
                prefixCls: h.value
            }), i)
              , te = Y.suffixIcon
              , ne = Y.itemIcon
              , ie = Y.removeIcon
              , ae = Y.clearIcon
              , q = Et(e, ["prefixCls", "suffixIcon", "itemIcon", "removeIcon", "clearIcon", "size", "bordered"])
              , F = he(N, z({}, "".concat(h.value, "-dropdown-").concat(p.value), p.value === "rtl"));
            return _(r_e, I(I(I({
                ref: l,
                virtual: R,
                dropdownMatchSelectWidth: $
            }, q), r), {}, {
                placeholder: K,
                listHeight: k,
                listItemHeight: E,
                mode: d.value,
                prefixCls: h.value,
                direction: p.value,
                inputIcon: te,
                menuItemSelectedIcon: ne,
                removeIcon: ie,
                clearIcon: ae,
                notFoundContent: X,
                class: [C.value, r.class],
                getPopupContainer: L || U,
                dropdownClassName: F,
                onChange: S,
                onBlur: w,
                id: B,
                dropdownRender: q.dropdownRender || i.dropdownRender,
                transitionName: x.value,
                children: (M = i.default) === null || M === void 0 ? void 0 : M.call(i),
                tagRender: e.tagRender || i.tagRender,
                optionLabelRender: i.optionLabel,
                maxTagPlaceholder: e.maxTagPlaceholder || i.maxTagPlaceholder
            }), {
                option: i.option
            })
        }
    }
});
Yo.install = function(t) {
    return t.component(Yo.name, Yo),
    t.component(Yo.Option.displayName, Yo.Option),
    t.component(Yo.OptGroup.displayName, Yo.OptGroup),
    t
}
;
var g_e = Yo.Option
  , m_e = Yo.OptGroup;
const Au = Yo;
var OD = function() {
    return null
};
OD.isSelectOption = !0;
OD.displayName = "AAutoCompleteOption";
const hv = OD;
var DD = function() {
    return null
};
DD.isSelectOptGroup = !0;
DD.displayName = "AAutoCompleteOptGroup";
const hb = DD;
function y_e(t) {
    var e, n;
    return (t == null || (e = t.type) === null || e === void 0 ? void 0 : e.isSelectOption) || (t == null || (n = t.type) === null || n === void 0 ? void 0 : n.isSelectOptGroup)
}
var b_e = function() {
    return I(I({}, Et(kD(), ["loading", "mode", "optionLabelProp", "labelInValue"])), {}, {
        dataSource: Array,
        dropdownMenuStyle: {
            type: Object,
            default: void 0
        },
        dropdownMatchSelectWidth: {
            type: [Number, Boolean],
            default: !0
        },
        prefixCls: String,
        showSearch: {
            type: Boolean,
            default: void 0
        },
        transitionName: String,
        choiceTransitionName: {
            type: String,
            default: "zoom"
        },
        autofocus: {
            type: Boolean,
            default: void 0
        },
        backfill: {
            type: Boolean,
            default: void 0
        },
        filterOption: {
            type: [Boolean, Function],
            default: !1
        },
        defaultActiveFirstOption: {
            type: Boolean,
            default: !0
        }
    })
}
  , x_e = hv
  , S_e = hb
  , J_ = de({
    compatConfig: {
        MODE: 3
    },
    name: "AAutoComplete",
    inheritAttrs: !1,
    props: b_e(),
    slots: ["option"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.expose;
        ur(!("dataSource"in r), "AutoComplete", "`dataSource` slot is deprecated, please use props `options` instead."),
        ur(!("options"in r), "AutoComplete", "`options` slot is deprecated, please use props `options` instead.");
        var o = Q()
          , l = function() {
            var v, h = bn((v = r.default) === null || v === void 0 ? void 0 : v.call(r)), p = h.length ? h[0] : void 0;
            return p
        }
          , s = function() {
            var v;
            (v = o.value) === null || v === void 0 || v.focus()
        }
          , u = function() {
            var v;
            (v = o.value) === null || v === void 0 || v.blur()
        };
        i({
            focus: s,
            blur: u
        });
        var c = je("select", e)
          , f = c.prefixCls;
        return function() {
            var d, v, h = e.size, p = e.dataSource, g = e.notFoundContent, m = g === void 0 ? (d = r.notFoundContent) === null || d === void 0 ? void 0 : d.call(r) : g, y, b = a.class, x = (v = {},
            z(v, b, !!b),
            z(v, "".concat(f.value, "-lg"), h === "large"),
            z(v, "".concat(f.value, "-sm"), h === "small"),
            z(v, "".concat(f.value, "-show-search"), !0),
            z(v, "".concat(f.value, "-auto-complete"), !0),
            v);
            if (e.options === void 0) {
                var C, S, w = ((C = r.dataSource) === null || C === void 0 ? void 0 : C.call(r)) || ((S = r.options) === null || S === void 0 ? void 0 : S.call(r)) || [];
                w.length && y_e(w[0]) ? y = w : y = p ? p.map(function(P) {
                    if (cr(P))
                        return P;
                    switch (We(P)) {
                    case "string":
                        return _(hv, {
                            key: P,
                            value: P
                        }, {
                            default: function() {
                                return [P]
                            }
                        });
                    case "object":
                        return _(hv, {
                            key: P.value,
                            value: P.value
                        }, {
                            default: function() {
                                return [P.text]
                            }
                        });
                    default:
                        throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")
                    }
                }) : []
            }
            var T = Et(I(I(I({}, e), a), {}, {
                mode: Au.SECRET_COMBOBOX_MODE_DO_NOT_USE,
                getInputElement: l,
                notFoundContent: m,
                class: x,
                ref: o
            }), ["dataSource", "loading"]);
            return _(Au, T, I({
                default: function() {
                    return [y]
                }
            }, Et(r, ["default", "dataSource", "options"])))
        }
    }
});
const C_e = Wt(J_, {
    Option: hv,
    OptGroup: hb,
    install: function(e) {
        return e.component(J_.name, J_),
        e.component(hv.displayName, hv),
        e.component(hb.displayName, hb),
        e
    }
});
var w_e = {
    success: mm,
    info: TZ,
    error: ms,
    warning: gm
}
  , __e = {
    success: WO,
    info: KO,
    error: YO,
    warning: HC
}
  , T_e = Kn("success", "info", "warning", "error")
  , P_e = function() {
    return {
        type: J.oneOf(T_e),
        closable: {
            type: Boolean,
            default: void 0
        },
        closeText: J.any,
        message: J.any,
        description: J.any,
        afterClose: Function,
        showIcon: {
            type: Boolean,
            default: void 0
        },
        prefixCls: String,
        banner: {
            type: Boolean,
            default: void 0
        },
        icon: J.any,
        closeIcon: J.any,
        onClose: Function
    }
}
  , M_e = de({
    compatConfig: {
        MODE: 3
    },
    name: "AAlert",
    inheritAttrs: !1,
    props: P_e(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = n.attrs
          , o = n.expose
          , l = je("alert", e)
          , s = l.prefixCls
          , u = l.direction
          , c = Q(!1)
          , f = Q(!1)
          , d = Q()
          , v = function(m) {
            m.preventDefault();
            var y = d.value;
            y.style.height = "".concat(y.offsetHeight, "px"),
            y.style.height = "".concat(y.offsetHeight, "px"),
            c.value = !0,
            a("close", m)
        }
          , h = function() {
            var m;
            c.value = !1,
            f.value = !0,
            (m = e.afterClose) === null || m === void 0 || m.call(e)
        };
        o({
            animationEnd: h
        });
        var p = Q({});
        return function() {
            var g, m, y = e.banner, b = e.closeIcon, x = b === void 0 ? (g = r.closeIcon) === null || g === void 0 ? void 0 : g.call(r) : b, C = e.closable, S = e.type, w = e.showIcon, T = Dn(r, e, "closeText"), P = Dn(r, e, "description"), M = Dn(r, e, "message"), A = Dn(r, e, "icon");
            w = y && w === void 0 ? !0 : w,
            S = y && S === void 0 ? "warning" : S || "info";
            var O = (P ? __e : w_e)[S] || null;
            T && (C = !0);
            var k = s.value
              , D = he(k, (m = {},
            z(m, "".concat(k, "-").concat(S), !0),
            z(m, "".concat(k, "-closing"), c.value),
            z(m, "".concat(k, "-with-description"), !!P),
            z(m, "".concat(k, "-no-icon"), !w),
            z(m, "".concat(k, "-banner"), !!y),
            z(m, "".concat(k, "-closable"), C),
            z(m, "".concat(k, "-rtl"), u.value === "rtl"),
            m))
              , E = C ? _("button", {
                type: "button",
                onClick: v,
                class: "".concat(k, "-close-icon"),
                tabindex: 0
            }, [T ? _("span", {
                class: "".concat(k, "-close-text")
            }, [T]) : x === void 0 ? _(Sl, null, null) : x]) : null
              , L = A && (cr(A) ? Qt(A, {
                class: "".concat(k, "-icon")
            }) : _("span", {
                class: "".concat(k, "-icon")
            }, [A])) || _(O, {
                class: "".concat(k, "-icon")
            }, null)
              , N = zu("".concat(k, "-motion"), {
                appear: !1,
                css: !0,
                onAfterLeave: h,
                onBeforeLeave: function($) {
                    $.style.maxHeight = "".concat($.offsetHeight, "px")
                },
                onLeave: function($) {
                    $.style.maxHeight = "0px"
                }
            });
            return f.value ? null : _(bl, N, {
                default: function() {
                    return [Fr(_("div", I(I({
                        role: "alert"
                    }, i), {}, {
                        style: [i.style, p.value],
                        class: [i.class, D],
                        "data-show": !c.value,
                        ref: d
                    }), [w ? L : null, _("div", {
                        class: "".concat(k, "-content")
                    }, [M ? _("div", {
                        class: "".concat(k, "-message")
                    }, [M]) : null, P ? _("div", {
                        class: "".concat(k, "-description")
                    }, [P]) : null]), E]), [[Io, !c.value]])]
                }
            })
        }
    }
});
const A_e = Jn(M_e);
var Of = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"]
  , Ly = {
    xs: "(max-width: 575px)",
    sm: "(min-width: 576px)",
    md: "(min-width: 768px)",
    lg: "(min-width: 992px)",
    xl: "(min-width: 1200px)",
    xxl: "(min-width: 1600px)",
    xxxl: "(min-width: 2000px)"
}
  , tc = new Map
  , eT = -1
  , Ry = {}
  , I_e = {
    matchHandlers: {},
    dispatch: function(e) {
        return Ry = e,
        tc.forEach(function(n) {
            return n(Ry)
        }),
        tc.size >= 1
    },
    subscribe: function(e) {
        return tc.size || this.register(),
        eT += 1,
        tc.set(eT, e),
        e(Ry),
        eT
    },
    unsubscribe: function(e) {
        tc.delete(e),
        tc.size || this.unregister()
    },
    unregister: function() {
        var e = this;
        Object.keys(Ly).forEach(function(n) {
            var r = Ly[n]
              , a = e.matchHandlers[r];
            a == null || a.mql.removeListener(a == null ? void 0 : a.listener)
        }),
        tc.clear()
    },
    register: function() {
        var e = this;
        Object.keys(Ly).forEach(function(n) {
            var r = Ly[n]
              , a = function(l) {
                var s = l.matches;
                e.dispatch(I(I({}, Ry), {}, z({}, n, s)))
            }
              , i = window.matchMedia(r);
            i.addListener(a),
            e.matchHandlers[r] = {
                mql: i,
                listener: a
            },
            a(i)
        })
    }
};
const Fv = I_e;
function yh() {
    var t = Q({})
      , e = null;
    return ct(function() {
        e = Fv.subscribe(function(n) {
            t.value = n
        })
    }),
    dr(function() {
        Fv.unsubscribe(e)
    }),
    t
}
var LQ = Symbol("SizeProvider")
  , k_e = function(e) {
    var n = vt("configProvider", JO)
      , r = j(function() {
        return e.size || n.componentSize
    });
    return It(LQ, r),
    r
}
  , RQ = function(e) {
    var n = e ? j(function() {
        return e.size
    }) : vt(LQ, j(function() {
        return "default"
    }));
    return n
};
const O_e = k_e;
function Qa(t) {
    var e = Mt();
    return pt(function() {
        e.value = t()
    }, {
        flush: "sync"
    }),
    e
}
var D_e = function() {
    return {
        prefixCls: String,
        shape: {
            type: String,
            default: "circle"
        },
        size: {
            type: [Number, String, Object],
            default: function() {
                return "default"
            }
        },
        src: String,
        srcset: String,
        icon: J.any,
        alt: String,
        gap: Number,
        draggable: {
            type: Boolean,
            default: void 0
        },
        crossOrigin: String,
        loadError: {
            type: Function
        }
    }
}
  , E_e = de({
    compatConfig: {
        MODE: 3
    },
    name: "AAvatar",
    inheritAttrs: !1,
    props: D_e(),
    slots: ["icon"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = Q(!0)
          , o = Q(!1)
          , l = Q(1)
          , s = Q(null)
          , u = Q(null)
          , c = je("avatar", e)
          , f = c.prefixCls
          , d = RQ()
          , v = j(function() {
            return e.size === "default" ? d.value : e.size
        })
          , h = yh()
          , p = Qa(function() {
            if (We(e.size) === "object") {
                var b = Of.find(function(C) {
                    return h.value[C]
                })
                  , x = e.size[b];
                return x
            }
        })
          , g = function(x) {
            return p.value ? {
                width: "".concat(p.value, "px"),
                height: "".concat(p.value, "px"),
                lineHeight: "".concat(p.value, "px"),
                fontSize: "".concat(x ? p.value / 2 : 18, "px")
            } : {}
        }
          , m = function() {
            if (!(!s.value || !u.value)) {
                var x = s.value.offsetWidth
                  , C = u.value.offsetWidth;
                if (x !== 0 && C !== 0) {
                    var S = e.gap
                      , w = S === void 0 ? 4 : S;
                    w * 2 < C && (l.value = C - w * 2 < x ? (C - w * 2) / x : 1)
                }
            }
        }
          , y = function() {
            var x = e.loadError
              , C = x == null ? void 0 : x();
            C !== !1 && (i.value = !1)
        };
        return Te(function() {
            return e.src
        }, function() {
            yt(function() {
                i.value = !0,
                l.value = 1
            })
        }),
        Te(function() {
            return e.gap
        }, function() {
            yt(function() {
                m()
            })
        }),
        ct(function() {
            yt(function() {
                m(),
                o.value = !0
            })
        }),
        function() {
            var b, x, C = e.shape, S = e.src, w = e.alt, T = e.srcset, P = e.draggable, M = e.crossOrigin, A = Dn(r, e, "icon"), O = f.value, k = (b = {},
            z(b, "".concat(a.class), !!a.class),
            z(b, O, !0),
            z(b, "".concat(O, "-lg"), v.value === "large"),
            z(b, "".concat(O, "-sm"), v.value === "small"),
            z(b, "".concat(O, "-").concat(C), C),
            z(b, "".concat(O, "-image"), S && i.value),
            z(b, "".concat(O, "-icon"), A),
            b), D = typeof v.value == "number" ? {
                width: "".concat(v.value, "px"),
                height: "".concat(v.value, "px"),
                lineHeight: "".concat(v.value, "px"),
                fontSize: A ? "".concat(v.value / 2, "px") : "18px"
            } : {}, E = (x = r.default) === null || x === void 0 ? void 0 : x.call(r), L;
            if (S && i.value)
                L = _("img", {
                    draggable: P,
                    src: S,
                    srcset: T,
                    onError: y,
                    alt: w,
                    crossorigin: M
                }, null);
            else if (A)
                L = A;
            else if (o.value || l.value !== 1) {
                var N = "scale(".concat(l.value, ") translateX(-50%)")
                  , R = {
                    msTransform: N,
                    WebkitTransform: N,
                    transform: N
                }
                  , $ = typeof v.value == "number" ? {
                    lineHeight: "".concat(v.value, "px")
                } : {};
                L = _(Vi, {
                    onResize: m
                }, {
                    default: function() {
                        return [_("span", {
                            class: "".concat(O, "-string"),
                            ref: s,
                            style: I(I({}, $), R)
                        }, [E])]
                    }
                })
            } else
                L = _("span", {
                    class: "".concat(O, "-string"),
                    ref: s,
                    style: {
                        opacity: 0
                    }
                }, [E]);
            return _("span", I(I({}, a), {}, {
                ref: u,
                class: k,
                style: [D, g(!!A), a.style]
            }), [L])
        }
    }
});
const vf = E_e;
var pi = {
    adjustX: 1,
    adjustY: 1
}
  , gi = [0, 0]
  , NQ = {
    left: {
        points: ["cr", "cl"],
        overflow: pi,
        offset: [-4, 0],
        targetOffset: gi
    },
    right: {
        points: ["cl", "cr"],
        overflow: pi,
        offset: [4, 0],
        targetOffset: gi
    },
    top: {
        points: ["bc", "tc"],
        overflow: pi,
        offset: [0, -4],
        targetOffset: gi
    },
    bottom: {
        points: ["tc", "bc"],
        overflow: pi,
        offset: [0, 4],
        targetOffset: gi
    },
    topLeft: {
        points: ["bl", "tl"],
        overflow: pi,
        offset: [0, -4],
        targetOffset: gi
    },
    leftTop: {
        points: ["tr", "tl"],
        overflow: pi,
        offset: [-4, 0],
        targetOffset: gi
    },
    topRight: {
        points: ["br", "tr"],
        overflow: pi,
        offset: [0, -4],
        targetOffset: gi
    },
    rightTop: {
        points: ["tl", "tr"],
        overflow: pi,
        offset: [4, 0],
        targetOffset: gi
    },
    bottomRight: {
        points: ["tr", "br"],
        overflow: pi,
        offset: [0, 4],
        targetOffset: gi
    },
    rightBottom: {
        points: ["bl", "br"],
        overflow: pi,
        offset: [4, 0],
        targetOffset: gi
    },
    bottomLeft: {
        points: ["tl", "bl"],
        overflow: pi,
        offset: [0, 4],
        targetOffset: gi
    },
    leftBottom: {
        points: ["br", "bl"],
        overflow: pi,
        offset: [-4, 0],
        targetOffset: gi
    }
}
  , L_e = {
    prefixCls: String,
    id: String,
    overlayInnerStyle: J.any
};
const R_e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Content",
    props: L_e,
    slots: ["overlay"],
    setup: function(e, n) {
        var r = n.slots;
        return function() {
            var a;
            return _("div", {
                class: "".concat(e.prefixCls, "-inner"),
                id: e.id,
                role: "tooltip",
                style: e.overlayInnerStyle
            }, [(a = r.overlay) === null || a === void 0 ? void 0 : a.call(r)])
        }
    }
});
var N_e = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "afterVisibleChange", "transitionName", "animation", "placement", "align", "destroyTooltipOnHide", "defaultVisible"];
function gF() {}
const $_e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Tooltip",
    inheritAttrs: !1,
    props: {
        trigger: J.any.def(["hover"]),
        defaultVisible: {
            type: Boolean,
            default: void 0
        },
        visible: {
            type: Boolean,
            default: void 0
        },
        placement: J.string.def("right"),
        transitionName: String,
        animation: J.any,
        afterVisibleChange: J.func.def(function() {}),
        overlayStyle: {
            type: Object,
            default: void 0
        },
        overlayClassName: String,
        prefixCls: J.string.def("rc-tooltip"),
        mouseEnterDelay: J.number.def(.1),
        mouseLeaveDelay: J.number.def(.1),
        getPopupContainer: Function,
        destroyTooltipOnHide: {
            type: Boolean,
            default: !1
        },
        align: J.object.def(function() {
            return {}
        }),
        arrowContent: J.any.def(null),
        tipId: String,
        builtinPlacements: J.object,
        overlayInnerStyle: {
            type: Object,
            default: void 0
        },
        popupVisible: {
            type: Boolean,
            default: void 0
        },
        onVisibleChange: Function,
        onPopupAlign: Function
    },
    slots: ["arrowContent", "overlay"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.expose
          , o = Q()
          , l = function() {
            var d = e.prefixCls
              , v = e.tipId
              , h = e.overlayInnerStyle;
            return [_("div", {
                class: "".concat(d, "-arrow"),
                key: "arrow"
            }, [Dn(r, e, "arrowContent")]), _(R_e, {
                key: "content",
                prefixCls: d,
                id: v,
                overlayInnerStyle: h
            }, {
                overlay: r.overlay
            })]
        }
          , s = function() {
            return o.value.getPopupDomNode()
        };
        i({
            getPopupDomNode: s,
            triggerDOM: o,
            forcePopupAlign: function() {
                var d;
                return (d = o.value) === null || d === void 0 ? void 0 : d.forcePopupAlign()
            }
        });
        var u = Q(!1)
          , c = Q(!1);
        return pt(function() {
            var f = e.destroyTooltipOnHide;
            if (typeof f == "boolean")
                u.value = f;
            else if (f && We(f) === "object") {
                var d = f.keepParent;
                u.value = d === !0,
                c.value = d === !1
            }
        }),
        function() {
            var f = e.overlayClassName
              , d = e.trigger
              , v = e.mouseEnterDelay
              , h = e.mouseLeaveDelay
              , p = e.overlayStyle
              , g = e.prefixCls
              , m = e.afterVisibleChange
              , y = e.transitionName
              , b = e.animation
              , x = e.placement
              , C = e.align;
            e.destroyTooltipOnHide;
            var S = e.defaultVisible
              , w = tt(e, N_e)
              , T = I({}, w);
            e.visible !== void 0 && (T.popupVisible = e.visible);
            var P = I(I(I({
                popupClassName: f,
                prefixCls: g,
                action: d,
                builtinPlacements: NQ,
                popupPlacement: x,
                popupAlign: C,
                afterPopupVisibleChange: m,
                popupTransitionName: y,
                popupAnimation: b,
                defaultPopupVisible: S,
                destroyPopupOnHide: u.value,
                autoDestroy: c.value,
                mouseLeaveDelay: h,
                popupStyle: p,
                mouseEnterDelay: v
            }, T), a), {}, {
                onPopupVisibleChange: e.onVisibleChange || gF,
                onPopupAlign: e.onPopupAlign || gF,
                ref: o,
                popup: l()
            });
            return _(gh, P, {
                default: r.default
            })
        }
    }
});
var F_e = Kn("success", "processing", "error", "default", "warning")
  , ED = Kn("pink", "red", "yellow", "orange", "cyan", "green", "blue", "purple", "geekblue", "magenta", "volcano", "gold", "lime");
const LD = function() {
    return {
        trigger: [String, Array],
        visible: {
            type: Boolean,
            default: void 0
        },
        defaultVisible: {
            type: Boolean,
            default: void 0
        },
        placement: String,
        color: String,
        transitionName: String,
        overlayStyle: {
            type: Object,
            default: void 0
        },
        overlayClassName: String,
        openClassName: String,
        prefixCls: String,
        mouseEnterDelay: Number,
        mouseLeaveDelay: Number,
        getPopupContainer: Function,
        arrowPointAtCenter: {
            type: Boolean,
            default: void 0
        },
        autoAdjustOverflow: {
            type: [Boolean, Object],
            default: void 0
        },
        destroyTooltipOnHide: {
            type: Boolean,
            default: void 0
        },
        align: {
            type: Object,
            default: void 0
        },
        builtinPlacements: {
            type: Object,
            default: void 0
        },
        children: Array,
        onVisibleChange: Function,
        "onUpdate:visible": Function
    }
};
var B_e = {
    adjustX: 1,
    adjustY: 1
}
  , mF = {
    adjustX: 0,
    adjustY: 0
}
  , V_e = [0, 0];
function yF(t) {
    return typeof t == "boolean" ? t ? B_e : mF : I(I({}, mF), t)
}
function $Q(t) {
    var e = t.arrowWidth
      , n = e === void 0 ? 4 : e
      , r = t.horizontalArrowShift
      , a = r === void 0 ? 16 : r
      , i = t.verticalArrowShift
      , o = i === void 0 ? 8 : i
      , l = t.autoAdjustOverflow
      , s = t.arrowPointAtCenter
      , u = {
        left: {
            points: ["cr", "cl"],
            offset: [-4, 0]
        },
        right: {
            points: ["cl", "cr"],
            offset: [4, 0]
        },
        top: {
            points: ["bc", "tc"],
            offset: [0, -4]
        },
        bottom: {
            points: ["tc", "bc"],
            offset: [0, 4]
        },
        topLeft: {
            points: ["bl", "tc"],
            offset: [-(a + n), -4]
        },
        leftTop: {
            points: ["tr", "cl"],
            offset: [-4, -(o + n)]
        },
        topRight: {
            points: ["br", "tc"],
            offset: [a + n, -4]
        },
        rightTop: {
            points: ["tl", "cr"],
            offset: [4, -(o + n)]
        },
        bottomRight: {
            points: ["tr", "bc"],
            offset: [a + n, 4]
        },
        rightBottom: {
            points: ["bl", "cr"],
            offset: [4, o + n]
        },
        bottomLeft: {
            points: ["tl", "bc"],
            offset: [-(a + n), 4]
        },
        leftBottom: {
            points: ["br", "cl"],
            offset: [-4, o + n]
        }
    };
    return Object.keys(u).forEach(function(c) {
        u[c] = s ? I(I({}, u[c]), {}, {
            overflow: yF(l),
            targetOffset: V_e
        }) : I(I({}, NQ[c]), {}, {
            overflow: yF(l)
        }),
        u[c].ignoreShake = !0
    }),
    u
}
function Fx() {
    for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = 0, n = t.length; e < n; e++)
        if (t[e] !== void 0)
            return t[e]
}
var z_e = function(e, n) {
    var r = {}
      , a = I({}, e);
    return n.forEach(function(i) {
        e && i in e && (r[i] = e[i],
        delete a[i])
    }),
    {
        picked: r,
        omitted: a
    }
}
  , bF = new RegExp("^(".concat(ED.join("|"), ")(-inverse)?$"))
  , FQ = function() {
    return I(I({}, LD()), {}, {
        title: J.any
    })
}
  , BQ = function() {
    return {
        trigger: "hover",
        transitionName: "zoom-big-fast",
        align: {},
        placement: "top",
        mouseEnterDelay: .1,
        mouseLeaveDelay: .1,
        arrowPointAtCenter: !1,
        autoAdjustOverflow: !0
    }
};
const H_e = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATooltip",
    inheritAttrs: !1,
    props: $t(FQ(), {
        trigger: "hover",
        transitionName: "zoom-big-fast",
        align: {},
        placement: "top",
        mouseEnterDelay: .1,
        mouseLeaveDelay: .1,
        arrowPointAtCenter: !1,
        autoAdjustOverflow: !0
    }),
    slots: ["title"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = n.attrs
          , o = n.expose
          , l = je("tooltip", e)
          , s = l.prefixCls
          , u = l.getPopupContainer
          , c = Q(Fx([e.visible, e.defaultVisible]))
          , f = Q();
        ct(function() {
            ur(e.defaultVisible === void 0, "Tooltip", "'defaultVisible' is deprecated, please use 'v-model:visible'")
        });
        var d;
        Te(function() {
            return e.visible
        }, function(C) {
            gt.cancel(d),
            d = gt(function() {
                c.value = !!C
            })
        });
        var v = function() {
            var S, w = (S = e.title) !== null && S !== void 0 ? S : r.title;
            return !w && w !== 0
        }
          , h = function(S) {
            var w = v();
            e.visible === void 0 && (c.value = w ? !1 : S),
            w || (a("update:visible", S),
            a("visibleChange", S))
        }
          , p = function() {
            return f.value.getPopupDomNode()
        };
        o({
            getPopupDomNode: p,
            visible: c,
            forcePopupAlign: function() {
                var S;
                return (S = f.value) === null || S === void 0 ? void 0 : S.forcePopupAlign()
            }
        });
        var g = j(function() {
            var C = e.builtinPlacements
              , S = e.arrowPointAtCenter
              , w = e.autoAdjustOverflow;
            return C || $Q({
                arrowPointAtCenter: S,
                autoAdjustOverflow: w
            })
        })
          , m = function(S) {
            return S || S === ""
        }
          , y = function(S) {
            var w = S.type;
            if (We(w) === "object" && S.props && ((w.__ANT_BUTTON === !0 || w === "button") && m(S.props.disabled) || w.__ANT_SWITCH === !0 && (m(S.props.disabled) || m(S.props.loading)))) {
                var T = z_e(YX(S), ["position", "left", "right", "top", "bottom", "float", "display", "zIndex"])
                  , P = T.picked
                  , M = T.omitted
                  , A = I(I({
                    display: "inline-block"
                }, P), {}, {
                    cursor: "not-allowed",
                    lineHeight: 1,
                    width: S.props && S.props.block ? "100%" : null
                })
                  , O = I(I({}, M), {}, {
                    pointerEvents: "none"
                })
                  , k = Qt(S, {
                    style: O
                }, !0);
                return _("span", {
                    style: A,
                    class: "".concat(s.value, "-disabled-compatible-wrapper")
                }, [k])
            }
            return S
        }
          , b = function() {
            var S, w;
            return (S = e.title) !== null && S !== void 0 ? S : (w = r.title) === null || w === void 0 ? void 0 : w.call(r)
        }
          , x = function(S, w) {
            var T = g.value
              , P = Object.keys(T).filter(function(O) {
                return T[O].points[0] === w.points[0] && T[O].points[1] === w.points[1]
            })[0];
            if (!!P) {
                var M = S.getBoundingClientRect()
                  , A = {
                    top: "50%",
                    left: "50%"
                };
                P.indexOf("top") >= 0 || P.indexOf("Bottom") >= 0 ? A.top = "".concat(M.height - w.offset[1], "px") : (P.indexOf("Top") >= 0 || P.indexOf("bottom") >= 0) && (A.top = "".concat(-w.offset[1], "px")),
                P.indexOf("left") >= 0 || P.indexOf("Right") >= 0 ? A.left = "".concat(M.width - w.offset[0], "px") : (P.indexOf("right") >= 0 || P.indexOf("Left") >= 0) && (A.left = "".concat(-w.offset[0], "px")),
                S.style.transformOrigin = "".concat(A.left, " ").concat(A.top)
            }
        };
        return function() {
            var C, S, w, T = e.openClassName, P = e.color, M = e.overlayClassName, A = (C = ar((S = r.default) === null || S === void 0 ? void 0 : S.call(r))) !== null && C !== void 0 ? C : null;
            A = A.length === 1 ? A[0] : A;
            var O = c.value;
            if (e.visible === void 0 && v() && (O = !1),
            !A)
                return null;
            var k = y(cr(A) ? A : _("span", null, [A])), D = he((w = {},
            z(w, T || "".concat(s.value, "-open"), !0),
            z(w, k.props && k.props.class, k.props && k.props.class),
            w)), E = he(M, z({}, "".concat(s.value, "-").concat(P), P && bF.test(P))), L, N;
            P && !bF.test(P) && (L = {
                backgroundColor: P
            },
            N = {
                backgroundColor: P
            });
            var R = I(I(I({}, i), e), {}, {
                prefixCls: s.value,
                getPopupContainer: u.value,
                builtinPlacements: g.value,
                visible: O,
                ref: f,
                overlayClassName: E,
                overlayInnerStyle: L,
                onVisibleChange: h,
                onPopupAlign: x
            });
            return _($_e, R, {
                default: function() {
                    return [c.value ? Qt(k, {
                        class: D
                    }) : k]
                },
                arrowContent: function() {
                    return _("span", {
                        class: "".concat(s.value, "-arrow-content"),
                        style: N
                    }, null)
                },
                overlay: b
            })
        }
    }
})
  , vo = Jn(H_e);
var j_e = function() {
    return I(I({}, LD()), {}, {
        content: J.any,
        title: J.any
    })
}
  , W_e = de({
    compatConfig: {
        MODE: 3
    },
    name: "APopover",
    props: $t(j_e(), I(I({}, BQ()), {}, {
        trigger: "hover",
        transitionName: "zoom-big",
        placement: "top",
        mouseEnterDelay: .1,
        mouseLeaveDelay: .1
    })),
    setup: function(e, n) {
        var r = n.expose
          , a = n.slots
          , i = Q();
        r({
            getPopupDomNode: function() {
                var d, v;
                return (d = i.value) === null || d === void 0 || (v = d.getPopupDomNode) === null || v === void 0 ? void 0 : v.call(d)
            }
        });
        var o = je("popover", e)
          , l = o.prefixCls
          , s = o.configProvider
          , u = j(function() {
            return s.getPrefixCls()
        })
          , c = function() {
            var d, v, h = e.title, p = h === void 0 ? ar((d = a.title) === null || d === void 0 ? void 0 : d.call(a)) : h, g = e.content, m = g === void 0 ? ar((v = a.content) === null || v === void 0 ? void 0 : v.call(a)) : g, y = !!(Array.isArray(p) ? p.length : p), b = !!(Array.isArray(m) ? m.length : p);
            if (!(!y && !b))
                return _(xt, null, [y && _("div", {
                    class: "".concat(l.value, "-title")
                }, [p]), _("div", {
                    class: "".concat(l.value, "-inner-content")
                }, [m])])
        };
        return function() {
            return _(vo, I(I({}, Et(e, ["title", "content"])), {}, {
                prefixCls: l.value,
                ref: i,
                transitionName: So(u.value, "zoom-big", e.transitionName)
            }), {
                title: c,
                default: a.default
            })
        }
    }
});
const VQ = Jn(W_e);
var G_e = function() {
    return {
        prefixCls: String,
        maxCount: Number,
        maxStyle: {
            type: Object,
            default: void 0
        },
        maxPopoverPlacement: {
            type: String,
            default: "top"
        },
        maxPopoverTrigger: String,
        size: {
            type: [Number, String, Object],
            default: "default"
        }
    }
}
  , K_e = de({
    compatConfig: {
        MODE: 3
    },
    name: "AAvatarGroup",
    inheritAttrs: !1,
    props: G_e(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = je("avatar-group", e)
          , o = i.prefixCls
          , l = i.direction;
        return O_e(e),
        function() {
            var s, u = e.maxPopoverPlacement, c = u === void 0 ? "top" : u, f = e.maxCount, d = e.maxStyle, v = e.maxPopoverTrigger, h = v === void 0 ? "hover" : v, p = (s = {},
            z(s, o.value, !0),
            z(s, "".concat(o.value, "-rtl"), l.value === "rtl"),
            z(s, "".concat(a.class), !!a.class),
            s), g = Dn(r, e), m = bn(g).map(function(C, S) {
                return Qt(C, {
                    key: "avatar-key-".concat(S)
                })
            }), y = m.length;
            if (f && f < y) {
                var b = m.slice(0, f)
                  , x = m.slice(f, y);
                return b.push(_(VQ, {
                    key: "avatar-popover-key",
                    content: x,
                    trigger: h,
                    placement: c,
                    overlayClassName: "".concat(o.value, "-popover")
                }, {
                    default: function() {
                        return [_(vf, {
                            style: d
                        }, {
                            default: function() {
                                return ["+".concat(y - f)]
                            }
                        })]
                    }
                })),
                _("div", I(I({}, a), {}, {
                    class: p,
                    style: a.style
                }), [b])
            }
            return _("div", I(I({}, a), {}, {
                class: p,
                style: a.style
            }), [m])
        }
    }
});
const Bx = K_e;
vf.Group = Bx;
vf.install = function(t) {
    return t.component(vf.name, vf),
    t.component(Bx.name, Bx),
    t
}
;
var U_e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"
            }
        }]
    },
    name: "vertical-align-top",
    theme: "outlined"
};
const Y_e = U_e;
function xF(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            q_e(t, a, n[a])
        })
    }
    return t
}
function q_e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var RD = function(e, n) {
    var r = xF({}, e, n.attrs);
    return _(lt, xF({}, r, {
        icon: Y_e
    }), null)
};
RD.displayName = "VerticalAlignTopOutlined";
RD.inheritAttrs = !1;
const X_e = RD;
var Z_e = function() {
    return {
        visibilityHeight: {
            type: Number,
            default: 400
        },
        duration: {
            type: Number,
            default: 450
        },
        target: Function,
        prefixCls: String,
        onClick: Function
    }
}
  , Q_e = de({
    compatConfig: {
        MODE: 3
    },
    name: "ABackTop",
    inheritAttrs: !1,
    props: Z_e(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.emit
          , o = je("back-top", e)
          , l = o.prefixCls
          , s = o.direction
          , u = Q()
          , c = en({
            visible: !1,
            scrollEvent: null
        })
          , f = function() {
            return u.value && u.value.ownerDocument ? u.value.ownerDocument : window
        }
          , d = function(m) {
            var y = e.target
              , b = y === void 0 ? f : y
              , x = e.duration;
            tD(0, {
                getContainer: b,
                duration: x
            }),
            i("click", m)
        }
          , v = oM(function(g) {
            var m = e.visibilityHeight
              , y = eD(g.target, !0);
            c.visible = y > m
        })
          , h = function() {
            var m = e.target
              , y = m || f
              , b = y();
            c.scrollEvent = Nn(b, "scroll", function(x) {
                v(x)
            }),
            v({
                target: b
            })
        }
          , p = function() {
            c.scrollEvent && c.scrollEvent.remove(),
            v.cancel()
        };
        return Te(function() {
            return e.target
        }, function() {
            p(),
            yt(function() {
                h()
            })
        }),
        ct(function() {
            yt(function() {
                h()
            })
        }),
        PC(function() {
            yt(function() {
                h()
            })
        }),
        lq(function() {
            p()
        }),
        Nt(function() {
            p()
        }),
        function() {
            var g, m, y = _("div", {
                class: "".concat(l.value, "-content")
            }, [_("div", {
                class: "".concat(l.value, "-icon")
            }, [_(X_e, null, null)])]), b = I(I({}, a), {}, {
                onClick: d,
                class: (g = {},
                z(g, "".concat(l.value), !0),
                z(g, "".concat(a.class), a.class),
                z(g, "".concat(l.value, "-rtl"), s.value === "rtl"),
                g)
            }), x = zu("fade");
            return _(bl, x, {
                default: function() {
                    return [Fr(_("div", I(I({}, b), {}, {
                        ref: u
                    }), [((m = r.default) === null || m === void 0 ? void 0 : m.call(r)) || y]), [[Io, c.visible]])]
                }
            })
        }
    }
});
const J_e = Jn(Q_e);
function SF(t) {
    var e = t.prefixCls, n = t.value, r = t.current, a = t.offset, i = a === void 0 ? 0 : a, o;
    return i && (o = {
        position: "absolute",
        top: "".concat(i, "00%"),
        left: 0
    }),
    _("p", {
        style: o,
        class: he("".concat(e, "-only-unit"), {
            current: r
        })
    }, [n])
}
function eTe(t, e, n) {
    for (var r = t, a = 0; (r + 10) % 10 !== e; )
        r += n,
        a += n;
    return a
}
const tTe = de({
    compatConfig: {
        MODE: 3
    },
    name: "SingleNumber",
    props: {
        prefixCls: String,
        value: String,
        count: Number
    },
    setup: function(e) {
        var n = j(function() {
            return Number(e.value)
        })
          , r = j(function() {
            return Math.abs(e.count)
        })
          , a = en({
            prevValue: n.value,
            prevCount: r.value
        })
          , i = function() {
            a.prevValue = n.value,
            a.prevCount = r.value
        }
          , o = Q();
        return Te(n, function() {
            clearTimeout(o.value),
            o.value = setTimeout(function() {
                i()
            }, 1e3)
        }, {
            flush: "post"
        }),
        dr(function() {
            clearTimeout(o.value)
        }),
        function() {
            var l, s = {}, u = n.value;
            if (a.prevValue === u || Number.isNaN(u) || Number.isNaN(a.prevValue))
                l = [SF(I(I({}, e), {}, {
                    current: !0
                }))],
                s = {
                    transition: "none"
                };
            else {
                l = [];
                for (var c = u + 10, f = [], d = u; d <= c; d += 1)
                    f.push(d);
                var v = f.findIndex(function(p) {
                    return p % 10 === a.prevValue
                });
                l = f.map(function(p, g) {
                    var m = p % 10;
                    return SF(I(I({}, e), {}, {
                        value: m,
                        offset: g - v,
                        current: g === v
                    }))
                });
                var h = a.prevCount < r.value ? 1 : -1;
                s = {
                    transform: "translateY(".concat(-eTe(a.prevValue, u, h), "00%)")
                }
            }
            return _("span", {
                class: "".concat(e.prefixCls, "-only"),
                style: s,
                onTransitionend: function() {
                    return i()
                }
            }, [l])
        }
    }
});
var nTe = ["prefixCls", "count", "title", "show", "component", "class", "style"]
  , rTe = {
    prefixCls: String,
    count: J.any,
    component: String,
    title: J.any,
    show: Boolean
};
const aTe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ScrollNumber",
    inheritAttrs: !1,
    props: rTe,
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = je("scroll-number", e)
          , o = i.prefixCls;
        return function() {
            var l, s = I(I({}, e), r);
            s.prefixCls;
            var u = s.count
              , c = s.title;
            s.show;
            var f = s.component
              , d = f === void 0 ? "sup" : f
              , v = s.class
              , h = s.style
              , p = tt(s, nTe)
              , g = I(I({}, p), {}, {
                style: h,
                "data-show": e.show,
                class: he(o.value, v),
                title: c
            })
              , m = u;
            if (u && Number(u) % 1 === 0) {
                var y = String(u).split("");
                m = y.map(function(x, C) {
                    return _(tTe, {
                        prefixCls: o.value,
                        count: Number(u),
                        value: x,
                        key: y.length - C
                    }, null)
                })
            }
            h && h.borderColor && (g.style = I(I({}, h), {}, {
                boxShadow: "0 0 0 1px ".concat(h.borderColor, " inset")
            }));
            var b = ar((l = a.default) === null || l === void 0 ? void 0 : l.call(a));
            return b && b.length ? Qt(b, {
                class: he("".concat(o.value, "-custom-component"))
            }, !1) : _(d, g, {
                default: function() {
                    return [m]
                }
            })
        }
    }
});
function Hp(t) {
    return ED.indexOf(t) !== -1
}
var iTe = ["class", "style"]
  , oTe = function() {
    return {
        prefix: String,
        color: {
            type: String
        },
        text: J.any,
        placement: {
            type: String,
            default: "end"
        }
    }
};
const Vx = de({
    compatConfig: {
        MODE: 3
    },
    name: "ABadgeRibbon",
    inheritAttrs: !1,
    props: oTe(),
    slots: ["text"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = je("ribbon", e)
          , o = i.prefixCls
          , l = i.direction
          , s = j(function() {
            return Hp(e.color)
        })
          , u = j(function() {
            var c;
            return [o.value, "".concat(o.value, "-placement-").concat(e.placement), (c = {},
            z(c, "".concat(o.value, "-rtl"), l.value === "rtl"),
            z(c, "".concat(o.value, "-color-").concat(e.color), s.value),
            c)]
        });
        return function() {
            var c, f, d = r.class, v = r.style, h = tt(r, iTe), p = {}, g = {};
            return e.color && !s.value && (p.background = e.color,
            g.color = e.color),
            _("div", I({
                class: "".concat(o.value, "-wrapper")
            }, h), [(c = a.default) === null || c === void 0 ? void 0 : c.call(a), _("div", {
                class: [u.value, d],
                style: I(I({}, p), v)
            }, [_("span", {
                class: "".concat(o.value, "-text")
            }, [e.text || ((f = a.text) === null || f === void 0 ? void 0 : f.call(a))]), _("div", {
                class: "".concat(o.value, "-corner"),
                style: g
            }, null)])])
        }
    }
});
var lTe = function(e) {
    return !isNaN(parseFloat(e)) && isFinite(e)
};
const zQ = lTe;
var sTe = function() {
    return {
        count: J.any,
        showZero: {
            type: Boolean,
            default: void 0
        },
        overflowCount: {
            type: Number,
            default: 99
        },
        dot: {
            type: Boolean,
            default: void 0
        },
        prefixCls: String,
        scrollNumberPrefixCls: String,
        status: {
            type: String
        },
        size: {
            type: String,
            default: "default"
        },
        color: String,
        text: J.any,
        offset: Array,
        numberStyle: {
            type: Object,
            default: void 0
        },
        title: String
    }
};
const pb = de({
    compatConfig: {
        MODE: 3
    },
    name: "ABadge",
    Ribbon: Vx,
    inheritAttrs: !1,
    props: sTe(),
    slots: ["text", "count"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = je("badge", e)
          , o = i.prefixCls
          , l = i.direction
          , s = j(function() {
            return e.count > e.overflowCount ? "".concat(e.overflowCount, "+") : e.count
        })
          , u = j(function() {
            return e.status !== null && e.status !== void 0 || e.color !== null && e.color !== void 0
        })
          , c = j(function() {
            return s.value === "0" || s.value === 0
        })
          , f = j(function() {
            return e.dot && !c.value
        })
          , d = j(function() {
            return f.value ? "" : s.value
        })
          , v = j(function() {
            var x = d.value === null || d.value === void 0 || d.value === "";
            return (x || c.value && !e.showZero) && !f.value
        })
          , h = Q(e.count)
          , p = Q(d.value)
          , g = Q(f.value);
        Te([function() {
            return e.count
        }
        , d, f], function() {
            v.value || (h.value = e.count,
            p.value = d.value,
            g.value = f.value)
        }, {
            immediate: !0
        });
        var m = j(function() {
            var x;
            return x = {},
            z(x, "".concat(o.value, "-status-dot"), u.value),
            z(x, "".concat(o.value, "-status-").concat(e.status), !!e.status),
            z(x, "".concat(o.value, "-status-").concat(e.color), Hp(e.color)),
            x
        })
          , y = j(function() {
            return e.color && !Hp(e.color) ? {
                background: e.color
            } : {}
        })
          , b = j(function() {
            var x;
            return x = {},
            z(x, "".concat(o.value, "-dot"), g.value),
            z(x, "".concat(o.value, "-count"), !g.value),
            z(x, "".concat(o.value, "-count-sm"), e.size === "small"),
            z(x, "".concat(o.value, "-multiple-words"), !g.value && p.value && p.value.toString().length > 1),
            z(x, "".concat(o.value, "-status-").concat(e.status), !!e.status),
            z(x, "".concat(o.value, "-status-").concat(e.color), Hp(e.color)),
            x
        });
        return function() {
            var x, C, S, w = e.offset, T = e.title, P = e.color, M = a.style, A = Dn(r, e, "text"), O = o.value, k = h.value, D = bn((x = r.default) === null || x === void 0 ? void 0 : x.call(r));
            D = D.length ? D : null;
            var E = !!(!v.value || r.count)
              , L = function() {
                if (!w)
                    return I({}, M);
                var V = {
                    marginTop: zQ(w[1]) ? "".concat(w[1], "px") : w[1]
                };
                return l.value === "rtl" ? V.left = "".concat(parseInt(w[0], 10), "px") : V.right = "".concat(-parseInt(w[0], 10), "px"),
                I(I({}, V), M)
            }()
              , N = T != null ? T : typeof k == "string" || typeof k == "number" ? k : void 0
              , R = E || !A ? null : _("span", {
                class: "".concat(O, "-status-text")
            }, [A])
              , $ = We(k) === "object" || k === void 0 && r.count ? Qt(k != null ? k : (C = r.count) === null || C === void 0 ? void 0 : C.call(r), {
                style: L
            }, !1) : null
              , W = he(O, (S = {},
            z(S, "".concat(O, "-status"), u.value),
            z(S, "".concat(O, "-not-a-wrapper"), !D),
            z(S, "".concat(O, "-rtl"), l.value === "rtl"),
            S), a.class);
            if (!D && u.value) {
                var B = L.color;
                return _("span", I(I({}, a), {}, {
                    class: W,
                    style: L
                }), [_("span", {
                    class: m.value,
                    style: y.value
                }, null), _("span", {
                    style: {
                        color: B
                    },
                    class: "".concat(O, "-status-text")
                }, [A])])
            }
            var G = zu(D ? "".concat(O, "-zoom") : "", {
                appear: !1
            })
              , K = I(I({}, L), e.numberStyle);
            return P && !Hp(P) && (K = K || {},
            K.background = P),
            _("span", I(I({}, a), {}, {
                class: W
            }), [D, _(bl, G, {
                default: function() {
                    return [Fr(_(aTe, {
                        prefixCls: e.scrollNumberPrefixCls,
                        show: E,
                        class: b.value,
                        count: p.value,
                        title: N,
                        style: K,
                        key: "scrollNumber"
                    }, {
                        default: function() {
                            return [$]
                        }
                    }), [[Io, E]])]
                }
            }), R])
        }
    }
});
pb.install = function(t) {
    return t.component(pb.name, pb),
    t.component(Vx.name, Vx),
    t
}
;
var vd = {
    adjustX: 1,
    adjustY: 1
}
  , hd = [0, 0]
  , uTe = {
    topLeft: {
        points: ["bl", "tl"],
        overflow: vd,
        offset: [0, -4],
        targetOffset: hd
    },
    topCenter: {
        points: ["bc", "tc"],
        overflow: vd,
        offset: [0, -4],
        targetOffset: hd
    },
    topRight: {
        points: ["br", "tr"],
        overflow: vd,
        offset: [0, -4],
        targetOffset: hd
    },
    bottomLeft: {
        points: ["tl", "bl"],
        overflow: vd,
        offset: [0, 4],
        targetOffset: hd
    },
    bottomCenter: {
        points: ["tc", "bc"],
        overflow: vd,
        offset: [0, 4],
        targetOffset: hd
    },
    bottomRight: {
        points: ["tr", "br"],
        overflow: vd,
        offset: [0, 4],
        targetOffset: hd
    }
};
const cTe = uTe;
var fTe = ["prefixCls", "arrow", "showAction", "overlayStyle", "trigger", "placement", "align", "getPopupContainer", "transitionName", "animation", "overlayClassName"];
const HQ = de({
    compatConfig: {
        MODE: 3
    },
    props: {
        minOverlayWidthMatchTrigger: {
            type: Boolean,
            default: void 0
        },
        arrow: {
            type: Boolean,
            default: !1
        },
        prefixCls: J.string.def("rc-dropdown"),
        transitionName: String,
        overlayClassName: J.string.def(""),
        openClassName: String,
        animation: J.any,
        align: J.object,
        overlayStyle: {
            type: Object,
            default: void 0
        },
        placement: J.string.def("bottomLeft"),
        overlay: J.any,
        trigger: J.oneOfType([J.string, J.arrayOf(J.string)]).def("hover"),
        alignPoint: {
            type: Boolean,
            default: void 0
        },
        showAction: J.array,
        hideAction: J.array,
        getPopupContainer: Function,
        visible: {
            type: Boolean,
            default: void 0
        },
        defaultVisible: {
            type: Boolean,
            default: !1
        },
        mouseEnterDelay: J.number.def(.15),
        mouseLeaveDelay: J.number.def(.1)
    },
    emits: ["visibleChange", "overlayClick"],
    slots: ["overlay"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = n.expose
          , o = Q(!!e.visible);
        Te(function() {
            return e.visible
        }, function(h) {
            h !== void 0 && (o.value = h)
        });
        var l = Q();
        i({
            triggerRef: l
        });
        var s = function(p) {
            e.visible === void 0 && (o.value = !1),
            a("overlayClick", p)
        }
          , u = function(p) {
            e.visible === void 0 && (o.value = p),
            a("visibleChange", p)
        }
          , c = function() {
            var p, g = (p = r.overlay) === null || p === void 0 ? void 0 : p.call(r), m = {
                prefixCls: "".concat(e.prefixCls, "-menu"),
                onClick: s,
                getPopupContainer: function() {
                    return l.value.getPopupDomNode()
                }
            };
            return _(xt, null, [e.arrow && _("div", {
                class: "".concat(e.prefixCls, "-arrow")
            }, null), Qt(g, m, !1)])
        }
          , f = j(function() {
            var h = e.minOverlayWidthMatchTrigger
              , p = h === void 0 ? !e.alignPoint : h;
            return p
        })
          , d = function() {
            var p, g = (p = r.default) === null || p === void 0 ? void 0 : p.call(r);
            return o.value && g ? Qt(g[0], {
                class: e.openClassName || "".concat(e.prefixCls, "-open")
            }, !1) : g
        }
          , v = j(function() {
            return !e.hideAction && e.trigger.indexOf("contextmenu") !== -1 ? ["click"] : e.hideAction
        });
        return function() {
            var h = e.prefixCls
              , p = e.arrow
              , g = e.showAction
              , m = e.overlayStyle
              , y = e.trigger
              , b = e.placement
              , x = e.align
              , C = e.getPopupContainer
              , S = e.transitionName
              , w = e.animation
              , T = e.overlayClassName
              , P = tt(e, fTe);
            return _(gh, I(I({}, P), {}, {
                prefixCls: h,
                ref: l,
                popupClassName: he(T, z({}, "".concat(h, "-show-arrow"), p)),
                popupStyle: m,
                builtinPlacements: cTe,
                action: y,
                showAction: g,
                hideAction: v.value || [],
                popupPlacement: b,
                popupAlign: x,
                popupTransitionName: S,
                popupAnimation: w,
                popupVisible: o.value,
                stretch: f.value ? "minWidth" : "",
                onPopupVisibleChange: u,
                getPopupContainer: C
            }), {
                popup: c,
                default: d
            })
        }
    }
});
var tT = {
    transitionstart: {
        transition: "transitionstart",
        WebkitTransition: "webkitTransitionStart",
        MozTransition: "mozTransitionStart",
        OTransition: "oTransitionStart",
        msTransition: "MSTransitionStart"
    },
    animationstart: {
        animation: "animationstart",
        WebkitAnimation: "webkitAnimationStart",
        MozAnimation: "mozAnimationStart",
        OAnimation: "oAnimationStart",
        msAnimation: "MSAnimationStart"
    }
}
  , nT = {
    transitionend: {
        transition: "transitionend",
        WebkitTransition: "webkitTransitionEnd",
        MozTransition: "mozTransitionEnd",
        OTransition: "oTransitionEnd",
        msTransition: "MSTransitionEnd"
    },
    animationend: {
        animation: "animationend",
        WebkitAnimation: "webkitAnimationEnd",
        MozAnimation: "mozAnimationEnd",
        OAnimation: "oAnimationEnd",
        msAnimation: "MSAnimationEnd"
    }
}
  , zd = []
  , Hd = [];
function dTe() {
    var t = document.createElement("div")
      , e = t.style;
    "AnimationEvent"in window || (delete tT.animationstart.animation,
    delete nT.animationend.animation),
    "TransitionEvent"in window || (delete tT.transitionstart.transition,
    delete nT.transitionend.transition);
    function n(r, a) {
        for (var i in r)
            if (r.hasOwnProperty(i)) {
                var o = r[i];
                for (var l in o)
                    if (l in e) {
                        a.push(o[l]);
                        break
                    }
            }
    }
    n(tT, zd),
    n(nT, Hd)
}
typeof window != "undefined" && typeof document != "undefined" && dTe();
function CF(t, e, n) {
    t.addEventListener(e, n, !1)
}
function wF(t, e, n) {
    t.removeEventListener(e, n, !1)
}
var vTe = {
    startEvents: zd,
    addStartEventListener: function(e, n) {
        if (zd.length === 0) {
            setTimeout(n, 0);
            return
        }
        zd.forEach(function(r) {
            CF(e, r, n)
        })
    },
    removeStartEventListener: function(e, n) {
        zd.length !== 0 && zd.forEach(function(r) {
            wF(e, r, n)
        })
    },
    endEvents: Hd,
    addEndEventListener: function(e, n) {
        if (Hd.length === 0) {
            setTimeout(n, 0);
            return
        }
        Hd.forEach(function(r) {
            CF(e, r, n)
        })
    },
    removeEndEventListener: function(e, n) {
        Hd.length !== 0 && Hd.forEach(function(r) {
            wF(e, r, n)
        })
    }
};
const Ny = vTe;
var Is;
function _F(t) {
    return !t || t.offsetParent === null
}
function hTe(t) {
    var e = (t || "").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);
    return e && e[1] && e[2] && e[3] ? !(e[1] === e[2] && e[2] === e[3]) : !0
}
const ND = de({
    compatConfig: {
        MODE: 3
    },
    name: "Wave",
    props: {
        insertExtraNode: Boolean,
        disabled: Boolean
    },
    setup: function(e, n) {
        var r = n.slots
          , a = n.expose
          , i = qn()
          , o = je("", e)
          , l = o.csp
          , s = o.prefixCls;
        a({
            csp: l
        });
        var u = null
          , c = null
          , f = null
          , d = !1
          , v = null
          , h = !1
          , p = function(S) {
            if (!h) {
                var w = eu(i);
                !S || S.target !== w || d || b(w)
            }
        }
          , g = function(S) {
            !S || S.animationName !== "fadeEffect" || b(S.target)
        }
          , m = function() {
            var S = e.insertExtraNode;
            return S ? "".concat(s.value, "-click-animating") : "".concat(s.value, "-click-animating-without-extra-node")
        }
          , y = function(S, w) {
            var T = e.insertExtraNode
              , P = e.disabled;
            if (!(P || !S || _F(S) || S.className.indexOf("-leave") >= 0)) {
                v = document.createElement("div"),
                v.className = "".concat(s.value, "-click-animating-node");
                var M = m();
                if (S.removeAttribute(M),
                S.setAttribute(M, "true"),
                Is = Is || document.createElement("style"),
                w && w !== "#ffffff" && w !== "rgb(255, 255, 255)" && hTe(w) && !/rgba\(\d*, \d*, \d*, 0\)/.test(w) && w !== "transparent") {
                    var A;
                    (A = l.value) !== null && A !== void 0 && A.nonce && (Is.nonce = l.value.nonce),
                    v.style.borderColor = w,
                    Is.innerHTML = `
        [`.concat(s.value, "-click-animating-without-extra-node='true']::after, .").concat(s.value, `-click-animating-node {
          --antd-wave-shadow-color: `).concat(w, `;
        }`),
                    document.body.contains(Is) || document.body.appendChild(Is)
                }
                T && S.appendChild(v),
                Ny.addStartEventListener(S, p),
                Ny.addEndEventListener(S, g)
            }
        }
          , b = function(S) {
            if (!(!S || S === v || !(S instanceof Element))) {
                var w = e.insertExtraNode
                  , T = m();
                S.setAttribute(T, "false"),
                Is && (Is.innerHTML = ""),
                w && v && S.contains(v) && S.removeChild(v),
                Ny.removeStartEventListener(S, p),
                Ny.removeEndEventListener(S, g)
            }
        }
          , x = function(S) {
            if (!(!S || !S.getAttribute || S.getAttribute("disabled") || S.className.indexOf("disabled") >= 0)) {
                var w = function(P) {
                    if (!(P.target.tagName === "INPUT" || _F(P.target))) {
                        b(S);
                        var M = getComputedStyle(S).getPropertyValue("border-top-color") || getComputedStyle(S).getPropertyValue("border-color") || getComputedStyle(S).getPropertyValue("background-color");
                        c = setTimeout(function() {
                            return y(S, M)
                        }, 0),
                        gt.cancel(f),
                        d = !0,
                        f = gt(function() {
                            d = !1
                        }, 10)
                    }
                };
                return S.addEventListener("click", w, !0),
                {
                    cancel: function() {
                        S.removeEventListener("click", w, !0)
                    }
                }
            }
        };
        return ct(function() {
            yt(function() {
                var C = eu(i);
                C.nodeType === 1 && (u = x(C))
            })
        }),
        Nt(function() {
            u && u.cancel(),
            clearTimeout(c),
            h = !0
        }),
        function() {
            var C;
            return (C = r.default) === null || C === void 0 ? void 0 : C.call(r)[0]
        }
    }
});
function zx(t) {
    return t === "danger" ? {
        danger: !0
    } : {
        type: t
    }
}
var pTe = function() {
    return {
        prefixCls: String,
        type: String,
        htmlType: {
            type: String,
            default: "button"
        },
        shape: {
            type: String
        },
        size: {
            type: String
        },
        loading: {
            type: [Boolean, Object],
            default: function() {
                return !1
            }
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        ghost: {
            type: Boolean,
            default: void 0
        },
        block: {
            type: Boolean,
            default: void 0
        },
        danger: {
            type: Boolean,
            default: void 0
        },
        icon: J.any,
        href: String,
        target: String,
        title: String,
        onClick: {
            type: Function
        },
        onMousedown: {
            type: Function
        }
    }
};
const jQ = pTe;
var TF = function(e) {
    e && (e.style.width = "0px",
    e.style.opacity = "0",
    e.style.transform = "scale(0)")
}
  , PF = function(e) {
    yt(function() {
        e && (e.style.width = "".concat(e.scrollWidth, "px"),
        e.style.opacity = "1",
        e.style.transform = "scale(1)")
    })
}
  , MF = function(e) {
    e && e.style && (e.style.width = null,
    e.style.opacity = null,
    e.style.transform = null)
};
const gTe = de({
    compatConfig: {
        MODE: 3
    },
    name: "LoadingIcon",
    props: {
        prefixCls: String,
        loading: [Boolean, Object],
        existIcon: Boolean
    },
    setup: function(e) {
        return function() {
            var n = e.existIcon
              , r = e.prefixCls
              , a = e.loading;
            if (n)
                return _("span", {
                    class: "".concat(r, "-loading-icon")
                }, [_(Co, null, null)]);
            var i = !!a;
            return _(dh, {
                name: "".concat(r, "-loading-icon-motion"),
                onBeforeEnter: TF,
                onEnter: PF,
                onAfterEnter: MF,
                onBeforeLeave: PF,
                onLeave: function(l) {
                    setTimeout(function() {
                        TF(l)
                    })
                },
                onAfterLeave: MF
            }, {
                default: function() {
                    return [i ? _("span", {
                        class: "".concat(r, "-loading-icon")
                    }, [_(Co, null, null)]) : null]
                }
            })
        }
    }
});
var AF = /^[\u4e00-\u9fa5]{2}$/
  , IF = AF.test.bind(AF);
function $y(t) {
    return t === "text" || t === "link"
}
const Pr = de({
    compatConfig: {
        MODE: 3
    },
    name: "AButton",
    inheritAttrs: !1,
    __ANT_BUTTON: !0,
    props: $t(jQ(), {
        type: "default"
    }),
    slots: ["icon"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.emit
          , o = n.expose
          , l = je("btn", e)
          , s = l.prefixCls
          , u = l.autoInsertSpaceInButton
          , c = l.direction
          , f = l.size
          , d = Q(null)
          , v = Q(void 0)
          , h = !1
          , p = Q(!1)
          , g = Q(!1)
          , m = j(function() {
            return u.value !== !1
        })
          , y = j(function() {
            return We(e.loading) === "object" && e.loading.delay ? e.loading.delay || !0 : !!e.loading
        });
        Te(y, function(P) {
            clearTimeout(v.value),
            typeof y.value == "number" ? v.value = setTimeout(function() {
                p.value = P
            }, y.value) : p.value = P
        }, {
            immediate: !0
        });
        var b = j(function() {
            var P, M = e.type, A = e.shape, O = A === void 0 ? "default" : A, k = e.ghost, D = e.block, E = e.danger, L = s.value, N = {
                large: "lg",
                small: "sm",
                middle: void 0
            }, R = f.value, $ = R && N[R] || "";
            return P = {},
            z(P, "".concat(L), !0),
            z(P, "".concat(L, "-").concat(M), M),
            z(P, "".concat(L, "-").concat(O), O !== "default" && O),
            z(P, "".concat(L, "-").concat($), $),
            z(P, "".concat(L, "-loading"), p.value),
            z(P, "".concat(L, "-background-ghost"), k && !$y(M)),
            z(P, "".concat(L, "-two-chinese-chars"), g.value && m.value),
            z(P, "".concat(L, "-block"), D),
            z(P, "".concat(L, "-dangerous"), !!E),
            z(P, "".concat(L, "-rtl"), c.value === "rtl"),
            P
        })
          , x = function() {
            var M = d.value;
            if (!(!M || u.value === !1)) {
                var A = M.textContent;
                h && IF(A) ? g.value || (g.value = !0) : g.value && (g.value = !1)
            }
        }
          , C = function(M) {
            if (p.value || e.disabled) {
                M.preventDefault();
                return
            }
            i("click", M)
        }
          , S = function(M, A) {
            var O = A ? " " : "";
            if (M.type === gs) {
                var k = M.children.trim();
                return IF(k) && (k = k.split("").join(O)),
                _("span", null, [k])
            }
            return M
        };
        pt(function() {
            sn(!(e.ghost && $y(e.type)), "Button", "`link` or `text` button can't be a `ghost` button.")
        }),
        ct(x),
        ua(x),
        Nt(function() {
            v.value && clearTimeout(v.value)
        });
        var w = function() {
            var M;
            (M = d.value) === null || M === void 0 || M.focus()
        }
          , T = function() {
            var M;
            (M = d.value) === null || M === void 0 || M.blur()
        };
        return o({
            focus: w,
            blur: T
        }),
        function() {
            var P, M, A = e.icon, O = A === void 0 ? (P = r.icon) === null || P === void 0 ? void 0 : P.call(r) : A, k = bn((M = r.default) === null || M === void 0 ? void 0 : M.call(r));
            h = k.length === 1 && !O && !$y(e.type);
            var D = e.type
              , E = e.htmlType
              , L = e.disabled
              , N = e.href
              , R = e.title
              , $ = e.target
              , W = e.onMousedown
              , B = p.value ? "loading" : O
              , G = I(I({}, a), {}, {
                title: R,
                disabled: L,
                class: [b.value, a.class, z({}, "".concat(s.value, "-icon-only"), k.length === 0 && !!B)],
                onClick: C,
                onMousedown: W
            });
            L || delete G.disabled;
            var K = O && !p.value ? O : _(gTe, {
                existIcon: !!O,
                prefixCls: s.value,
                loading: !!p.value
            }, null)
              , V = k.map(function(X) {
                return S(X, h && m.value)
            });
            if (N !== void 0)
                return _("a", I(I({}, G), {}, {
                    href: N,
                    target: $,
                    ref: d
                }), [K, V]);
            var U = _("button", I(I({}, G), {}, {
                ref: d,
                type: E
            }), [K, V]);
            return $y(D) ? U : _(ND, {
                ref: "wave",
                disabled: !!p.value
            }, {
                default: function() {
                    return [U]
                }
            })
        }
    }
});
function kF(t, e) {
    for (var n = 0; n < e.length; n++) {
        var r = e[n];
        r.enumerable = r.enumerable || !1,
        r.configurable = !0,
        "value"in r && (r.writable = !0),
        Object.defineProperty(t, aX(r.key), r)
    }
}
function $D(t, e, n) {
    return e && kF(t.prototype, e),
    n && kF(t, n),
    Object.defineProperty(t, "prototype", {
        writable: !1
    }),
    t
}
function FD(t, e) {
    if (!(t instanceof e))
        throw new TypeError("Cannot call a class as a function")
}
var mTe = function() {
    return {
        prefixCls: String,
        size: {
            type: String
        }
    }
};
const Hx = de({
    compatConfig: {
        MODE: 3
    },
    name: "AButtonGroup",
    props: mTe(),
    setup: function(e, n) {
        var r = n.slots
          , a = je("btn-group", e)
          , i = a.prefixCls
          , o = a.direction
          , l = j(function() {
            var s, u = e.size, c = "";
            switch (u) {
            case "large":
                c = "lg";
                break;
            case "small":
                c = "sm";
                break;
            case "middle":
            case void 0:
                break;
            default:
            }
            return s = {},
            z(s, "".concat(i.value), !0),
            z(s, "".concat(i.value, "-").concat(c), c),
            z(s, "".concat(i.value, "-rtl"), o.value === "rtl"),
            s
        });
        return function() {
            var s;
            return _("div", {
                class: l.value
            }, [bn((s = r.default) === null || s === void 0 ? void 0 : s.call(r))])
        }
    }
});
Pr.Group = Hx;
Pr.install = function(t) {
    return t.component(Pr.name, Pr),
    t.component(Hx.name, Hx),
    t
}
;
var WQ = function() {
    return {
        arrow: {
            type: [Boolean, Object],
            default: void 0
        },
        trigger: {
            type: [Array, String]
        },
        overlay: J.any,
        visible: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        align: {
            type: Object
        },
        getPopupContainer: Function,
        prefixCls: String,
        transitionName: String,
        placement: String,
        overlayClassName: String,
        overlayStyle: {
            type: Object,
            default: void 0
        },
        forceRender: {
            type: Boolean,
            default: void 0
        },
        mouseEnterDelay: Number,
        mouseLeaveDelay: Number,
        openClassName: String,
        minOverlayWidthMatchTrigger: {
            type: Boolean,
            default: void 0
        },
        destroyPopupOnHide: {
            type: Boolean,
            default: void 0
        },
        onVisibleChange: {
            type: Function
        },
        "onUpdate:visible": {
            type: Function
        }
    }
}
  , rT = jQ()
  , yTe = function() {
    return I(I({}, WQ()), {}, {
        type: rT.type,
        size: String,
        htmlType: rT.htmlType,
        href: String,
        disabled: {
            type: Boolean,
            default: void 0
        },
        prefixCls: String,
        icon: J.any,
        title: String,
        loading: rT.loading,
        onClick: {
            type: Function
        }
    })
}
  , bTe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"
            }
        }]
    },
    name: "ellipsis",
    theme: "outlined"
};
const xTe = bTe;
function OF(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            STe(t, a, n[a])
        })
    }
    return t
}
function STe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var BD = function(e, n) {
    var r = OF({}, e, n.attrs);
    return _(lt, OF({}, r, {
        icon: xTe
    }), null)
};
BD.displayName = "EllipsisOutlined";
BD.inheritAttrs = !1;
const VD = BD;
var CTe = ["type", "disabled", "loading", "htmlType", "class", "overlay", "trigger", "align", "visible", "onVisibleChange", "placement", "href", "title", "icon", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "onClick", "onUpdate:visible"]
  , wTe = Pr.Group;
const g0 = de({
    compatConfig: {
        MODE: 3
    },
    name: "ADropdownButton",
    inheritAttrs: !1,
    __ANT_BUTTON: !0,
    props: $t(yTe(), {
        trigger: "hover",
        placement: "bottomRight",
        type: "default"
    }),
    slots: ["icon", "leftButton", "rightButton", "overlay"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.emit
          , o = function(d) {
            i("update:visible", d),
            i("visibleChange", d)
        }
          , l = je("dropdown-button", e)
          , s = l.prefixCls
          , u = l.direction
          , c = l.getPopupContainer;
        return function() {
            var f, d, v = I(I({}, e), a), h = v.type, p = h === void 0 ? "default" : h, g = v.disabled, m = v.loading, y = v.htmlType, b = v.class, x = b === void 0 ? "" : b, C = v.overlay, S = C === void 0 ? (f = r.overlay) === null || f === void 0 ? void 0 : f.call(r) : C, w = v.trigger, T = v.align, P = v.visible;
            v.onVisibleChange;
            var M = v.placement
              , A = M === void 0 ? u.value === "rtl" ? "bottomLeft" : "bottomRight" : M
              , O = v.href
              , k = v.title
              , D = v.icon
              , E = D === void 0 ? ((d = r.icon) === null || d === void 0 ? void 0 : d.call(r)) || _(VD, null, null) : D
              , L = v.mouseEnterDelay
              , N = v.mouseLeaveDelay
              , R = v.overlayClassName
              , $ = v.overlayStyle
              , W = v.destroyPopupOnHide
              , B = v.onClick;
            v["onUpdate:visible"];
            var G = tt(v, CTe)
              , K = {
                align: T,
                disabled: g,
                trigger: g ? [] : w,
                placement: A,
                getPopupContainer: c.value,
                onVisibleChange: o,
                mouseEnterDelay: L,
                mouseLeaveDelay: N,
                visible: P,
                overlayClassName: R,
                overlayStyle: $,
                destroyPopupOnHide: W
            }
              , V = _(Pr, {
                type: p,
                disabled: g,
                loading: m,
                onClick: B,
                htmlType: y,
                href: O,
                title: k
            }, {
                default: r.default
            })
              , U = _(Pr, {
                type: p,
                icon: E
            }, null);
            return _(wTe, I(I({}, G), {}, {
                class: he(s.value, x)
            }), {
                default: function() {
                    return [r.leftButton ? r.leftButton({
                        button: V
                    }) : V, _(sl, K, {
                        default: function() {
                            return [r.rightButton ? r.rightButton({
                                button: U
                            }) : U]
                        },
                        overlay: function() {
                            return S
                        }
                    })]
                }
            })
        }
    }
});
var _Te = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
            }
        }]
    },
    name: "right",
    theme: "outlined"
};
const TTe = _Te;
function DF(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            PTe(t, a, n[a])
        })
    }
    return t
}
function PTe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var zD = function(e, n) {
    var r = DF({}, e, n.attrs);
    return _(lt, DF({}, r, {
        icon: TTe
    }), null)
};
zD.displayName = "RightOutlined";
zD.inheritAttrs = !1;
const ls = zD;
var GQ = de({
    compatConfig: {
        MODE: 3
    },
    name: "ADropdown",
    inheritAttrs: !1,
    props: $t(WQ(), {
        mouseEnterDelay: .15,
        mouseLeaveDelay: .1,
        placement: "bottomLeft",
        trigger: "hover"
    }),
    slots: ["overlay"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.emit
          , o = je("dropdown", e)
          , l = o.prefixCls
          , s = o.rootPrefixCls
          , u = o.direction
          , c = o.getPopupContainer
          , f = j(function() {
            var p = e.placement
              , g = p === void 0 ? "" : p
              , m = e.transitionName;
            return m !== void 0 ? m : g.indexOf("top") >= 0 ? "".concat(s.value, "-slide-down") : "".concat(s.value, "-slide-up")
        })
          , d = function() {
            var g, m, y, b = e.overlay || ((g = r.overlay) === null || g === void 0 ? void 0 : g.call(r)), x = Array.isArray(b) ? b[0] : b;
            if (!x)
                return null;
            var C = x.props || {};
            sn(!C.mode || C.mode === "vertical", "Dropdown", 'mode="'.concat(C.mode, `" is not supported for Dropdown's Menu.`));
            var S = C.selectable
              , w = S === void 0 ? !1 : S
              , T = C.expandIcon
              , P = T === void 0 ? (m = x.children) === null || m === void 0 || (y = m.expandIcon) === null || y === void 0 ? void 0 : y.call(m) : T
              , M = typeof P != "undefined" && cr(P) ? P : _("span", {
                class: "".concat(l.value, "-menu-submenu-arrow")
            }, [_(ls, {
                class: "".concat(l.value, "-menu-submenu-arrow-icon")
            }, null)])
              , A = cr(x) ? Qt(x, {
                mode: "vertical",
                selectable: w,
                expandIcon: function() {
                    return M
                }
            }) : x;
            return A
        }
          , v = j(function() {
            var p = e.placement;
            if (!p)
                return u.value === "rtl" ? "bottomRight" : "bottomLeft";
            if (p.includes("Center")) {
                var g = p.slice(0, p.indexOf("Center"));
                return sn(!p.includes("Center"), "Dropdown", "You are using '".concat(p, "' placement in Dropdown, which is deprecated. Try to use '").concat(g, "' instead.")),
                g
            }
            return p
        })
          , h = function(g) {
            i("update:visible", g),
            i("visibleChange", g)
        };
        return function() {
            var p, g, m = e.arrow, y = e.trigger, b = e.disabled, x = e.overlayClassName, C = (p = r.default) === null || p === void 0 ? void 0 : p.call(r)[0], S = Qt(C, Wt({
                class: he(C == null || (g = C.props) === null || g === void 0 ? void 0 : g.class, z({}, "".concat(l.value, "-rtl"), u.value === "rtl"), "".concat(l.value, "-trigger"))
            }, b ? {
                disabled: b
            } : {})), w = he(x, z({}, "".concat(l.value, "-rtl"), u.value === "rtl")), T = b ? [] : y, P;
            T && T.indexOf("contextmenu") !== -1 && (P = !0);
            var M = $Q({
                arrowPointAtCenter: We(m) === "object" && m.pointAtCenter,
                autoAdjustOverflow: !0
            })
              , A = Et(I(I(I({}, e), a), {}, {
                builtinPlacements: M,
                overlayClassName: w,
                arrow: m,
                alignPoint: P,
                prefixCls: l.value,
                getPopupContainer: c.value,
                transitionName: f.value,
                trigger: T,
                onVisibleChange: h,
                placement: v.value
            }), ["overlay", "onUpdate:visible"]);
            return _(HQ, A, {
                default: function() {
                    return [S]
                },
                overlay: d
            })
        }
    }
});
GQ.Button = g0;
const sl = GQ;
var MTe = ["class", "style"]
  , ATe = function() {
    return {
        prefixCls: String,
        href: String,
        separator: J.any,
        overlay: J.any,
        onClick: Function
    }
};
const m0 = de({
    compatConfig: {
        MODE: 3
    },
    name: "ABreadcrumbItem",
    inheritAttrs: !1,
    __ANT_BREADCRUMB_ITEM: !0,
    props: ATe(),
    slots: ["separator", "overlay"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = je("breadcrumb", e)
          , o = i.prefixCls
          , l = function(u, c) {
            var f = Dn(r, e, "overlay");
            return f ? _(sl, {
                overlay: f,
                placement: "bottom"
            }, {
                default: function() {
                    return [_("span", {
                        class: "".concat(c, "-overlay-link")
                    }, [u, _(Cm, null, null)])]
                }
            }) : u
        };
        return function() {
            var s, u = (s = Dn(r, e, "separator")) !== null && s !== void 0 ? s : "/", c = Dn(r, e), f = a.class, d = a.style, v = tt(a, MTe), h;
            return e.href !== void 0 ? h = _("a", I({
                class: "".concat(o.value, "-link"),
                onClick: e.onClick
            }, v), [c]) : h = _("span", I({
                class: "".concat(o.value, "-link"),
                onClick: e.onClick
            }, v), [c]),
            h = l(h, o.value),
            c ? _("span", {
                class: f,
                style: d
            }, [h, u && _("span", {
                class: "".concat(o.value, "-separator")
            }, [u])]) : null
        }
    }
});
function ITe(t, e, n, r) {
    var a = n ? n.call(r, t, e) : void 0;
    if (a !== void 0)
        return !!a;
    if (t === e)
        return !0;
    if (We(t) !== "object" || !t || We(e) !== "object" || !e)
        return !1;
    var i = Object.keys(t)
      , o = Object.keys(e);
    if (i.length !== o.length)
        return !1;
    for (var l = Object.prototype.hasOwnProperty.bind(e), s = 0; s < i.length; s++) {
        var u = i[s];
        if (!l(u))
            return !1;
        var c = t[u]
          , f = e[u];
        if (a = n ? n.call(r, c, f, u) : void 0,
        a === !1 || a === void 0 && c !== f)
            return !1
    }
    return !0
}
function jd(t, e, n, r) {
    return ITe(_t(t), _t(e), n, r)
}
var KQ = Symbol("menuContextKey")
  , UQ = function(e) {
    It(KQ, e)
}
  , ju = function() {
    return vt(KQ)
}
  , YQ = Symbol("ForceRenderKey")
  , kTe = function(e) {
    It(YQ, e)
}
  , qQ = function() {
    return vt(YQ, !1)
}
  , XQ = Symbol("menuFirstLevelContextKey")
  , ZQ = function(e) {
    It(XQ, e)
}
  , OTe = function() {
    return vt(XQ, !0)
}
  , jx = de({
    compatConfig: {
        MODE: 3
    },
    name: "MenuContextProvider",
    inheritAttrs: !1,
    props: {
        mode: {
            type: String,
            default: void 0
        },
        overflowDisabled: {
            type: Boolean,
            default: void 0
        },
        isRootMenu: {
            type: Boolean,
            default: void 0
        }
    },
    setup: function(e, n) {
        var r = n.slots
          , a = ju()
          , i = I({}, a);
        return e.mode !== void 0 && (i.mode = at(e, "mode")),
        e.isRootMenu !== void 0 && (i.isRootMenu = at(e, "isRootMenu")),
        e.overflowDisabled !== void 0 && (i.overflowDisabled = at(e, "overflowDisabled")),
        UQ(i),
        function() {
            var o;
            return (o = r.default) === null || o === void 0 ? void 0 : o.call(r)
        }
    }
});
const DTe = UQ;
function QQ(t, e, n, r) {
    for (var a = t.length, i = n + (r ? 1 : -1); r ? i-- : ++i < a; )
        if (e(t[i], i, t))
            return i;
    return -1
}
function ETe(t) {
    return t !== t
}
function LTe(t, e, n) {
    for (var r = n - 1, a = t.length; ++r < a; )
        if (t[r] === e)
            return r;
    return -1
}
function RTe(t, e, n) {
    return e === e ? LTe(t, e, n) : QQ(t, ETe, n)
}
function HD(t, e) {
    var n = t == null ? 0 : t.length;
    return !!n && RTe(t, e, 0) > -1
}
function jD(t, e, n) {
    for (var r = -1, a = t == null ? 0 : t.length; ++r < a; )
        if (n(e, t[r]))
            return !0;
    return !1
}
function NTe() {}
var $Te = 1 / 0
  , FTe = dv && 1 / fD(new dv([, -0]))[1] == $Te ? function(t) {
    return new dv(t)
}
: NTe;
const BTe = FTe;
var VTe = 200;
function zTe(t, e, n) {
    var r = -1
      , a = HD
      , i = t.length
      , o = !0
      , l = []
      , s = l;
    if (n)
        o = !1,
        a = jD;
    else if (i >= VTe) {
        var u = e ? null : BTe(t);
        if (u)
            return fD(u);
        o = !1,
        a = v0,
        s = new kf
    } else
        s = e ? [] : l;
    e: for (; ++r < i; ) {
        var c = t[r]
          , f = e ? e(c) : c;
        if (c = n || c !== 0 ? c : 0,
        o && f === f) {
            for (var d = s.length; d--; )
                if (s[d] === f)
                    continue e;
            e && s.push(f),
            l.push(c)
        } else
            a(s, f, n) || (s !== l && s.push(f),
            l.push(c))
    }
    return l
}
function aT(t) {
    return t && t.length ? zTe(t) : []
}
var JQ = Symbol("siderCollapsed")
  , eJ = Symbol("siderHookProvider")
  , Fy = "$$__vc-menu-more__key"
  , tJ = Symbol("KeyPathContext")
  , WD = function() {
    return vt(tJ, {
        parentEventKeys: j(function() {
            return []
        }),
        parentKeys: j(function() {
            return []
        }),
        parentInfo: {}
    })
}
  , HTe = function(e, n, r) {
    var a = WD()
      , i = a.parentEventKeys
      , o = a.parentKeys
      , l = j(function() {
        return [].concat($e(i.value), [e])
    })
      , s = j(function() {
        return [].concat($e(o.value), [n])
    });
    return It(tJ, {
        parentEventKeys: l,
        parentKeys: s,
        parentInfo: r
    }),
    s
}
  , nJ = Symbol("measure")
  , EF = de({
    compatConfig: {
        MODE: 3
    },
    setup: function(e, n) {
        var r = n.slots;
        return It(nJ, !0),
        function() {
            var a;
            return (a = r.default) === null || a === void 0 ? void 0 : a.call(r)
        }
    }
})
  , GD = function() {
    return vt(nJ, !1)
};
const jTe = HTe;
function rJ(t) {
    var e = ju()
      , n = e.mode
      , r = e.rtl
      , a = e.inlineIndent;
    return j(function() {
        return n.value !== "inline" ? null : r.value ? {
            paddingRight: "".concat(t.value * a.value, "px")
        } : {
            paddingLeft: "".concat(t.value * a.value, "px")
        }
    })
}
var WTe = 0
  , GTe = function() {
    return {
        id: String,
        role: String,
        disabled: Boolean,
        danger: Boolean,
        title: {
            type: [String, Boolean],
            default: void 0
        },
        icon: J.any,
        onMouseenter: Function,
        onMouseleave: Function,
        onClick: Function,
        onKeydown: Function,
        onFocus: Function
    }
};
const ns = de({
    compatConfig: {
        MODE: 3
    },
    name: "AMenuItem",
    inheritAttrs: !1,
    props: GTe(),
    slots: ["icon", "title"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = n.attrs
          , o = qn()
          , l = GD()
          , s = We(o.vnode.key) === "symbol" ? String(o.vnode.key) : o.vnode.key;
        sn(We(o.vnode.key) !== "symbol", "MenuItem", 'MenuItem `:key="'.concat(String(s), '"` not support Symbol type'));
        var u = "menu_item_".concat(++WTe, "_$$_").concat(s)
          , c = WD()
          , f = c.parentEventKeys
          , d = c.parentKeys
          , v = ju()
          , h = v.prefixCls
          , p = v.activeKeys
          , g = v.disabled
          , m = v.changeActiveKeys
          , y = v.rtl
          , b = v.inlineCollapsed
          , x = v.siderCollapsed
          , C = v.onItemClick
          , S = v.selectedKeys
          , w = v.registerMenuInfo
          , T = v.unRegisterMenuInfo
          , P = OTe()
          , M = Q(!1)
          , A = j(function() {
            return [].concat($e(d.value), [s])
        })
          , O = {
            eventKey: u,
            key: s,
            parentEventKeys: f,
            parentKeys: d,
            isLeaf: !0
        };
        w(u, O),
        Nt(function() {
            T(u)
        }),
        Te(p, function() {
            M.value = !!p.value.find(function(V) {
                return V === s
            })
        }, {
            immediate: !0
        });
        var k = j(function() {
            return g.value || e.disabled
        })
          , D = j(function() {
            return S.value.includes(s)
        })
          , E = j(function() {
            var V, U = "".concat(h.value, "-item");
            return V = {},
            z(V, "".concat(U), !0),
            z(V, "".concat(U, "-danger"), e.danger),
            z(V, "".concat(U, "-active"), M.value),
            z(V, "".concat(U, "-selected"), D.value),
            z(V, "".concat(U, "-disabled"), k.value),
            V
        })
          , L = function(U) {
            return {
                key: s,
                eventKey: u,
                keyPath: A.value,
                eventKeyPath: [].concat($e(f.value), [u]),
                domEvent: U,
                item: I(I({}, e), i)
            }
        }
          , N = function(U) {
            if (!k.value) {
                var X = L(U);
                a("click", U),
                C(X)
            }
        }
          , R = function(U) {
            k.value || (m(A.value),
            a("mouseenter", U))
        }
          , $ = function(U) {
            k.value || (m([]),
            a("mouseleave", U))
        }
          , W = function(U) {
            if (a("keydown", U),
            U.which === Ee.ENTER) {
                var X = L(U);
                a("click", U),
                C(X)
            }
        }
          , B = function(U) {
            m(A.value),
            a("focus", U)
        }
          , G = function(U, X) {
            var Y = _("span", {
                class: "".concat(h.value, "-title-content")
            }, [X]);
            return (!U || cr(X) && X.type === "span") && X && b.value && P && typeof X == "string" ? _("div", {
                class: "".concat(h.value, "-inline-collapsed-noicon")
            }, [X.charAt(0)]) : Y
        }
          , K = rJ(j(function() {
            return A.value.length
        }));
        return function() {
            var V, U, X, Y;
            if (l)
                return null;
            var te = (V = e.title) !== null && V !== void 0 ? V : (U = r.title) === null || U === void 0 ? void 0 : U.call(r)
              , ne = bn((X = r.default) === null || X === void 0 ? void 0 : X.call(r))
              , ie = ne.length
              , ae = te;
            typeof te == "undefined" ? ae = P && ie ? ne : "" : te === !1 && (ae = "");
            var q = {
                title: ae
            };
            !x.value && !b.value && (q.title = null,
            q.visible = !1);
            var F = {};
            e.role === "option" && (F["aria-selected"] = D.value);
            var H = Dn(r, e, "icon");
            return _(vo, I(I({}, q), {}, {
                placement: y.value ? "left" : "right",
                overlayClassName: "".concat(h.value, "-inline-collapsed-tooltip")
            }), {
                default: function() {
                    return [_(vv.Item, I(I(I({
                        component: "li"
                    }, i), {}, {
                        id: e.id,
                        style: I(I({}, i.style || {}), K.value),
                        class: [E.value, (Y = {},
                        z(Y, "".concat(i.class), !!i.class),
                        z(Y, "".concat(h.value, "-item-only-child"), (H ? ie + 1 : ie) === 1),
                        Y)],
                        role: e.role || "menuitem",
                        tabindex: e.disabled ? null : -1,
                        "data-menu-id": s,
                        "aria-disabled": e.disabled
                    }, F), {}, {
                        onMouseenter: R,
                        onMouseleave: $,
                        onClick: N,
                        onKeydown: W,
                        onFocus: B,
                        title: typeof te == "string" ? te : void 0
                    }), {
                        default: function() {
                            return [Qt(H, {
                                class: "".concat(h.value, "-item-icon")
                            }, !1), G(H, ne)]
                        }
                    })]
                }
            })
        }
    }
});
var nu = {
    adjustX: 1,
    adjustY: 1
}
  , KTe = {
    topLeft: {
        points: ["bl", "tl"],
        overflow: nu,
        offset: [0, -7]
    },
    bottomLeft: {
        points: ["tl", "bl"],
        overflow: nu,
        offset: [0, 7]
    },
    leftTop: {
        points: ["tr", "tl"],
        overflow: nu,
        offset: [-4, 0]
    },
    rightTop: {
        points: ["tl", "tr"],
        overflow: nu,
        offset: [4, 0]
    }
}
  , UTe = {
    topLeft: {
        points: ["bl", "tl"],
        overflow: nu,
        offset: [0, -7]
    },
    bottomLeft: {
        points: ["tl", "bl"],
        overflow: nu,
        offset: [0, 7]
    },
    rightTop: {
        points: ["tr", "tl"],
        overflow: nu,
        offset: [-4, 0]
    },
    leftTop: {
        points: ["tl", "tr"],
        overflow: nu,
        offset: [4, 0]
    }
}
  , YTe = {
    horizontal: "bottomLeft",
    vertical: "rightTop",
    "vertical-left": "rightTop",
    "vertical-right": "leftTop"
};
const LF = de({
    compatConfig: {
        MODE: 3
    },
    name: "PopupTrigger",
    inheritAttrs: !1,
    props: {
        prefixCls: String,
        mode: String,
        visible: Boolean,
        popupClassName: String,
        popupOffset: Array,
        disabled: Boolean,
        onVisibleChange: Function
    },
    slots: ["popup"],
    emits: ["visibleChange"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = Q(!1)
          , o = ju()
          , l = o.getPopupContainer
          , s = o.rtl
          , u = o.subMenuOpenDelay
          , c = o.subMenuCloseDelay
          , f = o.builtinPlacements
          , d = o.triggerSubMenuAction
          , v = o.isRootMenu
          , h = o.forceSubMenuRender
          , p = o.motion
          , g = o.defaultMotions
          , m = qQ()
          , y = j(function() {
            return s.value ? I(I({}, UTe), f.value) : I(I({}, KTe), f.value)
        })
          , b = j(function() {
            return YTe[e.mode]
        })
          , x = Q();
        Te(function() {
            return e.visible
        }, function(w) {
            gt.cancel(x.value),
            x.value = gt(function() {
                i.value = w
            })
        }, {
            immediate: !0
        }),
        Nt(function() {
            gt.cancel(x.value)
        });
        var C = function(T) {
            a("visibleChange", T)
        }
          , S = j(function() {
            var w, T, P = p.value || ((w = g.value) === null || w === void 0 ? void 0 : w[e.mode]) || ((T = g.value) === null || T === void 0 ? void 0 : T.other), M = typeof P == "function" ? P() : P;
            return M ? zu(M.name, {
                css: !0
            }) : void 0
        });
        return function() {
            var w = e.prefixCls
              , T = e.popupClassName
              , P = e.mode
              , M = e.popupOffset
              , A = e.disabled;
            return _(gh, {
                prefixCls: w,
                popupClassName: he("".concat(w, "-popup"), z({}, "".concat(w, "-rtl"), s.value), T),
                stretch: P === "horizontal" ? "minWidth" : null,
                getPopupContainer: v.value ? l.value : function(O) {
                    return O.parentNode
                }
                ,
                builtinPlacements: y.value,
                popupPlacement: b.value,
                popupVisible: i.value,
                popupAlign: M && {
                    offset: M
                },
                action: A ? [] : [d.value],
                mouseEnterDelay: u.value,
                mouseLeaveDelay: c.value,
                onPopupVisibleChange: C,
                forceRender: m || h.value,
                popupAnimation: S.value
            }, {
                popup: r.popup,
                default: r.default
            })
        }
    }
});
var aJ = function(e, n) {
    var r, a = n.slots, i = n.attrs, o = ju(), l = o.prefixCls, s = o.mode;
    return _("ul", I(I({}, i), {}, {
        class: he(l.value, "".concat(l.value, "-sub"), "".concat(l.value, "-").concat(s.value === "inline" ? "inline" : "vertical")),
        "data-menu-list": !0
    }), [(r = a.default) === null || r === void 0 ? void 0 : r.call(a)])
};
aJ.displayName = "SubMenuList";
const iJ = aJ
  , qTe = de({
    compatConfig: {
        MODE: 3
    },
    name: "InlineSubMenuList",
    inheritAttrs: !1,
    props: {
        id: String,
        open: Boolean,
        keyPath: Array
    },
    setup: function(e, n) {
        var r = n.slots
          , a = j(function() {
            return "inline"
        })
          , i = ju()
          , o = i.motion
          , l = i.mode
          , s = i.defaultMotions
          , u = j(function() {
            return l.value === a.value
        })
          , c = Q(!u.value)
          , f = j(function() {
            return u.value ? e.open : !1
        });
        Te(l, function() {
            u.value && (c.value = !1)
        }, {
            flush: "post"
        });
        var d = j(function() {
            var v, h, p = o.value || ((v = s.value) === null || v === void 0 ? void 0 : v[a.value]) || ((h = s.value) === null || h === void 0 ? void 0 : h.other), g = typeof p == "function" ? p() : p;
            return I(I({}, g), {}, {
                appear: e.keyPath.length <= 1
            })
        });
        return function() {
            var v;
            return c.value ? null : _(jx, {
                mode: a.value
            }, {
                default: function() {
                    return [_(dh, d.value, {
                        default: function() {
                            return [Fr(_(iJ, {
                                id: e.id
                            }, {
                                default: function() {
                                    return [(v = r.default) === null || v === void 0 ? void 0 : v.call(r)]
                                }
                            }), [[Io, f.value]])]
                        }
                    })]
                }
            })
        }
    }
});
var RF = 0
  , XTe = function() {
    return {
        icon: J.any,
        title: J.any,
        disabled: Boolean,
        level: Number,
        popupClassName: String,
        popupOffset: Array,
        internalPopupClose: Boolean,
        eventKey: String,
        expandIcon: Function,
        onMouseenter: Function,
        onMouseleave: Function,
        onTitleClick: Function
    }
};
const Bv = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASubMenu",
    inheritAttrs: !1,
    props: XTe(),
    slots: ["icon", "title", "expandIcon"],
    setup: function(e, n) {
        var r, a, i = n.slots, o = n.attrs, l = n.emit;
        ZQ(!1);
        var s = GD()
          , u = qn()
          , c = We(u.vnode.key) === "symbol" ? String(u.vnode.key) : u.vnode.key;
        sn(We(u.vnode.key) !== "symbol", "SubMenu", 'SubMenu `:key="'.concat(String(c), '"` not support Symbol type'));
        var f = iM(c) ? c : "sub_menu_".concat(++RF, "_$$_not_set_key")
          , d = (r = e.eventKey) !== null && r !== void 0 ? r : iM(c) ? "sub_menu_".concat(++RF, "_$$_").concat(c) : f
          , v = WD()
          , h = v.parentEventKeys
          , p = v.parentInfo
          , g = v.parentKeys
          , m = j(function() {
            return [].concat($e(g.value), [f])
        })
          , y = Q([])
          , b = {
            eventKey: d,
            key: f,
            parentEventKeys: h,
            childrenEventKeys: y,
            parentKeys: g
        };
        (a = p.childrenEventKeys) === null || a === void 0 || a.value.push(d),
        Nt(function() {
            if (p.childrenEventKeys) {
                var oe;
                p.childrenEventKeys.value = (oe = p.childrenEventKeys) === null || oe === void 0 ? void 0 : oe.value.filter(function(se) {
                    return se != d
                })
            }
        }),
        jTe(d, f, b);
        var x = ju()
          , C = x.prefixCls
          , S = x.activeKeys
          , w = x.disabled
          , T = x.changeActiveKeys
          , P = x.mode
          , M = x.inlineCollapsed
          , A = x.antdMenuTheme
          , O = x.openKeys
          , k = x.overflowDisabled
          , D = x.onOpenChange
          , E = x.registerMenuInfo
          , L = x.unRegisterMenuInfo
          , N = x.selectedSubMenuKeys
          , R = x.expandIcon
          , $ = c != null
          , W = !s && (qQ() || !$);
        kTe(W),
        (s && $ || !s && !$ || W) && (E(d, b),
        Nt(function() {
            L(d)
        }));
        var B = j(function() {
            return "".concat(C.value, "-submenu")
        })
          , G = j(function() {
            return w.value || e.disabled
        })
          , K = Q()
          , V = Q()
          , U = j(function() {
            return O.value.includes(f)
        })
          , X = j(function() {
            return !k.value && U.value
        })
          , Y = j(function() {
            return N.value.includes(f)
        })
          , te = Q(!1);
        Te(S, function() {
            te.value = !!S.value.find(function(oe) {
                return oe === f
            })
        }, {
            immediate: !0
        });
        var ne = function(se) {
            G.value || (l("titleClick", se, f),
            P.value === "inline" && D(f, !U.value))
        }
          , ie = function(se) {
            G.value || (T(m.value),
            l("mouseenter", se))
        }
          , ae = function(se) {
            G.value || (T([]),
            l("mouseleave", se))
        }
          , q = rJ(j(function() {
            return m.value.length
        }))
          , F = function(se) {
            P.value !== "inline" && D(f, se)
        }
          , H = function() {
            T(m.value)
        }
          , ee = d && "".concat(d, "-popup")
          , re = j(function() {
            return he(C.value, "".concat(C.value, "-").concat(A.value), e.popupClassName)
        })
          , ue = function(se, xe) {
            if (!xe)
                return M.value && !g.value.length && se && typeof se == "string" ? _("div", {
                    class: "".concat(C.value, "-inline-collapsed-noicon")
                }, [se.charAt(0)]) : _("span", {
                    class: "".concat(C.value, "-title-content")
                }, [se]);
            var Pe = cr(se) && se.type === "span";
            return _(xt, null, [Qt(xe, {
                class: "".concat(C.value, "-item-icon")
            }, !1), Pe ? se : _("span", {
                class: "".concat(C.value, "-title-content")
            }, [se])])
        }
          , ve = j(function() {
            return P.value !== "inline" && m.value.length > 1 ? "vertical" : P.value
        })
          , fe = j(function() {
            return P.value === "horizontal" ? "vertical" : P.value
        })
          , ce = j(function() {
            return ve.value === "horizontal" ? "vertical" : ve.value
        })
          , le = function() {
            var se = B.value
              , xe = Dn(i, e, "icon")
              , Pe = e.expandIcon || i.expandIcon || R.value
              , Fe = ue(Dn(i, e, "title"), xe);
            return _("div", {
                style: q.value,
                class: "".concat(se, "-title"),
                tabindex: G.value ? null : -1,
                ref: K,
                title: typeof Fe == "string" ? Fe : null,
                "data-menu-id": f,
                "aria-expanded": X.value,
                "aria-haspopup": !0,
                "aria-controls": ee,
                "aria-disabled": G.value,
                onClick: ne,
                onFocus: H
            }, [Fe, P.value !== "horizontal" && Pe ? Pe(I(I({}, e), {}, {
                isOpen: X.value
            })) : _("i", {
                class: "".concat(se, "-arrow")
            }, null)])
        };
        return function() {
            var oe;
            if (s) {
                var se;
                return $ ? (se = i.default) === null || se === void 0 ? void 0 : se.call(i) : null
            }
            var xe = B.value
              , Pe = function() {
                return null
            };
            return !k.value && P.value !== "inline" ? Pe = function() {
                return _(LF, {
                    mode: ve.value,
                    prefixCls: xe,
                    visible: !e.internalPopupClose && X.value,
                    popupClassName: re.value,
                    popupOffset: e.popupOffset,
                    disabled: G.value,
                    onVisibleChange: F
                }, {
                    default: function() {
                        return [le()]
                    },
                    popup: function() {
                        return _(jx, {
                            mode: ce.value,
                            isRootMenu: !1
                        }, {
                            default: function() {
                                return [_(iJ, {
                                    id: ee,
                                    ref: V
                                }, {
                                    default: i.default
                                })]
                            }
                        })
                    }
                })
            }
            : Pe = function() {
                return _(LF, null, {
                    default: le
                })
            }
            ,
            _(jx, {
                mode: fe.value
            }, {
                default: function() {
                    return [_(vv.Item, I(I({
                        component: "li"
                    }, o), {}, {
                        role: "none",
                        class: he(xe, "".concat(xe, "-").concat(P.value), o.class, (oe = {},
                        z(oe, "".concat(xe, "-open"), X.value),
                        z(oe, "".concat(xe, "-active"), te.value),
                        z(oe, "".concat(xe, "-selected"), Y.value),
                        z(oe, "".concat(xe, "-disabled"), G.value),
                        oe)),
                        onMouseenter: ie,
                        onMouseleave: ae,
                        "data-submenu-id": f
                    }), {
                        default: function() {
                            return _(xt, null, [Pe(), !k.value && _(qTe, {
                                id: ee,
                                open: X.value,
                                keyPath: m.value
                            }, {
                                default: i.default
                            })])
                        }
                    })]
                }
            })
        }
    }
});
function oJ(t, e) {
    if (t.classList)
        return t.classList.contains(e);
    var n = t.className;
    return " ".concat(n, " ").indexOf(" ".concat(e, " ")) > -1
}
function NF(t, e) {
    t.classList ? t.classList.add(e) : oJ(t, e) || (t.className = "".concat(t.className, " ").concat(e))
}
function $F(t, e) {
    if (t.classList)
        t.classList.remove(e);
    else if (oJ(t, e)) {
        var n = t.className;
        t.className = " ".concat(n, " ").replace(" ".concat(e, " "), " ")
    }
}
var ZTe = function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "ant-motion-collapse"
      , n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
    return {
        name: e,
        appear: n,
        css: !0,
        onBeforeEnter: function(a) {
            a.style.height = "0px",
            a.style.opacity = "0",
            NF(a, e)
        },
        onEnter: function(a) {
            yt(function() {
                a.style.height = "".concat(a.scrollHeight, "px"),
                a.style.opacity = "1"
            })
        },
        onAfterEnter: function(a) {
            a && ($F(a, e),
            a.style.height = null,
            a.style.opacity = null)
        },
        onBeforeLeave: function(a) {
            NF(a, e),
            a.style.height = "".concat(a.offsetHeight, "px"),
            a.style.opacity = null
        },
        onLeave: function(a) {
            setTimeout(function() {
                a.style.height = "0px",
                a.style.opacity = "0"
            })
        },
        onAfterLeave: function(a) {
            a && ($F(a, e),
            a.style && (a.style.height = null,
            a.style.opacity = null))
        }
    }
};
const wm = ZTe;
var QTe = function() {
    return {
        id: String,
        prefixCls: String,
        disabled: Boolean,
        inlineCollapsed: Boolean,
        disabledOverflow: Boolean,
        forceSubMenuRender: Boolean,
        openKeys: Array,
        selectedKeys: Array,
        activeKey: String,
        selectable: {
            type: Boolean,
            default: !0
        },
        multiple: {
            type: Boolean,
            default: !1
        },
        motion: Object,
        theme: {
            type: String,
            default: "light"
        },
        mode: {
            type: String,
            default: "vertical"
        },
        inlineIndent: {
            type: Number,
            default: 24
        },
        subMenuOpenDelay: {
            type: Number,
            default: .1
        },
        subMenuCloseDelay: {
            type: Number,
            default: .1
        },
        builtinPlacements: {
            type: Object
        },
        triggerSubMenuAction: {
            type: String,
            default: "hover"
        },
        getPopupContainer: Function,
        expandIcon: Function,
        onOpenChange: Function,
        onSelect: Function,
        onDeselect: Function,
        onClick: [Function, Array],
        onFocus: Function,
        onBlur: Function,
        onMousedown: Function,
        "onUpdate:openKeys": Function,
        "onUpdate:selectedKeys": Function,
        "onUpdate:activeKey": Function
    }
}
  , FF = [];
const Xn = de({
    compatConfig: {
        MODE: 3
    },
    name: "AMenu",
    inheritAttrs: !1,
    props: QTe(),
    slots: ["expandIcon", "overflowedIndicator"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = n.attrs
          , o = je("menu", e)
          , l = o.prefixCls
          , s = o.direction
          , u = o.getPrefixCls
          , c = Q({})
          , f = vt(JQ, Q(void 0))
          , d = j(function() {
            return f.value !== void 0 ? f.value : e.inlineCollapsed
        })
          , v = Q(!1);
        ct(function() {
            v.value = !0
        }),
        pt(function() {
            sn(!(e.inlineCollapsed === !0 && e.mode !== "inline"), "Menu", "`inlineCollapsed` should only be used when `mode` is inline."),
            sn(!(f.value !== void 0 && e.inlineCollapsed === !0), "Menu", "`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")
        });
        var h = Q([])
          , p = Q([])
          , g = Q({});
        Te(c, function() {
            for (var V = {}, U = 0, X = Object.values(c.value); U < X.length; U++) {
                var Y = X[U];
                V[Y.key] = Y
            }
            g.value = V
        }, {
            flush: "post"
        }),
        pt(function() {
            if (e.activeKey !== void 0) {
                var V = []
                  , U = e.activeKey ? g.value[e.activeKey] : void 0;
                U && e.activeKey !== void 0 ? V = aT([].concat(Pn(U.parentKeys), e.activeKey)) : V = [],
                jd(h.value, V) || (h.value = V)
            }
        }),
        Te(function() {
            return e.selectedKeys
        }, function(V) {
            V && (p.value = V.slice())
        }, {
            immediate: !0,
            deep: !0
        });
        var m = Q([]);
        Te([g, p], function() {
            var V = [];
            p.value.forEach(function(U) {
                var X = g.value[U];
                X && (V = V.concat(Pn(X.parentKeys)))
            }),
            V = aT(V),
            jd(m.value, V) || (m.value = V)
        }, {
            immediate: !0
        });
        var y = function(U) {
            if (!!e.selectable) {
                var X = U.key, Y = p.value.includes(X), te;
                e.multiple ? Y ? te = p.value.filter(function(ie) {
                    return ie !== X
                }) : te = [].concat($e(p.value), [X]) : te = [X];
                var ne = I(I({}, U), {}, {
                    selectedKeys: te
                });
                jd(te, p.value) || (e.selectedKeys === void 0 && (p.value = te),
                a("update:selectedKeys", te),
                Y && e.multiple ? a("deselect", ne) : a("select", ne)),
                T.value !== "inline" && !e.multiple && b.value.length && A(FF)
            }
        }
          , b = Q([]);
        Te(function() {
            return e.openKeys
        }, function() {
            var V = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : b.value;
            jd(b.value, V) || (b.value = V.slice())
        }, {
            immediate: !0,
            deep: !0
        });
        var x, C = function(U) {
            clearTimeout(x),
            x = setTimeout(function() {
                e.activeKey === void 0 && (h.value = U),
                a("update:activeKey", U[U.length - 1])
            })
        }, S = j(function() {
            return !!e.disabled
        }), w = j(function() {
            return s.value === "rtl"
        }), T = Q("vertical"), P = Q(!1);
        pt(function() {
            (e.mode === "inline" || e.mode === "vertical") && d.value ? (T.value = "vertical",
            P.value = d.value) : (T.value = e.mode,
            P.value = !1)
        });
        var M = j(function() {
            return T.value === "inline"
        })
          , A = function(U) {
            b.value = U,
            a("update:openKeys", U),
            a("openChange", U)
        }
          , O = Q(b.value)
          , k = Q(!1);
        Te(b, function() {
            M.value && (O.value = b.value)
        }, {
            immediate: !0
        }),
        Te(M, function() {
            if (!k.value) {
                k.value = !0;
                return
            }
            M.value ? b.value = O.value : A(FF)
        }, {
            immediate: !0
        });
        var D = j(function() {
            var V;
            return V = {},
            z(V, "".concat(l.value), !0),
            z(V, "".concat(l.value, "-root"), !0),
            z(V, "".concat(l.value, "-").concat(T.value), !0),
            z(V, "".concat(l.value, "-inline-collapsed"), P.value),
            z(V, "".concat(l.value, "-rtl"), w.value),
            z(V, "".concat(l.value, "-").concat(e.theme), !0),
            V
        })
          , E = j(function() {
            return u()
        })
          , L = j(function() {
            return {
                horizontal: {
                    name: "".concat(E.value, "-slide-up")
                },
                inline: wm,
                other: {
                    name: "".concat(E.value, "-zoom-big")
                }
            }
        });
        ZQ(!0);
        var N = function V() {
            var U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []
              , X = []
              , Y = c.value;
            return U.forEach(function(te) {
                var ne = Y[te]
                  , ie = ne.key
                  , ae = ne.childrenEventKeys;
                X.push.apply(X, [ie].concat($e(V(Pn(ae)))))
            }),
            X
        }
          , R = function(U) {
            a("click", U),
            y(U)
        }
          , $ = function(U, X) {
            var Y, te = ((Y = g.value[U]) === null || Y === void 0 ? void 0 : Y.childrenEventKeys) || [], ne = b.value.filter(function(ae) {
                return ae !== U
            });
            if (X)
                ne.push(U);
            else if (T.value !== "inline") {
                var ie = N(Pn(te));
                ne = aT(ne.filter(function(ae) {
                    return !ie.includes(ae)
                }))
            }
            jd(b, ne) || A(ne)
        }
          , W = function(U, X) {
            c.value = I(I({}, c.value), {}, z({}, U, X))
        }
          , B = function(U) {
            delete c.value[U],
            c.value = I({}, c.value)
        }
          , G = Q(0)
          , K = j(function() {
            return e.expandIcon || r.expandIcon ? function(V) {
                var U = e.expandIcon || r.expandIcon;
                return U = typeof U == "function" ? U(V) : U,
                Qt(U, {
                    class: "".concat(l.value, "-submenu-expand-icon")
                }, !1)
            }
            : null
        });
        return DTe({
            store: c,
            prefixCls: l,
            activeKeys: h,
            openKeys: b,
            selectedKeys: p,
            changeActiveKeys: C,
            disabled: S,
            rtl: w,
            mode: T,
            inlineIndent: j(function() {
                return e.inlineIndent
            }),
            subMenuCloseDelay: j(function() {
                return e.subMenuCloseDelay
            }),
            subMenuOpenDelay: j(function() {
                return e.subMenuOpenDelay
            }),
            builtinPlacements: j(function() {
                return e.builtinPlacements
            }),
            triggerSubMenuAction: j(function() {
                return e.triggerSubMenuAction
            }),
            getPopupContainer: j(function() {
                return e.getPopupContainer
            }),
            inlineCollapsed: P,
            antdMenuTheme: j(function() {
                return e.theme
            }),
            siderCollapsed: f,
            defaultMotions: j(function() {
                return v.value ? L.value : null
            }),
            motion: j(function() {
                return v.value ? e.motion : null
            }),
            overflowDisabled: Q(void 0),
            onOpenChange: $,
            onItemClick: R,
            registerMenuInfo: W,
            unRegisterMenuInfo: B,
            selectedSubMenuKeys: m,
            isRootMenu: Q(!0),
            expandIcon: K,
            forceSubMenuRender: j(function() {
                return e.forceSubMenuRender
            })
        }),
        function() {
            var V, U, X = bn((V = r.default) === null || V === void 0 ? void 0 : V.call(r)), Y = G.value >= X.length - 1 || T.value !== "horizontal" || e.disabledOverflow, te = T.value !== "horizontal" || e.disabledOverflow ? X : X.map(function(ie, ae) {
                return _(jx, {
                    key: ie.key,
                    overflowDisabled: ae > G.value
                }, {
                    default: function() {
                        return ie
                    }
                })
            }), ne = ((U = r.overflowedIndicator) === null || U === void 0 ? void 0 : U.call(r)) || _(VD, null, null);
            return _(vv, I(I({}, i), {}, {
                onMousedown: e.onMousedown,
                prefixCls: "".concat(l.value, "-overflow"),
                component: "ul",
                itemComponent: ns,
                class: [D.value, i.class],
                role: "menu",
                id: e.id,
                data: te,
                renderRawItem: function(ae) {
                    return ae
                },
                renderRawRest: function(ae) {
                    var q = ae.length
                      , F = q ? X.slice(-q) : null;
                    return _(xt, null, [_(Bv, {
                        eventKey: Fy,
                        key: Fy,
                        title: ne,
                        disabled: Y,
                        internalPopupClose: q === 0
                    }, {
                        default: function() {
                            return F
                        }
                    }), _(EF, null, {
                        default: function() {
                            return [_(Bv, {
                                eventKey: Fy,
                                key: Fy,
                                title: ne,
                                disabled: Y,
                                internalPopupClose: q === 0
                            }, {
                                default: function() {
                                    return F
                                }
                            })]
                        }
                    })])
                },
                maxCount: T.value !== "horizontal" || e.disabledOverflow ? vv.INVALIDATE : vv.RESPONSIVE,
                ssr: "full",
                "data-menu-list": !0,
                onVisibleChange: function(ae) {
                    G.value = ae
                }
            }), {
                default: function() {
                    return [_(sO, {
                        to: "body"
                    }, {
                        default: function() {
                            return [_("div", {
                                style: {
                                    display: "none"
                                },
                                "aria-hidden": !0
                            }, [_(EF, null, {
                                default: function() {
                                    return [te]
                                }
                            })])]
                        }
                    })]
                }
            })
        }
    }
});
var JTe = function() {
    return {
        title: J.any
    }
};
const Wx = de({
    compatConfig: {
        MODE: 3
    },
    name: "AMenuItemGroup",
    inheritAttrs: !1,
    props: JTe(),
    slots: ["title"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = ju()
          , o = i.prefixCls
          , l = j(function() {
            return "".concat(o.value, "-item-group")
        })
          , s = GD();
        return function() {
            var u, c;
            return s ? (u = r.default) === null || u === void 0 ? void 0 : u.call(r) : _("li", I(I({}, a), {}, {
                onClick: function(d) {
                    return d.stopPropagation()
                },
                class: l.value
            }), [_("div", {
                title: typeof e.title == "string" ? e.title : void 0,
                class: "".concat(l.value, "-title")
            }, [Dn(r, e, "title")]), _("ul", {
                class: "".concat(l.value, "-list")
            }, [(c = r.default) === null || c === void 0 ? void 0 : c.call(r)])])
        }
    }
});
var ePe = function() {
    return {
        prefixCls: String,
        dashed: Boolean
    }
};
const Gx = de({
    compatConfig: {
        MODE: 3
    },
    name: "AMenuDivider",
    props: ePe(),
    setup: function(e) {
        var n = je("menu", e)
          , r = n.prefixCls
          , a = j(function() {
            var i;
            return i = {},
            z(i, "".concat(r.value, "-item-divider"), !0),
            z(i, "".concat(r.value, "-item-divider-dashed"), !!e.dashed),
            i
        });
        return function() {
            return _("li", {
                class: a.value
            }, null)
        }
    }
});
Xn.install = function(t) {
    return t.component(Xn.name, Xn),
    t.component(ns.name, ns),
    t.component(Bv.name, Bv),
    t.component(Gx.name, Gx),
    t.component(Wx.name, Wx),
    t
}
;
Xn.Item = ns;
Xn.Divider = Gx;
Xn.SubMenu = Bv;
Xn.ItemGroup = Wx;
var tPe = function() {
    return {
        prefixCls: String,
        routes: {
            type: Array
        },
        params: J.any,
        separator: J.any,
        itemRender: {
            type: Function
        }
    }
};
function nPe(t, e) {
    if (!t.breadcrumbName)
        return null;
    var n = Object.keys(e).join("|")
      , r = t.breadcrumbName.replace(new RegExp(":(".concat(n, ")"),"g"), function(a, i) {
        return e[i] || a
    });
    return r
}
function BF(t) {
    var e = t.route
      , n = t.params
      , r = t.routes
      , a = t.paths
      , i = r.indexOf(e) === r.length - 1
      , o = nPe(e, n);
    return i ? _("span", null, [o]) : _("a", {
        href: "#/".concat(a.join("/"))
    }, [o])
}
const hf = de({
    compatConfig: {
        MODE: 3
    },
    name: "ABreadcrumb",
    props: tPe(),
    slots: ["separator", "itemRender"],
    setup: function(e, n) {
        var r = n.slots
          , a = je("breadcrumb", e)
          , i = a.prefixCls
          , o = a.direction
          , l = function(f, d) {
            return f = (f || "").replace(/^\//, ""),
            Object.keys(d).forEach(function(v) {
                f = f.replace(":".concat(v), d[v])
            }),
            f
        }
          , s = function(f, d, v) {
            var h = $e(f)
              , p = l(d || "", v);
            return p && h.push(p),
            h
        }
          , u = function(f) {
            var d = f.routes
              , v = d === void 0 ? [] : d
              , h = f.params
              , p = h === void 0 ? {} : h
              , g = f.separator
              , m = f.itemRender
              , y = m === void 0 ? BF : m
              , b = [];
            return v.map(function(x) {
                var C = l(x.path, p);
                C && b.push(C);
                var S = [].concat(b)
                  , w = null;
                return x.children && x.children.length && (w = _(Xn, null, {
                    default: function() {
                        return [x.children.map(function(P) {
                            return _(Xn.Item, {
                                key: P.path || P.breadcrumbName
                            }, {
                                default: function() {
                                    return [y({
                                        route: P,
                                        params: p,
                                        routes: v,
                                        paths: s(S, P.path, p)
                                    })]
                                }
                            })
                        })]
                    }
                })),
                _(m0, {
                    overlay: w,
                    separator: g,
                    key: C || x.breadcrumbName
                }, {
                    default: function() {
                        return [y({
                            route: x,
                            params: p,
                            routes: v,
                            paths: S
                        })]
                    }
                })
            })
        };
        return function() {
            var c, f, d, v = e.routes, h = e.params, p = h === void 0 ? {} : h, g = bn(Dn(r, e)), m = (c = Dn(r, e, "separator")) !== null && c !== void 0 ? c : "/", y = e.itemRender || r.itemRender || BF;
            v && v.length > 0 ? d = u({
                routes: v,
                params: p,
                separator: m,
                itemRender: y
            }) : g.length && (d = g.map(function(x, C) {
                return ur(We(x.type) === "object" && (x.type.__ANT_BREADCRUMB_ITEM || x.type.__ANT_BREADCRUMB_SEPARATOR), "Breadcrumb", "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),
                Zr(x, {
                    separator: m,
                    key: C
                })
            }));
            var b = (f = {},
            z(f, i.value, !0),
            z(f, "".concat(i.value, "-rtl"), o.value === "rtl"),
            f);
            return _("div", {
                class: b
            }, [d])
        }
    }
});
var rPe = ["separator", "class"]
  , aPe = function() {
    return {
        prefixCls: String
    }
};
const Kx = de({
    compatConfig: {
        MODE: 3
    },
    name: "ABreadcrumbSeparator",
    __ANT_BREADCRUMB_SEPARATOR: !0,
    inheritAttrs: !1,
    props: aPe(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = je("breadcrumb", e)
          , o = i.prefixCls;
        return function() {
            var l;
            a.separator;
            var s = a.class
              , u = tt(a, rPe)
              , c = bn((l = r.default) === null || l === void 0 ? void 0 : l.call(r));
            return _("span", I({
                class: ["".concat(o.value, "-separator"), s]
            }, u), [c.length > 0 ? c : "/"])
        }
    }
});
hf.Item = m0;
hf.Separator = Kx;
hf.install = function(t) {
    return t.component(hf.name, hf),
    t.component(m0.name, m0),
    t.component(Kx.name, Kx),
    t
}
;
function lJ(t, e) {
    var n = typeof Symbol != "undefined" && t[Symbol.iterator] || t["@@iterator"];
    if (!n) {
        if (Array.isArray(t) || (n = VC(t)) || e && t && typeof t.length == "number") {
            n && (t = n);
            var r = 0
              , a = function() {};
            return {
                s: a,
                n: function() {
                    return r >= t.length ? {
                        done: !0
                    } : {
                        done: !1,
                        value: t[r++]
                    }
                },
                e: function(u) {
                    throw u
                },
                f: a
            }
        }
        throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
    }
    var i = !0, o = !1, l;
    return {
        s: function() {
            n = n.call(t)
        },
        n: function() {
            var u = n.next();
            return i = u.done,
            u
        },
        e: function(u) {
            o = !0,
            l = u
        },
        f: function() {
            try {
                !i && n.return != null && n.return()
            } finally {
                if (o)
                    throw l
            }
        }
    }
}
var Mr = xX()
  , sJ = {
    exports: {}
};
(function(t, e) {
    (function(n, r) {
        t.exports = r()
    }
    )(Ht, function() {
        return function(n, r) {
            r.prototype.weekday = function(a) {
                var i = this.$locale().weekStart || 0
                  , o = this.$W
                  , l = (o < i ? o + 7 : o) - i;
                return this.$utils().u(a) ? l : this.subtract(l, "day").add(a, "day")
            }
        }
    })
}
)(sJ);
const iPe = sJ.exports;
var uJ = {
    exports: {}
};
(function(t, e) {
    (function(n, r) {
        t.exports = r()
    }
    )(Ht, function() {
        return function(n, r, a) {
            var i = r.prototype
              , o = function(f) {
                return f && (f.indexOf ? f : f.s)
            }
              , l = function(f, d, v, h, p) {
                var g = f.name ? f : f.$locale()
                  , m = o(g[d])
                  , y = o(g[v])
                  , b = m || y.map(function(C) {
                    return C.slice(0, h)
                });
                if (!p)
                    return b;
                var x = g.weekStart;
                return b.map(function(C, S) {
                    return b[(S + (x || 0)) % 7]
                })
            }
              , s = function() {
                return a.Ls[a.locale()]
            }
              , u = function(f, d) {
                return f.formats[d] || function(v) {
                    return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(h, p, g) {
                        return p || g.slice(1)
                    })
                }(f.formats[d.toUpperCase()])
            }
              , c = function() {
                var f = this;
                return {
                    months: function(d) {
                        return d ? d.format("MMMM") : l(f, "months")
                    },
                    monthsShort: function(d) {
                        return d ? d.format("MMM") : l(f, "monthsShort", "months", 3)
                    },
                    firstDayOfWeek: function() {
                        return f.$locale().weekStart || 0
                    },
                    weekdays: function(d) {
                        return d ? d.format("dddd") : l(f, "weekdays")
                    },
                    weekdaysMin: function(d) {
                        return d ? d.format("dd") : l(f, "weekdaysMin", "weekdays", 2)
                    },
                    weekdaysShort: function(d) {
                        return d ? d.format("ddd") : l(f, "weekdaysShort", "weekdays", 3)
                    },
                    longDateFormat: function(d) {
                        return u(f.$locale(), d)
                    },
                    meridiem: this.$locale().meridiem,
                    ordinal: this.$locale().ordinal
                }
            };
            i.localeData = function() {
                return c.bind(this)()
            }
            ,
            a.localeData = function() {
                var f = s();
                return {
                    firstDayOfWeek: function() {
                        return f.weekStart || 0
                    },
                    weekdays: function() {
                        return a.weekdays()
                    },
                    weekdaysShort: function() {
                        return a.weekdaysShort()
                    },
                    weekdaysMin: function() {
                        return a.weekdaysMin()
                    },
                    months: function() {
                        return a.months()
                    },
                    monthsShort: function() {
                        return a.monthsShort()
                    },
                    longDateFormat: function(d) {
                        return u(f, d)
                    },
                    meridiem: f.meridiem,
                    ordinal: f.ordinal
                }
            }
            ,
            a.months = function() {
                return l(s(), "months")
            }
            ,
            a.monthsShort = function() {
                return l(s(), "monthsShort", "months", 3)
            }
            ,
            a.weekdays = function(f) {
                return l(s(), "weekdays", null, null, f)
            }
            ,
            a.weekdaysShort = function(f) {
                return l(s(), "weekdaysShort", "weekdays", 3, f)
            }
            ,
            a.weekdaysMin = function(f) {
                return l(s(), "weekdaysMin", "weekdays", 2, f)
            }
        }
    })
}
)(uJ);
const oPe = uJ.exports;
var cJ = {
    exports: {}
};
(function(t, e) {
    (function(n, r) {
        t.exports = r()
    }
    )(Ht, function() {
        var n = "week"
          , r = "year";
        return function(a, i, o) {
            var l = i.prototype;
            l.week = function(s) {
                if (s === void 0 && (s = null),
                s !== null)
                    return this.add(7 * (s - this.week()), "day");
                var u = this.$locale().yearStart || 1;
                if (this.month() === 11 && this.date() > 25) {
                    var c = o(this).startOf(r).add(1, r).date(u)
                      , f = o(this).endOf(n);
                    if (c.isBefore(f))
                        return 1
                }
                var d = o(this).startOf(r).date(u).startOf(n).subtract(1, "millisecond")
                  , v = this.diff(d, n, !0);
                return v < 0 ? o(this).startOf("week").week() : Math.ceil(v)
            }
            ,
            l.weeks = function(s) {
                return s === void 0 && (s = null),
                this.week(s)
            }
        }
    })
}
)(cJ);
const lPe = cJ.exports;
var fJ = {
    exports: {}
};
(function(t, e) {
    (function(n, r) {
        t.exports = r()
    }
    )(Ht, function() {
        return function(n, r) {
            r.prototype.weekYear = function() {
                var a = this.month()
                  , i = this.week()
                  , o = this.year();
                return i === 1 && a === 11 ? o + 1 : a === 0 && i >= 52 ? o - 1 : o
            }
        }
    })
}
)(fJ);
const sPe = fJ.exports;
var dJ = {
    exports: {}
};
(function(t, e) {
    (function(n, r) {
        t.exports = r()
    }
    )(Ht, function() {
        var n = "month"
          , r = "quarter";
        return function(a, i) {
            var o = i.prototype;
            o.quarter = function(u) {
                return this.$utils().u(u) ? Math.ceil((this.month() + 1) / 3) : this.month(this.month() % 3 + 3 * (u - 1))
            }
            ;
            var l = o.add;
            o.add = function(u, c) {
                return u = Number(u),
                this.$utils().p(c) === r ? this.add(3 * u, n) : l.bind(this)(u, c)
            }
            ;
            var s = o.startOf;
            o.startOf = function(u, c) {
                var f = this.$utils()
                  , d = !!f.u(c) || c;
                if (f.p(u) === r) {
                    var v = this.quarter() - 1;
                    return d ? this.month(3 * v).startOf(n).startOf("day") : this.month(3 * v + 2).endOf(n).endOf("day")
                }
                return s.bind(this)(u, c)
            }
        }
    })
}
)(dJ);
const uPe = dJ.exports;
var vJ = {
    exports: {}
};
(function(t, e) {
    (function(n, r) {
        t.exports = r()
    }
    )(Ht, function() {
        return function(n, r) {
            var a = r.prototype
              , i = a.format;
            a.format = function(o) {
                var l = this
                  , s = this.$locale();
                if (!this.isValid())
                    return i.bind(this)(o);
                var u = this.$utils()
                  , c = (o || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(f) {
                    switch (f) {
                    case "Q":
                        return Math.ceil((l.$M + 1) / 3);
                    case "Do":
                        return s.ordinal(l.$D);
                    case "gggg":
                        return l.weekYear();
                    case "GGGG":
                        return l.isoWeekYear();
                    case "wo":
                        return s.ordinal(l.week(), "W");
                    case "w":
                    case "ww":
                        return u.s(l.week(), f === "w" ? 1 : 2, "0");
                    case "W":
                    case "WW":
                        return u.s(l.isoWeek(), f === "W" ? 1 : 2, "0");
                    case "k":
                    case "kk":
                        return u.s(String(l.$H === 0 ? 24 : l.$H), f === "k" ? 1 : 2, "0");
                    case "X":
                        return Math.floor(l.$d.getTime() / 1e3);
                    case "x":
                        return l.$d.getTime();
                    case "z":
                        return "[" + l.offsetName() + "]";
                    case "zzz":
                        return "[" + l.offsetName("long") + "]";
                    default:
                        return f
                    }
                });
                return i.bind(this)(c)
            }
        }
    })
}
)(vJ);
const cPe = vJ.exports;
var hJ = {
    exports: {}
};
(function(t, e) {
    (function(n, r) {
        t.exports = r()
    }
    )(Ht, function() {
        var n = {
            LTS: "h:mm:ss A",
            LT: "h:mm A",
            L: "MM/DD/YYYY",
            LL: "MMMM D, YYYY",
            LLL: "MMMM D, YYYY h:mm A",
            LLLL: "dddd, MMMM D, YYYY h:mm A"
        }
          , r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g
          , a = /\d\d/
          , i = /\d\d?/
          , o = /\d*[^-_:/,()\s\d]+/
          , l = {}
          , s = function(p) {
            return (p = +p) + (p > 68 ? 1900 : 2e3)
        }
          , u = function(p) {
            return function(g) {
                this[p] = +g
            }
        }
          , c = [/[+-]\d\d:?(\d\d)?|Z/, function(p) {
            (this.zone || (this.zone = {})).offset = function(g) {
                if (!g || g === "Z")
                    return 0;
                var m = g.match(/([+-]|\d\d)/g)
                  , y = 60 * m[1] + (+m[2] || 0);
                return y === 0 ? 0 : m[0] === "+" ? -y : y
            }(p)
        }
        ]
          , f = function(p) {
            var g = l[p];
            return g && (g.indexOf ? g : g.s.concat(g.f))
        }
          , d = function(p, g) {
            var m, y = l.meridiem;
            if (y) {
                for (var b = 1; b <= 24; b += 1)
                    if (p.indexOf(y(b, 0, g)) > -1) {
                        m = b > 12;
                        break
                    }
            } else
                m = p === (g ? "pm" : "PM");
            return m
        }
          , v = {
            A: [o, function(p) {
                this.afternoon = d(p, !1)
            }
            ],
            a: [o, function(p) {
                this.afternoon = d(p, !0)
            }
            ],
            S: [/\d/, function(p) {
                this.milliseconds = 100 * +p
            }
            ],
            SS: [a, function(p) {
                this.milliseconds = 10 * +p
            }
            ],
            SSS: [/\d{3}/, function(p) {
                this.milliseconds = +p
            }
            ],
            s: [i, u("seconds")],
            ss: [i, u("seconds")],
            m: [i, u("minutes")],
            mm: [i, u("minutes")],
            H: [i, u("hours")],
            h: [i, u("hours")],
            HH: [i, u("hours")],
            hh: [i, u("hours")],
            D: [i, u("day")],
            DD: [a, u("day")],
            Do: [o, function(p) {
                var g = l.ordinal
                  , m = p.match(/\d+/);
                if (this.day = m[0],
                g)
                    for (var y = 1; y <= 31; y += 1)
                        g(y).replace(/\[|\]/g, "") === p && (this.day = y)
            }
            ],
            M: [i, u("month")],
            MM: [a, u("month")],
            MMM: [o, function(p) {
                var g = f("months")
                  , m = (f("monthsShort") || g.map(function(y) {
                    return y.slice(0, 3)
                })).indexOf(p) + 1;
                if (m < 1)
                    throw new Error;
                this.month = m % 12 || m
            }
            ],
            MMMM: [o, function(p) {
                var g = f("months").indexOf(p) + 1;
                if (g < 1)
                    throw new Error;
                this.month = g % 12 || g
            }
            ],
            Y: [/[+-]?\d+/, u("year")],
            YY: [a, function(p) {
                this.year = s(p)
            }
            ],
            YYYY: [/\d{4}/, u("year")],
            Z: c,
            ZZ: c
        };
        function h(p) {
            var g, m;
            g = p,
            m = l && l.formats;
            for (var y = (p = g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(P, M, A) {
                var O = A && A.toUpperCase();
                return M || m[A] || n[A] || m[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(k, D, E) {
                    return D || E.slice(1)
                })
            })).match(r), b = y.length, x = 0; x < b; x += 1) {
                var C = y[x]
                  , S = v[C]
                  , w = S && S[0]
                  , T = S && S[1];
                y[x] = T ? {
                    regex: w,
                    parser: T
                } : C.replace(/^\[|\]$/g, "")
            }
            return function(P) {
                for (var M = {}, A = 0, O = 0; A < b; A += 1) {
                    var k = y[A];
                    if (typeof k == "string")
                        O += k.length;
                    else {
                        var D = k.regex
                          , E = k.parser
                          , L = P.slice(O)
                          , N = D.exec(L)[0];
                        E.call(M, N),
                        P = P.replace(N, "")
                    }
                }
                return function(R) {
                    var $ = R.afternoon;
                    if ($ !== void 0) {
                        var W = R.hours;
                        $ ? W < 12 && (R.hours += 12) : W === 12 && (R.hours = 0),
                        delete R.afternoon
                    }
                }(M),
                M
            }
        }
        return function(p, g, m) {
            m.p.customParseFormat = !0,
            p && p.parseTwoDigitYear && (s = p.parseTwoDigitYear);
            var y = g.prototype
              , b = y.parse;
            y.parse = function(x) {
                var C = x.date
                  , S = x.utc
                  , w = x.args;
                this.$u = S;
                var T = w[1];
                if (typeof T == "string") {
                    var P = w[2] === !0
                      , M = w[3] === !0
                      , A = P || M
                      , O = w[2];
                    M && (O = w[2]),
                    l = this.$locale(),
                    !P && O && (l = m.Ls[O]),
                    this.$d = function(L, N, R) {
                        try {
                            if (["x", "X"].indexOf(N) > -1)
                                return new Date((N === "X" ? 1e3 : 1) * L);
                            var $ = h(N)(L)
                              , W = $.year
                              , B = $.month
                              , G = $.day
                              , K = $.hours
                              , V = $.minutes
                              , U = $.seconds
                              , X = $.milliseconds
                              , Y = $.zone
                              , te = new Date
                              , ne = G || (W || B ? 1 : te.getDate())
                              , ie = W || te.getFullYear()
                              , ae = 0;
                            W && !B || (ae = B > 0 ? B - 1 : te.getMonth());
                            var q = K || 0
                              , F = V || 0
                              , H = U || 0
                              , ee = X || 0;
                            return Y ? new Date(Date.UTC(ie, ae, ne, q, F, H, ee + 60 * Y.offset * 1e3)) : R ? new Date(Date.UTC(ie, ae, ne, q, F, H, ee)) : new Date(ie,ae,ne,q,F,H,ee)
                        } catch (re) {
                            return new Date("")
                        }
                    }(C, T, S),
                    this.init(),
                    O && O !== !0 && (this.$L = this.locale(O).$L),
                    A && C != this.format(T) && (this.$d = new Date("")),
                    l = {}
                } else if (T instanceof Array)
                    for (var k = T.length, D = 1; D <= k; D += 1) {
                        w[1] = T[D - 1];
                        var E = m.apply(this, w);
                        if (E.isValid()) {
                            this.$d = E.$d,
                            this.$L = E.$L,
                            this.init();
                            break
                        }
                        D === k && (this.$d = new Date(""))
                    }
                else
                    b.call(this, x)
            }
        }
    })
}
)(hJ);
const fPe = hJ.exports;
Mr.extend(fPe);
Mr.extend(cPe);
Mr.extend(iPe);
Mr.extend(oPe);
Mr.extend(lPe);
Mr.extend(sPe);
Mr.extend(uPe);
Mr.extend(function(t, e) {
    var n = e.prototype
      , r = n.format;
    n.format = function(i) {
        var o = (i || "").replace("Wo", "wo");
        return r.bind(this)(o)
    }
});
var dPe = {
    bn_BD: "bn-bd",
    by_BY: "be",
    en_GB: "en-gb",
    en_US: "en",
    fr_BE: "fr",
    fr_CA: "fr-ca",
    hy_AM: "hy-am",
    kmr_IQ: "ku",
    nl_BE: "nl-be",
    pt_BR: "pt-br",
    zh_CN: "zh-cn",
    zh_HK: "zh-hk",
    zh_TW: "zh-tw"
}
  , nc = function(e) {
    var n = dPe[e];
    return n || e.split("_")[0]
}
  , VF = function() {
    i1e(!1, "Not match any format. Please help to fire a issue about this.")
}
  , vPe = /\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;
function zF(t, e, n) {
    for (var r = $e(new Set(t.split(n))), a = 0, i = 0; i < r.length; i++) {
        var o = r[i];
        if (a += o.length,
        a > e)
            return o;
        a += n.length
    }
}
var HF = function(e, n) {
    if (!e)
        return null;
    if (Mr.isDayjs(e))
        return e;
    var r = n.matchAll(vPe)
      , a = Mr(e, n);
    if (r === null)
        return a;
    var i = lJ(r), o;
    try {
        for (i.s(); !(o = i.n()).done; ) {
            var l = o.value
              , s = l[0]
              , u = l.index;
            if (s === "Q") {
                var c = e.slice(u - 1, u)
                  , f = zF(e, u, c).match(/\d+/)[0];
                a = a.quarter(parseInt(f))
            }
            if (s.toLowerCase() === "wo") {
                var d = e.slice(u - 1, u)
                  , v = zF(e, u, d).match(/\d+/)[0];
                a = a.week(parseInt(v))
            }
            s.toLowerCase() === "ww" && (a = a.week(parseInt(e.slice(u, u + s.length)))),
            s.toLowerCase() === "w" && (a = a.week(parseInt(e.slice(u, u + s.length + 1))))
        }
    } catch (h) {
        i.e(h)
    } finally {
        i.f()
    }
    return a
}
  , hPe = {
    getNow: function() {
        return Mr()
    },
    getFixedDate: function(e) {
        return Mr(e, ["YYYY-M-DD", "YYYY-MM-DD"])
    },
    getEndDate: function(e) {
        return e.endOf("month")
    },
    getWeekDay: function(e) {
        var n = e.locale("en");
        return n.weekday() + n.localeData().firstDayOfWeek()
    },
    getFullYear: function(e) {
        return e.year()
    },
    getMonth: function(e) {
        return e.month()
    },
    getDate: function(e) {
        return e.date()
    },
    getHour: function(e) {
        return e.hour()
    },
    getMinute: function(e) {
        return e.minute()
    },
    getSecond: function(e) {
        return e.second()
    },
    addYear: function(e, n) {
        return e.add(n, "year")
    },
    addMonth: function(e, n) {
        return e.add(n, "month")
    },
    addDate: function(e, n) {
        return e.add(n, "day")
    },
    setYear: function(e, n) {
        return e.year(n)
    },
    setMonth: function(e, n) {
        return e.month(n)
    },
    setDate: function(e, n) {
        return e.date(n)
    },
    setHour: function(e, n) {
        return e.hour(n)
    },
    setMinute: function(e, n) {
        return e.minute(n)
    },
    setSecond: function(e, n) {
        return e.second(n)
    },
    isAfter: function(e, n) {
        return e.isAfter(n)
    },
    isValidate: function(e) {
        return e.isValid()
    },
    locale: {
        getWeekFirstDay: function(e) {
            return Mr().locale(nc(e)).localeData().firstDayOfWeek()
        },
        getWeekFirstDate: function(e, n) {
            return n.locale(nc(e)).weekday(0)
        },
        getWeek: function(e, n) {
            return n.locale(nc(e)).week()
        },
        getShortWeekDays: function(e) {
            return Mr().locale(nc(e)).localeData().weekdaysMin()
        },
        getShortMonths: function(e) {
            return Mr().locale(nc(e)).localeData().monthsShort()
        },
        format: function(e, n, r) {
            return n.locale(nc(e)).format(r)
        },
        parse: function(e, n, r) {
            for (var a = nc(e), i = 0; i < r.length; i += 1) {
                var o = r[i]
                  , l = n;
                if (o.includes("wo") || o.includes("Wo")) {
                    for (var s = l.split("-")[0], u = l.split("-")[1], c = Mr(s, "YYYY").startOf("year").locale(a), f = 0; f <= 52; f += 1) {
                        var d = c.add(f, "week");
                        if (d.format("Wo") === u)
                            return d
                    }
                    return VF(),
                    null
                }
                var v = Mr(l, o, !0).locale(a);
                if (v.isValid())
                    return v
            }
            return n || VF(),
            null
        }
    },
    toDate: function(e, n) {
        return Array.isArray(e) ? e.map(function(r) {
            return HF(r, n)
        }) : HF(e, n)
    },
    toString: function(e, n) {
        return Array.isArray(e) ? e.map(function(r) {
            return Mr.isDayjs(r) ? r.format(n) : r
        }) : Mr.isDayjs(e) ? e.format(n) : e
    }
};
const KD = hPe;
var pPe = 9007199254740991
  , gPe = Math.floor;
function jF(t, e) {
    var n = "";
    if (!t || e < 1 || e > pPe)
        return n;
    do
        e % 2 && (n += t),
        e = gPe(e / 2),
        e && (t += t);
    while (e);
    return n
}
function _m(t, e) {
    for (var n = -1, r = t == null ? 0 : t.length, a = Array(r); ++n < r; )
        a[n] = e(t[n], n, t);
    return a
}
var mPe = "[object Symbol]";
function tw(t) {
    return typeof t == "symbol" || xo(t) && Vu(t) == mPe
}
var yPe = 1 / 0
  , WF = Bi ? Bi.prototype : void 0
  , GF = WF ? WF.toString : void 0;
function UD(t) {
    if (typeof t == "string")
        return t;
    if (zi(t))
        return _m(t, UD) + "";
    if (tw(t))
        return GF ? GF.call(t) : "";
    var e = t + "";
    return e == "0" && 1 / t == -yPe ? "-0" : e
}
function pJ(t, e, n) {
    var r = -1
      , a = t.length;
    e < 0 && (e = -e > a ? 0 : a + e),
    n = n > a ? a : n,
    n < 0 && (n += a),
    a = e > n ? 0 : n - e >>> 0,
    e >>>= 0;
    for (var i = Array(a); ++r < a; )
        i[r] = t[r + e];
    return i
}
function bPe(t, e, n) {
    var r = t.length;
    return n = n === void 0 ? r : n,
    !e && n >= r ? t : pJ(t, e, n)
}
var xPe = "\\ud800-\\udfff"
  , SPe = "\\u0300-\\u036f"
  , CPe = "\\ufe20-\\ufe2f"
  , wPe = "\\u20d0-\\u20ff"
  , _Pe = SPe + CPe + wPe
  , TPe = "\\ufe0e\\ufe0f"
  , PPe = "\\u200d"
  , MPe = RegExp("[" + PPe + xPe + _Pe + TPe + "]");
function YD(t) {
    return MPe.test(t)
}
function gJ(t) {
    return function(e) {
        return e == null ? void 0 : e[t]
    }
}
var APe = gJ("length");
const IPe = APe;
var mJ = "\\ud800-\\udfff"
  , kPe = "\\u0300-\\u036f"
  , OPe = "\\ufe20-\\ufe2f"
  , DPe = "\\u20d0-\\u20ff"
  , EPe = kPe + OPe + DPe
  , LPe = "\\ufe0e\\ufe0f"
  , RPe = "[" + mJ + "]"
  , DM = "[" + EPe + "]"
  , EM = "\\ud83c[\\udffb-\\udfff]"
  , NPe = "(?:" + DM + "|" + EM + ")"
  , yJ = "[^" + mJ + "]"
  , bJ = "(?:\\ud83c[\\udde6-\\uddff]){2}"
  , xJ = "[\\ud800-\\udbff][\\udc00-\\udfff]"
  , $Pe = "\\u200d"
  , SJ = NPe + "?"
  , CJ = "[" + LPe + "]?"
  , FPe = "(?:" + $Pe + "(?:" + [yJ, bJ, xJ].join("|") + ")" + CJ + SJ + ")*"
  , BPe = CJ + SJ + FPe
  , VPe = "(?:" + [yJ + DM + "?", DM, bJ, xJ, RPe].join("|") + ")"
  , KF = RegExp(EM + "(?=" + EM + ")|" + VPe + BPe, "g");
function zPe(t) {
    for (var e = KF.lastIndex = 0; KF.test(t); )
        ++e;
    return e
}
function qD(t) {
    return YD(t) ? zPe(t) : IPe(t)
}
function HPe(t) {
    return t.split("")
}
var wJ = "\\ud800-\\udfff"
  , jPe = "\\u0300-\\u036f"
  , WPe = "\\ufe20-\\ufe2f"
  , GPe = "\\u20d0-\\u20ff"
  , KPe = jPe + WPe + GPe
  , UPe = "\\ufe0e\\ufe0f"
  , YPe = "[" + wJ + "]"
  , LM = "[" + KPe + "]"
  , RM = "\\ud83c[\\udffb-\\udfff]"
  , qPe = "(?:" + LM + "|" + RM + ")"
  , _J = "[^" + wJ + "]"
  , TJ = "(?:\\ud83c[\\udde6-\\uddff]){2}"
  , PJ = "[\\ud800-\\udbff][\\udc00-\\udfff]"
  , XPe = "\\u200d"
  , MJ = qPe + "?"
  , AJ = "[" + UPe + "]?"
  , ZPe = "(?:" + XPe + "(?:" + [_J, TJ, PJ].join("|") + ")" + AJ + MJ + ")*"
  , QPe = AJ + MJ + ZPe
  , JPe = "(?:" + [_J + LM + "?", LM, TJ, PJ, YPe].join("|") + ")"
  , e4e = RegExp(RM + "(?=" + RM + ")|" + JPe + QPe, "g");
function t4e(t) {
    return t.match(e4e) || []
}
function n4e(t) {
    return YD(t) ? t4e(t) : HPe(t)
}
var r4e = Math.ceil;
function IJ(t, e) {
    e = e === void 0 ? " " : UD(e);
    var n = e.length;
    if (n < 2)
        return n ? jF(e, t) : e;
    var r = jF(e, r4e(t / qD(e)));
    return YD(e) ? bPe(n4e(r), 0, t).join("") : r.slice(0, t)
}
var a4e = /\s/;
function i4e(t) {
    for (var e = t.length; e-- && a4e.test(t.charAt(e)); )
        ;
    return e
}
var o4e = /^\s+/;
function l4e(t) {
    return t && t.slice(0, i4e(t) + 1).replace(o4e, "")
}
var UF = 0 / 0
  , s4e = /^[-+]0x[0-9a-f]+$/i
  , u4e = /^0b[01]+$/i
  , c4e = /^0o[0-7]+$/i
  , f4e = parseInt;
function NM(t) {
    if (typeof t == "number")
        return t;
    if (tw(t))
        return UF;
    if (wo(t)) {
        var e = typeof t.valueOf == "function" ? t.valueOf() : t;
        t = wo(e) ? e + "" : e
    }
    if (typeof t != "string")
        return t === 0 ? t : +t;
    t = l4e(t);
    var n = u4e.test(t);
    return n || c4e.test(t) ? f4e(t.slice(2), n ? 2 : 8) : s4e.test(t) ? UF : +t
}
var YF = 1 / 0
  , d4e = 17976931348623157e292;
function v4e(t) {
    if (!t)
        return t === 0 ? t : 0;
    if (t = NM(t),
    t === YF || t === -YF) {
        var e = t < 0 ? -1 : 1;
        return e * d4e
    }
    return t === t ? t : 0
}
function XD(t) {
    var e = v4e(t)
      , n = e % 1;
    return e === e ? n ? e - n : e : 0
}
function ZD(t) {
    return t == null ? "" : UD(t)
}
function kJ(t, e, n) {
    t = ZD(t),
    e = XD(e);
    var r = e ? qD(t) : 0;
    return e && r < e ? IJ(e - r, n) + t : t
}
function vr(t) {
    var e = _ve();
    return I(I({}, t), e)
}
var OJ = Symbol("PanelContextProps")
  , QD = function(e) {
    It(OJ, e)
}
  , Cl = function() {
    return vt(OJ, {})
}
  , By = {
    visibility: "hidden"
};
function Wu(t, e) {
    var n, r = e.slots, a = vr(t), i = a.prefixCls, o = a.prevIcon, l = o === void 0 ? "\u2039" : o, s = a.nextIcon, u = s === void 0 ? "\u203A" : s, c = a.superPrevIcon, f = c === void 0 ? "\xAB" : c, d = a.superNextIcon, v = d === void 0 ? "\xBB" : d, h = a.onSuperPrev, p = a.onSuperNext, g = a.onPrev, m = a.onNext, y = Cl(), b = y.hideNextBtn, x = y.hidePrevBtn;
    return _("div", {
        class: i
    }, [h && _("button", {
        type: "button",
        onClick: h,
        tabindex: -1,
        class: "".concat(i, "-super-prev-btn"),
        style: x.value ? By : {}
    }, [f]), g && _("button", {
        type: "button",
        onClick: g,
        tabindex: -1,
        class: "".concat(i, "-prev-btn"),
        style: x.value ? By : {}
    }, [l]), _("div", {
        class: "".concat(i, "-view")
    }, [(n = r.default) === null || n === void 0 ? void 0 : n.call(r)]), m && _("button", {
        type: "button",
        onClick: m,
        tabindex: -1,
        class: "".concat(i, "-next-btn"),
        style: b.value ? By : {}
    }, [u]), p && _("button", {
        type: "button",
        onClick: p,
        tabindex: -1,
        class: "".concat(i, "-super-next-btn"),
        style: b.value ? By : {}
    }, [v])])
}
Wu.displayName = "Header";
Wu.inheritAttrs = !1;
function JD(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.generateConfig
      , a = e.viewDate
      , i = e.onPrevDecades
      , o = e.onNextDecades
      , l = Cl()
      , s = l.hideHeader;
    if (s)
        return null;
    var u = "".concat(n, "-header")
      , c = r.getFullYear(a)
      , f = Math.floor(c / Yl) * Yl
      , d = f + Yl - 1;
    return _(Wu, I(I({}, e), {}, {
        prefixCls: u,
        onSuperPrev: i,
        onSuperNext: o
    }), {
        default: function() {
            return [f, Fi("-"), d]
        }
    })
}
JD.displayName = "DecadeHeader";
JD.inheritAttrs = !1;
function DJ(t, e, n, r, a) {
    var i = t.setHour(e, n);
    return i = t.setMinute(i, r),
    i = t.setSecond(i, a),
    i
}
function gb(t, e, n) {
    if (!n)
        return e;
    var r = e;
    return r = t.setHour(r, t.getHour(n)),
    r = t.setMinute(r, t.getMinute(n)),
    r = t.setSecond(r, t.getSecond(n)),
    r
}
function h4e(t, e, n, r, a, i) {
    var o = Math.floor(t / r) * r;
    if (o < t)
        return [o, 60 - a, 60 - i];
    var l = Math.floor(e / a) * a;
    if (l < e)
        return [o, l, 60 - i];
    var s = Math.floor(n / i) * i;
    return [o, l, s]
}
function p4e(t, e) {
    var n = t.getFullYear(e)
      , r = t.getMonth(e) + 1
      , a = t.getEndDate(t.getFixedDate("".concat(n, "-").concat(r, "-01")))
      , i = t.getDate(a)
      , o = r < 10 ? "0".concat(r) : "".concat(r);
    return "".concat(n, "-").concat(o, "-").concat(i)
}
function Zf(t) {
    for (var e = vr(t), n = e.prefixCls, r = e.disabledDate, a = e.onSelect, i = e.picker, o = e.rowNum, l = e.colNum, s = e.prefixColumn, u = e.rowClassName, c = e.baseDate, f = e.getCellClassName, d = e.getCellText, v = e.getCellNode, h = e.getCellDate, p = e.generateConfig, g = e.titleCell, m = e.headerCells, y = Cl(), b = y.onDateMouseenter, x = y.onDateMouseleave, C = y.mode, S = "".concat(n, "-cell"), w = [], T = 0; T < o; T += 1) {
        for (var P = [], M = void 0, A = function() {
            var D, E = T * l + O, L = h(c, E), N = VM({
                cellDate: L,
                mode: C.value,
                disabledDate: r,
                generateConfig: p
            });
            O === 0 && (M = L,
            s && P.push(s(M)));
            var R = g && g(L);
            P.push(_("td", {
                key: O,
                title: R,
                class: he(S, I((D = {},
                z(D, "".concat(S, "-disabled"), N),
                z(D, "".concat(S, "-start"), d(L) === 1 || i === "year" && Number(R) % 10 === 0),
                z(D, "".concat(S, "-end"), R === p4e(p, L) || i === "year" && Number(R) % 10 === 9),
                D), f(L))),
                onClick: function() {
                    N || a(L)
                },
                onMouseenter: function() {
                    !N && b && b(L)
                },
                onMouseleave: function() {
                    !N && x && x(L)
                }
            }, [v ? v(L) : _("div", {
                class: "".concat(S, "-inner")
            }, [d(L)])]))
        }, O = 0; O < l; O += 1)
            A();
        w.push(_("tr", {
            key: T,
            class: u && u(M)
        }, [P]))
    }
    return _("div", {
        class: "".concat(n, "-body")
    }, [_("table", {
        class: "".concat(n, "-content")
    }, [m && _("thead", null, [_("tr", null, [m])]), _("tbody", null, [w])])])
}
Zf.displayName = "PanelBody";
Zf.inheritAttrs = !1;
var $M = 3
  , qF = 4;
function e8(t) {
    var e = vr(t)
      , n = io - 1
      , r = e.prefixCls
      , a = e.viewDate
      , i = e.generateConfig
      , o = "".concat(r, "-cell")
      , l = i.getFullYear(a)
      , s = Math.floor(l / io) * io
      , u = Math.floor(l / Yl) * Yl
      , c = u + Yl - 1
      , f = i.setYear(a, u - Math.ceil(($M * qF * io - Yl) / 2))
      , d = function(h) {
        var p, g = i.getFullYear(h), m = g + n;
        return p = {},
        z(p, "".concat(o, "-in-view"), u <= g && m <= c),
        z(p, "".concat(o, "-selected"), g === s),
        p
    };
    return _(Zf, I(I({}, e), {}, {
        rowNum: qF,
        colNum: $M,
        baseDate: f,
        getCellText: function(h) {
            var p = i.getFullYear(h);
            return "".concat(p, "-").concat(p + n)
        },
        getCellClassName: d,
        getCellDate: function(h, p) {
            return i.addYear(h, p * io)
        }
    }), null)
}
e8.displayName = "DecadeBody";
e8.inheritAttrs = !1;
var Vy = new Map;
function g4e(t, e) {
    var n;
    function r() {
        uD(t) ? e() : n = gt(function() {
            r()
        })
    }
    return r(),
    function() {
        gt.cancel(n)
    }
}
function FM(t, e, n) {
    if (Vy.get(t) && gt.cancel(Vy.get(t)),
    n <= 0) {
        Vy.set(t, gt(function() {
            t.scrollTop = e
        }));
        return
    }
    var r = e - t.scrollTop
      , a = r / n * 10;
    Vy.set(t, gt(function() {
        t.scrollTop += a,
        t.scrollTop !== e && FM(t, e, n - 10)
    }))
}
function bh(t, e) {
    var n = e.onLeftRight
      , r = e.onCtrlLeftRight
      , a = e.onUpDown
      , i = e.onPageUpDown
      , o = e.onEnter
      , l = t.which
      , s = t.ctrlKey
      , u = t.metaKey;
    switch (l) {
    case Ee.LEFT:
        if (s || u) {
            if (r)
                return r(-1),
                !0
        } else if (n)
            return n(-1),
            !0;
        break;
    case Ee.RIGHT:
        if (s || u) {
            if (r)
                return r(1),
                !0
        } else if (n)
            return n(1),
            !0;
        break;
    case Ee.UP:
        if (a)
            return a(-1),
            !0;
        break;
    case Ee.DOWN:
        if (a)
            return a(1),
            !0;
        break;
    case Ee.PAGE_UP:
        if (i)
            return i(-1),
            !0;
        break;
    case Ee.PAGE_DOWN:
        if (i)
            return i(1),
            !0;
        break;
    case Ee.ENTER:
        if (o)
            return o(),
            !0;
        break
    }
    return !1
}
function EJ(t, e, n, r) {
    var a = t;
    if (!a)
        switch (e) {
        case "time":
            a = r ? "hh:mm:ss a" : "HH:mm:ss";
            break;
        case "week":
            a = "gggg-wo";
            break;
        case "month":
            a = "YYYY-MM";
            break;
        case "quarter":
            a = "YYYY-[Q]Q";
            break;
        case "year":
            a = "YYYY";
            break;
        default:
            a = n ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD"
        }
    return a
}
function LJ(t, e, n) {
    var r = t === "time" ? 8 : 10
      , a = typeof e == "function" ? e(n.getNow()).length : e.length;
    return Math.max(r, a) + 2
}
var np = null
  , zy = new Set;
function m4e(t) {
    return !np && typeof window != "undefined" && window.addEventListener && (np = function(n) {
        $e(zy).forEach(function(r) {
            r(n)
        })
    }
    ,
    window.addEventListener("mousedown", np)),
    zy.add(t),
    function() {
        zy.delete(t),
        zy.size === 0 && (window.removeEventListener("mousedown", np),
        np = null)
    }
}
function y4e(t) {
    var e = t.target;
    if (t.composed && e.shadowRoot) {
        var n;
        return ((n = t.composedPath) === null || n === void 0 ? void 0 : n.call(t)[0]) || e
    }
    return e
}
var b4e = function(e) {
    return e === "month" || e === "date" ? "year" : e
}
  , x4e = function(e) {
    return e === "date" ? "month" : e
}
  , S4e = function(e) {
    return e === "month" || e === "date" ? "quarter" : e
}
  , C4e = function(e) {
    return e === "date" ? "week" : e
}
  , w4e = {
    year: b4e,
    month: x4e,
    quarter: S4e,
    week: C4e,
    time: null,
    date: null
};
function RJ(t, e) {
    return t.some(function(n) {
        return n && n.contains(e)
    })
}
var io = 10
  , Yl = io * 10;
function t8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.onViewDateChange
      , a = e.generateConfig
      , i = e.viewDate
      , o = e.operationRef
      , l = e.onSelect
      , s = e.onPanelChange
      , u = "".concat(n, "-decade-panel");
    o.value = {
        onKeydown: function(v) {
            return bh(v, {
                onLeftRight: function(p) {
                    l(a.addYear(i, p * io), "key")
                },
                onCtrlLeftRight: function(p) {
                    l(a.addYear(i, p * Yl), "key")
                },
                onUpDown: function(p) {
                    l(a.addYear(i, p * io * $M), "key")
                },
                onEnter: function() {
                    s("year", i)
                }
            })
        }
    };
    var c = function(v) {
        var h = a.addYear(i, v * Yl);
        r(h),
        s(null, h)
    }
      , f = function(v) {
        l(v, "mouse"),
        s("year", v)
    };
    return _("div", {
        class: u
    }, [_(JD, I(I({}, e), {}, {
        prefixCls: n,
        onPrevDecades: function() {
            c(-1)
        },
        onNextDecades: function() {
            c(1)
        }
    }), null), _(e8, I(I({}, e), {}, {
        prefixCls: n,
        onSelect: f
    }), null)])
}
t8.displayName = "DecadePanel";
t8.inheritAttrs = !1;
var mb = 7;
function Qf(t, e) {
    if (!t && !e)
        return !0;
    if (!t || !e)
        return !1
}
function _4e(t, e, n) {
    var r = Qf(e, n);
    if (typeof r == "boolean")
        return r;
    var a = Math.floor(t.getFullYear(e) / 10)
      , i = Math.floor(t.getFullYear(n) / 10);
    return a === i
}
function nw(t, e, n) {
    var r = Qf(e, n);
    return typeof r == "boolean" ? r : t.getFullYear(e) === t.getFullYear(n)
}
function BM(t, e) {
    var n = Math.floor(t.getMonth(e) / 3);
    return n + 1
}
function NJ(t, e, n) {
    var r = Qf(e, n);
    return typeof r == "boolean" ? r : nw(t, e, n) && BM(t, e) === BM(t, n)
}
function n8(t, e, n) {
    var r = Qf(e, n);
    return typeof r == "boolean" ? r : nw(t, e, n) && t.getMonth(e) === t.getMonth(n)
}
function ql(t, e, n) {
    var r = Qf(e, n);
    return typeof r == "boolean" ? r : t.getFullYear(e) === t.getFullYear(n) && t.getMonth(e) === t.getMonth(n) && t.getDate(e) === t.getDate(n)
}
function T4e(t, e, n) {
    var r = Qf(e, n);
    return typeof r == "boolean" ? r : t.getHour(e) === t.getHour(n) && t.getMinute(e) === t.getMinute(n) && t.getSecond(e) === t.getSecond(n)
}
function $J(t, e, n, r) {
    var a = Qf(n, r);
    return typeof a == "boolean" ? a : t.locale.getWeek(e, n) === t.locale.getWeek(e, r)
}
function pv(t, e, n) {
    return ql(t, e, n) && T4e(t, e, n)
}
function Hy(t, e, n, r) {
    return !e || !n || !r ? !1 : !ql(t, e, r) && !ql(t, n, r) && t.isAfter(r, e) && t.isAfter(n, r)
}
function P4e(t, e, n) {
    var r = e.locale.getWeekFirstDay(t)
      , a = e.setDate(n, 1)
      , i = e.getWeekDay(a)
      , o = e.addDate(a, r - i);
    return e.getMonth(o) === e.getMonth(n) && e.getDate(o) > 1 && (o = e.addDate(o, -7)),
    o
}
function yg(t, e, n) {
    var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
    switch (e) {
    case "year":
        return n.addYear(t, r * 10);
    case "quarter":
    case "month":
        return n.addYear(t, r);
    default:
        return n.addMonth(t, r)
    }
}
function Yr(t, e) {
    var n = e.generateConfig
      , r = e.locale
      , a = e.format;
    return typeof a == "function" ? a(t) : n.locale.format(r.locale, t, a)
}
function FJ(t, e) {
    var n = e.generateConfig
      , r = e.locale
      , a = e.formatList;
    return !t || typeof a[0] == "function" ? null : n.locale.parse(r.locale, t, a)
}
function VM(t) {
    var e = t.cellDate
      , n = t.mode
      , r = t.disabledDate
      , a = t.generateConfig;
    if (!r)
        return !1;
    var i = function(h, p, g) {
        for (var m = p; m <= g; ) {
            var y = void 0;
            switch (h) {
            case "date":
                {
                    if (y = a.setDate(e, m),
                    !r(y))
                        return !1;
                    break
                }
            case "month":
                {
                    if (y = a.setMonth(e, m),
                    !VM({
                        cellDate: y,
                        mode: "month",
                        generateConfig: a,
                        disabledDate: r
                    }))
                        return !1;
                    break
                }
            case "year":
                {
                    if (y = a.setYear(e, m),
                    !VM({
                        cellDate: y,
                        mode: "year",
                        generateConfig: a,
                        disabledDate: r
                    }))
                        return !1;
                    break
                }
            }
            m += 1
        }
        return !0
    };
    switch (n) {
    case "date":
    case "week":
        return r(e);
    case "month":
        {
            var o = 1
              , l = a.getDate(a.getEndDate(e));
            return i("date", o, l)
        }
    case "quarter":
        {
            var s = Math.floor(a.getMonth(e) / 3) * 3
              , u = s + 2;
            return i("month", s, u)
        }
    case "year":
        return i("month", 0, 11);
    case "decade":
        {
            var c = a.getFullYear(e)
              , f = Math.floor(c / io) * io
              , d = f + io - 1;
            return i("year", f, d)
        }
    }
}
function r8(t) {
    var e = vr(t)
      , n = Cl()
      , r = n.hideHeader;
    if (r.value)
        return null;
    var a = e.prefixCls
      , i = e.generateConfig
      , o = e.locale
      , l = e.value
      , s = e.format
      , u = "".concat(a, "-header");
    return _(Wu, {
        prefixCls: u
    }, {
        default: function() {
            return [l ? Yr(l, {
                locale: o,
                format: s,
                generateConfig: i
            }) : "\xA0"]
        }
    })
}
r8.displayName = "TimeHeader";
r8.inheritAttrs = !1;
const jy = de({
    name: "TimeUnitColumn",
    props: ["prefixCls", "units", "onSelect", "value", "active", "hideDisabledOptions"],
    setup: function(e) {
        var n = Cl()
          , r = n.open
          , a = Q(null)
          , i = Q(new Map)
          , o = Q();
        return Te(function() {
            return e.value
        }, function() {
            var l = i.value.get(e.value);
            l && r.value !== !1 && FM(a.value, l.offsetTop, 120)
        }),
        Nt(function() {
            var l;
            (l = o.value) === null || l === void 0 || l.call(o)
        }),
        Te(r, function() {
            var l;
            (l = o.value) === null || l === void 0 || l.call(o),
            yt(function() {
                if (r.value) {
                    var s = i.value.get(e.value);
                    s && (o.value = g4e(s, function() {
                        FM(a.value, s.offsetTop, 0)
                    }))
                }
            })
        }, {
            immediate: !0,
            flush: "post"
        }),
        function() {
            var l = e.prefixCls
              , s = e.units
              , u = e.onSelect
              , c = e.value
              , f = e.active
              , d = e.hideDisabledOptions
              , v = "".concat(l, "-cell");
            return _("ul", {
                class: he("".concat(l, "-column"), z({}, "".concat(l, "-column-active"), f)),
                ref: a,
                style: {
                    position: "relative"
                }
            }, [s.map(function(h) {
                var p;
                return d && h.disabled ? null : _("li", {
                    key: h.value,
                    ref: function(m) {
                        i.value.set(h.value, m)
                    },
                    class: he(v, (p = {},
                    z(p, "".concat(v, "-disabled"), h.disabled),
                    z(p, "".concat(v, "-selected"), c === h.value),
                    p)),
                    onClick: function() {
                        h.disabled || u(h.value)
                    }
                }, [_("div", {
                    class: "".concat(v, "-inner")
                }, [h.label])])
            })])
        }
    }
});
function BJ(t, e) {
    for (var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "0", r = String(t); r.length < e; )
        r = "".concat(n).concat(t);
    return r
}
var M4e = function() {
    for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
        n[r] = arguments[r];
    return n
};
function VJ(t) {
    return t == null ? [] : Array.isArray(t) ? t : [t]
}
function zJ(t) {
    var e = {};
    return Object.keys(t).forEach(function(n) {
        (n.substr(0, 5) === "data-" || n.substr(0, 5) === "aria-" || n === "role" || n === "name") && n.substr(0, 7) !== "data-__" && (e[n] = t[n])
    }),
    e
}
function un(t, e) {
    return t ? t[e] : null
}
function _i(t, e, n) {
    var r = [un(t, 0), un(t, 1)];
    return r[n] = typeof e == "function" ? e(r[n]) : e,
    !r[0] && !r[1] ? null : r
}
function iT(t, e, n, r) {
    for (var a = [], i = t; i <= e; i += n)
        a.push({
            label: BJ(i, 2),
            value: i,
            disabled: (r || []).includes(i)
        });
    return a
}
var A4e = de({
    compatConfig: {
        MODE: 3
    },
    name: "TimeBody",
    inheritAttrs: !1,
    props: ["generateConfig", "prefixCls", "operationRef", "activeColumnIndex", "value", "showHour", "showMinute", "showSecond", "use12Hours", "hourStep", "minuteStep", "secondStep", "disabledHours", "disabledMinutes", "disabledSeconds", "disabledTime", "hideDisabledOptions", "onSelect"],
    setup: function(e) {
        var n = j(function() {
            return e.value ? e.generateConfig.getHour(e.value) : -1
        })
          , r = j(function() {
            return e.use12Hours ? n.value >= 12 : !1
        })
          , a = j(function() {
            return e.use12Hours ? n.value % 12 : n.value
        })
          , i = j(function() {
            return e.value ? e.generateConfig.getMinute(e.value) : -1
        })
          , o = j(function() {
            return e.value ? e.generateConfig.getSecond(e.value) : -1
        })
          , l = Q(e.generateConfig.getNow())
          , s = Q()
          , u = Q()
          , c = Q();
        nO(function() {
            l.value = e.generateConfig.getNow()
        }),
        pt(function() {
            if (e.disabledTime) {
                var m = e.disabledTime(l)
                  , y = [m.disabledHours, m.disabledMinutes, m.disabledSeconds];
                s.value = y[0],
                u.value = y[1],
                c.value = y[2]
            } else {
                var b = [e.disabledHours, e.disabledMinutes, e.disabledSeconds];
                s.value = b[0],
                u.value = b[1],
                c.value = b[2]
            }
        });
        var f = function(y, b, x, C) {
            var S = e.value || e.generateConfig.getNow()
              , w = Math.max(0, b)
              , T = Math.max(0, x)
              , P = Math.max(0, C);
            return S = DJ(e.generateConfig, S, !e.use12Hours || !y ? w : w + 12, T, P),
            S
        }
          , d = j(function() {
            var m;
            return iT(0, 23, (m = e.hourStep) !== null && m !== void 0 ? m : 1, s.value && s.value())
        })
          , v = j(function() {
            if (!e.use12Hours)
                return [!1, !1];
            var m = [!0, !0];
            return d.value.forEach(function(y) {
                var b = y.disabled
                  , x = y.value;
                b || (x >= 12 ? m[1] = !1 : m[0] = !1)
            }),
            m
        })
          , h = j(function() {
            return e.use12Hours ? d.value.filter(r.value ? function(m) {
                return m.value >= 12
            }
            : function(m) {
                return m.value < 12
            }
            ).map(function(m) {
                var y = m.value % 12
                  , b = y === 0 ? "12" : BJ(y, 2);
                return I(I({}, m), {}, {
                    label: b,
                    value: y
                })
            }) : d.value
        })
          , p = j(function() {
            var m;
            return iT(0, 59, (m = e.minuteStep) !== null && m !== void 0 ? m : 1, u.value && u.value(n.value))
        })
          , g = j(function() {
            var m;
            return iT(0, 59, (m = e.secondStep) !== null && m !== void 0 ? m : 1, c.value && c.value(n.value, i.value))
        });
        return function() {
            var m = e.prefixCls
              , y = e.operationRef
              , b = e.activeColumnIndex
              , x = e.showHour
              , C = e.showMinute
              , S = e.showSecond
              , w = e.use12Hours
              , T = e.hideDisabledOptions
              , P = e.onSelect
              , M = []
              , A = "".concat(m, "-content")
              , O = "".concat(m, "-time-panel");
            y.value = {
                onUpDown: function(L) {
                    var N = M[b];
                    if (N)
                        for (var R = N.units.findIndex(function(G) {
                            return G.value === N.value
                        }), $ = N.units.length, W = 1; W < $; W += 1) {
                            var B = N.units[(R + L * W + $) % $];
                            if (B.disabled !== !0) {
                                N.onSelect(B.value);
                                break
                            }
                        }
                }
            };
            function k(E, L, N, R, $) {
                E !== !1 && M.push({
                    node: Qt(L, {
                        prefixCls: O,
                        value: N,
                        active: b === M.length,
                        onSelect: $,
                        units: R,
                        hideDisabledOptions: T
                    }),
                    onSelect: $,
                    value: N,
                    units: R
                })
            }
            k(x, _(jy, {
                key: "hour"
            }, null), a.value, h.value, function(E) {
                P(f(r.value, E, i.value, o.value), "mouse")
            }),
            k(C, _(jy, {
                key: "minute"
            }, null), i.value, p.value, function(E) {
                P(f(r.value, a.value, E, o.value), "mouse")
            }),
            k(S, _(jy, {
                key: "second"
            }, null), o.value, g.value, function(E) {
                P(f(r.value, a.value, i.value, E), "mouse")
            });
            var D = -1;
            return typeof r.value == "boolean" && (D = r.value ? 1 : 0),
            k(w === !0, _(jy, {
                key: "12hours"
            }, null), D, [{
                label: "AM",
                value: 0,
                disabled: v.value[0]
            }, {
                label: "PM",
                value: 1,
                disabled: v.value[1]
            }], function(E) {
                P(f(!!E, a.value, i.value, o.value), "mouse")
            }),
            _("div", {
                class: A
            }, [M.map(function(E) {
                var L = E.node;
                return L
            })])
        }
    }
});
const I4e = A4e;
var k4e = function(e) {
    return e.filter(function(n) {
        return n !== !1
    }).length
};
function rw(t) {
    var e = vr(t)
      , n = e.generateConfig
      , r = e.format
      , a = r === void 0 ? "HH:mm:ss" : r
      , i = e.prefixCls
      , o = e.active
      , l = e.operationRef
      , s = e.showHour
      , u = e.showMinute
      , c = e.showSecond
      , f = e.use12Hours
      , d = f === void 0 ? !1 : f
      , v = e.onSelect
      , h = e.value
      , p = "".concat(i, "-time-panel")
      , g = Q()
      , m = Q(-1)
      , y = k4e([s, u, c, d]);
    return l.value = {
        onKeydown: function(x) {
            return bh(x, {
                onLeftRight: function(S) {
                    m.value = (m.value + S + y) % y
                },
                onUpDown: function(S) {
                    m.value === -1 ? m.value = 0 : g.value && g.value.onUpDown(S)
                },
                onEnter: function() {
                    v(h || n.getNow(), "key"),
                    m.value = -1
                }
            })
        },
        onBlur: function() {
            m.value = -1
        }
    },
    _("div", {
        class: he(p, z({}, "".concat(p, "-active"), o))
    }, [_(r8, I(I({}, e), {}, {
        format: a,
        prefixCls: i
    }), null), _(I4e, I(I({}, e), {}, {
        prefixCls: i,
        activeColumnIndex: m.value,
        operationRef: g
    }), null)])
}
rw.displayName = "TimePanel";
rw.inheritAttrs = !1;
function aw(t) {
    var e = t.cellPrefixCls
      , n = t.generateConfig
      , r = t.rangedValue
      , a = t.hoverRangedValue
      , i = t.isInView
      , o = t.isSameCell
      , l = t.offsetCell
      , s = t.today
      , u = t.value;
    function c(f) {
        var d, v = l(f, -1), h = l(f, 1), p = un(r, 0), g = un(r, 1), m = un(a, 0), y = un(a, 1), b = Hy(n, m, y, f);
        function x(M) {
            return o(p, M)
        }
        function C(M) {
            return o(g, M)
        }
        var S = o(m, f)
          , w = o(y, f)
          , T = (b || w) && (!i(v) || C(v))
          , P = (b || S) && (!i(h) || x(h));
        return d = {},
        z(d, "".concat(e, "-in-view"), i(f)),
        z(d, "".concat(e, "-in-range"), Hy(n, p, g, f)),
        z(d, "".concat(e, "-range-start"), x(f)),
        z(d, "".concat(e, "-range-end"), C(f)),
        z(d, "".concat(e, "-range-start-single"), x(f) && !g),
        z(d, "".concat(e, "-range-end-single"), C(f) && !p),
        z(d, "".concat(e, "-range-start-near-hover"), x(f) && (o(v, m) || Hy(n, m, y, v))),
        z(d, "".concat(e, "-range-end-near-hover"), C(f) && (o(h, y) || Hy(n, m, y, h))),
        z(d, "".concat(e, "-range-hover"), b),
        z(d, "".concat(e, "-range-hover-start"), S),
        z(d, "".concat(e, "-range-hover-end"), w),
        z(d, "".concat(e, "-range-hover-edge-start"), T),
        z(d, "".concat(e, "-range-hover-edge-end"), P),
        z(d, "".concat(e, "-range-hover-edge-start-near-range"), T && o(v, g)),
        z(d, "".concat(e, "-range-hover-edge-end-near-range"), P && o(h, p)),
        z(d, "".concat(e, "-today"), o(s, f)),
        z(d, "".concat(e, "-selected"), o(u, f)),
        d
    }
    return c
}
var HJ = Symbol("RangeContextProps")
  , O4e = function(e) {
    It(HJ, e)
}
  , Tm = function() {
    return vt(HJ, {
        rangedValue: Q(),
        hoverRangedValue: Q(),
        inRange: Q(),
        panelPosition: Q()
    })
}
  , D4e = de({
    compatConfig: {
        MODE: 3
    },
    name: "PanelContextProvider",
    inheritAttrs: !1,
    props: {
        value: {
            type: Object,
            default: function() {
                return {}
            }
        }
    },
    setup: function(e, n) {
        var r = n.slots
          , a = {
            rangedValue: Q(e.value.rangedValue),
            hoverRangedValue: Q(e.value.hoverRangedValue),
            inRange: Q(e.value.inRange),
            panelPosition: Q(e.value.panelPosition)
        };
        return O4e(a),
        Te(function() {
            return e.value
        }, function() {
            Object.keys(e.value).forEach(function(i) {
                a[i] && (a[i].value = e.value[i])
            })
        }),
        function() {
            var i;
            return (i = r.default) === null || i === void 0 ? void 0 : i.call(r)
        }
    }
});
function iw(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.generateConfig
      , a = e.prefixColumn
      , i = e.locale
      , o = e.rowCount
      , l = e.viewDate
      , s = e.value
      , u = e.dateRender
      , c = Tm()
      , f = c.rangedValue
      , d = c.hoverRangedValue
      , v = P4e(i.locale, r, l)
      , h = "".concat(n, "-cell")
      , p = r.locale.getWeekFirstDay(i.locale)
      , g = r.getNow()
      , m = []
      , y = i.shortWeekDays || (r.locale.getShortWeekDays ? r.locale.getShortWeekDays(i.locale) : []);
    a && m.push(_("th", {
        key: "empty",
        "aria-label": "empty cell"
    }, null));
    for (var b = 0; b < mb; b += 1)
        m.push(_("th", {
            key: b
        }, [y[(b + p) % mb]]));
    var x = aw({
        cellPrefixCls: h,
        today: g,
        value: s,
        generateConfig: r,
        rangedValue: a ? null : f.value,
        hoverRangedValue: a ? null : d.value,
        isSameCell: function(w, T) {
            return ql(r, w, T)
        },
        isInView: function(w) {
            return n8(r, w, l)
        },
        offsetCell: function(w, T) {
            return r.addDate(w, T)
        }
    })
      , C = u ? function(S) {
        return u({
            current: S,
            today: g
        })
    }
    : void 0;
    return _(Zf, I(I({}, e), {}, {
        rowNum: o,
        colNum: mb,
        baseDate: v,
        getCellNode: C,
        getCellText: r.getDate,
        getCellClassName: x,
        getCellDate: r.addDate,
        titleCell: function(w) {
            return Yr(w, {
                locale: i,
                format: "YYYY-MM-DD",
                generateConfig: r
            })
        },
        headerCells: m
    }), null)
}
iw.displayName = "DateBody";
iw.inheritAttrs = !1;
iw.props = ["prefixCls", "generateConfig", "value?", "viewDate", "locale", "rowCount", "onSelect", "dateRender?", "disabledDate?", "prefixColumn?", "rowClassName?"];
function a8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.generateConfig
      , a = e.locale
      , i = e.viewDate
      , o = e.onNextMonth
      , l = e.onPrevMonth
      , s = e.onNextYear
      , u = e.onPrevYear
      , c = e.onYearClick
      , f = e.onMonthClick
      , d = Cl()
      , v = d.hideHeader;
    if (v.value)
        return null;
    var h = "".concat(n, "-header")
      , p = a.shortMonths || (r.locale.getShortMonths ? r.locale.getShortMonths(a.locale) : [])
      , g = r.getMonth(i)
      , m = _("button", {
        type: "button",
        key: "year",
        onClick: c,
        tabindex: -1,
        class: "".concat(n, "-year-btn")
    }, [Yr(i, {
        locale: a,
        format: a.yearFormat,
        generateConfig: r
    })])
      , y = _("button", {
        type: "button",
        key: "month",
        onClick: f,
        tabindex: -1,
        class: "".concat(n, "-month-btn")
    }, [a.monthFormat ? Yr(i, {
        locale: a,
        format: a.monthFormat,
        generateConfig: r
    }) : p[g]])
      , b = a.monthBeforeYear ? [y, m] : [m, y];
    return _(Wu, I(I({}, e), {}, {
        prefixCls: h,
        onSuperPrev: u,
        onPrev: l,
        onNext: o,
        onSuperNext: s
    }), {
        default: function() {
            return [b]
        }
    })
}
a8.displayName = "DateHeader";
a8.inheritAttrs = !1;
var E4e = 6;
function Pm(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.panelName
      , a = r === void 0 ? "date" : r
      , i = e.keyboardConfig
      , o = e.active
      , l = e.operationRef
      , s = e.generateConfig
      , u = e.value
      , c = e.viewDate
      , f = e.onViewDateChange
      , d = e.onPanelChange
      , v = e.onSelect
      , h = "".concat(n, "-").concat(a, "-panel");
    l.value = {
        onKeydown: function(y) {
            return bh(y, I({
                onLeftRight: function(x) {
                    v(s.addDate(u || c, x), "key")
                },
                onCtrlLeftRight: function(x) {
                    v(s.addYear(u || c, x), "key")
                },
                onUpDown: function(x) {
                    v(s.addDate(u || c, x * mb), "key")
                },
                onPageUpDown: function(x) {
                    v(s.addMonth(u || c, x), "key")
                }
            }, i))
        }
    };
    var p = function(y) {
        var b = s.addYear(c, y);
        f(b),
        d(null, b)
    }
      , g = function(y) {
        var b = s.addMonth(c, y);
        f(b),
        d(null, b)
    };
    return _("div", {
        class: he(h, z({}, "".concat(h, "-active"), o))
    }, [_(a8, I(I({}, e), {}, {
        prefixCls: n,
        value: u,
        viewDate: c,
        onPrevYear: function() {
            p(-1)
        },
        onNextYear: function() {
            p(1)
        },
        onPrevMonth: function() {
            g(-1)
        },
        onNextMonth: function() {
            g(1)
        },
        onMonthClick: function() {
            d("month", c)
        },
        onYearClick: function() {
            d("year", c)
        }
    }), null), _(iw, I(I({}, e), {}, {
        onSelect: function(y) {
            return v(y, "mouse")
        },
        prefixCls: n,
        value: u,
        viewDate: c,
        rowCount: E4e
    }), null)])
}
Pm.displayName = "DatePanel";
Pm.inheritAttrs = !1;
var XF = M4e("date", "time");
function i8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.operationRef
      , a = e.generateConfig
      , i = e.value
      , o = e.defaultValue
      , l = e.disabledTime
      , s = e.showTime
      , u = e.onSelect
      , c = "".concat(n, "-datetime-panel")
      , f = Q(null)
      , d = Q({})
      , v = Q({})
      , h = We(s) === "object" ? I({}, s) : {};
    function p(b) {
        var x = XF.indexOf(f.value) + b
          , C = XF[x] || null;
        return C
    }
    var g = function(x) {
        v.value.onBlur && v.value.onBlur(x),
        f.value = null
    };
    r.value = {
        onKeydown: function(x) {
            if (x.which === Ee.TAB) {
                var C = p(x.shiftKey ? -1 : 1);
                return f.value = C,
                C && x.preventDefault(),
                !0
            }
            if (f.value) {
                var S = f.value === "date" ? d : v;
                return S.value && S.value.onKeydown && S.value.onKeydown(x),
                !0
            }
            return [Ee.LEFT, Ee.RIGHT, Ee.UP, Ee.DOWN].includes(x.which) ? (f.value = "date",
            !0) : !1
        },
        onBlur: g,
        onClose: g
    };
    var m = function(x, C) {
        var S = x;
        C === "date" && !i && h.defaultValue ? (S = a.setHour(S, a.getHour(h.defaultValue)),
        S = a.setMinute(S, a.getMinute(h.defaultValue)),
        S = a.setSecond(S, a.getSecond(h.defaultValue))) : C === "time" && !i && o && (S = a.setYear(S, a.getFullYear(o)),
        S = a.setMonth(S, a.getMonth(o)),
        S = a.setDate(S, a.getDate(o))),
        u && u(S, "mouse")
    }
      , y = l ? l(i || null) : {};
    return _("div", {
        class: he(c, z({}, "".concat(c, "-active"), f.value))
    }, [_(Pm, I(I({}, e), {}, {
        operationRef: d,
        active: f.value === "date",
        onSelect: function(x) {
            m(gb(a, x, !i && We(s) === "object" ? s.defaultValue : null), "date")
        }
    }), null), _(rw, I(I(I(I({}, e), {}, {
        format: void 0
    }, h), y), {}, {
        disabledTime: null,
        defaultValue: void 0,
        operationRef: v,
        active: f.value === "time",
        onSelect: function(x) {
            m(x, "time")
        }
    }), null)])
}
i8.displayName = "DatetimePanel";
i8.inheritAttrs = !1;
function o8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.generateConfig
      , a = e.locale
      , i = e.value
      , o = "".concat(n, "-cell")
      , l = function(f) {
        return _("td", {
            key: "week",
            class: he(o, "".concat(o, "-week"))
        }, [r.locale.getWeek(a.locale, f)])
    }
      , s = "".concat(n, "-week-panel-row")
      , u = function(f) {
        return he(s, z({}, "".concat(s, "-selected"), $J(r, a.locale, i, f)))
    };
    return _(Pm, I(I({}, e), {}, {
        panelName: "week",
        prefixColumn: l,
        rowClassName: u,
        keyboardConfig: {
            onLeftRight: null
        }
    }), null)
}
o8.displayName = "WeekPanel";
o8.inheritAttrs = !1;
function l8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.generateConfig
      , a = e.locale
      , i = e.viewDate
      , o = e.onNextYear
      , l = e.onPrevYear
      , s = e.onYearClick
      , u = Cl()
      , c = u.hideHeader;
    if (c.value)
        return null;
    var f = "".concat(n, "-header");
    return _(Wu, I(I({}, e), {}, {
        prefixCls: f,
        onSuperPrev: l,
        onSuperNext: o
    }), {
        default: function() {
            return [_("button", {
                type: "button",
                onClick: s,
                class: "".concat(n, "-year-btn")
            }, [Yr(i, {
                locale: a,
                format: a.yearFormat,
                generateConfig: r
            })])]
        }
    })
}
l8.displayName = "MonthHeader";
l8.inheritAttrs = !1;
var jJ = 3
  , L4e = 4;
function s8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.locale
      , a = e.value
      , i = e.viewDate
      , o = e.generateConfig
      , l = e.monthCellRender
      , s = Tm()
      , u = s.rangedValue
      , c = s.hoverRangedValue
      , f = "".concat(n, "-cell")
      , d = aw({
        cellPrefixCls: f,
        value: a,
        generateConfig: o,
        rangedValue: u.value,
        hoverRangedValue: c.value,
        isSameCell: function(m, y) {
            return n8(o, m, y)
        },
        isInView: function() {
            return !0
        },
        offsetCell: function(m, y) {
            return o.addMonth(m, y)
        }
    })
      , v = r.shortMonths || (o.locale.getShortMonths ? o.locale.getShortMonths(r.locale) : [])
      , h = o.setMonth(i, 0)
      , p = l ? function(g) {
        return l({
            current: g,
            locale: r
        })
    }
    : void 0;
    return _(Zf, I(I({}, e), {}, {
        rowNum: L4e,
        colNum: jJ,
        baseDate: h,
        getCellNode: p,
        getCellText: function(m) {
            return r.monthFormat ? Yr(m, {
                locale: r,
                format: r.monthFormat,
                generateConfig: o
            }) : v[o.getMonth(m)]
        },
        getCellClassName: d,
        getCellDate: o.addMonth,
        titleCell: function(m) {
            return Yr(m, {
                locale: r,
                format: "YYYY-MM",
                generateConfig: o
            })
        }
    }), null)
}
s8.displayName = "MonthBody";
s8.inheritAttrs = !1;
function u8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.operationRef
      , a = e.onViewDateChange
      , i = e.generateConfig
      , o = e.value
      , l = e.viewDate
      , s = e.onPanelChange
      , u = e.onSelect
      , c = "".concat(n, "-month-panel");
    r.value = {
        onKeydown: function(v) {
            return bh(v, {
                onLeftRight: function(p) {
                    u(i.addMonth(o || l, p), "key")
                },
                onCtrlLeftRight: function(p) {
                    u(i.addYear(o || l, p), "key")
                },
                onUpDown: function(p) {
                    u(i.addMonth(o || l, p * jJ), "key")
                },
                onEnter: function() {
                    s("date", o || l)
                }
            })
        }
    };
    var f = function(v) {
        var h = i.addYear(l, v);
        a(h),
        s(null, h)
    };
    return _("div", {
        class: c
    }, [_(l8, I(I({}, e), {}, {
        prefixCls: n,
        onPrevYear: function() {
            f(-1)
        },
        onNextYear: function() {
            f(1)
        },
        onYearClick: function() {
            s("year", l)
        }
    }), null), _(s8, I(I({}, e), {}, {
        prefixCls: n,
        onSelect: function(v) {
            u(v, "mouse"),
            s("date", v)
        }
    }), null)])
}
u8.displayName = "MonthPanel";
u8.inheritAttrs = !1;
function c8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.generateConfig
      , a = e.locale
      , i = e.viewDate
      , o = e.onNextYear
      , l = e.onPrevYear
      , s = e.onYearClick
      , u = Cl()
      , c = u.hideHeader;
    if (c.value)
        return null;
    var f = "".concat(n, "-header");
    return _(Wu, I(I({}, e), {}, {
        prefixCls: f,
        onSuperPrev: l,
        onSuperNext: o
    }), {
        default: function() {
            return [_("button", {
                type: "button",
                onClick: s,
                class: "".concat(n, "-year-btn")
            }, [Yr(i, {
                locale: a,
                format: a.yearFormat,
                generateConfig: r
            })])]
        }
    })
}
c8.displayName = "QuarterHeader";
c8.inheritAttrs = !1;
var R4e = 4
  , N4e = 1;
function f8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.locale
      , a = e.value
      , i = e.viewDate
      , o = e.generateConfig
      , l = Tm()
      , s = l.rangedValue
      , u = l.hoverRangedValue
      , c = "".concat(n, "-cell")
      , f = aw({
        cellPrefixCls: c,
        value: a,
        generateConfig: o,
        rangedValue: s.value,
        hoverRangedValue: u.value,
        isSameCell: function(h, p) {
            return NJ(o, h, p)
        },
        isInView: function() {
            return !0
        },
        offsetCell: function(h, p) {
            return o.addMonth(h, p * 3)
        }
    })
      , d = o.setDate(o.setMonth(i, 0), 1);
    return _(Zf, I(I({}, e), {}, {
        rowNum: N4e,
        colNum: R4e,
        baseDate: d,
        getCellText: function(h) {
            return Yr(h, {
                locale: r,
                format: r.quarterFormat || "[Q]Q",
                generateConfig: o
            })
        },
        getCellClassName: f,
        getCellDate: function(h, p) {
            return o.addMonth(h, p * 3)
        },
        titleCell: function(h) {
            return Yr(h, {
                locale: r,
                format: "YYYY-[Q]Q",
                generateConfig: o
            })
        }
    }), null)
}
f8.displayName = "QuarterBody";
f8.inheritAttrs = !1;
function d8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.operationRef
      , a = e.onViewDateChange
      , i = e.generateConfig
      , o = e.value
      , l = e.viewDate
      , s = e.onPanelChange
      , u = e.onSelect
      , c = "".concat(n, "-quarter-panel");
    r.value = {
        onKeydown: function(v) {
            return bh(v, {
                onLeftRight: function(p) {
                    u(i.addMonth(o || l, p * 3), "key")
                },
                onCtrlLeftRight: function(p) {
                    u(i.addYear(o || l, p), "key")
                },
                onUpDown: function(p) {
                    u(i.addYear(o || l, p), "key")
                }
            })
        }
    };
    var f = function(v) {
        var h = i.addYear(l, v);
        a(h),
        s(null, h)
    };
    return _("div", {
        class: c
    }, [_(c8, I(I({}, e), {}, {
        prefixCls: n,
        onPrevYear: function() {
            f(-1)
        },
        onNextYear: function() {
            f(1)
        },
        onYearClick: function() {
            s("year", l)
        }
    }), null), _(f8, I(I({}, e), {}, {
        prefixCls: n,
        onSelect: function(v) {
            u(v, "mouse")
        }
    }), null)])
}
d8.displayName = "QuarterPanel";
d8.inheritAttrs = !1;
function v8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.generateConfig
      , a = e.viewDate
      , i = e.onPrevDecade
      , o = e.onNextDecade
      , l = e.onDecadeClick
      , s = Cl()
      , u = s.hideHeader;
    if (u.value)
        return null;
    var c = "".concat(n, "-header")
      , f = r.getFullYear(a)
      , d = Math.floor(f / ru) * ru
      , v = d + ru - 1;
    return _(Wu, I(I({}, e), {}, {
        prefixCls: c,
        onSuperPrev: i,
        onSuperNext: o
    }), {
        default: function() {
            return [_("button", {
                type: "button",
                onClick: l,
                class: "".concat(n, "-decade-btn")
            }, [d, Fi("-"), v])]
        }
    })
}
v8.displayName = "YearHeader";
v8.inheritAttrs = !1;
var zM = 3
  , ZF = 4;
function h8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.value
      , a = e.viewDate
      , i = e.locale
      , o = e.generateConfig
      , l = Tm()
      , s = l.rangedValue
      , u = l.hoverRangedValue
      , c = "".concat(n, "-cell")
      , f = o.getFullYear(a)
      , d = Math.floor(f / ru) * ru
      , v = d + ru - 1
      , h = o.setYear(a, d - Math.ceil((zM * ZF - ru) / 2))
      , p = function(y) {
        var b = o.getFullYear(y);
        return d <= b && b <= v
    }
      , g = aw({
        cellPrefixCls: c,
        value: r,
        generateConfig: o,
        rangedValue: s.value,
        hoverRangedValue: u.value,
        isSameCell: function(y, b) {
            return nw(o, y, b)
        },
        isInView: p,
        offsetCell: function(y, b) {
            return o.addYear(y, b)
        }
    });
    return _(Zf, I(I({}, e), {}, {
        rowNum: ZF,
        colNum: zM,
        baseDate: h,
        getCellText: o.getFullYear,
        getCellClassName: g,
        getCellDate: o.addYear,
        titleCell: function(y) {
            return Yr(y, {
                locale: i,
                format: "YYYY",
                generateConfig: o
            })
        }
    }), null)
}
h8.displayName = "YearBody";
h8.inheritAttrs = !1;
var ru = 10;
function p8(t) {
    var e = vr(t)
      , n = e.prefixCls
      , r = e.operationRef
      , a = e.onViewDateChange
      , i = e.generateConfig
      , o = e.value
      , l = e.viewDate
      , s = e.sourceMode
      , u = e.onSelect
      , c = e.onPanelChange
      , f = "".concat(n, "-year-panel");
    r.value = {
        onKeydown: function(h) {
            return bh(h, {
                onLeftRight: function(g) {
                    u(i.addYear(o || l, g), "key")
                },
                onCtrlLeftRight: function(g) {
                    u(i.addYear(o || l, g * ru), "key")
                },
                onUpDown: function(g) {
                    u(i.addYear(o || l, g * zM), "key")
                },
                onEnter: function() {
                    c(s === "date" ? "date" : "month", o || l)
                }
            })
        }
    };
    var d = function(h) {
        var p = i.addYear(l, h * 10);
        a(p),
        c(null, p)
    };
    return _("div", {
        class: f
    }, [_(v8, I(I({}, e), {}, {
        prefixCls: n,
        onPrevDecade: function() {
            d(-1)
        },
        onNextDecade: function() {
            d(1)
        },
        onDecadeClick: function() {
            c("decade", l)
        }
    }), null), _(h8, I(I({}, e), {}, {
        prefixCls: n,
        onSelect: function(h) {
            c(s === "date" ? "date" : "month", h),
            u(h, "mouse")
        }
    }), null)])
}
p8.displayName = "YearPanel";
p8.inheritAttrs = !1;
function WJ(t, e, n) {
    return n ? _("div", {
        class: "".concat(t, "-footer-extra")
    }, [n(e)]) : null
}
function GJ(t) {
    var e = t.prefixCls, n = t.rangeList, r = n === void 0 ? [] : n, a = t.components, i = a === void 0 ? {} : a, o = t.needConfirmButton, l = t.onNow, s = t.onOk, u = t.okDisabled, c = t.showNow, f = t.locale, d, v;
    if (r.length) {
        var h = i.rangeItem || "span";
        d = _(xt, null, [r.map(function(g) {
            var m = g.label
              , y = g.onClick
              , b = g.onMouseenter
              , x = g.onMouseleave;
            return _("li", {
                key: m,
                class: "".concat(e, "-preset")
            }, [_(h, {
                onClick: y,
                onMouseenter: b,
                onMouseleave: x
            }, {
                default: function() {
                    return [m]
                }
            })])
        })])
    }
    if (o) {
        var p = i.button || "button";
        l && !d && c !== !1 && (d = _("li", {
            class: "".concat(e, "-now")
        }, [_("a", {
            class: "".concat(e, "-now-btn"),
            onClick: l
        }, [f.now])])),
        v = o && _("li", {
            class: "".concat(e, "-ok")
        }, [_(p, {
            disabled: u,
            onClick: s
        }, {
            default: function() {
                return [f.ok]
            }
        })])
    }
    return !d && !v ? null : _("ul", {
        class: "".concat(e, "-ranges")
    }, [d, v])
}
function $4e() {
    return de({
        name: "PickerPanel",
        inheritAttrs: !1,
        props: {
            prefixCls: String,
            locale: Object,
            generateConfig: Object,
            value: Object,
            defaultValue: Object,
            pickerValue: Object,
            defaultPickerValue: Object,
            disabledDate: Function,
            mode: String,
            picker: {
                type: String,
                default: "date"
            },
            tabindex: {
                type: [Number, String],
                default: 0
            },
            showNow: {
                type: Boolean,
                default: void 0
            },
            showTime: [Boolean, Object],
            showToday: Boolean,
            renderExtraFooter: Function,
            dateRender: Function,
            hideHeader: {
                type: Boolean,
                default: void 0
            },
            onSelect: Function,
            onChange: Function,
            onPanelChange: Function,
            onMousedown: Function,
            onPickerValueChange: Function,
            onOk: Function,
            components: Object,
            direction: String,
            hourStep: {
                type: Number,
                default: 1
            },
            minuteStep: {
                type: Number,
                default: 1
            },
            secondStep: {
                type: Number,
                default: 1
            }
        },
        setup: function(e, n) {
            var r = n.attrs
              , a = j(function() {
                return e.picker === "date" && !!e.showTime || e.picker === "time"
            })
              , i = j(function() {
                return 24 % e.hourStep === 0
            })
              , o = j(function() {
                return 60 % e.minuteStep === 0
            })
              , l = j(function() {
                return 60 % e.secondStep === 0
            })
              , s = Cl()
              , u = s.operationRef
              , c = s.panelRef
              , f = s.onSelect
              , d = s.hideRanges
              , v = s.defaultOpenValue
              , h = Tm()
              , p = h.inRange
              , g = h.panelPosition
              , m = h.rangedValue
              , y = h.hoverRangedValue
              , b = Q({})
              , x = zn(null, {
                value: at(e, "value"),
                defaultValue: e.defaultValue,
                postState: function(Y) {
                    return !Y && v !== null && v !== void 0 && v.value && e.picker === "time" ? v.value : Y
                }
            })
              , C = De(x, 2)
              , S = C[0]
              , w = C[1]
              , T = zn(null, {
                value: at(e, "pickerValue"),
                defaultValue: e.defaultPickerValue || S.value,
                postState: function(Y) {
                    var te = e.generateConfig
                      , ne = e.showTime
                      , ie = e.defaultValue
                      , ae = te.getNow();
                    return Y ? !S.value && e.showTime ? We(ne) === "object" ? gb(te, Array.isArray(Y) ? Y[0] : Y, ne.defaultValue || ae) : ie ? gb(te, Array.isArray(Y) ? Y[0] : Y, ie) : gb(te, Array.isArray(Y) ? Y[0] : Y, ae) : Y : ae
                }
            })
              , P = De(T, 2)
              , M = P[0]
              , A = P[1]
              , O = function(Y) {
                A(Y),
                e.onPickerValueChange && e.onPickerValueChange(Y)
            }
              , k = function(Y) {
                var te = w4e[e.picker];
                return te ? te(Y) : Y
            }
              , D = zn(function() {
                return e.picker === "time" ? "time" : k("date")
            }, {
                value: at(e, "mode")
            })
              , E = De(D, 2)
              , L = E[0]
              , N = E[1];
            Te(function() {
                return e.picker
            }, function() {
                N(e.picker)
            });
            var R = Q(L.value)
              , $ = function(Y) {
                R.value = Y
            }
              , W = function(Y, te) {
                var ne = e.onPanelChange
                  , ie = e.generateConfig
                  , ae = k(Y || L.value);
                $(L.value),
                N(ae),
                ne && (L.value !== ae || pv(ie, M.value, M.value)) && ne(te, ae)
            }
              , B = function(Y, te) {
                var ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1
                  , ie = e.picker
                  , ae = e.generateConfig
                  , q = e.onSelect
                  , F = e.onChange
                  , H = e.disabledDate;
                (L.value === ie || ne) && (w(Y),
                q && q(Y),
                f && f(Y, te),
                F && !pv(ae, Y, S.value) && !(H != null && H(Y)) && F(Y))
            }
              , G = function(Y) {
                return b.value && b.value.onKeydown ? ([Ee.LEFT, Ee.RIGHT, Ee.UP, Ee.DOWN, Ee.PAGE_UP, Ee.PAGE_DOWN, Ee.ENTER].includes(Y.which) && Y.preventDefault(),
                b.value.onKeydown(Y)) : !1
            }
              , K = function(Y) {
                b.value && b.value.onBlur && b.value.onBlur(Y)
            }
              , V = function() {
                var Y = e.generateConfig
                  , te = e.hourStep
                  , ne = e.minuteStep
                  , ie = e.secondStep
                  , ae = Y.getNow()
                  , q = h4e(Y.getHour(ae), Y.getMinute(ae), Y.getSecond(ae), i.value ? te : 1, o.value ? ne : 1, l.value ? ie : 1)
                  , F = DJ(Y, ae, q[0], q[1], q[2]);
                B(F, "submit")
            }
              , U = j(function() {
                var X, Y = e.prefixCls, te = e.direction;
                return he("".concat(Y, "-panel"), (X = {},
                z(X, "".concat(Y, "-panel-has-range"), m && m.value && m.value[0] && m.value[1]),
                z(X, "".concat(Y, "-panel-has-range-hover"), y && y.value && y.value[0] && y.value[1]),
                z(X, "".concat(Y, "-panel-rtl"), te === "rtl"),
                X))
            });
            return QD(I(I({}, s), {}, {
                mode: L,
                hideHeader: j(function() {
                    var X;
                    return e.hideHeader !== void 0 ? e.hideHeader : (X = s.hideHeader) === null || X === void 0 ? void 0 : X.value
                }),
                hidePrevBtn: j(function() {
                    return p.value && g.value === "right"
                }),
                hideNextBtn: j(function() {
                    return p.value && g.value === "left"
                })
            })),
            Te(function() {
                return e.value
            }, function() {
                e.value && A(e.value)
            }),
            function() {
                var X = e.prefixCls
                  , Y = X === void 0 ? "ant-picker" : X
                  , te = e.locale
                  , ne = e.generateConfig
                  , ie = e.disabledDate
                  , ae = e.picker
                  , q = ae === void 0 ? "date" : ae
                  , F = e.tabindex
                  , H = F === void 0 ? 0 : F
                  , ee = e.showNow
                  , re = e.showTime
                  , ue = e.showToday
                  , ve = e.renderExtraFooter
                  , fe = e.onMousedown
                  , ce = e.onOk
                  , le = e.components;
                u && g.value !== "right" && (u.value = {
                    onKeydown: G,
                    onClose: function() {
                        b.value && b.value.onClose && b.value.onClose()
                    }
                });
                var oe, se = I(I(I({}, r), e), {}, {
                    operationRef: b,
                    prefixCls: Y,
                    viewDate: M.value,
                    value: S.value,
                    onViewDateChange: O,
                    sourceMode: R.value,
                    onPanelChange: W,
                    disabledDate: ie
                });
                switch (delete se.onChange,
                delete se.onSelect,
                L.value) {
                case "decade":
                    oe = _(t8, I(I({}, se), {}, {
                        onSelect: function(Oe, Ce) {
                            O(Oe),
                            B(Oe, Ce)
                        }
                    }), null);
                    break;
                case "year":
                    oe = _(p8, I(I({}, se), {}, {
                        onSelect: function(Oe, Ce) {
                            O(Oe),
                            B(Oe, Ce)
                        }
                    }), null);
                    break;
                case "month":
                    oe = _(u8, I(I({}, se), {}, {
                        onSelect: function(Oe, Ce) {
                            O(Oe),
                            B(Oe, Ce)
                        }
                    }), null);
                    break;
                case "quarter":
                    oe = _(d8, I(I({}, se), {}, {
                        onSelect: function(Oe, Ce) {
                            O(Oe),
                            B(Oe, Ce)
                        }
                    }), null);
                    break;
                case "week":
                    oe = _(o8, I(I({}, se), {}, {
                        onSelect: function(Oe, Ce) {
                            O(Oe),
                            B(Oe, Ce)
                        }
                    }), null);
                    break;
                case "time":
                    delete se.showTime,
                    oe = _(rw, I(I(I({}, se), We(re) === "object" ? re : null), {}, {
                        onSelect: function(Oe, Ce) {
                            O(Oe),
                            B(Oe, Ce)
                        }
                    }), null);
                    break;
                default:
                    re ? oe = _(i8, I(I({}, se), {}, {
                        onSelect: function(Oe, Ce) {
                            O(Oe),
                            B(Oe, Ce)
                        }
                    }), null) : oe = _(Pm, I(I({}, se), {}, {
                        onSelect: function(Oe, Ce) {
                            O(Oe),
                            B(Oe, Ce)
                        }
                    }), null)
                }
                var xe, Pe;
                d != null && d.value || (xe = WJ(Y, L.value, ve),
                Pe = GJ({
                    prefixCls: Y,
                    components: le,
                    needConfirmButton: a.value,
                    okDisabled: !S.value || ie && ie(S.value),
                    locale: te,
                    showNow: ee,
                    onNow: a.value && V,
                    onOk: function() {
                        S.value && (B(S.value, "submit", !0),
                        ce && ce(S.value))
                    }
                }));
                var Fe;
                if (ue && L.value === "date" && q === "date" && !re) {
                    var ze = ne.getNow()
                      , _e = "".concat(Y, "-today-btn")
                      , me = ie && ie(ze);
                    Fe = _("a", {
                        class: he(_e, me && "".concat(_e, "-disabled")),
                        "aria-disabled": me,
                        onClick: function() {
                            me || B(ze, "mouse", !0)
                        }
                    }, [te.today])
                }
                return _("div", {
                    tabindex: H,
                    class: he(U.value, r.class),
                    style: r.style,
                    onKeydown: G,
                    onBlur: K,
                    onMousedown: fe,
                    ref: c
                }, [oe, xe || Pe || Fe ? _("div", {
                    class: "".concat(Y, "-footer")
                }, [xe, Pe, Fe]) : null])
            }
        }
    })
}
var F4e = $4e();
const g8 = function(t) {
    return _(F4e, t)
};
var B4e = {
    bottomLeft: {
        points: ["tl", "bl"],
        offset: [0, 4],
        overflow: {
            adjustX: 1,
            adjustY: 1
        }
    },
    bottomRight: {
        points: ["tr", "br"],
        offset: [0, 4],
        overflow: {
            adjustX: 1,
            adjustY: 1
        }
    },
    topLeft: {
        points: ["bl", "tl"],
        offset: [0, -4],
        overflow: {
            adjustX: 0,
            adjustY: 1
        }
    },
    topRight: {
        points: ["br", "tr"],
        offset: [0, -4],
        overflow: {
            adjustX: 0,
            adjustY: 1
        }
    }
};
function KJ(t, e) {
    var n, r = e.slots, a = vr(t), i = a.prefixCls, o = a.popupStyle, l = a.visible, s = a.dropdownClassName, u = a.dropdownAlign, c = a.transitionName, f = a.getPopupContainer, d = a.range, v = a.popupPlacement, h = a.direction, p = "".concat(i, "-dropdown"), g = function() {
        return v !== void 0 ? v : h === "rtl" ? "bottomRight" : "bottomLeft"
    };
    return _(gh, {
        showAction: [],
        hideAction: [],
        popupPlacement: g(),
        builtinPlacements: B4e,
        prefixCls: p,
        popupTransitionName: c,
        popupAlign: u,
        popupVisible: l,
        popupClassName: he(s, (n = {},
        z(n, "".concat(p, "-range"), d),
        z(n, "".concat(p, "-rtl"), h === "rtl"),
        n)),
        popupStyle: o,
        getPopupContainer: f,
        tryPopPortal: !0
    }, {
        default: r.default,
        popup: r.popupElement
    })
}
function HM(t) {
    var e = t.open
      , n = t.value
      , r = t.isClickOutside
      , a = t.triggerOpen
      , i = t.forwardKeydown
      , o = t.onKeydown
      , l = t.blurToCancel
      , s = t.onSubmit
      , u = t.onCancel
      , c = t.onFocus
      , f = t.onBlur
      , d = Q(!1)
      , v = Q(!1)
      , h = Q(!1)
      , p = Q(!1)
      , g = Q(!1)
      , m = j(function() {
        return {
            onMousedown: function() {
                d.value = !0,
                a(!0)
            },
            onKeydown: function(x) {
                var C = function() {
                    g.value = !0
                };
                if (o(x, C),
                !g.value) {
                    switch (x.which) {
                    case Ee.ENTER:
                        {
                            e.value ? s() !== !1 && (d.value = !0) : a(!0),
                            x.preventDefault();
                            return
                        }
                    case Ee.TAB:
                        {
                            d.value && e.value && !x.shiftKey ? (d.value = !1,
                            x.preventDefault()) : !d.value && e.value && !i(x) && x.shiftKey && (d.value = !0,
                            x.preventDefault());
                            return
                        }
                    case Ee.ESC:
                        {
                            d.value = !0,
                            u();
                            return
                        }
                    }
                    !e.value && ![Ee.SHIFT].includes(x.which) ? a(!0) : d.value || i(x)
                }
            },
            onFocus: function(x) {
                d.value = !0,
                v.value = !0,
                c && c(x)
            },
            onBlur: function(x) {
                if (h.value || !r(document.activeElement)) {
                    h.value = !1;
                    return
                }
                l.value ? setTimeout(function() {
                    for (var C = document, S = C.activeElement; S && S.shadowRoot; )
                        S = S.shadowRoot.activeElement;
                    r(S) && u()
                }, 0) : e.value && (a(!1),
                p.value && s()),
                v.value = !1,
                f && f(x)
            }
        }
    });
    Te(e, function() {
        p.value = !1
    }),
    Te(n, function() {
        p.value = !0
    });
    var y = Q();
    return ct(function() {
        y.value = m4e(function(b) {
            var x = y4e(b);
            if (e.value) {
                var C = r(x);
                C ? (!v.value || C) && a(!1) : (h.value = !0,
                gt(function() {
                    h.value = !1
                }))
            }
        })
    }),
    Nt(function() {
        y.value && y.value()
    }),
    [m, {
        focused: v,
        typing: d
    }]
}
function jM(t) {
    var e = t.valueTexts
      , n = t.onTextChange
      , r = Q("");
    function a(o) {
        r.value = o,
        n(o)
    }
    function i() {
        r.value = e.value[0]
    }
    return Te(function() {
        return $e(e.value)
    }, function(o) {
        var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
        o.join("||") !== l.join("||") && e.value.every(function(s) {
            return s !== r.value
        }) && i()
    }, {
        immediate: !0
    }),
    [r, a, i]
}
function Ux(t, e) {
    var n = e.formatList
      , r = e.generateConfig
      , a = e.locale
      , i = CD(function() {
        if (!t.value)
            return [[""], ""];
        for (var s = "", u = [], c = 0; c < n.value.length; c += 1) {
            var f = n.value[c]
              , d = Yr(t.value, {
                generateConfig: r.value,
                locale: a.value,
                format: f
            });
            u.push(d),
            c === 0 && (s = d)
        }
        return [u, s]
    }, [t, n], function(s, u) {
        return u[0] !== s[0] || !jd(u[1], s[1])
    })
      , o = j(function() {
        return i.value[0]
    })
      , l = j(function() {
        return i.value[1]
    });
    return [o, l]
}
function WM(t, e) {
    var n = e.formatList, r = e.generateConfig, a = e.locale, i = Q(null), o;
    function l(v) {
        var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
        if (gt.cancel(o),
        h) {
            i.value = v;
            return
        }
        o = gt(function() {
            i.value = v
        })
    }
    var s = Ux(i, {
        formatList: n,
        generateConfig: r,
        locale: a
    })
      , u = De(s, 2)
      , c = u[1];
    function f(v) {
        l(v)
    }
    function d() {
        var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
        l(null, v)
    }
    return Te(t, function() {
        d(!0)
    }),
    Nt(function() {
        gt.cancel(o)
    }),
    [c, f, d]
}
function V4e() {
    return de({
        name: "Picker",
        inheritAttrs: !1,
        props: ["prefixCls", "id", "tabindex", "dropdownClassName", "dropdownAlign", "popupStyle", "transitionName", "generateConfig", "locale", "inputReadOnly", "allowClear", "autofocus", "showTime", "showNow", "showHour", "showMinute", "showSecond", "picker", "format", "use12Hours", "value", "defaultValue", "open", "defaultOpen", "defaultOpenValue", "suffixIcon", "clearIcon", "disabled", "disabledDate", "placeholder", "getPopupContainer", "panelRender", "inputRender", "onChange", "onOpenChange", "onFocus", "onBlur", "onMousedown", "onMouseup", "onMouseenter", "onMouseleave", "onContextmenu", "onClick", "onKeydown", "onSelect", "direction", "autocomplete", "showToday", "renderExtraFooter", "dateRender", "minuteStep", "hourStep", "secondStep", "hideDisabledOptions"],
        setup: function(e, n) {
            var r = n.attrs
              , a = n.expose
              , i = Q(null)
              , o = j(function() {
                var F;
                return (F = e.picker) !== null && F !== void 0 ? F : "date"
            })
              , l = j(function() {
                return o.value === "date" && !!e.showTime || o.value === "time"
            })
              , s = j(function() {
                return VJ(EJ(e.format, o.value, e.showTime, e.use12Hours))
            })
              , u = Q(null)
              , c = Q(null)
              , f = Q(null)
              , d = zn(null, {
                value: at(e, "value"),
                defaultValue: e.defaultValue
            })
              , v = De(d, 2)
              , h = v[0]
              , p = v[1]
              , g = Q(h.value)
              , m = function(H) {
                g.value = H
            }
              , y = Q(null)
              , b = zn(!1, {
                value: at(e, "open"),
                defaultValue: e.defaultOpen,
                postState: function(H) {
                    return e.disabled ? !1 : H
                },
                onChange: function(H) {
                    e.onOpenChange && e.onOpenChange(H),
                    !H && y.value && y.value.onClose && y.value.onClose()
                }
            })
              , x = De(b, 2)
              , C = x[0]
              , S = x[1]
              , w = Ux(g, {
                formatList: s,
                generateConfig: at(e, "generateConfig"),
                locale: at(e, "locale")
            })
              , T = De(w, 2)
              , P = T[0]
              , M = T[1]
              , A = jM({
                valueTexts: P,
                onTextChange: function(H) {
                    var ee = FJ(H, {
                        locale: e.locale,
                        formatList: s.value,
                        generateConfig: e.generateConfig
                    });
                    ee && (!e.disabledDate || !e.disabledDate(ee)) && m(ee)
                }
            })
              , O = De(A, 3)
              , k = O[0]
              , D = O[1]
              , E = O[2]
              , L = function(H) {
                var ee = e.onChange
                  , re = e.generateConfig
                  , ue = e.locale;
                m(H),
                p(H),
                ee && !pv(re, h.value, H) && ee(H, H ? Yr(H, {
                    generateConfig: re,
                    locale: ue,
                    format: s.value[0]
                }) : "")
            }
              , N = function(H) {
                e.disabled && H || S(H)
            }
              , R = function(H) {
                return C.value && y.value && y.value.onKeydown ? y.value.onKeydown(H) : !1
            }
              , $ = function() {
                e.onMouseup && e.onMouseup.apply(e, arguments),
                i.value && (i.value.focus(),
                N(!0))
            }
              , W = HM({
                blurToCancel: l,
                open: C,
                value: k,
                triggerOpen: N,
                forwardKeydown: R,
                isClickOutside: function(H) {
                    return !RJ([u.value, c.value, f.value], H)
                },
                onSubmit: function() {
                    return !g.value || e.disabledDate && e.disabledDate(g.value) ? !1 : (L(g.value),
                    N(!1),
                    E(),
                    !0)
                },
                onCancel: function() {
                    N(!1),
                    m(h.value),
                    E()
                },
                onKeydown: function(H, ee) {
                    var re;
                    (re = e.onKeydown) === null || re === void 0 || re.call(e, H, ee)
                },
                onFocus: function(H) {
                    var ee;
                    (ee = e.onFocus) === null || ee === void 0 || ee.call(e, H)
                },
                onBlur: function(H) {
                    var ee;
                    (ee = e.onBlur) === null || ee === void 0 || ee.call(e, H)
                }
            })
              , B = De(W, 2)
              , G = B[0]
              , K = B[1]
              , V = K.focused
              , U = K.typing;
            Te([C, P], function() {
                C.value || (m(h.value),
                !P.value.length || P.value[0] === "" ? D("") : M.value !== k.value && E())
            }),
            Te(o, function() {
                C.value || E()
            }),
            Te(h, function() {
                m(h.value)
            });
            var X = WM(k, {
                formatList: s,
                generateConfig: at(e, "generateConfig"),
                locale: at(e, "locale")
            })
              , Y = De(X, 3)
              , te = Y[0]
              , ne = Y[1]
              , ie = Y[2]
              , ae = function(H, ee) {
                (ee === "submit" || ee !== "key" && !l.value) && (L(H),
                N(!1))
            };
            QD({
                operationRef: y,
                hideHeader: j(function() {
                    return o.value === "time"
                }),
                panelRef: u,
                onSelect: ae,
                open: C,
                defaultOpenValue: at(e, "defaultOpenValue"),
                onDateMouseenter: ne,
                onDateMouseleave: ie
            }),
            a({
                focus: function() {
                    i.value && i.value.focus()
                },
                blur: function() {
                    i.value && i.value.blur()
                }
            });
            var q = mQ();
            return function() {
                var F, H = e.prefixCls, ee = H === void 0 ? "rc-picker" : H, re = e.id, ue = e.tabindex, ve = e.dropdownClassName, fe = e.dropdownAlign, ce = e.popupStyle, le = e.transitionName, oe = e.generateConfig, se = e.locale, xe = e.inputReadOnly, Pe = e.allowClear, Fe = e.autofocus, ze = e.picker, _e = ze === void 0 ? "date" : ze;
                e.defaultOpenValue;
                var me = e.suffixIcon
                  , Ie = e.clearIcon
                  , Oe = e.disabled
                  , Ce = e.placeholder
                  , pe = e.getPopupContainer
                  , ye = e.panelRender
                  , be = e.onMousedown
                  , Ae = e.onMouseenter
                  , Re = e.onMouseleave
                  , Ne = e.onContextmenu
                  , Se = e.onClick
                  , we = e.onSelect
                  , Ve = e.direction
                  , Ye = e.autocomplete
                  , Ue = Ye === void 0 ? "off" : Ye
                  , Ke = I(I(I({}, e), r), {}, {
                    class: he(z({}, "".concat(ee, "-panel-focused"), !U.value)),
                    style: void 0,
                    pickerValue: void 0,
                    onPickerValueChange: void 0,
                    onChange: null
                })
                  , Xe = _(g8, I(I({}, Ke), {}, {
                    generateConfig: oe,
                    value: g.value,
                    locale: se,
                    tabindex: -1,
                    onSelect: function(wt) {
                        we == null || we(wt),
                        m(wt)
                    },
                    direction: Ve,
                    onPanelChange: function(wt, Mn) {
                        var gn = e.onPanelChange;
                        ie(!0),
                        gn == null || gn(wt, Mn)
                    }
                }), null);
                ye && (Xe = ye(Xe));
                var it = _("div", {
                    class: "".concat(ee, "-panel-container"),
                    onMousedown: function(wt) {
                        wt.preventDefault()
                    }
                }, [Xe]), nt;
                me && (nt = _("span", {
                    class: "".concat(ee, "-suffix")
                }, [me]));
                var ht;
                Pe && h.value && !Oe && (ht = _("span", {
                    onMousedown: function(wt) {
                        wt.preventDefault(),
                        wt.stopPropagation()
                    },
                    onMouseup: function(wt) {
                        wt.preventDefault(),
                        wt.stopPropagation(),
                        L(null),
                        N(!1)
                    },
                    class: "".concat(ee, "-clear"),
                    role: "button"
                }, [Ie || _("span", {
                    class: "".concat(ee, "-clear-btn")
                }, null)]));
                var ft = I(I(I({
                    id: re,
                    tabindex: ue,
                    disabled: Oe,
                    readonly: xe || typeof s.value[0] == "function" || !U.value,
                    value: te.value || k.value,
                    onInput: function(wt) {
                        D(wt.target.value)
                    },
                    autofocus: Fe,
                    placeholder: Ce,
                    ref: i,
                    title: k.value
                }, G.value), {}, {
                    size: LJ(_e, s.value[0], oe)
                }, zJ(e)), {}, {
                    autocomplete: Ue
                })
                  , Zt = e.inputRender ? e.inputRender(ft) : _("input", ft, null)
                  , Tt = Ve === "rtl" ? "bottomRight" : "bottomLeft";
                return _(KJ, {
                    visible: C.value,
                    popupStyle: ce,
                    prefixCls: ee,
                    dropdownClassName: ve,
                    dropdownAlign: fe,
                    getPopupContainer: pe,
                    transitionName: le,
                    popupPlacement: Tt,
                    direction: Ve
                }, {
                    default: function() {
                        return [_("div", {
                            ref: f,
                            class: he(ee, r.class, (F = {},
                            z(F, "".concat(ee, "-disabled"), Oe),
                            z(F, "".concat(ee, "-focused"), V.value),
                            z(F, "".concat(ee, "-rtl"), Ve === "rtl"),
                            F)),
                            style: r.style,
                            onMousedown: be,
                            onMouseup: $,
                            onMouseenter: Ae,
                            onMouseleave: Re,
                            onContextmenu: Ne,
                            onClick: Se
                        }, [_("div", {
                            class: he("".concat(ee, "-input"), z({}, "".concat(ee, "-input-placeholder"), !!te.value)),
                            ref: c
                        }, [Zt, nt, ht]), q()])]
                    },
                    popupElement: function() {
                        return it
                    }
                })
            }
        }
    })
}
const z4e = V4e();
function H4e(t, e) {
    var n = t.picker
      , r = t.locale
      , a = t.selectedValue
      , i = t.disabledDate
      , o = t.disabled
      , l = t.generateConfig
      , s = j(function() {
        return un(a.value, 0)
    })
      , u = j(function() {
        return un(a.value, 1)
    });
    function c(p) {
        return l.value.locale.getWeekFirstDate(r.value.locale, p)
    }
    function f(p) {
        var g = l.value.getFullYear(p)
          , m = l.value.getMonth(p);
        return g * 100 + m
    }
    function d(p) {
        var g = l.value.getFullYear(p)
          , m = BM(l.value, p);
        return g * 10 + m
    }
    var v = function(g) {
        var m;
        if (i && i !== null && i !== void 0 && (m = i.value) !== null && m !== void 0 && m.call(i, g))
            return !0;
        if (o[1] && u)
            return !ql(l.value, g, u.value) && l.value.isAfter(g, u.value);
        if (e.value[1] && u.value)
            switch (n.value) {
            case "quarter":
                return d(g) > d(u.value);
            case "month":
                return f(g) > f(u.value);
            case "week":
                return c(g) > c(u.value);
            default:
                return !ql(l.value, g, u.value) && l.value.isAfter(g, u.value)
            }
        return !1
    }
      , h = function(g) {
        var m;
        if ((m = i.value) !== null && m !== void 0 && m.call(i, g))
            return !0;
        if (o[0] && s)
            return !ql(l.value, g, u.value) && l.value.isAfter(s.value, g);
        if (e.value[0] && s.value)
            switch (n.value) {
            case "quarter":
                return d(g) < d(s.value);
            case "month":
                return f(g) < f(s.value);
            case "week":
                return c(g) < c(s.value);
            default:
                return !ql(l.value, g, s.value) && l.value.isAfter(s.value, g)
            }
        return !1
    };
    return [v, h]
}
function j4e(t, e, n, r) {
    var a = yg(t, n, r, 1);
    function i(o) {
        return o(t, e) ? "same" : o(a, e) ? "closing" : "far"
    }
    switch (n) {
    case "year":
        return i(function(o, l) {
            return _4e(r, o, l)
        });
    case "quarter":
    case "month":
        return i(function(o, l) {
            return nw(r, o, l)
        });
    default:
        return i(function(o, l) {
            return n8(r, o, l)
        })
    }
}
function W4e(t, e, n, r) {
    var a = un(t, 0)
      , i = un(t, 1);
    if (e === 0)
        return a;
    if (a && i) {
        var o = j4e(a, i, n, r);
        switch (o) {
        case "same":
            return a;
        case "closing":
            return a;
        default:
            return yg(i, n, r, -1)
        }
    }
    return a
}
function G4e(t) {
    var e = t.values
      , n = t.picker
      , r = t.defaultDates
      , a = t.generateConfig
      , i = Q([un(r, 0), un(r, 1)])
      , o = Q(null)
      , l = j(function() {
        return un(e.value, 0)
    })
      , s = j(function() {
        return un(e.value, 1)
    })
      , u = function(h) {
        return i.value[h] ? i.value[h] : un(o.value, h) || W4e(e.value, h, n.value, a.value) || l.value || s.value || a.value.getNow()
    }
      , c = Q(null)
      , f = Q(null);
    pt(function() {
        c.value = u(0),
        f.value = u(1)
    });
    function d(v, h) {
        if (v) {
            var p = _i(o.value, v, h);
            i.value = _i(i.value, null, h) || [null, null];
            var g = (h + 1) % 2;
            un(e.value, g) || (p = _i(p, v, g)),
            o.value = p
        } else
            (l.value || s.value) && (o.value = null)
    }
    return [c, f, d]
}
function K4e(t) {
    return xC() ? (Wk(t),
    !0) : !1
}
function U4e(t) {
    return typeof t == "function" ? t() : Pn(t)
}
function UJ(t) {
    var e, n = U4e(t);
    return (e = n == null ? void 0 : n.$el) !== null && e !== void 0 ? e : n
}
function Y4e(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
    qn() ? ct(t) : e ? t() : yt(t)
}
function q4e(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1
      , n = Q()
      , r = function() {
        return n.value = Boolean(t())
    };
    return r(),
    Y4e(r, e),
    n
}
var oT, lT, YJ = typeof window != "undefined";
YJ && ((oT = window) === null || oT === void 0 || (lT = oT.navigator) === null || lT === void 0 ? void 0 : lT.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
var X4e = YJ ? window : void 0
  , Z4e = ["window"];
function Q4e(t, e) {
    var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.window, a = r === void 0 ? X4e : r, i = tt(n, Z4e), o, l = q4e(function() {
        return a && "ResizeObserver"in a
    }), s = function() {
        o && (o.disconnect(),
        o = void 0)
    }, u = Te(function() {
        return UJ(t)
    }, function(f) {
        s(),
        l.value && a && f && (o = new ResizeObserver(e),
        o.observe(f, i))
    }, {
        immediate: !0,
        flush: "post"
    }), c = function() {
        s(),
        u()
    };
    return K4e(c),
    {
        isSupported: l,
        stop: c
    }
}
function rp(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
        width: 0,
        height: 0
    }
      , n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}
      , r = n.box
      , a = r === void 0 ? "content-box" : r
      , i = Q(e.width)
      , o = Q(e.height);
    return Q4e(t, function(l) {
        var s = De(l, 1)
          , u = s[0]
          , c = a === "border-box" ? u.borderBoxSize : a === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
        c ? (i.value = c.reduce(function(f, d) {
            var v = d.inlineSize;
            return f + v
        }, 0),
        o.value = c.reduce(function(f, d) {
            var v = d.blockSize;
            return f + v
        }, 0)) : (i.value = u.contentRect.width,
        o.value = u.contentRect.height)
    }, n),
    Te(function() {
        return UJ(t)
    }, function(l) {
        i.value = l ? e.width : 0,
        o.value = l ? e.height : 0
    }),
    {
        width: i,
        height: o
    }
}
function QF(t, e) {
    return t && t[0] && t[1] && e.isAfter(t[0], t[1]) ? [t[1], t[0]] : t
}
function JF(t, e, n, r) {
    return !!(t || r && r[e] || n[(e + 1) % 2])
}
function J4e() {
    return de({
        name: "RangerPicker",
        inheritAttrs: !1,
        props: ["prefixCls", "id", "popupStyle", "dropdownClassName", "transitionName", "dropdownAlign", "getPopupContainer", "generateConfig", "locale", "placeholder", "autofocus", "disabled", "format", "picker", "showTime", "showNow", "showHour", "showMinute", "showSecond", "use12Hours", "separator", "value", "defaultValue", "defaultPickerValue", "open", "defaultOpen", "disabledDate", "disabledTime", "dateRender", "panelRender", "ranges", "allowEmpty", "allowClear", "suffixIcon", "clearIcon", "pickerRef", "inputReadOnly", "mode", "renderExtraFooter", "onChange", "onOpenChange", "onPanelChange", "onCalendarChange", "onFocus", "onBlur", "onMousedown", "onMouseup", "onMouseenter", "onMouseleave", "onClick", "onOk", "onKeydown", "components", "order", "direction", "activePickerIndex", "autocomplete", "minuteStep", "hourStep", "secondStep", "hideDisabledOptions", "disabledMinutes"],
        setup: function(e, n) {
            var r = n.attrs
              , a = n.expose
              , i = j(function() {
                return e.picker === "date" && !!e.showTime || e.picker === "time"
            })
              , o = mQ()
              , l = Q({})
              , s = Q(null)
              , u = Q(null)
              , c = Q(null)
              , f = Q(null)
              , d = Q(null)
              , v = Q(null)
              , h = Q(null)
              , p = Q(null)
              , g = j(function() {
                return VJ(EJ(e.format, e.picker, e.showTime, e.use12Hours))
            })
              , m = zn(0, {
                value: at(e, "activePickerIndex")
            })
              , y = De(m, 2)
              , b = y[0]
              , x = y[1]
              , C = Q(null)
              , S = j(function() {
                var Lt = e.disabled;
                return Array.isArray(Lt) ? Lt : [Lt || !1, Lt || !1]
            })
              , w = zn(null, {
                value: at(e, "value"),
                defaultValue: e.defaultValue,
                postState: function(rt) {
                    return e.picker === "time" && !e.order ? rt : QF(rt, e.generateConfig)
                }
            })
              , T = De(w, 2)
              , P = T[0]
              , M = T[1]
              , A = G4e({
                values: P,
                picker: at(e, "picker"),
                defaultDates: e.defaultPickerValue,
                generateConfig: at(e, "generateConfig")
            })
              , O = De(A, 3)
              , k = O[0]
              , D = O[1]
              , E = O[2]
              , L = zn(P.value, {
                postState: function(rt) {
                    var dt = rt;
                    if (S.value[0] && S.value[1])
                        return dt;
                    for (var Pt = 0; Pt < 2; Pt += 1)
                        S.value[Pt] && !un(dt, Pt) && !un(e.allowEmpty, Pt) && (dt = _i(dt, e.generateConfig.getNow(), Pt));
                    return dt
                }
            })
              , N = De(L, 2)
              , R = N[0]
              , $ = N[1]
              , W = zn([e.picker, e.picker], {
                value: at(e, "mode")
            })
              , B = De(W, 2)
              , G = B[0]
              , K = B[1];
            Te(function() {
                return e.picker
            }, function() {
                K([e.picker, e.picker])
            });
            var V = function(rt, dt) {
                var Pt;
                K(rt),
                (Pt = e.onPanelChange) === null || Pt === void 0 || Pt.call(e, dt, rt)
            }
              , U = H4e({
                picker: at(e, "picker"),
                selectedValue: R,
                locale: at(e, "locale"),
                disabled: S,
                disabledDate: at(e, "disabledDate"),
                generateConfig: at(e, "generateConfig")
            }, l)
              , X = De(U, 2)
              , Y = X[0]
              , te = X[1]
              , ne = zn(!1, {
                value: at(e, "open"),
                defaultValue: e.defaultOpen,
                postState: function(rt) {
                    return S.value[b.value] ? !1 : rt
                },
                onChange: function(rt) {
                    var dt;
                    (dt = e.onOpenChange) === null || dt === void 0 || dt.call(e, rt),
                    !rt && C.value && C.value.onClose && C.value.onClose()
                }
            })
              , ie = De(ne, 2)
              , ae = ie[0]
              , q = ie[1]
              , F = j(function() {
                return ae.value && b.value === 0
            })
              , H = j(function() {
                return ae.value && b.value === 1
            })
              , ee = Q(0)
              , re = Q(0)
              , ue = Q(0)
              , ve = rp(s)
              , fe = ve.width;
            Te([ae, fe], function() {
                !ae.value && s.value && (ue.value = fe.value)
            });
            var ce = rp(u)
              , le = ce.width
              , oe = rp(p)
              , se = oe.width
              , xe = rp(c)
              , Pe = xe.width
              , Fe = rp(d)
              , ze = Fe.width;
            Te([b, ae, le, se, Pe, ze, function() {
                return e.direction
            }
            ], function() {
                re.value = 0,
                ae.value && b.value ? c.value && d.value && u.value && (re.value = Pe.value + ze.value,
                le.value && se.value && re.value > le.value - se.value - (e.direction === "rtl" || p.value.offsetLeft > re.value ? 0 : p.value.offsetLeft) && (ee.value = re.value)) : b.value === 0 && (ee.value = 0)
            }, {
                immediate: !0
            });
            var _e = Q();
            function me(Lt, rt) {
                if (Lt)
                    clearTimeout(_e.value),
                    l.value[rt] = !0,
                    x(rt),
                    q(Lt),
                    ae.value || E(null, rt);
                else if (b.value === rt) {
                    q(Lt);
                    var dt = l.value;
                    _e.value = setTimeout(function() {
                        dt === l.value && (l.value = {})
                    })
                }
            }
            function Ie(Lt) {
                me(!0, Lt),
                setTimeout(function() {
                    var rt = [v, h][Lt];
                    rt.value && rt.value.focus()
                }, 0)
            }
            function Oe(Lt, rt) {
                var dt = Lt
                  , Pt = un(dt, 0)
                  , Vt = un(dt, 1)
                  , lr = e.generateConfig
                  , ws = e.locale
                  , Eo = e.picker
                  , jh = e.order
                  , Xu = e.onCalendarChange
                  , ud = e.allowEmpty
                  , Al = e.onChange
                  , Wh = e.showTime;
                Pt && Vt && lr.isAfter(Pt, Vt) && (Eo === "week" && !$J(lr, ws.locale, Pt, Vt) || Eo === "quarter" && !NJ(lr, Pt, Vt) || Eo !== "week" && Eo !== "quarter" && Eo !== "time" && !(Wh ? pv(lr, Pt, Vt) : ql(lr, Pt, Vt)) ? (rt === 0 ? (dt = [Pt, null],
                Vt = null) : (Pt = null,
                dt = [null, Vt]),
                l.value = z({}, rt, !0)) : (Eo !== "time" || jh !== !1) && (dt = QF(dt, lr))),
                $(dt);
                var Lo = dt && dt[0] ? Yr(dt[0], {
                    generateConfig: lr,
                    locale: ws,
                    format: g.value[0]
                }) : ""
                  , qi = dt && dt[1] ? Yr(dt[1], {
                    generateConfig: lr,
                    locale: ws,
                    format: g.value[0]
                }) : "";
                if (Xu) {
                    var Ro = {
                        range: rt === 0 ? "start" : "end"
                    };
                    Xu(dt, [Lo, qi], Ro)
                }
                var fi = JF(Pt, 0, S.value, ud)
                  , $2 = JF(Vt, 1, S.value, ud)
                  , dy = dt === null || fi && $2;
                dy && (M(dt),
                Al && (!pv(lr, un(P.value, 0), Pt) || !pv(lr, un(P.value, 1), Vt)) && Al(dt, [Lo, qi]));
                var Il = null;
                rt === 0 && !S.value[1] ? Il = 1 : rt === 1 && !S.value[0] && (Il = 0),
                Il !== null && Il !== b.value && (!l.value[Il] || !un(dt, Il)) && un(dt, rt) ? Ie(Il) : me(!1, rt)
            }
            var Ce = function(rt) {
                return ae && C.value && C.value.onKeydown ? C.value.onKeydown(rt) : !1
            }
              , pe = {
                formatList: g,
                generateConfig: at(e, "generateConfig"),
                locale: at(e, "locale")
            }
              , ye = Ux(j(function() {
                return un(R.value, 0)
            }), pe)
              , be = De(ye, 2)
              , Ae = be[0]
              , Re = be[1]
              , Ne = Ux(j(function() {
                return un(R.value, 1)
            }), pe)
              , Se = De(Ne, 2)
              , we = Se[0]
              , Ve = Se[1]
              , Ye = function(rt, dt) {
                var Pt = FJ(rt, {
                    locale: e.locale,
                    formatList: g.value,
                    generateConfig: e.generateConfig
                })
                  , Vt = dt === 0 ? Y : te;
                Pt && !Vt(Pt) && ($(_i(R.value, Pt, dt)),
                E(Pt, dt))
            }
              , Ue = jM({
                valueTexts: Ae,
                onTextChange: function(rt) {
                    return Ye(rt, 0)
                }
            })
              , Ke = De(Ue, 3)
              , Xe = Ke[0]
              , it = Ke[1]
              , nt = Ke[2]
              , ht = jM({
                valueTexts: we,
                onTextChange: function(rt) {
                    return Ye(rt, 1)
                }
            })
              , ft = De(ht, 3)
              , Zt = ft[0]
              , Tt = ft[1]
              , bt = ft[2]
              , wt = Rn(null)
              , Mn = De(wt, 2)
              , gn = Mn[0]
              , or = Mn[1]
              , er = Rn(null)
              , xn = De(er, 2)
              , Sn = xn[0]
              , Fn = xn[1]
              , Wa = WM(Xe, pe)
              , Ln = De(Wa, 3)
              , Ia = Ln[0]
              , ci = Ln[1]
              , Do = Ln[2]
              , ca = WM(Zt, pe)
              , fa = De(ca, 3)
              , tr = fa[0]
              , Ga = fa[1]
              , Ml = fa[2]
              , Afe = function(rt) {
                Fn(_i(R.value, rt, b.value)),
                b.value === 0 ? ci(rt) : Ga(rt)
            }
              , Ife = function() {
                Fn(_i(R.value, null, b.value)),
                b.value === 0 ? Do() : Ml()
            }
              , VL = function(rt, dt) {
                return {
                    forwardKeydown: Ce,
                    onBlur: function(Vt) {
                        var lr;
                        (lr = e.onBlur) === null || lr === void 0 || lr.call(e, Vt)
                    },
                    isClickOutside: function(Vt) {
                        return !RJ([u.value, c.value, f.value, s.value], Vt)
                    },
                    onFocus: function(Vt) {
                        var lr;
                        x(rt),
                        (lr = e.onFocus) === null || lr === void 0 || lr.call(e, Vt)
                    },
                    triggerOpen: function(Vt) {
                        me(Vt, rt)
                    },
                    onSubmit: function() {
                        if (!R.value || e.disabledDate && e.disabledDate(R.value[rt]))
                            return !1;
                        Oe(R.value, rt),
                        dt()
                    },
                    onCancel: function() {
                        me(!1, rt),
                        $(P.value),
                        dt()
                    }
                }
            }
              , kfe = HM(I(I({}, VL(0, nt)), {}, {
                blurToCancel: i,
                open: F,
                value: Xe,
                onKeydown: function(rt, dt) {
                    var Pt;
                    (Pt = e.onKeydown) === null || Pt === void 0 || Pt.call(e, rt, dt)
                }
            }))
              , zL = De(kfe, 2)
              , Ofe = zL[0]
              , HL = zL[1]
              , jL = HL.focused
              , WL = HL.typing
              , Dfe = HM(I(I({}, VL(1, bt)), {}, {
                blurToCancel: i,
                open: H,
                value: Zt,
                onKeydown: function(rt, dt) {
                    var Pt;
                    (Pt = e.onKeydown) === null || Pt === void 0 || Pt.call(e, rt, dt)
                }
            }))
              , GL = De(Dfe, 2)
              , Efe = GL[0]
              , KL = GL[1]
              , UL = KL.focused
              , YL = KL.typing
              , Lfe = function(rt) {
                var dt;
                (dt = e.onClick) === null || dt === void 0 || dt.call(e, rt),
                !ae.value && !v.value.contains(rt.target) && !h.value.contains(rt.target) && (S.value[0] ? S.value[1] || Ie(1) : Ie(0))
            }
              , Rfe = function(rt) {
                var dt;
                (dt = e.onMousedown) === null || dt === void 0 || dt.call(e, rt),
                ae.value && (jL.value || UL.value) && !v.value.contains(rt.target) && !h.value.contains(rt.target) && rt.preventDefault()
            }
              , Nfe = j(function() {
                var Lt;
                return (Lt = P.value) !== null && Lt !== void 0 && Lt[0] ? Yr(P.value[0], {
                    locale: e.locale,
                    format: "YYYYMMDDHHmmss",
                    generateConfig: e.generateConfig
                }) : ""
            })
              , $fe = j(function() {
                var Lt;
                return (Lt = P.value) !== null && Lt !== void 0 && Lt[1] ? Yr(P.value[1], {
                    locale: e.locale,
                    format: "YYYYMMDDHHmmss",
                    generateConfig: e.generateConfig
                }) : ""
            });
            Te([ae, Ae, we], function() {
                ae.value || ($(P.value),
                !Ae.value.length || Ae.value[0] === "" ? it("") : Re.value !== Xe.value && nt(),
                !we.value.length || we.value[0] === "" ? Tt("") : Ve.value !== Zt.value && bt())
            }),
            Te([Nfe, $fe], function() {
                $(P.value)
            }),
            a({
                focus: function() {
                    v.value && v.value.focus()
                },
                blur: function() {
                    v.value && v.value.blur(),
                    h.value && h.value.blur()
                }
            });
            var Ffe = j(function() {
                return Object.keys(e.ranges || {}).map(function(Lt) {
                    var rt = e.ranges[Lt]
                      , dt = typeof rt == "function" ? rt() : rt;
                    return {
                        label: Lt,
                        onClick: function() {
                            Oe(dt, null),
                            me(!1, b.value)
                        },
                        onMouseenter: function() {
                            or(dt)
                        },
                        onMouseleave: function() {
                            or(null)
                        }
                    }
                })
            })
              , Bfe = j(function() {
                return ae.value && Sn.value && Sn.value[0] && Sn.value[1] && e.generateConfig.isAfter(Sn.value[1], Sn.value[0]) ? Sn.value : null
            });
            function N2() {
                var Lt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1
                  , rt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
                  , dt = e.generateConfig
                  , Pt = e.showTime
                  , Vt = e.dateRender
                  , lr = e.direction
                  , ws = e.disabledTime
                  , Eo = e.prefixCls
                  , jh = e.locale
                  , Xu = Pt;
                if (Pt && We(Pt) === "object" && Pt.defaultValue) {
                    var ud = Pt.defaultValue;
                    Xu = I(I({}, Pt), {}, {
                        defaultValue: un(ud, b.value) || void 0
                    })
                }
                var Al = null;
                return Vt && (Al = function(Lo) {
                    var qi = Lo.current
                      , Ro = Lo.today;
                    return Vt({
                        current: qi,
                        today: Ro,
                        info: {
                            range: b.value ? "end" : "start"
                        }
                    })
                }
                ),
                _(D4e, {
                    value: {
                        inRange: !0,
                        panelPosition: Lt,
                        rangedValue: gn.value || R.value,
                        hoverRangedValue: Bfe.value
                    }
                }, {
                    default: function() {
                        return [_(g8, I(I(I({}, e), rt), {}, {
                            dateRender: Al,
                            showTime: Xu,
                            mode: G.value[b.value],
                            generateConfig: dt,
                            style: void 0,
                            direction: lr,
                            disabledDate: b.value === 0 ? Y : te,
                            disabledTime: function(qi) {
                                return ws ? ws(qi, b.value === 0 ? "start" : "end") : !1
                            },
                            class: he(z({}, "".concat(Eo, "-panel-focused"), b.value === 0 ? !WL.value : !YL.value)),
                            value: un(R.value, b.value),
                            locale: jh,
                            tabIndex: -1,
                            onPanelChange: function(qi, Ro) {
                                b.value === 0 && Do(!0),
                                b.value === 1 && Ml(!0),
                                V(_i(G.value, Ro, b.value), _i(R.value, qi, b.value));
                                var fi = qi;
                                Lt === "right" && G.value[b.value] === Ro && (fi = yg(fi, Ro, dt, -1)),
                                E(fi, b.value)
                            },
                            onOk: null,
                            onSelect: void 0,
                            onChange: void 0,
                            defaultValue: b.value === 0 ? un(R.value, 1) : un(R.value, 0)
                        }), null)]
                    }
                })
            }
            var Vfe = function(rt, dt) {
                var Pt = _i(R.value, rt, b.value);
                dt === "submit" || dt !== "key" && !i.value ? (Oe(Pt, b.value),
                b.value === 0 ? Do() : Ml()) : $(Pt)
            };
            return QD({
                operationRef: C,
                hideHeader: j(function() {
                    return e.picker === "time"
                }),
                onDateMouseenter: Afe,
                onDateMouseleave: Ife,
                hideRanges: j(function() {
                    return !0
                }),
                onSelect: Vfe,
                open: ae
            }),
            function() {
                var Lt, rt, dt, Pt = e.prefixCls, Vt = Pt === void 0 ? "rc-picker" : Pt, lr = e.id, ws = e.popupStyle, Eo = e.dropdownClassName, jh = e.transitionName, Xu = e.dropdownAlign, ud = e.getPopupContainer, Al = e.generateConfig, Wh = e.locale, Lo = e.placeholder, qi = e.autofocus, Ro = e.picker, fi = Ro === void 0 ? "date" : Ro, $2 = e.showTime, dy = e.separator, Il = dy === void 0 ? "~" : dy, qL = e.disabledDate, XL = e.panelRender, zfe = e.allowClear, ZL = e.suffixIcon, Hfe = e.clearIcon, QL = e.inputReadOnly, jfe = e.renderExtraFooter, Wfe = e.onMouseenter, Gfe = e.onMouseleave, Kfe = e.onMouseup, JL = e.onOk, Ufe = e.components, Gh = e.direction, eR = e.autocomplete, tR = eR === void 0 ? "off" : eR, Yfe = Gh === "rtl" ? {
                    right: "".concat(re.value, "px")
                } : {
                    left: "".concat(re.value, "px")
                };
                function qfe() {
                    var _s, No = WJ(Vt, G.value[b.value], jfe), di = GJ({
                        prefixCls: Vt,
                        components: Ufe,
                        needConfirmButton: i.value,
                        okDisabled: !un(R.value, b.value) || qL && qL(R.value[b.value]),
                        locale: Wh,
                        rangeList: Ffe.value,
                        onOk: function() {
                            un(R.value, b.value) && (Oe(R.value, b.value),
                            JL && JL(R.value))
                        }
                    });
                    if (fi !== "time" && !$2) {
                        var iR = b.value === 0 ? k.value : D.value
                          , Qfe = yg(iR, fi, Al)
                          , Jfe = G.value[b.value]
                          , V2 = Jfe === fi
                          , oR = N2(V2 ? "left" : !1, {
                            pickerValue: iR,
                            onPickerValueChange: function(Kh) {
                                E(Kh, b.value)
                            }
                        })
                          , lR = N2("right", {
                            pickerValue: Qfe,
                            onPickerValueChange: function(Kh) {
                                E(yg(Kh, fi, Al, -1), b.value)
                            }
                        });
                        Gh === "rtl" ? _s = _(xt, null, [lR, V2 && oR]) : _s = _(xt, null, [oR, V2 && lR])
                    } else
                        _s = N2();
                    var z2 = _(xt, null, [_("div", {
                        class: "".concat(Vt, "-panels")
                    }, [_s]), (No || di) && _("div", {
                        class: "".concat(Vt, "-footer")
                    }, [No, di])]);
                    return XL && (z2 = XL(z2)),
                    _("div", {
                        class: "".concat(Vt, "-panel-container"),
                        style: {
                            marginLeft: "".concat(ee.value, "px")
                        },
                        ref: u,
                        onMousedown: function(Kh) {
                            Kh.preventDefault()
                        }
                    }, [z2])
                }
                var Xfe = _("div", {
                    class: he("".concat(Vt, "-range-wrapper"), "".concat(Vt, "-").concat(fi, "-range-wrapper")),
                    style: {
                        minWidth: "".concat(ue.value, "px")
                    }
                }, [_("div", {
                    ref: p,
                    class: "".concat(Vt, "-range-arrow"),
                    style: Yfe
                }, null), qfe()]), nR;
                ZL && (nR = _("span", {
                    class: "".concat(Vt, "-suffix")
                }, [ZL]));
                var rR;
                zfe && (un(P.value, 0) && !S.value[0] || un(P.value, 1) && !S.value[1]) && (rR = _("span", {
                    onMousedown: function(No) {
                        No.preventDefault(),
                        No.stopPropagation()
                    },
                    onMouseup: function(No) {
                        No.preventDefault(),
                        No.stopPropagation();
                        var di = P.value;
                        S.value[0] || (di = _i(di, null, 0)),
                        S.value[1] || (di = _i(di, null, 1)),
                        Oe(di, null),
                        me(!1, b.value)
                    },
                    class: "".concat(Vt, "-clear")
                }, [Hfe || _("span", {
                    class: "".concat(Vt, "-clear-btn")
                }, null)]));
                var aR = {
                    size: LJ(fi, g.value[0], Al)
                }
                  , F2 = 0
                  , B2 = 0;
                c.value && f.value && d.value && (b.value === 0 ? B2 = c.value.offsetWidth : (F2 = re.value,
                B2 = f.value.offsetWidth));
                var Zfe = Gh === "rtl" ? {
                    right: "".concat(F2, "px")
                } : {
                    left: "".concat(F2, "px")
                };
                return _(KJ, {
                    visible: ae.value,
                    popupStyle: ws,
                    prefixCls: Vt,
                    dropdownClassName: Eo,
                    dropdownAlign: Xu,
                    getPopupContainer: ud,
                    transitionName: jh,
                    range: !0,
                    direction: Gh
                }, {
                    default: function() {
                        return [_("div", I({
                            ref: s,
                            class: he(Vt, "".concat(Vt, "-range"), r.class, (Lt = {},
                            z(Lt, "".concat(Vt, "-disabled"), S.value[0] && S.value[1]),
                            z(Lt, "".concat(Vt, "-focused"), b.value === 0 ? jL.value : UL.value),
                            z(Lt, "".concat(Vt, "-rtl"), Gh === "rtl"),
                            Lt)),
                            style: r.style,
                            onClick: Lfe,
                            onMouseenter: Wfe,
                            onMouseleave: Gfe,
                            onMousedown: Rfe,
                            onMouseup: Kfe
                        }, zJ(e)), [_("div", {
                            class: he("".concat(Vt, "-input"), (rt = {},
                            z(rt, "".concat(Vt, "-input-active"), b.value === 0),
                            z(rt, "".concat(Vt, "-input-placeholder"), !!Ia.value),
                            rt)),
                            ref: c
                        }, [_("input", I(I(I({
                            id: lr,
                            disabled: S.value[0],
                            readonly: QL || typeof g.value[0] == "function" || !WL.value,
                            value: Ia.value || Xe.value,
                            onInput: function(di) {
                                it(di.target.value)
                            },
                            autofocus: qi,
                            placeholder: un(Lo, 0) || "",
                            ref: v
                        }, Ofe.value), aR), {}, {
                            autocomplete: tR
                        }), null)]), _("div", {
                            class: "".concat(Vt, "-range-separator"),
                            ref: d
                        }, [Il]), _("div", {
                            class: he("".concat(Vt, "-input"), (dt = {},
                            z(dt, "".concat(Vt, "-input-active"), b.value === 1),
                            z(dt, "".concat(Vt, "-input-placeholder"), !!tr.value),
                            dt)),
                            ref: f
                        }, [_("input", I(I(I({
                            disabled: S.value[1],
                            readonly: QL || typeof g.value[0] == "function" || !YL.value,
                            value: tr.value || Zt.value,
                            onInput: function(di) {
                                Tt(di.target.value)
                            },
                            placeholder: un(Lo, 1) || "",
                            ref: h
                        }, Efe.value), aR), {}, {
                            autocomplete: tR
                        }), null)]), _("div", {
                            class: "".concat(Vt, "-active-bar"),
                            style: I(I({}, Zfe), {}, {
                                width: "".concat(B2, "px"),
                                position: "absolute"
                            })
                        }, null), nR, rR, o()])]
                    },
                    popupElement: function() {
                        return Xfe
                    }
                })
            }
        }
    })
}
var e3e = J4e();
const t3e = e3e;
var n3e = ["prefixCls", "name", "id", "type", "disabled", "readonly", "tabindex", "autofocus", "value", "required"]
  , r3e = {
    prefixCls: String,
    name: String,
    id: String,
    type: String,
    defaultChecked: {
        type: [Boolean, Number],
        default: void 0
    },
    checked: {
        type: [Boolean, Number],
        default: void 0
    },
    disabled: Boolean,
    tabindex: {
        type: [Number, String]
    },
    readonly: Boolean,
    autofocus: Boolean,
    value: J.any,
    required: Boolean
};
const qJ = de({
    compatConfig: {
        MODE: 3
    },
    name: "Checkbox",
    inheritAttrs: !1,
    props: $t(r3e, {
        prefixCls: "rc-checkbox",
        type: "checkbox",
        defaultChecked: !1
    }),
    emits: ["click", "change"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.emit
          , i = n.expose
          , o = Q(e.checked === void 0 ? e.defaultChecked : e.checked)
          , l = Q();
        Te(function() {
            return e.checked
        }, function() {
            o.value = e.checked
        }),
        i({
            focus: function() {
                var d;
                (d = l.value) === null || d === void 0 || d.focus()
            },
            blur: function() {
                var d;
                (d = l.value) === null || d === void 0 || d.blur()
            }
        });
        var s = Q()
          , u = function(d) {
            if (!e.disabled) {
                e.checked === void 0 && (o.value = d.target.checked),
                d.shiftKey = s.value;
                var v = {
                    target: I(I({}, e), {}, {
                        checked: d.target.checked
                    }),
                    stopPropagation: function() {
                        d.stopPropagation()
                    },
                    preventDefault: function() {
                        d.preventDefault()
                    },
                    nativeEvent: d
                };
                e.checked !== void 0 && (l.value.checked = !!e.checked),
                a("change", v),
                s.value = !1
            }
        }
          , c = function(d) {
            a("click", d),
            s.value = d.shiftKey
        };
        return function() {
            var f, d = e.prefixCls, v = e.name, h = e.id, p = e.type, g = e.disabled, m = e.readonly, y = e.tabindex, b = e.autofocus, x = e.value, C = e.required, S = tt(e, n3e), w = r.class, T = r.onFocus, P = r.onBlur, M = r.onKeydown, A = r.onKeypress, O = r.onKeyup, k = I(I({}, S), r), D = Object.keys(k).reduce(function(N, R) {
                return (R.substr(0, 5) === "aria-" || R.substr(0, 5) === "data-" || R === "role") && (N[R] = k[R]),
                N
            }, {}), E = he(d, w, (f = {},
            z(f, "".concat(d, "-checked"), o.value),
            z(f, "".concat(d, "-disabled"), g),
            f)), L = I(I({
                name: v,
                id: h,
                type: p,
                readonly: m,
                disabled: g,
                tabindex: y,
                class: "".concat(d, "-input"),
                checked: !!o.value,
                autofocus: b,
                value: x
            }, D), {}, {
                onChange: u,
                onClick: c,
                onFocus: T,
                onBlur: P,
                onKeydown: M,
                onKeypress: A,
                onKeyup: O,
                required: C
            });
            return _("span", {
                class: E
            }, [_("input", I({
                ref: l
            }, L), null), _("span", {
                class: "".concat(d, "-inner")
            }, null)])
        }
    }
});
var a3e = ["prefixCls", "id"]
  , XJ = function() {
    return {
        prefixCls: String,
        checked: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        isGroup: {
            type: Boolean,
            default: void 0
        },
        value: J.any,
        name: String,
        id: String,
        autofocus: {
            type: Boolean,
            default: void 0
        },
        onChange: Function,
        onFocus: Function,
        onBlur: Function,
        onClick: Function,
        "onUpdate:checked": Function,
        "onUpdate:value": Function
    }
};
const xa = de({
    compatConfig: {
        MODE: 3
    },
    name: "ARadio",
    props: XJ(),
    setup: function(e, n) {
        var r = n.emit
          , a = n.expose
          , i = n.slots
          , o = br()
          , l = Q()
          , s = vt("radioGroupContext", void 0)
          , u = je("radio", e)
          , c = u.prefixCls
          , f = u.direction
          , d = function() {
            l.value.focus()
        }
          , v = function() {
            l.value.blur()
        };
        a({
            focus: d,
            blur: v
        });
        var h = function(m) {
            var y = m.target.checked;
            r("update:checked", y),
            r("update:value", y),
            r("change", m),
            o.onFieldChange()
        }
          , p = function(m) {
            r("change", m),
            s && s.onRadioChange && s.onRadioChange(m)
        };
        return function() {
            var g, m = s;
            e.prefixCls;
            var y = e.id
              , b = y === void 0 ? o.id.value : y
              , x = tt(e, a3e)
              , C = I({
                prefixCls: c.value,
                id: b
            }, Et(x, ["onUpdate:checked", "onUpdate:value"]));
            m ? (C.name = m.props.name,
            C.onChange = p,
            C.checked = e.value === m.stateValue.value,
            C.disabled = e.disabled || m.props.disabled) : C.onChange = h;
            var S = he((g = {},
            z(g, "".concat(c.value, "-wrapper"), !0),
            z(g, "".concat(c.value, "-wrapper-checked"), C.checked),
            z(g, "".concat(c.value, "-wrapper-disabled"), C.disabled),
            z(g, "".concat(c.value, "-wrapper-rtl"), f.value === "rtl"),
            g));
            return _("label", {
                class: S
            }, [_(qJ, I(I({}, C), {}, {
                type: "radio",
                ref: l
            }), null), i.default && _("span", null, [i.default()])])
        }
    }
});
var i3e = Kn("large", "default", "small")
  , o3e = function() {
    return {
        prefixCls: String,
        value: J.any,
        size: J.oneOf(i3e),
        options: {
            type: Array
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        name: String,
        buttonStyle: {
            type: String,
            default: "outline"
        },
        id: String,
        optionType: {
            type: String,
            default: "default"
        },
        onChange: Function,
        "onUpdate:value": Function
    }
};
const m8 = de({
    compatConfig: {
        MODE: 3
    },
    name: "ARadioGroup",
    props: o3e(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = br()
          , o = je("radio", e)
          , l = o.prefixCls
          , s = o.direction
          , u = o.size
          , c = Q(e.value)
          , f = Q(!1);
        Te(function() {
            return e.value
        }, function(v) {
            c.value = v,
            f.value = !1
        });
        var d = function(h) {
            var p = c.value
              , g = h.target.value;
            "value"in e || (c.value = g),
            !f.value && g !== p && (f.value = !0,
            a("update:value", g),
            a("change", h),
            i.onFieldChange()),
            yt(function() {
                f.value = !1
            })
        };
        return It("radioGroupContext", {
            onRadioChange: d,
            stateValue: c,
            props: e
        }),
        function() {
            var v, h = e.options, p = e.optionType, g = e.buttonStyle, m = e.id, y = m === void 0 ? i.id.value : m, b = "".concat(l.value, "-group"), x = he(b, "".concat(b, "-").concat(g), (v = {},
            z(v, "".concat(b, "-").concat(u.value), u.value),
            z(v, "".concat(b, "-rtl"), s.value === "rtl"),
            v)), C = null;
            if (h && h.length > 0) {
                var S = p === "button" ? "".concat(l.value, "-button") : l.value;
                C = h.map(function(T) {
                    if (typeof T == "string" || typeof T == "number")
                        return _(xa, {
                            key: T,
                            prefixCls: S,
                            disabled: e.disabled,
                            value: T,
                            checked: c.value === T
                        }, {
                            default: function() {
                                return [T]
                            }
                        });
                    var P = T.value
                      , M = T.disabled
                      , A = T.label;
                    return _(xa, {
                        key: "radio-group-value-options-".concat(P),
                        prefixCls: S,
                        disabled: M || e.disabled,
                        value: P,
                        checked: c.value === P
                    }, {
                        default: function() {
                            return [A]
                        }
                    })
                })
            } else {
                var w;
                C = (w = r.default) === null || w === void 0 ? void 0 : w.call(r)
            }
            return _("div", {
                class: x,
                id: y
            }, [C])
        }
    }
})
  , Yx = de({
    compatConfig: {
        MODE: 3
    },
    name: "ARadioButton",
    props: XJ(),
    setup: function(e, n) {
        var r = n.slots
          , a = je("radio-button", e)
          , i = a.prefixCls
          , o = vt("radioGroupContext", void 0);
        return function() {
            var l, s = I(I({}, e), {}, {
                prefixCls: i.value
            });
            return o && (s.onChange = o.onRadioChange,
            s.checked = s.value === o.stateValue.value,
            s.disabled = s.disabled || o.props.disabled),
            _(xa, s, {
                default: function() {
                    return [(l = r.default) === null || l === void 0 ? void 0 : l.call(r)]
                }
            })
        }
    }
});
xa.Group = m8;
xa.Button = Yx;
xa.install = function(t) {
    return t.component(xa.name, xa),
    t.component(xa.Group.name, xa.Group),
    t.component(xa.Button.name, xa.Button),
    t
}
;
var l3e = 10
  , s3e = 20;
function ZJ(t) {
    var e = t.fullscreen
      , n = t.validRange
      , r = t.generateConfig
      , a = t.locale
      , i = t.prefixCls
      , o = t.value
      , l = t.onChange
      , s = t.divRef
      , u = r.getFullYear(o || r.getNow())
      , c = u - l3e
      , f = c + s3e;
    n && (c = r.getFullYear(n[0]),
    f = r.getFullYear(n[1]) + 1);
    for (var d = a && a.year === "\u5E74" ? "\u5E74" : "", v = [], h = c; h < f; h++)
        v.push({
            label: "".concat(h).concat(d),
            value: h
        });
    return _(Au, {
        size: e ? void 0 : "small",
        options: v,
        value: u,
        class: "".concat(i, "-year-select"),
        onChange: function(g) {
            var m = r.setYear(o, g);
            if (n) {
                var y = De(n, 2)
                  , b = y[0]
                  , x = y[1]
                  , C = r.getFullYear(m)
                  , S = r.getMonth(m);
                C === r.getFullYear(x) && S > r.getMonth(x) && (m = r.setMonth(m, r.getMonth(x))),
                C === r.getFullYear(b) && S < r.getMonth(b) && (m = r.setMonth(m, r.getMonth(b)))
            }
            l(m)
        },
        getPopupContainer: function() {
            return s.value
        }
    }, null)
}
ZJ.inheritAttrs = !1;
function QJ(t) {
    var e = t.prefixCls
      , n = t.fullscreen
      , r = t.validRange
      , a = t.value
      , i = t.generateConfig
      , o = t.locale
      , l = t.onChange
      , s = t.divRef
      , u = i.getMonth(a || i.getNow())
      , c = 0
      , f = 11;
    if (r) {
        var d = De(r, 2)
          , v = d[0]
          , h = d[1]
          , p = i.getFullYear(a);
        i.getFullYear(h) === p && (f = i.getMonth(h)),
        i.getFullYear(v) === p && (c = i.getMonth(v))
    }
    for (var g = o.shortMonths || i.locale.getShortMonths(o.locale), m = [], y = c; y <= f; y += 1)
        m.push({
            label: g[y],
            value: y
        });
    return _(Au, {
        size: n ? void 0 : "small",
        class: "".concat(e, "-month-select"),
        value: u,
        options: m,
        onChange: function(x) {
            l(i.setMonth(a, x))
        },
        getPopupContainer: function() {
            return s.value
        }
    }, null)
}
QJ.inheritAttrs = !1;
function JJ(t) {
    var e = t.prefixCls
      , n = t.locale
      , r = t.mode
      , a = t.fullscreen
      , i = t.onModeChange;
    return _(m8, {
        onChange: function(l) {
            var s = l.target.value;
            i(s)
        },
        value: r,
        size: a ? void 0 : "small",
        class: "".concat(e, "-mode-switch")
    }, {
        default: function() {
            return [_(Yx, {
                value: "month"
            }, {
                default: function() {
                    return [n.month]
                }
            }), _(Yx, {
                value: "year"
            }, {
                default: function() {
                    return [n.year]
                }
            })]
        }
    })
}
JJ.inheritAttrs = !1;
const u3e = de({
    name: "CalendarHeader",
    inheritAttrs: !1,
    props: ["mode", "prefixCls", "value", "validRange", "generateConfig", "locale", "mode", "fullscreen"],
    setup: function(e, n) {
        var r = n.attrs
          , a = Q(null);
        return function() {
            var i = I(I({}, e), r)
              , o = i.prefixCls
              , l = i.fullscreen
              , s = i.mode
              , u = i.onChange
              , c = i.onModeChange
              , f = I(I({}, i), {}, {
                onChange: u,
                fullscreen: l,
                divRef: a
            });
            return _("div", {
                class: "".concat(o, "-header"),
                ref: a
            }, [_(ZJ, f, null), s === "month" && _(QJ, f, null), _(JJ, I(I({}, f), {}, {
                onModeChange: c
            }), null)])
        }
    }
});
function c3e(t) {
    function e(i, o) {
        return i && o && t.getFullYear(i) === t.getFullYear(o)
    }
    function n(i, o) {
        return e(i, o) && t.getMonth(i) === t.getMonth(o)
    }
    function r(i, o) {
        return n(i, o) && t.getDate(i) === t.getDate(o)
    }
    var a = de({
        name: "ACalendar",
        inheritAttrs: !1,
        props: ["prefixCls", "locale", "validRange", "disabledDate", "dateFullCellRender", "dateCellRender", "monthFullCellRender", "monthCellRender", "headerRender", "value", "defaultValue", "mode", "fullscreen", "onChange", "onPanelChange", "onSelect", "valueFormat"],
        slots: ["dateFullCellRender", "dateCellRender", "monthFullCellRender", "monthCellRender", "headerRender"],
        setup: function(o, l) {
            var s = l.emit
              , u = l.slots
              , c = l.attrs
              , f = je("picker", o)
              , d = f.prefixCls
              , v = f.direction
              , h = j(function() {
                return "".concat(d.value, "-calendar")
            })
              , p = function(B) {
                return o.valueFormat ? t.toString(B, o.valueFormat) : B
            }
              , g = j(function() {
                return o.value ? o.valueFormat ? t.toDate(o.value, o.valueFormat) : o.value : o.value === "" ? void 0 : o.value
            })
              , m = j(function() {
                return o.defaultValue ? o.valueFormat ? t.toDate(o.defaultValue, o.valueFormat) : o.defaultValue : o.defaultValue === "" ? void 0 : o.defaultValue
            })
              , y = zn(function() {
                return g.value || t.getNow()
            }, {
                defaultValue: m.value,
                value: g
            })
              , b = De(y, 2)
              , x = b[0]
              , C = b[1]
              , S = zn("month", {
                value: at(o, "mode")
            })
              , w = De(S, 2)
              , T = w[0]
              , P = w[1]
              , M = j(function() {
                return T.value === "year" ? "month" : "date"
            })
              , A = j(function() {
                return function(W) {
                    var B, G = o.validRange ? t.isAfter(o.validRange[0], W) || t.isAfter(W, o.validRange[1]) : !1;
                    return G || !!((B = o.disabledDate) !== null && B !== void 0 && B.call(o, W))
                }
            })
              , O = function(B, G) {
                s("panelChange", p(B), G)
            }
              , k = function(B) {
                if (C(B),
                !r(B, x.value)) {
                    (M.value === "date" && !n(B, x.value) || M.value === "month" && !e(B, x.value)) && O(B, T.value);
                    var G = p(B);
                    s("update:value", G),
                    s("change", G)
                }
            }
              , D = function(B) {
                P(B),
                O(x.value, B)
            }
              , E = function(B) {
                k(B),
                s("select", p(B))
            }
              , L = j(function() {
                var W = o.locale
                  , B = I(I({}, a0), W);
                return B.lang = I(I({}, B.lang), (W || {}).lang),
                B
            })
              , N = xl("Calendar", L)
              , R = De(N, 1)
              , $ = R[0];
            return function() {
                var W, B = t.getNow(), G = o.dateFullCellRender, K = G === void 0 ? u == null ? void 0 : u.dateFullCellRender : G, V = o.dateCellRender, U = V === void 0 ? u == null ? void 0 : u.dateCellRender : V, X = o.monthFullCellRender, Y = X === void 0 ? u == null ? void 0 : u.monthFullCellRender : X, te = o.monthCellRender, ne = te === void 0 ? u == null ? void 0 : u.monthCellRender : te, ie = o.headerRender, ae = ie === void 0 ? u == null ? void 0 : u.headerRender : ie, q = o.fullscreen, F = q === void 0 ? !0 : q, H = o.validRange, ee = function(ve) {
                    var fe = ve.current;
                    return K ? K({
                        current: fe
                    }) : _("div", {
                        class: he("".concat(d.value, "-cell-inner"), "".concat(h.value, "-date"), z({}, "".concat(h.value, "-date-today"), r(B, fe)))
                    }, [_("div", {
                        class: "".concat(h.value, "-date-value")
                    }, [kJ(String(t.getDate(fe)), 2, "0")]), _("div", {
                        class: "".concat(h.value, "-date-content")
                    }, [U && U({
                        current: fe
                    })])])
                }, re = function(ve, fe) {
                    var ce = ve.current;
                    if (Y)
                        return Y({
                            current: ce
                        });
                    var le = fe.shortMonths || t.locale.getShortMonths(fe.locale);
                    return _("div", {
                        class: he("".concat(d.value, "-cell-inner"), "".concat(h.value, "-date"), z({}, "".concat(h.value, "-date-today"), n(B, ce)))
                    }, [_("div", {
                        class: "".concat(h.value, "-date-value")
                    }, [le[t.getMonth(ce)]]), _("div", {
                        class: "".concat(h.value, "-date-content")
                    }, [ne && ne({
                        current: ce
                    })])])
                };
                return _("div", I(I({}, c), {}, {
                    class: he(h.value, (W = {},
                    z(W, "".concat(h.value, "-full"), F),
                    z(W, "".concat(h.value, "-mini"), !F),
                    z(W, "".concat(h.value, "-rtl"), v.value === "rtl"),
                    W), c.class)
                }), [ae ? ae({
                    value: x.value,
                    type: T.value,
                    onChange: E,
                    onTypeChange: D
                }) : _(u3e, {
                    prefixCls: h.value,
                    value: x.value,
                    generateConfig: t,
                    mode: T.value,
                    fullscreen: F,
                    locale: $.value.lang,
                    validRange: H,
                    onChange: E,
                    onModeChange: D
                }, null), _(g8, {
                    value: x.value,
                    prefixCls: d.value,
                    locale: $.value.lang,
                    generateConfig: t,
                    dateRender: ee,
                    monthCellRender: function(ve) {
                        return re(ve, $.value.lang)
                    },
                    onSelect: E,
                    mode: M.value,
                    picker: M.value,
                    disabledDate: A.value,
                    hideHeader: !0
                }, null)])
            }
        }
    });
    return a.install = function(i) {
        return i.component(a.name, a),
        i
    }
    ,
    a
}
var f3e = c3e(KD);
const d3e = Jn(f3e);
function v3e(t) {
    var e = Q()
      , n = Q(!1);
    function r() {
        for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)
            i[o] = arguments[o];
        n.value || (gt.cancel(e.value),
        e.value = gt(function() {
            t.apply(void 0, i)
        }))
    }
    return Nt(function() {
        n.value = !0,
        gt.cancel(e.value)
    }),
    r
}
function h3e(t) {
    var e = Q([])
      , n = Q(typeof t == "function" ? t() : t)
      , r = v3e(function() {
        var i = n.value;
        e.value.forEach(function(o) {
            i = o(i)
        }),
        e.value = [],
        n.value = i
    });
    function a(i) {
        e.value.push(i),
        r()
    }
    return [n, a]
}
const p3e = de({
    compatConfig: {
        MODE: 3
    },
    name: "TabNode",
    props: {
        id: {
            type: String
        },
        prefixCls: {
            type: String
        },
        tab: {
            type: Object
        },
        active: {
            type: Boolean
        },
        closable: {
            type: Boolean
        },
        editable: {
            type: Object
        },
        onClick: {
            type: Function
        },
        onResize: {
            type: Function
        },
        renderWrapper: {
            type: Function
        },
        removeAriaLabel: {
            type: String
        },
        onFocus: {
            type: Function
        }
    },
    emits: ["click", "resize", "remove", "focus"],
    setup: function(e, n) {
        var r = n.expose
          , a = n.attrs
          , i = Q();
        function o(u) {
            var c;
            (c = e.tab) !== null && c !== void 0 && c.disabled || e.onClick(u)
        }
        r({
            domRef: i
        });
        function l(u) {
            var c;
            u.preventDefault(),
            u.stopPropagation(),
            e.editable.onEdit("remove", {
                key: (c = e.tab) === null || c === void 0 ? void 0 : c.key,
                event: u
            })
        }
        var s = j(function() {
            var u;
            return e.editable && e.closable !== !1 && !((u = e.tab) !== null && u !== void 0 && u.disabled)
        });
        return function() {
            var u, c, f = e.prefixCls, d = e.id, v = e.active, h = e.tab, p = h.key, g = h.tab, m = h.disabled, y = h.closeIcon, b = e.renderWrapper, x = e.removeAriaLabel, C = e.editable, S = e.onFocus, w = "".concat(f, "-tab"), T = _("div", {
                key: p,
                ref: i,
                class: he(w, (u = {},
                z(u, "".concat(w, "-with-remove"), s.value),
                z(u, "".concat(w, "-active"), v),
                z(u, "".concat(w, "-disabled"), m),
                u)),
                style: a.style,
                onClick: o
            }, [_("div", {
                role: "tab",
                "aria-selected": v,
                id: d && "".concat(d, "-tab-").concat(p),
                class: "".concat(w, "-btn"),
                "aria-controls": d && "".concat(d, "-panel-").concat(p),
                "aria-disabled": m,
                tabindex: m ? null : 0,
                onClick: function(M) {
                    M.stopPropagation(),
                    o(M)
                },
                onKeydown: function(M) {
                    [Ee.SPACE, Ee.ENTER].includes(M.which) && (M.preventDefault(),
                    o(M))
                },
                onFocus: S
            }, [typeof g == "function" ? g() : g]), s.value && _("button", {
                type: "button",
                "aria-label": x || "remove",
                tabindex: 0,
                class: "".concat(w, "-remove"),
                onClick: function(M) {
                    M.stopPropagation(),
                    l(M)
                }
            }, [(y == null ? void 0 : y()) || ((c = C.removeIcon) === null || c === void 0 ? void 0 : c.call(C)) || "\xD7"])]);
            return b ? b(T) : T
        }
    }
});
var e9 = {
    width: 0,
    height: 0,
    left: 0,
    top: 0
};
function g3e(t, e) {
    var n = Q(new Map);
    return pt(function() {
        for (var r, a = new Map, i = t.value, o = e.value.get((r = i[0]) === null || r === void 0 ? void 0 : r.key) || e9, l = o.left + o.width, s = 0; s < i.length; s += 1) {
            var u = i[s].key
              , c = e.value.get(u);
            if (!c) {
                var f;
                c = e.value.get((f = i[s - 1]) === null || f === void 0 ? void 0 : f.key) || e9
            }
            var d = a.get(u) || I({}, c);
            d.right = l - d.left - d.width,
            a.set(u, d)
        }
        n.value = new Map(a)
    }),
    n
}
const eee = de({
    compatConfig: {
        MODE: 3
    },
    name: "AddButton",
    inheritAttrs: !1,
    props: {
        prefixCls: String,
        editable: {
            type: Object
        },
        locale: {
            type: Object,
            default: void 0
        }
    },
    setup: function(e, n) {
        var r = n.expose
          , a = n.attrs
          , i = Q();
        return r({
            domRef: i
        }),
        function() {
            var o = e.prefixCls
              , l = e.editable
              , s = e.locale;
            return !l || l.showAdd === !1 ? null : _("button", {
                ref: i,
                type: "button",
                class: "".concat(o, "-nav-add"),
                style: a.style,
                "aria-label": (s == null ? void 0 : s.addAriaLabel) || "Add tab",
                onClick: function(c) {
                    l.onEdit("add", {
                        event: c
                    })
                }
            }, [l.addIcon ? l.addIcon() : "+"])
        }
    }
});
var m3e = {
    prefixCls: {
        type: String
    },
    id: {
        type: String
    },
    tabs: {
        type: Object
    },
    rtl: {
        type: Boolean
    },
    tabBarGutter: {
        type: Number
    },
    activeKey: {
        type: [String, Number]
    },
    mobile: {
        type: Boolean
    },
    moreIcon: J.any,
    moreTransitionName: {
        type: String
    },
    editable: {
        type: Object
    },
    locale: {
        type: Object,
        default: void 0
    },
    removeAriaLabel: String,
    onTabClick: {
        type: Function
    }
};
const y3e = de({
    compatConfig: {
        MODE: 3
    },
    name: "OperationNode",
    inheritAttrs: !1,
    props: m3e,
    emits: ["tabClick"],
    slots: ["moreIcon"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = Rn(!1)
          , o = De(i, 2)
          , l = o[0]
          , s = o[1]
          , u = Rn(null)
          , c = De(u, 2)
          , f = c[0]
          , d = c[1]
          , v = function(b) {
            for (var x = e.tabs.filter(function(P) {
                return !P.disabled
            }), C = x.findIndex(function(P) {
                return P.key === f.value
            }) || 0, S = x.length, w = 0; w < S; w += 1) {
                C = (C + b + S) % S;
                var T = x[C];
                if (!T.disabled) {
                    d(T.key);
                    return
                }
            }
        }
          , h = function(b) {
            var x = b.which;
            if (!l.value) {
                [Ee.DOWN, Ee.SPACE, Ee.ENTER].includes(x) && (s(!0),
                b.preventDefault());
                return
            }
            switch (x) {
            case Ee.UP:
                v(-1),
                b.preventDefault();
                break;
            case Ee.DOWN:
                v(1),
                b.preventDefault();
                break;
            case Ee.ESC:
                s(!1);
                break;
            case Ee.SPACE:
            case Ee.ENTER:
                f.value !== null && e.onTabClick(f.value, b);
                break
            }
        }
          , p = j(function() {
            return "".concat(e.id, "-more-popup")
        })
          , g = j(function() {
            return f.value !== null ? "".concat(p.value, "-").concat(f.value) : null
        })
          , m = function(b, x) {
            b.preventDefault(),
            b.stopPropagation(),
            e.editable.onEdit("remove", {
                key: x,
                event: b
            })
        };
        return ct(function() {
            Te(f, function() {
                var y = document.getElementById(g.value);
                y && y.scrollIntoView && y.scrollIntoView(!1)
            }, {
                flush: "post",
                immediate: !0
            })
        }),
        Te(l, function() {
            l.value || d(null)
        }),
        function() {
            var y, b = e.prefixCls, x = e.id, C = e.tabs, S = e.locale, w = e.mobile, T = e.moreIcon, P = T === void 0 ? ((y = a.moreIcon) === null || y === void 0 ? void 0 : y.call(a)) || _(VD, null, null) : T, M = e.moreTransitionName, A = e.editable, O = e.tabBarGutter, k = e.rtl, D = e.onTabClick, E = "".concat(b, "-dropdown"), L = S == null ? void 0 : S.dropdownAriaLabel, N = z({}, k ? "marginRight" : "marginLeft", O);
            C.length || (N.visibility = "hidden",
            N.order = 1);
            var R = he(z({}, "".concat(E, "-rtl"), k))
              , $ = w ? null : _(HQ, {
                prefixCls: E,
                trigger: ["hover"],
                visible: l.value,
                transitionName: M,
                onVisibleChange: s,
                overlayClassName: R,
                mouseEnterDelay: .1,
                mouseLeaveDelay: .1
            }, {
                overlay: function() {
                    return _(Xn, {
                        onClick: function(G) {
                            var K = G.key
                              , V = G.domEvent;
                            D(K, V),
                            s(!1)
                        },
                        id: p.value,
                        tabindex: -1,
                        role: "listbox",
                        "aria-activedescendant": g.value,
                        selectedKeys: [f.value],
                        "aria-label": L !== void 0 ? L : "expanded dropdown"
                    }, {
                        default: function() {
                            return [C.map(function(G) {
                                var K, V, U = A && G.closable !== !1 && !G.disabled;
                                return _(ns, {
                                    key: G.key,
                                    id: "".concat(p.value, "-").concat(G.key),
                                    role: "option",
                                    "aria-controls": x && "".concat(x, "-panel-").concat(G.key),
                                    disabled: G.disabled
                                }, {
                                    default: function() {
                                        return [_("span", null, [typeof G.tab == "function" ? G.tab() : G.tab]), U && _("button", {
                                            type: "button",
                                            "aria-label": e.removeAriaLabel || "remove",
                                            tabindex: 0,
                                            class: "".concat(E, "-menu-item-remove"),
                                            onClick: function(te) {
                                                te.stopPropagation(),
                                                m(te, G.key)
                                            }
                                        }, [((K = G.closeIcon) === null || K === void 0 ? void 0 : K.call(G)) || ((V = A.removeIcon) === null || V === void 0 ? void 0 : V.call(A)) || "\xD7"])]
                                    }
                                })
                            })]
                        }
                    })
                },
                default: function() {
                    return _("button", {
                        type: "button",
                        class: "".concat(b, "-nav-more"),
                        style: N,
                        tabindex: -1,
                        "aria-hidden": "true",
                        "aria-haspopup": "listbox",
                        "aria-controls": p.value,
                        id: "".concat(x, "-more"),
                        "aria-expanded": l.value,
                        onKeydown: h
                    }, [P])
                }
            });
            return _("div", {
                class: he("".concat(b, "-nav-operations"), r.class),
                style: r.style
            }, [$, _(eee, {
                prefixCls: b,
                locale: S,
                editable: A
            }, null)])
        }
    }
});
var tee = Symbol("tabsContextKey")
  , nee = function(e) {
    It(tee, e)
}
  , ree = function() {
    return vt(tee, {
        tabs: Q([]),
        prefixCls: Q()
    })
};
de({
    compatConfig: {
        MODE: 3
    },
    name: "TabsContextProvider",
    inheritAttrs: !1,
    props: {
        tabs: {
            type: Object,
            default: void 0
        },
        prefixCls: {
            type: String,
            default: void 0
        }
    },
    setup: function(e, n) {
        var r = n.slots;
        return nee(vu(e)),
        function() {
            var a;
            return (a = r.default) === null || a === void 0 ? void 0 : a.call(r)
        }
    }
});
var b3e = .1
  , t9 = .01
  , yb = 20
  , n9 = Math.pow(.995, yb);
function x3e(t, e) {
    var n = Rn()
      , r = De(n, 2)
      , a = r[0]
      , i = r[1]
      , o = Rn(0)
      , l = De(o, 2)
      , s = l[0]
      , u = l[1]
      , c = Rn(0)
      , f = De(c, 2)
      , d = f[0]
      , v = f[1]
      , h = Rn()
      , p = De(h, 2)
      , g = p[0]
      , m = p[1]
      , y = Q();
    function b(k) {
        var D = k.touches[0]
          , E = D.screenX
          , L = D.screenY;
        i({
            x: E,
            y: L
        }),
        clearInterval(y.value)
    }
    function x(k) {
        if (!!a.value) {
            k.preventDefault();
            var D = k.touches[0]
              , E = D.screenX
              , L = D.screenY
              , N = E - a.value.x
              , R = L - a.value.y;
            e(N, R),
            i({
                x: E,
                y: L
            });
            var $ = Date.now();
            v($ - s.value),
            u($),
            m({
                x: N,
                y: R
            })
        }
    }
    function C() {
        if (!!a.value) {
            var k = g.value;
            if (i(null),
            m(null),
            k) {
                var D = k.x / d.value
                  , E = k.y / d.value
                  , L = Math.abs(D)
                  , N = Math.abs(E);
                if (Math.max(L, N) < b3e)
                    return;
                var R = D
                  , $ = E;
                y.value = setInterval(function() {
                    if (Math.abs(R) < t9 && Math.abs($) < t9) {
                        clearInterval(y.value);
                        return
                    }
                    R *= n9,
                    $ *= n9,
                    e(R * yb, $ * yb)
                }, yb)
            }
        }
    }
    var S = Q();
    function w(k) {
        var D = k.deltaX
          , E = k.deltaY
          , L = 0
          , N = Math.abs(D)
          , R = Math.abs(E);
        N === R ? L = S.value === "x" ? D : E : N > R ? (L = D,
        S.value = "x") : (L = E,
        S.value = "y"),
        e(-L, -L) && k.preventDefault()
    }
    var T = Q({
        onTouchStart: b,
        onTouchMove: x,
        onTouchEnd: C,
        onWheel: w
    });
    function P(k) {
        T.value.onTouchStart(k)
    }
    function M(k) {
        T.value.onTouchMove(k)
    }
    function A(k) {
        T.value.onTouchEnd(k)
    }
    function O(k) {
        T.value.onWheel(k)
    }
    ct(function() {
        var k, D;
        document.addEventListener("touchmove", M, {
            passive: !1
        }),
        document.addEventListener("touchend", A, {
            passive: !1
        }),
        (k = t.value) === null || k === void 0 || k.addEventListener("touchstart", P, {
            passive: !1
        }),
        (D = t.value) === null || D === void 0 || D.addEventListener("wheel", O, {
            passive: !1
        })
    }),
    Nt(function() {
        document.removeEventListener("touchmove", M),
        document.removeEventListener("touchend", A)
    })
}
function r9(t, e) {
    var n = Q(t);
    function r(a) {
        var i = typeof a == "function" ? a(n.value) : a;
        i !== n.value && e(i, n.value),
        n.value = i
    }
    return [n, r]
}
var S3e = function() {
    var e = Q(new Map)
      , n = function(a) {
        return function(i) {
            e.value.set(a, i)
        }
    };
    return nO(function() {
        e.value = new Map
    }),
    [n, e]
};
const y8 = S3e;
var C3e = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/
  , w3e = /^\w*$/;
function b8(t, e) {
    if (zi(t))
        return !1;
    var n = typeof t;
    return n == "number" || n == "symbol" || n == "boolean" || t == null || tw(t) ? !0 : w3e.test(t) || !C3e.test(t) || e != null && t in Object(e)
}
var _3e = "Expected a function";
function x8(t, e) {
    if (typeof t != "function" || e != null && typeof e != "function")
        throw new TypeError(_3e);
    var n = function() {
        var r = arguments
          , a = e ? e.apply(this, r) : r[0]
          , i = n.cache;
        if (i.has(a))
            return i.get(a);
        var o = t.apply(this, r);
        return n.cache = i.set(a, o) || i,
        o
    };
    return n.cache = new (x8.Cache || bs),
    n
}
x8.Cache = bs;
var T3e = 500;
function P3e(t) {
    var e = x8(t, function(r) {
        return n.size === T3e && n.clear(),
        r
    })
      , n = e.cache;
    return e
}
var M3e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g
  , A3e = /\\(\\)?/g
  , I3e = P3e(function(t) {
    var e = [];
    return t.charCodeAt(0) === 46 && e.push(""),
    t.replace(M3e, function(n, r, a, i) {
        e.push(a ? i.replace(A3e, "$1") : r || n)
    }),
    e
});
const k3e = I3e;
function xh(t, e) {
    return zi(t) ? t : b8(t, e) ? [t] : k3e(ZD(t))
}
var O3e = 1 / 0;
function Sh(t) {
    if (typeof t == "string" || tw(t))
        return t;
    var e = t + "";
    return e == "0" && 1 / t == -O3e ? "-0" : e
}
function ow(t, e) {
    e = xh(e, t);
    for (var n = 0, r = e.length; t != null && n < r; )
        t = t[Sh(e[n++])];
    return n && n == r ? t : void 0
}
var D3e = function() {
    try {
        var t = qf(Object, "defineProperty");
        return t({}, "", {}),
        t
    } catch (e) {}
}();
const qx = D3e;
function aee(t, e, n) {
    e == "__proto__" && qx ? qx(t, e, {
        configurable: !0,
        enumerable: !0,
        value: n,
        writable: !0
    }) : t[e] = n
}
var E3e = Object.prototype
  , L3e = E3e.hasOwnProperty;
function S8(t, e, n) {
    var r = t[e];
    (!(L3e.call(t, e) && cD(r, n)) || n === void 0 && !(e in t)) && aee(t, e, n)
}
function iee(t, e, n, r) {
    if (!wo(t))
        return t;
    e = xh(e, t);
    for (var a = -1, i = e.length, o = i - 1, l = t; l != null && ++a < i; ) {
        var s = Sh(e[a])
          , u = n;
        if (s === "__proto__" || s === "constructor" || s === "prototype")
            return t;
        if (a != o) {
            var c = l[s];
            u = r ? r(c, s, l) : void 0,
            u === void 0 && (u = wo(c) ? c : pD(e[a + 1]) ? [] : {})
        }
        S8(l, s, u),
        l = l[s]
    }
    return t
}
function R3e(t, e, n) {
    for (var r = -1, a = e.length, i = {}; ++r < a; ) {
        var o = e[r]
          , l = ow(t, o);
        n(l, o) && iee(i, xh(o, t), l)
    }
    return i
}
function N3e(t, e) {
    return t != null && e in Object(t)
}
function $3e(t, e, n) {
    e = xh(e, t);
    for (var r = -1, a = e.length, i = !1; ++r < a; ) {
        var o = Sh(e[r]);
        if (!(i = t != null && n(t, o)))
            break;
        t = t[o]
    }
    return i || ++r != a ? i : (a = t == null ? 0 : t.length,
    !!a && gD(a) && pD(o, a) && (zi(t) || hD(t)))
}
function oee(t, e) {
    return t != null && $3e(t, e, N3e)
}
function F3e(t, e) {
    return R3e(t, e, function(n, r) {
        return oee(t, r)
    })
}
var a9 = Bi ? Bi.isConcatSpreadable : void 0;
function B3e(t) {
    return zi(t) || hD(t) || !!(a9 && t && t[a9])
}
function C8(t, e, n, r, a) {
    var i = -1
      , o = t.length;
    for (n || (n = B3e),
    a || (a = []); ++i < o; ) {
        var l = t[i];
        e > 0 && n(l) ? e > 1 ? C8(l, e - 1, n, r, a) : dD(a, l) : r || (a[a.length] = l)
    }
    return a
}
function V3e(t) {
    var e = t == null ? 0 : t.length;
    return e ? C8(t, 1) : []
}
function z3e(t, e, n) {
    switch (n.length) {
    case 0:
        return t.call(e);
    case 1:
        return t.call(e, n[0]);
    case 2:
        return t.call(e, n[0], n[1]);
    case 3:
        return t.call(e, n[0], n[1], n[2])
    }
    return t.apply(e, n)
}
var i9 = Math.max;
function lee(t, e, n) {
    return e = i9(e === void 0 ? t.length - 1 : e, 0),
    function() {
        for (var r = arguments, a = -1, i = i9(r.length - e, 0), o = Array(i); ++a < i; )
            o[a] = r[e + a];
        a = -1;
        for (var l = Array(e + 1); ++a < e; )
            l[a] = r[a];
        return l[e] = n(o),
        z3e(t, this, l)
    }
}
function H3e(t) {
    return function() {
        return t
    }
}
function w8(t) {
    return t
}
var j3e = qx ? function(t, e) {
    return qx(t, "toString", {
        configurable: !0,
        enumerable: !1,
        value: H3e(e),
        writable: !0
    })
}
: w8;
const W3e = j3e;
var G3e = 800
  , K3e = 16
  , U3e = Date.now;
function Y3e(t) {
    var e = 0
      , n = 0;
    return function() {
        var r = U3e()
          , a = K3e - (r - n);
        if (n = r,
        a > 0) {
            if (++e >= G3e)
                return arguments[0]
        } else
            e = 0;
        return t.apply(void 0, arguments)
    }
}
var q3e = Y3e(W3e);
const see = q3e;
function uee(t) {
    return see(lee(t, void 0, V3e), t + "")
}
var X3e = uee(function(t, e) {
    return t == null ? {} : F3e(t, e)
});
const cee = X3e;
var o9 = {
    width: 0,
    height: 0,
    left: 0,
    top: 0,
    right: 0
}
  , Z3e = function() {
    return {
        id: {
            type: String
        },
        tabPosition: {
            type: String
        },
        activeKey: {
            type: [String, Number]
        },
        rtl: {
            type: Boolean
        },
        animated: {
            type: Object,
            default: void 0
        },
        editable: {
            type: Object
        },
        moreIcon: J.any,
        moreTransitionName: {
            type: String
        },
        mobile: {
            type: Boolean
        },
        tabBarGutter: {
            type: Number
        },
        renderTabBar: {
            type: Function
        },
        locale: {
            type: Object,
            default: void 0
        },
        onTabClick: {
            type: Function
        },
        onTabScroll: {
            type: Function
        }
    }
};
const l9 = de({
    compatConfig: {
        MODE: 3
    },
    name: "TabNavList",
    inheritAttrs: !1,
    props: Z3e(),
    slots: ["moreIcon", "leftExtra", "rightExtra", "tabBarExtraContent"],
    emits: ["tabClick", "tabScroll"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = ree()
          , o = i.tabs
          , l = i.prefixCls
          , s = Q()
          , u = Q()
          , c = Q()
          , f = Q()
          , d = y8()
          , v = De(d, 2)
          , h = v[0]
          , p = v[1]
          , g = j(function() {
            return e.tabPosition === "top" || e.tabPosition === "bottom"
        })
          , m = r9(0, function(Ue, Ke) {
            g.value && e.onTabScroll && e.onTabScroll({
                direction: Ue > Ke ? "left" : "right"
            })
        })
          , y = De(m, 2)
          , b = y[0]
          , x = y[1]
          , C = r9(0, function(Ue, Ke) {
            !g.value && e.onTabScroll && e.onTabScroll({
                direction: Ue > Ke ? "top" : "bottom"
            })
        })
          , S = De(C, 2)
          , w = S[0]
          , T = S[1]
          , P = Rn(0)
          , M = De(P, 2)
          , A = M[0]
          , O = M[1]
          , k = Rn(0)
          , D = De(k, 2)
          , E = D[0]
          , L = D[1]
          , N = Rn(null)
          , R = De(N, 2)
          , $ = R[0]
          , W = R[1]
          , B = Rn(null)
          , G = De(B, 2)
          , K = G[0]
          , V = G[1]
          , U = Rn(0)
          , X = De(U, 2)
          , Y = X[0]
          , te = X[1]
          , ne = Rn(0)
          , ie = De(ne, 2)
          , ae = ie[0]
          , q = ie[1]
          , F = h3e(new Map)
          , H = De(F, 2)
          , ee = H[0]
          , re = H[1]
          , ue = g3e(o, ee)
          , ve = j(function() {
            return "".concat(l.value, "-nav-operations-hidden")
        })
          , fe = Q(0)
          , ce = Q(0);
        pt(function() {
            g.value ? e.rtl ? (fe.value = 0,
            ce.value = Math.max(0, A.value - $.value)) : (fe.value = Math.min(0, $.value - A.value),
            ce.value = 0) : (fe.value = Math.min(0, K.value - E.value),
            ce.value = 0)
        });
        var le = function(Ke) {
            return Ke < fe.value ? fe.value : Ke > ce.value ? ce.value : Ke
        }
          , oe = Q()
          , se = Rn()
          , xe = De(se, 2)
          , Pe = xe[0]
          , Fe = xe[1]
          , ze = function() {
            Fe(Date.now())
        }
          , _e = function() {
            clearTimeout(oe.value)
        }
          , me = function(Ke, Xe) {
            Ke(function(it) {
                var nt = le(it + Xe);
                return nt
            })
        };
        x3e(s, function(Ue, Ke) {
            if (g.value) {
                if ($.value >= A.value)
                    return !1;
                me(x, Ue)
            } else {
                if (K.value >= E.value)
                    return !1;
                me(T, Ke)
            }
            return _e(),
            ze(),
            !0
        }),
        Te(Pe, function() {
            _e(),
            Pe.value && (oe.value = setTimeout(function() {
                Fe(0)
            }, 100))
        });
        var Ie = function() {
            var Ke = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : e.activeKey
              , Xe = ue.value.get(Ke) || {
                width: 0,
                height: 0,
                left: 0,
                right: 0,
                top: 0
            };
            if (g.value) {
                var it = b.value;
                e.rtl ? Xe.right < b.value ? it = Xe.right : Xe.right + Xe.width > b.value + $.value && (it = Xe.right + Xe.width - $.value) : Xe.left < -b.value ? it = -Xe.left : Xe.left + Xe.width > -b.value + $.value && (it = -(Xe.left + Xe.width - $.value)),
                T(0),
                x(le(it))
            } else {
                var nt = w.value;
                Xe.top < -w.value ? nt = -Xe.top : Xe.top + Xe.height > -w.value + K.value && (nt = -(Xe.top + Xe.height - K.value)),
                x(0),
                T(le(nt))
            }
        }
          , Oe = Q(0)
          , Ce = Q(0);
        pt(function() {
            var Ue, Ke, Xe, it, nt, ht, ft, Zt = ue.value;
            ["top", "bottom"].includes(e.tabPosition) ? (Ke = "width",
            nt = $.value,
            ht = A.value,
            ft = Y.value,
            Xe = e.rtl ? "right" : "left",
            it = Math.abs(b.value)) : (Ke = "height",
            nt = K.value,
            ht = A.value,
            ft = ae.value,
            Xe = "top",
            it = -w.value);
            var Tt = nt;
            ht + ft > nt && ht < nt && (Tt = nt - ft);
            var bt = o.value;
            if (!bt.length) {
                var wt;
                return wt = [0, 0],
                Oe.value = wt[0],
                Ce.value = wt[1],
                wt
            }
            for (var Mn = bt.length, gn = Mn, or = 0; or < Mn; or += 1) {
                var er = Zt.get(bt[or].key) || o9;
                if (er[Xe] + er[Ke] > it + Tt) {
                    gn = or - 1;
                    break
                }
            }
            for (var xn = 0, Sn = Mn - 1; Sn >= 0; Sn -= 1) {
                var Fn = Zt.get(bt[Sn].key) || o9;
                if (Fn[Xe] < it) {
                    xn = Sn + 1;
                    break
                }
            }
            return Ue = [xn, gn],
            Oe.value = Ue[0],
            Ce.value = Ue[1],
            Ue
        });
        var pe = function() {
            var Ke, Xe, it, nt, ht, ft = ((Ke = s.value) === null || Ke === void 0 ? void 0 : Ke.offsetWidth) || 0, Zt = ((Xe = s.value) === null || Xe === void 0 ? void 0 : Xe.offsetHeight) || 0, Tt = ((it = f.value) === null || it === void 0 ? void 0 : it.$el) || {}, bt = Tt.offsetWidth || 0, wt = Tt.offsetHeight || 0;
            W(ft),
            V(Zt),
            te(bt),
            q(wt);
            var Mn = (((nt = u.value) === null || nt === void 0 ? void 0 : nt.offsetWidth) || 0) - bt
              , gn = (((ht = u.value) === null || ht === void 0 ? void 0 : ht.offsetHeight) || 0) - wt;
            O(Mn),
            L(gn),
            re(function() {
                var or = new Map;
                return o.value.forEach(function(er) {
                    var xn = er.key
                      , Sn = p.value.get(xn)
                      , Fn = (Sn == null ? void 0 : Sn.$el) || Sn;
                    Fn && or.set(xn, {
                        width: Fn.offsetWidth,
                        height: Fn.offsetHeight,
                        left: Fn.offsetLeft,
                        top: Fn.offsetTop
                    })
                }),
                or
            })
        }
          , ye = j(function() {
            return [].concat($e(o.value.slice(0, Oe.value)), $e(o.value.slice(Ce.value + 1)))
        })
          , be = Rn()
          , Ae = De(be, 2)
          , Re = Ae[0]
          , Ne = Ae[1]
          , Se = j(function() {
            return ue.value.get(e.activeKey)
        })
          , we = Q()
          , Ve = function() {
            gt.cancel(we.value)
        };
        Te([Se, g, function() {
            return e.rtl
        }
        ], function() {
            var Ue = {};
            Se.value && (g.value ? (e.rtl ? Ue.right = Hc(Se.value.right) : Ue.left = Hc(Se.value.left),
            Ue.width = Hc(Se.value.width)) : (Ue.top = Hc(Se.value.top),
            Ue.height = Hc(Se.value.height))),
            Ve(),
            we.value = gt(function() {
                Ne(Ue)
            })
        }),
        Te([function() {
            return e.activeKey
        }
        , Se, ue, g], function() {
            Ie()
        }, {
            flush: "post"
        }),
        Te([function() {
            return e.rtl
        }
        , function() {
            return e.tabBarGutter
        }
        , function() {
            return e.activeKey
        }
        , function() {
            return o.value
        }
        ], function() {
            pe()
        }, {
            flush: "post"
        });
        var Ye = function(Ke) {
            var Xe = Ke.position
              , it = Ke.prefixCls
              , nt = Ke.extra;
            if (!nt)
                return null;
            var ht = nt == null ? void 0 : nt({
                position: Xe
            });
            return ht ? _("div", {
                class: "".concat(it, "-extra-content")
            }, [ht]) : null
        };
        return Nt(function() {
            _e(),
            Ve()
        }),
        function() {
            var Ue, Ke = e.id, Xe = e.animated, it = e.activeKey, nt = e.rtl, ht = e.editable, ft = e.locale, Zt = e.tabPosition, Tt = e.tabBarGutter, bt = e.onTabClick, wt = r.class, Mn = r.style, gn = l.value, or = !!ye.value.length, er = "".concat(gn, "-nav-wrap"), xn, Sn, Fn, Wa;
            g.value ? nt ? (Sn = b.value > 0,
            xn = b.value + $.value < A.value) : (xn = b.value < 0,
            Sn = -b.value + $.value < A.value) : (Fn = w.value < 0,
            Wa = -w.value + K.value < E.value);
            var Ln = {};
            Zt === "top" || Zt === "bottom" ? Ln[nt ? "marginRight" : "marginLeft"] = typeof Tt == "number" ? "".concat(Tt, "px") : Tt : Ln.marginTop = typeof Tt == "number" ? "".concat(Tt, "px") : Tt;
            var Ia = o.value.map(function(ci, Do) {
                var ca = ci.key;
                return _(p3e, {
                    id: Ke,
                    prefixCls: gn,
                    key: ca,
                    tab: ci,
                    style: Do === 0 ? void 0 : Ln,
                    closable: ci.closable,
                    editable: ht,
                    active: ca === it,
                    removeAriaLabel: ft == null ? void 0 : ft.removeAriaLabel,
                    ref: h(ca),
                    onClick: function(tr) {
                        bt(ca, tr)
                    },
                    onFocus: function() {
                        Ie(ca),
                        ze(),
                        s.value && (nt || (s.value.scrollLeft = 0),
                        s.value.scrollTop = 0)
                    }
                }, a)
            });
            return _("div", {
                role: "tablist",
                class: he("".concat(gn, "-nav"), wt),
                style: Mn,
                onKeydown: function() {
                    ze()
                }
            }, [_(Ye, {
                position: "left",
                prefixCls: gn,
                extra: a.leftExtra
            }, null), _(Vi, {
                onResize: pe
            }, {
                default: function() {
                    return [_("div", {
                        class: he(er, (Ue = {},
                        z(Ue, "".concat(er, "-ping-left"), xn),
                        z(Ue, "".concat(er, "-ping-right"), Sn),
                        z(Ue, "".concat(er, "-ping-top"), Fn),
                        z(Ue, "".concat(er, "-ping-bottom"), Wa),
                        Ue)),
                        ref: s
                    }, [_(Vi, {
                        onResize: pe
                    }, {
                        default: function() {
                            return [_("div", {
                                ref: u,
                                class: "".concat(gn, "-nav-list"),
                                style: {
                                    transform: "translate(".concat(b.value, "px, ").concat(w.value, "px)"),
                                    transition: Pe.value ? "none" : void 0
                                }
                            }, [Ia, _(eee, {
                                ref: f,
                                prefixCls: gn,
                                locale: ft,
                                editable: ht,
                                style: I(I({}, Ia.length === 0 ? void 0 : Ln), {}, {
                                    visibility: or ? "hidden" : null
                                })
                            }, null), _("div", {
                                class: he("".concat(gn, "-ink-bar"), z({}, "".concat(gn, "-ink-bar-animated"), Xe.inkBar)),
                                style: Re.value
                            }, null)])]
                        }
                    })])]
                }
            }), _(y3e, I(I({}, e), {}, {
                removeAriaLabel: ft == null ? void 0 : ft.removeAriaLabel,
                ref: c,
                prefixCls: gn,
                tabs: ye.value,
                class: !or && ve.value
            }), cee(a, ["moreIcon"])), _(Ye, {
                position: "right",
                prefixCls: gn,
                extra: a.rightExtra
            }, null), _(Ye, {
                position: "right",
                prefixCls: gn,
                extra: a.tabBarExtraContent
            }, null)])
        }
    }
})
  , Q3e = de({
    compatConfig: {
        MODE: 3
    },
    name: "TabPanelList",
    inheritAttrs: !1,
    props: {
        activeKey: {
            type: [String, Number]
        },
        id: {
            type: String
        },
        rtl: {
            type: Boolean
        },
        animated: {
            type: Object,
            default: void 0
        },
        tabPosition: {
            type: String
        },
        destroyInactiveTabPane: {
            type: Boolean
        }
    },
    setup: function(e) {
        var n = ree()
          , r = n.tabs
          , a = n.prefixCls;
        return function() {
            var i = e.id
              , o = e.activeKey
              , l = e.animated
              , s = e.tabPosition
              , u = e.rtl
              , c = e.destroyInactiveTabPane
              , f = l.tabPane
              , d = a.value
              , v = r.value.findIndex(function(h) {
                return h.key === o
            });
            return _("div", {
                class: "".concat(d, "-content-holder")
            }, [_("div", {
                class: ["".concat(d, "-content"), "".concat(d, "-content-").concat(s), z({}, "".concat(d, "-content-animated"), f)],
                style: v && f ? z({}, u ? "marginRight" : "marginLeft", "-".concat(v, "00%")) : null
            }, [r.value.map(function(h) {
                return Qt(h.node, {
                    key: h.key,
                    prefixCls: d,
                    tabKey: h.key,
                    id: i,
                    animated: f,
                    active: h.key === o,
                    destroyInactiveTabPane: c
                })
            })])])
        }
    }
});
var J3e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "defs",
            attrs: {},
            children: [{
                tag: "style",
                attrs: {}
            }]
        }, {
            tag: "path",
            attrs: {
                d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"
            }
        }, {
            tag: "path",
            attrs: {
                d: "M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"
            }
        }]
    },
    name: "plus",
    theme: "outlined"
};
const eMe = J3e;
function s9(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            tMe(t, a, n[a])
        })
    }
    return t
}
function tMe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var _8 = function(e, n) {
    var r = s9({}, e, n.attrs);
    return _(lt, s9({}, r, {
        icon: eMe
    }), null)
};
_8.displayName = "PlusOutlined";
_8.inheritAttrs = !1;
const nMe = _8;
var u9 = 0
  , fee = function() {
    return {
        prefixCls: {
            type: String
        },
        id: {
            type: String
        },
        activeKey: {
            type: [String, Number]
        },
        defaultActiveKey: {
            type: [String, Number]
        },
        direction: {
            type: String
        },
        animated: {
            type: [Boolean, Object]
        },
        renderTabBar: {
            type: Function
        },
        tabBarGutter: {
            type: Number
        },
        tabBarStyle: {
            type: Object
        },
        tabPosition: {
            type: String
        },
        destroyInactiveTabPane: {
            type: Boolean
        },
        hideAdd: Boolean,
        type: {
            type: String
        },
        size: {
            type: String
        },
        centered: Boolean,
        onEdit: {
            type: Function
        },
        onChange: {
            type: Function
        },
        onTabClick: {
            type: Function
        },
        onTabScroll: {
            type: Function
        },
        "onUpdate:activeKey": {
            type: Function
        },
        locale: {
            type: Object,
            default: void 0
        },
        onPrevClick: Function,
        onNextClick: Function,
        tabBarExtraContent: J.any
    }
};
function rMe(t) {
    return t.map(function(e) {
        if (cr(e)) {
            for (var n = I({}, e.props || {}), r = 0, a = Object.entries(n); r < a.length; r++) {
                var i = De(a[r], 2)
                  , o = i[0]
                  , l = i[1];
                delete n[o],
                n[Va(o)] = l
            }
            var s = e.children || {}
              , u = e.key !== void 0 ? e.key : void 0
              , c = n.tab
              , f = c === void 0 ? s.tab : c
              , d = n.disabled
              , v = n.forceRender
              , h = n.closable
              , p = n.animated
              , g = n.active
              , m = n.destroyInactiveTabPane;
            return I(I({
                key: u
            }, n), {}, {
                node: e,
                closeIcon: s.closeIcon,
                tab: f,
                disabled: d === "" || d,
                forceRender: v === "" || v,
                closable: h === "" || h,
                animated: p === "" || p,
                active: g === "" || g,
                destroyInactiveTabPane: m === "" || m
            })
        }
        return null
    }).filter(function(e) {
        return e
    })
}
var aMe = de({
    compatConfig: {
        MODE: 3
    },
    name: "InternalTabs",
    inheritAttrs: !1,
    props: I(I({}, $t(fee(), {
        tabPosition: "top",
        animated: {
            inkBar: !0,
            tabPane: !1
        }
    })), {}, {
        tabs: {
            type: Array
        }
    }),
    slots: ["tabBarExtraContent", "leftExtra", "rightExtra", "moreIcon", "addIcon", "removeIcon", "renderTabBar"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots;
        sn(e.onPrevClick === void 0 && e.onNextClick === void 0, "Tabs", "`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),
        sn(e.tabBarExtraContent === void 0, "Tabs", "`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),
        sn(a.tabBarExtraContent === void 0, "Tabs", "`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");
        var i = je("tabs", e)
          , o = i.prefixCls
          , l = i.direction
          , s = i.size
          , u = i.rootPrefixCls
          , c = j(function() {
            return l.value === "rtl"
        })
          , f = j(function() {
            var D = e.animated
              , E = e.tabPosition;
            return D === !1 || ["left", "right"].includes(E) ? {
                inkBar: !1,
                tabPane: !1
            } : D === !0 ? {
                inkBar: !0,
                tabPane: !0
            } : I({
                inkBar: !0,
                tabPane: !1
            }, We(D) === "object" ? D : {})
        })
          , d = Rn(!1)
          , v = De(d, 2)
          , h = v[0]
          , p = v[1];
        ct(function() {
            p(xD())
        });
        var g = zn(function() {
            var D;
            return (D = e.tabs[0]) === null || D === void 0 ? void 0 : D.key
        }, {
            value: j(function() {
                return e.activeKey
            }),
            defaultValue: e.defaultActiveKey
        })
          , m = De(g, 2)
          , y = m[0]
          , b = m[1]
          , x = Rn(function() {
            return e.tabs.findIndex(function(D) {
                return D.key === y.value
            })
        })
          , C = De(x, 2)
          , S = C[0]
          , w = C[1];
        pt(function() {
            var D = e.tabs.findIndex(function(L) {
                return L.key === y.value
            });
            if (D === -1) {
                var E;
                D = Math.max(0, Math.min(S.value, e.tabs.length - 1)),
                b((E = e.tabs[D]) === null || E === void 0 ? void 0 : E.key)
            }
            w(D)
        });
        var T = zn(null, {
            value: j(function() {
                return e.id
            })
        })
          , P = De(T, 2)
          , M = P[0]
          , A = P[1]
          , O = j(function() {
            return h.value && !["left", "right"].includes(e.tabPosition) ? "top" : e.tabPosition
        });
        ct(function() {
            e.id || (A("rc-tabs-".concat(u9)),
            u9 += 1)
        });
        var k = function(E, L) {
            var N;
            (N = e.onTabClick) === null || N === void 0 || N.call(e, E, L);
            var R = E !== y.value;
            if (b(E),
            R) {
                var $;
                ($ = e.onChange) === null || $ === void 0 || $.call(e, E)
            }
        };
        return nee({
            tabs: j(function() {
                return e.tabs
            }),
            prefixCls: o
        }),
        function() {
            var D, E = e.id, L = e.type, N = e.tabBarGutter, R = e.tabBarStyle, $ = e.locale, W = e.destroyInactiveTabPane, B = e.renderTabBar, G = B === void 0 ? a.renderTabBar : B, K = e.onTabScroll, V = e.hideAdd, U = e.centered, X = {
                id: M.value,
                activeKey: y.value,
                animated: f.value,
                tabPosition: O.value,
                rtl: c.value,
                mobile: h.value
            }, Y;
            L === "editable-card" && (Y = {
                onEdit: function(q, F) {
                    var H, ee = F.key, re = F.event;
                    (H = e.onEdit) === null || H === void 0 || H.call(e, q === "add" ? re : ee, q)
                },
                removeIcon: function() {
                    return _(Sl, null, null)
                },
                addIcon: a.addIcon ? a.addIcon : function() {
                    return _(nMe, null, null)
                }
                ,
                showAdd: V !== !0
            });
            var te, ne = I(I({}, X), {}, {
                moreTransitionName: "".concat(u.value, "-slide-up"),
                editable: Y,
                locale: $,
                tabBarGutter: N,
                onTabClick: k,
                onTabScroll: K,
                style: R
            });
            G ? te = G(I(I({}, ne), {}, {
                DefaultTabBar: l9
            })) : te = _(l9, ne, cee(a, ["moreIcon", "leftExtra", "rightExtra", "tabBarExtraContent"]));
            var ie = o.value;
            return _("div", I(I({}, r), {}, {
                id: E,
                class: he(ie, "".concat(ie, "-").concat(O.value), (D = {},
                z(D, "".concat(ie, "-").concat(s.value), s.value),
                z(D, "".concat(ie, "-card"), ["card", "editable-card"].includes(L)),
                z(D, "".concat(ie, "-editable-card"), L === "editable-card"),
                z(D, "".concat(ie, "-centered"), U),
                z(D, "".concat(ie, "-mobile"), h.value),
                z(D, "".concat(ie, "-editable"), L === "editable-card"),
                z(D, "".concat(ie, "-rtl"), c.value),
                D), r.class)
            }), [te, _(Q3e, I(I({
                destroyInactiveTabPane: W
            }, X), {}, {
                animated: f.value
            }), null)])
        }
    }
});
const pf = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATabs",
    inheritAttrs: !1,
    props: $t(fee(), {
        tabPosition: "top",
        animated: {
            inkBar: !0,
            tabPane: !1
        }
    }),
    slots: ["tabBarExtraContent", "leftExtra", "rightExtra", "moreIcon", "addIcon", "removeIcon", "renderTabBar"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.emit
          , o = function(s) {
            i("update:activeKey", s),
            i("change", s)
        };
        return function() {
            var l, s = rMe(bn((l = a.default) === null || l === void 0 ? void 0 : l.call(a)));
            return _(aMe, I(I(I({}, Et(e, ["onUpdate:activeKey"])), r), {}, {
                onChange: o,
                tabs: s
            }), a)
        }
    }
});
var iMe = function() {
    return {
        tab: J.any,
        disabled: {
            type: Boolean
        },
        forceRender: {
            type: Boolean
        },
        closable: {
            type: Boolean
        },
        animated: {
            type: Boolean
        },
        active: {
            type: Boolean
        },
        destroyInactiveTabPane: {
            type: Boolean
        },
        prefixCls: {
            type: String
        },
        tabKey: {
            type: [String, Number]
        },
        id: {
            type: String
        }
    }
};
const Xx = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATabPane",
    inheritAttrs: !1,
    __ANT_TAB_PANE: !0,
    props: iMe(),
    slots: ["closeIcon", "tab"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = Q(e.forceRender);
        Te([function() {
            return e.active
        }
        , function() {
            return e.destroyInactiveTabPane
        }
        ], function() {
            e.active ? i.value = !0 : e.destroyInactiveTabPane && (i.value = !1)
        }, {
            immediate: !0
        });
        var o = j(function() {
            return e.active ? {} : e.animated ? {
                visibility: "hidden",
                height: 0,
                overflowY: "hidden"
            } : {
                display: "none"
            }
        });
        return function() {
            var l, s = e.prefixCls, u = e.forceRender, c = e.id, f = e.active, d = e.tabKey;
            return _("div", {
                id: c && "".concat(c, "-panel-").concat(d),
                role: "tabpanel",
                tabindex: f ? 0 : -1,
                "aria-labelledby": c && "".concat(c, "-tab-").concat(d),
                "aria-hidden": !f,
                style: [o.value, r.style],
                class: ["".concat(s, "-tabpane"), f && "".concat(s, "-tabpane-active"), r.class]
            }, [(f || i.value || u) && ((l = a.default) === null || l === void 0 ? void 0 : l.call(a))])
        }
    }
});
pf.TabPane = Xx;
pf.install = function(t) {
    return t.component(pf.name, pf),
    t.component(Xx.name, Xx),
    t
}
;
var dee = function() {
    return Uf() && window.document.documentElement
}
  , vee = function(e) {
    if (Uf() && window.document.documentElement) {
        var n = Array.isArray(e) ? e : [e]
          , r = window.document.documentElement;
        return n.some(function(a) {
            return a in r.style
        })
    }
    return !1
}
  , oMe = function(e, n) {
    if (!vee(e))
        return !1;
    var r = document.createElement("div")
      , a = r.style[e];
    return r.style[e] = n,
    r.style[e] !== a
};
function T8(t, e) {
    return !Array.isArray(t) && e !== void 0 ? oMe(t, e) : vee(t)
}
var Wy, lMe = function() {
    if (!dee())
        return !1;
    if (Wy !== void 0)
        return Wy;
    var e = document.createElement("div");
    return e.style.display = "flex",
    e.style.flexDirection = "column",
    e.style.rowGap = "1px",
    e.appendChild(document.createElement("div")),
    e.appendChild(document.createElement("div")),
    document.body.appendChild(e),
    Wy = e.scrollHeight === 1,
    document.body.removeChild(e),
    Wy
};
const hee = function() {
    var t = Q(!1);
    return ct(function() {
        t.value = lMe()
    }),
    t
};
var pee = Symbol("rowContextKey")
  , sMe = function(e) {
    It(pee, e)
}
  , uMe = function() {
    return vt(pee, {
        gutter: j(function() {}),
        wrap: j(function() {}),
        supportFlexGap: j(function() {})
    })
};
Kn("top", "middle", "bottom", "stretch");
Kn("start", "end", "center", "space-around", "space-between");
var cMe = function() {
    return {
        align: String,
        justify: String,
        prefixCls: String,
        gutter: {
            type: [Number, Array, Object],
            default: 0
        },
        wrap: {
            type: Boolean,
            default: void 0
        }
    }
}
  , fMe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ARow",
    props: cMe(),
    setup: function(e, n) {
        var r = n.slots, a = je("row", e), i = a.prefixCls, o = a.direction, l, s = Q({
            xs: !0,
            sm: !0,
            md: !0,
            lg: !0,
            xl: !0,
            xxl: !0,
            xxxl: !0
        }), u = hee();
        ct(function() {
            l = Fv.subscribe(function(v) {
                var h = e.gutter || 0;
                (!Array.isArray(h) && We(h) === "object" || Array.isArray(h) && (We(h[0]) === "object" || We(h[1]) === "object")) && (s.value = v)
            })
        }),
        Nt(function() {
            Fv.unsubscribe(l)
        });
        var c = j(function() {
            var v = [0, 0]
              , h = e.gutter
              , p = h === void 0 ? 0 : h
              , g = Array.isArray(p) ? p : [p, 0];
            return g.forEach(function(m, y) {
                if (We(m) === "object")
                    for (var b = 0; b < Of.length; b++) {
                        var x = Of[b];
                        if (s.value[x] && m[x] !== void 0) {
                            v[y] = m[x];
                            break
                        }
                    }
                else
                    v[y] = m || 0
            }),
            v
        });
        sMe({
            gutter: c,
            supportFlexGap: u,
            wrap: j(function() {
                return e.wrap
            })
        });
        var f = j(function() {
            var v;
            return he(i.value, (v = {},
            z(v, "".concat(i.value, "-no-wrap"), e.wrap === !1),
            z(v, "".concat(i.value, "-").concat(e.justify), e.justify),
            z(v, "".concat(i.value, "-").concat(e.align), e.align),
            z(v, "".concat(i.value, "-rtl"), o.value === "rtl"),
            v))
        })
          , d = j(function() {
            var v = c.value
              , h = {}
              , p = v[0] > 0 ? "".concat(v[0] / -2, "px") : void 0
              , g = v[1] > 0 ? "".concat(v[1] / -2, "px") : void 0;
            return p && (h.marginLeft = p,
            h.marginRight = p),
            u.value ? h.rowGap = "".concat(v[1], "px") : g && (h.marginTop = g,
            h.marginBottom = g),
            h
        });
        return function() {
            var v;
            return _("div", {
                class: f.value,
                style: d.value
            }, [(v = r.default) === null || v === void 0 ? void 0 : v.call(r)])
        }
    }
});
const P8 = fMe;
function dMe(t) {
    return typeof t == "number" ? "".concat(t, " ").concat(t, " auto") : /^\d+(\.\d+)?(px|em|rem|%)$/.test(t) ? "0 0 ".concat(t) : t
}
var vMe = function() {
    return {
        span: [String, Number],
        order: [String, Number],
        offset: [String, Number],
        push: [String, Number],
        pull: [String, Number],
        xs: {
            type: [String, Number, Object],
            default: void 0
        },
        sm: {
            type: [String, Number, Object],
            default: void 0
        },
        md: {
            type: [String, Number, Object],
            default: void 0
        },
        lg: {
            type: [String, Number, Object],
            default: void 0
        },
        xl: {
            type: [String, Number, Object],
            default: void 0
        },
        xxl: {
            type: [String, Number, Object],
            default: void 0
        },
        xxxl: {
            type: [String, Number, Object],
            default: void 0
        },
        prefixCls: String,
        flex: [String, Number]
    }
};
const lw = de({
    compatConfig: {
        MODE: 3
    },
    name: "ACol",
    props: vMe(),
    setup: function(e, n) {
        var r = n.slots
          , a = uMe()
          , i = a.gutter
          , o = a.supportFlexGap
          , l = a.wrap
          , s = je("col", e)
          , u = s.prefixCls
          , c = s.direction
          , f = j(function() {
            var v, h = e.span, p = e.order, g = e.offset, m = e.push, y = e.pull, b = u.value, x = {};
            return ["xs", "sm", "md", "lg", "xl", "xxl", "xxxl"].forEach(function(C) {
                var S, w = {}, T = e[C];
                typeof T == "number" ? w.span = T : We(T) === "object" && (w = T || {}),
                x = I(I({}, x), {}, (S = {},
                z(S, "".concat(b, "-").concat(C, "-").concat(w.span), w.span !== void 0),
                z(S, "".concat(b, "-").concat(C, "-order-").concat(w.order), w.order || w.order === 0),
                z(S, "".concat(b, "-").concat(C, "-offset-").concat(w.offset), w.offset || w.offset === 0),
                z(S, "".concat(b, "-").concat(C, "-push-").concat(w.push), w.push || w.push === 0),
                z(S, "".concat(b, "-").concat(C, "-pull-").concat(w.pull), w.pull || w.pull === 0),
                z(S, "".concat(b, "-rtl"), c.value === "rtl"),
                S))
            }),
            he(b, (v = {},
            z(v, "".concat(b, "-").concat(h), h !== void 0),
            z(v, "".concat(b, "-order-").concat(p), p),
            z(v, "".concat(b, "-offset-").concat(g), g),
            z(v, "".concat(b, "-push-").concat(m), m),
            z(v, "".concat(b, "-pull-").concat(y), y),
            v), x)
        })
          , d = j(function() {
            var v = e.flex
              , h = i.value
              , p = {};
            if (h && h[0] > 0) {
                var g = "".concat(h[0] / 2, "px");
                p.paddingLeft = g,
                p.paddingRight = g
            }
            if (h && h[1] > 0 && !o.value) {
                var m = "".concat(h[1] / 2, "px");
                p.paddingTop = m,
                p.paddingBottom = m
            }
            return v && (p.flex = dMe(v),
            l.value === !1 && !p.minWidth && (p.minWidth = 0)),
            p
        });
        return function() {
            var v;
            return _("div", {
                class: f.value,
                style: d.value
            }, [(v = r.default) === null || v === void 0 ? void 0 : v.call(r)])
        }
    }
})
  , hMe = {
    useBreakpoint: yh
}
  , Wd = Jn(P8)
  , Ji = Jn(lw);
var pMe = pf.TabPane
  , gMe = function() {
    return {
        prefixCls: String,
        title: J.any,
        extra: J.any,
        bordered: {
            type: Boolean,
            default: !0
        },
        bodyStyle: {
            type: Object,
            default: void 0
        },
        headStyle: {
            type: Object,
            default: void 0
        },
        loading: {
            type: Boolean,
            default: !1
        },
        hoverable: {
            type: Boolean,
            default: !1
        },
        type: {
            type: String
        },
        size: {
            type: String
        },
        actions: J.any,
        tabList: {
            type: Array
        },
        tabBarExtraContent: J.any,
        activeTabKey: String,
        defaultActiveTabKey: String,
        cover: J.any,
        onTabChange: {
            type: Function
        }
    }
}
  , mMe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ACard",
    props: gMe(),
    slots: ["title", "extra", "tabBarExtraContent", "actions", "cover", "customTab"],
    setup: function(e, n) {
        var r = n.slots
          , a = je("card", e)
          , i = a.prefixCls
          , o = a.direction
          , l = a.size
          , s = function(d) {
            var v = d.map(function(h, p) {
                return Hr(h) && !pm(h) || !Hr(h) ? _("li", {
                    style: {
                        width: "".concat(100 / d.length, "%")
                    },
                    key: "action-".concat(p)
                }, [_("span", null, [h])]) : null
            });
            return v
        }
          , u = function(d) {
            var v;
            (v = e.onTabChange) === null || v === void 0 || v.call(e, d)
        }
          , c = function() {
            var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], v;
            return d.forEach(function(h) {
                h && IO(h.type) && h.type.__ANT_CARD_GRID && (v = !0)
            }),
            v
        };
        return function() {
            var f, d, v, h, p, g, m, y, b = e.headStyle, x = b === void 0 ? {} : b, C = e.bodyStyle, S = C === void 0 ? {} : C, w = e.loading, T = e.bordered, P = T === void 0 ? !0 : T, M = e.type, A = e.tabList, O = e.hoverable, k = e.activeTabKey, D = e.defaultActiveTabKey, E = e.tabBarExtraContent, L = E === void 0 ? Jh((f = r.tabBarExtraContent) === null || f === void 0 ? void 0 : f.call(r)) : E, N = e.title, R = N === void 0 ? Jh((d = r.title) === null || d === void 0 ? void 0 : d.call(r)) : N, $ = e.extra, W = $ === void 0 ? Jh((v = r.extra) === null || v === void 0 ? void 0 : v.call(r)) : $, B = e.actions, G = B === void 0 ? Jh((h = r.actions) === null || h === void 0 ? void 0 : h.call(r)) : B, K = e.cover, V = K === void 0 ? Jh((p = r.cover) === null || p === void 0 ? void 0 : p.call(r)) : K, U = bn((g = r.default) === null || g === void 0 ? void 0 : g.call(r)), X = i.value, Y = (m = {},
            z(m, "".concat(X), !0),
            z(m, "".concat(X, "-loading"), w),
            z(m, "".concat(X, "-bordered"), P),
            z(m, "".concat(X, "-hoverable"), !!O),
            z(m, "".concat(X, "-contain-grid"), c(U)),
            z(m, "".concat(X, "-contain-tabs"), A && A.length),
            z(m, "".concat(X, "-").concat(l.value), l.value),
            z(m, "".concat(X, "-type-").concat(M), !!M),
            z(m, "".concat(X, "-rtl"), o.value === "rtl"),
            m), te = S.padding === 0 || S.padding === "0px" ? {
                padding: "24px"
            } : void 0, ne = _("div", {
                class: "".concat(X, "-loading-block")
            }, null), ie = _("div", {
                class: "".concat(X, "-loading-content"),
                style: te
            }, [_(Wd, {
                gutter: 8
            }, {
                default: function() {
                    return [_(Ji, {
                        span: 22
                    }, {
                        default: function() {
                            return [ne]
                        }
                    })]
                }
            }), _(Wd, {
                gutter: 8
            }, {
                default: function() {
                    return [_(Ji, {
                        span: 8
                    }, {
                        default: function() {
                            return [ne]
                        }
                    }), _(Ji, {
                        span: 15
                    }, {
                        default: function() {
                            return [ne]
                        }
                    })]
                }
            }), _(Wd, {
                gutter: 8
            }, {
                default: function() {
                    return [_(Ji, {
                        span: 6
                    }, {
                        default: function() {
                            return [ne]
                        }
                    }), _(Ji, {
                        span: 18
                    }, {
                        default: function() {
                            return [ne]
                        }
                    })]
                }
            }), _(Wd, {
                gutter: 8
            }, {
                default: function() {
                    return [_(Ji, {
                        span: 13
                    }, {
                        default: function() {
                            return [ne]
                        }
                    }), _(Ji, {
                        span: 9
                    }, {
                        default: function() {
                            return [ne]
                        }
                    })]
                }
            }), _(Wd, {
                gutter: 8
            }, {
                default: function() {
                    return [_(Ji, {
                        span: 4
                    }, {
                        default: function() {
                            return [ne]
                        }
                    }), _(Ji, {
                        span: 3
                    }, {
                        default: function() {
                            return [ne]
                        }
                    }), _(Ji, {
                        span: 16
                    }, {
                        default: function() {
                            return [ne]
                        }
                    })]
                }
            })]), ae = k !== void 0, q = (y = {
                size: "large"
            },
            z(y, ae ? "activeKey" : "defaultActiveKey", ae ? k : D),
            z(y, "onChange", u),
            z(y, "class", "".concat(X, "-head-tabs")),
            y), F, H = A && A.length ? _(pf, q, {
                default: function() {
                    return [A.map(function(fe) {
                        var ce = fe.tab
                          , le = fe.slots
                          , oe = le == null ? void 0 : le.tab;
                        sn(!le, "Card", "tabList slots is deprecated, Please use `customTab` instead.");
                        var se = ce !== void 0 ? ce : r[oe] ? r[oe](fe) : null;
                        return se = oo(r, "customTab", fe, function() {
                            return [se]
                        }),
                        _(pMe, {
                            tab: se,
                            key: fe.key,
                            disabled: fe.disabled
                        }, null)
                    })]
                },
                rightExtra: L ? function() {
                    return L
                }
                : null
            }) : null;
            (R || W || H) && (F = _("div", {
                class: "".concat(X, "-head"),
                style: x
            }, [_("div", {
                class: "".concat(X, "-head-wrapper")
            }, [R && _("div", {
                class: "".concat(X, "-head-title")
            }, [R]), W && _("div", {
                class: "".concat(X, "-extra")
            }, [W])]), H]));
            var ee = V ? _("div", {
                class: "".concat(X, "-cover")
            }, [V]) : null
              , re = _("div", {
                class: "".concat(X, "-body"),
                style: S
            }, [w ? ie : U])
              , ue = G && G.length ? _("ul", {
                class: "".concat(X, "-actions")
            }, [s(G)]) : null;
            return _("div", {
                class: Y,
                ref: "cardContainerRef"
            }, [F, ee, U && U.length ? re : null, ue])
        }
    }
});
const gv = mMe;
var yMe = function() {
    return {
        prefixCls: String,
        title: J.any,
        description: J.any,
        avatar: J.any
    }
};
const Zx = de({
    compatConfig: {
        MODE: 3
    },
    name: "ACardMeta",
    props: yMe(),
    slots: ["title", "description", "avatar"],
    setup: function(e, n) {
        var r = n.slots
          , a = je("card", e)
          , i = a.prefixCls;
        return function() {
            var o = z({}, "".concat(i.value, "-meta"), !0)
              , l = Dn(r, e, "avatar")
              , s = Dn(r, e, "title")
              , u = Dn(r, e, "description")
              , c = l ? _("div", {
                class: "".concat(i.value, "-meta-avatar")
            }, [l]) : null
              , f = s ? _("div", {
                class: "".concat(i.value, "-meta-title")
            }, [s]) : null
              , d = u ? _("div", {
                class: "".concat(i.value, "-meta-description")
            }, [u]) : null
              , v = f || d ? _("div", {
                class: "".concat(i.value, "-meta-detail")
            }, [f, d]) : null;
            return _("div", {
                class: o
            }, [c, v])
        }
    }
});
var bMe = function() {
    return {
        prefixCls: String,
        hoverable: {
            type: Boolean,
            default: !0
        }
    }
};
const Qx = de({
    compatConfig: {
        MODE: 3
    },
    name: "ACardGrid",
    __ANT_CARD_GRID: !0,
    props: bMe(),
    setup: function(e, n) {
        var r = n.slots
          , a = je("card", e)
          , i = a.prefixCls
          , o = j(function() {
            var l;
            return l = {},
            z(l, "".concat(i.value, "-grid"), !0),
            z(l, "".concat(i.value, "-grid-hoverable"), e.hoverable),
            l
        });
        return function() {
            var l;
            return _("div", {
                class: o.value
            }, [(l = r.default) === null || l === void 0 ? void 0 : l.call(r)])
        }
    }
});
gv.Meta = Zx;
gv.Grid = Qx;
gv.install = function(t) {
    return t.component(gv.name, gv),
    t.component(Zx.name, Zx),
    t.component(Qx.name, Qx),
    t
}
;
var xMe = function() {
    return {
        prefixCls: String,
        activeKey: {
            type: [Array, Number, String]
        },
        defaultActiveKey: {
            type: [Array, Number, String]
        },
        accordion: {
            type: Boolean,
            default: void 0
        },
        destroyInactivePanel: {
            type: Boolean,
            default: void 0
        },
        bordered: {
            type: Boolean,
            default: void 0
        },
        expandIcon: Function,
        openAnimation: J.object,
        expandIconPosition: J.oneOf(Kn("left", "right")),
        collapsible: {
            type: String
        },
        ghost: {
            type: Boolean,
            default: void 0
        },
        onChange: Function,
        "onUpdate:activeKey": Function
    }
}
  , gee = function() {
    return {
        openAnimation: J.object,
        prefixCls: String,
        header: J.any,
        headerClass: String,
        showArrow: {
            type: Boolean,
            default: void 0
        },
        isActive: {
            type: Boolean,
            default: void 0
        },
        destroyInactivePanel: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        accordion: {
            type: Boolean,
            default: void 0
        },
        forceRender: {
            type: Boolean,
            default: void 0
        },
        expandIcon: Function,
        extra: J.any,
        panelKey: J.oneOfType([J.string, J.number]),
        collapsible: {
            type: String
        },
        role: String,
        onItemClick: {
            type: Function
        }
    }
};
function c9(t) {
    var e = t;
    if (!Array.isArray(e)) {
        var n = We(e);
        e = n === "number" || n === "string" ? [e] : []
    }
    return e.map(function(r) {
        return String(r)
    })
}
const bg = de({
    compatConfig: {
        MODE: 3
    },
    name: "ACollapse",
    inheritAttrs: !1,
    props: $t(xMe(), {
        accordion: !1,
        destroyInactivePanel: !1,
        bordered: !0,
        openAnimation: wm("ant-motion-collapse", !1),
        expandIconPosition: "left"
    }),
    slots: ["expandIcon"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.emit
          , o = Q(c9(Fx([e.activeKey, e.defaultActiveKey])));
        Te(function() {
            return e.activeKey
        }, function() {
            o.value = c9(e.activeKey)
        }, {
            deep: !0
        });
        var l = je("collapse", e)
          , s = l.prefixCls
          , u = l.direction
          , c = j(function() {
            var g = e.expandIconPosition;
            return g !== void 0 ? g : u.value === "rtl" ? "right" : "left"
        })
          , f = function(m) {
            var y = e.expandIcon
              , b = y === void 0 ? a.expandIcon : y
              , x = b ? b(m) : _(ls, {
                rotate: m.isActive ? 90 : void 0
            }, null);
            return _("div", null, [cr(Array.isArray(b) ? x[0] : x) ? Qt(x, {
                class: "".concat(s.value, "-arrow")
            }, !1) : x])
        }
          , d = function(m) {
            e.activeKey === void 0 && (o.value = m);
            var y = e.accordion ? m[0] : m;
            i("update:activeKey", y),
            i("change", y)
        }
          , v = function(m) {
            var y = o.value;
            if (e.accordion)
                y = y[0] === m ? [] : [m];
            else {
                y = $e(y);
                var b = y.indexOf(m)
                  , x = b > -1;
                x ? y.splice(b, 1) : y.push(m)
            }
            d(y)
        }
          , h = function(m, y) {
            var b, x, C;
            if (!pm(m)) {
                var S = o.value
                  , w = e.accordion
                  , T = e.destroyInactivePanel
                  , P = e.collapsible
                  , M = e.openAnimation
                  , A = String((b = m.key) !== null && b !== void 0 ? b : y)
                  , O = m.props || {}
                  , k = O.header
                  , D = k === void 0 ? (x = m.children) === null || x === void 0 || (C = x.header) === null || C === void 0 ? void 0 : C.call(x) : k
                  , E = O.headerClass
                  , L = O.collapsible
                  , N = O.disabled
                  , R = !1;
                w ? R = S[0] === A : R = S.indexOf(A) > -1;
                var $ = L != null ? L : P;
                (N || N === "") && ($ = "disabled");
                var W = {
                    key: A,
                    panelKey: A,
                    header: D,
                    headerClass: E,
                    isActive: R,
                    prefixCls: s.value,
                    destroyInactivePanel: T,
                    openAnimation: M,
                    accordion: w,
                    onItemClick: $ === "disabled" ? null : v,
                    expandIcon: f,
                    collapsible: $
                };
                return Qt(m, W)
            }
        }
          , p = function() {
            var m;
            return bn((m = a.default) === null || m === void 0 ? void 0 : m.call(a)).map(h)
        };
        return function() {
            var g, m = e.accordion, y = e.bordered, b = e.ghost, x = he((g = {},
            z(g, s.value, !0),
            z(g, "".concat(s.value, "-borderless"), !y),
            z(g, "".concat(s.value, "-icon-position-").concat(c.value), !0),
            z(g, "".concat(s.value, "-rtl"), u.value === "rtl"),
            z(g, "".concat(s.value, "-ghost"), !!b),
            z(g, r.class, !!r.class),
            g));
            return _("div", I(I({
                class: x
            }, Hme(r)), {}, {
                style: r.style,
                role: m ? "tablist" : null
            }), [p()])
        }
    }
})
  , SMe = de({
    compatConfig: {
        MODE: 3
    },
    name: "PanelContent",
    props: gee(),
    setup: function(e, n) {
        var r = n.slots
          , a = Q(!1);
        return pt(function() {
            (e.isActive || e.forceRender) && (a.value = !0)
        }),
        function() {
            var i, o;
            if (!a.value)
                return null;
            var l = e.prefixCls
              , s = e.isActive
              , u = e.role;
            return _("div", {
                ref: Q,
                class: he("".concat(l, "-content"), (i = {},
                z(i, "".concat(l, "-content-active"), s),
                z(i, "".concat(l, "-content-inactive"), !s),
                i)),
                role: u
            }, [_("div", {
                class: "".concat(l, "-content-box")
            }, [(o = r.default) === null || o === void 0 ? void 0 : o.call(r)])])
        }
    }
})
  , Jx = de({
    compatConfig: {
        MODE: 3
    },
    name: "ACollapsePanel",
    inheritAttrs: !1,
    props: $t(gee(), {
        showArrow: !0,
        isActive: !1,
        onItemClick: function() {},
        headerClass: "",
        forceRender: !1
    }),
    slots: ["expandIcon", "extra", "header"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = n.attrs;
        sn(e.disabled === void 0, "Collapse.Panel", '`disabled` is deprecated. Please use `collapsible="disabled"` instead.');
        var o = je("collapse", e)
          , l = o.prefixCls
          , s = function() {
            a("itemClick", e.panelKey)
        }
          , u = function(f) {
            (f.key === "Enter" || f.keyCode === 13 || f.which === 13) && s()
        };
        return function() {
            var c, f, d, v, h = e.header, p = h === void 0 ? (c = r.header) === null || c === void 0 ? void 0 : c.call(r) : h, g = e.headerClass, m = e.isActive, y = e.showArrow, b = e.destroyInactivePanel, x = e.accordion, C = e.forceRender, S = e.openAnimation, w = e.expandIcon, T = w === void 0 ? r.expandIcon : w, P = e.extra, M = P === void 0 ? (f = r.extra) === null || f === void 0 ? void 0 : f.call(r) : P, A = e.collapsible, O = A === "disabled", k = l.value, D = he("".concat(k, "-header"), (d = {},
            z(d, g, g),
            z(d, "".concat(k, "-header-collapsible-only"), A === "header"),
            d)), E = he((v = {},
            z(v, "".concat(k, "-item"), !0),
            z(v, "".concat(k, "-item-active"), m),
            z(v, "".concat(k, "-item-disabled"), O),
            z(v, "".concat(k, "-no-arrow"), !y),
            z(v, "".concat(i.class), !!i.class),
            v)), L = _("i", {
                class: "arrow"
            }, null);
            y && typeof T == "function" && (L = T(e));
            var N = Fr(_(SMe, {
                prefixCls: k,
                isActive: m,
                forceRender: C,
                role: x ? "tabpanel" : null
            }, {
                default: r.default
            }), [[Io, m]])
              , R = I({
                appear: !1,
                css: !1
            }, S);
            return _("div", I(I({}, i), {}, {
                class: E
            }), [_("div", {
                class: D,
                onClick: function() {
                    return A !== "header" && s()
                },
                role: x ? "tab" : "button",
                tabindex: O ? -1 : 0,
                "aria-expanded": m,
                onKeypress: u
            }, [y && L, A === "header" ? _("span", {
                onClick: s,
                class: "".concat(k, "-header-text")
            }, [p]) : p, M && _("div", {
                class: "".concat(k, "-extra")
            }, [M])]), _(dh, R, {
                default: function() {
                    return [!b || m ? N : null]
                }
            })])
        }
    }
});
bg.Panel = Jx;
bg.install = function(t) {
    return t.component(bg.name, bg),
    t.component(Jx.name, Jx),
    t
}
;
var CMe = function(e) {
    return e.replace(/[A-Z]/g, function(n) {
        return "-" + n.toLowerCase()
    }).toLowerCase()
}
  , wMe = function(e) {
    var n = /[height|width]$/;
    return n.test(e)
}
  , f9 = function(e) {
    var n = ""
      , r = Object.keys(e);
    return r.forEach(function(a, i) {
        var o = e[a];
        a = CMe(a),
        wMe(a) && typeof o == "number" && (o = o + "px"),
        o === !0 ? n += a : o === !1 ? n += "not " + a : n += "(" + a + ": " + o + ")",
        i < r.length - 1 && (n += " and ")
    }),
    n
};
function sT(t) {
    var e = "";
    return typeof t == "string" ? t : t instanceof Array ? (t.forEach(function(n, r) {
        e += f9(n),
        r < t.length - 1 && (e += ", ")
    }),
    e) : f9(t)
}
var _Me = function() {
    return ko.Date.now()
};
const uT = _Me;
var TMe = "Expected a function"
  , PMe = Math.max
  , MMe = Math.min;
function sw(t, e, n) {
    var r, a, i, o, l, s, u = 0, c = !1, f = !1, d = !0;
    if (typeof t != "function")
        throw new TypeError(TMe);
    e = NM(e) || 0,
    wo(n) && (c = !!n.leading,
    f = "maxWait"in n,
    i = f ? PMe(NM(n.maxWait) || 0, e) : i,
    d = "trailing"in n ? !!n.trailing : d);
    function v(S) {
        var w = r
          , T = a;
        return r = a = void 0,
        u = S,
        o = t.apply(T, w),
        o
    }
    function h(S) {
        return u = S,
        l = setTimeout(m, e),
        c ? v(S) : o
    }
    function p(S) {
        var w = S - s
          , T = S - u
          , P = e - w;
        return f ? MMe(P, i - T) : P
    }
    function g(S) {
        var w = S - s
          , T = S - u;
        return s === void 0 || w >= e || w < 0 || f && T >= i
    }
    function m() {
        var S = uT();
        if (g(S))
            return y(S);
        l = setTimeout(m, p(S))
    }
    function y(S) {
        return l = void 0,
        d && r ? v(S) : (r = a = void 0,
        o)
    }
    function b() {
        l !== void 0 && clearTimeout(l),
        u = 0,
        r = s = a = l = void 0
    }
    function x() {
        return l === void 0 ? o : y(uT())
    }
    function C() {
        var S = uT()
          , w = g(S);
        if (r = arguments,
        a = this,
        s = S,
        w) {
            if (l === void 0)
                return h(s);
            if (f)
                return clearTimeout(l),
                l = setTimeout(m, e),
                v(s)
        }
        return l === void 0 && (l = setTimeout(m, e)),
        o
    }
    return C.cancel = b,
    C.flush = x,
    C
}
var AMe = {
    accessibility: {
        type: Boolean,
        default: !0
    },
    adaptiveHeight: {
        type: Boolean,
        default: !1
    },
    afterChange: J.any.def(null),
    arrows: {
        type: Boolean,
        default: !0
    },
    autoplay: {
        type: Boolean,
        default: !1
    },
    autoplaySpeed: J.number.def(3e3),
    beforeChange: J.any.def(null),
    centerMode: {
        type: Boolean,
        default: !1
    },
    centerPadding: J.string.def("50px"),
    cssEase: J.string.def("ease"),
    dots: {
        type: Boolean,
        default: !1
    },
    dotsClass: J.string.def("slick-dots"),
    draggable: {
        type: Boolean,
        default: !0
    },
    unslick: {
        type: Boolean,
        default: !1
    },
    easing: J.string.def("linear"),
    edgeFriction: J.number.def(.35),
    fade: {
        type: Boolean,
        default: !1
    },
    focusOnSelect: {
        type: Boolean,
        default: !1
    },
    infinite: {
        type: Boolean,
        default: !0
    },
    initialSlide: J.number.def(0),
    lazyLoad: J.any.def(null),
    verticalSwiping: {
        type: Boolean,
        default: !1
    },
    asNavFor: J.any.def(null),
    pauseOnDotsHover: {
        type: Boolean,
        default: !1
    },
    pauseOnFocus: {
        type: Boolean,
        default: !1
    },
    pauseOnHover: {
        type: Boolean,
        default: !0
    },
    responsive: J.array,
    rows: J.number.def(1),
    rtl: {
        type: Boolean,
        default: !1
    },
    slide: J.string.def("div"),
    slidesPerRow: J.number.def(1),
    slidesToScroll: J.number.def(1),
    slidesToShow: J.number.def(1),
    speed: J.number.def(500),
    swipe: {
        type: Boolean,
        default: !0
    },
    swipeEvent: J.any.def(null),
    swipeToSlide: {
        type: Boolean,
        default: !1
    },
    touchMove: {
        type: Boolean,
        default: !0
    },
    touchThreshold: J.number.def(5),
    useCSS: {
        type: Boolean,
        default: !0
    },
    useTransform: {
        type: Boolean,
        default: !0
    },
    variableWidth: {
        type: Boolean,
        default: !1
    },
    vertical: {
        type: Boolean,
        default: !1
    },
    waitForAnimate: {
        type: Boolean,
        default: !0
    },
    children: J.array,
    __propsSymbol__: J.any
};
const mee = AMe;
var IMe = {
    animating: !1,
    autoplaying: null,
    currentDirection: 0,
    currentLeft: null,
    currentSlide: 0,
    direction: 1,
    dragging: !1,
    edgeDragged: !1,
    initialized: !1,
    lazyLoadedList: [],
    listHeight: null,
    listWidth: null,
    scrolling: !1,
    slideCount: null,
    slideHeight: null,
    slideWidth: null,
    swipeLeft: null,
    swiped: !1,
    swiping: !1,
    touchObject: {
        startX: 0,
        startY: 0,
        curX: 0,
        curY: 0
    },
    trackStyle: {},
    trackWidth: 0,
    targetSlide: 0
};
const kMe = IMe;
function GM(t, e, n) {
    return Math.max(e, Math.min(t, n))
}
var mv = function(e) {
    var n = ["touchstart", "touchmove", "wheel"];
    n.includes(e.type) || e.preventDefault()
}
  , eS = function(e) {
    for (var n = [], r = yee(e), a = bee(e), i = r; i < a; i++)
        e.lazyLoadedList.indexOf(i) < 0 && n.push(i);
    return n
}
  , yee = function(e) {
    return e.currentSlide - OMe(e)
}
  , bee = function(e) {
    return e.currentSlide + DMe(e)
}
  , OMe = function(e) {
    return e.centerMode ? Math.floor(e.slidesToShow / 2) + (parseInt(e.centerPadding) > 0 ? 1 : 0) : 0
}
  , DMe = function(e) {
    return e.centerMode ? Math.floor((e.slidesToShow - 1) / 2) + 1 + (parseInt(e.centerPadding) > 0 ? 1 : 0) : e.slidesToShow
}
  , KM = function(e) {
    return e && e.offsetWidth || 0
}
  , M8 = function(e) {
    return e && e.offsetHeight || 0
}
  , xee = function(e) {
    var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r, a = e.startX - e.curX, i = e.startY - e.curY, o = Math.atan2(i, a);
    return r = Math.round(o * 180 / Math.PI),
    r < 0 && (r = 360 - Math.abs(r)),
    r <= 45 && r >= 0 || r <= 360 && r >= 315 ? "left" : r >= 135 && r <= 225 ? "right" : n === !0 ? r >= 35 && r <= 135 ? "up" : "down" : "vertical"
}
  , uw = function(e) {
    var n = !0;
    return e.infinite || (e.centerMode && e.currentSlide >= e.slideCount - 1 || e.slideCount <= e.slidesToShow || e.currentSlide >= e.slideCount - e.slidesToShow) && (n = !1),
    n
}
  , cT = function(e, n) {
    var r = {};
    return n.forEach(function(a) {
        return r[a] = e[a]
    }),
    r
}
  , EMe = function(e) {
    var n = e.children.length, r = e.listRef, a = Math.ceil(KM(r)), i = e.trackRef, o = Math.ceil(KM(i)), l;
    if (e.vertical)
        l = a;
    else {
        var s = e.centerMode && parseInt(e.centerPadding) * 2;
        typeof e.centerPadding == "string" && e.centerPadding.slice(-1) === "%" && (s *= a / 100),
        l = Math.ceil((a - s) / e.slidesToShow)
    }
    var u = r && M8(r.querySelector('[data-index="0"]'))
      , c = u * e.slidesToShow
      , f = e.currentSlide === void 0 ? e.initialSlide : e.currentSlide;
    e.rtl && e.currentSlide === void 0 && (f = n - 1 - e.initialSlide);
    var d = e.lazyLoadedList || []
      , v = eS(I(I({}, e), {}, {
        currentSlide: f,
        lazyLoadedList: d
    }));
    d = d.concat(v);
    var h = {
        slideCount: n,
        slideWidth: l,
        listWidth: a,
        trackWidth: o,
        currentSlide: f,
        slideHeight: u,
        listHeight: c,
        lazyLoadedList: d
    };
    return e.autoplaying === null && e.autoplay && (h.autoplaying = "playing"),
    h
}
  , LMe = function(e) {
    var n = e.waitForAnimate
      , r = e.animating
      , a = e.fade
      , i = e.infinite
      , o = e.index
      , l = e.slideCount
      , s = e.lazyLoad
      , u = e.currentSlide
      , c = e.centerMode
      , f = e.slidesToScroll
      , d = e.slidesToShow
      , v = e.useCSS
      , h = e.lazyLoadedList;
    if (n && r)
        return {};
    var p = o, g, m, y, b = {}, x = {}, C = i ? o : GM(o, 0, l - 1);
    if (a) {
        if (!i && (o < 0 || o >= l))
            return {};
        o < 0 ? p = o + l : o >= l && (p = o - l),
        s && h.indexOf(p) < 0 && (h = h.concat(p)),
        b = {
            animating: !0,
            currentSlide: p,
            lazyLoadedList: h,
            targetSlide: p
        },
        x = {
            animating: !1,
            targetSlide: p
        }
    } else
        g = p,
        p < 0 ? (g = p + l,
        i ? l % f !== 0 && (g = l - l % f) : g = 0) : !uw(e) && p > u ? p = g = u : c && p >= l ? (p = i ? l : l - 1,
        g = i ? 0 : l - 1) : p >= l && (g = p - l,
        i ? l % f !== 0 && (g = 0) : g = l - d),
        !i && p + d >= l && (g = l - d),
        m = b0(I(I({}, e), {}, {
            slideIndex: p
        })),
        y = b0(I(I({}, e), {}, {
            slideIndex: g
        })),
        i || (m === y && (p = g),
        m = y),
        s && (h = h.concat(eS(I(I({}, e), {}, {
            currentSlide: p
        })))),
        v ? (b = {
            animating: !0,
            currentSlide: g,
            trackStyle: See(I(I({}, e), {}, {
                left: m
            })),
            lazyLoadedList: h,
            targetSlide: C
        },
        x = {
            animating: !1,
            currentSlide: g,
            trackStyle: y0(I(I({}, e), {}, {
                left: y
            })),
            swipeLeft: null,
            targetSlide: C
        }) : b = {
            currentSlide: g,
            trackStyle: y0(I(I({}, e), {}, {
                left: y
            })),
            lazyLoadedList: h,
            targetSlide: C
        };
    return {
        state: b,
        nextState: x
    }
}
  , RMe = function(e, n) {
    var r, a, i, o = e.slidesToScroll, l = e.slidesToShow, s = e.slideCount, u = e.currentSlide, c = e.targetSlide, f = e.lazyLoad, d = e.infinite, v = s % o !== 0, h = v ? 0 : (s - u) % o;
    if (n.message === "previous")
        a = h === 0 ? o : l - h,
        i = u - a,
        f && !d && (r = u - a,
        i = r === -1 ? s - 1 : r),
        d || (i = c - o);
    else if (n.message === "next")
        a = h === 0 ? o : h,
        i = u + a,
        f && !d && (i = (u + o) % s + h),
        d || (i = c + o);
    else if (n.message === "dots")
        i = n.index * n.slidesToScroll;
    else if (n.message === "children") {
        if (i = n.index,
        d) {
            var p = HMe(I(I({}, e), {}, {
                targetSlide: i
            }));
            i > n.currentSlide && p === "left" ? i = i - s : i < n.currentSlide && p === "right" && (i = i + s)
        }
    } else
        n.message === "index" && (i = Number(n.index));
    return i
}
  , NMe = function(e, n, r) {
    return e.target.tagName.match("TEXTAREA|INPUT|SELECT") || !n ? "" : e.keyCode === 37 ? r ? "next" : "previous" : e.keyCode === 39 ? r ? "previous" : "next" : ""
}
  , $Me = function(e, n, r) {
    return e.target.tagName === "IMG" && mv(e),
    !n || !r && e.type.indexOf("mouse") !== -1 ? "" : {
        dragging: !0,
        touchObject: {
            startX: e.touches ? e.touches[0].pageX : e.clientX,
            startY: e.touches ? e.touches[0].pageY : e.clientY,
            curX: e.touches ? e.touches[0].pageX : e.clientX,
            curY: e.touches ? e.touches[0].pageY : e.clientY
        }
    }
}
  , FMe = function(e, n) {
    var r = n.scrolling
      , a = n.animating
      , i = n.vertical
      , o = n.swipeToSlide
      , l = n.verticalSwiping
      , s = n.rtl
      , u = n.currentSlide
      , c = n.edgeFriction
      , f = n.edgeDragged
      , d = n.onEdge
      , v = n.swiped
      , h = n.swiping
      , p = n.slideCount
      , g = n.slidesToScroll
      , m = n.infinite
      , y = n.touchObject
      , b = n.swipeEvent
      , x = n.listHeight
      , C = n.listWidth;
    if (!r) {
        if (a)
            return mv(e);
        i && o && l && mv(e);
        var S, w = {}, T = b0(n);
        y.curX = e.touches ? e.touches[0].pageX : e.clientX,
        y.curY = e.touches ? e.touches[0].pageY : e.clientY,
        y.swipeLength = Math.round(Math.sqrt(Math.pow(y.curX - y.startX, 2)));
        var P = Math.round(Math.sqrt(Math.pow(y.curY - y.startY, 2)));
        if (!l && !h && P > 10)
            return {
                scrolling: !0
            };
        l && (y.swipeLength = P);
        var M = (s ? -1 : 1) * (y.curX > y.startX ? 1 : -1);
        l && (M = y.curY > y.startY ? 1 : -1);
        var A = Math.ceil(p / g)
          , O = xee(n.touchObject, l)
          , k = y.swipeLength;
        return m || (u === 0 && (O === "right" || O === "down") || u + 1 >= A && (O === "left" || O === "up") || !uw(n) && (O === "left" || O === "up")) && (k = y.swipeLength * c,
        f === !1 && d && (d(O),
        w.edgeDragged = !0)),
        !v && b && (b(O),
        w.swiped = !0),
        i ? S = T + k * (x / C) * M : s ? S = T - k * M : S = T + k * M,
        l && (S = T + k * M),
        w = I(I({}, w), {}, {
            touchObject: y,
            swipeLeft: S,
            trackStyle: y0(I(I({}, n), {}, {
                left: S
            }))
        }),
        Math.abs(y.curX - y.startX) < Math.abs(y.curY - y.startY) * .8 || y.swipeLength > 10 && (w.swiping = !0,
        mv(e)),
        w
    }
}
  , BMe = function(e, n) {
    var r = n.dragging
      , a = n.swipe
      , i = n.touchObject
      , o = n.listWidth
      , l = n.touchThreshold
      , s = n.verticalSwiping
      , u = n.listHeight
      , c = n.swipeToSlide
      , f = n.scrolling
      , d = n.onSwipe
      , v = n.targetSlide
      , h = n.currentSlide
      , p = n.infinite;
    if (!r)
        return a && mv(e),
        {};
    var g = s ? u / l : o / l
      , m = xee(i, s)
      , y = {
        dragging: !1,
        edgeDragged: !1,
        scrolling: !1,
        swiping: !1,
        swiped: !1,
        swipeLeft: null,
        touchObject: {}
    };
    if (f || !i.swipeLength)
        return y;
    if (i.swipeLength > g) {
        mv(e),
        d && d(m);
        var b, x, C = p ? h : v;
        switch (m) {
        case "left":
        case "up":
            x = C + v9(n),
            b = c ? d9(n, x) : x,
            y.currentDirection = 0;
            break;
        case "right":
        case "down":
            x = C - v9(n),
            b = c ? d9(n, x) : x,
            y.currentDirection = 1;
            break;
        default:
            b = C
        }
        y.triggerSlideHandler = b
    } else {
        var S = b0(n);
        y.trackStyle = See(I(I({}, n), {}, {
            left: S
        }))
    }
    return y
}
  , VMe = function(e) {
    for (var n = e.infinite ? e.slideCount * 2 : e.slideCount, r = e.infinite ? e.slidesToShow * -1 : 0, a = e.infinite ? e.slidesToShow * -1 : 0, i = []; r < n; )
        i.push(r),
        r = a + e.slidesToScroll,
        a += Math.min(e.slidesToScroll, e.slidesToShow);
    return i
}
  , d9 = function(e, n) {
    var r = VMe(e)
      , a = 0;
    if (n > r[r.length - 1])
        n = r[r.length - 1];
    else
        for (var i in r) {
            if (n < r[i]) {
                n = a;
                break
            }
            a = r[i]
        }
    return n
}
  , v9 = function(e) {
    var n = e.centerMode ? e.slideWidth * Math.floor(e.slidesToShow / 2) : 0;
    if (e.swipeToSlide) {
        var r, a = e.listRef, i = a.querySelectorAll && a.querySelectorAll(".slick-slide") || [];
        if (Array.from(i).every(function(s) {
            if (e.vertical) {
                if (s.offsetTop + M8(s) / 2 > e.swipeLeft * -1)
                    return r = s,
                    !1
            } else if (s.offsetLeft - n + KM(s) / 2 > e.swipeLeft * -1)
                return r = s,
                !1;
            return !0
        }),
        !r)
            return 0;
        var o = e.rtl === !0 ? e.slideCount - e.currentSlide : e.currentSlide
          , l = Math.abs(r.dataset.index - o) || 1;
        return l
    } else
        return e.slidesToScroll
}
  , A8 = function(e, n) {
    return n.reduce(function(r, a) {
        return r && e.hasOwnProperty(a)
    }, !0) ? null : void 0
}
  , y0 = function(e) {
    A8(e, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth"]);
    var n, r, a = e.slideCount + 2 * e.slidesToShow;
    e.vertical ? r = a * e.slideHeight : n = zMe(e) * e.slideWidth;
    var i = {
        opacity: 1,
        transition: "",
        WebkitTransition: ""
    };
    if (e.useTransform) {
        var o = e.vertical ? "translate3d(0px, " + e.left + "px, 0px)" : "translate3d(" + e.left + "px, 0px, 0px)"
          , l = e.vertical ? "translate3d(0px, " + e.left + "px, 0px)" : "translate3d(" + e.left + "px, 0px, 0px)"
          , s = e.vertical ? "translateY(" + e.left + "px)" : "translateX(" + e.left + "px)";
        i = I(I({}, i), {}, {
            WebkitTransform: o,
            transform: l,
            msTransform: s
        })
    } else
        e.vertical ? i.top = e.left : i.left = e.left;
    return e.fade && (i = {
        opacity: 1
    }),
    n && (i.width = n + "px"),
    r && (i.height = r + "px"),
    window && !window.addEventListener && window.attachEvent && (e.vertical ? i.marginTop = e.left + "px" : i.marginLeft = e.left + "px"),
    i
}
  , See = function(e) {
    A8(e, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]);
    var n = y0(e);
    return e.useTransform ? (n.WebkitTransition = "-webkit-transform " + e.speed + "ms " + e.cssEase,
    n.transition = "transform " + e.speed + "ms " + e.cssEase) : e.vertical ? n.transition = "top " + e.speed + "ms " + e.cssEase : n.transition = "left " + e.speed + "ms " + e.cssEase,
    n
}
  , b0 = function(e) {
    if (e.unslick)
        return 0;
    A8(e, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]);
    var n = e.slideIndex, r = e.trackRef, a = e.infinite, i = e.centerMode, o = e.slideCount, l = e.slidesToShow, s = e.slidesToScroll, u = e.slideWidth, c = e.listWidth, f = e.variableWidth, d = e.slideHeight, v = e.fade, h = e.vertical, p = 0, g, m, y = 0;
    if (v || e.slideCount === 1)
        return 0;
    var b = 0;
    if (a ? (b = -Xl(e),
    o % s !== 0 && n + s > o && (b = -(n > o ? l - (n - o) : o % s)),
    i && (b += parseInt(l / 2))) : (o % s !== 0 && n + s > o && (b = l - o % s),
    i && (b = parseInt(l / 2))),
    p = b * u,
    y = b * d,
    h ? g = n * d * -1 + y : g = n * u * -1 + p,
    f === !0) {
        var x, C = r;
        if (x = n + Xl(e),
        m = C && C.childNodes[x],
        g = m ? m.offsetLeft * -1 : 0,
        i === !0) {
            x = a ? n + Xl(e) : n,
            m = C && C.children[x],
            g = 0;
            for (var S = 0; S < x; S++)
                g -= C && C.children[S] && C.children[S].offsetWidth;
            g -= parseInt(e.centerPadding),
            g += m && (c - m.offsetWidth) / 2
        }
    }
    return g
}
  , Xl = function(e) {
    return e.unslick || !e.infinite ? 0 : e.variableWidth ? e.slideCount : e.slidesToShow + (e.centerMode ? 1 : 0)
}
  , bb = function(e) {
    return e.unslick || !e.infinite ? 0 : e.slideCount
}
  , zMe = function(e) {
    return e.slideCount === 1 ? 1 : Xl(e) + e.slideCount + bb(e)
}
  , HMe = function(e) {
    return e.targetSlide > e.currentSlide ? e.targetSlide > e.currentSlide + jMe(e) ? "left" : "right" : e.targetSlide < e.currentSlide - WMe(e) ? "right" : "left"
}
  , jMe = function(e) {
    var n = e.slidesToShow
      , r = e.centerMode
      , a = e.rtl
      , i = e.centerPadding;
    if (r) {
        var o = (n - 1) / 2 + 1;
        return parseInt(i) > 0 && (o += 1),
        a && n % 2 === 0 && (o += 1),
        o
    }
    return a ? 0 : n - 1
}
  , WMe = function(e) {
    var n = e.slidesToShow
      , r = e.centerMode
      , a = e.rtl
      , i = e.centerPadding;
    if (r) {
        var o = (n - 1) / 2 + 1;
        return parseInt(i) > 0 && (o += 1),
        !a && n % 2 === 0 && (o += 1),
        o
    }
    return a ? n - 1 : 0
}
  , h9 = function() {
    return !!(typeof window != "undefined" && window.document && window.document.createElement)
}
  , fT = function(e) {
    var n, r, a, i;
    e.rtl ? i = e.slideCount - 1 - e.index : i = e.index;
    var o = i < 0 || i >= e.slideCount;
    e.centerMode ? (a = Math.floor(e.slidesToShow / 2),
    r = (i - e.currentSlide) % e.slideCount === 0,
    i > e.currentSlide - a - 1 && i <= e.currentSlide + a && (n = !0)) : n = e.currentSlide <= i && i < e.currentSlide + e.slidesToShow;
    var l;
    e.targetSlide < 0 ? l = e.targetSlide + e.slideCount : e.targetSlide >= e.slideCount ? l = e.targetSlide - e.slideCount : l = e.targetSlide;
    var s = i === l;
    return {
        "slick-slide": !0,
        "slick-active": n,
        "slick-center": r,
        "slick-cloned": o,
        "slick-current": s
    }
}
  , GMe = function(e) {
    var n = {};
    return (e.variableWidth === void 0 || e.variableWidth === !1) && (n.width = e.slideWidth + (typeof e.slideWidth == "number" ? "px" : "")),
    e.fade && (n.position = "relative",
    e.vertical ? n.top = -e.index * parseInt(e.slideHeight) + "px" : n.left = -e.index * parseInt(e.slideWidth) + "px",
    n.opacity = e.currentSlide === e.index ? 1 : 0,
    e.useCSS && (n.transition = "opacity " + e.speed + "ms " + e.cssEase + ", visibility " + e.speed + "ms " + e.cssEase)),
    n
}
  , dT = function(e, n) {
    return e.key + "-" + n
}
  , KMe = function(e, n) {
    var r, a = [], i = [], o = [], l = n.length, s = yee(e), u = bee(e);
    return n.forEach(function(c, f) {
        var d, v = {
            message: "children",
            index: f,
            slidesToScroll: e.slidesToScroll,
            currentSlide: e.currentSlide
        };
        !e.lazyLoad || e.lazyLoad && e.lazyLoadedList.indexOf(f) >= 0 ? d = c : d = _("div");
        var h = GMe(I(I({}, e), {}, {
            index: f
        }))
          , p = d.props.class || ""
          , g = fT(I(I({}, e), {}, {
            index: f
        }));
        if (a.push(gg(d, {
            key: "original" + dT(d, f),
            tabindex: "-1",
            "data-index": f,
            "aria-hidden": !g["slick-active"],
            class: he(g, p),
            style: I(I({
                outline: "none"
            }, d.props.style || {}), h),
            onClick: function() {
                e.focusOnSelect && e.focusOnSelect(v)
            }
        })),
        e.infinite && e.fade === !1) {
            var m = l - f;
            m <= Xl(e) && l !== e.slidesToShow && (r = -m,
            r >= s && (d = c),
            g = fT(I(I({}, e), {}, {
                index: r
            })),
            i.push(gg(d, {
                key: "precloned" + dT(d, r),
                class: he(g, p),
                tabindex: "-1",
                "data-index": r,
                "aria-hidden": !g["slick-active"],
                style: I(I({}, d.props.style || {}), h),
                onClick: function() {
                    e.focusOnSelect && e.focusOnSelect(v)
                }
            }))),
            l !== e.slidesToShow && (r = l + f,
            r < u && (d = c),
            g = fT(I(I({}, e), {}, {
                index: r
            })),
            o.push(gg(d, {
                key: "postcloned" + dT(d, r),
                tabindex: "-1",
                "data-index": r,
                "aria-hidden": !g["slick-active"],
                class: he(g, p),
                style: I(I({}, d.props.style || {}), h),
                onClick: function() {
                    e.focusOnSelect && e.focusOnSelect(v)
                }
            })))
        }
    }),
    e.rtl ? i.concat(a, o).reverse() : i.concat(a, o)
}
  , Cee = function(e, n) {
    var r = n.attrs
      , a = n.slots
      , i = KMe(r, bn(a == null ? void 0 : a.default()))
      , o = r.onMouseenter
      , l = r.onMouseover
      , s = r.onMouseleave
      , u = {
        onMouseenter: o,
        onMouseover: l,
        onMouseleave: s
    }
      , c = I({
        class: "slick-track",
        style: r.trackStyle
    }, u);
    return _("div", c, [i])
};
Cee.inheritAttrs = !1;
const UMe = Cee;
var YMe = function(e) {
    var n;
    return e.infinite ? n = Math.ceil(e.slideCount / e.slidesToScroll) : n = Math.ceil((e.slideCount - e.slidesToShow) / e.slidesToScroll) + 1,
    n
}
  , wee = function(e, n) {
    for (var r = n.attrs, a = r.slideCount, i = r.slidesToScroll, o = r.slidesToShow, l = r.infinite, s = r.currentSlide, u = r.appendDots, c = r.customPaging, f = r.clickHandler, d = r.dotsClass, v = r.onMouseenter, h = r.onMouseover, p = r.onMouseleave, g = YMe({
        slideCount: a,
        slidesToScroll: i,
        slidesToShow: o,
        infinite: l
    }), m = {
        onMouseenter: v,
        onMouseover: h,
        onMouseleave: p
    }, y = [], b = function() {
        var S = (x + 1) * i - 1
          , w = l ? S : GM(S, 0, a - 1)
          , T = w - (i - 1)
          , P = l ? T : GM(T, 0, a - 1)
          , M = he({
            "slick-active": l ? s >= P && s <= w : s === P
        })
          , A = {
            message: "dots",
            index: x,
            slidesToScroll: i,
            currentSlide: s
        };
        function O(k) {
            k && k.preventDefault(),
            f(A)
        }
        y = y.concat(_("li", {
            key: x,
            class: M
        }, [Qt(c({
            i: x
        }), {
            onClick: O
        })]))
    }, x = 0; x < g; x++)
        b();
    return Qt(u({
        dots: y
    }), I({
        class: d
    }, m))
};
wee.inheritAttrs = !1;
const qMe = wee;
function _ee() {}
function Tee(t, e, n) {
    n && n.preventDefault(),
    e(t, n)
}
var Pee = function(e, n) {
    var r = n.attrs
      , a = r.clickHandler
      , i = r.infinite
      , o = r.currentSlide
      , l = r.slideCount
      , s = r.slidesToShow
      , u = {
        "slick-arrow": !0,
        "slick-prev": !0
    }
      , c = function(p) {
        Tee({
            message: "previous"
        }, a, p)
    };
    !i && (o === 0 || l <= s) && (u["slick-disabled"] = !0,
    c = _ee);
    var f = {
        key: "0",
        "data-role": "none",
        class: u,
        style: {
            display: "block"
        },
        onClick: c
    }, d = {
        currentSlide: o,
        slideCount: l
    }, v;
    return r.prevArrow ? v = Qt(r.prevArrow(I(I({}, f), d)), {
        key: "0",
        class: u,
        style: {
            display: "block"
        },
        onClick: c
    }, !1) : v = _("button", I({
        key: "0",
        type: "button"
    }, f), [" ", Fi("Previous")]),
    v
};
Pee.inheritAttrs = !1;
var Mee = function(e, n) {
    var r = n.attrs
      , a = r.clickHandler
      , i = r.currentSlide
      , o = r.slideCount
      , l = {
        "slick-arrow": !0,
        "slick-next": !0
    }
      , s = function(v) {
        Tee({
            message: "next"
        }, a, v)
    };
    uw(r) || (l["slick-disabled"] = !0,
    s = _ee);
    var u = {
        key: "1",
        "data-role": "none",
        class: he(l),
        style: {
            display: "block"
        },
        onClick: s
    }, c = {
        currentSlide: i,
        slideCount: o
    }, f;
    return r.nextArrow ? f = Qt(r.nextArrow(I(I({}, u), c)), {
        key: "1",
        class: he(l),
        style: {
            display: "block"
        },
        onClick: s
    }, !1) : f = _("button", I({
        key: "1",
        type: "button"
    }, u), [" ", Fi("Next")]),
    f
};
Mee.inheritAttrs = !1;
var XMe = ["animating"];
function Ya() {}
const ZMe = {
    name: "InnerSlider",
    mixins: [Xf],
    inheritAttrs: !1,
    props: I({}, mee),
    data: function() {
        this.preProps = I({}, this.$props),
        this.list = null,
        this.track = null,
        this.callbackTimers = [],
        this.clickable = !0,
        this.debouncedResize = null;
        var e = this.ssrInit();
        return I(I({}, kMe), {}, {
            currentSlide: this.initialSlide,
            slideCount: this.children.length
        }, e)
    },
    watch: {
        __propsSymbol__: function() {
            for (var e = this, n = this.$props, r = I(I({
                listRef: this.list,
                trackRef: this.track
            }, n), this.$data), a = !1, i = 0, o = Object.keys(this.preProps); i < o.length; i++) {
                var l = o[i];
                if (!n.hasOwnProperty(l)) {
                    a = !0;
                    break
                }
                if (!(We(n[l]) === "object" || typeof n[l] == "function" || We(n[l]) === "symbol") && n[l] !== this.preProps[l]) {
                    a = !0;
                    break
                }
            }
            this.updateState(r, a, function() {
                e.currentSlide >= n.children.length && e.changeSlide({
                    message: "index",
                    index: n.children.length - n.slidesToShow,
                    currentSlide: e.currentSlide
                }),
                !e.preProps.autoplay && n.autoplay ? e.handleAutoPlay("playing") : n.autoplay ? e.handleAutoPlay("update") : e.pause("paused")
            }),
            this.preProps = I({}, n)
        }
    },
    mounted: function() {
        var e = this;
        if (this.__emit("init"),
        this.lazyLoad) {
            var n = eS(I(I({}, this.$props), this.$data));
            n.length > 0 && (this.setState(function(r) {
                return {
                    lazyLoadedList: r.lazyLoadedList.concat(n)
                }
            }),
            this.__emit("lazyLoad", n))
        }
        this.$nextTick(function() {
            var r = I({
                listRef: e.list,
                trackRef: e.track,
                children: e.children
            }, e.$props);
            e.updateState(r, !0, function() {
                e.adaptHeight(),
                e.autoplay && e.handleAutoPlay("playing")
            }),
            e.lazyLoad === "progressive" && (e.lazyLoadTimer = setInterval(e.progressiveLazyLoad, 1e3)),
            e.ro = new MO(function() {
                e.animating ? (e.onWindowResized(!1),
                e.callbackTimers.push(setTimeout(function() {
                    return e.onWindowResized()
                }, e.speed))) : e.onWindowResized()
            }
            ),
            e.ro.observe(e.list),
            document.querySelectorAll && Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"), function(a) {
                a.onfocus = e.$props.pauseOnFocus ? e.onSlideFocus : null,
                a.onblur = e.$props.pauseOnFocus ? e.onSlideBlur : null
            }),
            window.addEventListener ? window.addEventListener("resize", e.onWindowResized) : window.attachEvent("onresize", e.onWindowResized)
        })
    },
    beforeUnmount: function() {
        var e;
        this.animationEndCallback && clearTimeout(this.animationEndCallback),
        this.lazyLoadTimer && clearInterval(this.lazyLoadTimer),
        this.callbackTimers.length && (this.callbackTimers.forEach(function(n) {
            return clearTimeout(n)
        }),
        this.callbackTimers = []),
        window.addEventListener ? window.removeEventListener("resize", this.onWindowResized) : window.detachEvent("onresize", this.onWindowResized),
        this.autoplayTimer && clearInterval(this.autoplayTimer),
        (e = this.ro) === null || e === void 0 || e.disconnect()
    },
    updated: function() {
        if (this.checkImagesLoad(),
        this.__emit("reInit"),
        this.lazyLoad) {
            var e = eS(I(I({}, this.$props), this.$data));
            e.length > 0 && (this.setState(function(n) {
                return {
                    lazyLoadedList: n.lazyLoadedList.concat(e)
                }
            }),
            this.__emit("lazyLoad"))
        }
        this.adaptHeight()
    },
    methods: {
        listRefHandler: function(e) {
            this.list = e
        },
        trackRefHandler: function(e) {
            this.track = e
        },
        adaptHeight: function() {
            if (this.adaptiveHeight && this.list) {
                var e = this.list.querySelector('[data-index="'.concat(this.currentSlide, '"]'));
                this.list.style.height = M8(e) + "px"
            }
        },
        onWindowResized: function(e) {
            var n = this;
            this.debouncedResize && this.debouncedResize.cancel(),
            this.debouncedResize = sw(function() {
                return n.resizeWindow(e)
            }, 50),
            this.debouncedResize()
        },
        resizeWindow: function() {
            var e = this
              , n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0
              , r = Boolean(this.track);
            if (!!r) {
                var a = I(I({
                    listRef: this.list,
                    trackRef: this.track,
                    children: this.children
                }, this.$props), this.$data);
                this.updateState(a, n, function() {
                    e.autoplay ? e.handleAutoPlay("update") : e.pause("paused")
                }),
                this.setState({
                    animating: !1
                }),
                clearTimeout(this.animationEndCallback),
                delete this.animationEndCallback
            }
        },
        updateState: function(e, n, r) {
            var a = EMe(e);
            e = I(I(I({}, e), a), {}, {
                slideIndex: a.currentSlide
            });
            var i = b0(e);
            e = I(I({}, e), {}, {
                left: i
            });
            var o = y0(e);
            (n || this.children.length !== e.children.length) && (a.trackStyle = o),
            this.setState(a, r)
        },
        ssrInit: function() {
            var e = this.children;
            if (this.variableWidth) {
                var n = 0
                  , r = 0
                  , a = []
                  , i = Xl(I(I(I({}, this.$props), this.$data), {}, {
                    slideCount: e.length
                }))
                  , o = bb(I(I(I({}, this.$props), this.$data), {}, {
                    slideCount: e.length
                }));
                e.forEach(function(b) {
                    var x, C, S = ((x = b.props.style) === null || x === void 0 || (C = x.width) === null || C === void 0 ? void 0 : C.split("px")[0]) || 0;
                    a.push(S),
                    n += S
                });
                for (var l = 0; l < i; l++)
                    r += a[a.length - 1 - l],
                    n += a[a.length - 1 - l];
                for (var s = 0; s < o; s++)
                    n += a[s];
                for (var u = 0; u < this.currentSlide; u++)
                    r += a[u];
                var c = {
                    width: n + "px",
                    left: -r + "px"
                };
                if (this.centerMode) {
                    var f = "".concat(a[this.currentSlide], "px");
                    c.left = "calc(".concat(c.left, " + (100% - ").concat(f, ") / 2 ) ")
                }
                return {
                    trackStyle: c
                }
            }
            var d = e.length
              , v = I(I(I({}, this.$props), this.$data), {}, {
                slideCount: d
            })
              , h = Xl(v) + bb(v) + d
              , p = 100 / this.slidesToShow * h
              , g = 100 / h
              , m = -g * (Xl(v) + this.currentSlide) * p / 100;
            this.centerMode && (m += (100 - g * p / 100) / 2);
            var y = {
                width: p + "%",
                left: m + "%"
            };
            return {
                slideWidth: g + "%",
                trackStyle: y
            }
        },
        checkImagesLoad: function() {
            var e = this
              , n = this.list && this.list.querySelectorAll && this.list.querySelectorAll(".slick-slide img") || []
              , r = n.length
              , a = 0;
            Array.prototype.forEach.call(n, function(i) {
                var o = function() {
                    return ++a && a >= r && e.onWindowResized()
                };
                if (!i.onclick)
                    i.onclick = function() {
                        return i.parentNode.focus()
                    }
                    ;
                else {
                    var l = i.onclick;
                    i.onclick = function() {
                        l(),
                        i.parentNode.focus()
                    }
                }
                i.onload || (e.$props.lazyLoad ? i.onload = function() {
                    e.adaptHeight(),
                    e.callbackTimers.push(setTimeout(e.onWindowResized, e.speed))
                }
                : (i.onload = o,
                i.onerror = function() {
                    o(),
                    e.__emit("lazyLoadError")
                }
                ))
            })
        },
        progressiveLazyLoad: function() {
            for (var e = [], n = I(I({}, this.$props), this.$data), r = this.currentSlide; r < this.slideCount + bb(n); r++)
                if (this.lazyLoadedList.indexOf(r) < 0) {
                    e.push(r);
                    break
                }
            for (var a = this.currentSlide - 1; a >= -Xl(n); a--)
                if (this.lazyLoadedList.indexOf(a) < 0) {
                    e.push(a);
                    break
                }
            e.length > 0 ? (this.setState(function(i) {
                return {
                    lazyLoadedList: i.lazyLoadedList.concat(e)
                }
            }),
            this.__emit("lazyLoad", e)) : this.lazyLoadTimer && (clearInterval(this.lazyLoadTimer),
            delete this.lazyLoadTimer)
        },
        slideHandler: function(e) {
            var n = this
              , r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1
              , a = this.$props
              , i = a.asNavFor
              , o = a.currentSlide
              , l = a.beforeChange
              , s = a.speed
              , u = a.afterChange
              , c = LMe(I(I(I({
                index: e
            }, this.$props), this.$data), {}, {
                trackRef: this.track,
                useCSS: this.useCSS && !r
            }))
              , f = c.state
              , d = c.nextState;
            if (!!f) {
                l && l(o, f.currentSlide);
                var v = f.lazyLoadedList.filter(function(h) {
                    return n.lazyLoadedList.indexOf(h) < 0
                });
                this.$attrs.onLazyLoad && v.length > 0 && this.__emit("lazyLoad", v),
                !this.$props.waitForAnimate && this.animationEndCallback && (clearTimeout(this.animationEndCallback),
                u && u(o),
                delete this.animationEndCallback),
                this.setState(f, function() {
                    i && n.asNavForIndex !== e && (n.asNavForIndex = e,
                    i.innerSlider.slideHandler(e)),
                    d && (n.animationEndCallback = setTimeout(function() {
                        var h = d.animating
                          , p = tt(d, XMe);
                        n.setState(p, function() {
                            n.callbackTimers.push(setTimeout(function() {
                                return n.setState({
                                    animating: h
                                })
                            }, 10)),
                            u && u(f.currentSlide),
                            delete n.animationEndCallback
                        })
                    }, s))
                })
            }
        },
        changeSlide: function(e) {
            var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1
              , r = I(I({}, this.$props), this.$data)
              , a = RMe(r, e);
            if (!(a !== 0 && !a) && (n === !0 ? this.slideHandler(a, n) : this.slideHandler(a),
            this.$props.autoplay && this.handleAutoPlay("update"),
            this.$props.focusOnSelect)) {
                var i = this.list.querySelectorAll(".slick-current");
                i[0] && i[0].focus()
            }
        },
        clickHandler: function(e) {
            this.clickable === !1 && (e.stopPropagation(),
            e.preventDefault()),
            this.clickable = !0
        },
        keyHandler: function(e) {
            var n = NMe(e, this.accessibility, this.rtl);
            n !== "" && this.changeSlide({
                message: n
            })
        },
        selectHandler: function(e) {
            this.changeSlide(e)
        },
        disableBodyScroll: function() {
            var e = function(r) {
                r = r || window.event,
                r.preventDefault && r.preventDefault(),
                r.returnValue = !1
            };
            window.ontouchmove = e
        },
        enableBodyScroll: function() {
            window.ontouchmove = null
        },
        swipeStart: function(e) {
            this.verticalSwiping && this.disableBodyScroll();
            var n = $Me(e, this.swipe, this.draggable);
            n !== "" && this.setState(n)
        },
        swipeMove: function(e) {
            var n = FMe(e, I(I(I({}, this.$props), this.$data), {}, {
                trackRef: this.track,
                listRef: this.list,
                slideIndex: this.currentSlide
            }));
            !n || (n.swiping && (this.clickable = !1),
            this.setState(n))
        },
        swipeEnd: function(e) {
            var n = BMe(e, I(I(I({}, this.$props), this.$data), {}, {
                trackRef: this.track,
                listRef: this.list,
                slideIndex: this.currentSlide
            }));
            if (!!n) {
                var r = n.triggerSlideHandler;
                delete n.triggerSlideHandler,
                this.setState(n),
                r !== void 0 && (this.slideHandler(r),
                this.$props.verticalSwiping && this.enableBodyScroll())
            }
        },
        touchEnd: function(e) {
            this.swipeEnd(e),
            this.clickable = !0
        },
        slickPrev: function() {
            var e = this;
            this.callbackTimers.push(setTimeout(function() {
                return e.changeSlide({
                    message: "previous"
                })
            }, 0))
        },
        slickNext: function() {
            var e = this;
            this.callbackTimers.push(setTimeout(function() {
                return e.changeSlide({
                    message: "next"
                })
            }, 0))
        },
        slickGoTo: function(e) {
            var n = this
              , r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
            if (e = Number(e),
            isNaN(e))
                return "";
            this.callbackTimers.push(setTimeout(function() {
                return n.changeSlide({
                    message: "index",
                    index: e,
                    currentSlide: n.currentSlide
                }, r)
            }, 0))
        },
        play: function() {
            var e;
            if (this.rtl)
                e = this.currentSlide - this.slidesToScroll;
            else if (uw(I(I({}, this.$props), this.$data)))
                e = this.currentSlide + this.slidesToScroll;
            else
                return !1;
            this.slideHandler(e)
        },
        handleAutoPlay: function(e) {
            this.autoplayTimer && clearInterval(this.autoplayTimer);
            var n = this.autoplaying;
            if (e === "update") {
                if (n === "hovered" || n === "focused" || n === "paused")
                    return
            } else if (e === "leave") {
                if (n === "paused" || n === "focused")
                    return
            } else if (e === "blur" && (n === "paused" || n === "hovered"))
                return;
            this.autoplayTimer = setInterval(this.play, this.autoplaySpeed + 50),
            this.setState({
                autoplaying: "playing"
            })
        },
        pause: function(e) {
            this.autoplayTimer && (clearInterval(this.autoplayTimer),
            this.autoplayTimer = null);
            var n = this.autoplaying;
            e === "paused" ? this.setState({
                autoplaying: "paused"
            }) : e === "focused" ? (n === "hovered" || n === "playing") && this.setState({
                autoplaying: "focused"
            }) : n === "playing" && this.setState({
                autoplaying: "hovered"
            })
        },
        onDotsOver: function() {
            this.autoplay && this.pause("hovered")
        },
        onDotsLeave: function() {
            this.autoplay && this.autoplaying === "hovered" && this.handleAutoPlay("leave")
        },
        onTrackOver: function() {
            this.autoplay && this.pause("hovered")
        },
        onTrackLeave: function() {
            this.autoplay && this.autoplaying === "hovered" && this.handleAutoPlay("leave")
        },
        onSlideFocus: function() {
            this.autoplay && this.pause("focused")
        },
        onSlideBlur: function() {
            this.autoplay && this.autoplaying === "focused" && this.handleAutoPlay("blur")
        },
        customPaging: function(e) {
            var n = e.i;
            return _("button", null, [n + 1])
        },
        appendDots: function(e) {
            var n = e.dots;
            return _("ul", {
                style: {
                    display: "block"
                }
            }, [n])
        }
    },
    render: function() {
        var e, n = this, r = he("slick-slider", this.$attrs.class, {
            "slick-vertical": this.vertical,
            "slick-initialized": !0
        }), a = I(I({}, this.$props), this.$data), i = cT(a, ["fade", "cssEase", "speed", "infinite", "centerMode", "focusOnSelect", "currentSlide", "lazyLoad", "lazyLoadedList", "rtl", "slideWidth", "slideHeight", "listHeight", "vertical", "slidesToShow", "slidesToScroll", "slideCount", "trackStyle", "variableWidth", "unslick", "centerPadding", "targetSlide", "useCSS"]), o = this.$props.pauseOnHover;
        i = I(I({}, i), {}, {
            focusOnSelect: this.focusOnSelect && this.clickable ? this.selectHandler : null,
            ref: this.trackRefHandler,
            onMouseleave: o ? this.onTrackLeave : Ya,
            onMouseover: o ? this.onTrackOver : Ya
        });
        var l;
        if (this.dots === !0 && this.slideCount >= this.slidesToShow) {
            var s = cT(a, ["dotsClass", "slideCount", "slidesToShow", "currentSlide", "slidesToScroll", "clickHandler", "children", "infinite", "appendDots"]);
            s.customPaging = this.customPaging,
            s.appendDots = this.appendDots;
            var u = this.$slots
              , c = u.customPaging
              , f = u.appendDots;
            c && (s.customPaging = c),
            f && (s.appendDots = f);
            var d = this.$props.pauseOnDotsHover;
            s = I(I({}, s), {}, {
                clickHandler: this.changeSlide,
                onMouseover: d ? this.onDotsOver : Ya,
                onMouseleave: d ? this.onDotsLeave : Ya
            }),
            l = _(qMe, s, null)
        }
        var v, h, p = cT(a, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow"]);
        p.clickHandler = this.changeSlide;
        var g = this.$slots
          , m = g.prevArrow
          , y = g.nextArrow;
        m && (p.prevArrow = m),
        y && (p.nextArrow = y),
        this.arrows && (v = _(Pee, p, null),
        h = _(Mee, p, null));
        var b = null;
        this.vertical && (b = {
            height: typeof this.listHeight == "number" ? "".concat(this.listHeight, "px") : this.listHeight
        });
        var x = null;
        this.vertical === !1 ? this.centerMode === !0 && (x = {
            padding: "0px " + this.centerPadding
        }) : this.centerMode === !0 && (x = {
            padding: this.centerPadding + " 0px"
        });
        var C = I(I({}, b), x)
          , S = this.touchMove
          , w = (e = {
            ref: this.listRefHandler,
            class: "slick-list",
            style: C,
            onClick: this.clickHandler,
            onMousedown: S ? this.swipeStart : Ya,
            onMousemove: this.dragging && S ? this.swipeMove : Ya,
            onMouseup: S ? this.swipeEnd : Ya,
            onMouseleave: this.dragging && S ? this.swipeEnd : Ya
        },
        z(e, gr ? "onTouchstartPassive" : "onTouchstart", S ? this.swipeStart : Ya),
        z(e, gr ? "onTouchmovePassive" : "onTouchmove", this.dragging && S ? this.swipeMove : Ya),
        z(e, "onTouchend", S ? this.touchEnd : Ya),
        z(e, "onTouchcancel", this.dragging && S ? this.swipeEnd : Ya),
        z(e, "onKeydown", this.accessibility ? this.keyHandler : Ya),
        e)
          , T = {
            class: r,
            dir: "ltr",
            style: this.$attrs.style
        };
        return this.unslick && (w = {
            class: "slick-list",
            ref: this.listRefHandler
        },
        T = {
            class: r
        }),
        _("div", T, [this.unslick ? "" : v, _("div", w, [_(UMe, i, {
            default: function() {
                return [n.children]
            }
        })]), this.unslick ? "" : h, this.unslick ? "" : l])
    }
}
  , QMe = de({
    name: "Slider",
    mixins: [Xf],
    inheritAttrs: !1,
    props: I({}, mee),
    data: function() {
        return this._responsiveMediaHandlers = [],
        {
            breakpoint: null
        }
    },
    mounted: function() {
        var e = this;
        if (this.responsive) {
            var n = this.responsive.map(function(a) {
                return a.breakpoint
            });
            n.sort(function(a, i) {
                return a - i
            }),
            n.forEach(function(a, i) {
                var o;
                i === 0 ? o = sT({
                    minWidth: 0,
                    maxWidth: a
                }) : o = sT({
                    minWidth: n[i - 1] + 1,
                    maxWidth: a
                }),
                h9() && e.media(o, function() {
                    e.setState({
                        breakpoint: a
                    })
                })
            });
            var r = sT({
                minWidth: n.slice(-1)[0]
            });
            h9() && this.media(r, function() {
                e.setState({
                    breakpoint: null
                })
            })
        }
    },
    beforeUnmount: function() {
        this._responsiveMediaHandlers.forEach(function(e) {
            e.mql.removeListener(e.listener)
        })
    },
    methods: {
        innerSliderRefHandler: function(e) {
            this.innerSlider = e
        },
        media: function(e, n) {
            var r = window.matchMedia(e)
              , a = function(o) {
                var l = o.matches;
                l && n()
            };
            r.addListener(a),
            a(r),
            this._responsiveMediaHandlers.push({
                mql: r,
                query: e,
                listener: a
            })
        },
        slickPrev: function() {
            var e;
            (e = this.innerSlider) === null || e === void 0 || e.slickPrev()
        },
        slickNext: function() {
            var e;
            (e = this.innerSlider) === null || e === void 0 || e.slickNext()
        },
        slickGoTo: function(e) {
            var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
            (n = this.innerSlider) === null || n === void 0 || n.slickGoTo(e, r)
        },
        slickPause: function() {
            var e;
            (e = this.innerSlider) === null || e === void 0 || e.pause("paused")
        },
        slickPlay: function() {
            var e;
            (e = this.innerSlider) === null || e === void 0 || e.handleAutoPlay("play")
        }
    },
    render: function() {
        var e = this, n, r;
        this.breakpoint ? (r = this.responsive.filter(function(p) {
            return p.breakpoint === e.breakpoint
        }),
        n = r[0].settings === "unslick" ? "unslick" : I(I({}, this.$props), r[0].settings)) : n = I({}, this.$props),
        n.centerMode && (n.slidesToScroll > 1,
        n.slidesToScroll = 1),
        n.fade && (n.slidesToShow > 1,
        n.slidesToScroll > 1,
        n.slidesToShow = 1,
        n.slidesToScroll = 1);
        var a = hm(this) || [];
        a = a.filter(function(p) {
            return typeof p == "string" ? !!p.trim() : !!p
        }),
        n.variableWidth && (n.rows > 1 || n.slidesPerRow > 1) && (n.variableWidth = !1);
        for (var i = [], o = null, l = 0; l < a.length; l += n.rows * n.slidesPerRow) {
            for (var s = [], u = l; u < l + n.rows * n.slidesPerRow; u += n.slidesPerRow) {
                for (var c = [], f = u; f < u + n.slidesPerRow; f += 1) {
                    var d;
                    if (n.variableWidth && (d = a[f].props) !== null && d !== void 0 && d.style && (o = a[f].props.style.width),
                    f >= a.length)
                        break;
                    c.push(Qt(a[f], {
                        key: 100 * l + 10 * u + f,
                        tabindex: -1,
                        style: {
                            width: "".concat(100 / n.slidesPerRow, "%"),
                            display: "inline-block"
                        }
                    }))
                }
                s.push(_("div", {
                    key: 10 * l + u
                }, [c]))
            }
            n.variableWidth ? i.push(_("div", {
                key: l,
                style: {
                    width: o
                }
            }, [s])) : i.push(_("div", {
                key: l
            }, [s]))
        }
        if (n === "unslick") {
            var v = "regular slider " + (this.className || "");
            return _("div", {
                class: v
            }, [a])
        } else
            i.length <= n.slidesToShow && (n.unslick = !0);
        var h = I(I(I({}, this.$attrs), n), {}, {
            children: i,
            ref: this.innerSliderRefHandler
        });
        return _(ZMe, I(I({}, h), {}, {
            __propsSymbol__: []
        }), this.$slots)
    }
});
var JMe = ["class", "style"]
  , eAe = function() {
    return {
        effect: String,
        dots: {
            type: Boolean,
            default: !0
        },
        vertical: {
            type: Boolean,
            default: void 0
        },
        autoplay: {
            type: Boolean,
            default: void 0
        },
        easing: String,
        beforeChange: Function,
        afterChange: Function,
        prefixCls: String,
        accessibility: {
            type: Boolean,
            default: void 0
        },
        nextArrow: J.any,
        prevArrow: J.any,
        pauseOnHover: {
            type: Boolean,
            default: void 0
        },
        adaptiveHeight: {
            type: Boolean,
            default: void 0
        },
        arrows: {
            type: Boolean,
            default: !1
        },
        autoplaySpeed: Number,
        centerMode: {
            type: Boolean,
            default: void 0
        },
        centerPadding: String,
        cssEase: String,
        dotsClass: String,
        draggable: {
            type: Boolean,
            default: !1
        },
        fade: {
            type: Boolean,
            default: void 0
        },
        focusOnSelect: {
            type: Boolean,
            default: void 0
        },
        infinite: {
            type: Boolean,
            default: void 0
        },
        initialSlide: Number,
        lazyLoad: String,
        rtl: {
            type: Boolean,
            default: void 0
        },
        slide: String,
        slidesToShow: Number,
        slidesToScroll: Number,
        speed: Number,
        swipe: {
            type: Boolean,
            default: void 0
        },
        swipeToSlide: {
            type: Boolean,
            default: void 0
        },
        swipeEvent: Function,
        touchMove: {
            type: Boolean,
            default: void 0
        },
        touchThreshold: Number,
        variableWidth: {
            type: Boolean,
            default: void 0
        },
        useCSS: {
            type: Boolean,
            default: void 0
        },
        slickGoTo: Number,
        responsive: Array,
        dotPosition: {
            type: String,
            default: void 0
        },
        verticalSwiping: {
            type: Boolean,
            default: !1
        }
    }
}
  , tAe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ACarousel",
    inheritAttrs: !1,
    props: eAe(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.expose
          , o = Q()
          , l = function(p) {
            var g, m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
            (g = o.value) === null || g === void 0 || g.slickGoTo(p, m)
        };
        i({
            goTo: l,
            autoplay: function(p) {
                var g, m;
                (g = o.value) === null || g === void 0 || (m = g.innerSlider) === null || m === void 0 || m.handleAutoPlay(p)
            },
            prev: function() {
                var p;
                (p = o.value) === null || p === void 0 || p.slickPrev()
            },
            next: function() {
                var p;
                (p = o.value) === null || p === void 0 || p.slickNext()
            },
            innerSlider: j(function() {
                var h;
                return (h = o.value) === null || h === void 0 ? void 0 : h.innerSlider
            })
        }),
        pt(function() {
            ur(e.vertical === void 0, "Carousel", "`vertical` is deprecated, please use `dotPosition` instead.")
        });
        var s = je("carousel", e)
          , u = s.prefixCls
          , c = s.direction
          , f = j(function() {
            return e.dotPosition ? e.dotPosition : e.vertical !== void 0 && e.vertical ? "right" : "bottom"
        })
          , d = j(function() {
            return f.value === "left" || f.value === "right"
        })
          , v = j(function() {
            var h, p = "slick-dots";
            return he((h = {},
            z(h, p, !0),
            z(h, "".concat(p, "-").concat(f.value), !0),
            z(h, "".concat(e.dotsClass), !!e.dotsClass),
            h))
        });
        return function() {
            var h, p = e.dots, g = e.arrows, m = e.draggable, y = e.effect, b = a.class, x = a.style, C = tt(a, JMe), S = y === "fade" ? !0 : e.fade, w = he(u.value, (h = {},
            z(h, "".concat(u.value, "-rtl"), c.value === "rtl"),
            z(h, "".concat(u.value, "-vertical"), d.value),
            z(h, "".concat(b), !!b),
            h));
            return _("div", {
                class: w,
                style: x
            }, [_(QMe, I(I(I({
                ref: o
            }, e), C), {}, {
                dots: !!p,
                dotsClass: v.value,
                arrows: g,
                draggable: m,
                fade: S,
                vertical: d.value
            }), r)])
        }
    }
});
const nAe = Jn(tAe);
var I8 = "__RC_CASCADER_SPLIT__"
  , rAe = "SHOW_PARENT"
  , aAe = "SHOW_CHILD";
function pu(t) {
    return t.join(I8)
}
function ev(t) {
    return t.map(pu)
}
function iAe(t) {
    return t.split(I8)
}
function oAe(t) {
    var e = t || {}
      , n = e.label
      , r = e.value
      , a = e.children
      , i = r || "value";
    return {
        label: n || "label",
        value: i,
        key: i,
        children: a || "children"
    }
}
function jp(t, e) {
    var n, r;
    return (n = t.isLeaf) !== null && n !== void 0 ? n : !((r = t[e.children]) !== null && r !== void 0 && r.length)
}
function lAe(t) {
    var e = t.parentElement;
    if (!!e) {
        var n = t.offsetTop - e.offsetTop;
        n - e.scrollTop < 0 ? e.scrollTo({
            top: n
        }) : n + t.offsetHeight - e.scrollTop > e.offsetHeight && e.scrollTo({
            top: n + t.offsetHeight - e.offsetHeight
        })
    }
}
var Aee = Symbol("TreeContextKey")
  , sAe = de({
    compatConfig: {
        MODE: 3
    },
    name: "TreeContext",
    props: {
        value: {
            type: Object
        }
    },
    setup: function(e, n) {
        var r = n.slots;
        return It(Aee, j(function() {
            return e.value
        })),
        function() {
            var a;
            return (a = r.default) === null || a === void 0 ? void 0 : a.call(r)
        }
    }
})
  , k8 = function() {
    return vt(Aee, j(function() {
        return {}
    }))
}
  , Iee = Symbol("KeysStateKey")
  , uAe = function(e) {
    It(Iee, e)
}
  , kee = function() {
    return vt(Iee, {
        expandedKeys: Mt([]),
        selectedKeys: Mt([]),
        loadedKeys: Mt([]),
        loadingKeys: Mt([]),
        checkedKeys: Mt([]),
        halfCheckedKeys: Mt([]),
        expandedKeysSet: j(function() {
            return new Set
        }),
        selectedKeysSet: j(function() {
            return new Set
        }),
        loadedKeysSet: j(function() {
            return new Set
        }),
        loadingKeysSet: j(function() {
            return new Set
        }),
        checkedKeysSet: j(function() {
            return new Set
        }),
        halfCheckedKeysSet: j(function() {
            return new Set
        }),
        flattenNodes: Mt([])
    })
}
  , cAe = function(e) {
    for (var n = e.prefixCls, r = e.level, a = e.isStart, i = e.isEnd, o = "".concat(n, "-indent-unit"), l = [], s = 0; s < r; s += 1) {
        var u;
        l.push(_("span", {
            key: s,
            class: (u = {},
            z(u, o, !0),
            z(u, "".concat(o, "-start"), a[s]),
            z(u, "".concat(o, "-end"), i[s]),
            u)
        }, null))
    }
    return _("span", {
        "aria-hidden": "true",
        class: "".concat(n, "-indent")
    }, [l])
};
const fAe = cAe;
var Oee = {
    eventKey: [String, Number],
    prefixCls: String,
    title: J.any,
    data: {
        type: Object,
        default: void 0
    },
    parent: {
        type: Object,
        default: void 0
    },
    isStart: {
        type: Array
    },
    isEnd: {
        type: Array
    },
    active: {
        type: Boolean,
        default: void 0
    },
    onMousemove: {
        type: Function
    },
    isLeaf: {
        type: Boolean,
        default: void 0
    },
    checkable: {
        type: Boolean,
        default: void 0
    },
    selectable: {
        type: Boolean,
        default: void 0
    },
    disabled: {
        type: Boolean,
        default: void 0
    },
    disableCheckbox: {
        type: Boolean,
        default: void 0
    },
    icon: J.any,
    switcherIcon: J.any,
    domRef: {
        type: Function
    }
}
  , dAe = {
    prefixCls: {
        type: String
    },
    motion: {
        type: Object
    },
    focusable: {
        type: Boolean
    },
    activeItem: {
        type: Object
    },
    focused: {
        type: Boolean
    },
    tabindex: {
        type: Number
    },
    checkable: {
        type: Boolean
    },
    selectable: {
        type: Boolean
    },
    disabled: {
        type: Boolean
    },
    height: {
        type: Number
    },
    itemHeight: {
        type: Number
    },
    virtual: {
        type: Boolean
    },
    onScroll: {
        type: Function
    },
    onKeydown: {
        type: Function
    },
    onFocus: {
        type: Function
    },
    onBlur: {
        type: Function
    },
    onActiveChange: {
        type: Function
    },
    onContextmenu: {
        type: Function
    },
    onListChangeStart: {
        type: Function
    },
    onListChangeEnd: {
        type: Function
    }
}
  , Dee = function() {
    return {
        prefixCls: String,
        focusable: {
            type: Boolean,
            default: void 0
        },
        activeKey: [Number, String],
        tabindex: Number,
        children: J.any,
        treeData: {
            type: Array
        },
        fieldNames: {
            type: Object
        },
        showLine: {
            type: [Boolean, Object],
            default: void 0
        },
        showIcon: {
            type: Boolean,
            default: void 0
        },
        icon: J.any,
        selectable: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        multiple: {
            type: Boolean,
            default: void 0
        },
        checkable: {
            type: Boolean,
            default: void 0
        },
        checkStrictly: {
            type: Boolean,
            default: void 0
        },
        draggable: {
            type: [Function, Boolean]
        },
        defaultExpandParent: {
            type: Boolean,
            default: void 0
        },
        autoExpandParent: {
            type: Boolean,
            default: void 0
        },
        defaultExpandAll: {
            type: Boolean,
            default: void 0
        },
        defaultExpandedKeys: {
            type: Array
        },
        expandedKeys: {
            type: Array
        },
        defaultCheckedKeys: {
            type: Array
        },
        checkedKeys: {
            type: [Object, Array]
        },
        defaultSelectedKeys: {
            type: Array
        },
        selectedKeys: {
            type: Array
        },
        allowDrop: {
            type: Function
        },
        dropIndicatorRender: {
            type: Function
        },
        onFocus: {
            type: Function
        },
        onBlur: {
            type: Function
        },
        onKeydown: {
            type: Function
        },
        onContextmenu: {
            type: Function
        },
        onClick: {
            type: Function
        },
        onDblclick: {
            type: Function
        },
        onScroll: {
            type: Function
        },
        onExpand: {
            type: Function
        },
        onCheck: {
            type: Function
        },
        onSelect: {
            type: Function
        },
        onLoad: {
            type: Function
        },
        loadData: {
            type: Function
        },
        loadedKeys: {
            type: Array
        },
        onMouseenter: {
            type: Function
        },
        onMouseleave: {
            type: Function
        },
        onRightClick: {
            type: Function
        },
        onDragstart: {
            type: Function
        },
        onDragenter: {
            type: Function
        },
        onDragover: {
            type: Function
        },
        onDragleave: {
            type: Function
        },
        onDragend: {
            type: Function
        },
        onDrop: {
            type: Function
        },
        onActiveChange: {
            type: Function
        },
        filterTreeNode: {
            type: Function
        },
        motion: J.any,
        switcherIcon: J.any,
        height: Number,
        itemHeight: Number,
        virtual: {
            type: Boolean,
            default: void 0
        },
        direction: {
            type: String
        }
    }
}
  , vAe = ["eventKey", "isLeaf", "isStart", "isEnd", "domRef", "active", "data", "onMousemove", "selectable"]
  , p9 = "open"
  , g9 = "close"
  , hAe = "---";
const UM = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATreeNode",
    inheritAttrs: !1,
    props: Oee,
    isTreeNode: 1,
    slots: ["title", "icon", "switcherIcon"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.expose;
        "slots"in e.data,
        "treeData slots is deprecated, please use ".concat(Object.keys(e.data.slots || {}).map(function(_e) {
            return "`v-slot:" + _e + "` "
        }), "instead");
        var o = Q(!1)
          , l = k8()
          , s = kee()
          , u = s.expandedKeysSet
          , c = s.selectedKeysSet
          , f = s.loadedKeysSet
          , d = s.loadingKeysSet
          , v = s.checkedKeysSet
          , h = s.halfCheckedKeysSet
          , p = l.value
          , g = p.dragOverNodeKey
          , m = p.dropPosition
          , y = p.keyEntities
          , b = j(function() {
            return XM(e.eventKey, {
                expandedKeysSet: u.value,
                selectedKeysSet: c.value,
                loadedKeysSet: f.value,
                loadingKeysSet: d.value,
                checkedKeysSet: v.value,
                halfCheckedKeysSet: h.value,
                dragOverNodeKey: g,
                dropPosition: m,
                keyEntities: y
            })
        })
          , x = Qa(function() {
            return b.value.expanded
        })
          , C = Qa(function() {
            return b.value.selected
        })
          , S = Qa(function() {
            return b.value.checked
        })
          , w = Qa(function() {
            return b.value.loaded
        })
          , T = Qa(function() {
            return b.value.loading
        })
          , P = Qa(function() {
            return b.value.halfChecked
        })
          , M = Qa(function() {
            return b.value.dragOver
        })
          , A = Qa(function() {
            return b.value.dragOverGapTop
        })
          , O = Qa(function() {
            return b.value.dragOverGapBottom
        })
          , k = Qa(function() {
            return b.value.pos
        })
          , D = Q()
          , E = j(function() {
            var _e = e.eventKey
              , me = l.value.keyEntities
              , Ie = me[_e] || {}
              , Oe = Ie.children;
            return !!(Oe || []).length
        })
          , L = j(function() {
            var _e = e.isLeaf
              , me = l.value.loadData
              , Ie = E.value;
            return _e === !1 ? !1 : _e || !me && !Ie || me && w.value && !Ie
        })
          , N = j(function() {
            return L.value ? null : x.value ? p9 : g9
        })
          , R = j(function() {
            var _e = e.disabled
              , me = l.value.disabled;
            return !!(me || _e)
        })
          , $ = j(function() {
            var _e = e.checkable
              , me = l.value.checkable;
            return !me || _e === !1 ? !1 : me
        })
          , W = j(function() {
            var _e = e.selectable
              , me = l.value.selectable;
            return typeof _e == "boolean" ? _e : me
        })
          , B = j(function() {
            var _e = e.data
              , me = e.active
              , Ie = e.checkable
              , Oe = e.disableCheckbox
              , Ce = e.disabled
              , pe = e.selectable;
            return I(I({
                active: me,
                checkable: Ie,
                disableCheckbox: Oe,
                disabled: Ce,
                selectable: pe
            }, _e), {}, {
                dataRef: _e,
                data: _e,
                isLeaf: L.value,
                checked: S.value,
                expanded: x.value,
                loading: T.value,
                selected: C.value,
                halfChecked: P.value
            })
        })
          , G = qn()
          , K = j(function() {
            var _e = e.eventKey
              , me = l.value.keyEntities
              , Ie = me[_e] || {}
              , Oe = Ie.parent;
            return I(I({}, ZM(Wt({}, e, b.value))), {}, {
                parent: Oe
            })
        })
          , V = en({
            eventData: K,
            eventKey: j(function() {
                return e.eventKey
            }),
            selectHandle: D,
            pos: k,
            key: G.vnode.key
        });
        i(V);
        var U = function(me) {
            var Ie = l.value.onNodeDoubleClick;
            Ie(me, K.value)
        }
          , X = function(me) {
            if (!R.value) {
                var Ie = l.value.onNodeSelect;
                me.preventDefault(),
                Ie(me, K.value)
            }
        }
          , Y = function(me) {
            if (!R.value) {
                var Ie = e.disableCheckbox
                  , Oe = l.value.onNodeCheck;
                if (!(!$.value || Ie)) {
                    me.preventDefault();
                    var Ce = !S.value;
                    Oe(me, K.value, Ce)
                }
            }
        }
          , te = function(me) {
            var Ie = l.value.onNodeClick;
            Ie(me, K.value),
            W.value ? X(me) : Y(me)
        }
          , ne = function(me) {
            var Ie = l.value.onNodeMouseEnter;
            Ie(me, K.value)
        }
          , ie = function(me) {
            var Ie = l.value.onNodeMouseLeave;
            Ie(me, K.value)
        }
          , ae = function(me) {
            var Ie = l.value.onNodeContextMenu;
            Ie(me, K.value)
        }
          , q = function(me) {
            var Ie = l.value.onNodeDragStart;
            me.stopPropagation(),
            o.value = !0,
            Ie(me, V);
            try {
                me.dataTransfer.setData("text/plain", "")
            } catch (Oe) {}
        }
          , F = function(me) {
            var Ie = l.value.onNodeDragEnter;
            me.preventDefault(),
            me.stopPropagation(),
            Ie(me, V)
        }
          , H = function(me) {
            var Ie = l.value.onNodeDragOver;
            me.preventDefault(),
            me.stopPropagation(),
            Ie(me, V)
        }
          , ee = function(me) {
            var Ie = l.value.onNodeDragLeave;
            me.stopPropagation(),
            Ie(me, V)
        }
          , re = function(me) {
            var Ie = l.value.onNodeDragEnd;
            me.stopPropagation(),
            o.value = !1,
            Ie(me, V)
        }
          , ue = function(me) {
            var Ie = l.value.onNodeDrop;
            me.preventDefault(),
            me.stopPropagation(),
            o.value = !1,
            Ie(me, V)
        }
          , ve = function(me) {
            var Ie = l.value.onNodeExpand;
            T.value || Ie(me, K.value)
        }
          , fe = function() {
            var me = e.data
              , Ie = l.value.draggable;
            return !!(Ie && (!Ie.nodeDraggable || Ie.nodeDraggable(me)))
        }
          , ce = function() {
            var me = l.value
              , Ie = me.draggable
              , Oe = me.prefixCls;
            return Ie && Ie !== null && Ie !== void 0 && Ie.icon ? _("span", {
                class: "".concat(Oe, "-draggable-icon")
            }, [Ie.icon]) : null
        }
          , le = function() {
            var me, Ie, Oe, Ce = e.switcherIcon, pe = Ce === void 0 ? a.switcherIcon || ((me = l.value.slots) === null || me === void 0 ? void 0 : me[(Ie = e.data) === null || Ie === void 0 || (Oe = Ie.slots) === null || Oe === void 0 ? void 0 : Oe.switcherIcon]) : Ce, ye = l.value.switcherIcon, be = pe || ye;
            return typeof be == "function" ? be(B.value) : be
        }
          , oe = function() {
            var me = l.value
              , Ie = me.loadData
              , Oe = me.onNodeLoad;
            T.value || Ie && x.value && !L.value && !E.value && !w.value && Oe(K.value)
        };
        ct(function() {
            oe()
        }),
        ua(function() {
            oe()
        });
        var se = function() {
            var me = l.value.prefixCls
              , Ie = le();
            if (L.value)
                return Ie !== !1 ? _("span", {
                    class: he("".concat(me, "-switcher"), "".concat(me, "-switcher-noop"))
                }, [Ie]) : null;
            var Oe = he("".concat(me, "-switcher"), "".concat(me, "-switcher_").concat(x.value ? p9 : g9));
            return Ie !== !1 ? _("span", {
                onClick: ve,
                class: Oe
            }, [Ie]) : null
        }
          , xe = function() {
            var me, Ie, Oe = e.disableCheckbox, Ce = l.value.prefixCls, pe = R.value, ye = $.value;
            return ye ? _("span", {
                class: he("".concat(Ce, "-checkbox"), S.value && "".concat(Ce, "-checkbox-checked"), !S.value && P.value && "".concat(Ce, "-checkbox-indeterminate"), (pe || Oe) && "".concat(Ce, "-checkbox-disabled")),
                onClick: Y
            }, [(me = (Ie = l.value).customCheckable) === null || me === void 0 ? void 0 : me.call(Ie)]) : null
        }
          , Pe = function() {
            var me = l.value.prefixCls;
            return _("span", {
                class: he("".concat(me, "-iconEle"), "".concat(me, "-icon__").concat(N.value || "docu"), T.value && "".concat(me, "-icon_loading"))
            }, null)
        }
          , Fe = function() {
            var me = e.disabled
              , Ie = e.eventKey
              , Oe = l.value
              , Ce = Oe.draggable
              , pe = Oe.dropLevelOffset
              , ye = Oe.dropPosition
              , be = Oe.prefixCls
              , Ae = Oe.indent
              , Re = Oe.dropIndicatorRender
              , Ne = Oe.dragOverNodeKey
              , Se = Oe.direction
              , we = Ce !== !1
              , Ve = !me && we && Ne === Ie;
            return Ve ? Re({
                dropPosition: ye,
                dropLevelOffset: pe,
                indent: Ae,
                prefixCls: be,
                direction: Se
            }) : null
        }
          , ze = function() {
            var me, Ie, Oe, Ce, pe = e.icon, ye = pe === void 0 ? a.icon : pe, be = e.data, Ae = a.title || ((me = l.value.slots) === null || me === void 0 ? void 0 : me[(Ie = e.data) === null || Ie === void 0 || (Oe = Ie.slots) === null || Oe === void 0 ? void 0 : Oe.title]) || ((Ce = l.value.slots) === null || Ce === void 0 ? void 0 : Ce.title) || e.title, Re = l.value, Ne = Re.prefixCls, Se = Re.showIcon, we = Re.icon, Ve = Re.loadData, Ye = R.value, Ue = "".concat(Ne, "-node-content-wrapper"), Ke;
            if (Se) {
                var Xe, it, nt = ye || ((Xe = l.value.slots) === null || Xe === void 0 ? void 0 : Xe[be == null || (it = be.slots) === null || it === void 0 ? void 0 : it.icon]) || we;
                Ke = nt ? _("span", {
                    class: he("".concat(Ne, "-iconEle"), "".concat(Ne, "-icon__customize"))
                }, [typeof nt == "function" ? nt(B.value) : nt]) : Pe()
            } else
                Ve && T.value && (Ke = Pe());
            var ht;
            typeof Ae == "function" ? ht = Ae(B.value) : ht = Ae,
            ht = ht === void 0 ? hAe : ht;
            var ft = _("span", {
                class: "".concat(Ne, "-title")
            }, [ht]);
            return _("span", {
                ref: D,
                title: typeof Ae == "string" ? Ae : "",
                class: he("".concat(Ue), "".concat(Ue, "-").concat(N.value || "normal"), !Ye && (C.value || o.value) && "".concat(Ne, "-node-selected")),
                onMouseenter: ne,
                onMouseleave: ie,
                onContextmenu: ae,
                onClick: te,
                onDblclick: U
            }, [Ke, ft, Fe()])
        };
        return function() {
            var _e, me = I(I({}, e), r), Ie = me.eventKey, Oe = me.isLeaf, Ce = me.isStart, pe = me.isEnd, ye = me.domRef, be = me.active;
            me.data;
            var Ae = me.onMousemove
              , Re = me.selectable
              , Ne = tt(me, vAe)
              , Se = l.value
              , we = Se.prefixCls
              , Ve = Se.filterTreeNode
              , Ye = Se.keyEntities
              , Ue = Se.dropContainerKey
              , Ke = Se.dropTargetKey
              , Xe = Se.draggingNodeKey
              , it = R.value
              , nt = Hu(Ne, {
                aria: !0,
                data: !0
            })
              , ht = Ye[Ie] || {}
              , ft = ht.level
              , Zt = pe[pe.length - 1]
              , Tt = fe()
              , bt = !it && Tt
              , wt = Xe === Ie
              , Mn = Re !== void 0 ? {
                "aria-selected": !!Re
            } : void 0;
            return _("div", I(I({
                ref: ye,
                class: he(r.class, "".concat(we, "-treenode"), (_e = {},
                z(_e, "".concat(we, "-treenode-disabled"), it),
                z(_e, "".concat(we, "-treenode-switcher-").concat(x.value ? "open" : "close"), !Oe),
                z(_e, "".concat(we, "-treenode-checkbox-checked"), S.value),
                z(_e, "".concat(we, "-treenode-checkbox-indeterminate"), P.value),
                z(_e, "".concat(we, "-treenode-selected"), C.value),
                z(_e, "".concat(we, "-treenode-loading"), T.value),
                z(_e, "".concat(we, "-treenode-active"), be),
                z(_e, "".concat(we, "-treenode-leaf-last"), Zt),
                z(_e, "".concat(we, "-treenode-draggable"), bt),
                z(_e, "dragging", wt),
                z(_e, "drop-target", Ke === Ie),
                z(_e, "drop-container", Ue === Ie),
                z(_e, "drag-over", !it && M.value),
                z(_e, "drag-over-gap-top", !it && A.value),
                z(_e, "drag-over-gap-bottom", !it && O.value),
                z(_e, "filter-node", Ve && Ve(K.value)),
                _e)),
                style: r.style,
                draggable: bt,
                "aria-grabbed": wt,
                onDragstart: bt ? q : void 0,
                onDragenter: Tt ? F : void 0,
                onDragover: Tt ? H : void 0,
                onDragleave: Tt ? ee : void 0,
                onDrop: Tt ? ue : void 0,
                onDragend: Tt ? re : void 0,
                onMousemove: Ae
            }, Mn), nt), [_(fAe, {
                prefixCls: we,
                level: ft,
                isStart: Ce,
                isEnd: pe
            }, null), ce(), se(), xe(), ze()])
        }
    }
});
function Vl(t, e) {
    if (!t)
        return [];
    var n = t.slice()
      , r = n.indexOf(e);
    return r >= 0 && n.splice(r, 1),
    n
}
function Hs(t, e) {
    var n = (t || []).slice();
    return n.indexOf(e) === -1 && n.push(e),
    n
}
function O8(t) {
    return t.split("-")
}
function Eee(t, e) {
    return "".concat(t, "-").concat(e)
}
function pAe(t) {
    return t && t.type && t.type.isTreeNode
}
function gAe(t, e) {
    var n = []
      , r = e[t];
    function a() {
        var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
        i.forEach(function(o) {
            var l = o.key
              , s = o.children;
            n.push(l),
            a(s)
        })
    }
    return a(r.children),
    n
}
function mAe(t) {
    if (t.parent) {
        var e = O8(t.pos);
        return Number(e[e.length - 1]) === t.parent.children.length - 1
    }
    return !1
}
function yAe(t) {
    var e = O8(t.pos);
    return Number(e[e.length - 1]) === 0
}
function m9(t, e, n, r, a, i, o, l, s, u) {
    var c, f = t.clientX, d = t.clientY, v = t.target.getBoundingClientRect(), h = v.top, p = v.height, g = (u === "rtl" ? -1 : 1) * (((a == null ? void 0 : a.x) || 0) - f), m = (g - 12) / r, y = l[n.eventKey];
    if (d < h + p / 2) {
        var b = o.findIndex(function(E) {
            return E.key === y.key
        })
          , x = b <= 0 ? 0 : b - 1
          , C = o[x].key;
        y = l[C]
    }
    var S = y.key
      , w = y
      , T = y.key
      , P = 0
      , M = 0;
    if (!s.has(S))
        for (var A = 0; A < m && mAe(y); A += 1)
            y = y.parent,
            M += 1;
    var O = e.eventData
      , k = y.node
      , D = !0;
    return yAe(y) && y.level === 0 && d < h + p / 2 && i({
        dragNode: O,
        dropNode: k,
        dropPosition: -1
    }) && y.key === n.eventKey ? P = -1 : (w.children || []).length && s.has(T) ? i({
        dragNode: O,
        dropNode: k,
        dropPosition: 0
    }) ? P = 0 : D = !1 : M === 0 ? m > -1.5 ? i({
        dragNode: O,
        dropNode: k,
        dropPosition: 1
    }) ? P = 1 : D = !1 : i({
        dragNode: O,
        dropNode: k,
        dropPosition: 0
    }) ? P = 0 : i({
        dragNode: O,
        dropNode: k,
        dropPosition: 1
    }) ? P = 1 : D = !1 : i({
        dragNode: O,
        dropNode: k,
        dropPosition: 1
    }) ? P = 1 : D = !1,
    {
        dropPosition: P,
        dropLevelOffset: M,
        dropTargetKey: y.key,
        dropTargetPos: y.pos,
        dragOverNodeKey: T,
        dropContainerKey: P === 0 ? null : ((c = y.parent) === null || c === void 0 ? void 0 : c.key) || null,
        dropAllowed: D
    }
}
function y9(t, e) {
    if (!!t) {
        var n = e.multiple;
        return n ? t.slice() : t.length ? [t[0]] : t
    }
}
function vT(t) {
    if (!t)
        return null;
    var e;
    if (Array.isArray(t))
        e = {
            checkedKeys: t,
            halfCheckedKeys: void 0
        };
    else if (We(t) === "object")
        e = {
            checkedKeys: t.checked || void 0,
            halfCheckedKeys: t.halfChecked || void 0
        };
    else
        return null;
    return e
}
function YM(t, e) {
    var n = new Set;
    function r(a) {
        if (!n.has(a)) {
            var i = e[a];
            if (!!i) {
                n.add(a);
                var o = i.parent
                  , l = i.node;
                l.disabled || o && r(o.key)
            }
        }
    }
    return (t || []).forEach(function(a) {
        r(a)
    }),
    $e(n)
}
var bAe = ["title", "icon", "switcherIcon"];
function Mm(t, e) {
    return t != null ? t : e
}
function cw(t) {
    var e = t || {}
      , n = e.title
      , r = e._title
      , a = e.key
      , i = e.children
      , o = n || "title";
    return {
        title: o,
        _title: r || [o],
        key: a || "key",
        children: i || "children"
    }
}
function qM(t) {
    function e() {
        var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []
          , r = ar(n);
        return r.map(function(a) {
            var i, o, l, s;
            if (!pAe(a))
                return null;
            for (var u = a.children || {}, c = a.key, f = {}, d = 0, v = Object.entries(a.props); d < v.length; d++) {
                var h = De(v[d], 2)
                  , p = h[0]
                  , g = h[1];
                f[Va(p)] = g
            }
            var m = f.isLeaf
              , y = f.checkable
              , b = f.selectable
              , x = f.disabled
              , C = f.disableCheckbox
              , S = {
                isLeaf: m || m === "" || void 0,
                checkable: y || y === "" || void 0,
                selectable: b || b === "" || void 0,
                disabled: x || x === "" || void 0,
                disableCheckbox: C || C === "" || void 0
            }
              , w = I(I({}, f), S)
              , T = f.title
              , P = T === void 0 ? (i = u.title) === null || i === void 0 ? void 0 : i.call(u, w) : T
              , M = f.icon
              , A = M === void 0 ? (o = u.icon) === null || o === void 0 ? void 0 : o.call(u, w) : M
              , O = f.switcherIcon
              , k = O === void 0 ? (l = u.switcherIcon) === null || l === void 0 ? void 0 : l.call(u, w) : O
              , D = tt(f, bAe)
              , E = (s = u.default) === null || s === void 0 ? void 0 : s.call(u)
              , L = I(I({}, D), {}, {
                title: P,
                icon: A,
                switcherIcon: k,
                key: c,
                isLeaf: m
            }, S)
              , N = e(E);
            return N.length && (L.children = N),
            L
        })
    }
    return e(t)
}
function xAe(t, e, n) {
    var r = cw(n)
      , a = r._title
      , i = r.key
      , o = r.children
      , l = new Set(e === !0 ? [] : e)
      , s = [];
    function u(c) {
        var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
        return c.map(function(d, v) {
            for (var h = Eee(f ? f.pos : "0", v), p = Mm(d[i], h), g, m = 0; m < a.length; m += 1) {
                var y = a[m];
                if (d[y] !== void 0) {
                    g = d[y];
                    break
                }
            }
            var b = I(I({}, Et(d, [].concat($e(a), [i, o]))), {}, {
                title: g,
                key: p,
                parent: f,
                pos: h,
                children: null,
                data: d,
                isStart: [].concat($e(f ? f.isStart : []), [v === 0]),
                isEnd: [].concat($e(f ? f.isEnd : []), [v === c.length - 1])
            });
            return s.push(b),
            e === !0 || l.has(p) ? b.children = u(d[o] || [], b) : b.children = [],
            b
        })
    }
    return u(t),
    s
}
function SAe(t, e, n) {
    var r = {};
    We(n) === "object" ? r = n : r = {
        externalGetKey: n
    },
    r = r || {};
    var a = r, i = a.childrenPropName, o = a.externalGetKey, l = a.fieldNames, s = cw(l), u = s.key, c = s.children, f = i || c, d;
    o ? typeof o == "string" ? d = function(p) {
        return p[o]
    }
    : typeof o == "function" && (d = function(p) {
        return o(p)
    }
    ) : d = function(p, g) {
        return Mm(p[u], g)
    }
    ;
    function v(h, p, g, m) {
        var y = h ? h[f] : t
          , b = h ? Eee(g.pos, p) : "0"
          , x = h ? [].concat($e(m), [h]) : [];
        if (h) {
            var C = d(h, b)
              , S = {
                node: h,
                index: p,
                pos: b,
                key: C,
                parentPos: g.node ? g.pos : null,
                level: g.level + 1,
                nodes: x
            };
            e(S)
        }
        y && y.forEach(function(w, T) {
            v(w, T, {
                node: h,
                pos: b,
                level: g ? g.level + 1 : -1
            }, x)
        })
    }
    v(null)
}
function Am(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , n = e.initWrapper
      , r = e.processEntity
      , a = e.onProcessFinished
      , i = e.externalGetKey
      , o = e.childrenPropName
      , l = e.fieldNames
      , s = arguments.length > 2 ? arguments[2] : void 0
      , u = i || s
      , c = {}
      , f = {}
      , d = {
        posEntities: c,
        keyEntities: f
    };
    return n && (d = n(d) || d),
    SAe(t, function(v) {
        var h = v.node
          , p = v.index
          , g = v.pos
          , m = v.key
          , y = v.parentPos
          , b = v.level
          , x = v.nodes
          , C = {
            node: h,
            nodes: x,
            index: p,
            key: m,
            pos: g,
            level: b
        }
          , S = Mm(m, g);
        c[g] = C,
        f[S] = C,
        C.parent = c[y],
        C.parent && (C.parent.children = C.parent.children || [],
        C.parent.children.push(C)),
        r && r(C, d)
    }, {
        externalGetKey: u,
        childrenPropName: o,
        fieldNames: l
    }),
    a && a(d),
    d
}
function XM(t, e) {
    var n = e.expandedKeysSet
      , r = e.selectedKeysSet
      , a = e.loadedKeysSet
      , i = e.loadingKeysSet
      , o = e.checkedKeysSet
      , l = e.halfCheckedKeysSet
      , s = e.dragOverNodeKey
      , u = e.dropPosition
      , c = e.keyEntities
      , f = c[t]
      , d = {
        eventKey: t,
        expanded: n.has(t),
        selected: r.has(t),
        loaded: a.has(t),
        loading: i.has(t),
        checked: o.has(t),
        halfChecked: l.has(t),
        pos: String(f ? f.pos : ""),
        parent: f.parent,
        dragOver: s === t && u === 0,
        dragOverGapTop: s === t && u === -1,
        dragOverGapBottom: s === t && u === 1
    };
    return d
}
function ZM(t) {
    var e = t.data
      , n = t.expanded
      , r = t.selected
      , a = t.checked
      , i = t.loaded
      , o = t.loading
      , l = t.halfChecked
      , s = t.dragOver
      , u = t.dragOverGapTop
      , c = t.dragOverGapBottom
      , f = t.pos
      , d = t.active
      , v = t.eventKey
      , h = I(I({
        dataRef: e
    }, e), {}, {
        expanded: n,
        selected: r,
        checked: a,
        loaded: i,
        loading: o,
        halfChecked: l,
        dragOver: s,
        dragOverGapTop: u,
        dragOverGapBottom: c,
        pos: f,
        active: d,
        eventKey: v,
        key: v
    });
    return "props"in h || Object.defineProperty(h, "props", {
        get: function() {
            return t
        }
    }),
    h
}
const CAe = function(t, e) {
    var n = j(function() {
        return Am(t.value, {
            fieldNames: e.value,
            initWrapper: function(a) {
                return I(I({}, a), {}, {
                    pathKeyEntities: {}
                })
            },
            processEntity: function(a, i) {
                var o = a.nodes.map(function(l) {
                    return l[e.value.value]
                }).join(I8);
                i.pathKeyEntities[o] = a,
                a.key = o
            }
        }).pathKeyEntities
    });
    return n
};
function wAe(t) {
    var e = Q(!1)
      , n = Q({});
    return pt(function() {
        if (!t.value) {
            e.value = !1,
            n.value = {};
            return
        }
        var r = {
            matchInputWidth: !0,
            limit: 50
        };
        t.value && We(t.value) === "object" && (r = I(I({}, r), t.value)),
        r.limit <= 0 && delete r.limit,
        e.value = !0,
        n.value = r
    }),
    {
        showSearch: e,
        searchConfig: n
    }
}
var xg = "__rc_cascader_search_mark__"
  , _Ae = function(e, n, r) {
    var a = r.label;
    return n.some(function(i) {
        return String(i[a]).toLowerCase().includes(e.toLowerCase())
    })
}
  , TAe = function(e) {
    var n = e.path
      , r = e.fieldNames;
    return n.map(function(a) {
        return a[r.label]
    }).join(" / ")
};
const PAe = function(t, e, n, r, a, i) {
    return j(function() {
        var o = a.value
          , l = o.filter
          , s = l === void 0 ? _Ae : l
          , u = o.render
          , c = u === void 0 ? TAe : u
          , f = o.limit
          , d = f === void 0 ? 50 : f
          , v = o.sort
          , h = [];
        if (!t.value)
            return [];
        function p(g, m) {
            g.forEach(function(y) {
                if (!(!v && d > 0 && h.length >= d)) {
                    var b = [].concat($e(m), [y])
                      , x = y[n.value.children];
                    if ((!x || x.length === 0 || i.value) && s(t.value, b, {
                        label: n.value.label
                    })) {
                        var C;
                        h.push(I(I({}, y), {}, (C = {},
                        z(C, n.value.label, c({
                            inputValue: t.value,
                            path: b,
                            prefixCls: r.value,
                            fieldNames: n.value
                        })),
                        z(C, xg, b),
                        C)))
                    }
                    x && p(y[n.value.children], b)
                }
            })
        }
        return p(e.value, []),
        v && h.sort(function(g, m) {
            return v(g[xg], m[xg], t.value, n.value)
        }),
        d > 0 ? h.slice(0, d) : h
    })
};
function b9(t, e, n) {
    var r = new Set(t);
    return t.filter(function(a) {
        var i = e[a]
          , o = i ? i.parent : null
          , l = i ? i.children : null;
        return n === aAe ? !(l && l.some(function(s) {
            return s.key && r.has(s.key)
        })) : !(o && !o.node.disabled && r.has(o.key))
    })
}
function x0(t, e, n) {
    for (var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, a = e, i = [], o = function() {
        var u, c, f, d = t[l], v = (u = a) === null || u === void 0 ? void 0 : u.findIndex(function(p) {
            var g = p[n.value];
            return r ? String(g) === String(d) : g === d
        }), h = v !== -1 ? (c = a) === null || c === void 0 ? void 0 : c[v] : null;
        i.push({
            value: (f = h == null ? void 0 : h[n.value]) !== null && f !== void 0 ? f : d,
            index: v,
            option: h
        }),
        a = h == null ? void 0 : h[n.children]
    }, l = 0; l < t.length; l += 1)
        o();
    return i
}
const MAe = function(t, e, n) {
    return j(function() {
        var r = []
          , a = [];
        return n.value.forEach(function(i) {
            var o = x0(i, t.value, e.value);
            o.every(function(l) {
                return l.option
            }) ? a.push(i) : r.push(i)
        }),
        [a, r]
    })
};
function Lee(t, e) {
    var n = new Set;
    return t.forEach(function(r) {
        e.has(r) || n.add(r)
    }),
    n
}
function AAe(t) {
    var e = t || {}
      , n = e.disabled
      , r = e.disableCheckbox
      , a = e.checkable;
    return !!(n || r) || a === !1
}
function IAe(t, e, n, r) {
    for (var a = new Set(t), i = new Set, o = 0; o <= n; o += 1) {
        var l = e.get(o) || new Set;
        l.forEach(function(f) {
            var d = f.key
              , v = f.node
              , h = f.children
              , p = h === void 0 ? [] : h;
            a.has(d) && !r(v) && p.filter(function(g) {
                return !r(g.node)
            }).forEach(function(g) {
                a.add(g.key)
            })
        })
    }
    for (var s = new Set, u = n; u >= 0; u -= 1) {
        var c = e.get(u) || new Set;
        c.forEach(function(f) {
            var d = f.parent
              , v = f.node;
            if (!(r(v) || !f.parent || s.has(f.parent.key))) {
                if (r(f.parent.node)) {
                    s.add(d.key);
                    return
                }
                var h = !0
                  , p = !1;
                (d.children || []).filter(function(g) {
                    return !r(g.node)
                }).forEach(function(g) {
                    var m = g.key
                      , y = a.has(m);
                    h && !y && (h = !1),
                    !p && (y || i.has(m)) && (p = !0)
                }),
                h && a.add(d.key),
                p && i.add(d.key),
                s.add(d.key)
            }
        })
    }
    return {
        checkedKeys: Array.from(a),
        halfCheckedKeys: Array.from(Lee(i, a))
    }
}
function kAe(t, e, n, r, a) {
    for (var i = new Set(t), o = new Set(e), l = 0; l <= r; l += 1) {
        var s = n.get(l) || new Set;
        s.forEach(function(d) {
            var v = d.key
              , h = d.node
              , p = d.children
              , g = p === void 0 ? [] : p;
            !i.has(v) && !o.has(v) && !a(h) && g.filter(function(m) {
                return !a(m.node)
            }).forEach(function(m) {
                i.delete(m.key)
            })
        })
    }
    o = new Set;
    for (var u = new Set, c = r; c >= 0; c -= 1) {
        var f = n.get(c) || new Set;
        f.forEach(function(d) {
            var v = d.parent
              , h = d.node;
            if (!(a(h) || !d.parent || u.has(d.parent.key))) {
                if (a(d.parent.node)) {
                    u.add(v.key);
                    return
                }
                var p = !0
                  , g = !1;
                (v.children || []).filter(function(m) {
                    return !a(m.node)
                }).forEach(function(m) {
                    var y = m.key
                      , b = i.has(y);
                    p && !b && (p = !1),
                    !g && (b || o.has(y)) && (g = !0)
                }),
                p || i.delete(v.key),
                g && o.add(v.key),
                u.add(v.key)
            }
        })
    }
    return {
        checkedKeys: Array.from(i),
        halfCheckedKeys: Array.from(Lee(o, i))
    }
}
function Li(t, e, n, r, a, i) {
    var o;
    i ? o = i : o = AAe;
    var l = new Set(t.filter(function(u) {
        var c = !!n[u];
        return c
    })), s;
    return e === !0 ? s = IAe(l, a, r, o) : s = kAe(l, e.halfCheckedKeys, a, r, o),
    s
}
const OAe = function(t, e, n, r, a) {
    return j(function() {
        var i = a.value || function(o) {
            var l = o.labels
              , s = r.value ? l.slice(-1) : l
              , u = " / ";
            return s.every(function(c) {
                return ["string", "number"].includes(We(c))
            }) ? s.join(u) : s.reduce(function(c, f, d) {
                var v = cr(f) ? Qt(f, {
                    key: d
                }) : f;
                return d === 0 ? [v] : [].concat($e(c), [u, v])
            }, [])
        }
        ;
        return t.value.map(function(o) {
            var l = x0(o, e.value, n.value)
              , s = i({
                labels: l.map(function(c) {
                    var f, d = c.option, v = c.value;
                    return (f = d == null ? void 0 : d[n.value.label]) !== null && f !== void 0 ? f : v
                }),
                selectedOptions: l.map(function(c) {
                    var f = c.option;
                    return f
                })
            })
              , u = pu(o);
            return {
                label: s,
                value: u,
                key: u,
                valueCells: o
            }
        })
    })
};
var Ree = Symbol("CascaderContextKey")
  , DAe = function(e) {
    It(Ree, e)
}
  , fw = function() {
    return vt(Ree)
};
const EAe = function() {
    var t = Sm()
      , e = fw()
      , n = e.values
      , r = Rn([])
      , a = De(r, 2)
      , i = a[0]
      , o = a[1];
    return Te(function() {
        return t.open
    }, function() {
        if (t.open && !t.multiple) {
            var l = n.value[0];
            o(l || [])
        }
    }, {
        immediate: !0
    }),
    [i, o]
}
  , LAe = function(t, e, n, r, a, i) {
    var o = Sm()
      , l = j(function() {
        return o.direction === "rtl"
    })
      , s = [Q([]), Q(), Q([])]
      , u = s[0]
      , c = s[1]
      , f = s[2];
    pt(function() {
        for (var g = -1, m = e.value, y = [], b = [], x = r.value.length, C = function(O) {
            var k = m.findIndex(function(D) {
                return D[n.value.value] === r.value[O]
            });
            if (k === -1)
                return "break";
            g = k,
            y.push(g),
            b.push(r.value[O]),
            m = m[g][n.value.children]
        }, S = 0; S < x && m; S += 1) {
            var w = C(S);
            if (w === "break")
                break
        }
        for (var T = e.value, P = 0; P < y.length - 1; P += 1)
            T = T[y[P]][n.value.children];
        var M = [b, g, T];
        u.value = M[0],
        c.value = M[1],
        f.value = M[2]
    });
    var d = function(m) {
        a(m)
    }
      , v = function(m) {
        var y = f.value.length
          , b = c.value;
        b === -1 && m < 0 && (b = y);
        for (var x = 0; x < y; x += 1) {
            b = (b + m + y) % y;
            var C = f.value[b];
            if (C && !C.disabled) {
                var S = C[n.value.value]
                  , w = u.value.slice(0, -1).concat(S);
                d(w);
                return
            }
        }
    }
      , h = function() {
        if (u.value.length > 1) {
            var m = u.value.slice(0, -1);
            d(m)
        } else
            o.toggleOpen(!1)
    }
      , p = function() {
        var m, y = ((m = f.value[c.value]) === null || m === void 0 ? void 0 : m[n.value.children]) || [], b = y.find(function(C) {
            return !C.disabled
        });
        if (b) {
            var x = [].concat($e(u.value), [b[n.value.value]]);
            d(x)
        }
    };
    t.expose({
        onKeydown: function(m) {
            var y = m.which;
            switch (y) {
            case Ee.UP:
            case Ee.DOWN:
                {
                    var b = 0;
                    y === Ee.UP ? b = -1 : y === Ee.DOWN && (b = 1),
                    b !== 0 && v(b);
                    break
                }
            case Ee.LEFT:
                {
                    l.value ? p() : h();
                    break
                }
            case Ee.RIGHT:
                {
                    l.value ? h() : p();
                    break
                }
            case Ee.BACKSPACE:
                {
                    o.searchValue || h();
                    break
                }
            case Ee.ENTER:
                {
                    if (u.value.length) {
                        var x = f.value[c.value]
                          , C = (x == null ? void 0 : x[xg]) || [];
                        C.length ? i(C.map(function(S) {
                            return S[n.value.value]
                        }), C[C.length - 1]) : i(u.value, x)
                    }
                    break
                }
            case Ee.ESC:
                o.toggleOpen(!1),
                open && m.stopPropagation()
            }
        },
        onKeyup: function() {}
    })
};
function dw(t) {
    var e, n = t.prefixCls, r = t.checked, a = t.halfChecked, i = t.disabled, o = t.onClick, l = fw(), s = l.customSlots, u = l.checkable, c = u.value !== !1 ? s.value.checkable : u.value, f = typeof c == "function" ? c() : typeof c == "boolean" ? null : c;
    return _("span", {
        class: (e = {},
        z(e, n, !0),
        z(e, "".concat(n, "-checked"), r),
        z(e, "".concat(n, "-indeterminate"), !r && a),
        z(e, "".concat(n, "-disabled"), i),
        e),
        onClick: o
    }, [f])
}
dw.props = ["prefixCls", "checked", "halfChecked", "disabled", "onClick"];
dw.displayName = "Checkbox";
dw.inheritAttrs = !1;
var Nee = "__cascader_fix_label__";
function vw(t) {
    var e, n, r, a, i, o, l = t.prefixCls, s = t.multiple, u = t.options, c = t.activeValue, f = t.prevValuePath, d = t.onToggleOpen, v = t.onSelect, h = t.onActive, p = t.checkedSet, g = t.halfCheckedSet, m = t.loadingKeys, y = t.isSelectable, b = "".concat(l, "-menu"), x = "".concat(l, "-menu-item"), C = fw(), S = C.fieldNames, w = C.changeOnSelect, T = C.expandTrigger, P = C.expandIcon, M = C.loadingIcon, A = C.dropdownMenuColumnStyle, O = C.customSlots, k = (e = P.value) !== null && e !== void 0 ? e : (n = (r = O.value).expandIcon) === null || n === void 0 ? void 0 : n.call(r), D = (a = M.value) !== null && a !== void 0 ? a : (i = (o = O.value).loadingIcon) === null || i === void 0 ? void 0 : i.call(o), E = T.value === "hover";
    return _("ul", {
        class: b,
        role: "menu"
    }, [u.map(function(L) {
        var N, R, $ = L.disabled, W = L[xg], B = (N = L[Nee]) !== null && N !== void 0 ? N : L[S.value.label], G = L[S.value.value], K = jp(L, S.value), V = W ? W.map(function(q) {
            return q[S.value.value]
        }) : [].concat($e(f), [G]), U = pu(V), X = m.includes(U), Y = p.has(U), te = g.has(U), ne = function() {
            !$ && (!E || !K) && h(V)
        }, ie = function() {
            y(L) && v(V, K)
        }, ae;
        return typeof L.title == "string" ? ae = L.title : typeof B == "string" && (ae = B),
        _("li", {
            key: U,
            class: [x, (R = {},
            z(R, "".concat(x, "-expand"), !K),
            z(R, "".concat(x, "-active"), c === G),
            z(R, "".concat(x, "-disabled"), $),
            z(R, "".concat(x, "-loading"), X),
            R)],
            style: A.value,
            role: "menuitemcheckbox",
            title: ae,
            "aria-checked": Y,
            "data-path-key": U,
            onClick: function() {
                ne(),
                (!s || K) && ie()
            },
            onDblclick: function() {
                w.value && d(!1)
            },
            onMouseenter: function() {
                E && ne()
            },
            onMousedown: function(F) {
                F.preventDefault()
            }
        }, [s && _(dw, {
            prefixCls: "".concat(l, "-checkbox"),
            checked: Y,
            halfChecked: te,
            disabled: $,
            onClick: function(F) {
                F.stopPropagation(),
                ie()
            }
        }, null), _("div", {
            class: "".concat(x, "-content")
        }, [B]), !X && k && !K && _("div", {
            class: "".concat(x, "-expand-icon")
        }, [k]), X && D && _("div", {
            class: "".concat(x, "-loading-icon")
        }, [D])])
    })])
}
vw.props = ["prefixCls", "multiple", "options", "activeValue", "prevValuePath", "onToggleOpen", "onSelect", "onActive", "checkedSet", "halfCheckedSet", "loadingKeys", "isSelectable"];
vw.displayName = "Column";
vw.inheritAttrs = !1;
const RAe = de({
    compatConfig: {
        MODE: 3
    },
    name: "OptionList",
    inheritAttrs: !1,
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = Sm()
          , o = Q()
          , l = j(function() {
            return i.direction === "rtl"
        })
          , s = fw()
          , u = s.options
          , c = s.values
          , f = s.halfValues
          , d = s.fieldNames
          , v = s.changeOnSelect
          , h = s.onSelect
          , p = s.searchOptions
          , g = s.dropdownPrefixCls
          , m = s.loadData
          , y = s.expandTrigger
          , b = s.customSlots
          , x = j(function() {
            return g.value || i.prefixCls
        })
          , C = Mt([])
          , S = function(B) {
            if (!(!m.value || i.searchValue)) {
                var G = x0(B, u.value, d.value)
                  , K = G.map(function(X) {
                    var Y = X.option;
                    return Y
                })
                  , V = K[K.length - 1];
                if (V && !jp(V, d.value)) {
                    var U = pu(B);
                    C.value = [].concat($e(C.value), [U]),
                    m.value(K)
                }
            }
        };
        pt(function() {
            C.value.length && C.value.forEach(function(W) {
                var B = iAe(W)
                  , G = x0(B, u.value, d.value, !0).map(function(V) {
                    var U = V.option;
                    return U
                })
                  , K = G[G.length - 1];
                (!K || K[d.value.children] || jp(K, d.value)) && (C.value = C.value.filter(function(V) {
                    return V !== W
                }))
            })
        });
        var w = j(function() {
            return new Set(ev(c.value))
        })
          , T = j(function() {
            return new Set(ev(f.value))
        })
          , P = EAe()
          , M = De(P, 2)
          , A = M[0]
          , O = M[1]
          , k = function(B) {
            O(B),
            S(B)
        }
          , D = function(B) {
            var G = B.disabled
              , K = jp(B, d.value);
            return !G && (K || v.value || i.multiple)
        }
          , E = function(B, G) {
            var K = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
            h(B),
            !i.multiple && (G || v.value && (y.value === "hover" || K)) && i.toggleOpen(!1)
        }
          , L = j(function() {
            return i.searchValue ? p.value : u.value
        })
          , N = j(function() {
            for (var W = [{
                options: L.value
            }], B = L.value, G = function() {
                var X = A.value[K]
                  , Y = B.find(function(ne) {
                    return ne[d.value.value] === X
                })
                  , te = Y == null ? void 0 : Y[d.value.children];
                if (!(te != null && te.length))
                    return "break";
                B = te,
                W.push({
                    options: te
                })
            }, K = 0; K < A.value.length; K += 1) {
                var V = G();
                if (V === "break")
                    break
            }
            return W
        })
          , R = function(B, G) {
            D(G) && E(B, jp(G, d.value), !0)
        };
        LAe(n, L, d, A, k, R);
        var $ = function(B) {
            B.preventDefault()
        };
        return ct(function() {
            Te(A, function(W) {
                for (var B = 0; B < W.length; B += 1) {
                    var G, K = W.slice(0, B + 1), V = pu(K), U = (G = o.value) === null || G === void 0 ? void 0 : G.querySelector('li[data-path-key="'.concat(V.replace(/\\{0,2}"/g, '\\"'), '"]'));
                    U && lAe(U)
                }
            }, {
                flush: "post",
                immediate: !0
            })
        }),
        function() {
            var W, B, G, K, V, U, X, Y = i.notFoundContent, te = Y === void 0 ? ((W = a.notFoundContent) === null || W === void 0 ? void 0 : W.call(a)) || ((B = (G = b.value).notFoundContent) === null || B === void 0 ? void 0 : B.call(G)) : Y, ne = i.multiple, ie = i.toggleOpen, ae = !((K = N.value[0]) !== null && K !== void 0 && (V = K.options) !== null && V !== void 0 && V.length), q = [(U = {},
            z(U, d.value.value, "__EMPTY__"),
            z(U, Nee, te),
            z(U, "disabled", !0),
            U)], F = I(I({}, r), {}, {
                multiple: !ae && ne,
                onSelect: E,
                onActive: k,
                onToggleOpen: ie,
                checkedSet: w.value,
                halfCheckedSet: T.value,
                loadingKeys: C.value,
                isSelectable: D
            }), H = ae ? [{
                options: q
            }] : N.value, ee = H.map(function(re, ue) {
                var ve = A.value.slice(0, ue)
                  , fe = A.value[ue];
                return _(vw, I(I({
                    key: ue
                }, F), {}, {
                    prefixCls: x.value,
                    options: re.options,
                    prevValuePath: ve,
                    activeValue: fe
                }), null)
            });
            return _("div", {
                class: ["".concat(x.value, "-menus"), (X = {},
                z(X, "".concat(x.value, "-menu-empty"), ae),
                z(X, "".concat(x.value, "-rtl"), l.value),
                X)],
                onMousedown: $,
                ref: o
            }, [ee])
        }
    }
});
function hw(t) {
    var e = Q(0)
      , n = Mt();
    return pt(function() {
        var r = new Map
          , a = 0
          , i = t.value || {};
        for (var o in i)
            if (Object.prototype.hasOwnProperty.call(i, o)) {
                var l = i[o]
                  , s = l.level
                  , u = r.get(s);
                u || (u = new Set,
                r.set(s, u)),
                u.add(l),
                a = Math.max(a, s)
            }
        e.value = a,
        n.value = r
    }),
    {
        maxLevel: e,
        levelEntities: n
    }
}
function NAe() {
    return I(I({}, Et(ZC(), ["tokenSeparators", "mode", "showSearch"])), {}, {
        id: String,
        prefixCls: String,
        fieldNames: Object,
        children: Array,
        value: {
            type: [String, Number, Array]
        },
        defaultValue: {
            type: [String, Number, Array]
        },
        changeOnSelect: {
            type: Boolean,
            default: void 0
        },
        displayRender: Function,
        checkable: {
            type: Boolean,
            default: void 0
        },
        showCheckedStrategy: {
            type: String,
            default: rAe
        },
        showSearch: {
            type: [Boolean, Object],
            default: void 0
        },
        searchValue: String,
        onSearch: Function,
        expandTrigger: String,
        options: Array,
        dropdownPrefixCls: String,
        loadData: Function,
        popupVisible: {
            type: Boolean,
            default: void 0
        },
        popupClassName: String,
        dropdownClassName: String,
        dropdownMenuColumnStyle: {
            type: Object,
            default: void 0
        },
        popupStyle: {
            type: Object,
            default: void 0
        },
        dropdownStyle: {
            type: Object,
            default: void 0
        },
        popupPlacement: String,
        placement: String,
        onPopupVisibleChange: Function,
        onDropdownVisibleChange: Function,
        expandIcon: J.any,
        loadingIcon: J.any
    })
}
function $ee() {
    return I(I({}, NAe()), {}, {
        onChange: Function,
        customSlots: Object
    })
}
function $Ae(t) {
    return Array.isArray(t) && Array.isArray(t[0])
}
function x9(t) {
    return t ? $Ae(t) ? t : (t.length === 0 ? [] : [t]).map(function(e) {
        return Array.isArray(e) ? e : [e]
    }) : []
}
const FAe = de({
    compatConfig: {
        MODE: 3
    },
    name: "Cascader",
    inheritAttrs: !1,
    props: $t($ee(), {}),
    setup: function(e, n) {
        var r = n.attrs
          , a = n.expose
          , i = n.slots
          , o = wD(at(e, "id"))
          , l = j(function() {
            return !!e.checkable
        })
          , s = zn(e.defaultValue, {
            value: j(function() {
                return e.value
            }),
            postState: x9
        })
          , u = De(s, 2)
          , c = u[0]
          , f = u[1]
          , d = j(function() {
            return oAe(e.fieldNames)
        })
          , v = j(function() {
            return e.options || []
        })
          , h = CAe(v, d)
          , p = function(ce) {
            var le = h.value;
            return ce.map(function(oe) {
                var se = le[oe].nodes;
                return se.map(function(xe) {
                    return xe[d.value.value]
                })
            })
        }
          , g = zn("", {
            value: j(function() {
                return e.searchValue
            }),
            postState: function(ce) {
                return ce || ""
            }
        })
          , m = De(g, 2)
          , y = m[0]
          , b = m[1]
          , x = function(ce, le) {
            b(ce),
            le.source !== "blur" && e.onSearch && e.onSearch(ce)
        }
          , C = wAe(at(e, "showSearch"))
          , S = C.showSearch
          , w = C.searchConfig
          , T = PAe(y, v, d, j(function() {
            return e.dropdownPrefixCls || e.prefixCls
        }), w, at(e, "changeOnSelect"))
          , P = MAe(v, d, c)
          , M = [Q([]), Q([]), Q([])]
          , A = M[0]
          , O = M[1]
          , k = M[2]
          , D = hw(h)
          , E = D.maxLevel
          , L = D.levelEntities;
        pt(function() {
            var fe = De(P.value, 2)
              , ce = fe[0]
              , le = fe[1];
            if (!l.value || !c.value.length) {
                var oe = [ce, [], le];
                A.value = oe[0],
                O.value = oe[1],
                k.value = oe[2];
                return
            }
            var se = ev(ce)
              , xe = h.value
              , Pe = Li(se, !0, xe, E.value, L.value)
              , Fe = Pe.checkedKeys
              , ze = Pe.halfCheckedKeys
              , _e = [p(Fe), p(ze), le];
            A.value = _e[0],
            O.value = _e[1],
            k.value = _e[2]
        });
        var N = j(function() {
            var fe = ev(A.value)
              , ce = b9(fe, h.value, e.showCheckedStrategy);
            return [].concat($e(k.value), $e(p(ce)))
        })
          , R = OAe(N, v, d, l, at(e, "displayRender"))
          , $ = function(ce) {
            if (f(ce),
            e.onChange) {
                var le = x9(ce)
                  , oe = le.map(function(Pe) {
                    return x0(Pe, v.value, d.value).map(function(Fe) {
                        return Fe.option
                    })
                })
                  , se = l.value ? le : le[0]
                  , xe = l.value ? oe : oe[0];
                e.onChange(se, xe)
            }
        }
          , W = function(ce) {
            if (b(""),
            !l.value)
                $(ce);
            else {
                var le = pu(ce)
                  , oe = ev(A.value)
                  , se = ev(O.value)
                  , xe = oe.includes(le)
                  , Pe = k.value.some(function(pe) {
                    return pu(pe) === le
                })
                  , Fe = A.value
                  , ze = k.value;
                if (Pe && !xe)
                    ze = k.value.filter(function(pe) {
                        return pu(pe) !== le
                    });
                else {
                    var _e = xe ? oe.filter(function(pe) {
                        return pe !== le
                    }) : [].concat($e(oe), [le]), me;
                    if (xe) {
                        var Ie = Li(_e, {
                            checked: !1,
                            halfCheckedKeys: se
                        }, h.value, E.value, L.value);
                        me = Ie.checkedKeys
                    } else {
                        var Oe = Li(_e, !0, h.value, E.value, L.value);
                        me = Oe.checkedKeys
                    }
                    var Ce = b9(me, h.value, e.showCheckedStrategy);
                    Fe = p(Ce)
                }
                $([].concat($e(ze), $e(Fe)))
            }
        }
          , B = function(ce, le) {
            if (le.type === "clear") {
                $([]);
                return
            }
            var oe = le.values[0].valueCells;
            W(oe)
        }
          , G = j(function() {
            return e.open !== void 0 ? e.open : e.popupVisible
        })
          , K = j(function() {
            return e.dropdownClassName || e.popupClassName
        })
          , V = j(function() {
            return e.dropdownStyle || e.popupStyle || {}
        })
          , U = j(function() {
            return e.placement || e.popupPlacement
        })
          , X = function(ce) {
            var le, oe;
            (le = e.onDropdownVisibleChange) === null || le === void 0 || le.call(e, ce),
            (oe = e.onPopupVisibleChange) === null || oe === void 0 || oe.call(e, ce)
        }
          , Y = vu(e)
          , te = Y.changeOnSelect
          , ne = Y.checkable
          , ie = Y.dropdownPrefixCls
          , ae = Y.loadData
          , q = Y.expandTrigger
          , F = Y.expandIcon
          , H = Y.loadingIcon
          , ee = Y.dropdownMenuColumnStyle
          , re = Y.customSlots;
        DAe({
            options: v,
            fieldNames: d,
            values: A,
            halfValues: O,
            changeOnSelect: te,
            onSelect: W,
            checkable: ne,
            searchOptions: T,
            dropdownPrefixCls: ie,
            loadData: ae,
            expandTrigger: q,
            expandIcon: F,
            loadingIcon: H,
            dropdownMenuColumnStyle: ee,
            customSlots: re
        });
        var ue = Q();
        a({
            focus: function() {
                var ce;
                (ce = ue.value) === null || ce === void 0 || ce.focus()
            },
            blur: function() {
                var ce;
                (ce = ue.value) === null || ce === void 0 || ce.blur()
            },
            scrollTo: function(ce) {
                var le;
                (le = ue.value) === null || le === void 0 || le.scrollTo(ce)
            }
        });
        var ve = j(function() {
            return Et(e, ["id", "prefixCls", "fieldNames", "defaultValue", "value", "changeOnSelect", "onChange", "displayRender", "checkable", "searchValue", "onSearch", "showSearch", "expandTrigger", "options", "dropdownPrefixCls", "loadData", "popupVisible", "open", "popupClassName", "dropdownClassName", "dropdownMenuColumnStyle", "popupPlacement", "placement", "onDropdownVisibleChange", "onPopupVisibleChange", "expandIcon", "loadingIcon", "customSlots", "showCheckedStrategy", "children"])
        });
        return function() {
            var fe = !(y.value ? T.value : v.value).length
              , ce = e.dropdownMatchSelectWidth
              , le = ce === void 0 ? !1 : ce
              , oe = y.value && w.value.matchInputWidth || fe ? {} : {
                minWidth: "auto"
            };
            return _(SD, I(I(I({}, ve.value), r), {}, {
                ref: ue,
                id: o,
                prefixCls: e.prefixCls,
                dropdownMatchSelectWidth: le,
                dropdownStyle: I(I({}, V.value), oe),
                displayValues: R.value,
                onDisplayValuesChange: B,
                mode: l.value ? "multiple" : void 0,
                searchValue: y.value,
                onSearch: x,
                showSearch: S.value,
                OptionList: RAe,
                emptyOptions: fe,
                open: G.value,
                dropdownClassName: K.value,
                placement: U.value,
                onDropdownVisibleChange: X,
                getRawInputElement: function() {
                    var xe;
                    return (xe = i.default) === null || xe === void 0 ? void 0 : xe.call(i)
                }
            }), i)
        }
    }
});
var BAe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"
            }
        }]
    },
    name: "left",
    theme: "outlined"
};
const VAe = BAe;
function S9(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            zAe(t, a, n[a])
        })
    }
    return t
}
function zAe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var D8 = function(e, n) {
    var r = S9({}, e, n.attrs);
    return _(lt, S9({}, r, {
        icon: VAe
    }), null)
};
D8.displayName = "LeftOutlined";
D8.inheritAttrs = !1;
const Df = D8;
function HAe(t, e) {
    for (var n = -1, r = t == null ? 0 : t.length; ++n < r && e(t[n], n, t) !== !1; )
        ;
    return t
}
function Im(t, e, n, r) {
    var a = !n;
    n || (n = {});
    for (var i = -1, o = e.length; ++i < o; ) {
        var l = e[i]
          , s = r ? r(n[l], t[l], l, n, t) : void 0;
        s === void 0 && (s = t[l]),
        a ? aee(n, l, s) : S8(n, l, s)
    }
    return n
}
function jAe(t, e) {
    return t && Im(e, ph(e), t)
}
function WAe(t) {
    var e = [];
    if (t != null)
        for (var n in Object(t))
            e.push(n);
    return e
}
var GAe = Object.prototype
  , KAe = GAe.hasOwnProperty;
function UAe(t) {
    if (!wo(t))
        return WAe(t);
    var e = mD(t)
      , n = [];
    for (var r in t)
        r == "constructor" && (e || !KAe.call(t, r)) || n.push(r);
    return n
}
function E8(t) {
    return xm(t) ? pQ(t, !0) : UAe(t)
}
function YAe(t, e) {
    return t && Im(e, E8(e), t)
}
var Fee = typeof exports == "object" && exports && !exports.nodeType && exports
  , C9 = Fee && typeof module == "object" && module && !module.nodeType && module
  , qAe = C9 && C9.exports === Fee
  , w9 = qAe ? ko.Buffer : void 0
  , _9 = w9 ? w9.allocUnsafe : void 0;
function XAe(t, e) {
    if (e)
        return t.slice();
    var n = t.length
      , r = _9 ? _9(n) : new t.constructor(n);
    return t.copy(r),
    r
}
function ZAe(t, e) {
    var n = -1
      , r = t.length;
    for (e || (e = Array(r)); ++n < r; )
        e[n] = t[n];
    return e
}
function QAe(t, e) {
    return Im(t, vD(t), e)
}
var JAe = Object.getOwnPropertySymbols
  , eIe = JAe ? function(t) {
    for (var e = []; t; )
        dD(e, vD(t)),
        t = AO(t);
    return e
}
: cQ;
const Bee = eIe;
function tIe(t, e) {
    return Im(t, Bee(t), e)
}
function Vee(t) {
    return uQ(t, E8, Bee)
}
var nIe = Object.prototype
  , rIe = nIe.hasOwnProperty;
function aIe(t) {
    var e = t.length
      , n = new t.constructor(e);
    return e && typeof t[0] == "string" && rIe.call(t, "index") && (n.index = t.index,
    n.input = t.input),
    n
}
function L8(t) {
    var e = new t.constructor(t.byteLength);
    return new Ox(e).set(new Ox(t)),
    e
}
function iIe(t, e) {
    var n = e ? L8(t.buffer) : t.buffer;
    return new t.constructor(n,t.byteOffset,t.byteLength)
}
var oIe = /\w*$/;
function lIe(t) {
    var e = new t.constructor(t.source,oIe.exec(t));
    return e.lastIndex = t.lastIndex,
    e
}
var T9 = Bi ? Bi.prototype : void 0
  , P9 = T9 ? T9.valueOf : void 0;
function sIe(t) {
    return P9 ? Object(P9.call(t)) : {}
}
function uIe(t, e) {
    var n = e ? L8(t.buffer) : t.buffer;
    return new t.constructor(n,t.byteOffset,t.length)
}
var cIe = "[object Boolean]"
  , fIe = "[object Date]"
  , dIe = "[object Map]"
  , vIe = "[object Number]"
  , hIe = "[object RegExp]"
  , pIe = "[object Set]"
  , gIe = "[object String]"
  , mIe = "[object Symbol]"
  , yIe = "[object ArrayBuffer]"
  , bIe = "[object DataView]"
  , xIe = "[object Float32Array]"
  , SIe = "[object Float64Array]"
  , CIe = "[object Int8Array]"
  , wIe = "[object Int16Array]"
  , _Ie = "[object Int32Array]"
  , TIe = "[object Uint8Array]"
  , PIe = "[object Uint8ClampedArray]"
  , MIe = "[object Uint16Array]"
  , AIe = "[object Uint32Array]";
function IIe(t, e, n) {
    var r = t.constructor;
    switch (e) {
    case yIe:
        return L8(t);
    case cIe:
    case fIe:
        return new r(+t);
    case bIe:
        return iIe(t, n);
    case xIe:
    case SIe:
    case CIe:
    case wIe:
    case _Ie:
    case TIe:
    case PIe:
    case MIe:
    case AIe:
        return uIe(t, n);
    case dIe:
        return new r;
    case vIe:
    case gIe:
        return new r(t);
    case hIe:
        return lIe(t);
    case pIe:
        return new r;
    case mIe:
        return sIe(t)
    }
}
var M9 = Object.create
  , kIe = function() {
    function t() {}
    return function(e) {
        if (!wo(e))
            return {};
        if (M9)
            return M9(e);
        t.prototype = e;
        var n = new t;
        return t.prototype = void 0,
        n
    }
}();
const OIe = kIe;
function DIe(t) {
    return typeof t.constructor == "function" && !mD(t) ? OIe(AO(t)) : {}
}
var EIe = "[object Map]";
function LIe(t) {
    return xo(t) && h0(t) == EIe
}
var A9 = $v && $v.isMap
  , RIe = A9 ? bm(A9) : LIe;
const NIe = RIe;
var $Ie = "[object Set]";
function FIe(t) {
    return xo(t) && h0(t) == $Ie
}
var I9 = $v && $v.isSet
  , BIe = I9 ? bm(I9) : FIe;
const VIe = BIe;
var zIe = 1
  , HIe = 2
  , jIe = 4
  , zee = "[object Arguments]"
  , WIe = "[object Array]"
  , GIe = "[object Boolean]"
  , KIe = "[object Date]"
  , UIe = "[object Error]"
  , Hee = "[object Function]"
  , YIe = "[object GeneratorFunction]"
  , qIe = "[object Map]"
  , XIe = "[object Number]"
  , jee = "[object Object]"
  , ZIe = "[object RegExp]"
  , QIe = "[object Set]"
  , JIe = "[object String]"
  , eke = "[object Symbol]"
  , tke = "[object WeakMap]"
  , nke = "[object ArrayBuffer]"
  , rke = "[object DataView]"
  , ake = "[object Float32Array]"
  , ike = "[object Float64Array]"
  , oke = "[object Int8Array]"
  , lke = "[object Int16Array]"
  , ske = "[object Int32Array]"
  , uke = "[object Uint8Array]"
  , cke = "[object Uint8ClampedArray]"
  , fke = "[object Uint16Array]"
  , dke = "[object Uint32Array]"
  , Vn = {};
Vn[zee] = Vn[WIe] = Vn[nke] = Vn[rke] = Vn[GIe] = Vn[KIe] = Vn[ake] = Vn[ike] = Vn[oke] = Vn[lke] = Vn[ske] = Vn[qIe] = Vn[XIe] = Vn[jee] = Vn[ZIe] = Vn[QIe] = Vn[JIe] = Vn[eke] = Vn[uke] = Vn[cke] = Vn[fke] = Vn[dke] = !0;
Vn[UIe] = Vn[Hee] = Vn[tke] = !1;
function Sg(t, e, n, r, a, i) {
    var o, l = e & zIe, s = e & HIe, u = e & jIe;
    if (n && (o = a ? n(t, r, a, i) : n(t)),
    o !== void 0)
        return o;
    if (!wo(t))
        return t;
    var c = zi(t);
    if (c) {
        if (o = aIe(t),
        !l)
            return ZAe(t, o)
    } else {
        var f = h0(t)
          , d = f == Hee || f == YIe;
        if (Dx(t))
            return XAe(t, l);
        if (f == jee || f == zee || d && !a) {
            if (o = s || d ? {} : DIe(t),
            !l)
                return s ? tIe(t, YAe(o, t)) : QAe(t, jAe(o, t))
        } else {
            if (!Vn[f])
                return a ? t : {};
            o = IIe(t, f, l)
        }
    }
    i || (i = new ll);
    var v = i.get(t);
    if (v)
        return v;
    i.set(t, o),
    VIe(t) ? t.forEach(function(g) {
        o.add(Sg(g, e, n, g, t, i))
    }) : NIe(t) && t.forEach(function(g, m) {
        o.set(m, Sg(g, e, n, m, t, i))
    });
    var h = u ? s ? Vee : _M : s ? E8 : ph
      , p = c ? void 0 : h(t);
    return HAe(p || t, function(g, m) {
        p && (m = g,
        g = t[m]),
        S8(o, m, Sg(g, e, n, m, t, i))
    }),
    o
}
var vke = 1
  , hke = 4;
function xb(t) {
    return Sg(t, vke | hke)
}
function ef() {
    return ef = Object.assign ? Object.assign.bind() : function(t) {
        for (var e = 1; e < arguments.length; e++) {
            var n = arguments[e];
            for (var r in n)
                Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r])
        }
        return t
    }
    ,
    ef.apply(this, arguments)
}
function pke(t, e) {
    t.prototype = Object.create(e.prototype),
    t.prototype.constructor = t,
    S0(t, e)
}
function QM(t) {
    return QM = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
        return n.__proto__ || Object.getPrototypeOf(n)
    }
    ,
    QM(t)
}
function S0(t, e) {
    return S0 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, a) {
        return r.__proto__ = a,
        r
    }
    ,
    S0(t, e)
}
function gke() {
    if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
        return !1;
    if (typeof Proxy == "function")
        return !0;
    try {
        return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})),
        !0
    } catch (t) {
        return !1
    }
}
function Sb(t, e, n) {
    return gke() ? Sb = Reflect.construct.bind() : Sb = function(a, i, o) {
        var l = [null];
        l.push.apply(l, i);
        var s = Function.bind.apply(a, l)
          , u = new s;
        return o && S0(u, o.prototype),
        u
    }
    ,
    Sb.apply(null, arguments)
}
function mke(t) {
    return Function.toString.call(t).indexOf("[native code]") !== -1
}
function JM(t) {
    var e = typeof Map == "function" ? new Map : void 0;
    return JM = function(r) {
        if (r === null || !mke(r))
            return r;
        if (typeof r != "function")
            throw new TypeError("Super expression must either be null or a function");
        if (typeof e != "undefined") {
            if (e.has(r))
                return e.get(r);
            e.set(r, a)
        }
        function a() {
            return Sb(r, arguments, QM(this).constructor)
        }
        return a.prototype = Object.create(r.prototype, {
            constructor: {
                value: a,
                enumerable: !1,
                writable: !0,
                configurable: !0
            }
        }),
        S0(a, r)
    }
    ,
    JM(t)
}
var yke = /%[sdj%]/g
  , bke = function() {};
typeof process != "undefined" && process.env;
function eA(t) {
    if (!t || !t.length)
        return null;
    var e = {};
    return t.forEach(function(n) {
        var r = n.field;
        e[r] = e[r] || [],
        e[r].push(n)
    }),
    e
}
function ni(t) {
    for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
        n[r - 1] = arguments[r];
    var a = 0
      , i = n.length;
    if (typeof t == "function")
        return t.apply(null, n);
    if (typeof t == "string") {
        var o = t.replace(yke, function(l) {
            if (l === "%%")
                return "%";
            if (a >= i)
                return l;
            switch (l) {
            case "%s":
                return String(n[a++]);
            case "%d":
                return Number(n[a++]);
            case "%j":
                try {
                    return JSON.stringify(n[a++])
                } catch (s) {
                    return "[Circular]"
                }
                break;
            default:
                return l
            }
        });
        return o
    }
    return t
}
function xke(t) {
    return t === "string" || t === "url" || t === "hex" || t === "email" || t === "date" || t === "pattern"
}
function Lr(t, e) {
    return !!(t == null || e === "array" && Array.isArray(t) && !t.length || xke(e) && typeof t == "string" && !t)
}
function Ske(t, e, n) {
    var r = []
      , a = 0
      , i = t.length;
    function o(l) {
        r.push.apply(r, l || []),
        a++,
        a === i && n(r)
    }
    t.forEach(function(l) {
        e(l, o)
    })
}
function k9(t, e, n) {
    var r = 0
      , a = t.length;
    function i(o) {
        if (o && o.length) {
            n(o);
            return
        }
        var l = r;
        r = r + 1,
        l < a ? e(t[l], i) : n([])
    }
    i([])
}
function Cke(t) {
    var e = [];
    return Object.keys(t).forEach(function(n) {
        e.push.apply(e, t[n] || [])
    }),
    e
}
var O9 = function(t) {
    pke(e, t);
    function e(n, r) {
        var a;
        return a = t.call(this, "Async Validation Error") || this,
        a.errors = n,
        a.fields = r,
        a
    }
    return e
}(JM(Error));
function wke(t, e, n, r, a) {
    if (e.first) {
        var i = new Promise(function(d, v) {
            var h = function(m) {
                return r(m),
                m.length ? v(new O9(m,eA(m))) : d(a)
            }
              , p = Cke(t);
            k9(p, n, h)
        }
        );
        return i.catch(function(d) {
            return d
        }),
        i
    }
    var o = e.firstFields === !0 ? Object.keys(t) : e.firstFields || []
      , l = Object.keys(t)
      , s = l.length
      , u = 0
      , c = []
      , f = new Promise(function(d, v) {
        var h = function(g) {
            if (c.push.apply(c, g),
            u++,
            u === s)
                return r(c),
                c.length ? v(new O9(c,eA(c))) : d(a)
        };
        l.length || (r(c),
        d(a)),
        l.forEach(function(p) {
            var g = t[p];
            o.indexOf(p) !== -1 ? k9(g, n, h) : Ske(g, n, h)
        })
    }
    );
    return f.catch(function(d) {
        return d
    }),
    f
}
function _ke(t) {
    return !!(t && t.message !== void 0)
}
function Tke(t, e) {
    for (var n = t, r = 0; r < e.length; r++) {
        if (n == null)
            return n;
        n = n[e[r]]
    }
    return n
}
function D9(t, e) {
    return function(n) {
        var r;
        return t.fullFields ? r = Tke(e, t.fullFields) : r = e[n.field || t.fullField],
        _ke(n) ? (n.field = n.field || t.fullField,
        n.fieldValue = r,
        n) : {
            message: typeof n == "function" ? n() : n,
            fieldValue: r,
            field: n.field || t.fullField
        }
    }
}
function E9(t, e) {
    if (e) {
        for (var n in e)
            if (e.hasOwnProperty(n)) {
                var r = e[n];
                typeof r == "object" && typeof t[n] == "object" ? t[n] = ef({}, t[n], r) : t[n] = r
            }
    }
    return t
}
var Wee = function(e, n, r, a, i, o) {
    e.required && (!r.hasOwnProperty(e.field) || Lr(n, o || e.type)) && a.push(ni(i.messages.required, e.fullField))
}, Pke = function(e, n, r, a, i) {
    (/^\s+$/.test(n) || n === "") && a.push(ni(i.messages.whitespace, e.fullField))
}, Gy, Mke = function() {
    if (Gy)
        return Gy;
    var t = "[a-fA-F\\d:]"
      , e = function(x) {
        return x && x.includeBoundaries ? "(?:(?<=\\s|^)(?=" + t + ")|(?<=" + t + ")(?=\\s|$))" : ""
    }
      , n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}"
      , r = "[a-fA-F\\d]{1,4}"
      , a = (`
(?:
(?:` + r + ":){7}(?:" + r + `|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:` + r + ":){6}(?:" + n + "|:" + r + `|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:` + r + ":){5}(?::" + n + "|(?::" + r + `){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:` + r + ":){4}(?:(?::" + r + "){0,1}:" + n + "|(?::" + r + `){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:` + r + ":){3}(?:(?::" + r + "){0,2}:" + n + "|(?::" + r + `){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:` + r + ":){2}(?:(?::" + r + "){0,3}:" + n + "|(?::" + r + `){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:` + r + ":){1}(?:(?::" + r + "){0,4}:" + n + "|(?::" + r + `){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::` + r + "){0,5}:" + n + "|(?::" + r + `){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim()
      , i = new RegExp("(?:^" + n + "$)|(?:^" + a + "$)")
      , o = new RegExp("^" + n + "$")
      , l = new RegExp("^" + a + "$")
      , s = function(x) {
        return x && x.exact ? i : new RegExp("(?:" + e(x) + n + e(x) + ")|(?:" + e(x) + a + e(x) + ")","g")
    };
    s.v4 = function(b) {
        return b && b.exact ? o : new RegExp("" + e(b) + n + e(b),"g")
    }
    ,
    s.v6 = function(b) {
        return b && b.exact ? l : new RegExp("" + e(b) + a + e(b),"g")
    }
    ;
    var u = "(?:(?:[a-z]+:)?//)"
      , c = "(?:\\S+(?::\\S*)?@)?"
      , f = s.v4().source
      , d = s.v6().source
      , v = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)"
      , h = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"
      , p = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))"
      , g = "(?::\\d{2,5})?"
      , m = '(?:[/?#][^\\s"]*)?'
      , y = "(?:" + u + "|www\\.)" + c + "(?:localhost|" + f + "|" + d + "|" + v + h + p + ")" + g + m;
    return Gy = new RegExp("(?:^" + y + "$)","i"),
    Gy
}, L9 = {
    email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
    hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
}, Wp = {
    integer: function(e) {
        return Wp.number(e) && parseInt(e, 10) === e
    },
    float: function(e) {
        return Wp.number(e) && !Wp.integer(e)
    },
    array: function(e) {
        return Array.isArray(e)
    },
    regexp: function(e) {
        if (e instanceof RegExp)
            return !0;
        try {
            return !!new RegExp(e)
        } catch (n) {
            return !1
        }
    },
    date: function(e) {
        return typeof e.getTime == "function" && typeof e.getMonth == "function" && typeof e.getFullYear == "function" && !isNaN(e.getTime())
    },
    number: function(e) {
        return isNaN(e) ? !1 : typeof e == "number"
    },
    object: function(e) {
        return typeof e == "object" && !Wp.array(e)
    },
    method: function(e) {
        return typeof e == "function"
    },
    email: function(e) {
        return typeof e == "string" && e.length <= 320 && !!e.match(L9.email)
    },
    url: function(e) {
        return typeof e == "string" && e.length <= 2048 && !!e.match(Mke())
    },
    hex: function(e) {
        return typeof e == "string" && !!e.match(L9.hex)
    }
}, Ake = function(e, n, r, a, i) {
    if (e.required && n === void 0) {
        Wee(e, n, r, a, i);
        return
    }
    var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"]
      , l = e.type;
    o.indexOf(l) > -1 ? Wp[l](n) || a.push(ni(i.messages.types[l], e.fullField, e.type)) : l && typeof n !== e.type && a.push(ni(i.messages.types[l], e.fullField, e.type))
}, Ike = function(e, n, r, a, i) {
    var o = typeof e.len == "number"
      , l = typeof e.min == "number"
      , s = typeof e.max == "number"
      , u = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g
      , c = n
      , f = null
      , d = typeof n == "number"
      , v = typeof n == "string"
      , h = Array.isArray(n);
    if (d ? f = "number" : v ? f = "string" : h && (f = "array"),
    !f)
        return !1;
    h && (c = n.length),
    v && (c = n.replace(u, "_").length),
    o ? c !== e.len && a.push(ni(i.messages[f].len, e.fullField, e.len)) : l && !s && c < e.min ? a.push(ni(i.messages[f].min, e.fullField, e.min)) : s && !l && c > e.max ? a.push(ni(i.messages[f].max, e.fullField, e.max)) : l && s && (c < e.min || c > e.max) && a.push(ni(i.messages[f].range, e.fullField, e.min, e.max))
}, pd = "enum", kke = function(e, n, r, a, i) {
    e[pd] = Array.isArray(e[pd]) ? e[pd] : [],
    e[pd].indexOf(n) === -1 && a.push(ni(i.messages[pd], e.fullField, e[pd].join(", ")))
}, Oke = function(e, n, r, a, i) {
    if (e.pattern) {
        if (e.pattern instanceof RegExp)
            e.pattern.lastIndex = 0,
            e.pattern.test(n) || a.push(ni(i.messages.pattern.mismatch, e.fullField, n, e.pattern));
        else if (typeof e.pattern == "string") {
            var o = new RegExp(e.pattern);
            o.test(n) || a.push(ni(i.messages.pattern.mismatch, e.fullField, n, e.pattern))
        }
    }
}, fn = {
    required: Wee,
    whitespace: Pke,
    type: Ake,
    range: Ike,
    enum: kke,
    pattern: Oke
}, Dke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (Lr(n, "string") && !e.required)
            return r();
        fn.required(e, n, a, o, i, "string"),
        Lr(n, "string") || (fn.type(e, n, a, o, i),
        fn.range(e, n, a, o, i),
        fn.pattern(e, n, a, o, i),
        e.whitespace === !0 && fn.whitespace(e, n, a, o, i))
    }
    r(o)
}, Eke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (Lr(n) && !e.required)
            return r();
        fn.required(e, n, a, o, i),
        n !== void 0 && fn.type(e, n, a, o, i)
    }
    r(o)
}, Lke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (n === "" && (n = void 0),
        Lr(n) && !e.required)
            return r();
        fn.required(e, n, a, o, i),
        n !== void 0 && (fn.type(e, n, a, o, i),
        fn.range(e, n, a, o, i))
    }
    r(o)
}, Rke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (Lr(n) && !e.required)
            return r();
        fn.required(e, n, a, o, i),
        n !== void 0 && fn.type(e, n, a, o, i)
    }
    r(o)
}, Nke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (Lr(n) && !e.required)
            return r();
        fn.required(e, n, a, o, i),
        Lr(n) || fn.type(e, n, a, o, i)
    }
    r(o)
}, $ke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (Lr(n) && !e.required)
            return r();
        fn.required(e, n, a, o, i),
        n !== void 0 && (fn.type(e, n, a, o, i),
        fn.range(e, n, a, o, i))
    }
    r(o)
}, Fke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (Lr(n) && !e.required)
            return r();
        fn.required(e, n, a, o, i),
        n !== void 0 && (fn.type(e, n, a, o, i),
        fn.range(e, n, a, o, i))
    }
    r(o)
}, Bke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (n == null && !e.required)
            return r();
        fn.required(e, n, a, o, i, "array"),
        n != null && (fn.type(e, n, a, o, i),
        fn.range(e, n, a, o, i))
    }
    r(o)
}, Vke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (Lr(n) && !e.required)
            return r();
        fn.required(e, n, a, o, i),
        n !== void 0 && fn.type(e, n, a, o, i)
    }
    r(o)
}, zke = "enum", Hke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (Lr(n) && !e.required)
            return r();
        fn.required(e, n, a, o, i),
        n !== void 0 && fn[zke](e, n, a, o, i)
    }
    r(o)
}, jke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (Lr(n, "string") && !e.required)
            return r();
        fn.required(e, n, a, o, i),
        Lr(n, "string") || fn.pattern(e, n, a, o, i)
    }
    r(o)
}, Wke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (Lr(n, "date") && !e.required)
            return r();
        if (fn.required(e, n, a, o, i),
        !Lr(n, "date")) {
            var s;
            n instanceof Date ? s = n : s = new Date(n),
            fn.type(e, s, a, o, i),
            s && fn.range(e, s.getTime(), a, o, i)
        }
    }
    r(o)
}, Gke = function(e, n, r, a, i) {
    var o = []
      , l = Array.isArray(n) ? "array" : typeof n;
    fn.required(e, n, a, o, i, l),
    r(o)
}, hT = function(e, n, r, a, i) {
    var o = e.type
      , l = []
      , s = e.required || !e.required && a.hasOwnProperty(e.field);
    if (s) {
        if (Lr(n, o) && !e.required)
            return r();
        fn.required(e, n, a, l, i, o),
        Lr(n, o) || fn.type(e, n, a, l, i)
    }
    r(l)
}, Kke = function(e, n, r, a, i) {
    var o = []
      , l = e.required || !e.required && a.hasOwnProperty(e.field);
    if (l) {
        if (Lr(n) && !e.required)
            return r();
        fn.required(e, n, a, o, i)
    }
    r(o)
}, Cg = {
    string: Dke,
    method: Eke,
    number: Lke,
    boolean: Rke,
    regexp: Nke,
    integer: $ke,
    float: Fke,
    array: Bke,
    object: Vke,
    enum: Hke,
    pattern: jke,
    date: Wke,
    url: hT,
    hex: hT,
    email: hT,
    required: Gke,
    any: Kke
};
function tA() {
    return {
        default: "Validation error on field %s",
        required: "%s is required",
        enum: "%s must be one of %s",
        whitespace: "%s cannot be empty",
        date: {
            format: "%s date %s is invalid for format %s",
            parse: "%s date could not be parsed, %s is invalid ",
            invalid: "%s date %s is invalid"
        },
        types: {
            string: "%s is not a %s",
            method: "%s is not a %s (function)",
            array: "%s is not an %s",
            object: "%s is not an %s",
            number: "%s is not a %s",
            date: "%s is not a %s",
            boolean: "%s is not a %s",
            integer: "%s is not an %s",
            float: "%s is not a %s",
            regexp: "%s is not a valid %s",
            email: "%s is not a valid %s",
            url: "%s is not a valid %s",
            hex: "%s is not a valid %s"
        },
        string: {
            len: "%s must be exactly %s characters",
            min: "%s must be at least %s characters",
            max: "%s cannot be longer than %s characters",
            range: "%s must be between %s and %s characters"
        },
        number: {
            len: "%s must equal %s",
            min: "%s cannot be less than %s",
            max: "%s cannot be greater than %s",
            range: "%s must be between %s and %s"
        },
        array: {
            len: "%s must be exactly %s in length",
            min: "%s cannot be less than %s in length",
            max: "%s cannot be greater than %s in length",
            range: "%s must be between %s and %s in length"
        },
        pattern: {
            mismatch: "%s value %s does not match pattern %s"
        },
        clone: function() {
            var e = JSON.parse(JSON.stringify(this));
            return e.clone = this.clone,
            e
        }
    }
}
var nA = tA()
  , km = function() {
    function t(n) {
        this.rules = null,
        this._messages = nA,
        this.define(n)
    }
    var e = t.prototype;
    return e.define = function(r) {
        var a = this;
        if (!r)
            throw new Error("Cannot configure a schema with no rules");
        if (typeof r != "object" || Array.isArray(r))
            throw new Error("Rules must be an object");
        this.rules = {},
        Object.keys(r).forEach(function(i) {
            var o = r[i];
            a.rules[i] = Array.isArray(o) ? o : [o]
        })
    }
    ,
    e.messages = function(r) {
        return r && (this._messages = E9(tA(), r)),
        this._messages
    }
    ,
    e.validate = function(r, a, i) {
        var o = this;
        a === void 0 && (a = {}),
        i === void 0 && (i = function() {}
        );
        var l = r
          , s = a
          , u = i;
        if (typeof s == "function" && (u = s,
        s = {}),
        !this.rules || Object.keys(this.rules).length === 0)
            return u && u(null, l),
            Promise.resolve(l);
        function c(p) {
            var g = []
              , m = {};
            function y(x) {
                if (Array.isArray(x)) {
                    var C;
                    g = (C = g).concat.apply(C, x)
                } else
                    g.push(x)
            }
            for (var b = 0; b < p.length; b++)
                y(p[b]);
            g.length ? (m = eA(g),
            u(g, m)) : u(null, l)
        }
        if (s.messages) {
            var f = this.messages();
            f === nA && (f = tA()),
            E9(f, s.messages),
            s.messages = f
        } else
            s.messages = this.messages();
        var d = {}
          , v = s.keys || Object.keys(this.rules);
        v.forEach(function(p) {
            var g = o.rules[p]
              , m = l[p];
            g.forEach(function(y) {
                var b = y;
                typeof b.transform == "function" && (l === r && (l = ef({}, l)),
                m = l[p] = b.transform(m)),
                typeof b == "function" ? b = {
                    validator: b
                } : b = ef({}, b),
                b.validator = o.getValidationMethod(b),
                b.validator && (b.field = p,
                b.fullField = b.fullField || p,
                b.type = o.getType(b),
                d[p] = d[p] || [],
                d[p].push({
                    rule: b,
                    value: m,
                    source: l,
                    field: p
                }))
            })
        });
        var h = {};
        return wke(d, s, function(p, g) {
            var m = p.rule
              , y = (m.type === "object" || m.type === "array") && (typeof m.fields == "object" || typeof m.defaultField == "object");
            y = y && (m.required || !m.required && p.value),
            m.field = p.field;
            function b(S, w) {
                return ef({}, w, {
                    fullField: m.fullField + "." + S,
                    fullFields: m.fullFields ? [].concat(m.fullFields, [S]) : [S]
                })
            }
            function x(S) {
                S === void 0 && (S = []);
                var w = Array.isArray(S) ? S : [S];
                !s.suppressWarning && w.length && t.warning("async-validator:", w),
                w.length && m.message !== void 0 && (w = [].concat(m.message));
                var T = w.map(D9(m, l));
                if (s.first && T.length)
                    return h[m.field] = 1,
                    g(T);
                if (!y)
                    g(T);
                else {
                    if (m.required && !p.value)
                        return m.message !== void 0 ? T = [].concat(m.message).map(D9(m, l)) : s.error && (T = [s.error(m, ni(s.messages.required, m.field))]),
                        g(T);
                    var P = {};
                    m.defaultField && Object.keys(p.value).map(function(O) {
                        P[O] = m.defaultField
                    }),
                    P = ef({}, P, p.rule.fields);
                    var M = {};
                    Object.keys(P).forEach(function(O) {
                        var k = P[O]
                          , D = Array.isArray(k) ? k : [k];
                        M[O] = D.map(b.bind(null, O))
                    });
                    var A = new t(M);
                    A.messages(s.messages),
                    p.rule.options && (p.rule.options.messages = s.messages,
                    p.rule.options.error = s.error),
                    A.validate(p.value, p.rule.options || s, function(O) {
                        var k = [];
                        T && T.length && k.push.apply(k, T),
                        O && O.length && k.push.apply(k, O),
                        g(k.length ? k : null)
                    })
                }
            }
            var C;
            if (m.asyncValidator)
                C = m.asyncValidator(m, p.value, x, p.source, s);
            else if (m.validator) {
                try {
                    C = m.validator(m, p.value, x, p.source, s)
                } catch (S) {
                    console.error == null,
                    s.suppressValidatorError || setTimeout(function() {
                        throw S
                    }, 0),
                    x(S.message)
                }
                C === !0 ? x() : C === !1 ? x(typeof m.message == "function" ? m.message(m.fullField || m.field) : m.message || (m.fullField || m.field) + " fails") : C instanceof Array ? x(C) : C instanceof Error && x(C.message)
            }
            C && C.then && C.then(function() {
                return x()
            }, function(S) {
                return x(S)
            })
        }, function(p) {
            c(p)
        }, l)
    }
    ,
    e.getType = function(r) {
        if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"),
        typeof r.validator != "function" && r.type && !Cg.hasOwnProperty(r.type))
            throw new Error(ni("Unknown rule type %s", r.type));
        return r.type || "string"
    }
    ,
    e.getValidationMethod = function(r) {
        if (typeof r.validator == "function")
            return r.validator;
        var a = Object.keys(r)
          , i = a.indexOf("message");
        return i !== -1 && a.splice(i, 1),
        a.length === 1 && a[0] === "required" ? Cg.required : Cg[this.getType(r)] || void 0
    }
    ,
    t
}();
km.register = function(e, n) {
    if (typeof n != "function")
        throw new Error("Cannot register a validator by type, validator is not a function");
    Cg[e] = n
}
;
km.warning = bke;
km.messages = nA;
km.validators = Cg;
function gu(t) {
    return t == null ? [] : Array.isArray(t) ? t : [t]
}
function Gee(t, e) {
    for (var n = t, r = 0; r < e.length; r += 1) {
        if (n == null)
            return;
        n = n[e[r]]
    }
    return n
}
function Kee(t, e, n, r) {
    if (!e.length)
        return n;
    var a = nD(e), i = a[0], o = a.slice(1), l;
    return !t && typeof i == "number" ? l = [] : Array.isArray(t) ? l = $e(t) : l = I({}, t),
    r && n === void 0 && o.length === 1 ? delete l[i][o[0]] : l[i] = Kee(l[i], o, n, r),
    l
}
function Uke(t, e, n) {
    var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
    return e.length && r && n === void 0 && !Gee(t, e.slice(0, -1)) ? t : Kee(t, e, n, r)
}
function rA(t) {
    return gu(t)
}
function Yke(t, e) {
    var n = Gee(t, e);
    return n
}
function qke(t, e, n) {
    var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1
      , a = Uke(t, e, n, r);
    return a
}
function Xke(t, e) {
    return t && t.some(function(n) {
        return Qke(n, e)
    })
}
function R9(t) {
    return We(t) === "object" && t !== null && Object.getPrototypeOf(t) === Object.prototype
}
function Uee(t, e) {
    var n = Array.isArray(t) ? $e(t) : I({}, t);
    return e && Object.keys(e).forEach(function(r) {
        var a = n[r]
          , i = e[r]
          , o = R9(a) && R9(i);
        n[r] = o ? Uee(a, i || {}) : i
    }),
    n
}
function Zke(t) {
    for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
        n[r - 1] = arguments[r];
    return n.reduce(function(a, i) {
        return Uee(a, i)
    }, t)
}
function N9(t, e) {
    var n = {};
    return e.forEach(function(r) {
        var a = Yke(t, r);
        n = qke(n, r, a)
    }),
    n
}
function Qke(t, e) {
    return !t || !e || t.length !== e.length ? !1 : t.every(function(n, r) {
        return e[r] === n
    })
}
var qa = "'${name}' is not a valid ${type}"
  , pw = {
    default: "Validation error on field '${name}'",
    required: "'${name}' is required",
    enum: "'${name}' must be one of [${enum}]",
    whitespace: "'${name}' cannot be empty",
    date: {
        format: "'${name}' is invalid for format date",
        parse: "'${name}' could not be parsed as date",
        invalid: "'${name}' is invalid date"
    },
    types: {
        string: qa,
        method: qa,
        array: qa,
        object: qa,
        number: qa,
        date: qa,
        boolean: qa,
        integer: qa,
        float: qa,
        regexp: qa,
        email: qa,
        url: qa,
        hex: qa
    },
    string: {
        len: "'${name}' must be exactly ${len} characters",
        min: "'${name}' must be at least ${min} characters",
        max: "'${name}' cannot be longer than ${max} characters",
        range: "'${name}' must be between ${min} and ${max} characters"
    },
    number: {
        len: "'${name}' must equal ${len}",
        min: "'${name}' cannot be less than ${min}",
        max: "'${name}' cannot be greater than ${max}",
        range: "'${name}' must be between ${min} and ${max}"
    },
    array: {
        len: "'${name}' must be exactly ${len} in length",
        min: "'${name}' cannot be less than ${min} in length",
        max: "'${name}' cannot be greater than ${max} in length",
        range: "'${name}' must be between ${min} and ${max} in length"
    },
    pattern: {
        mismatch: "'${name}' does not match pattern ${pattern}"
    }
}
  , Jke = km;
function eOe(t, e) {
    return t.replace(/\$\{\w+\}/g, function(n) {
        var r = n.slice(2, -1);
        return e[r]
    })
}
function aA(t, e, n, r, a) {
    return iA.apply(this, arguments)
}
function iA() {
    return iA = Kf(Ha.mark(function t(e, n, r, a, i) {
        var o, l, s, u, c, f, d, v;
        return Ha.wrap(function(p) {
            for (; ; )
                switch (p.prev = p.next) {
                case 0:
                    return o = I({}, r),
                    delete o.ruleIndex,
                    delete o.trigger,
                    l = null,
                    o && o.type === "array" && o.defaultField && (l = o.defaultField,
                    delete o.defaultField),
                    s = new Jke(z({}, e, [o])),
                    u = Zke({}, pw, a.validateMessages),
                    s.messages(u),
                    c = [],
                    p.prev = 9,
                    p.next = 12,
                    Promise.resolve(s.validate(z({}, e, n), I({}, a)));
                case 12:
                    p.next = 17;
                    break;
                case 14:
                    p.prev = 14,
                    p.t0 = p.catch(9),
                    p.t0.errors ? c = p.t0.errors.map(function(g, m) {
                        var y = g.message;
                        return cr(y) ? Zr(y, {
                            key: "error_".concat(m)
                        }) : y
                    }) : c = [u.default()];
                case 17:
                    if (!(!c.length && l)) {
                        p.next = 22;
                        break
                    }
                    return p.next = 20,
                    Promise.all(n.map(function(g, m) {
                        return aA("".concat(e, ".").concat(m), g, l, a, i)
                    }));
                case 20:
                    return f = p.sent,
                    p.abrupt("return", f.reduce(function(g, m) {
                        return [].concat($e(g), $e(m))
                    }, []));
                case 22:
                    return d = I(I({}, r), {}, {
                        name: e,
                        enum: (r.enum || []).join(", ")
                    }, i),
                    v = c.map(function(g) {
                        return typeof g == "string" ? eOe(g, d) : g
                    }),
                    p.abrupt("return", v);
                case 25:
                case "end":
                    return p.stop()
                }
        }, t, null, [[9, 14]])
    })),
    iA.apply(this, arguments)
}
function Yee(t, e, n, r, a, i) {
    var o = t.join("."), l = n.map(function(c, f) {
        var d = c.validator
          , v = I(I({}, c), {}, {
            ruleIndex: f
        });
        return d && (v.validator = function(h, p, g) {
            var m = !1
              , y = function() {
                for (var C = arguments.length, S = new Array(C), w = 0; w < C; w++)
                    S[w] = arguments[w];
                Promise.resolve().then(function() {
                    m || g.apply(void 0, S)
                })
            }
              , b = d(h, p, y);
            m = b && typeof b.then == "function" && typeof b.catch == "function",
            m && b.then(function() {
                g()
            }).catch(function(x) {
                g(x || " ")
            })
        }
        ),
        v
    }).sort(function(c, f) {
        var d = c.warningOnly
          , v = c.ruleIndex
          , h = f.warningOnly
          , p = f.ruleIndex;
        return !!d == !!h ? v - p : d ? 1 : -1
    }), s;
    if (a === !0)
        s = new Promise(function() {
            var c = Kf(Ha.mark(function f(d, v) {
                var h, p, g;
                return Ha.wrap(function(y) {
                    for (; ; )
                        switch (y.prev = y.next) {
                        case 0:
                            h = 0;
                        case 1:
                            if (!(h < l.length)) {
                                y.next = 12;
                                break
                            }
                            return p = l[h],
                            y.next = 5,
                            aA(o, e, p, r, i);
                        case 5:
                            if (g = y.sent,
                            !g.length) {
                                y.next = 9;
                                break
                            }
                            return v([{
                                errors: g,
                                rule: p
                            }]),
                            y.abrupt("return");
                        case 9:
                            h += 1,
                            y.next = 1;
                            break;
                        case 12:
                            d([]);
                        case 13:
                        case "end":
                            return y.stop()
                        }
                }, f)
            }));
            return function(f, d) {
                return c.apply(this, arguments)
            }
        }());
    else {
        var u = l.map(function(c) {
            return aA(o, e, c, r, i).then(function(f) {
                return {
                    errors: f,
                    rule: c
                }
            })
        });
        s = (a ? nOe(u) : tOe(u)).then(function(c) {
            return Promise.reject(c)
        })
    }
    return s.catch(function(c) {
        return c
    }),
    s
}
function tOe(t) {
    return oA.apply(this, arguments)
}
function oA() {
    return oA = Kf(Ha.mark(function t(e) {
        return Ha.wrap(function(r) {
            for (; ; )
                switch (r.prev = r.next) {
                case 0:
                    return r.abrupt("return", Promise.all(e).then(function(a) {
                        var i, o = (i = []).concat.apply(i, $e(a));
                        return o
                    }));
                case 1:
                case "end":
                    return r.stop()
                }
        }, t)
    })),
    oA.apply(this, arguments)
}
function nOe(t) {
    return lA.apply(this, arguments)
}
function lA() {
    return lA = Kf(Ha.mark(function t(e) {
        var n;
        return Ha.wrap(function(a) {
            for (; ; )
                switch (a.prev = a.next) {
                case 0:
                    return n = 0,
                    a.abrupt("return", new Promise(function(i) {
                        e.forEach(function(o) {
                            o.then(function(l) {
                                l.errors.length && i([l]),
                                n += 1,
                                n === e.length && i([])
                            })
                        })
                    }
                    ));
                case 2:
                case "end":
                    return a.stop()
                }
        }, t)
    })),
    lA.apply(this, arguments)
}
var rOe = 1
  , aOe = 2;
function iOe(t, e, n, r) {
    var a = n.length
      , i = a
      , o = !r;
    if (t == null)
        return !i;
    for (t = Object(t); a--; ) {
        var l = n[a];
        if (o && l[2] ? l[1] !== t[l[0]] : !(l[0]in t))
            return !1
    }
    for (; ++a < i; ) {
        l = n[a];
        var s = l[0]
          , u = t[s]
          , c = l[1];
        if (o && l[2]) {
            if (u === void 0 && !(s in t))
                return !1
        } else {
            var f = new ll;
            if (r)
                var d = r(u, c, s, t, e, f);
            if (!(d === void 0 ? KC(c, u, rOe | aOe, r, f) : d))
                return !1
        }
    }
    return !0
}
function qee(t) {
    return t === t && !wo(t)
}
function oOe(t) {
    for (var e = ph(t), n = e.length; n--; ) {
        var r = e[n]
          , a = t[r];
        e[n] = [r, a, qee(a)]
    }
    return e
}
function Xee(t, e) {
    return function(n) {
        return n == null ? !1 : n[t] === e && (e !== void 0 || t in Object(n))
    }
}
function lOe(t) {
    var e = oOe(t);
    return e.length == 1 && e[0][2] ? Xee(e[0][0], e[0][1]) : function(n) {
        return n === t || iOe(n, t, e)
    }
}
function sOe(t, e, n) {
    var r = t == null ? void 0 : ow(t, e);
    return r === void 0 ? n : r
}
var uOe = 1
  , cOe = 2;
function fOe(t, e) {
    return b8(t) && qee(e) ? Xee(Sh(t), e) : function(n) {
        var r = sOe(n, t);
        return r === void 0 && r === e ? oee(n, t) : KC(e, r, uOe | cOe)
    }
}
function dOe(t) {
    return function(e) {
        return ow(e, t)
    }
}
function vOe(t) {
    return b8(t) ? gJ(Sh(t)) : dOe(t)
}
function R8(t) {
    return typeof t == "function" ? t : t == null ? w8 : typeof t == "object" ? zi(t) ? fOe(t[0], t[1]) : lOe(t) : vOe(t)
}
function hOe(t) {
    return function(e, n, r) {
        var a = Object(e);
        if (!xm(e)) {
            var i = R8(n);
            e = ph(e),
            n = function(l) {
                return i(a[l], l, a)
            }
        }
        var o = t(e, n, r);
        return o > -1 ? a[i ? e[o] : o] : void 0
    }
}
var pOe = Math.max;
function gOe(t, e, n) {
    var r = t == null ? 0 : t.length;
    if (!r)
        return -1;
    var a = n == null ? 0 : XD(n);
    return a < 0 && (a = pOe(r + a, 0)),
    QQ(t, R8(e), a)
}
var mOe = hOe(gOe);
const yOe = mOe;
var Zee = Symbol("formContextKey")
  , Qee = function(e) {
    It(Zee, e)
}
  , N8 = function() {
    return vt(Zee, {
        name: j(function() {}),
        labelAlign: j(function() {
            return "right"
        }),
        vertical: j(function() {
            return !1
        }),
        addField: function(n, r) {},
        removeField: function(n) {},
        model: j(function() {}),
        rules: j(function() {}),
        colon: j(function() {}),
        labelWrap: j(function() {}),
        labelCol: j(function() {}),
        requiredMark: j(function() {
            return !1
        }),
        validateTrigger: j(function() {}),
        onValidate: function() {},
        validateMessages: j(function() {
            return pw
        })
    })
}
  , Jee = Symbol("formItemPrefixContextKey")
  , bOe = function(e) {
    It(Jee, e)
}
  , xOe = function() {
    return vt(Jee, {
        prefixCls: j(function() {
            return ""
        })
    })
}
  , $8 = function(e, n) {
    var r, a, i, o, l = n.slots, s = n.emit, u = n.attrs, c = I(I({}, e), u), f = c.prefixCls, d = c.htmlFor, v = c.labelCol, h = c.labelAlign, p = c.colon, g = c.required, m = c.requiredMark, y = xl("Form"), b = De(y, 1), x = b[0], C = (r = e.label) !== null && r !== void 0 ? r : (a = l.label) === null || a === void 0 ? void 0 : a.call(l);
    if (!C)
        return null;
    var S = N8()
      , w = S.vertical
      , T = S.labelAlign
      , P = S.labelCol
      , M = S.labelWrap
      , A = S.colon
      , O = v || (P == null ? void 0 : P.value) || {}
      , k = h || (T == null ? void 0 : T.value)
      , D = "".concat(f, "-item-label")
      , E = he(D, k === "left" && "".concat(D, "-left"), O.class, z({}, "".concat(D, "-wrap"), !!M.value))
      , L = C
      , N = p === !0 || (A == null ? void 0 : A.value) !== !1 && p !== !1
      , R = N && !w.value;
    if (R && typeof C == "string" && C.trim() !== "" && (L = C.replace(/[:|：]\s*$/, "")),
    L = _(xt, null, [L, (i = l.tooltip) === null || i === void 0 ? void 0 : i.call(l, {
        class: "".concat(f, "-item-tooltip")
    })]),
    m === "optional" && !g) {
        var $, W;
        L = _(xt, null, [L, _("span", {
            class: "".concat(f, "-item-optional")
        }, [(($ = x.value) === null || $ === void 0 ? void 0 : $.optional) || ((W = yo.Form) === null || W === void 0 ? void 0 : W.optional)])])
    }
    var B = he((o = {},
    z(o, "".concat(f, "-item-required"), g),
    z(o, "".concat(f, "-item-required-mark-optional"), m === "optional"),
    z(o, "".concat(f, "-item-no-colon"), !N),
    o));
    return _(lw, I(I({}, O), {}, {
        class: E
    }), {
        default: function() {
            return [_("label", {
                for: d,
                class: B,
                title: typeof C == "string" ? C : "",
                onClick: function(V) {
                    return s("click", V)
                }
            }, [L])]
        }
    })
};
$8.displayName = "FormItemLabel";
$8.inheritAttrs = !1;
const SOe = $8
  , COe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ErrorList",
    props: ["errors", "help", "onDomErrorVisibleChange", "helpStatus", "warnings"],
    setup: function(e) {
        var n = je("", e)
          , r = n.prefixCls
          , a = xOe()
          , i = a.prefixCls
          , o = a.status
          , l = j(function() {
            return "".concat(i.value, "-item-explain")
        })
          , s = j(function() {
            return !!(e.errors && e.errors.length)
        })
          , u = Q(o.value);
        return Te([s, o], function() {
            s.value && (u.value = o.value)
        }),
        function() {
            var c, f, d = wm("".concat(r.value, "-show-help-item")), v = RO("".concat(r.value, "-show-help-item"), d);
            return v.class = l.value,
            (c = e.errors) !== null && c !== void 0 && c.length ? _(dO, I(I({}, v), {}, {
                tag: "div"
            }), {
                default: function() {
                    return [(f = e.errors) === null || f === void 0 ? void 0 : f.map(function(p, g) {
                        return _("div", {
                            key: g,
                            role: "alert",
                            class: u.value ? "".concat(l.value, "-").concat(u.value) : ""
                        }, [p])
                    })]
                }
            }) : null
        }
    }
});
var wOe = {
    success: mm,
    warning: gm,
    error: ms,
    validating: Co
}
  , _Oe = de({
    compatConfig: {
        MODE: 3
    },
    slots: ["help", "extra", "errors"],
    inheritAttrs: !1,
    props: ["prefixCls", "errors", "hasFeedback", "onDomErrorVisibleChange", "wrapperCol", "help", "extra", "status"],
    setup: function(e, n) {
        var r = n.slots
          , a = N8()
          , i = a.wrapperCol
          , o = I({}, a);
        return delete o.labelCol,
        delete o.wrapperCol,
        Qee(o),
        bOe({
            prefixCls: j(function() {
                return e.prefixCls
            }),
            status: j(function() {
                return e.status
            })
        }),
        function() {
            var l, s, u, c = e.prefixCls, f = e.wrapperCol, d = e.help, v = d === void 0 ? (l = r.help) === null || l === void 0 ? void 0 : l.call(r) : d, h = e.errors, p = h === void 0 ? (s = r.errors) === null || s === void 0 ? void 0 : s.call(r) : h, g = e.hasFeedback, m = e.status, y = e.extra, b = y === void 0 ? (u = r.extra) === null || u === void 0 ? void 0 : u.call(r) : y, x = "".concat(c, "-item"), C = f || (i == null ? void 0 : i.value) || {}, S = he("".concat(x, "-control"), C.class), w = m && wOe[m];
            return _(lw, I(I({}, C), {}, {
                class: S
            }), {
                default: function() {
                    var P;
                    return _(xt, null, [_("div", {
                        class: "".concat(x, "-control-input")
                    }, [_("div", {
                        class: "".concat(x, "-control-input-content")
                    }, [(P = r.default) === null || P === void 0 ? void 0 : P.call(r)]), g && w ? _("span", {
                        class: "".concat(x, "-children-icon")
                    }, [_(w, null, null)]) : null]), _(COe, {
                        errors: p,
                        help: v,
                        class: "".concat(x, "-explain-connected")
                    }, null), b ? _("div", {
                        class: "".concat(x, "-extra")
                    }, [b]) : null])
                }
            })
        }
    }
});
const TOe = _Oe;
function POe(t) {
    var e = Mt(t.value.slice())
      , n = null;
    return pt(function() {
        clearTimeout(n),
        n = setTimeout(function() {
            e.value = t.value
        }, t.value.length ? 0 : 10)
    }),
    e
}
Kn("success", "warning", "error", "validating", "");
function pT(t, e, n) {
    var r = t
      , a = e
      , i = 0;
    try {
        for (var o = a.length; i < o - 1 && !(!r && !n); ++i) {
            var l = a[i];
            if (l in r)
                r = r[l];
            else {
                if (n)
                    throw Error("please transfer a valid name path to form item!");
                break
            }
        }
        if (n && !r)
            throw Error("please transfer a valid name path to form item!")
    } catch (s) {}
    return {
        o: r,
        k: a[i],
        v: r ? r[a[i]] : void 0
    }
}
var MOe = function() {
    return {
        htmlFor: String,
        prefixCls: String,
        label: J.any,
        help: J.any,
        extra: J.any,
        labelCol: {
            type: Object
        },
        wrapperCol: {
            type: Object
        },
        hasFeedback: {
            type: Boolean,
            default: !1
        },
        colon: {
            type: Boolean,
            default: void 0
        },
        labelAlign: String,
        prop: {
            type: [String, Number, Array]
        },
        name: {
            type: [String, Number, Array]
        },
        rules: [Array, Object],
        autoLink: {
            type: Boolean,
            default: !0
        },
        required: {
            type: Boolean,
            default: void 0
        },
        validateFirst: {
            type: Boolean,
            default: void 0
        },
        validateStatus: J.oneOf(Kn("", "success", "warning", "error", "validating")),
        validateTrigger: {
            type: [String, Array]
        },
        messageVariables: {
            type: Object
        },
        hidden: Boolean,
        noStyle: Boolean
    }
}
  , AOe = 0
  , IOe = "form_item";
const ete = de({
    compatConfig: {
        MODE: 3
    },
    name: "AFormItem",
    inheritAttrs: !1,
    __ANT_NEW_FORM_ITEM: !0,
    props: MOe(),
    slots: ["help", "label", "extra"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.expose;
        e.prop;
        var o = "form-item-".concat(++AOe)
          , l = je("form", e)
          , s = l.prefixCls
          , u = N8()
          , c = j(function() {
            return e.name || e.prop
        })
          , f = Q([])
          , d = Q(!1)
          , v = Q()
          , h = j(function() {
            var $ = c.value;
            return rA($)
        })
          , p = j(function() {
            if (h.value.length) {
                var $ = u.name.value
                  , W = h.value.join("_");
                return $ ? "".concat($, "_").concat(W) : "".concat(IOe, "_").concat(W)
            } else
                return
        })
          , g = function() {
            var W = u.model.value;
            if (!(!W || !c.value))
                return pT(W, h.value, !0).v
        }
          , m = j(function() {
            return g()
        })
          , y = Q(xb(m.value))
          , b = j(function() {
            var $ = e.validateTrigger !== void 0 ? e.validateTrigger : u.validateTrigger.value;
            return $ = $ === void 0 ? "change" : $,
            gu($)
        })
          , x = j(function() {
            var $ = u.rules.value
              , W = e.rules
              , B = e.required !== void 0 ? {
                required: !!e.required,
                trigger: b.value
            } : []
              , G = pT($, h.value);
            $ = $ ? G.o[G.k] || G.v : [];
            var K = [].concat(W || $ || []);
            return yOe(K, function(V) {
                return V.required
            }) ? K : K.concat(B)
        })
          , C = j(function() {
            var $ = x.value
              , W = !1;
            return $ && $.length && $.every(function(B) {
                return B.required ? (W = !0,
                !1) : !0
            }),
            W || e.required
        })
          , S = Q();
        pt(function() {
            S.value = e.validateStatus
        });
        var w = j(function() {
            var $ = {};
            return typeof e.label == "string" ? $.label = e.label : e.name && ($.label = String(e.name)),
            e.messageVariables && ($ = I(I({}, $), e.messageVariables)),
            $
        })
          , T = function(W) {
            if (h.value.length !== 0) {
                var B = e.validateFirst
                  , G = B === void 0 ? !1 : B
                  , K = W || {}
                  , V = K.triggerName
                  , U = x.value;
                if (V && (U = U.filter(function(Y) {
                    var te = Y.trigger;
                    if (!te && !b.value.length)
                        return !0;
                    var ne = gu(te || b.value);
                    return ne.includes(V)
                })),
                !U.length)
                    return Promise.resolve();
                var X = Yee(h.value, m.value, U, I({
                    validateMessages: u.validateMessages.value
                }, W), G, w.value);
                return S.value = "validating",
                f.value = [],
                X.catch(function(Y) {
                    return Y
                }).then(function() {
                    var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
                    if (S.value === "validating") {
                        var te = Y.filter(function(ne) {
                            return ne && ne.errors.length
                        });
                        S.value = te.length ? "error" : "success",
                        f.value = te.map(function(ne) {
                            return ne.errors
                        }),
                        u.onValidate(c.value, !f.value.length, f.value.length ? _t(f.value[0]) : null)
                    }
                }),
                X
            }
        }
          , P = function() {
            T({
                triggerName: "blur"
            })
        }
          , M = function() {
            if (d.value) {
                d.value = !1;
                return
            }
            T({
                triggerName: "change"
            })
        }
          , A = function() {
            S.value = e.validateStatus,
            d.value = !1,
            f.value = []
        }
          , O = function() {
            S.value = e.validateStatus,
            d.value = !0,
            f.value = [];
            var W = u.model.value || {}
              , B = m.value
              , G = pT(W, h.value, !0);
            Array.isArray(B) ? G.o[G.k] = [].concat(y.value) : G.o[G.k] = y.value,
            yt(function() {
                d.value = !1
            })
        }
          , k = j(function() {
            return e.htmlFor === void 0 ? p.value : e.htmlFor
        })
          , D = function() {
            var W = k.value;
            if (!(!W || !v.value)) {
                var B = v.value.$el.querySelector('[id="'.concat(W, '"]'));
                B && B.focus && B.focus()
            }
        };
        i({
            onFieldBlur: P,
            onFieldChange: M,
            clearValidate: A,
            resetField: O
        }),
        p_e({
            id: p,
            onFieldBlur: function() {
                e.autoLink && P()
            },
            onFieldChange: function() {
                e.autoLink && M()
            },
            clearValidate: A
        }, j(function() {
            return !!(e.autoLink && u.model.value && c.value)
        }));
        var E = !1;
        Te(c, function($) {
            $ ? E || (E = !0,
            u.addField(o, {
                fieldValue: m,
                fieldId: p,
                fieldName: c,
                resetField: O,
                clearValidate: A,
                namePath: h,
                validateRules: T,
                rules: x
            })) : (E = !1,
            u.removeField(o))
        }, {
            immediate: !0
        }),
        Nt(function() {
            u.removeField(o)
        });
        var L = POe(f)
          , N = j(function() {
            return e.validateStatus !== void 0 ? e.validateStatus : L.value.length ? "error" : S.value
        })
          , R = j(function() {
            var $;
            return $ = {},
            z($, "".concat(s.value, "-item"), !0),
            z($, "".concat(s.value, "-item-has-feedback"), N.value && e.hasFeedback),
            z($, "".concat(s.value, "-item-has-success"), N.value === "success"),
            z($, "".concat(s.value, "-item-has-warning"), N.value === "warning"),
            z($, "".concat(s.value, "-item-has-error"), N.value === "error"),
            z($, "".concat(s.value, "-item-is-validating"), N.value === "validating"),
            z($, "".concat(s.value, "-item-hidden"), e.hidden),
            $
        });
        return function() {
            var $, W;
            if (e.noStyle)
                return ($ = r.default) === null || $ === void 0 ? void 0 : $.call(r);
            var B = (W = e.help) !== null && W !== void 0 ? W : r.help ? ar(r.help()) : null;
            return _(P8, I(I({}, a), {}, {
                class: [R.value, B != null || L.value.length ? "".concat(s.value, "-item-with-help") : "", a.class],
                key: "row"
            }), {
                default: function() {
                    var K, V, U, X;
                    return _(xt, null, [_(SOe, I(I({}, e), {}, {
                        htmlFor: k.value,
                        required: C.value,
                        requiredMark: u.requiredMark.value,
                        prefixCls: s.value,
                        onClick: D,
                        label: (K = e.label) !== null && K !== void 0 ? K : (V = r.label) === null || V === void 0 ? void 0 : V.call(r)
                    }), null), _(TOe, I(I({}, e), {}, {
                        errors: B != null ? gu(B) : L.value,
                        prefixCls: s.value,
                        status: N.value,
                        ref: v,
                        help: B,
                        extra: (U = e.extra) !== null && U !== void 0 ? U : (X = r.extra) === null || X === void 0 ? void 0 : X.call(r)
                    }), {
                        default: r.default
                    })])
                }
            })
        }
    }
});
function tte(t) {
    var e = !1
      , n = t.length
      , r = [];
    return t.length ? new Promise(function(a, i) {
        t.forEach(function(o, l) {
            o.catch(function(s) {
                return e = !0,
                s
            }).then(function(s) {
                n -= 1,
                r[l] = s,
                !(n > 0) && (e && i(r),
                a(r))
            })
        })
    }
    ) : Promise.resolve([])
}
function $9(t) {
    return typeof t == "object" && t != null && t.nodeType === 1
}
function F9(t, e) {
    return (!e || t !== "hidden") && t !== "visible" && t !== "clip"
}
function gT(t, e) {
    if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
        var n = getComputedStyle(t, null);
        return F9(n.overflowY, e) || F9(n.overflowX, e) || function(r) {
            var a = function(i) {
                if (!i.ownerDocument || !i.ownerDocument.defaultView)
                    return null;
                try {
                    return i.ownerDocument.defaultView.frameElement
                } catch (o) {
                    return null
                }
            }(r);
            return !!a && (a.clientHeight < r.scrollHeight || a.clientWidth < r.scrollWidth)
        }(t)
    }
    return !1
}
function Ky(t, e, n, r, a, i, o, l) {
    return i < t && o > e || i > t && o < e ? 0 : i <= t && l <= n || o >= e && l >= n ? i - t - r : o > e && l < n || i < t && l > n ? o - e + a : 0
}
var B9 = function(t, e) {
    var n = window
      , r = e.scrollMode
      , a = e.block
      , i = e.inline
      , o = e.boundary
      , l = e.skipOverflowHiddenElements
      , s = typeof o == "function" ? o : function(H) {
        return H !== o
    }
    ;
    if (!$9(t))
        throw new TypeError("Invalid target");
    for (var u, c, f = document.scrollingElement || document.documentElement, d = [], v = t; $9(v) && s(v); ) {
        if ((v = (c = (u = v).parentElement) == null ? u.getRootNode().host || null : c) === f) {
            d.push(v);
            break
        }
        v != null && v === document.body && gT(v) && !gT(document.documentElement) || v != null && gT(v, l) && d.push(v)
    }
    for (var h = n.visualViewport ? n.visualViewport.width : innerWidth, p = n.visualViewport ? n.visualViewport.height : innerHeight, g = window.scrollX || pageXOffset, m = window.scrollY || pageYOffset, y = t.getBoundingClientRect(), b = y.height, x = y.width, C = y.top, S = y.right, w = y.bottom, T = y.left, P = a === "start" || a === "nearest" ? C : a === "end" ? w : C + b / 2, M = i === "center" ? T + x / 2 : i === "end" ? S : T, A = [], O = 0; O < d.length; O++) {
        var k = d[O]
          , D = k.getBoundingClientRect()
          , E = D.height
          , L = D.width
          , N = D.top
          , R = D.right
          , $ = D.bottom
          , W = D.left;
        if (r === "if-needed" && C >= 0 && T >= 0 && w <= p && S <= h && C >= N && w <= $ && T >= W && S <= R)
            return A;
        var B = getComputedStyle(k)
          , G = parseInt(B.borderLeftWidth, 10)
          , K = parseInt(B.borderTopWidth, 10)
          , V = parseInt(B.borderRightWidth, 10)
          , U = parseInt(B.borderBottomWidth, 10)
          , X = 0
          , Y = 0
          , te = "offsetWidth"in k ? k.offsetWidth - k.clientWidth - G - V : 0
          , ne = "offsetHeight"in k ? k.offsetHeight - k.clientHeight - K - U : 0
          , ie = "offsetWidth"in k ? k.offsetWidth === 0 ? 0 : L / k.offsetWidth : 0
          , ae = "offsetHeight"in k ? k.offsetHeight === 0 ? 0 : E / k.offsetHeight : 0;
        if (f === k)
            X = a === "start" ? P : a === "end" ? P - p : a === "nearest" ? Ky(m, m + p, p, K, U, m + P, m + P + b, b) : P - p / 2,
            Y = i === "start" ? M : i === "center" ? M - h / 2 : i === "end" ? M - h : Ky(g, g + h, h, G, V, g + M, g + M + x, x),
            X = Math.max(0, X + m),
            Y = Math.max(0, Y + g);
        else {
            X = a === "start" ? P - N - K : a === "end" ? P - $ + U + ne : a === "nearest" ? Ky(N, $, E, K, U + ne, P, P + b, b) : P - (N + E / 2) + ne / 2,
            Y = i === "start" ? M - W - G : i === "center" ? M - (W + L / 2) + te / 2 : i === "end" ? M - R + V + te : Ky(W, R, L, G, V + te, M, M + x, x);
            var q = k.scrollLeft
              , F = k.scrollTop;
            P += F - (X = Math.max(0, Math.min(F + X / ae, k.scrollHeight - E / ae + ne))),
            M += q - (Y = Math.max(0, Math.min(q + Y / ie, k.scrollWidth - L / ie + te)))
        }
        A.push({
            el: k,
            top: X,
            left: Y
        })
    }
    return A
};
function nte(t) {
    return t === Object(t) && Object.keys(t).length !== 0
}
function kOe(t, e) {
    e === void 0 && (e = "auto");
    var n = "scrollBehavior"in document.body.style;
    t.forEach(function(r) {
        var a = r.el
          , i = r.top
          , o = r.left;
        a.scroll && n ? a.scroll({
            top: i,
            left: o,
            behavior: e
        }) : (a.scrollTop = i,
        a.scrollLeft = o)
    })
}
function OOe(t) {
    return t === !1 ? {
        block: "end",
        inline: "nearest"
    } : nte(t) ? t : {
        block: "start",
        inline: "nearest"
    }
}
function DOe(t, e) {
    var n = t.isConnected || t.ownerDocument.documentElement.contains(t);
    if (nte(e) && typeof e.behavior == "function")
        return e.behavior(n ? B9(t, e) : []);
    if (!!n) {
        var r = OOe(e);
        return kOe(B9(t, r), r.behavior)
    }
}
var EOe = Math.min;
function LOe(t, e, n) {
    for (var r = n ? jD : HD, a = t[0].length, i = t.length, o = i, l = Array(i), s = 1 / 0, u = []; o--; ) {
        var c = t[o];
        o && e && (c = _m(c, bm(e))),
        s = EOe(c.length, s),
        l[o] = !n && (e || a >= 120 && c.length >= 120) ? new kf(o && c) : void 0
    }
    c = t[0];
    var f = -1
      , d = l[0];
    e: for (; ++f < a && u.length < s; ) {
        var v = c[f]
          , h = e ? e(v) : v;
        if (v = n || v !== 0 ? v : 0,
        !(d ? v0(d, h) : r(u, h, n))) {
            for (o = i; --o; ) {
                var p = l[o];
                if (!(p ? v0(p, h) : r(t[o], h, n)))
                    continue e
            }
            d && d.push(h),
            u.push(v)
        }
    }
    return u
}
function rte(t, e) {
    return see(lee(t, e, w8), t + "")
}
function sA(t) {
    return xo(t) && xm(t)
}
function ROe(t) {
    return sA(t) ? t : []
}
var NOe = rte(function(t) {
    var e = _m(t, ROe);
    return e.length && e[0] === t[0] ? LOe(e) : []
});
const $Oe = NOe;
function FOe(t) {
    var e = t == null ? 0 : t.length;
    return e ? t[e - 1] : void 0
}
function BOe(t, e) {
    return e.length < 2 ? t : ow(t, pJ(e, 0, -1))
}
function VOe(t, e) {
    return e = xh(e, t),
    t = BOe(t, e),
    t == null || delete t[Sh(FOe(e))]
}
function zOe(t) {
    return IO(t) ? void 0 : t
}
var HOe = 1
  , jOe = 2
  , WOe = 4
  , GOe = uee(function(t, e) {
    var n = {};
    if (t == null)
        return n;
    var r = !1;
    e = _m(e, function(i) {
        return i = xh(i, t),
        r || (r = i.length > 1),
        i
    }),
    Im(t, Vee(t), n),
    r && (n = Sg(n, HOe | jOe | WOe, zOe));
    for (var a = e.length; a--; )
        VOe(n, e[a]);
    return n
});
const KOe = GOe;
function V9(t) {
    var e = !1;
    return t && t.length && t.every(function(n) {
        return n.required ? (e = !0,
        !1) : !0
    }),
    e
}
function z9(t) {
    return t == null ? [] : Array.isArray(t) ? t : [t]
}
function mT(t, e, n) {
    var r = t;
    e = e.replace(/\[(\w+)\]/g, ".$1"),
    e = e.replace(/^\./, "");
    for (var a = e.split("."), i = 0, o = a.length; i < o - 1 && !(!r && !n); ++i) {
        var l = a[i];
        if (l in r)
            r = r[l];
        else {
            if (n)
                throw new Error("please transfer a valid name path to validate!");
            break
        }
    }
    return {
        o: r,
        k: a[i],
        v: r ? r[a[i]] : null,
        isValid: r && a[i]in r
    }
}
function UOe(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Q({})
      , n = arguments.length > 2 ? arguments[2] : void 0
      , r = xb(Pn(t))
      , a = en({})
      , i = Mt([])
      , o = function(x) {
        Wt(Pn(t), I(I({}, xb(r)), x)),
        yt(function() {
            Object.keys(a).forEach(function(C) {
                a[C] = {
                    autoLink: !1,
                    required: V9(Pn(e)[C])
                }
            })
        })
    }
      , l = function() {
        var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []
          , C = arguments.length > 1 ? arguments[1] : void 0;
        return C.length ? x.filter(function(S) {
            var w = z9(S.trigger || "change");
            return $Oe(w, C).length
        }) : x
    }
      , s = null
      , u = function(x) {
        for (var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = arguments.length > 2 ? arguments[2] : void 0, w = [], T = {}, P = function() {
            var E = x[M]
              , L = mT(Pn(t), E, S);
            if (!L.isValid)
                return "continue";
            T[E] = L.v;
            var N = l(Pn(e)[E], z9(C && C.trigger));
            N.length && w.push(c(E, L.v, N, C || {}).then(function() {
                return {
                    name: E,
                    errors: [],
                    warnings: []
                }
            }).catch(function(R) {
                var $ = []
                  , W = [];
                return R.forEach(function(B) {
                    var G = B.rule.warningOnly
                      , K = B.errors;
                    G ? W.push.apply(W, $e(K)) : $.push.apply($, $e(K))
                }),
                $.length ? Promise.reject({
                    name: E,
                    errors: $,
                    warnings: W
                }) : {
                    name: E,
                    errors: $,
                    warnings: W
                }
            }))
        }, M = 0; M < x.length; M++)
            var A = P();
        var O = tte(w);
        s = O;
        var k = O.then(function() {
            return s === O ? Promise.resolve(T) : Promise.reject([])
        }).catch(function(D) {
            var E = D.filter(function(L) {
                return L && L.errors.length
            });
            return Promise.reject({
                values: T,
                errorFields: E,
                outOfDate: s !== O
            })
        });
        return k.catch(function(D) {
            return D
        }),
        k
    }
      , c = function(x, C, S) {
        var w = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}
          , T = Yee([x], C, S, I({
            validateMessages: pw
        }, w), !!w.validateFirst);
        return a[x] ? (a[x].validateStatus = "validating",
        T.catch(function(P) {
            return P
        }).then(function() {
            var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
            if (a[x].validateStatus === "validating") {
                var M, A = P.filter(function(O) {
                    return O && O.errors.length
                });
                a[x].validateStatus = A.length ? "error" : "success",
                a[x].help = A.length ? A.map(function(O) {
                    return O.errors
                }) : null,
                n == null || (M = n.onValidate) === null || M === void 0 || M.call(n, x, !A.length, A.length ? _t(a[x].help[0]) : null)
            }
        }),
        T) : T.catch(function(P) {
            return P
        })
    }
      , f = function(x, C) {
        var S = []
          , w = !0;
        x ? Array.isArray(x) ? S = x : S = [x] : (w = !1,
        S = i.value);
        var T = u(S, C || {}, w);
        return T.catch(function(P) {
            return P
        }),
        T
    }
      , d = function(x) {
        var C = [];
        x ? Array.isArray(x) ? C = x : C = [x] : C = i.value,
        C.forEach(function(S) {
            a[S] && Wt(a[S], {
                validateStatus: "",
                help: null
            })
        })
    }
      , v = function(x) {
        for (var C = {
            autoLink: !1
        }, S = [], w = Array.isArray(x) ? x : [x], T = 0; T < w.length; T++) {
            var P = w[T];
            (P == null ? void 0 : P.validateStatus) === "error" && (C.validateStatus = "error",
            P.help && S.push(P.help)),
            C.required = C.required || (P == null ? void 0 : P.required)
        }
        return C.help = S,
        C
    }
      , h = r
      , p = !0
      , g = function(x) {
        var C = [];
        i.value.forEach(function(S) {
            var w = mT(x, S, !1)
              , T = mT(h, S, !1)
              , P = p && (n == null ? void 0 : n.immediate) && w.isValid;
            (P || !UC(w.v, T.v)) && C.push(S)
        }),
        f(C, {
            trigger: "change"
        }),
        p = !1,
        h = xb(_t(x))
    }
      , m = n == null ? void 0 : n.debounce
      , y = !0;
    return Te(e, function() {
        i.value = e ? Object.keys(Pn(e)) : [],
        !y && n && n.validateOnRuleChange && f(),
        y = !1
    }, {
        deep: !0,
        immediate: !0
    }),
    Te(i, function() {
        var b = {};
        i.value.forEach(function(C) {
            b[C] = Wt({}, a[C], {
                autoLink: !1,
                required: V9(Pn(e)[C])
            }),
            delete a[C]
        });
        for (var x in a)
            Object.prototype.hasOwnProperty.call(a, x) && delete a[x];
        Wt(a, b)
    }, {
        immediate: !0
    }),
    Te(t, m && m.wait ? sw(g, m.wait, KOe(m, ["wait"])) : g, {
        immediate: n && !!n.immediate,
        deep: !0
    }),
    {
        modelRef: t,
        rulesRef: e,
        initialModel: r,
        validateInfos: a,
        resetFields: o,
        validate: f,
        validateField: c,
        mergeValidateInfo: v,
        clearValidate: d
    }
}
var YOe = function() {
    return {
        layout: J.oneOf(Kn("horizontal", "inline", "vertical")),
        labelCol: {
            type: Object
        },
        wrapperCol: {
            type: Object
        },
        colon: {
            type: Boolean,
            default: void 0
        },
        labelAlign: J.oneOf(Kn("left", "right")),
        labelWrap: {
            type: Boolean,
            default: void 0
        },
        prefixCls: String,
        requiredMark: {
            type: [String, Boolean],
            default: void 0
        },
        hideRequiredMark: {
            type: Boolean,
            default: void 0
        },
        model: J.object,
        rules: {
            type: Object
        },
        validateMessages: {
            type: Object,
            default: void 0
        },
        validateOnRuleChange: {
            type: Boolean,
            default: void 0
        },
        scrollToFirstError: {
            type: [Boolean, Object]
        },
        onSubmit: Function,
        name: String,
        validateTrigger: {
            type: [String, Array]
        },
        size: {
            type: String
        },
        onValuesChange: {
            type: Function
        },
        onFieldsChange: {
            type: Function
        },
        onFinish: {
            type: Function
        },
        onFinishFailed: {
            type: Function
        },
        onValidate: {
            type: Function
        }
    }
};
function qOe(t, e) {
    return UC(gu(t), gu(e))
}
var XOe = de({
    compatConfig: {
        MODE: 3
    },
    name: "AForm",
    inheritAttrs: !1,
    props: $t(YOe(), {
        layout: "horizontal",
        hideRequiredMark: !1,
        colon: !0
    }),
    Item: ete,
    useForm: UOe,
    setup: function(e, n) {
        var r = n.emit
          , a = n.slots
          , i = n.expose
          , o = n.attrs
          , l = RQ(e)
          , s = je("form", e)
          , u = s.prefixCls
          , c = s.direction
          , f = s.form
          , d = j(function() {
            return e.requiredMark === "" || e.requiredMark
        })
          , v = j(function() {
            var N;
            return d.value !== void 0 ? d.value : f && ((N = f.value) === null || N === void 0 ? void 0 : N.requiredMark) !== void 0 ? f.value.requiredMark : !e.hideRequiredMark
        })
          , h = j(function() {
            var N, R;
            return (N = e.colon) !== null && N !== void 0 ? N : (R = f.value) === null || R === void 0 ? void 0 : R.colon
        })
          , p = Ybe()
          , g = p.validateMessages
          , m = j(function() {
            return I(I(I({}, pw), g.value), e.validateMessages)
        })
          , y = j(function() {
            var N;
            return he(u.value, (N = {},
            z(N, "".concat(u.value, "-").concat(e.layout), !0),
            z(N, "".concat(u.value, "-hide-required-mark"), v.value === !1),
            z(N, "".concat(u.value, "-rtl"), c.value === "rtl"),
            z(N, "".concat(u.value, "-").concat(l.value), l.value),
            N))
        })
          , b = Q()
          , x = {}
          , C = function(R, $) {
            x[R] = $
        }
          , S = function(R) {
            delete x[R]
        }
          , w = function(R) {
            var $ = !!R
              , W = $ ? gu(R).map(rA) : [];
            return $ ? Object.values(x).filter(function(B) {
                return W.findIndex(function(G) {
                    return qOe(G, B.fieldName.value)
                }) > -1
            }) : Object.values(x)
        }
          , T = function(R) {
            if (!e.model) {
                ur(!1, "Form", "model is required for resetFields to work.");
                return
            }
            w(R).forEach(function($) {
                $.resetField()
            })
        }
          , P = function(R) {
            w(R).forEach(function($) {
                $.clearValidate()
            })
        }
          , M = function(R) {
            var $ = e.scrollToFirstError;
            if (r("finishFailed", R),
            $ && R.errorFields.length) {
                var W = {};
                We($) === "object" && (W = $),
                O(R.errorFields[0].name, W)
            }
        }
          , A = function() {
            return E.apply(void 0, arguments)
        }
          , O = function(R) {
            var $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
              , W = w(R ? [R] : void 0);
            if (W.length) {
                var B = W[0].fieldId.value
                  , G = B ? document.getElementById(B) : null;
                G && DOe(G, I({
                    scrollMode: "if-needed",
                    block: "nearest"
                }, $))
            }
        }
          , k = function() {
            var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
            if (R === !0) {
                var $ = [];
                return Object.values(x).forEach(function(W) {
                    var B = W.namePath;
                    $.push(B.value)
                }),
                N9(e.model, $)
            } else
                return N9(e.model, R)
        }
          , D = function(R, $) {
            if (ur(!(R instanceof Function), "Form", "validateFields/validateField/validate not support callback, please use promise instead"),
            !e.model)
                return ur(!1, "Form", "model is required for validateFields to work."),
                Promise.reject("Form `model` is required for validateFields to work.");
            var W = !!R
              , B = W ? gu(R).map(rA) : []
              , G = [];
            Object.values(x).forEach(function(U) {
                var X;
                if (W || B.push(U.namePath.value),
                !!((X = U.rules) !== null && X !== void 0 && X.value.length)) {
                    var Y = U.namePath.value;
                    if (!W || Xke(B, Y)) {
                        var te = U.validateRules(I({
                            validateMessages: m.value
                        }, $));
                        G.push(te.then(function() {
                            return {
                                name: Y,
                                errors: [],
                                warnings: []
                            }
                        }).catch(function(ne) {
                            var ie = []
                              , ae = [];
                            return ne.forEach(function(q) {
                                var F = q.rule.warningOnly
                                  , H = q.errors;
                                F ? ae.push.apply(ae, $e(H)) : ie.push.apply(ie, $e(H))
                            }),
                            ie.length ? Promise.reject({
                                name: Y,
                                errors: ie,
                                warnings: ae
                            }) : {
                                name: Y,
                                errors: ie,
                                warnings: ae
                            }
                        }))
                    }
                }
            });
            var K = tte(G);
            b.value = K;
            var V = K.then(function() {
                return b.value === K ? Promise.resolve(k(B)) : Promise.reject([])
            }).catch(function(U) {
                var X = U.filter(function(Y) {
                    return Y && Y.errors.length
                });
                return Promise.reject({
                    values: k(B),
                    errorFields: X,
                    outOfDate: b.value !== K
                })
            });
            return V.catch(function(U) {
                return U
            }),
            V
        }
          , E = function() {
            return D.apply(void 0, arguments)
        }
          , L = function(R) {
            if (R.preventDefault(),
            R.stopPropagation(),
            r("submit", R),
            e.model) {
                var $ = D();
                $.then(function(W) {
                    r("finish", W)
                }).catch(function(W) {
                    M(W)
                })
            }
        };
        return i({
            resetFields: T,
            clearValidate: P,
            validateFields: D,
            getFieldsValue: k,
            validate: A,
            scrollToField: O
        }),
        Qee({
            model: j(function() {
                return e.model
            }),
            name: j(function() {
                return e.name
            }),
            labelAlign: j(function() {
                return e.labelAlign
            }),
            labelCol: j(function() {
                return e.labelCol
            }),
            labelWrap: j(function() {
                return e.labelWrap
            }),
            wrapperCol: j(function() {
                return e.wrapperCol
            }),
            vertical: j(function() {
                return e.layout === "vertical"
            }),
            colon: h,
            requiredMark: v,
            validateTrigger: j(function() {
                return e.validateTrigger
            }),
            rules: j(function() {
                return e.rules
            }),
            addField: C,
            removeField: S,
            onValidate: function(R, $, W) {
                r("validate", R, $, W)
            },
            validateMessages: m
        }),
        Te(function() {
            return e.rules
        }, function() {
            e.validateOnRuleChange && D()
        }),
        function() {
            var N;
            return _("form", I(I({}, o), {}, {
                onSubmit: L,
                class: [y.value, o.class]
            }), [(N = a.default) === null || N === void 0 ? void 0 : N.call(a)])
        }
    }
});
const Qs = XOe;
Qs.useInjectFormItemContext = br;
Qs.ItemRest = $x;
Qs.install = function(t) {
    return t.component(Qs.name, Qs),
    t.component(Qs.Item.name, Qs.Item),
    t.component($x.name, $x),
    t
}
;
var ZOe = ["notFoundContent", "expandIcon", "multiple", "bordered", "allowClear", "choiceTransitionName", "transitionName", "id"];
function QOe(t, e, n) {
    var r = t.toLowerCase().split(e).reduce(function(o, l, s) {
        return s === 0 ? [l] : [].concat($e(o), [e, l])
    }, [])
      , a = []
      , i = 0;
    return r.forEach(function(o, l) {
        var s = i + o.length
          , u = t.slice(i, s);
        i = s,
        l % 2 === 1 && (u = _("span", {
            class: "".concat(n, "-menu-item-keyword"),
            key: "seperator"
        }, [u])),
        a.push(u)
    }),
    a
}
var JOe = function(e) {
    var n = e.inputValue
      , r = e.path
      , a = e.prefixCls
      , i = e.fieldNames
      , o = []
      , l = n.toLowerCase();
    return r.forEach(function(s, u) {
        u !== 0 && o.push(" / ");
        var c = s[i.label]
          , f = We(c);
        (f === "string" || f === "number") && (c = QOe(String(c), l, a)),
        o.push(c)
    }),
    o
};
function eDe() {
    return I(I({}, Et($ee(), ["customSlots", "checkable", "options"])), {}, {
        multiple: {
            type: Boolean,
            default: void 0
        },
        size: String,
        bordered: {
            type: Boolean,
            default: void 0
        },
        placement: {
            type: String
        },
        suffixIcon: J.any,
        options: Array,
        "onUpdate:value": Function
    })
}
var tDe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ACascader",
    inheritAttrs: !1,
    props: $t(eDe(), {
        bordered: !0,
        choiceTransitionName: "",
        allowClear: !0
    }),
    setup: function(e, n) {
        var r = n.attrs
          , a = n.expose
          , i = n.slots
          , o = n.emit
          , l = br()
          , s = je("cascader", e)
          , u = s.prefixCls
          , c = s.rootPrefixCls
          , f = s.getPrefixCls
          , d = s.direction
          , v = s.getPopupContainer
          , h = s.renderEmpty
          , p = s.size
          , g = j(function() {
            return f("select", e.prefixCls)
        })
          , m = j(function() {
            return d.value === "rtl"
        })
          , y = j(function() {
            if (!e.showSearch)
                return e.showSearch;
            var P = {
                render: JOe
            };
            return We(e.showSearch) === "object" && (P = I(I({}, P), e.showSearch)),
            P
        })
          , b = j(function() {
            return he(e.dropdownClassName || e.popupClassName, "".concat(u.value, "-dropdown"), z({}, "".concat(u.value, "-dropdown-rtl"), m.value))
        })
          , x = Q();
        a({
            focus: function() {
                var M;
                (M = x.value) === null || M === void 0 || M.focus()
            },
            blur: function() {
                var M;
                (M = x.value) === null || M === void 0 || M.blur()
            }
        });
        var C = function() {
            for (var M = arguments.length, A = new Array(M), O = 0; O < M; O++)
                A[O] = arguments[O];
            o("update:value", A[0]),
            o.apply(void 0, ["change"].concat(A)),
            l.onFieldChange()
        }
          , S = function() {
            for (var M = arguments.length, A = new Array(M), O = 0; O < M; O++)
                A[O] = arguments[O];
            o.apply(void 0, ["blur"].concat(A)),
            l.onFieldBlur()
        }
          , w = j(function() {
            return e.showArrow !== void 0 ? e.showArrow : e.loading || !e.multiple
        })
          , T = j(function() {
            return e.placement !== void 0 ? e.placement : d.value === "rtl" ? "bottomRight" : "bottomLeft"
        });
        return function() {
            var P, M, A, O = e.notFoundContent, k = O === void 0 ? (P = i.notFoundContent) === null || P === void 0 ? void 0 : P.call(i) : O, D = e.expandIcon, E = D === void 0 ? (M = i.expandIcon) === null || M === void 0 ? void 0 : M.call(i) : D, L = e.multiple, N = e.bordered, R = e.allowClear, $ = e.choiceTransitionName, W = e.transitionName, B = e.id, G = B === void 0 ? l.id.value : B, K = tt(e, ZOe), V = k || h.value("Cascader"), U = E;
            E || (U = m.value ? _(Df, null, null) : _(ls, null, null));
            var X = _("span", {
                class: "".concat(g.value, "-menu-item-loading-icon")
            }, [_(Co, {
                spin: !0
            }, null)])
              , Y = ID(I(I({}, e), {}, {
                multiple: L,
                prefixCls: g.value,
                showArrow: w.value
            }), i)
              , te = Y.suffixIcon
              , ne = Y.removeIcon
              , ie = Y.clearIcon;
            return _(FAe, I(I(I({}, K), r), {}, {
                id: G,
                prefixCls: g.value,
                class: [u.value, (A = {},
                z(A, "".concat(g.value, "-lg"), p.value === "large"),
                z(A, "".concat(g.value, "-sm"), p.value === "small"),
                z(A, "".concat(g.value, "-rtl"), m.value),
                z(A, "".concat(g.value, "-borderless"), !N),
                A), r.class],
                direction: d.value,
                placement: T.value,
                notFoundContent: V,
                allowClear: R,
                showSearch: y.value,
                expandIcon: U,
                inputIcon: te,
                removeIcon: ne,
                clearIcon: ie,
                loadingIcon: X,
                checkable: !!L,
                dropdownClassName: b.value,
                dropdownPrefixCls: u.value,
                choiceTransitionName: So(c.value, "", $),
                transitionName: So(c.value, o1e(T.value), W),
                getPopupContainer: v.value,
                customSlots: I(I({}, i), {}, {
                    checkable: function() {
                        return _("span", {
                            class: "".concat(u.value, "-checkbox-inner")
                        }, null)
                    }
                }),
                tagRender: e.tagRender || i.tagRender,
                displayRender: e.displayRender || i.displayRender,
                maxTagPlaceholder: e.maxTagPlaceholder || i.maxTagPlaceholder,
                showArrow: e.showArrow,
                onChange: C,
                onBlur: S,
                ref: x
            }), i)
        }
    }
});
const nDe = Jn(tDe);
var rDe = function() {
    return {
        name: String,
        prefixCls: String,
        options: {
            type: Array,
            default: function() {
                return []
            }
        },
        disabled: Boolean,
        id: String
    }
}
  , aDe = function() {
    return I(I({}, rDe()), {}, {
        defaultValue: {
            type: Array
        },
        value: {
            type: Array
        },
        onChange: {
            type: Function
        },
        "onUpdate:value": {
            type: Function
        }
    })
}
  , iDe = function() {
    return {
        prefixCls: String,
        defaultChecked: {
            type: Boolean,
            default: void 0
        },
        checked: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        isGroup: {
            type: Boolean,
            default: void 0
        },
        value: J.any,
        name: String,
        id: String,
        indeterminate: {
            type: Boolean,
            default: void 0
        },
        type: {
            type: String,
            default: "checkbox"
        },
        autofocus: {
            type: Boolean,
            default: void 0
        },
        onChange: Function,
        "onUpdate:checked": Function,
        onClick: Function,
        skipGroup: {
            type: Boolean,
            default: !1
        }
    }
}
  , oDe = function() {
    return I(I({}, iDe()), {}, {
        indeterminate: {
            type: Boolean,
            default: !1
        }
    })
}
  , ate = Symbol("CheckboxGroupContext")
  , lDe = ["indeterminate", "skipGroup", "id"]
  , sDe = ["onMouseenter", "onMouseleave", "onInput", "class", "style"];
const Ri = de({
    compatConfig: {
        MODE: 3
    },
    name: "ACheckbox",
    inheritAttrs: !1,
    __ANT_CHECKBOX: !0,
    props: oDe(),
    setup: function(e, n) {
        var r = n.emit
          , a = n.attrs
          , i = n.slots
          , o = n.expose
          , l = br()
          , s = je("checkbox", e)
          , u = s.prefixCls
          , c = s.direction
          , f = vt(ate, void 0)
          , d = Symbol("checkboxUniId");
        pt(function() {
            !e.skipGroup && f && f.registerValue(d, e.value)
        }),
        Nt(function() {
            f && f.cancelValue(d)
        }),
        ct(function() {
            ur(e.checked !== void 0 || f || e.value === void 0, "Checkbox", "`value` is not validate prop, do you mean `checked`?")
        });
        var v = function(y) {
            var b = y.target.checked;
            r("update:checked", b),
            r("change", y)
        }
          , h = Q()
          , p = function() {
            var y;
            (y = h.value) === null || y === void 0 || y.focus()
        }
          , g = function() {
            var y;
            (y = h.value) === null || y === void 0 || y.blur()
        };
        return o({
            focus: p,
            blur: g
        }),
        function() {
            var m, y, b = bn((m = i.default) === null || m === void 0 ? void 0 : m.call(i)), x = e.indeterminate, C = e.skipGroup, S = e.id, w = S === void 0 ? l.id.value : S, T = tt(e, lDe), P = a.onMouseenter, M = a.onMouseleave;
            a.onInput;
            var A = a.class
              , O = a.style
              , k = tt(a, sDe)
              , D = I(I({}, T), {}, {
                id: w,
                prefixCls: u.value
            }, k);
            f && !C ? (D.onChange = function() {
                for (var N = arguments.length, R = new Array(N), $ = 0; $ < N; $++)
                    R[$] = arguments[$];
                r.apply(void 0, ["change"].concat(R)),
                f.toggleOption({
                    label: b,
                    value: e.value
                })
            }
            ,
            D.name = f.name.value,
            D.checked = f.mergedValue.value.indexOf(e.value) !== -1,
            D.disabled = e.disabled || f.disabled.value,
            D.indeterminate = x) : D.onChange = v;
            var E = he((y = {},
            z(y, "".concat(u.value, "-wrapper"), !0),
            z(y, "".concat(u.value, "-rtl"), c.value === "rtl"),
            z(y, "".concat(u.value, "-wrapper-checked"), D.checked),
            z(y, "".concat(u.value, "-wrapper-disabled"), D.disabled),
            y), A)
              , L = he(z({}, "".concat(u.value, "-indeterminate"), x));
            return _("label", {
                class: E,
                style: O,
                onMouseenter: P,
                onMouseleave: M
            }, [_(qJ, I(I({}, D), {}, {
                class: L,
                ref: h
            }), null), b.length ? _("span", null, [b]) : null])
        }
    }
})
  , tS = de({
    compatConfig: {
        MODE: 3
    },
    name: "ACheckboxGroup",
    props: aDe(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = n.expose
          , o = br()
          , l = je("checkbox", e)
          , s = l.prefixCls
          , u = l.direction
          , c = Q((e.value === void 0 ? e.defaultValue : e.value) || []);
        Te(function() {
            return e.value
        }, function() {
            c.value = e.value || []
        });
        var f = j(function() {
            return e.options.map(function(y) {
                return typeof y == "string" || typeof y == "number" ? {
                    label: y,
                    value: y
                } : y
            })
        })
          , d = Q(Symbol())
          , v = Q(new Map)
          , h = function(b) {
            v.value.delete(b),
            d.value = Symbol()
        }
          , p = function(b, x) {
            v.value.set(b, x),
            d.value = Symbol()
        }
          , g = Q(new Map);
        Te(d, function() {
            var y = new Map, b = lJ(v.value.values()), x;
            try {
                for (b.s(); !(x = b.n()).done; ) {
                    var C = x.value;
                    y.set(C, !0)
                }
            } catch (S) {
                b.e(S)
            } finally {
                b.f()
            }
            g.value = y
        });
        var m = function(b) {
            var x = c.value.indexOf(b.value)
              , C = $e(c.value);
            x === -1 ? C.push(b.value) : C.splice(x, 1),
            e.value === void 0 && (c.value = C);
            var S = C.filter(function(w) {
                return g.value.has(w)
            }).sort(function(w, T) {
                var P = f.value.findIndex(function(A) {
                    return A.value === w
                })
                  , M = f.value.findIndex(function(A) {
                    return A.value === T
                });
                return P - M
            });
            a("update:value", S),
            a("change", S),
            o.onFieldChange()
        };
        return It(ate, {
            cancelValue: h,
            registerValue: p,
            toggleOption: m,
            mergedValue: c,
            name: j(function() {
                return e.name
            }),
            disabled: j(function() {
                return e.disabled
            })
        }),
        i({
            mergedValue: c
        }),
        function() {
            var y, b = e.id, x = b === void 0 ? o.id.value : b, C = null, S = "".concat(s.value, "-group");
            return f.value && f.value.length > 0 && (C = f.value.map(function(w) {
                var T;
                return _(Ri, {
                    prefixCls: s.value,
                    key: w.value.toString(),
                    disabled: "disabled"in w ? w.disabled : e.disabled,
                    indeterminate: w.indeterminate,
                    value: w.value,
                    checked: c.value.indexOf(w.value) !== -1,
                    onChange: w.onChange,
                    class: "".concat(S, "-item")
                }, {
                    default: function() {
                        return [w.label === void 0 ? (T = r.label) === null || T === void 0 ? void 0 : T.call(r, w) : w.label]
                    }
                })
            })),
            _("div", {
                class: [S, z({}, "".concat(S, "-rtl"), u.value === "rtl")],
                id: x
            }, [C || ((y = r.default) === null || y === void 0 ? void 0 : y.call(r))])
        }
    }
});
Ri.Group = tS;
Ri.install = function(t) {
    return t.component(Ri.name, Ri),
    t.component(tS.name, tS),
    t
}
;
var uDe = function() {
    return {
        actions: Array,
        author: J.any,
        avatar: J.any,
        content: J.any,
        prefixCls: String,
        datetime: J.any
    }
}
  , cDe = de({
    compatConfig: {
        MODE: 3
    },
    name: "AComment",
    props: uDe(),
    slots: ["actions", "author", "avatar", "content", "datetime"],
    setup: function(e, n) {
        var r = n.slots
          , a = je("comment", e)
          , i = a.prefixCls
          , o = a.direction
          , l = function(c, f) {
            return _("div", {
                class: "".concat(c, "-nested")
            }, [f])
        }
          , s = function(c) {
            if (!c || !c.length)
                return null;
            var f = c.map(function(d, v) {
                return _("li", {
                    key: "action-".concat(v)
                }, [d])
            });
            return f
        };
        return function() {
            var u, c, f, d, v, h, p, g, m, y, b, x = i.value, C = (u = e.actions) !== null && u !== void 0 ? u : (c = r.actions) === null || c === void 0 ? void 0 : c.call(r), S = (f = e.author) !== null && f !== void 0 ? f : (d = r.author) === null || d === void 0 ? void 0 : d.call(r), w = (v = e.avatar) !== null && v !== void 0 ? v : (h = r.avatar) === null || h === void 0 ? void 0 : h.call(r), T = (p = e.content) !== null && p !== void 0 ? p : (g = r.content) === null || g === void 0 ? void 0 : g.call(r), P = (m = e.datetime) !== null && m !== void 0 ? m : (y = r.datetime) === null || y === void 0 ? void 0 : y.call(r), M = _("div", {
                class: "".concat(x, "-avatar")
            }, [typeof w == "string" ? _("img", {
                src: w,
                alt: "comment-avatar"
            }, null) : w]), A = C ? _("ul", {
                class: "".concat(x, "-actions")
            }, [s(Array.isArray(C) ? C : [C])]) : null, O = _("div", {
                class: "".concat(x, "-content-author")
            }, [S && _("span", {
                class: "".concat(x, "-content-author-name")
            }, [S]), P && _("span", {
                class: "".concat(x, "-content-author-time")
            }, [P])]), k = _("div", {
                class: "".concat(x, "-content")
            }, [O, _("div", {
                class: "".concat(x, "-content-detail")
            }, [T]), A]), D = _("div", {
                class: "".concat(x, "-inner")
            }, [M, k]), E = bn((b = r.default) === null || b === void 0 ? void 0 : b.call(r));
            return _("div", {
                class: [x, z({}, "".concat(x, "-rtl"), o.value === "rtl")]
            }, [D, E && E.length ? l(x, E) : null])
        }
    }
});
const fDe = Jn(cDe);
var dDe = function(e, n) {
    var r = n.attrs
      , a = n.slots;
    return _(Pr, I(I({
        size: "small",
        type: "primary"
    }, e), r), a)
};
const vDe = dDe;
var hDe = function() {
    return {
        prefixCls: String,
        checked: {
            type: Boolean,
            default: void 0
        },
        onChange: {
            type: Function
        },
        onClick: {
            type: Function
        },
        "onUpdate:checked": Function
    }
}
  , pDe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ACheckableTag",
    props: hDe(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = je("tag", e)
          , o = i.prefixCls
          , l = function(c) {
            var f = e.checked;
            a("update:checked", !f),
            a("change", !f),
            a("click", c)
        }
          , s = j(function() {
            var u;
            return he(o.value, (u = {},
            z(u, "".concat(o.value, "-checkable"), !0),
            z(u, "".concat(o.value, "-checkable-checked"), e.checked),
            u))
        });
        return function() {
            var u;
            return _("span", {
                class: s.value,
                onClick: l
            }, [(u = r.default) === null || u === void 0 ? void 0 : u.call(r)])
        }
    }
});
const nS = pDe;
var gDe = new RegExp("^(".concat(ED.join("|"), ")(-inverse)?$"))
  , mDe = new RegExp("^(".concat(F_e.join("|"), ")$"))
  , yDe = function() {
    return {
        prefixCls: String,
        color: {
            type: String
        },
        closable: {
            type: Boolean,
            default: !1
        },
        closeIcon: J.any,
        visible: {
            type: Boolean,
            default: void 0
        },
        onClose: {
            type: Function
        },
        "onUpdate:visible": Function,
        icon: J.any
    }
}
  , wg = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATag",
    props: yDe(),
    slots: ["closeIcon", "icon"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = n.attrs
          , o = je("tag", e)
          , l = o.prefixCls
          , s = o.direction
          , u = Q(!0);
        pt(function() {
            e.visible !== void 0 && (u.value = e.visible)
        });
        var c = function(h) {
            h.stopPropagation(),
            a("update:visible", !1),
            a("close", h),
            !h.defaultPrevented && e.visible === void 0 && (u.value = !1)
        }
          , f = j(function() {
            var v = e.color;
            return v ? gDe.test(v) || mDe.test(v) : !1
        })
          , d = j(function() {
            var v;
            return he(l.value, (v = {},
            z(v, "".concat(l.value, "-").concat(e.color), f.value),
            z(v, "".concat(l.value, "-has-color"), e.color && !f.value),
            z(v, "".concat(l.value, "-hidden"), !u.value),
            z(v, "".concat(l.value, "-rtl"), s.value === "rtl"),
            v))
        });
        return function() {
            var v, h, p, g = e.icon, m = g === void 0 ? (v = r.icon) === null || v === void 0 ? void 0 : v.call(r) : g, y = e.color, b = e.closeIcon, x = b === void 0 ? (h = r.closeIcon) === null || h === void 0 ? void 0 : h.call(r) : b, C = e.closable, S = C === void 0 ? !1 : C, w = function() {
                return S ? x ? _("span", {
                    class: "".concat(l.value, "-close-icon"),
                    onClick: c
                }, [x]) : _(Sl, {
                    class: "".concat(l.value, "-close-icon"),
                    onClick: c
                }, null) : null
            }, T = {
                backgroundColor: y && !f.value ? y : void 0
            }, P = m || null, M = (p = r.default) === null || p === void 0 ? void 0 : p.call(r), A = P ? _(xt, null, [P, _("span", null, [M])]) : M, O = "onClick"in i, k = _("span", {
                class: d.value,
                style: T
            }, [A, w()]);
            return O ? _(ND, null, {
                default: function() {
                    return [k]
                }
            }) : k
        }
    }
});
wg.CheckableTag = nS;
wg.install = function(t) {
    return t.component(wg.name, wg),
    t.component(nS.name, nS),
    t
}
;
const ite = wg;
function bDe(t, e) {
    var n = e.slots
      , r = e.attrs;
    return _(ite, I(I({
        color: "blue"
    }, t), r), n)
}
var xDe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"
            }
        }]
    },
    name: "calendar",
    theme: "outlined"
};
const SDe = xDe;
function H9(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            CDe(t, a, n[a])
        })
    }
    return t
}
function CDe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var F8 = function(e, n) {
    var r = H9({}, e, n.attrs);
    return _(lt, H9({}, r, {
        icon: SDe
    }), null)
};
F8.displayName = "CalendarOutlined";
F8.inheritAttrs = !1;
const ote = F8;
var wDe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
            }
        }, {
            tag: "path",
            attrs: {
                d: "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"
            }
        }]
    },
    name: "clock-circle",
    theme: "outlined"
};
const _De = wDe;
function j9(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            TDe(t, a, n[a])
        })
    }
    return t
}
function TDe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var B8 = function(e, n) {
    var r = j9({}, e, n.attrs);
    return _(lt, j9({}, r, {
        icon: _De
    }), null)
};
B8.displayName = "ClockCircleOutlined";
B8.inheritAttrs = !1;
const lte = B8;
function PDe(t, e, n) {
    return n !== void 0 ? n : t === "year" && e.lang.yearPlaceholder ? e.lang.yearPlaceholder : t === "quarter" && e.lang.quarterPlaceholder ? e.lang.quarterPlaceholder : t === "month" && e.lang.monthPlaceholder ? e.lang.monthPlaceholder : t === "week" && e.lang.weekPlaceholder ? e.lang.weekPlaceholder : t === "time" && e.timePickerLocale.placeholder ? e.timePickerLocale.placeholder : e.lang.placeholder
}
function MDe(t, e, n) {
    return n !== void 0 ? n : t === "year" && e.lang.yearPlaceholder ? e.lang.rangeYearPlaceholder : t === "month" && e.lang.monthPlaceholder ? e.lang.rangeMonthPlaceholder : t === "week" && e.lang.weekPlaceholder ? e.lang.rangeWeekPlaceholder : t === "time" && e.timePickerLocale.placeholder ? e.timePickerLocale.rangePlaceholder : e.lang.rangePlaceholder
}
function rS() {
    return {
        id: String,
        dropdownClassName: String,
        dropdownAlign: {
            type: Object
        },
        popupStyle: {
            type: Object
        },
        transitionName: String,
        placeholder: String,
        allowClear: {
            type: Boolean,
            default: void 0
        },
        autofocus: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        tabindex: Number,
        open: {
            type: Boolean,
            default: void 0
        },
        defaultOpen: {
            type: Boolean,
            default: void 0
        },
        inputReadOnly: {
            type: Boolean,
            default: void 0
        },
        format: {
            type: [String, Function, Array]
        },
        getPopupContainer: {
            type: Function
        },
        panelRender: {
            type: Function
        },
        onChange: {
            type: Function
        },
        "onUpdate:value": {
            type: Function
        },
        onOk: {
            type: Function
        },
        onOpenChange: {
            type: Function
        },
        "onUpdate:open": {
            type: Function
        },
        onFocus: {
            type: Function
        },
        onBlur: {
            type: Function
        },
        onMousedown: {
            type: Function
        },
        onMouseup: {
            type: Function
        },
        onMouseenter: {
            type: Function
        },
        onMouseleave: {
            type: Function
        },
        onClick: {
            type: Function
        },
        onContextmenu: {
            type: Function
        },
        onKeydown: {
            type: Function
        },
        role: String,
        name: String,
        autocomplete: String,
        direction: {
            type: String
        },
        showToday: {
            type: Boolean,
            default: void 0
        },
        showTime: {
            type: [Boolean, Object],
            default: void 0
        },
        locale: {
            type: Object
        },
        size: {
            type: String
        },
        bordered: {
            type: Boolean,
            default: void 0
        },
        dateRender: {
            type: Function
        },
        disabledDate: {
            type: Function
        },
        mode: {
            type: String
        },
        picker: {
            type: String
        },
        valueFormat: String,
        disabledHours: Function,
        disabledMinutes: Function,
        disabledSeconds: Function
    }
}
function ste() {
    return {
        defaultPickerValue: {
            type: [String, Object]
        },
        defaultValue: {
            type: [String, Object]
        },
        value: {
            type: [String, Object]
        },
        disabledTime: {
            type: Function
        },
        renderExtraFooter: {
            type: Function
        },
        showNow: {
            type: Boolean,
            default: void 0
        },
        monthCellRender: {
            type: Function
        },
        monthCellContentRender: {
            type: Function
        }
    }
}
function ute() {
    return {
        allowEmpty: {
            type: Array
        },
        dateRender: {
            type: Function
        },
        defaultPickerValue: {
            type: Array
        },
        defaultValue: {
            type: Array
        },
        value: {
            type: Array
        },
        disabledTime: {
            type: Function
        },
        disabled: {
            type: [Boolean, Array]
        },
        renderExtraFooter: {
            type: Function
        },
        separator: {
            type: String
        },
        ranges: {
            type: Object
        },
        placeholder: Array,
        mode: {
            type: Array
        },
        onChange: {
            type: Function
        },
        "onUpdate:value": {
            type: Function
        },
        onCalendarChange: {
            type: Function
        },
        onPanelChange: {
            type: Function
        },
        onOk: {
            type: Function
        }
    }
}
var ADe = ["bordered", "placeholder", "suffixIcon", "showToday", "transitionName", "allowClear", "dateRender", "renderExtraFooter", "monthCellRender", "clearIcon", "id"];
function IDe(t, e) {
    function n(u, c) {
        var f = I(I(I({}, rS()), ste()), e);
        return de({
            compatConfig: {
                MODE: 3
            },
            name: c,
            inheritAttrs: !1,
            props: f,
            slots: ["suffixIcon", "prevIcon", "nextIcon", "superPrevIcon", "superNextIcon", "dateRender", "renderExtraFooter", "monthCellRender"],
            setup: function(v, h) {
                var p = h.slots
                  , g = h.expose
                  , m = h.attrs
                  , y = h.emit
                  , b = v
                  , x = br();
                sn(!(b.monthCellContentRender || p.monthCellContentRender), "DatePicker", '`monthCellContentRender` is deprecated. Please use `monthCellRender"` instead.'),
                sn(!m.getCalendarContainer, "DatePicker", '`getCalendarContainer` is deprecated. Please use `getPopupContainer"` instead.');
                var C = je("picker", b)
                  , S = C.prefixCls
                  , w = C.direction
                  , T = C.getPopupContainer
                  , P = C.size
                  , M = C.rootPrefixCls
                  , A = Q();
                g({
                    focus: function() {
                        var X;
                        (X = A.value) === null || X === void 0 || X.focus()
                    },
                    blur: function() {
                        var X;
                        (X = A.value) === null || X === void 0 || X.blur()
                    }
                });
                var O = function(X) {
                    return b.valueFormat ? t.toString(X, b.valueFormat) : X
                }
                  , k = function(X, Y) {
                    var te = O(X);
                    y("update:value", te),
                    y("change", te, Y),
                    x.onFieldChange()
                }
                  , D = function(X) {
                    y("update:open", X),
                    y("openChange", X)
                }
                  , E = function(X) {
                    y("focus", X)
                }
                  , L = function(X) {
                    y("blur", X),
                    x.onFieldBlur()
                }
                  , N = function(X, Y) {
                    var te = O(X);
                    y("panelChange", te, Y)
                }
                  , R = function(X) {
                    var Y = O(X);
                    y("ok", Y)
                }
                  , $ = xl("DatePicker", a0)
                  , W = De($, 1)
                  , B = W[0]
                  , G = j(function() {
                    return b.value ? b.valueFormat ? t.toDate(b.value, b.valueFormat) : b.value : b.value === "" ? void 0 : b.value
                })
                  , K = j(function() {
                    return b.defaultValue ? b.valueFormat ? t.toDate(b.defaultValue, b.valueFormat) : b.defaultValue : b.defaultValue === "" ? void 0 : b.defaultValue
                })
                  , V = j(function() {
                    return b.defaultPickerValue ? b.valueFormat ? t.toDate(b.defaultPickerValue, b.valueFormat) : b.defaultPickerValue : b.defaultPickerValue === "" ? void 0 : b.defaultPickerValue
                });
                return function() {
                    var U, X, Y, te, ne, ie, ae, q = I(I({}, B.value), b.locale), F = I(I({}, b), m), H = F.bordered, ee = H === void 0 ? !0 : H, re = F.placeholder, ue = F.suffixIcon, ve = ue === void 0 ? (U = p.suffixIcon) === null || U === void 0 ? void 0 : U.call(p) : ue, fe = F.showToday, ce = fe === void 0 ? !0 : fe, le = F.transitionName, oe = F.allowClear, se = oe === void 0 ? !0 : oe, xe = F.dateRender, Pe = xe === void 0 ? p.dateRender : xe, Fe = F.renderExtraFooter, ze = Fe === void 0 ? p.renderExtraFooter : Fe, _e = F.monthCellRender, me = _e === void 0 ? p.monthCellRender || b.monthCellContentRender || p.monthCellContentRender : _e, Ie = F.clearIcon, Oe = Ie === void 0 ? (X = p.clearIcon) === null || X === void 0 ? void 0 : X.call(p) : Ie, Ce = F.id, pe = Ce === void 0 ? x.id.value : Ce, ye = tt(F, ADe), be = F.showTime === "" ? !0 : F.showTime, Ae = F.format, Re = {};
                    u && (Re.picker = u);
                    var Ne = u || F.picker || "date";
                    Re = I(I(I({}, Re), be ? aS(I({
                        format: Ae,
                        picker: Ne
                    }, We(be) === "object" ? be : {})) : {}), Ne === "time" ? aS(I(I({
                        format: Ae
                    }, ye), {}, {
                        picker: Ne
                    })) : {});
                    var Se = S.value;
                    return _(z4e, I(I(I({
                        monthCellRender: me,
                        dateRender: Pe,
                        renderExtraFooter: ze,
                        ref: A,
                        placeholder: PDe(Ne, q, re),
                        suffixIcon: ve || _(Ne === "time" ? lte : ote, null, null),
                        clearIcon: Oe || _(ms, null, null),
                        allowClear: se,
                        transitionName: le || "".concat(M.value, "-slide-up")
                    }, ye), Re), {}, {
                        id: pe,
                        picker: Ne,
                        value: G.value,
                        defaultValue: K.value,
                        defaultPickerValue: V.value,
                        showToday: ce,
                        locale: q.lang,
                        class: he((Y = {},
                        z(Y, "".concat(Se, "-").concat(P.value), P.value),
                        z(Y, "".concat(Se, "-borderless"), !ee),
                        Y), m.class),
                        prefixCls: Se,
                        getPopupContainer: m.getCalendarContainer || T.value,
                        generateConfig: t,
                        prevIcon: ((te = p.prevIcon) === null || te === void 0 ? void 0 : te.call(p)) || _("span", {
                            class: "".concat(Se, "-prev-icon")
                        }, null),
                        nextIcon: ((ne = p.nextIcon) === null || ne === void 0 ? void 0 : ne.call(p)) || _("span", {
                            class: "".concat(Se, "-next-icon")
                        }, null),
                        superPrevIcon: ((ie = p.superPrevIcon) === null || ie === void 0 ? void 0 : ie.call(p)) || _("span", {
                            class: "".concat(Se, "-super-prev-icon")
                        }, null),
                        superNextIcon: ((ae = p.superNextIcon) === null || ae === void 0 ? void 0 : ae.call(p)) || _("span", {
                            class: "".concat(Se, "-super-next-icon")
                        }, null),
                        components: cte,
                        direction: w.value,
                        onChange: k,
                        onOpenChange: D,
                        onFocus: E,
                        onBlur: L,
                        onPanelChange: N,
                        onOk: R
                    }), null)
                }
            }
        })
    }
    var r = n(void 0, "ADatePicker")
      , a = n("week", "AWeekPicker")
      , i = n("month", "AMonthPicker")
      , o = n("year", "AYearPicker")
      , l = n("time", "TimePicker")
      , s = n("quarter", "AQuarterPicker");
    return {
        DatePicker: r,
        WeekPicker: a,
        MonthPicker: i,
        YearPicker: o,
        TimePicker: l,
        QuarterPicker: s
    }
}
var kDe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "0 0 1024 1024",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"
            }
        }]
    },
    name: "swap-right",
    theme: "outlined"
};
const ODe = kDe;
function W9(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            DDe(t, a, n[a])
        })
    }
    return t
}
function DDe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var V8 = function(e, n) {
    var r = W9({}, e, n.attrs);
    return _(lt, W9({}, r, {
        icon: ODe
    }), null)
};
V8.displayName = "SwapRightOutlined";
V8.inheritAttrs = !1;
const EDe = V8;
var LDe = ["prefixCls", "bordered", "placeholder", "suffixIcon", "picker", "transitionName", "allowClear", "dateRender", "renderExtraFooter", "separator", "clearIcon", "id"];
function RDe(t, e) {
    var n = de({
        compatConfig: {
            MODE: 3
        },
        name: "ARangePicker",
        inheritAttrs: !1,
        props: I(I(I({}, rS()), ute()), e),
        slots: ["suffixIcon", "prevIcon", "nextIcon", "superPrevIcon", "superNextIcon", "dateRender", "renderExtraFooter"],
        setup: function(a, i) {
            var o = i.expose
              , l = i.slots
              , s = i.attrs
              , u = i.emit
              , c = a
              , f = br();
            sn(!s.getCalendarContainer, "DatePicker", '`getCalendarContainer` is deprecated. Please use `getPopupContainer"` instead.');
            var d = je("picker", c)
              , v = d.prefixCls
              , h = d.direction
              , p = d.getPopupContainer
              , g = d.size
              , m = d.rootPrefixCls
              , y = Q();
            o({
                focus: function() {
                    var R;
                    (R = y.value) === null || R === void 0 || R.focus()
                },
                blur: function() {
                    var R;
                    (R = y.value) === null || R === void 0 || R.blur()
                }
            });
            var b = function(R) {
                return c.valueFormat ? t.toString(R, c.valueFormat) : R
            }
              , x = function(R, $) {
                var W = b(R);
                u("update:value", W),
                u("change", W, $),
                f.onFieldChange()
            }
              , C = function(R) {
                u("update:open", R),
                u("openChange", R)
            }
              , S = function(R) {
                u("focus", R)
            }
              , w = function(R) {
                u("blur", R),
                f.onFieldBlur()
            }
              , T = function(R, $) {
                var W = b(R);
                u("panelChange", W, $)
            }
              , P = function(R) {
                var $ = b(R);
                u("ok", $)
            }
              , M = function(R, $, W) {
                var B = b(R);
                u("calendarChange", B, $, W)
            }
              , A = xl("DatePicker", a0)
              , O = De(A, 1)
              , k = O[0]
              , D = j(function() {
                return c.value && c.valueFormat ? t.toDate(c.value, c.valueFormat) : c.value
            })
              , E = j(function() {
                return c.defaultValue && c.valueFormat ? t.toDate(c.defaultValue, c.valueFormat) : c.defaultValue
            })
              , L = j(function() {
                return c.defaultPickerValue && c.valueFormat ? t.toDate(c.defaultPickerValue, c.valueFormat) : c.defaultPickerValue
            });
            return function() {
                var N, R, $, W, B, G, K, V, U = I(I({}, k.value), c.locale), X = I(I({}, c), s);
                X.prefixCls;
                var Y = X.bordered
                  , te = Y === void 0 ? !0 : Y
                  , ne = X.placeholder
                  , ie = X.suffixIcon
                  , ae = ie === void 0 ? (N = l.suffixIcon) === null || N === void 0 ? void 0 : N.call(l) : ie
                  , q = X.picker
                  , F = q === void 0 ? "date" : q
                  , H = X.transitionName
                  , ee = X.allowClear
                  , re = ee === void 0 ? !0 : ee
                  , ue = X.dateRender
                  , ve = ue === void 0 ? l.dateRender : ue
                  , fe = X.renderExtraFooter
                  , ce = fe === void 0 ? l.renderExtraFooter : fe
                  , le = X.separator
                  , oe = le === void 0 ? (R = l.separator) === null || R === void 0 ? void 0 : R.call(l) : le
                  , se = X.clearIcon
                  , xe = se === void 0 ? ($ = l.clearIcon) === null || $ === void 0 ? void 0 : $.call(l) : se
                  , Pe = X.id
                  , Fe = Pe === void 0 ? f.id.value : Pe
                  , ze = tt(X, LDe);
                delete ze["onUpdate:value"],
                delete ze["onUpdate:open"];
                var _e = X.format
                  , me = X.showTime
                  , Ie = {};
                Ie = I(I(I({}, Ie), me ? aS(I({
                    format: _e,
                    picker: F
                }, me)) : {}), F === "time" ? aS(I(I({
                    format: _e
                }, Et(ze, ["disabledTime"])), {}, {
                    picker: F
                })) : {});
                var Oe = v.value;
                return _(t3e, I(I(I({
                    dateRender: ve,
                    renderExtraFooter: ce,
                    separator: oe || _("span", {
                        "aria-label": "to",
                        class: "".concat(Oe, "-separator")
                    }, [_(EDe, null, null)]),
                    ref: y,
                    placeholder: MDe(F, U, ne),
                    suffixIcon: ae || _(F === "time" ? lte : ote, null, null),
                    clearIcon: xe || _(ms, null, null),
                    allowClear: re,
                    transitionName: H || "".concat(m.value, "-slide-up")
                }, ze), Ie), {}, {
                    id: Fe,
                    value: D.value,
                    defaultValue: E.value,
                    defaultPickerValue: L.value,
                    picker: F,
                    class: he((W = {},
                    z(W, "".concat(Oe, "-").concat(g.value), g.value),
                    z(W, "".concat(Oe, "-borderless"), !te),
                    W), s.class),
                    locale: U.lang,
                    prefixCls: Oe,
                    getPopupContainer: s.getCalendarContainer || p.value,
                    generateConfig: t,
                    prevIcon: ((B = l.prevIcon) === null || B === void 0 ? void 0 : B.call(l)) || _("span", {
                        class: "".concat(Oe, "-prev-icon")
                    }, null),
                    nextIcon: ((G = l.nextIcon) === null || G === void 0 ? void 0 : G.call(l)) || _("span", {
                        class: "".concat(Oe, "-next-icon")
                    }, null),
                    superPrevIcon: ((K = l.superPrevIcon) === null || K === void 0 ? void 0 : K.call(l)) || _("span", {
                        class: "".concat(Oe, "-super-prev-icon")
                    }, null),
                    superNextIcon: ((V = l.superNextIcon) === null || V === void 0 ? void 0 : V.call(l)) || _("span", {
                        class: "".concat(Oe, "-super-next-icon")
                    }, null),
                    components: cte,
                    direction: h.value,
                    onChange: x,
                    onOpenChange: C,
                    onFocus: S,
                    onBlur: w,
                    onPanelChange: T,
                    onOk: P,
                    onCalendarChange: M
                }), null)
            }
        }
    });
    return n
}
var cte = {
    button: vDe,
    rangeItem: bDe
};
function NDe(t) {
    return t ? Array.isArray(t) ? t : [t] : []
}
function aS(t) {
    var e = t.format
      , n = t.picker
      , r = t.showHour
      , a = t.showMinute
      , i = t.showSecond
      , o = t.use12Hours
      , l = NDe(e)[0]
      , s = I({}, t);
    return l && typeof l == "string" && (!l.includes("s") && i === void 0 && (s.showSecond = !1),
    !l.includes("m") && a === void 0 && (s.showMinute = !1),
    !l.includes("H") && !l.includes("h") && r === void 0 && (s.showHour = !1),
    (l.includes("a") || l.includes("A")) && o === void 0 && (s.use12Hours = !0)),
    n === "time" ? s : (typeof l == "function" && delete s.format,
    {
        showTime: s
    })
}
function fte(t, e) {
    var n = IDe(t, e)
      , r = n.DatePicker
      , a = n.WeekPicker
      , i = n.MonthPicker
      , o = n.YearPicker
      , l = n.TimePicker
      , s = n.QuarterPicker
      , u = RDe(t, e);
    return {
        DatePicker: r,
        WeekPicker: a,
        MonthPicker: i,
        YearPicker: o,
        TimePicker: l,
        QuarterPicker: s,
        RangePicker: u
    }
}
var Jf = fte(KD)
  , yT = Jf.DatePicker
  , Cb = Jf.WeekPicker
  , wb = Jf.MonthPicker
  , $De = Jf.YearPicker
  , FDe = Jf.TimePicker
  , _b = Jf.QuarterPicker
  , Tb = Jf.RangePicker;
const BDe = Wt(yT, {
    WeekPicker: Cb,
    MonthPicker: wb,
    YearPicker: $De,
    RangePicker: Tb,
    TimePicker: FDe,
    QuarterPicker: _b,
    install: function(e) {
        return e.component(yT.name, yT),
        e.component(Tb.name, Tb),
        e.component(wb.name, wb),
        e.component(Cb.name, Cb),
        e.component(_b.name, _b),
        e
    }
});
function Uy(t) {
    return t != null
}
var VDe = function(e) {
    var n = e.itemPrefixCls
      , r = e.component
      , a = e.span
      , i = e.labelStyle
      , o = e.contentStyle
      , l = e.bordered
      , s = e.label
      , u = e.content
      , c = e.colon
      , f = r;
    if (l) {
        var d;
        return _(f, {
            class: [(d = {},
            z(d, "".concat(n, "-item-label"), Uy(s)),
            z(d, "".concat(n, "-item-content"), Uy(u)),
            d)],
            colSpan: a
        }, {
            default: function() {
                return [Uy(s) && _("span", {
                    style: i
                }, [s]), Uy(u) && _("span", {
                    style: o
                }, [u])]
            }
        })
    }
    return _(f, {
        class: ["".concat(n, "-item")],
        colSpan: a
    }, {
        default: function() {
            return [_("div", {
                class: "".concat(n, "-item-container")
            }, [s && _("span", {
                class: ["".concat(n, "-item-label"), z({}, "".concat(n, "-item-no-colon"), !c)],
                style: i
            }, [s]), u && _("span", {
                class: "".concat(n, "-item-content"),
                style: o
            }, [u])])]
        }
    })
};
const bT = VDe;
var zDe = function(e) {
    var n = function(d, v, h) {
        var p = v.colon
          , g = v.prefixCls
          , m = v.bordered
          , y = h.component
          , b = h.type
          , x = h.showLabel
          , C = h.showContent
          , S = h.labelStyle
          , w = h.contentStyle;
        return d.map(function(T, P) {
            var M, A, O = T.props || {}, k = O.prefixCls, D = k === void 0 ? g : k, E = O.span, L = E === void 0 ? 1 : E, N = O.labelStyle, R = N === void 0 ? O["label-style"] : N, $ = O.contentStyle, W = $ === void 0 ? O["content-style"] : $, B = O.label, G = B === void 0 ? (M = T.children) === null || M === void 0 || (A = M.label) === null || A === void 0 ? void 0 : A.call(M) : B, K = hm(T), V = Iye(T), U = YX(T), X = T.key;
            return typeof y == "string" ? _(bT, {
                key: "".concat(b, "-").concat(String(X) || P),
                class: V,
                style: U,
                labelStyle: I(I({}, S), R),
                contentStyle: I(I({}, w), W),
                span: L,
                colon: p,
                component: y,
                itemPrefixCls: D,
                bordered: m,
                label: x ? G : null,
                content: C ? K : null
            }, null) : [_(bT, {
                key: "label-".concat(String(X) || P),
                class: V,
                style: I(I(I({}, S), U), R),
                span: 1,
                colon: p,
                component: y[0],
                itemPrefixCls: D,
                bordered: m,
                label: G
            }, null), _(bT, {
                key: "content-".concat(String(X) || P),
                class: V,
                style: I(I(I({}, w), U), W),
                span: L * 2 - 1,
                component: y[1],
                itemPrefixCls: D,
                bordered: m,
                content: K
            }, null)]
        })
    }
      , r = e.prefixCls
      , a = e.vertical
      , i = e.row
      , o = e.index
      , l = e.bordered
      , s = vt(hte, {
        labelStyle: Q({}),
        contentStyle: Q({})
    })
      , u = s.labelStyle
      , c = s.contentStyle;
    return a ? _(xt, null, [_("tr", {
        key: "label-".concat(o),
        class: "".concat(r, "-row")
    }, [n(i, e, {
        component: "th",
        type: "label",
        showLabel: !0,
        labelStyle: u.value,
        contentStyle: c.value
    })]), _("tr", {
        key: "content-".concat(o),
        class: "".concat(r, "-row")
    }, [n(i, e, {
        component: "td",
        type: "content",
        showContent: !0,
        labelStyle: u.value,
        contentStyle: c.value
    })])]) : _("tr", {
        key: o,
        class: "".concat(r, "-row")
    }, [n(i, e, {
        component: l ? ["th", "td"] : "td",
        type: "item",
        showLabel: !0,
        showContent: !0,
        labelStyle: u.value,
        contentStyle: c.value
    })])
};
const HDe = zDe;
J.any;
var jDe = function() {
    return {
        prefixCls: String,
        label: J.any,
        labelStyle: {
            type: Object,
            default: void 0
        },
        contentStyle: {
            type: Object,
            default: void 0
        },
        span: {
            type: Number,
            default: 1
        }
    }
}
  , dte = de({
    compatConfig: {
        MODE: 3
    },
    name: "ADescriptionsItem",
    props: jDe(),
    slots: ["label"],
    setup: function(e, n) {
        var r = n.slots;
        return function() {
            var a;
            return (a = r.default) === null || a === void 0 ? void 0 : a.call(r)
        }
    }
})
  , vte = {
    xxxl: 3,
    xxl: 3,
    xl: 3,
    lg: 3,
    md: 3,
    sm: 2,
    xs: 1
};
function WDe(t, e) {
    if (typeof t == "number")
        return t;
    if (We(t) === "object")
        for (var n = 0; n < Of.length; n++) {
            var r = Of[n];
            if (e[r] && t[r] !== void 0)
                return t[r] || vte[r]
        }
    return 3
}
function G9(t, e, n) {
    var r = t;
    return (e === void 0 || e > n) && (r = Qt(t, {
        span: n
    }),
    ur(e === void 0, "Descriptions", "Sum of column `span` in a line not match `column` of Descriptions.")),
    r
}
function GDe(t, e) {
    var n = bn(t)
      , r = []
      , a = []
      , i = e;
    return n.forEach(function(o, l) {
        var s, u = (s = o.props) === null || s === void 0 ? void 0 : s.span, c = u || 1;
        if (l === n.length - 1) {
            a.push(G9(o, u, i)),
            r.push(a);
            return
        }
        c < i ? (i -= c,
        a.push(o)) : (a.push(G9(o, c, i)),
        r.push(a),
        i = e,
        a = [])
    }),
    r
}
var KDe = function() {
    return {
        prefixCls: String,
        bordered: {
            type: Boolean,
            default: void 0
        },
        size: {
            type: String,
            default: "default"
        },
        title: J.any,
        extra: J.any,
        column: {
            type: [Number, Object],
            default: function() {
                return vte
            }
        },
        layout: String,
        colon: {
            type: Boolean,
            default: void 0
        },
        labelStyle: {
            type: Object,
            default: void 0
        },
        contentStyle: {
            type: Object,
            default: void 0
        }
    }
}
  , hte = Symbol("descriptionsContext")
  , Gd = de({
    compatConfig: {
        MODE: 3
    },
    name: "ADescriptions",
    props: KDe(),
    slots: ["title", "extra"],
    Item: dte,
    setup: function(e, n) {
        var r = n.slots, a = je("descriptions", e), i = a.prefixCls, o = a.direction, l, s = Q({});
        dm(function() {
            l = Fv.subscribe(function(c) {
                We(e.column) === "object" && (s.value = c)
            })
        }),
        Nt(function() {
            Fv.unsubscribe(l)
        }),
        It(hte, {
            labelStyle: at(e, "labelStyle"),
            contentStyle: at(e, "contentStyle")
        });
        var u = j(function() {
            return WDe(e.column, s.value)
        });
        return function() {
            var c, f, d, v, h = e.size, p = e.bordered, g = p === void 0 ? !1 : p, m = e.layout, y = m === void 0 ? "horizontal" : m, b = e.colon, x = b === void 0 ? !0 : b, C = e.title, S = C === void 0 ? (c = r.title) === null || c === void 0 ? void 0 : c.call(r) : C, w = e.extra, T = w === void 0 ? (f = r.extra) === null || f === void 0 ? void 0 : f.call(r) : w, P = (d = r.default) === null || d === void 0 ? void 0 : d.call(r), M = GDe(P, u.value);
            return _("div", {
                class: [i.value, (v = {},
                z(v, "".concat(i.value, "-").concat(h), h !== "default"),
                z(v, "".concat(i.value, "-bordered"), !!g),
                z(v, "".concat(i.value, "-rtl"), o.value === "rtl"),
                v)]
            }, [(S || T) && _("div", {
                class: "".concat(i.value, "-header")
            }, [S && _("div", {
                class: "".concat(i.value, "-title")
            }, [S]), T && _("div", {
                class: "".concat(i.value, "-extra")
            }, [T])]), _("div", {
                class: "".concat(i.value, "-view")
            }, [_("table", null, [_("tbody", null, [M.map(function(A, O) {
                return _(HDe, {
                    key: O,
                    index: O,
                    colon: x,
                    prefixCls: i.value,
                    vertical: y === "vertical",
                    bordered: g,
                    row: A
                }, null)
            })])])])])
        }
    }
});
Gd.install = function(t) {
    return t.component(Gd.name, Gd),
    t.component(Gd.Item.name, Gd.Item),
    t
}
;
const UDe = Gd;
var YDe = function() {
    return {
        prefixCls: String,
        type: {
            type: String,
            default: "horizontal"
        },
        dashed: {
            type: Boolean,
            default: !1
        },
        orientation: {
            type: String,
            default: "center"
        },
        plain: {
            type: Boolean,
            default: !1
        },
        orientationMargin: [String, Number]
    }
}
  , qDe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ADivider",
    props: YDe(),
    setup: function(e, n) {
        var r = n.slots
          , a = je("divider", e)
          , i = a.prefixCls
          , o = a.direction
          , l = j(function() {
            return e.orientation === "left" && e.orientationMargin != null
        })
          , s = j(function() {
            return e.orientation === "right" && e.orientationMargin != null
        })
          , u = j(function() {
            var d, v = e.type, h = e.dashed, p = e.plain, g = i.value;
            return d = {},
            z(d, g, !0),
            z(d, "".concat(g, "-").concat(v), !0),
            z(d, "".concat(g, "-dashed"), !!h),
            z(d, "".concat(g, "-plain"), !!p),
            z(d, "".concat(g, "-rtl"), o.value === "rtl"),
            z(d, "".concat(g, "-no-default-orientation-margin-left"), l.value),
            z(d, "".concat(g, "-no-default-orientation-margin-right"), s.value),
            d
        })
          , c = j(function() {
            var d = typeof e.orientationMargin == "number" ? "".concat(e.orientationMargin, "px") : e.orientationMargin;
            return I(I({}, l.value && {
                marginLeft: d
            }), s.value && {
                marginRight: d
            })
        })
          , f = j(function() {
            return e.orientation.length > 0 ? "-" + e.orientation : e.orientation
        });
        return function() {
            var d, v = bn((d = r.default) === null || d === void 0 ? void 0 : d.call(r));
            return _("div", {
                class: [u.value, v.length ? "".concat(i.value, "-with-text ").concat(i.value, "-with-text").concat(f.value) : ""],
                role: "separator"
            }, [v.length ? _("span", {
                class: "".concat(i.value, "-inner-text"),
                style: c.value
            }, [v]) : null])
        }
    }
});
const XDe = Jn(qDe);
sl.Button = g0;
sl.install = function(t) {
    return t.component(sl.name, sl),
    t.component(g0.name, g0),
    t
}
;
var xT;
function Vv(t) {
    if (typeof document == "undefined")
        return 0;
    if (t || xT === void 0) {
        var e = document.createElement("div");
        e.style.width = "100%",
        e.style.height = "200px";
        var n = document.createElement("div")
          , r = n.style;
        r.position = "absolute",
        r.top = "0",
        r.left = "0",
        r.pointerEvents = "none",
        r.visibility = "hidden",
        r.width = "200px",
        r.height = "150px",
        r.overflow = "hidden",
        n.appendChild(e),
        document.body.appendChild(n);
        var a = e.offsetWidth;
        n.style.overflow = "scroll";
        var i = e.offsetWidth;
        a === i && (i = n.clientWidth),
        document.body.removeChild(n),
        xT = a - i
    }
    return xT
}
function K9(t) {
    var e = t.match(/^(.*)px$/)
      , n = Number(e == null ? void 0 : e[1]);
    return Number.isNaN(n) ? Vv() : n
}
function ZDe(t) {
    if (typeof document == "undefined" || !t || !(t instanceof Element))
        return {
            width: 0,
            height: 0
        };
    var e = getComputedStyle(t, "::-webkit-scrollbar")
      , n = e.width
      , r = e.height;
    return {
        width: K9(n),
        height: K9(r)
    }
}
var pte = function() {
    return {
        prefixCls: String,
        width: J.oneOfType([J.string, J.number]),
        height: J.oneOfType([J.string, J.number]),
        style: {
            type: Object,
            default: void 0
        },
        class: String,
        placement: {
            type: String
        },
        wrapperClassName: String,
        level: {
            type: [String, Array]
        },
        levelMove: {
            type: [Number, Function, Array]
        },
        duration: String,
        ease: String,
        showMask: {
            type: Boolean,
            default: void 0
        },
        maskClosable: {
            type: Boolean,
            default: void 0
        },
        maskStyle: {
            type: Object,
            default: void 0
        },
        afterVisibleChange: Function,
        keyboard: {
            type: Boolean,
            default: void 0
        },
        contentWrapperStyle: {
            type: Object,
            default: void 0
        },
        autofocus: {
            type: Boolean,
            default: void 0
        },
        open: {
            type: Boolean,
            default: void 0
        }
    }
}
  , QDe = function() {
    return I(I({}, pte()), {}, {
        forceRender: {
            type: Boolean,
            default: void 0
        },
        getContainer: J.oneOfType([J.string, J.func, J.object, J.looseBool])
    })
}
  , JDe = function() {
    return I(I({}, pte()), {}, {
        getContainer: Function,
        getOpenCount: Function,
        scrollLocker: J.any,
        switchScrollingEffect: Function
    })
};
function e8e(t) {
    return Array.isArray(t) ? t : [t]
}
var gte = {
    transition: "transitionend",
    WebkitTransition: "webkitTransitionEnd",
    MozTransition: "transitionend",
    OTransition: "oTransitionEnd otransitionend"
}
  , t8e = Object.keys(gte).filter(function(t) {
    if (typeof document == "undefined")
        return !1;
    var e = document.getElementsByTagName("html")[0];
    return t in (e ? e.style : {})
})[0]
  , U9 = gte[t8e];
function Y9(t, e, n, r) {
    t.addEventListener ? t.addEventListener(e, n, r) : t.attachEvent && t.attachEvent("on".concat(e), n)
}
function q9(t, e, n, r) {
    t.removeEventListener ? t.removeEventListener(e, n, r) : t.attachEvent && t.detachEvent("on".concat(e), n)
}
function n8e(t, e) {
    var n = typeof t == "function" ? t(e) : t;
    return Array.isArray(n) ? n.length === 2 ? n : [n[0], n[1]] : [n]
}
var X9 = function(e) {
    return !isNaN(parseFloat(e)) && isFinite(e)
}
  , ST = !(typeof window != "undefined" && window.document && window.document.createElement)
  , r8e = function t(e, n, r, a) {
    if (!n || n === document || n instanceof Document)
        return !1;
    if (n === e.parentNode)
        return !0;
    var i = Math.max(Math.abs(r), Math.abs(a)) === Math.abs(a)
      , o = Math.max(Math.abs(r), Math.abs(a)) === Math.abs(r)
      , l = n.scrollHeight - n.clientHeight
      , s = n.scrollWidth - n.clientWidth
      , u = document.defaultView.getComputedStyle(n)
      , c = u.overflowY === "auto" || u.overflowY === "scroll"
      , f = u.overflowX === "auto" || u.overflowX === "scroll"
      , d = l && c
      , v = s && f;
    return i && (!d || d && (n.scrollTop >= l && a < 0 || n.scrollTop <= 0 && a > 0)) || o && (!v || v && (n.scrollLeft >= s && r < 0 || n.scrollLeft <= 0 && r > 0)) ? t(e, n.parentNode, r, a) : !1
}
  , a8e = ["width", "height", "open", "prefixCls", "placement", "level", "levelMove", "ease", "duration", "getContainer", "onChange", "afterVisibleChange", "showMask", "maskClosable", "maskStyle", "keyboard", "getOpenCount", "scrollLocker", "contentWrapperStyle", "style", "class"]
  , ap = {}
  , i8e = de({
    compatConfig: {
        MODE: 3
    },
    inheritAttrs: !1,
    props: JDe(),
    emits: ["close", "handleClick", "change"],
    setup: function(e, n) {
        var r = n.emit, a = n.slots, i = en({
            startPos: {
                x: null,
                y: null
            }
        }), o, l = Q(), s = Q(), u = Q(), c = Q(), f = Q(), d = [], v = "drawer_id_".concat(Number((Date.now() + Math.random()).toString().replace(".", Math.round(Math.random() * 9).toString())).toString(16)), h = !ST && gr ? {
            passive: !1
        } : !1;
        ct(function() {
            yt(function() {
                var N = e.open
                  , R = e.getContainer
                  , $ = e.showMask
                  , W = e.autofocus
                  , B = R == null ? void 0 : R();
                if (D(e),
                N && (B && B.parentNode === document.body && (ap[v] = N),
                w(),
                yt(function() {
                    W && p()
                }),
                $)) {
                    var G;
                    (G = e.scrollLocker) === null || G === void 0 || G.lock()
                }
            })
        }),
        Te(function() {
            return e.level
        }, function() {
            D(e)
        }, {
            flush: "post"
        }),
        Te(function() {
            return e.open
        }, function() {
            var N = e.open
              , R = e.getContainer
              , $ = e.scrollLocker
              , W = e.showMask
              , B = e.autofocus
              , G = R == null ? void 0 : R();
            G && G.parentNode === document.body && (ap[v] = !!N),
            w(),
            N ? (B && p(),
            W && ($ == null || $.lock())) : $ == null || $.unLock()
        }, {
            flush: "post"
        }),
        dr(function() {
            var N, R = e.open;
            delete ap[v],
            R && (T(!1),
            document.body.style.touchAction = ""),
            (N = e.scrollLocker) === null || N === void 0 || N.unLock()
        }),
        Te(function() {
            return e.placement
        }, function(N) {
            N && (f.value = null)
        });
        var p = function() {
            var R, $;
            (R = s.value) === null || R === void 0 || ($ = R.focus) === null || $ === void 0 || $.call(R)
        }
          , g = function(R) {
            R.touches.length > 1 || (i.startPos = {
                x: R.touches[0].clientX,
                y: R.touches[0].clientY
            })
        }
          , m = function(R) {
            if (!(R.changedTouches.length > 1)) {
                var $ = R.currentTarget
                  , W = R.changedTouches[0].clientX - i.startPos.x
                  , B = R.changedTouches[0].clientY - i.startPos.y;
                ($ === u.value || $ === c.value || $ === f.value && r8e($, R.target, W, B)) && R.cancelable && R.preventDefault()
            }
        }
          , y = function N(R) {
            var $ = R.target;
            q9($, U9, N),
            $.style.transition = ""
        }
          , b = function(R) {
            r("close", R)
        }
          , x = function(R) {
            R.keyCode === Ee.ESC && (R.stopPropagation(),
            b(R))
        }
          , C = function(R) {
            var $ = e.open
              , W = e.afterVisibleChange;
            R.target === l.value && R.propertyName.match(/transform$/) && (s.value.style.transition = "",
            !$ && k() && (document.body.style.overflowX = "",
            u.value && (u.value.style.left = "",
            u.value.style.width = "")),
            W && W(!!$))
        }
          , S = j(function() {
            var N = e.placement
              , R = N === "left" || N === "right"
              , $ = "translate".concat(R ? "X" : "Y");
            return {
                isHorizontal: R,
                placementName: $
            }
        })
          , w = function() {
            var R = e.open
              , $ = e.width
              , W = e.height
              , B = S.value
              , G = B.isHorizontal
              , K = B.placementName
              , V = f.value ? f.value.getBoundingClientRect()[G ? "width" : "height"] : 0
              , U = (G ? $ : W) || V;
            P(R, K, U)
        }
          , T = function(R, $, W, B) {
            var G = e.placement
              , K = e.levelMove
              , V = e.duration
              , U = e.ease
              , X = e.showMask;
            d.forEach(function(Y) {
                Y.style.transition = "transform ".concat(V, " ").concat(U),
                Y9(Y, U9, y);
                var te = R ? W : 0;
                if (K) {
                    var ne = n8e(K, {
                        target: Y,
                        open: R
                    });
                    te = R ? ne[0] : ne[1] || 0
                }
                var ie = typeof te == "number" ? "".concat(te, "px") : te
                  , ae = G === "left" || G === "top" ? ie : "-".concat(ie);
                ae = X && G === "right" && B ? "calc(".concat(ae, " + ").concat(B, "px)") : ae,
                Y.style.transform = te ? "".concat($, "(").concat(ae, ")") : ""
            })
        }
          , P = function(R, $, W) {
            if (!ST) {
                var B = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? Vv(!0) : 0;
                T(R, $, W, B),
                M(B)
            }
            r("change", R)
        }
          , M = function(R) {
            var $ = e.getContainer
              , W = e.showMask
              , B = e.open
              , G = $ == null ? void 0 : $();
            if (G && G.parentNode === document.body && W) {
                var K = ["touchstart"]
                  , V = [document.body, u.value, c.value, f.value];
                B && document.body.style.overflow !== "hidden" ? (R && A(R),
                document.body.style.touchAction = "none",
                V.forEach(function(U, X) {
                    !U || Y9(U, K[X] || "touchmove", X ? m : g, h)
                })) : k() && (document.body.style.touchAction = "",
                R && O(R),
                V.forEach(function(U, X) {
                    !U || q9(U, K[X] || "touchmove", X ? m : g, h)
                }))
            }
        }
          , A = function(R) {
            var $ = e.placement
              , W = e.duration
              , B = e.ease
              , G = "width ".concat(W, " ").concat(B)
              , K = "transform ".concat(W, " ").concat(B);
            switch (s.value.style.transition = "none",
            $) {
            case "right":
                s.value.style.transform = "translateX(-".concat(R, "px)");
                break;
            case "top":
            case "bottom":
                s.value.style.width = "calc(100% - ".concat(R, "px)"),
                s.value.style.transform = "translateZ(0)";
                break
            }
            clearTimeout(o),
            o = setTimeout(function() {
                s.value && (s.value.style.transition = "".concat(K, ",").concat(G),
                s.value.style.width = "",
                s.value.style.transform = "")
            })
        }
          , O = function(R) {
            var $ = e.placement
              , W = e.duration
              , B = e.ease;
            s.value.style.transition = "none";
            var G, K = "width ".concat(W, " ").concat(B), V = "transform ".concat(W, " ").concat(B);
            switch ($) {
            case "left":
                {
                    s.value.style.width = "100%",
                    K = "width 0s ".concat(B, " ").concat(W);
                    break
                }
            case "right":
                {
                    s.value.style.transform = "translateX(".concat(R, "px)"),
                    s.value.style.width = "100%",
                    K = "width 0s ".concat(B, " ").concat(W),
                    u.value && (u.value.style.left = "-".concat(R, "px"),
                    u.value.style.width = "calc(100% + ".concat(R, "px)"));
                    break
                }
            case "top":
            case "bottom":
                {
                    s.value.style.width = "calc(100% + ".concat(R, "px)"),
                    s.value.style.height = "100%",
                    s.value.style.transform = "translateZ(0)",
                    G = "height 0s ".concat(B, " ").concat(W);
                    break
                }
            }
            clearTimeout(o),
            o = setTimeout(function() {
                s.value && (s.value.style.transition = "".concat(V, ",").concat(G ? "".concat(G, ",") : "").concat(K),
                s.value.style.transform = "",
                s.value.style.width = "",
                s.value.style.height = "")
            })
        }
          , k = function() {
            return !Object.keys(ap).some(function(R) {
                return ap[R]
            })
        }
          , D = function(R) {
            var $ = R.level
              , W = R.getContainer;
            if (!ST) {
                var B = W == null ? void 0 : W()
                  , G = B ? B.parentNode : null;
                if (d = [],
                $ === "all") {
                    var K = G ? Array.prototype.slice.call(G.children) : [];
                    K.forEach(function(V) {
                        V.nodeName !== "SCRIPT" && V.nodeName !== "STYLE" && V.nodeName !== "LINK" && V !== B && d.push(V)
                    })
                } else
                    $ && e8e($).forEach(function(V) {
                        document.querySelectorAll(V).forEach(function(U) {
                            d.push(U)
                        })
                    })
            }
        }
          , E = function(R) {
            r("handleClick", R)
        }
          , L = Q(!1);
        return Te(s, function() {
            yt(function() {
                L.value = !0
            })
        }),
        function() {
            var N, R, $, W = e.width, B = e.height, G = e.open, K = e.prefixCls, V = e.placement;
            e.level,
            e.levelMove,
            e.ease,
            e.duration,
            e.getContainer,
            e.onChange,
            e.afterVisibleChange;
            var U = e.showMask
              , X = e.maskClosable
              , Y = e.maskStyle
              , te = e.keyboard;
            e.getOpenCount,
            e.scrollLocker;
            var ne = e.contentWrapperStyle
              , ie = e.style
              , ae = e.class
              , q = tt(e, a8e)
              , F = G && L.value
              , H = he(K, (N = {},
            z(N, "".concat(K, "-").concat(V), !0),
            z(N, "".concat(K, "-open"), F),
            z(N, ae, !!ae),
            z(N, "no-mask", !U),
            N))
              , ee = S.value.placementName
              , re = V === "left" || V === "top" ? "-100%" : "100%"
              , ue = F ? "" : "".concat(ee, "(").concat(re, ")");
            return _("div", I(I({}, Et(q, ["switchScrollingEffect", "autofocus"])), {}, {
                tabindex: -1,
                class: H,
                style: ie,
                ref: s,
                onKeydown: F && te ? x : void 0,
                onTransitionend: C
            }), [U && _("div", {
                class: "".concat(K, "-mask"),
                onClick: X ? b : void 0,
                style: Y,
                ref: u
            }, null), _("div", {
                class: "".concat(K, "-content-wrapper"),
                style: I({
                    transform: ue,
                    msTransform: ue,
                    width: X9(W) ? "".concat(W, "px") : W,
                    height: X9(B) ? "".concat(B, "px") : B
                }, ne),
                ref: l
            }, [_("div", {
                class: "".concat(K, "-content"),
                ref: f
            }, [(R = a.default) === null || R === void 0 ? void 0 : R.call(a)]), a.handler ? _("div", {
                onClick: E,
                ref: c
            }, [($ = a.handler) === null || $ === void 0 ? void 0 : $.call(a)]) : null])])
        }
    }
});
const Z9 = i8e;
function zv(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , n = e.element
      , r = n === void 0 ? document.body : n
      , a = {}
      , i = Object.keys(t);
    return i.forEach(function(o) {
        a[o] = r.style[o]
    }),
    i.forEach(function(o) {
        r.style[o] = t[o]
    }),
    a
}
function o8e() {
    return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth
}
var CT = {};
const Q9 = function(t) {
    if (!(!o8e() && !t)) {
        var e = "ant-scrolling-effect"
          , n = new RegExp("".concat(e),"g")
          , r = document.body.className;
        if (t) {
            if (!n.test(r))
                return;
            zv(CT),
            CT = {},
            document.body.className = r.replace(n, "").trim();
            return
        }
        var a = Vv();
        if (a && (CT = zv({
            position: "relative",
            width: "calc(100% - ".concat(a, "px)")
        }),
        !n.test(r))) {
            var i = "".concat(r, " ").concat(e);
            document.body.className = i.trim()
        }
    }
};
var mi = []
  , mte = "ant-scrolling-effect"
  , wT = new RegExp("".concat(mte),"g")
  , l8e = 0
  , _T = new Map
  , s8e = $D(function t(e) {
    var n = this;
    FD(this, t),
    z(this, "getContainer", function() {
        var r;
        return (r = n.options) === null || r === void 0 ? void 0 : r.container
    }),
    z(this, "reLock", function(r) {
        var a = mi.find(function(i) {
            var o = i.target;
            return o === n.lockTarget
        });
        a && n.unLock(),
        n.options = r,
        a && (a.options = r,
        n.lock())
    }),
    z(this, "lock", function() {
        var r;
        if (!mi.some(function(s) {
            var u = s.target;
            return u === n.lockTarget
        })) {
            if (mi.some(function(s) {
                var u, c = s.options;
                return (c == null ? void 0 : c.container) === ((u = n.options) === null || u === void 0 ? void 0 : u.container)
            })) {
                mi = [].concat($e(mi), [{
                    target: n.lockTarget,
                    options: n.options
                }]);
                return
            }
            var a = 0
              , i = ((r = n.options) === null || r === void 0 ? void 0 : r.container) || document.body;
            (i === document.body && window.innerWidth - document.documentElement.clientWidth > 0 || i.scrollHeight > i.clientHeight) && (a = Vv());
            var o = i.className;
            if (mi.filter(function(s) {
                var u, c = s.options;
                return (c == null ? void 0 : c.container) === ((u = n.options) === null || u === void 0 ? void 0 : u.container)
            }).length === 0 && _T.set(i, zv({
                width: a !== 0 ? "calc(100% - ".concat(a, "px)") : void 0,
                overflow: "hidden",
                overflowX: "hidden",
                overflowY: "hidden"
            }, {
                element: i
            })),
            !wT.test(o)) {
                var l = "".concat(o, " ").concat(mte);
                i.className = l.trim()
            }
            mi = [].concat($e(mi), [{
                target: n.lockTarget,
                options: n.options
            }])
        }
    }),
    z(this, "unLock", function() {
        var r, a = mi.find(function(l) {
            var s = l.target;
            return s === n.lockTarget
        });
        if (mi = mi.filter(function(l) {
            var s = l.target;
            return s !== n.lockTarget
        }),
        !(!a || mi.some(function(l) {
            var s, u = l.options;
            return (u == null ? void 0 : u.container) === ((s = a.options) === null || s === void 0 ? void 0 : s.container)
        }))) {
            var i = ((r = n.options) === null || r === void 0 ? void 0 : r.container) || document.body
              , o = i.className;
            !wT.test(o) || (zv(_T.get(i), {
                element: i
            }),
            _T.delete(i),
            i.className = i.className.replace(wT, "").trim())
        }
    }),
    this.lockTarget = l8e++,
    this.options = e
})
  , El = 0
  , Gp = Uf()
  , Yy = {}
  , gd = function(e) {
    if (!Gp)
        return null;
    if (e) {
        if (typeof e == "string")
            return document.querySelectorAll(e)[0];
        if (typeof e == "function")
            return e();
        if (We(e) === "object" && e instanceof window.HTMLElement)
            return e
    }
    return document.body
};
const yte = de({
    compatConfig: {
        MODE: 3
    },
    name: "PortalWrapper",
    inheritAttrs: !1,
    props: {
        wrapperClassName: String,
        forceRender: {
            type: Boolean,
            default: void 0
        },
        getContainer: J.any,
        visible: {
            type: Boolean,
            default: void 0
        }
    },
    setup: function(e, n) {
        var r = n.slots
          , a = Q()
          , i = Q()
          , o = Q()
          , l = new s8e({
            container: gd(e.getContainer)
        })
          , s = function() {
            var p, g;
            (p = a.value) === null || p === void 0 || (g = p.parentNode) === null || g === void 0 || g.removeChild(a.value)
        }
          , u = function() {
            var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
            if (p || a.value && !a.value.parentNode) {
                var g = gd(e.getContainer);
                return g ? (g.appendChild(a.value),
                !0) : !1
            }
            return !0
        }
          , c = function() {
            return Gp ? (a.value || (a.value = document.createElement("div"),
            u(!0)),
            f(),
            a.value) : null
        }
          , f = function() {
            var p = e.wrapperClassName;
            a.value && p && p !== a.value.className && (a.value.className = p)
        };
        ua(function() {
            f(),
            u()
        });
        var d = function() {
            El === 1 && !Object.keys(Yy).length ? (Q9(),
            Yy = zv({
                overflow: "hidden",
                overflowX: "hidden",
                overflowY: "hidden"
            })) : El || (zv(Yy),
            Yy = {},
            Q9(!0))
        }
          , v = qn();
        return ct(function() {
            var h = !1;
            Te([function() {
                return e.visible
            }
            , function() {
                return e.getContainer
            }
            ], function(p, g) {
                var m = De(p, 2)
                  , y = m[0]
                  , b = m[1]
                  , x = De(g, 2)
                  , C = x[0]
                  , S = x[1];
                if (Gp && gd(e.getContainer) === document.body && (y && !C ? El += 1 : h && (El -= 1)),
                h) {
                    var w = typeof b == "function" && typeof S == "function";
                    (w ? b.toString() !== S.toString() : b !== S) && s(),
                    y && y !== C && Gp && gd(b) !== l.getContainer() && l.reLock({
                        container: gd(b)
                    })
                }
                h = !0
            }, {
                immediate: !0,
                flush: "post"
            }),
            yt(function() {
                u() || (o.value = gt(function() {
                    v.update()
                }))
            })
        }),
        Nt(function() {
            var h = e.visible
              , p = e.getContainer;
            Gp && gd(p) === document.body && (El = h && El ? El - 1 : El),
            s(),
            gt.cancel(o.value)
        }),
        function() {
            var h = e.forceRender
              , p = e.visible
              , g = null
              , m = {
                getOpenCount: function() {
                    return El
                },
                getContainer: c,
                switchScrollingEffect: d,
                scrollLocker: l
            };
            return (h || p || i.value) && (g = _(AM, {
                getContainer: c,
                ref: i
            }, {
                default: function() {
                    var b;
                    return (b = r.default) === null || b === void 0 ? void 0 : b.call(r, m)
                }
            })),
            g
        }
    }
});
var u8e = ["afterVisibleChange", "getContainer", "wrapperClassName", "forceRender"]
  , c8e = ["visible", "afterClose"]
  , f8e = de({
    compatConfig: {
        MODE: 3
    },
    inheritAttrs: !1,
    props: $t(QDe(), {
        prefixCls: "drawer",
        placement: "left",
        getContainer: "body",
        level: "all",
        duration: ".3s",
        ease: "cubic-bezier(0.78, 0.14, 0.15, 0.86)",
        afterVisibleChange: function() {},
        showMask: !0,
        maskClosable: !0,
        maskStyle: {},
        wrapperClassName: "",
        keyboard: !0,
        forceRender: !1,
        autofocus: !0
    }),
    emits: ["handleClick", "close"],
    slots: ["handler"],
    setup: function(e, n) {
        var r = n.emit
          , a = n.slots
          , i = Q(null)
          , o = function(u) {
            r("handleClick", u)
        }
          , l = function(u) {
            r("close", u)
        };
        return function() {
            e.afterVisibleChange;
            var s = e.getContainer
              , u = e.wrapperClassName
              , c = e.forceRender
              , f = tt(e, u8e)
              , d = null;
            if (!s)
                return _("div", {
                    class: u,
                    ref: i
                }, [_(Z9, I(I({}, f), {}, {
                    open: e.open,
                    getContainer: function() {
                        return i.value
                    },
                    onClose: l,
                    onHandleClick: o
                }), a)]);
            var v = !!a.handler || c;
            return (v || e.open || i.value) && (d = _(yte, {
                visible: e.open,
                forceRender: v,
                getContainer: s,
                wrapperClassName: u
            }, {
                default: function(p) {
                    var g = p.visible
                      , m = p.afterClose
                      , y = tt(p, c8e);
                    return _(Z9, I(I(I({
                        ref: i
                    }, f), y), {}, {
                        open: g !== void 0 ? g : e.open,
                        afterVisibleChange: m !== void 0 ? m : e.afterVisibleChange,
                        onClose: l,
                        onHandleClick: o
                    }), a)
                }
            })),
            d
        }
    }
});
const d8e = f8e;
var v8e = ["width", "height", "visible", "placement", "mask", "wrapClassName", "class"]
  , h8e = Kn("top", "right", "bottom", "left");
Kn("default", "large");
var J9 = {
    distance: 180
}
  , p8e = function() {
    return {
        autofocus: {
            type: Boolean,
            default: void 0
        },
        closable: {
            type: Boolean,
            default: void 0
        },
        closeIcon: J.any,
        destroyOnClose: {
            type: Boolean,
            default: void 0
        },
        forceRender: {
            type: Boolean,
            default: void 0
        },
        getContainer: J.any,
        maskClosable: {
            type: Boolean,
            default: void 0
        },
        mask: {
            type: Boolean,
            default: void 0
        },
        maskStyle: {
            type: Object,
            default: void 0
        },
        wrapStyle: {
            type: Object,
            default: void 0
        },
        style: {
            type: Object,
            default: void 0
        },
        class: J.any,
        wrapClassName: String,
        size: {
            type: String
        },
        drawerStyle: {
            type: Object,
            default: void 0
        },
        headerStyle: {
            type: Object,
            default: void 0
        },
        bodyStyle: {
            type: Object,
            default: void 0
        },
        contentWrapperStyle: {
            type: Object,
            default: void 0
        },
        title: J.any,
        visible: {
            type: Boolean,
            default: void 0
        },
        width: J.oneOfType([J.string, J.number]),
        height: J.oneOfType([J.string, J.number]),
        zIndex: Number,
        prefixCls: String,
        push: J.oneOfType([J.looseBool, {
            type: Object
        }]),
        placement: J.oneOf(h8e),
        keyboard: {
            type: Boolean,
            default: void 0
        },
        extra: J.any,
        footer: J.any,
        footerStyle: {
            type: Object,
            default: void 0
        },
        level: J.any,
        levelMove: {
            type: [Number, Array, Function]
        },
        handle: J.any,
        afterVisibleChange: Function,
        onAfterVisibleChange: Function,
        "onUpdate:visible": Function,
        onClose: Function
    }
}
  , g8e = de({
    compatConfig: {
        MODE: 3
    },
    name: "ADrawer",
    inheritAttrs: !1,
    props: $t(p8e(), {
        closable: !0,
        placement: "right",
        maskClosable: !0,
        mask: !0,
        level: null,
        keyboard: !0,
        push: J9
    }),
    slots: ["closeIcon", "title", "extra", "footer", "handle"],
    setup: function(e, n) {
        var r = n.emit
          , a = n.slots
          , i = n.attrs
          , o = Q(!1)
          , l = Q(!1)
          , s = Q(null)
          , u = vt("parentDrawerOpts", null)
          , c = je("drawer", e)
          , f = c.prefixCls;
        sn(!e.afterVisibleChange, "Drawer", "`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),
        sn(e.wrapStyle === void 0, "Drawer", "`wrapStyle` prop is deprecated, please use `style` instead"),
        sn(e.wrapClassName === void 0, "Drawer", "`wrapClassName` prop is deprecated, please use `class` instead");
        var d = function() {
            o.value = !0
        }
          , v = function() {
            o.value = !1,
            yt(function() {
                h()
            })
        };
        It("parentDrawerOpts", {
            setPush: d,
            setPull: v
        }),
        ct(function() {
            var M = e.visible;
            M && u && u.setPush()
        }),
        dr(function() {
            u && u.setPull()
        }),
        Te(function() {
            return e.visible
        }, function(M) {
            u && (M ? u.setPush() : u.setPull())
        }, {
            flush: "post"
        });
        var h = function() {
            var A, O;
            (A = s.value) === null || A === void 0 || (O = A.domFocus) === null || O === void 0 || O.call(A)
        }
          , p = function(A) {
            r("update:visible", !1),
            r("close", A)
        }
          , g = function(A) {
            var O;
            (O = e.afterVisibleChange) === null || O === void 0 || O.call(e, A),
            r("afterVisibleChange", A)
        }
          , m = j(function() {
            return e.destroyOnClose && !e.visible
        })
          , y = function() {
            var A = m.value;
            !A || e.visible || (l.value = !0)
        }
          , b = j(function() {
            var M = e.push, A = e.placement, O;
            return typeof M == "boolean" ? O = M ? J9.distance : 0 : O = M.distance,
            O = parseFloat(String(O || 0)),
            A === "left" || A === "right" ? "translateX(".concat(A === "left" ? O : -O, "px)") : A === "top" || A === "bottom" ? "translateY(".concat(A === "top" ? O : -O, "px)") : null
        })
          , x = j(function() {
            var M = e.visible
              , A = e.mask
              , O = e.placement
              , k = e.size
              , D = k === void 0 ? "default" : k
              , E = e.width
              , L = e.height;
            if (!M && !A)
                return {};
            var N = {};
            if (O === "left" || O === "right") {
                var R = D === "large" ? 736 : 378;
                N.width = typeof E == "undefined" ? R : E,
                N.width = typeof N.width == "string" ? N.width : "".concat(N.width, "px")
            } else {
                var $ = D === "large" ? 736 : 378;
                N.height = typeof L == "undefined" ? $ : L,
                N.height = typeof N.height == "string" ? N.height : "".concat(N.height, "px")
            }
            return N
        })
          , C = j(function() {
            var M = e.zIndex
              , A = e.wrapStyle
              , O = e.mask
              , k = e.style
              , D = O ? {} : x.value;
            return I(I(I({
                zIndex: M,
                transform: o.value ? b.value : void 0
            }, D), A), k)
        })
          , S = function(A) {
            var O = e.closable
              , k = e.headerStyle
              , D = Dn(a, e, "extra")
              , E = Dn(a, e, "title");
            return !E && !O ? null : _("div", {
                class: he("".concat(A, "-header"), z({}, "".concat(A, "-header-close-only"), O && !E && !D)),
                style: k
            }, [_("div", {
                class: "".concat(A, "-header-title")
            }, [w(A), E && _("div", {
                class: "".concat(A, "-title")
            }, [E])]), D && _("div", {
                class: "".concat(A, "-extra")
            }, [D])])
        }
          , w = function(A) {
            var O, k = e.closable, D = a.closeIcon ? (O = a.closeIcon) === null || O === void 0 ? void 0 : O.call(a) : e.closeIcon;
            return k && _("button", {
                key: "closer",
                onClick: p,
                "aria-label": "Close",
                class: "".concat(A, "-close")
            }, [D === void 0 ? _(Sl, null, null) : D])
        }
          , T = function(A) {
            var O;
            if (l.value && !e.visible)
                return null;
            l.value = !1;
            var k = e.bodyStyle
              , D = e.drawerStyle
              , E = {}
              , L = m.value;
            return L && (E.opacity = 0,
            E.transition = "opacity .3s"),
            _("div", {
                class: "".concat(A, "-wrapper-body"),
                style: I(I({}, E), D),
                onTransitionend: y
            }, [S(A), _("div", {
                key: "body",
                class: "".concat(A, "-body"),
                style: k
            }, [(O = a.default) === null || O === void 0 ? void 0 : O.call(a)]), P(A)])
        }
          , P = function(A) {
            var O = Dn(a, e, "footer");
            if (!O)
                return null;
            var k = "".concat(A, "-footer");
            return _("div", {
                class: k,
                style: e.footerStyle
            }, [O])
        };
        return function() {
            var M;
            e.width,
            e.height;
            var A = e.visible
              , O = e.placement
              , k = e.mask
              , D = e.wrapClassName
              , E = e.class
              , L = tt(e, v8e)
              , N = k ? x.value : {}
              , R = k ? "" : "no-mask"
              , $ = I(I(I(I({}, i), Et(L, ["size", "closeIcon", "closable", "destroyOnClose", "drawerStyle", "headerStyle", "bodyStyle", "title", "push", "wrapStyle", "onAfterVisibleChange", "onClose", "onUpdate:visible"])), N), {}, {
                onClose: p,
                afterVisibleChange: g,
                handler: !1,
                prefixCls: f.value,
                open: A,
                showMask: k,
                placement: O,
                class: he((M = {},
                z(M, E, E),
                z(M, D, !!D),
                z(M, R, !!R),
                M)),
                style: C.value,
                ref: s
            });
            return _(d8e, $, {
                handler: e.handle ? function() {
                    return e.handle
                }
                : a.handle,
                default: function() {
                    return T(f.value)
                }
            })
        }
    }
});
const m8e = Jn(g8e);
var bte = function() {
    return {
        id: String,
        prefixCls: String,
        inputPrefixCls: String,
        defaultValue: J.oneOfType([J.string, J.number]),
        value: {
            type: [String, Number, Symbol],
            default: void 0
        },
        placeholder: {
            type: [String, Number]
        },
        autocomplete: String,
        type: {
            type: String,
            default: "text"
        },
        name: String,
        size: {
            type: String
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        readonly: {
            type: Boolean,
            default: void 0
        },
        addonBefore: J.any,
        addonAfter: J.any,
        prefix: J.any,
        suffix: J.any,
        autofocus: {
            type: Boolean,
            default: void 0
        },
        allowClear: {
            type: Boolean,
            default: void 0
        },
        lazy: {
            type: Boolean,
            default: !0
        },
        maxlength: Number,
        loading: {
            type: Boolean,
            default: void 0
        },
        bordered: {
            type: Boolean,
            default: void 0
        },
        showCount: {
            type: [Boolean, Object]
        },
        htmlSize: Number,
        onPressEnter: Function,
        onKeydown: Function,
        onKeyup: Function,
        onFocus: Function,
        onBlur: Function,
        onChange: Function,
        onInput: Function,
        "onUpdate:value": Function,
        valueModifiers: Object,
        hidden: Boolean
    }
};
const z8 = bte;
var xte = function() {
    return I(I({}, Et(bte(), ["prefix", "addonBefore", "addonAfter", "suffix"])), {}, {
        rows: Number,
        autosize: {
            type: [Boolean, Object],
            default: void 0
        },
        autoSize: {
            type: [Boolean, Object],
            default: void 0
        },
        onResize: {
            type: Function
        },
        onCompositionstart: Function,
        onCompositionend: Function,
        valueModifiers: Object
    })
};
function Ste(t, e, n, r, a) {
    var i;
    return he(t, (i = {},
    z(i, "".concat(t, "-sm"), n === "small"),
    z(i, "".concat(t, "-lg"), n === "large"),
    z(i, "".concat(t, "-disabled"), r),
    z(i, "".concat(t, "-rtl"), a === "rtl"),
    z(i, "".concat(t, "-borderless"), !e),
    i))
}
var _g = function(e) {
    return e != null && (Array.isArray(e) ? ar(e).length : !0)
};
function y8e(t) {
    return _g(t.prefix) || _g(t.suffix) || _g(t.allowClear)
}
function TT(t) {
    return _g(t.addonBefore) || _g(t.addonAfter)
}
var b8e = ["text", "input"];
const Cte = de({
    compatConfig: {
        MODE: 3
    },
    name: "ClearableLabeledInput",
    inheritAttrs: !1,
    props: {
        prefixCls: String,
        inputType: J.oneOf(Kn("text", "input")),
        value: J.any,
        defaultValue: J.any,
        allowClear: {
            type: Boolean,
            default: void 0
        },
        element: J.any,
        handleReset: Function,
        disabled: {
            type: Boolean,
            default: void 0
        },
        direction: {
            type: String
        },
        size: {
            type: String
        },
        suffix: J.any,
        prefix: J.any,
        addonBefore: J.any,
        addonAfter: J.any,
        readonly: {
            type: Boolean,
            default: void 0
        },
        focused: {
            type: Boolean,
            default: void 0
        },
        bordered: {
            type: Boolean,
            default: !0
        },
        triggerFocus: {
            type: Function
        },
        hidden: Boolean
    },
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = Q()
          , o = function(v) {
            var h;
            if ((h = i.value) !== null && h !== void 0 && h.contains(v.target)) {
                var p = e.triggerFocus;
                p == null || p()
            }
        }
          , l = function(v) {
            var h, p = e.allowClear, g = e.value, m = e.disabled, y = e.readonly, b = e.handleReset, x = e.suffix, C = x === void 0 ? r.suffix : x;
            if (!p)
                return null;
            var S = !m && !y && g
              , w = "".concat(v, "-clear-icon");
            return _(ms, {
                onClick: b,
                onMousedown: function(P) {
                    return P.preventDefault()
                },
                class: he((h = {},
                z(h, "".concat(w, "-hidden"), !S),
                z(h, "".concat(w, "-has-suffix"), !!C),
                h), w),
                role: "button"
            }, null)
        }
          , s = function(v) {
            var h, p = e.suffix, g = p === void 0 ? (h = r.suffix) === null || h === void 0 ? void 0 : h.call(r) : p, m = e.allowClear;
            return g || m ? _("span", {
                class: "".concat(v, "-suffix")
            }, [l(v), g]) : null
        }
          , u = function(v, h) {
            var p, g, m, y = e.focused, b = e.value, x = e.prefix, C = x === void 0 ? (p = r.prefix) === null || p === void 0 ? void 0 : p.call(r) : x, S = e.size, w = e.suffix, T = w === void 0 ? (g = r.suffix) === null || g === void 0 ? void 0 : g.call(r) : w, P = e.disabled, M = e.allowClear, A = e.direction, O = e.readonly, k = e.bordered, D = e.hidden, E = e.addonAfter, L = E === void 0 ? r.addonAfter : E, N = e.addonBefore, R = N === void 0 ? r.addonBefore : N, $ = s(v);
            if (!y8e({
                prefix: C,
                suffix: T,
                allowClear: M
            }))
                return Qt(h, {
                    value: b
                });
            var W = C ? _("span", {
                class: "".concat(v, "-prefix")
            }, [C]) : null
              , B = he("".concat(v, "-affix-wrapper"), (m = {},
            z(m, "".concat(v, "-affix-wrapper-focused"), y),
            z(m, "".concat(v, "-affix-wrapper-disabled"), P),
            z(m, "".concat(v, "-affix-wrapper-sm"), S === "small"),
            z(m, "".concat(v, "-affix-wrapper-lg"), S === "large"),
            z(m, "".concat(v, "-affix-wrapper-input-with-clear-btn"), T && M && b),
            z(m, "".concat(v, "-affix-wrapper-rtl"), A === "rtl"),
            z(m, "".concat(v, "-affix-wrapper-readonly"), O),
            z(m, "".concat(v, "-affix-wrapper-borderless"), !k),
            z(m, "".concat(a.class), !TT({
                addonAfter: L,
                addonBefore: R
            }) && a.class),
            m));
            return _("span", {
                ref: i,
                class: B,
                style: a.style,
                onMouseup: o,
                hidden: D
            }, [W, Qt(h, {
                style: null,
                value: b,
                class: Ste(v, k, S, P)
            }), $])
        }
          , c = function(v, h) {
            var p, g, m, y = e.addonBefore, b = y === void 0 ? (p = r.addonBefore) === null || p === void 0 ? void 0 : p.call(r) : y, x = e.addonAfter, C = x === void 0 ? (g = r.addonAfter) === null || g === void 0 ? void 0 : g.call(r) : x, S = e.size, w = e.direction, T = e.hidden, P = e.disabled;
            if (!TT({
                addonBefore: b,
                addonAfter: C
            }))
                return h;
            var M = "".concat(v, "-group")
              , A = "".concat(M, "-addon")
              , O = he(A, z({}, "".concat(A, "-disabled"), P))
              , k = b ? _("span", {
                class: O
            }, [b]) : null
              , D = C ? _("span", {
                class: O
            }, [C]) : null
              , E = he("".concat(v, "-wrapper"), M, z({}, "".concat(M, "-rtl"), w === "rtl"))
              , L = he("".concat(v, "-group-wrapper"), (m = {},
            z(m, "".concat(v, "-group-wrapper-sm"), S === "small"),
            z(m, "".concat(v, "-group-wrapper-lg"), S === "large"),
            z(m, "".concat(v, "-group-wrapper-rtl"), w === "rtl"),
            m), a.class);
            return _("span", {
                class: L,
                style: a.style,
                hidden: T
            }, [_("span", {
                class: E
            }, [k, Qt(h, {
                style: null
            }), D])])
        }
          , f = function(v, h) {
            var p, g = e.value, m = e.allowClear, y = e.direction, b = e.bordered, x = e.hidden, C = e.addonAfter, S = C === void 0 ? r.addonAfter : C, w = e.addonBefore, T = w === void 0 ? r.addonBefore : w;
            if (!m)
                return Qt(h, {
                    value: g
                });
            var P = he("".concat(v, "-affix-wrapper"), "".concat(v, "-affix-wrapper-textarea-with-clear-btn"), (p = {},
            z(p, "".concat(v, "-affix-wrapper-rtl"), y === "rtl"),
            z(p, "".concat(v, "-affix-wrapper-borderless"), !b),
            z(p, "".concat(a.class), !TT({
                addonAfter: S,
                addonBefore: T
            }) && a.class),
            p));
            return _("span", {
                class: P,
                style: a.style,
                hidden: x
            }, [Qt(h, {
                style: null,
                value: g
            }), l(v)])
        };
        return function() {
            var d, v = e.prefixCls, h = e.inputType, p = e.element, g = p === void 0 ? (d = r.element) === null || d === void 0 ? void 0 : d.call(r) : p;
            return h === b8e[0] ? f(v, g) : c(v, u(v, g))
        }
    }
});
function uA(t) {
    return typeof t == "undefined" || t === null ? "" : String(t)
}
function Tg(t, e, n, r) {
    if (!!n) {
        var a = e;
        if (e.type === "click") {
            Object.defineProperty(a, "target", {
                writable: !0
            }),
            Object.defineProperty(a, "currentTarget", {
                writable: !0
            });
            var i = t.cloneNode(!0);
            a.target = i,
            a.currentTarget = i,
            i.value = "",
            n(a);
            return
        }
        if (r !== void 0) {
            Object.defineProperty(a, "target", {
                writable: !0
            }),
            Object.defineProperty(a, "currentTarget", {
                writable: !0
            }),
            a.target = t,
            a.currentTarget = t,
            t.value = r,
            n(a);
            return
        }
        n(a)
    }
}
function wte(t, e) {
    if (!!t) {
        t.focus(e);
        var n = e || {}
          , r = n.cursor;
        if (r) {
            var a = t.value.length;
            switch (r) {
            case "start":
                t.setSelectionRange(0, 0);
                break;
            case "end":
                t.setSelectionRange(a, a);
                break;
            default:
                t.setSelectionRange(0, a)
            }
        }
    }
}
const Sr = de({
    compatConfig: {
        MODE: 3
    },
    name: "AInput",
    inheritAttrs: !1,
    props: z8(),
    setup: function(e, n) {
        var r = n.slots, a = n.attrs, i = n.expose, o = n.emit, l = Q(), s = Q(), u, c = br(), f = je("input", e), d = f.direction, v = f.prefixCls, h = f.size, p = f.autocomplete, g = Q(e.value === void 0 ? e.defaultValue : e.value), m = Q(!1);
        Te(function() {
            return e.value
        }, function() {
            g.value = e.value
        }),
        Te(function() {
            return e.disabled
        }, function() {
            e.value !== void 0 && (g.value = e.value),
            e.disabled && (m.value = !1)
        });
        var y = function() {
            u = setTimeout(function() {
                var R;
                ((R = l.value) === null || R === void 0 ? void 0 : R.getAttribute("type")) === "password" && l.value.hasAttribute("value") && l.value.removeAttribute("value")
            })
        }
          , b = function(R) {
            wte(l.value, R)
        }
          , x = function() {
            var R;
            (R = l.value) === null || R === void 0 || R.blur()
        }
          , C = function(R, $, W) {
            var B;
            (B = l.value) === null || B === void 0 || B.setSelectionRange(R, $, W)
        }
          , S = function() {
            var R;
            (R = l.value) === null || R === void 0 || R.select()
        };
        i({
            focus: b,
            blur: x,
            input: l,
            stateValue: g,
            setSelectionRange: C,
            select: S
        });
        var w = function(R) {
            var $ = e.onFocus;
            m.value = !0,
            $ == null || $(R),
            yt(function() {
                y()
            })
        }
          , T = function(R) {
            var $ = e.onBlur;
            m.value = !1,
            $ == null || $(R),
            c.onFieldBlur(),
            yt(function() {
                y()
            })
        }
          , P = function(R) {
            o("update:value", R.target.value),
            o("change", R),
            o("input", R),
            c.onFieldChange()
        }
          , M = qn()
          , A = function(R, $) {
            g.value !== R && (e.value === void 0 ? g.value = R : yt(function() {
                l.value.value !== g.value && M.update()
            }),
            yt(function() {
                $ && $()
            }))
        }
          , O = function(R) {
            Tg(l.value, R, P),
            A("", function() {
                b()
            })
        }
          , k = function(R) {
            var $ = R.target
              , W = $.value
              , B = $.composing;
            if (!((R.isComposing || B) && e.lazy || g.value === W)) {
                var G = R.target.value;
                Tg(l.value, R, P),
                A(G, function() {
                    y()
                })
            }
        }
          , D = function(R) {
            R.keyCode === 13 && o("pressEnter", R),
            o("keydown", R)
        };
        ct(function() {
            y()
        }),
        Nt(function() {
            clearTimeout(u)
        });
        var E = function() {
            var R, $ = e.addonBefore, W = $ === void 0 ? r.addonBefore : $, B = e.addonAfter, G = B === void 0 ? r.addonAfter : B, K = e.disabled, V = e.bordered, U = V === void 0 ? !0 : V, X = e.valueModifiers, Y = X === void 0 ? {} : X, te = e.htmlSize, ne = Et(e, ["prefixCls", "onPressEnter", "addonBefore", "addonAfter", "prefix", "suffix", "allowClear", "defaultValue", "size", "bordered", "htmlSize", "lazy", "showCount", "valueModifiers"]), ie = I(I(I({}, ne), a), {}, {
                autocomplete: p.value,
                onChange: k,
                onInput: k,
                onFocus: w,
                onBlur: T,
                onKeydown: D,
                class: he(Ste(v.value, U, h.value, K, d.value), z({}, a.class, a.class && !W && !G)),
                ref: l,
                key: "ant-input",
                size: te,
                id: (R = ne.id) !== null && R !== void 0 ? R : c.id.value
            });
            Y.lazy && delete ie.onInput,
            ie.autofocus || delete ie.autofocus;
            var ae = _("input", Et(ie, ["size"]), null);
            return Fr(ae, [[mh]])
        }
          , L = function() {
            var R, $ = g.value, W = e.maxlength, B = e.suffix, G = B === void 0 ? (R = r.suffix) === null || R === void 0 ? void 0 : R.call(r) : B, K = e.showCount, V = Number(W) > 0;
            if (G || K) {
                var U = $e(uA($)).length
                  , X = null;
                return We(K) === "object" ? X = K.formatter({
                    count: U,
                    maxlength: W
                }) : X = "".concat(U).concat(V ? " / ".concat(W) : ""),
                _(xt, null, [!!K && _("span", {
                    class: he("".concat(v.value, "-show-count-suffix"), z({}, "".concat(v.value, "-show-count-has-suffix"), !!G))
                }, [X]), G])
            }
            return null
        };
        return function() {
            var N = I(I(I({}, a), e), {}, {
                prefixCls: v.value,
                inputType: "input",
                value: uA(g.value),
                handleReset: O,
                focused: m.value && !e.disabled
            });
            return _(Cte, I(I({}, Et(N, ["element", "valueModifiers", "suffix", "showCount"])), {}, {
                ref: s
            }), I(I({}, r), {}, {
                element: E,
                suffix: L
            }))
        }
    }
})
  , _te = de({
    compatConfig: {
        MODE: 3
    },
    name: "AInputGroup",
    props: {
        prefixCls: String,
        size: {
            type: String
        },
        compact: {
            type: Boolean,
            default: void 0
        },
        onMouseenter: {
            type: Function
        },
        onMouseleave: {
            type: Function
        },
        onFocus: {
            type: Function
        },
        onBlur: {
            type: Function
        }
    },
    setup: function(e, n) {
        var r = n.slots
          , a = je("input-group", e)
          , i = a.prefixCls
          , o = a.direction
          , l = j(function() {
            var s, u = i.value;
            return s = {},
            z(s, "".concat(u), !0),
            z(s, "".concat(u, "-lg"), e.size === "large"),
            z(s, "".concat(u, "-sm"), e.size === "small"),
            z(s, "".concat(u, "-compact"), e.compact),
            z(s, "".concat(u, "-rtl"), o.value === "rtl"),
            s
        });
        return function() {
            var s;
            return _("span", {
                class: l.value,
                onMouseenter: e.onMouseenter,
                onMouseleave: e.onMouseleave,
                onFocus: e.onFocus,
                onBlur: e.onBlur
            }, [(s = r.default) === null || s === void 0 ? void 0 : s.call(r)])
        }
    }
});
var PT = /iPhone/i
  , eB = /iPod/i
  , tB = /iPad/i
  , MT = /\bAndroid(?:.+)Mobile\b/i
  , nB = /Android/i
  , md = /\bAndroid(?:.+)SD4930UR\b/i
  , qy = /\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i
  , Ll = /Windows Phone/i
  , rB = /\bWindows(?:.+)ARM\b/i
  , aB = /BlackBerry/i
  , iB = /BB10/i
  , oB = /Opera Mini/i
  , lB = /\b(CriOS|Chrome)(?:.+)Mobile/i
  , sB = /Mobile(?:.+)Firefox\b/i;
function Kt(t, e) {
    return t.test(e)
}
function uB(t) {
    var e = t || (typeof navigator != "undefined" ? navigator.userAgent : "")
      , n = e.split("[FBAN");
    if (typeof n[1] != "undefined") {
        var r = n
          , a = De(r, 1);
        e = a[0]
    }
    if (n = e.split("Twitter"),
    typeof n[1] != "undefined") {
        var i = n
          , o = De(i, 1);
        e = o[0]
    }
    var l = {
        apple: {
            phone: Kt(PT, e) && !Kt(Ll, e),
            ipod: Kt(eB, e),
            tablet: !Kt(PT, e) && Kt(tB, e) && !Kt(Ll, e),
            device: (Kt(PT, e) || Kt(eB, e) || Kt(tB, e)) && !Kt(Ll, e)
        },
        amazon: {
            phone: Kt(md, e),
            tablet: !Kt(md, e) && Kt(qy, e),
            device: Kt(md, e) || Kt(qy, e)
        },
        android: {
            phone: !Kt(Ll, e) && Kt(md, e) || !Kt(Ll, e) && Kt(MT, e),
            tablet: !Kt(Ll, e) && !Kt(md, e) && !Kt(MT, e) && (Kt(qy, e) || Kt(nB, e)),
            device: !Kt(Ll, e) && (Kt(md, e) || Kt(qy, e) || Kt(MT, e) || Kt(nB, e)) || Kt(/\bokhttp\b/i, e)
        },
        windows: {
            phone: Kt(Ll, e),
            tablet: Kt(rB, e),
            device: Kt(Ll, e) || Kt(rB, e)
        },
        other: {
            blackberry: Kt(aB, e),
            blackberry10: Kt(iB, e),
            opera: Kt(oB, e),
            firefox: Kt(sB, e),
            chrome: Kt(lB, e),
            device: Kt(aB, e) || Kt(iB, e) || Kt(oB, e) || Kt(sB, e) || Kt(lB, e)
        },
        any: null,
        phone: null,
        tablet: null
    };
    return l.any = l.apple.device || l.android.device || l.windows.device || l.other.device,
    l.phone = l.apple.phone || l.android.phone || l.windows.phone,
    l.tablet = l.apple.tablet || l.android.tablet || l.windows.tablet,
    l
}
var x8e = I(I({}, uB()), {}, {
    isMobile: uB
});
const S8e = x8e;
var C8e = ["disabled", "loading", "addonAfter", "suffix"];
const Tte = de({
    compatConfig: {
        MODE: 3
    },
    name: "AInputSearch",
    inheritAttrs: !1,
    props: I(I({}, z8()), {}, {
        inputPrefixCls: String,
        enterButton: J.any,
        onSearch: {
            type: Function
        }
    }),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.expose
          , o = n.emit
          , l = Q()
          , s = function() {
            var x;
            (x = l.value) === null || x === void 0 || x.focus()
        }
          , u = function() {
            var x;
            (x = l.value) === null || x === void 0 || x.blur()
        };
        i({
            focus: s,
            blur: u
        });
        var c = function(x) {
            o("update:value", x.target.value),
            x && x.target && x.type === "click" && o("search", x.target.value, x),
            o("change", x)
        }
          , f = function(x) {
            var C;
            document.activeElement === ((C = l.value) === null || C === void 0 ? void 0 : C.input) && x.preventDefault()
        }
          , d = function(x) {
            var C;
            o("search", (C = l.value) === null || C === void 0 ? void 0 : C.stateValue, x),
            S8e.tablet || l.value.focus()
        }
          , v = je("input-search", e)
          , h = v.prefixCls
          , p = v.getPrefixCls
          , g = v.direction
          , m = v.size
          , y = j(function() {
            return p("input", e.inputPrefixCls)
        });
        return function() {
            var b, x, C, S, w, T = e.disabled, P = e.loading, M = e.addonAfter, A = M === void 0 ? (b = r.addonAfter) === null || b === void 0 ? void 0 : b.call(r) : M, O = e.suffix, k = O === void 0 ? (x = r.suffix) === null || x === void 0 ? void 0 : x.call(r) : O, D = tt(e, C8e), E = e.enterButton, L = E === void 0 ? (C = (S = r.enterButton) === null || S === void 0 ? void 0 : S.call(r)) !== null && C !== void 0 ? C : !1 : E;
            L = L || L === "";
            var N = typeof L == "boolean" ? _(ew, null, null) : null, R = "".concat(h.value, "-button"), $ = Array.isArray(L) ? L[0] : L, W, B = $.type && IO($.type) && $.type.__ANT_BUTTON;
            if (B || $.tagName === "button")
                W = Qt($, I({
                    onMousedown: f,
                    onClick: d,
                    key: "enterButton"
                }, B ? {
                    class: R,
                    size: m.value
                } : {}), !1);
            else {
                var G = N && !L;
                W = _(Pr, {
                    class: R,
                    type: L ? "primary" : void 0,
                    size: m.value,
                    disabled: T,
                    key: "enterButton",
                    onMousedown: f,
                    onClick: d,
                    loading: P,
                    icon: G ? N : null
                }, {
                    default: function() {
                        return [G ? null : N || L]
                    }
                })
            }
            A && (W = [W, A]);
            var K = he(h.value, (w = {},
            z(w, "".concat(h.value, "-rtl"), g.value === "rtl"),
            z(w, "".concat(h.value, "-").concat(m.value), !!m.value),
            z(w, "".concat(h.value, "-with-button"), !!L),
            w), a.class);
            return _(Sr, I(I(I({
                ref: l
            }, Et(D, ["onUpdate:value", "onSearch", "enterButton"])), a), {}, {
                onPressEnter: d,
                size: m.value,
                prefixCls: y.value,
                addonAfter: W,
                suffix: k,
                onChange: c,
                class: K,
                disabled: T
            }), r)
        }
    }
});
var w8e = `
 min-height:0 !important;
 max-height:none !important;
 height:0 !important;
 visibility:hidden !important;
 overflow:hidden !important;
 position:absolute !important;
 z-index:-1000 !important;
 top:0 !important;
 right:0 !important
`, _8e = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "font-variant", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing", "word-break"], AT = {}, yi;
function T8e(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1
      , n = t.getAttribute("id") || t.getAttribute("data-reactid") || t.getAttribute("name");
    if (e && AT[n])
        return AT[n];
    var r = window.getComputedStyle(t)
      , a = r.getPropertyValue("box-sizing") || r.getPropertyValue("-moz-box-sizing") || r.getPropertyValue("-webkit-box-sizing")
      , i = parseFloat(r.getPropertyValue("padding-bottom")) + parseFloat(r.getPropertyValue("padding-top"))
      , o = parseFloat(r.getPropertyValue("border-bottom-width")) + parseFloat(r.getPropertyValue("border-top-width"))
      , l = _8e.map(function(u) {
        return "".concat(u, ":").concat(r.getPropertyValue(u))
    }).join(";")
      , s = {
        sizingStyle: l,
        paddingSize: i,
        borderSize: o,
        boxSizing: a
    };
    return e && n && (AT[n] = s),
    s
}
function P8e(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1
      , n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null
      , r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
    yi || (yi = document.createElement("textarea"),
    yi.setAttribute("tab-index", "-1"),
    yi.setAttribute("aria-hidden", "true"),
    document.body.appendChild(yi)),
    t.getAttribute("wrap") ? yi.setAttribute("wrap", t.getAttribute("wrap")) : yi.removeAttribute("wrap");
    var a = T8e(t, e)
      , i = a.paddingSize
      , o = a.borderSize
      , l = a.boxSizing
      , s = a.sizingStyle;
    yi.setAttribute("style", "".concat(s, ";").concat(w8e)),
    yi.value = t.value || t.placeholder || "";
    var u = Number.MIN_SAFE_INTEGER, c = Number.MAX_SAFE_INTEGER, f = yi.scrollHeight, d;
    if (l === "border-box" ? f += o : l === "content-box" && (f -= i),
    n !== null || r !== null) {
        yi.value = " ";
        var v = yi.scrollHeight - i;
        n !== null && (u = v * n,
        l === "border-box" && (u = u + i + o),
        f = Math.max(u, f)),
        r !== null && (c = v * r,
        l === "border-box" && (c = c + i + o),
        d = f > c ? "" : "hidden",
        f = Math.min(c, f))
    }
    return {
        height: "".concat(f, "px"),
        minHeight: "".concat(u, "px"),
        maxHeight: "".concat(c, "px"),
        overflowY: d,
        resize: "none"
    }
}
var IT = 0
  , cB = 1
  , M8e = 2
  , A8e = de({
    compatConfig: {
        MODE: 3
    },
    name: "ResizableTextArea",
    inheritAttrs: !1,
    props: xte(),
    setup: function(e, n) {
        var r = n.attrs, a = n.emit, i = n.expose, o, l, s = Q(), u = Q({}), c = Q(IT);
        Nt(function() {
            gt.cancel(o),
            gt.cancel(l)
        });
        var f = function() {
            try {
                if (document.activeElement === s.value) {
                    var y = s.value.selectionStart
                      , b = s.value.selectionEnd;
                    s.value.setSelectionRange(y, b)
                }
            } catch (x) {}
        }
          , d = function() {
            var y = e.autoSize || e.autosize;
            if (!(!y || !s.value)) {
                var b = y.minRows
                  , x = y.maxRows;
                u.value = P8e(s.value, !1, b, x),
                c.value = cB,
                gt.cancel(l),
                l = gt(function() {
                    c.value = M8e,
                    l = gt(function() {
                        c.value = IT,
                        f()
                    })
                })
            }
        }
          , v = function() {
            gt.cancel(o),
            o = gt(d)
        }
          , h = function(y) {
            if (c.value === IT) {
                a("resize", y);
                var b = e.autoSize || e.autosize;
                b && v()
            }
        };
        ur(e.autosize === void 0, "Input.TextArea", "autosize is deprecated, please use autoSize instead.");
        var p = function() {
            var y = e.prefixCls
              , b = e.autoSize
              , x = e.autosize
              , C = e.disabled
              , S = Et(e, ["prefixCls", "onPressEnter", "autoSize", "autosize", "defaultValue", "allowClear", "type", "lazy", "maxlength", "valueModifiers"])
              , w = he(y, r.class, z({}, "".concat(y, "-disabled"), C))
              , T = [r.style, u.value, c.value === cB ? {
                overflowX: "hidden",
                overflowY: "hidden"
            } : null]
              , P = I(I(I({}, S), r), {}, {
                style: T,
                class: w
            });
            return P.autofocus || delete P.autofocus,
            P.rows === 0 && delete P.rows,
            _(Vi, {
                onResize: h,
                disabled: !(b || x)
            }, {
                default: function() {
                    return [Fr(_("textarea", I(I({}, P), {}, {
                        ref: s
                    }), null), [[mh]])]
                }
            })
        };
        Te(function() {
            return e.value
        }, function() {
            yt(function() {
                d()
            })
        }),
        ct(function() {
            yt(function() {
                d()
            })
        });
        var g = qn();
        return i({
            resizeTextarea: d,
            textArea: s,
            instance: g
        }),
        function() {
            return p()
        }
    }
});
const I8e = A8e;
function Pte(t, e) {
    return $e(t || "").slice(0, e).join("")
}
function fB(t, e, n, r) {
    var a = n;
    return t ? a = Pte(n, r) : $e(e || "").length < n.length && $e(n || "").length > r && (a = e),
    a
}
const H8 = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATextarea",
    inheritAttrs: !1,
    props: xte(),
    setup: function(e, n) {
        var r = n.attrs
          , a = n.expose
          , i = n.emit
          , o = br()
          , l = Q(e.value === void 0 ? e.defaultValue : e.value)
          , s = Q()
          , u = Q("")
          , c = je("input", e)
          , f = c.prefixCls
          , d = c.size
          , v = c.direction
          , h = j(function() {
            return e.showCount === "" || e.showCount || !1
        })
          , p = j(function() {
            return Number(e.maxlength) > 0
        })
          , g = Q(!1)
          , m = Q()
          , y = Q(0)
          , b = function(L) {
            g.value = !0,
            m.value = u.value,
            y.value = L.currentTarget.selectionStart,
            i("compositionstart", L)
        }
          , x = function(L) {
            g.value = !1;
            var N = L.currentTarget.value;
            if (p.value) {
                var R, $ = y.value >= e.maxlength + 1 || y.value === ((R = m.value) === null || R === void 0 ? void 0 : R.length);
                N = fB($, m.value, N, e.maxlength)
            }
            N !== u.value && (T(N),
            Tg(L.currentTarget, L, A, N)),
            i("compositionend", L)
        }
          , C = qn();
        Te(function() {
            return e.value
        }, function() {
            "value"in C.vnode.props;
            var E;
            l.value = (E = e.value) !== null && E !== void 0 ? E : ""
        });
        var S = function(L) {
            var N;
            wte((N = s.value) === null || N === void 0 ? void 0 : N.textArea, L)
        }
          , w = function() {
            var L, N;
            (L = s.value) === null || L === void 0 || (N = L.textArea) === null || N === void 0 || N.blur()
        }
          , T = function(L, N) {
            l.value !== L && (e.value === void 0 ? l.value = L : yt(function() {
                if (s.value.textArea.value !== u.value) {
                    var R, $, W;
                    (R = s.value) === null || R === void 0 || ($ = (W = R.instance).update) === null || $ === void 0 || $.call(W)
                }
            }),
            yt(function() {
                N && N()
            }))
        }
          , P = function(L) {
            L.keyCode === 13 && i("pressEnter", L),
            i("keydown", L)
        }
          , M = function(L) {
            var N = e.onBlur;
            N == null || N(L),
            o.onFieldBlur()
        }
          , A = function(L) {
            i("update:value", L.target.value),
            i("change", L),
            i("input", L),
            o.onFieldChange()
        }
          , O = function(L) {
            Tg(s.value.textArea, L, A),
            T("", function() {
                S()
            })
        }
          , k = function(L) {
            var N = L.target.composing
              , R = L.target.value;
            if (g.value = !!(L.isComposing || N),
            !(g.value && e.lazy || l.value === R)) {
                if (p.value) {
                    var $ = L.target
                      , W = $.selectionStart >= e.maxlength + 1 || $.selectionStart === R.length || !$.selectionStart;
                    R = fB(W, u.value, R, e.maxlength)
                }
                Tg(L.currentTarget, L, A, R),
                T(R)
            }
        }
          , D = function() {
            var L, N, R, $ = r.style, W = r.class, B = e.bordered, G = B === void 0 ? !0 : B, K = I(I(I({}, Et(e, ["allowClear"])), r), {}, {
                style: h.value ? {} : $,
                class: (L = {},
                z(L, "".concat(f.value, "-borderless"), !G),
                z(L, "".concat(W), W && !h.value),
                z(L, "".concat(f.value, "-sm"), d.value === "small"),
                z(L, "".concat(f.value, "-lg"), d.value === "large"),
                L),
                showCount: null,
                prefixCls: f.value,
                onInput: k,
                onChange: k,
                onBlur: M,
                onKeydown: P,
                onCompositionstart: b,
                onCompositionend: x
            });
            return (N = e.valueModifiers) !== null && N !== void 0 && N.lazy && delete K.onInput,
            _(I8e, I(I({}, K), {}, {
                id: (R = K.id) !== null && R !== void 0 ? R : o.id.value,
                ref: s,
                maxlength: e.maxlength
            }), null)
        };
        return a({
            focus: S,
            blur: w,
            resizableTextArea: s
        }),
        pt(function() {
            var E = uA(l.value);
            !g.value && p.value && (e.value === null || e.value === void 0) && (E = Pte(E, e.maxlength)),
            u.value = E
        }),
        function() {
            var E = e.maxlength
              , L = e.bordered
              , N = L === void 0 ? !0 : L
              , R = e.hidden
              , $ = r.style
              , W = r.class
              , B = I(I(I({}, e), r), {}, {
                prefixCls: f.value,
                inputType: "text",
                handleReset: O,
                direction: v.value,
                bordered: N,
                style: h.value ? void 0 : $
            })
              , G = _(Cte, I(I({}, B), {}, {
                value: u.value
            }), {
                element: D
            });
            if (h.value) {
                var K = $e(u.value).length
                  , V = "";
                We(h.value) === "object" ? V = h.value.formatter({
                    count: K,
                    maxlength: E
                }) : V = "".concat(K).concat(p.value ? " / ".concat(E) : ""),
                G = _("div", {
                    hidden: R,
                    class: he("".concat(f.value, "-textarea"), z({}, "".concat(f.value, "-textarea-rtl"), v.value === "rtl"), "".concat(f.value, "-textarea-show-count"), W),
                    style: $,
                    "data-count": We(V) !== "object" ? V : void 0
                }, [G])
            }
            return G
        }
    }
});
var k8e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"
            }
        }]
    },
    name: "eye",
    theme: "outlined"
};
const O8e = k8e;
function dB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            D8e(t, a, n[a])
        })
    }
    return t
}
function D8e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var j8 = function(e, n) {
    var r = dB({}, e, n.attrs);
    return _(lt, dB({}, r, {
        icon: O8e
    }), null)
};
j8.displayName = "EyeOutlined";
j8.inheritAttrs = !1;
const W8 = j8;
var E8e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"
            }
        }, {
            tag: "path",
            attrs: {
                d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"
            }
        }]
    },
    name: "eye-invisible",
    theme: "outlined"
};
const L8e = E8e;
function vB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            R8e(t, a, n[a])
        })
    }
    return t
}
function R8e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var G8 = function(e, n) {
    var r = vB({}, e, n.attrs);
    return _(lt, vB({}, r, {
        icon: L8e
    }), null)
};
G8.displayName = "EyeInvisibleOutlined";
G8.inheritAttrs = !1;
const N8e = G8;
var $8e = ["size", "visibilityToggle"]
  , F8e = {
    click: "onClick",
    hover: "onMouseover"
}
  , B8e = function(e) {
    return _(e ? W8 : N8e, null, null)
};
const Mte = de({
    compatConfig: {
        MODE: 3
    },
    name: "AInputPassword",
    inheritAttrs: !1,
    props: I(I({}, z8()), {}, {
        prefixCls: String,
        inputPrefixCls: String,
        action: {
            type: String,
            default: "click"
        },
        visibilityToggle: {
            type: Boolean,
            default: !0
        },
        iconRender: Function
    }),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.expose
          , o = Q(!1)
          , l = function() {
            var y = e.disabled;
            y || (o.value = !o.value)
        }
          , s = Q()
          , u = function() {
            var y;
            (y = s.value) === null || y === void 0 || y.focus()
        }
          , c = function() {
            var y;
            (y = s.value) === null || y === void 0 || y.blur()
        };
        i({
            focus: u,
            blur: c
        });
        var f = function(y) {
            var b, x = e.action, C = e.iconRender, S = C === void 0 ? r.iconRender || B8e : C, w = F8e[x] || "", T = S(o.value), P = (b = {},
            z(b, w, l),
            z(b, "class", "".concat(y, "-icon")),
            z(b, "key", "passwordIcon"),
            z(b, "onMousedown", function(A) {
                A.preventDefault()
            }),
            z(b, "onMouseup", function(A) {
                A.preventDefault()
            }),
            b);
            return Qt(cr(T) ? T : _("span", null, [T]), P)
        }
          , d = je("input-password", e)
          , v = d.prefixCls
          , h = d.getPrefixCls
          , p = j(function() {
            return h("input", e.inputPrefixCls)
        })
          , g = function() {
            var y = e.size
              , b = e.visibilityToggle
              , x = tt(e, $8e)
              , C = b && f(v.value)
              , S = he(v.value, a.class, z({}, "".concat(v.value, "-").concat(y), !!y))
              , w = I(I(I({}, Et(x, ["suffix", "iconRender", "action"])), a), {}, {
                type: o.value ? "text" : "password",
                class: S,
                prefixCls: p.value,
                suffix: C
            });
            return y && (w.size = y),
            _(Sr, I({
                ref: s
            }, w), r)
        };
        return function() {
            return g()
        }
    }
});
Sr.Group = _te;
Sr.Search = Tte;
Sr.TextArea = H8;
Sr.Password = Mte;
Sr.install = function(t) {
    return t.component(Sr.name, Sr),
    t.component(Sr.Group.name, Sr.Group),
    t.component(Sr.Search.name, Sr.Search),
    t.component(Sr.TextArea.name, Sr.TextArea),
    t.component(Sr.Password.name, Sr.Password),
    t
}
;
var V8e = "[object Number]";
function z8e(t) {
    return typeof t == "number" || xo(t) && Vu(t) == V8e
}
function H8e() {
    var t = document.documentElement.clientWidth
      , e = window.innerHeight || document.documentElement.clientHeight;
    return {
        width: t,
        height: e
    }
}
function iS(t) {
    var e = t.getBoundingClientRect()
      , n = document.documentElement;
    return {
        left: e.left + (window.pageXOffset || n.scrollLeft) - (n.clientLeft || document.body.clientLeft || 0),
        top: e.top + (window.pageYOffset || n.scrollTop) - (n.clientTop || document.body.clientTop || 0)
    }
}
function gw() {
    return {
        keyboard: {
            type: Boolean,
            default: void 0
        },
        mask: {
            type: Boolean,
            default: void 0
        },
        afterClose: Function,
        closable: {
            type: Boolean,
            default: void 0
        },
        maskClosable: {
            type: Boolean,
            default: void 0
        },
        visible: {
            type: Boolean,
            default: void 0
        },
        destroyOnClose: {
            type: Boolean,
            default: void 0
        },
        mousePosition: J.shape({
            x: Number,
            y: Number
        }).loose,
        title: J.any,
        footer: J.any,
        transitionName: String,
        maskTransitionName: String,
        animation: J.any,
        maskAnimation: J.any,
        wrapStyle: {
            type: Object,
            default: void 0
        },
        bodyStyle: {
            type: Object,
            default: void 0
        },
        maskStyle: {
            type: Object,
            default: void 0
        },
        prefixCls: String,
        wrapClassName: String,
        rootClassName: String,
        width: [String, Number],
        height: [String, Number],
        zIndex: Number,
        bodyProps: J.any,
        maskProps: J.any,
        wrapProps: J.any,
        getContainer: J.any,
        dialogStyle: {
            type: Object,
            default: void 0
        },
        dialogClass: String,
        closeIcon: J.any,
        forceRender: {
            type: Boolean,
            default: void 0
        },
        getOpenCount: Function,
        focusTriggerAfterClose: {
            type: Boolean,
            default: void 0
        },
        onClose: Function,
        modalRender: Function
    }
}
function hB(t, e, n) {
    var r = e;
    return !r && n && (r = "".concat(t, "-").concat(n)),
    r
}
var pB = -1;
function j8e() {
    return pB += 1,
    pB
}
function gB(t, e) {
    var n = t["page".concat(e ? "Y" : "X", "Offset")]
      , r = "scroll".concat(e ? "Top" : "Left");
    if (typeof n != "number") {
        var a = t.document;
        n = a.documentElement[r],
        typeof n != "number" && (n = a.body[r])
    }
    return n
}
function W8e(t) {
    var e = t.getBoundingClientRect()
      , n = {
        left: e.left,
        top: e.top
    }
      , r = t.ownerDocument
      , a = r.defaultView || r.parentWindow;
    return n.left += gB(a),
    n.top += gB(a, !0),
    n
}
var mB = {
    width: 0,
    height: 0,
    overflow: "hidden",
    outline: "none"
};
const G8e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Content",
    inheritAttrs: !1,
    props: I(I({}, gw()), {}, {
        motionName: String,
        ariaId: String,
        onVisibleChanged: Function,
        onMousedown: Function,
        onMouseup: Function
    }),
    setup: function(e, n) {
        var r = n.expose
          , a = n.slots
          , i = n.attrs
          , o = Q()
          , l = Q()
          , s = Q();
        r({
            focus: function() {
                var h;
                (h = o.value) === null || h === void 0 || h.focus()
            },
            changeActive: function(h) {
                var p = document
                  , g = p.activeElement;
                h && g === l.value ? o.value.focus() : !h && g === o.value && l.value.focus()
            }
        });
        var u = Q()
          , c = j(function() {
            var v = e.width
              , h = e.height
              , p = {};
            return v !== void 0 && (p.width = typeof v == "number" ? "".concat(v, "px") : v),
            h !== void 0 && (p.height = typeof h == "number" ? "".concat(h, "px") : h),
            u.value && (p.transformOrigin = u.value),
            p
        })
          , f = function() {
            yt(function() {
                if (s.value) {
                    var h = W8e(s.value);
                    u.value = e.mousePosition ? "".concat(e.mousePosition.x - h.left, "px ").concat(e.mousePosition.y - h.top, "px") : ""
                }
            })
        }
          , d = function(h) {
            e.onVisibleChanged(h)
        };
        return function() {
            var v, h, p, g, m = e.prefixCls, y = e.footer, b = y === void 0 ? (v = a.footer) === null || v === void 0 ? void 0 : v.call(a) : y, x = e.title, C = x === void 0 ? (h = a.title) === null || h === void 0 ? void 0 : h.call(a) : x, S = e.ariaId, w = e.closable, T = e.closeIcon, P = T === void 0 ? (p = a.closeIcon) === null || p === void 0 ? void 0 : p.call(a) : T, M = e.onClose, A = e.bodyStyle, O = e.bodyProps, k = e.onMousedown, D = e.onMouseup, E = e.visible, L = e.modalRender, N = L === void 0 ? a.modalRender : L, R = e.destroyOnClose, $ = e.motionName, W;
            b && (W = _("div", {
                class: "".concat(m, "-footer")
            }, [b]));
            var B;
            C && (B = _("div", {
                class: "".concat(m, "-header")
            }, [_("div", {
                class: "".concat(m, "-title"),
                id: S
            }, [C])]));
            var G;
            w && (G = _("button", {
                type: "button",
                onClick: M,
                "aria-label": "Close",
                class: "".concat(m, "-close")
            }, [P || _("span", {
                class: "".concat(m, "-close-x")
            }, null)]));
            var K = _("div", {
                class: "".concat(m, "-content")
            }, [G, B, _("div", I({
                class: "".concat(m, "-body"),
                style: A
            }, O), [(g = a.default) === null || g === void 0 ? void 0 : g.call(a)]), W])
              , V = zu($);
            return _(dh, I(I({}, V), {}, {
                onBeforeEnter: f,
                onAfterEnter: function() {
                    return d(!0)
                },
                onAfterLeave: function() {
                    return d(!1)
                }
            }), {
                default: function() {
                    return [E || !R ? Fr(_("div", I(I({}, i), {}, {
                        ref: s,
                        key: "dialog-element",
                        role: "document",
                        style: [c.value, i.style],
                        class: [m, i.class],
                        onMousedown: k,
                        onMouseup: D
                    }), [_("div", {
                        tabindex: 0,
                        ref: o,
                        style: mB,
                        "aria-hidden": "true"
                    }, null), N ? N({
                        originVNode: K
                    }) : K, _("div", {
                        tabindex: 0,
                        ref: l,
                        style: mB,
                        "aria-hidden": "true"
                    }, null)]), [[Io, E]]) : null]
                }
            })
        }
    }
});
function mw(t) {
    if (t == null)
        throw new TypeError("Cannot destructure " + t)
}
const K8e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Mask",
    props: {
        prefixCls: String,
        visible: Boolean,
        motionName: String,
        maskProps: Object
    },
    setup: function(e, n) {
        return mw(n),
        function() {
            var r = e.prefixCls
              , a = e.visible
              , i = e.maskProps
              , o = e.motionName
              , l = zu(o);
            return _(dh, l, {
                default: function() {
                    return [Fr(_("div", I({
                        class: "".concat(r, "-mask")
                    }, i), null), [[Io, a]])]
                }
            })
        }
    }
})
  , yB = de({
    compatConfig: {
        MODE: 3
    },
    name: "Dialog",
    inheritAttrs: !1,
    props: $t(I(I({}, gw()), {}, {
        getOpenCount: Function,
        scrollLocker: Object
    }), {
        mask: !0,
        visible: !1,
        keyboard: !0,
        closable: !0,
        maskClosable: !0,
        destroyOnClose: !1,
        prefixCls: "rc-dialog",
        getOpenCount: function() {
            return null
        },
        focusTriggerAfterClose: !0
    }),
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = Q()
          , o = Q()
          , l = Q()
          , s = Q(e.visible)
          , u = Q("vcDialogTitle".concat(j8e()))
          , c = function(b) {
            if (b) {
                if (!Gc(o.value, document.activeElement)) {
                    var x;
                    i.value = document.activeElement,
                    (x = l.value) === null || x === void 0 || x.focus()
                }
            } else {
                var C = s.value;
                if (s.value = !1,
                e.mask && i.value && e.focusTriggerAfterClose) {
                    try {
                        i.value.focus({
                            preventScroll: !0
                        })
                    } catch (w) {}
                    i.value = null
                }
                if (C) {
                    var S;
                    (S = e.afterClose) === null || S === void 0 || S.call(e)
                }
            }
        }
          , f = function(b) {
            var x;
            (x = e.onClose) === null || x === void 0 || x.call(e, b)
        }
          , d = Q(!1)
          , v = Q()
          , h = function() {
            clearTimeout(v.value),
            d.value = !0
        }
          , p = function() {
            v.value = setTimeout(function() {
                d.value = !1
            })
        }
          , g = function(b) {
            if (!e.maskClosable)
                return null;
            d.value ? d.value = !1 : o.value === b.target && f(b)
        }
          , m = function(b) {
            if (e.keyboard && b.keyCode === Ee.ESC) {
                b.stopPropagation(),
                f(b);
                return
            }
            e.visible && b.keyCode === Ee.TAB && l.value.changeActive(!b.shiftKey)
        };
        return Te(function() {
            return e.visible
        }, function() {
            e.visible && (s.value = !0)
        }, {
            flush: "post"
        }),
        Nt(function() {
            var y;
            clearTimeout(v.value),
            (y = e.scrollLocker) === null || y === void 0 || y.unLock()
        }),
        pt(function() {
            var y;
            if ((y = e.scrollLocker) === null || y === void 0 || y.unLock(),
            s.value) {
                var b;
                (b = e.scrollLocker) === null || b === void 0 || b.lock()
            }
        }),
        function() {
            var y = e.prefixCls
              , b = e.mask
              , x = e.visible
              , C = e.maskTransitionName
              , S = e.maskAnimation
              , w = e.zIndex
              , T = e.wrapClassName
              , P = e.rootClassName
              , M = e.wrapStyle
              , A = e.closable
              , O = e.maskProps
              , k = e.maskStyle
              , D = e.transitionName
              , E = e.animation
              , L = e.wrapProps
              , N = e.title
              , R = N === void 0 ? a.title : N
              , $ = r.style
              , W = r.class;
            return _("div", I({
                class: ["".concat(y, "-root"), P]
            }, Hu(e, {
                data: !0
            })), [_(K8e, {
                prefixCls: y,
                visible: b && x,
                motionName: hB(y, C, S),
                style: I({
                    zIndex: w
                }, k),
                maskProps: O
            }, null), _("div", I({
                tabIndex: -1,
                onKeydown: m,
                class: he("".concat(y, "-wrap"), T),
                ref: o,
                onClick: g,
                role: "dialog",
                "aria-labelledby": R ? u.value : null,
                style: I(I({
                    zIndex: w
                }, M), {}, {
                    display: s.value ? null : "none"
                })
            }, L), [_(G8e, I(I({}, Et(e, ["scrollLocker"])), {}, {
                style: $,
                class: W,
                onMousedown: h,
                onMouseup: p,
                ref: l,
                closable: A,
                ariaId: u.value,
                prefixCls: y,
                visible: x,
                onClose: f,
                onVisibleChanged: c,
                motionName: hB(y, D, E)
            }), a)])])
        }
    }
});
var U8e = gw()
  , Y8e = de({
    compatConfig: {
        MODE: 3
    },
    name: "DialogWrap",
    inheritAttrs: !1,
    props: $t(U8e, {
        visible: !1
    }),
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = Q(e.visible);
        return yD({}, {
            inTriggerContext: !1
        }),
        Te(function() {
            return e.visible
        }, function() {
            e.visible && (i.value = !0)
        }, {
            flush: "post"
        }),
        function() {
            var o = e.visible
              , l = e.getContainer
              , s = e.forceRender
              , u = e.destroyOnClose
              , c = u === void 0 ? !1 : u
              , f = e.afterClose
              , d = I(I(I({}, e), r), {}, {
                ref: "_component",
                key: "dialog"
            });
            return l === !1 ? _(yB, I(I({}, d), {}, {
                getOpenCount: function() {
                    return 2
                }
            }), a) : !s && c && !i.value ? null : _(yte, {
                visible: o,
                forceRender: s,
                getContainer: l
            }, {
                default: function(h) {
                    return d = I(I(I({}, d), h), {}, {
                        afterClose: function() {
                            f == null || f(),
                            i.value = !1
                        }
                    }),
                    _(yB, d, a)
                }
            })
        }
    }
});
const Ate = Y8e;
function q8e(t) {
    var e = Q(null)
      , n = en(I({}, t))
      , r = Q([])
      , a = function(o) {
        e.value === null && (r.value = [],
        e.value = gt(function() {
            var l;
            r.value.forEach(function(s) {
                l = I(I({}, l), s)
            }),
            Wt(n, l),
            e.value = null
        })),
        r.value.push(o)
    };
    return ct(function() {
        e.value && gt.cancel(e.value)
    }),
    [n, a]
}
function bB(t, e, n, r) {
    var a = e + n
      , i = (n - r) / 2;
    if (n > r) {
        if (e > 0)
            return z({}, t, i);
        if (e < 0 && a < r)
            return z({}, t, -i)
    } else if (e < 0 || a > r)
        return z({}, t, e < 0 ? i : -i);
    return {}
}
function X8e(t, e, n, r) {
    var a = H8e()
      , i = a.width
      , o = a.height
      , l = null;
    return t <= i && e <= o ? l = {
        x: 0,
        y: 0
    } : (t > i || e > o) && (l = I(I({}, bB("x", n, t, i)), bB("y", r, e, o))),
    l
}
var xB = Symbol("previewGroupContext")
  , K8 = {
    provide: function(e) {
        It(xB, e)
    },
    inject: function() {
        return vt(xB, {
            isPreviewGroup: Q(!1),
            previewUrls: j(function() {
                return new Map
            }),
            setPreviewUrls: function() {},
            current: Q(null),
            setCurrent: function() {},
            setShowPreview: function() {},
            setMousePosition: function() {},
            registerImage: null,
            rootClassName: ""
        })
    }
}
  , Z8e = de({
    compatConfig: {
        MODE: 3
    },
    name: "PreviewGroup",
    inheritAttrs: !1,
    props: {
        previewPrefixCls: String,
        preview: {
            type: [Boolean, Object],
            default: !0
        },
        icons: {
            type: Object,
            default: function() {
                return {}
            }
        }
    },
    setup: function(e, n) {
        var r = n.slots
          , a = j(function() {
            var T = {
                visible: void 0,
                onVisibleChange: function() {},
                getContainer: void 0,
                current: 0
            };
            return We(e.preview) === "object" ? Dte(e.preview, T) : T
        })
          , i = en(new Map)
          , o = Q()
          , l = j(function() {
            return a.value.visible
        })
          , s = j(function() {
            return a.value.getContainer
        })
          , u = function(P, M) {
            var A, O;
            (A = (O = a.value).onVisibleChange) === null || A === void 0 || A.call(O, P, M)
        }
          , c = zn(!!l.value, {
            value: l,
            onChange: u
        })
          , f = De(c, 2)
          , d = f[0]
          , v = f[1]
          , h = Q(null)
          , p = j(function() {
            return l.value !== void 0
        })
          , g = j(function() {
            return Array.from(i.keys())
        })
          , m = j(function() {
            return g.value[a.value.current]
        })
          , y = j(function() {
            return new Map(Array.from(i).filter(function(T) {
                var P = De(T, 2)
                  , M = P[1].canPreview;
                return !!M
            }).map(function(T) {
                var P = De(T, 2)
                  , M = P[0]
                  , A = P[1].url;
                return [M, A]
            }))
        })
          , b = function(P, M) {
            var A = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
            i.set(P, {
                url: M,
                canPreview: A
            })
        }
          , x = function(P) {
            o.value = P
        }
          , C = function(P) {
            h.value = P
        }
          , S = function(P, M) {
            var A = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0
              , O = function() {
                i.delete(P)
            };
            return i.set(P, {
                url: M,
                canPreview: A
            }),
            O
        }
          , w = function(P) {
            P == null || P.stopPropagation(),
            v(!1),
            C(null)
        };
        return Te(m, function(T) {
            x(T)
        }, {
            immediate: !0,
            flush: "post"
        }),
        pt(function() {
            d.value && p.value && x(m.value)
        }, {
            flush: "post"
        }),
        K8.provide({
            isPreviewGroup: Q(!0),
            previewUrls: y,
            setPreviewUrls: b,
            current: o,
            setCurrent: x,
            setShowPreview: v,
            setMousePosition: C,
            registerImage: S
        }),
        function() {
            var T = Wt({}, (mw(a.value),
            a.value));
            return _(xt, null, [r.default && r.default(), _(kte, I(I({}, T), {}, {
                "ria-hidden": !d.value,
                visible: d.value,
                prefixCls: e.previewPrefixCls,
                onClose: w,
                mousePosition: h.value,
                src: y.value.get(o.value),
                icons: e.icons,
                getContainer: s.value
            }), null)])
        }
    }
});
const Ite = Z8e;
var rc = {
    x: 0,
    y: 0
}
  , Q8e = I(I({}, gw()), {}, {
    src: String,
    alt: String,
    rootClassName: String,
    icons: {
        type: Object,
        default: function() {
            return {}
        }
    }
})
  , J8e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Preview",
    inheritAttrs: !1,
    props: Q8e,
    emits: ["close", "afterClose"],
    setup: function(e, n) {
        var r = n.emit
          , a = n.attrs
          , i = en(e.icons)
          , o = i.rotateLeft
          , l = i.rotateRight
          , s = i.zoomIn
          , u = i.zoomOut
          , c = i.close
          , f = i.left
          , d = i.right
          , v = Q(1)
          , h = Q(0)
          , p = q8e(rc)
          , g = De(p, 2)
          , m = g[0]
          , y = g[1]
          , b = function() {
            return r("close")
        }
          , x = Q()
          , C = en({
            originX: 0,
            originY: 0,
            deltaX: 0,
            deltaY: 0
        })
          , S = Q(!1)
          , w = K8.inject()
          , T = w.previewUrls
          , P = w.current
          , M = w.isPreviewGroup
          , A = w.setCurrent
          , O = j(function() {
            return T.value.size
        })
          , k = j(function() {
            return Array.from(T.value.keys())
        })
          , D = j(function() {
            return k.value.indexOf(P.value)
        })
          , E = j(function() {
            return M.value ? T.value.get(P.value) : e.src
        })
          , L = j(function() {
            return M.value && O.value > 1
        })
          , N = Q({
            wheelDirection: 0
        })
          , R = function() {
            v.value = 1,
            h.value = 0,
            y(rc),
            r("afterClose")
        }
          , $ = function() {
            v.value++,
            y(rc)
        }
          , W = function() {
            v.value > 1 && v.value--,
            y(rc)
        }
          , B = function() {
            h.value += 90
        }
          , G = function() {
            h.value -= 90
        }
          , K = function(ue) {
            ue.preventDefault(),
            ue.stopPropagation(),
            D.value > 0 && A(k.value[D.value - 1])
        }
          , V = function(ue) {
            ue.preventDefault(),
            ue.stopPropagation(),
            D.value < O.value - 1 && A(k.value[D.value + 1])
        }
          , U = he(z({}, "".concat(e.prefixCls, "-moving"), S.value))
          , X = "".concat(e.prefixCls, "-operations-operation")
          , Y = "".concat(e.prefixCls, "-operations-icon")
          , te = [{
            icon: c,
            onClick: b,
            type: "close"
        }, {
            icon: s,
            onClick: $,
            type: "zoomIn"
        }, {
            icon: u,
            onClick: W,
            type: "zoomOut",
            disabled: j(function() {
                return v.value === 1
            })
        }, {
            icon: l,
            onClick: B,
            type: "rotateRight"
        }, {
            icon: o,
            onClick: G,
            type: "rotateLeft"
        }]
          , ne = function() {
            if (e.visible && S.value) {
                var ue = x.value.offsetWidth * v.value
                  , ve = x.value.offsetHeight * v.value
                  , fe = iS(x.value)
                  , ce = fe.left
                  , le = fe.top
                  , oe = h.value % 180 !== 0;
                S.value = !1;
                var se = X8e(oe ? ve : ue, oe ? ue : ve, ce, le);
                se && y(I({}, se))
            }
        }
          , ie = function(ue) {
            ue.button === 0 && (ue.preventDefault(),
            ue.stopPropagation(),
            C.deltaX = ue.pageX - m.x,
            C.deltaY = ue.pageY - m.y,
            C.originX = m.x,
            C.originY = m.y,
            S.value = !0)
        }
          , ae = function(ue) {
            e.visible && S.value && y({
                x: ue.pageX - C.deltaX,
                y: ue.pageY - C.deltaY
            })
        }
          , q = function(ue) {
            if (!!e.visible) {
                ue.preventDefault();
                var ve = ue.deltaY;
                N.value = {
                    wheelDirection: ve
                }
            }
        }
          , F = function(ue) {
            !e.visible || !L.value || (ue.preventDefault(),
            ue.keyCode === Ee.LEFT ? D.value > 0 && A(k.value[D.value - 1]) : ue.keyCode === Ee.RIGHT && D.value < O.value - 1 && A(k.value[D.value + 1]))
        }
          , H = function() {
            e.visible && (v.value !== 1 && (v.value = 1),
            (m.x !== rc.x || m.y !== rc.y) && y(rc))
        }
          , ee = function() {};
        return ct(function() {
            Te([function() {
                return e.visible
            }
            , S], function() {
                ee();
                var re, ue, ve = Nn(window, "mouseup", ne, !1), fe = Nn(window, "mousemove", ae, !1), ce = Nn(window, "wheel", q, {
                    passive: !1
                }), le = Nn(window, "keydown", F, !1);
                try {
                    window.top !== window.self && (re = Nn(window.top, "mouseup", ne, !1),
                    ue = Nn(window.top, "mousemove", ae, !1))
                } catch (oe) {}
                ee = function() {
                    ve.remove(),
                    fe.remove(),
                    ce.remove(),
                    le.remove(),
                    re && re.remove(),
                    ue && ue.remove()
                }
            }, {
                flush: "post",
                immediate: !0
            }),
            Te([N], function() {
                var re = N.value.wheelDirection;
                re > 0 ? W() : re < 0 && $()
            })
        }),
        dr(function() {
            ee()
        }),
        function() {
            var re = e.visible
              , ue = e.prefixCls
              , ve = e.rootClassName;
            return _(Ate, I(I({}, a), {}, {
                transitionName: "zoom",
                maskTransitionName: "fade",
                closable: !1,
                keyboard: !0,
                prefixCls: ue,
                onClose: b,
                afterClose: R,
                visible: re,
                wrapClassName: U,
                rootClassName: ve,
                getContainer: e.getContainer
            }), {
                default: function() {
                    return [_("ul", {
                        class: "".concat(e.prefixCls, "-operations")
                    }, [te.map(function(ce) {
                        var le = ce.icon
                          , oe = ce.onClick
                          , se = ce.type
                          , xe = ce.disabled;
                        return _("li", {
                            class: he(X, z({}, "".concat(e.prefixCls, "-operations-operation-disabled"), xe && (xe == null ? void 0 : xe.value))),
                            onClick: oe,
                            key: se
                        }, [Zr(le, {
                            class: Y
                        })])
                    })]), _("div", {
                        class: "".concat(e.prefixCls, "-img-wrapper"),
                        style: {
                            transform: "translate3d(".concat(m.x, "px, ").concat(m.y, "px, 0)")
                        }
                    }, [_("img", {
                        onMousedown: ie,
                        onDblclick: H,
                        ref: x,
                        class: "".concat(e.prefixCls, "-img"),
                        src: E.value,
                        alt: e.alt,
                        style: {
                            transform: "scale3d(".concat(v.value, ", ").concat(v.value, ", 1) rotate(").concat(h.value, "deg)")
                        }
                    }, null)]), L.value && _("div", {
                        class: he("".concat(e.prefixCls, "-switch-left"), z({}, "".concat(e.prefixCls, "-switch-left-disabled"), D.value <= 0)),
                        onClick: K
                    }, [f]), L.value && _("div", {
                        class: he("".concat(e.prefixCls, "-switch-right"), z({}, "".concat(e.prefixCls, "-switch-right-disabled"), D.value >= O.value - 1)),
                        onClick: V
                    }, [d])]
                }
            })
        }
    }
});
const kte = J8e;
var eEe = ["icons", "maskClassName"]
  , Ote = function() {
    return {
        src: String,
        wrapperClassName: String,
        wrapperStyle: {
            type: Object,
            default: void 0
        },
        rootClassName: String,
        prefixCls: String,
        previewPrefixCls: String,
        previewMask: {
            type: [Boolean, Function],
            default: void 0
        },
        placeholder: J.any,
        fallback: String,
        preview: {
            type: [Boolean, Object],
            default: !0
        },
        onClick: {
            type: Function
        },
        onError: {
            type: Function
        }
    }
}
  , Dte = function(e, n) {
    var r = I({}, e);
    return Object.keys(n).forEach(function(a) {
        e[a] === void 0 && (r[a] = n[a])
    }),
    r
}
  , tEe = 0
  , Ete = de({
    compatConfig: {
        MODE: 3
    },
    name: "Image",
    inheritAttrs: !1,
    props: Ote(),
    emits: ["click", "error"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.emit
          , o = j(function() {
            return e.prefixCls
        })
          , l = j(function() {
            return "".concat(o.value, "-preview")
        })
          , s = j(function() {
            var B = {
                visible: void 0,
                onVisibleChange: function() {},
                getContainer: void 0
            };
            return We(e.preview) === "object" ? Dte(e.preview, B) : B
        })
          , u = j(function() {
            var B;
            return (B = s.value.src) !== null && B !== void 0 ? B : e.src
        })
          , c = j(function() {
            return e.placeholder && e.placeholder !== !0 || a.placeholder
        })
          , f = j(function() {
            return s.value.visible
        })
          , d = j(function() {
            return s.value.getContainer
        })
          , v = j(function() {
            return f.value !== void 0
        })
          , h = function(G, K) {
            var V, U;
            (V = (U = s.value).onVisibleChange) === null || V === void 0 || V.call(U, G, K)
        }
          , p = zn(!!f.value, {
            value: f,
            onChange: h
        })
          , g = De(p, 2)
          , m = g[0]
          , y = g[1];
        Te(m, function(B, G) {
            h(B, G)
        });
        var b = Q(c.value ? "loading" : "normal");
        Te(function() {
            return e.src
        }, function() {
            b.value = c.value ? "loading" : "normal"
        });
        var x = Q(null)
          , C = j(function() {
            return b.value === "error"
        })
          , S = K8.inject()
          , w = S.isPreviewGroup
          , T = S.setCurrent
          , P = S.setShowPreview
          , M = S.setMousePosition
          , A = S.registerImage
          , O = Q(tEe++)
          , k = j(function() {
            return e.preview && !C.value
        })
          , D = function() {
            b.value = "normal"
        }
          , E = function(G) {
            b.value = "error",
            i("error", G)
        }
          , L = function(G) {
            if (!v.value) {
                var K = iS(G.target)
                  , V = K.left
                  , U = K.top;
                w.value ? (T(O.value),
                M({
                    x: V,
                    y: U
                })) : x.value = {
                    x: V,
                    y: U
                }
            }
            w.value ? P(!0) : y(!0),
            i("click", G)
        }
          , N = function() {
            y(!1),
            v.value || (x.value = null)
        }
          , R = Q(null);
        Te(function() {
            return R
        }, function() {
            b.value === "loading" && R.value.complete && (R.value.naturalWidth || R.value.naturalHeight) && D()
        });
        var $ = function() {};
        ct(function() {
            Te([u, k], function() {
                if ($(),
                !w.value)
                    return function() {}
                    ;
                $ = A(O.value, u.value, k.value),
                k.value || $()
            }, {
                flush: "post",
                immediate: !0
            })
        }),
        dr(function() {
            $()
        });
        var W = function(G) {
            return z8e(G) ? G + "px" : G
        };
        return function() {
            var B = e.prefixCls
              , G = e.wrapperClassName
              , K = e.fallback
              , V = e.src
              , U = e.placeholder
              , X = e.wrapperStyle
              , Y = e.rootClassName
              , te = r.width
              , ne = r.height
              , ie = r.crossorigin
              , ae = r.decoding
              , q = r.alt
              , F = r.sizes
              , H = r.srcset
              , ee = r.usemap
              , re = r.class
              , ue = r.style
              , ve = s.value
              , fe = ve.icons
              , ce = ve.maskClassName
              , le = tt(ve, eEe)
              , oe = he(B, G, Y, z({}, "".concat(B, "-error"), C.value))
              , se = C.value && K ? K : u.value
              , xe = {
                crossorigin: ie,
                decoding: ae,
                alt: q,
                sizes: F,
                srcset: H,
                usemap: ee,
                class: he("".concat(B, "-img"), z({}, "".concat(B, "-img-placeholder"), U === !0), re),
                style: I({
                    height: ne
                }, ue)
            };
            return _(xt, null, [_("div", {
                class: oe,
                onClick: k.value ? L : function(Pe) {
                    i("click", Pe)
                }
                ,
                style: I({
                    width: W(te),
                    height: W(ne)
                }, X)
            }, [_("img", I(I(I({}, xe), C.value && K ? {
                src: K
            } : {
                onLoad: D,
                onError: E,
                src: V
            }), {}, {
                ref: R
            }), null), b.value === "loading" && _("div", {
                "aria-hidden": "true",
                class: "".concat(B, "-placeholder")
            }, [U || a.placeholder && a.placeholder()]), a.previewMask && k.value && _("div", {
                class: ["".concat(B, "-mask"), ce]
            }, [a.previewMask()])]), !w.value && k.value && _(kte, I(I({}, le), {}, {
                "aria-hidden": !m.value,
                visible: m.value,
                prefixCls: l.value,
                onClose: N,
                mousePosition: x.value,
                src: se,
                alt: q,
                getContainer: d.value,
                icons: fe,
                rootClassName: Y
            }), null)])
        }
    }
});
Ete.PreviewGroup = Ite;
const nEe = Ete;
var rEe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "defs",
            attrs: {},
            children: [{
                tag: "style",
                attrs: {}
            }]
        }, {
            tag: "path",
            attrs: {
                d: "M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"
            }
        }, {
            tag: "path",
            attrs: {
                d: "M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"
            }
        }]
    },
    name: "rotate-left",
    theme: "outlined"
};
const aEe = rEe;
function SB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            iEe(t, a, n[a])
        })
    }
    return t
}
function iEe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var U8 = function(e, n) {
    var r = SB({}, e, n.attrs);
    return _(lt, SB({}, r, {
        icon: aEe
    }), null)
};
U8.displayName = "RotateLeftOutlined";
U8.inheritAttrs = !1;
const oEe = U8;
var lEe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "defs",
            attrs: {},
            children: [{
                tag: "style",
                attrs: {}
            }]
        }, {
            tag: "path",
            attrs: {
                d: "M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"
            }
        }, {
            tag: "path",
            attrs: {
                d: "M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"
            }
        }]
    },
    name: "rotate-right",
    theme: "outlined"
};
const sEe = lEe;
function CB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            uEe(t, a, n[a])
        })
    }
    return t
}
function uEe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var Y8 = function(e, n) {
    var r = CB({}, e, n.attrs);
    return _(lt, CB({}, r, {
        icon: sEe
    }), null)
};
Y8.displayName = "RotateRightOutlined";
Y8.inheritAttrs = !1;
const cEe = Y8;
var fEe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"
            }
        }]
    },
    name: "zoom-in",
    theme: "outlined"
};
const dEe = fEe;
function wB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            vEe(t, a, n[a])
        })
    }
    return t
}
function vEe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var q8 = function(e, n) {
    var r = wB({}, e, n.attrs);
    return _(lt, wB({}, r, {
        icon: dEe
    }), null)
};
q8.displayName = "ZoomInOutlined";
q8.inheritAttrs = !1;
const hEe = q8;
var pEe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"
            }
        }]
    },
    name: "zoom-out",
    theme: "outlined"
};
const gEe = pEe;
function _B(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            mEe(t, a, n[a])
        })
    }
    return t
}
function mEe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var X8 = function(e, n) {
    var r = _B({}, e, n.attrs);
    return _(lt, _B({}, r, {
        icon: gEe
    }), null)
};
X8.displayName = "ZoomOutOutlined";
X8.inheritAttrs = !1;
const yEe = X8;
var Lte = {
    rotateLeft: _(oEe, null, null),
    rotateRight: _(cEe, null, null),
    zoomIn: _(hEe, null, null),
    zoomOut: _(yEe, null, null),
    close: _(Sl, null, null),
    left: _(Df, null, null),
    right: _(ls, null, null)
}
  , bEe = de({
    compatConfig: {
        MODE: 3
    },
    name: "AImagePreviewGroup",
    inheritAttrs: !1,
    props: {
        previewPrefixCls: String
    },
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = je("image", e)
          , o = i.getPrefixCls
          , l = j(function() {
            return o("image-preview", e.previewPrefixCls)
        });
        return function() {
            return _(Ite, I(I({}, I(I({}, r), e)), {}, {
                icons: Lte,
                previewPrefixCls: l.value
            }), a)
        }
    }
});
const Rte = bEe;
var Kc = de({
    name: "AImage",
    inheritAttrs: !1,
    props: Ote(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = je("image", e)
          , o = i.prefixCls
          , l = i.rootPrefixCls
          , s = i.configProvider
          , u = j(function() {
            var c = e.preview;
            if (c === !1)
                return c;
            var f = We(c) === "object" ? c : {};
            return I(I({
                icons: Lte
            }, f), {}, {
                transitionName: So(l.value, "zoom", f.transitionName),
                maskTransitionName: So(l.value, "fade", f.maskTransitionName)
            })
        });
        return function() {
            var c, f = ((c = s.locale) === null || c === void 0 ? void 0 : c.Image) || yo.Image, d = function() {
                return _("div", {
                    class: "".concat(o.value, "-mask-info")
                }, [_(W8, null, null), f == null ? void 0 : f.preview])
            }, v = e.previewMask, h = v === void 0 ? r.previewMask || d : v;
            return _(nEe, I(I({}, I(I(I({}, a), e), {}, {
                prefixCls: o.value
            })), {}, {
                preview: u.value
            }), I(I({}, r), {}, {
                previewMask: typeof h == "function" ? h : null
            }))
        }
    }
});
Kc.PreviewGroup = Rte;
Kc.install = function(t) {
    return t.component(Kc.name, Kc),
    t.component(Kc.PreviewGroup.name, Kc.PreviewGroup),
    t
}
;
const xEe = Kc;
var SEe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"
            }
        }]
    },
    name: "up",
    theme: "outlined"
};
const CEe = SEe;
function TB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            wEe(t, a, n[a])
        })
    }
    return t
}
function wEe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var Z8 = function(e, n) {
    var r = TB({}, e, n.attrs);
    return _(lt, TB({}, r, {
        icon: CEe
    }), null)
};
Z8.displayName = "UpOutlined";
Z8.inheritAttrs = !1;
const _Ee = Z8;
function cA() {
    return typeof BigInt == "function"
}
function Pg(t) {
    var e = t.trim()
      , n = e.startsWith("-");
    n && (e = e.slice(1)),
    e = e.replace(/(\.\d*[^0])0*$/, "$1").replace(/\.0*$/, "").replace(/^0+/, ""),
    e.startsWith(".") && (e = "0".concat(e));
    var r = e || "0"
      , a = r.split(".")
      , i = a[0] || "0"
      , o = a[1] || "0";
    i === "0" && o === "0" && (n = !1);
    var l = n ? "-" : "";
    return {
        negative: n,
        negativeStr: l,
        trimStr: r,
        integerStr: i,
        decimalStr: o,
        fullStr: "".concat(l).concat(r)
    }
}
function Q8(t) {
    var e = String(t);
    return !Number.isNaN(Number(e)) && e.includes("e")
}
function C0(t) {
    var e = String(t);
    if (Q8(t)) {
        var n = Number(e.slice(e.indexOf("e-") + 2))
          , r = e.match(/\.(\d+)/);
        return r != null && r[1] && (n += r[1].length),
        n
    }
    return e.includes(".") && eE(e) ? e.length - e.indexOf(".") - 1 : 0
}
function J8(t) {
    var e = String(t);
    if (Q8(t)) {
        if (t > Number.MAX_SAFE_INTEGER)
            return String(cA() ? BigInt(t).toString() : Number.MAX_SAFE_INTEGER);
        if (t < Number.MIN_SAFE_INTEGER)
            return String(cA() ? BigInt(t).toString() : Number.MIN_SAFE_INTEGER);
        e = t.toFixed(C0(e))
    }
    return Pg(e).fullStr
}
function eE(t) {
    return typeof t == "number" ? !Number.isNaN(t) : t ? /^\s*-?\d+(\.\d+)?\s*$/.test(t) || /^\s*-?\d+\.\s*$/.test(t) || /^\s*-?\.\d+\s*$/.test(t) : !1
}
function Nte(t) {
    return !t && t !== 0 && !Number.isNaN(t) || !String(t).trim()
}
var TEe = function() {
    function t(e) {
        if (FD(this, t),
        z(this, "origin", ""),
        Nte(e)) {
            this.empty = !0;
            return
        }
        this.origin = String(e),
        this.number = Number(e)
    }
    return $D(t, [{
        key: "negate",
        value: function() {
            return new t(-this.toNumber())
        }
    }, {
        key: "add",
        value: function(n) {
            if (this.isInvalidate())
                return new t(n);
            var r = Number(n);
            if (Number.isNaN(r))
                return this;
            var a = this.number + r;
            if (a > Number.MAX_SAFE_INTEGER)
                return new t(Number.MAX_SAFE_INTEGER);
            if (a < Number.MIN_SAFE_INTEGER)
                return new t(Number.MIN_SAFE_INTEGER);
            var i = Math.max(C0(this.number), C0(r));
            return new t(a.toFixed(i))
        }
    }, {
        key: "isEmpty",
        value: function() {
            return this.empty
        }
    }, {
        key: "isNaN",
        value: function() {
            return Number.isNaN(this.number)
        }
    }, {
        key: "isInvalidate",
        value: function() {
            return this.isEmpty() || this.isNaN()
        }
    }, {
        key: "equals",
        value: function(n) {
            return this.toNumber() === (n == null ? void 0 : n.toNumber())
        }
    }, {
        key: "lessEquals",
        value: function(n) {
            return this.add(n.negate().toString()).toNumber() <= 0
        }
    }, {
        key: "toNumber",
        value: function() {
            return this.number
        }
    }, {
        key: "toString",
        value: function() {
            var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
            return n ? this.isInvalidate() ? "" : J8(this.number) : this.origin
        }
    }]),
    t
}()
  , PEe = function() {
    function t(e) {
        if (FD(this, t),
        z(this, "origin", ""),
        Nte(e)) {
            this.empty = !0;
            return
        }
        if (this.origin = String(e),
        e === "-" || Number.isNaN(e)) {
            this.nan = !0;
            return
        }
        var n = e;
        if (Q8(n) && (n = Number(n)),
        n = typeof n == "string" ? n : J8(n),
        eE(n)) {
            var r = Pg(n);
            this.negative = r.negative;
            var a = r.trimStr.split(".");
            this.integer = BigInt(a[0]);
            var i = a[1] || "0";
            this.decimal = BigInt(i),
            this.decimalLen = i.length
        } else
            this.nan = !0
    }
    return $D(t, [{
        key: "getMark",
        value: function() {
            return this.negative ? "-" : ""
        }
    }, {
        key: "getIntegerStr",
        value: function() {
            return this.integer.toString()
        }
    }, {
        key: "getDecimalStr",
        value: function() {
            return this.decimal.toString().padStart(this.decimalLen, "0")
        }
    }, {
        key: "alignDecimal",
        value: function(n) {
            var r = "".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n, "0"));
            return BigInt(r)
        }
    }, {
        key: "negate",
        value: function() {
            var n = new t(this.toString());
            return n.negative = !n.negative,
            n
        }
    }, {
        key: "add",
        value: function(n) {
            if (this.isInvalidate())
                return new t(n);
            var r = new t(n);
            if (r.isInvalidate())
                return this;
            var a = Math.max(this.getDecimalStr().length, r.getDecimalStr().length)
              , i = this.alignDecimal(a)
              , o = r.alignDecimal(a)
              , l = (i + o).toString()
              , s = Pg(l)
              , u = s.negativeStr
              , c = s.trimStr
              , f = "".concat(u).concat(c.padStart(a + 1, "0"));
            return new t("".concat(f.slice(0, -a), ".").concat(f.slice(-a)))
        }
    }, {
        key: "isEmpty",
        value: function() {
            return this.empty
        }
    }, {
        key: "isNaN",
        value: function() {
            return this.nan
        }
    }, {
        key: "isInvalidate",
        value: function() {
            return this.isEmpty() || this.isNaN()
        }
    }, {
        key: "equals",
        value: function(n) {
            return this.toString() === (n == null ? void 0 : n.toString())
        }
    }, {
        key: "lessEquals",
        value: function(n) {
            return this.add(n.negate().toString()).toNumber() <= 0
        }
    }, {
        key: "toNumber",
        value: function() {
            return this.isNaN() ? NaN : Number(this.toString())
        }
    }, {
        key: "toString",
        value: function() {
            var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
            return n ? this.isInvalidate() ? "" : Pg("".concat(this.getMark()).concat(this.getIntegerStr(), ".").concat(this.getDecimalStr())).fullStr : this.origin
        }
    }]),
    t
}();
function Uo(t) {
    return cA() ? new PEe(t) : new TEe(t)
}
function fA(t, e, n) {
    var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
    if (t === "")
        return "";
    var a = Pg(t)
      , i = a.negativeStr
      , o = a.integerStr
      , l = a.decimalStr
      , s = "".concat(e).concat(l)
      , u = "".concat(i).concat(o);
    if (n >= 0) {
        var c = Number(l[n]);
        if (c >= 5 && !r) {
            var f = Uo(t).add("".concat(i, "0.").concat("0".repeat(n)).concat(10 - c));
            return fA(f.toString(), e, n, r)
        }
        return n === 0 ? u : "".concat(u).concat(e).concat(l.padEnd(n, "0").slice(0, n))
    }
    return s === ".0" ? u : "".concat(u).concat(s)
}
var MEe = 200
  , AEe = 600;
const IEe = de({
    compatConfig: {
        MODE: 3
    },
    name: "StepHandler",
    inheritAttrs: !1,
    props: {
        prefixCls: String,
        upDisabled: Boolean,
        downDisabled: Boolean,
        onStep: {
            type: Function
        }
    },
    slots: ["upNode", "downNode"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = Q()
          , o = function(u, c) {
            u.preventDefault(),
            a("step", c);
            function f() {
                a("step", c),
                i.value = setTimeout(f, MEe)
            }
            i.value = setTimeout(f, AEe)
        }
          , l = function() {
            clearTimeout(i.value)
        };
        return Nt(function() {
            l()
        }),
        function() {
            if (xD())
                return null;
            var s = e.prefixCls
              , u = e.upDisabled
              , c = e.downDisabled
              , f = "".concat(s, "-handler")
              , d = he(f, "".concat(f, "-up"), z({}, "".concat(f, "-up-disabled"), u))
              , v = he(f, "".concat(f, "-down"), z({}, "".concat(f, "-down-disabled"), c))
              , h = {
                unselectable: "on",
                role: "button",
                onMouseup: l,
                onMouseleave: l
            }
              , p = r.upNode
              , g = r.downNode;
            return _("div", {
                class: "".concat(f, "-wrap")
            }, [_("span", I(I({}, h), {}, {
                onMousedown: function(y) {
                    o(y, !0)
                },
                "aria-label": "Increase Value",
                "aria-disabled": u,
                class: d
            }), [(p == null ? void 0 : p()) || _("span", {
                unselectable: "on",
                class: "".concat(s, "-handler-up-inner")
            }, null)]), _("span", I(I({}, h), {}, {
                onMousedown: function(y) {
                    o(y, !1)
                },
                "aria-label": "Decrease Value",
                "aria-disabled": c,
                class: v
            }), [(g == null ? void 0 : g()) || _("span", {
                unselectable: "on",
                class: "".concat(s, "-handler-down-inner")
            }, null)])])
        }
    }
});
function kEe(t, e) {
    var n = Q(null);
    function r() {
        try {
            var i = t.value
              , o = i.selectionStart
              , l = i.selectionEnd
              , s = i.value
              , u = s.substring(0, o)
              , c = s.substring(l);
            n.value = {
                start: o,
                end: l,
                value: s,
                beforeTxt: u,
                afterTxt: c
            }
        } catch (f) {}
    }
    function a() {
        if (t.value && n.value && e.value)
            try {
                var i = t.value.value
                  , o = n.value
                  , l = o.beforeTxt
                  , s = o.afterTxt
                  , u = o.start
                  , c = i.length;
                if (i.endsWith(s))
                    c = i.length - n.value.afterTxt.length;
                else if (i.startsWith(l))
                    c = l.length;
                else {
                    var f = l[u - 1]
                      , d = i.indexOf(f, u - 1);
                    d !== -1 && (c = d + 1)
                }
                t.value.setSelectionRange(c, c)
            } catch (v) {
                "Something warning of cursor restore. Please fire issue about this: ".concat(v.message)
            }
    }
    return [r, a]
}
const OEe = function() {
    var t = Q(0)
      , e = function() {
        gt.cancel(t.value)
    };
    return Nt(function() {
        e()
    }),
    function(n) {
        e(),
        t.value = gt(function() {
            n()
        })
    }
};
var DEe = ["prefixCls", "min", "max", "step", "defaultValue", "value", "disabled", "readonly", "keyboard", "controls", "autofocus", "stringMode", "parser", "formatter", "precision", "decimalSeparator", "onChange", "onInput", "onPressEnter", "onStep", "lazy", "class", "style"]
  , PB = function(e, n) {
    return e || n.isEmpty() ? n.toString() : n.toNumber()
}
  , MB = function(e) {
    var n = Uo(e);
    return n.isInvalidate() ? null : n
}
  , $te = function() {
    return {
        stringMode: {
            type: Boolean
        },
        defaultValue: {
            type: [String, Number]
        },
        value: {
            type: [String, Number]
        },
        prefixCls: {
            type: String
        },
        min: {
            type: [String, Number]
        },
        max: {
            type: [String, Number]
        },
        step: {
            type: [String, Number],
            default: 1
        },
        tabindex: {
            type: Number
        },
        controls: {
            type: Boolean,
            default: !0
        },
        readonly: {
            type: Boolean
        },
        disabled: {
            type: Boolean
        },
        autofocus: {
            type: Boolean
        },
        keyboard: {
            type: Boolean,
            default: !0
        },
        parser: {
            type: Function
        },
        formatter: {
            type: Function
        },
        precision: {
            type: Number
        },
        decimalSeparator: {
            type: String
        },
        onInput: {
            type: Function
        },
        onChange: {
            type: Function
        },
        onPressEnter: {
            type: Function
        },
        onStep: {
            type: Function
        },
        onBlur: {
            type: Function
        },
        onFocus: {
            type: Function
        }
    }
};
const EEe = de({
    compatConfig: {
        MODE: 3
    },
    name: "InnerInputNumber",
    inheritAttrs: !1,
    props: I(I({}, $te()), {}, {
        lazy: Boolean
    }),
    slots: ["upHandler", "downHandler"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.emit
          , o = n.expose
          , l = Q()
          , s = Q(!1)
          , u = Q(!1)
          , c = Q(!1)
          , f = Q(Uo(e.value));
        function d(V) {
            e.value === void 0 && (f.value = V)
        }
        var v = function(U, X) {
            if (!X)
                return e.precision >= 0 ? e.precision : Math.max(C0(U), C0(e.step))
        }
          , h = function(U) {
            var X = String(U);
            if (e.parser)
                return e.parser(X);
            var Y = X;
            return e.decimalSeparator && (Y = Y.replace(e.decimalSeparator, ".")),
            Y.replace(/[^\w.-]+/g, "")
        }
          , p = Q("")
          , g = function(U, X) {
            if (e.formatter)
                return e.formatter(U, {
                    userTyping: X,
                    input: String(p.value)
                });
            var Y = typeof U == "number" ? J8(U) : U;
            if (!X) {
                var te = v(Y, X);
                if (eE(Y) && (e.decimalSeparator || te >= 0)) {
                    var ne = e.decimalSeparator || ".";
                    Y = fA(Y, ne, te)
                }
            }
            return Y
        }
          , m = function() {
            var V = e.value;
            return f.value.isInvalidate() && ["string", "number"].includes(We(V)) ? Number.isNaN(V) ? "" : V : g(f.value.toString(), !1)
        }();
        p.value = m;
        function y(V, U) {
            p.value = g(V.isInvalidate() ? V.toString(!1) : V.toString(!U), U)
        }
        var b = j(function() {
            return MB(e.max)
        })
          , x = j(function() {
            return MB(e.min)
        })
          , C = j(function() {
            return !b.value || !f.value || f.value.isInvalidate() ? !1 : b.value.lessEquals(f.value)
        })
          , S = j(function() {
            return !x.value || !f.value || f.value.isInvalidate() ? !1 : f.value.lessEquals(x.value)
        })
          , w = kEe(l, s)
          , T = De(w, 2)
          , P = T[0]
          , M = T[1]
          , A = function(U) {
            return b.value && !U.lessEquals(b.value) ? b.value : x.value && !x.value.lessEquals(U) ? x.value : null
        }
          , O = function(U) {
            return !A(U)
        }
          , k = function(U, X) {
            var Y = U
              , te = O(Y) || Y.isEmpty();
            if (!Y.isEmpty() && !X && (Y = A(Y) || Y,
            te = !0),
            !e.readonly && !e.disabled && te) {
                var ne = Y.toString()
                  , ie = v(ne, X);
                if (ie >= 0 && (Y = Uo(fA(ne, ".", ie))),
                !Y.equals(f.value)) {
                    var ae;
                    d(Y),
                    (ae = e.onChange) === null || ae === void 0 || ae.call(e, Y.isEmpty() ? null : PB(e.stringMode, Y)),
                    e.value === void 0 && y(Y, X)
                }
                return Y
            }
            return f.value
        }
          , D = OEe()
          , E = function V(U) {
            var X;
            if (P(),
            p.value = U,
            !c.value) {
                var Y = h(U)
                  , te = Uo(Y);
                te.isNaN() || k(te, !0)
            }
            (X = e.onInput) === null || X === void 0 || X.call(e, U),
            D(function() {
                var ne = U;
                e.parser || (ne = U.replace(/。/g, ".")),
                ne !== U && V(ne)
            })
        }
          , L = function() {
            c.value = !0
        }
          , N = function() {
            c.value = !1,
            E(l.value.value)
        }
          , R = function(U) {
            E(U.target.value)
        }
          , $ = function(U) {
            var X, Y;
            if (!(U && C.value || !U && S.value)) {
                u.value = !1;
                var te = Uo(e.step);
                U || (te = te.negate());
                var ne = (f.value || Uo(0)).add(te.toString())
                  , ie = k(ne, !1);
                (X = e.onStep) === null || X === void 0 || X.call(e, PB(e.stringMode, ie), {
                    offset: e.step,
                    type: U ? "up" : "down"
                }),
                (Y = l.value) === null || Y === void 0 || Y.focus()
            }
        }
          , W = function(U) {
            var X = Uo(h(p.value))
              , Y = X;
            X.isNaN() ? Y = f.value : Y = k(X, U),
            e.value !== void 0 ? y(f.value, !1) : Y.isNaN() || y(Y, !1)
        }
          , B = function(U) {
            var X = U.which;
            if (u.value = !0,
            X === Ee.ENTER) {
                var Y;
                c.value || (u.value = !1),
                W(!1),
                (Y = e.onPressEnter) === null || Y === void 0 || Y.call(e, U)
            }
            e.keyboard !== !1 && !c.value && [Ee.UP, Ee.DOWN].includes(X) && ($(Ee.UP === X),
            U.preventDefault())
        }
          , G = function() {
            u.value = !1
        }
          , K = function(U) {
            W(!1),
            s.value = !1,
            u.value = !1,
            i("blur", U)
        };
        return Te(function() {
            return e.precision
        }, function() {
            f.value.isInvalidate() || y(f.value, !1)
        }, {
            flush: "post"
        }),
        Te(function() {
            return e.value
        }, function() {
            var V = Uo(e.value);
            f.value = V;
            var U = Uo(h(p.value));
            (!V.equals(U) || !u.value || e.formatter) && y(V, u.value)
        }, {
            flush: "post"
        }),
        Te(p, function() {
            e.formatter && M()
        }, {
            flush: "post"
        }),
        Te(function() {
            return e.disabled
        }, function(V) {
            V && (s.value = !1)
        }),
        o({
            focus: function() {
                var U;
                (U = l.value) === null || U === void 0 || U.focus()
            },
            blur: function() {
                var U;
                (U = l.value) === null || U === void 0 || U.blur()
            }
        }),
        function() {
            var V, U = I(I({}, r), e), X = U.prefixCls, Y = X === void 0 ? "rc-input-number" : X, te = U.min, ne = U.max, ie = U.step, ae = ie === void 0 ? 1 : ie;
            U.defaultValue,
            U.value;
            var q = U.disabled
              , F = U.readonly;
            U.keyboard;
            var H = U.controls
              , ee = H === void 0 ? !0 : H
              , re = U.autofocus;
            U.stringMode,
            U.parser,
            U.formatter,
            U.precision,
            U.decimalSeparator,
            U.onChange,
            U.onInput,
            U.onPressEnter,
            U.onStep;
            var ue = U.lazy
              , ve = U.class
              , fe = U.style
              , ce = tt(U, DEe)
              , le = a.upHandler
              , oe = a.downHandler
              , se = "".concat(Y, "-input")
              , xe = {};
            return ue ? xe.onChange = R : xe.onInput = R,
            _("div", {
                class: he(Y, ve, (V = {},
                z(V, "".concat(Y, "-focused"), s.value),
                z(V, "".concat(Y, "-disabled"), q),
                z(V, "".concat(Y, "-readonly"), F),
                z(V, "".concat(Y, "-not-a-number"), f.value.isNaN()),
                z(V, "".concat(Y, "-out-of-range"), !f.value.isInvalidate() && !O(f.value)),
                V)),
                style: fe,
                onKeydown: B,
                onKeyup: G
            }, [ee && _(IEe, {
                prefixCls: Y,
                upDisabled: C.value,
                downDisabled: S.value,
                onStep: $
            }, {
                upNode: le,
                downNode: oe
            }), _("div", {
                class: "".concat(se, "-wrap")
            }, [_("input", I(I(I({
                autofocus: re,
                autocomplete: "off",
                role: "spinbutton",
                "aria-valuemin": te,
                "aria-valuemax": ne,
                "aria-valuenow": f.value.isInvalidate() ? null : f.value.toString(),
                step: ae
            }, ce), {}, {
                ref: l,
                class: se,
                value: p.value,
                disabled: q,
                readonly: F,
                onFocus: function(Fe) {
                    s.value = !0,
                    i("focus", Fe)
                }
            }, xe), {}, {
                onBlur: K,
                onCompositionstart: L,
                onCompositionend: N
            }), null)])])
        }
    }
});
function kT(t) {
    return t != null
}
var LEe = ["class", "bordered", "readonly", "style", "addonBefore", "addonAfter", "prefix", "valueModifiers"]
  , AB = $te()
  , REe = function() {
    return I(I({}, AB), {}, {
        size: {
            type: String
        },
        bordered: {
            type: Boolean,
            default: !0
        },
        placeholder: String,
        name: String,
        id: String,
        type: String,
        addonBefore: J.any,
        addonAfter: J.any,
        prefix: J.any,
        "onUpdate:value": AB.onChange,
        valueModifiers: Object
    })
}
  , OT = de({
    compatConfig: {
        MODE: 3
    },
    name: "AInputNumber",
    inheritAttrs: !1,
    props: REe(),
    slots: ["addonBefore", "addonAfter", "prefix"],
    setup: function(e, n) {
        var r = n.emit
          , a = n.expose
          , i = n.attrs
          , o = n.slots
          , l = br()
          , s = je("input-number", e)
          , u = s.prefixCls
          , c = s.size
          , f = s.direction
          , d = Q(e.value === void 0 ? e.defaultValue : e.value)
          , v = Q(!1);
        Te(function() {
            return e.value
        }, function() {
            d.value = e.value
        });
        var h = Q(null)
          , p = function() {
            var C;
            (C = h.value) === null || C === void 0 || C.focus()
        }
          , g = function() {
            var C;
            (C = h.value) === null || C === void 0 || C.blur()
        };
        a({
            focus: p,
            blur: g
        });
        var m = function(C) {
            e.value === void 0 && (d.value = C),
            r("update:value", C),
            r("change", C),
            l.onFieldChange()
        }
          , y = function(C) {
            v.value = !1,
            r("blur", C),
            l.onFieldBlur()
        }
          , b = function(C) {
            v.value = !0,
            r("focus", C)
        };
        return function() {
            var x, C, S, w, T = I(I({}, i), e), P = T.class, M = T.bordered, A = T.readonly, O = T.style, k = T.addonBefore, D = k === void 0 ? (x = o.addonBefore) === null || x === void 0 ? void 0 : x.call(o) : k, E = T.addonAfter, L = E === void 0 ? (C = o.addonAfter) === null || C === void 0 ? void 0 : C.call(o) : E, N = T.prefix, R = N === void 0 ? (S = o.prefix) === null || S === void 0 ? void 0 : S.call(o) : N, $ = T.valueModifiers, W = $ === void 0 ? {} : $, B = tt(T, LEe), G = u.value, K = c.value, V = he((w = {},
            z(w, "".concat(G, "-lg"), K === "large"),
            z(w, "".concat(G, "-sm"), K === "small"),
            z(w, "".concat(G, "-rtl"), f.value === "rtl"),
            z(w, "".concat(G, "-readonly"), A),
            z(w, "".concat(G, "-borderless"), !M),
            w), P), U = _(EEe, I(I({}, Et(B, ["size", "defaultValue"])), {}, {
                ref: h,
                lazy: !!W.lazy,
                value: d.value,
                class: V,
                prefixCls: G,
                readonly: A,
                onChange: m,
                onBlur: y,
                onFocus: b
            }), {
                upHandler: function() {
                    return _(_Ee, {
                        class: "".concat(G, "-handler-up-inner")
                    }, null)
                },
                downHandler: function() {
                    return _(Cm, {
                        class: "".concat(G, "-handler-down-inner")
                    }, null)
                }
            }), X = kT(D) || kT(L);
            if (kT(R)) {
                var Y, te = he("".concat(G, "-affix-wrapper"), (Y = {},
                z(Y, "".concat(G, "-affix-wrapper-focused"), v.value),
                z(Y, "".concat(G, "-affix-wrapper-disabled"), e.disabled),
                z(Y, "".concat(G, "-affix-wrapper-rtl"), f.value === "rtl"),
                z(Y, "".concat(G, "-affix-wrapper-readonly"), A),
                z(Y, "".concat(G, "-affix-wrapper-borderless"), !M),
                z(Y, "".concat(P), !X && P),
                Y));
                U = _("div", {
                    class: te,
                    style: O,
                    onMouseup: function() {
                        return h.value.focus()
                    }
                }, [_("span", {
                    class: "".concat(G, "-prefix")
                }, [R]), U])
            }
            if (X) {
                var ne, ie = "".concat(G, "-group"), ae = "".concat(ie, "-addon"), q = D ? _("div", {
                    class: ae
                }, [D]) : null, F = L ? _("div", {
                    class: ae
                }, [L]) : null, H = he("".concat(G, "-wrapper"), ie, z({}, "".concat(ie, "-rtl"), f.value === "rtl")), ee = he("".concat(G, "-group-wrapper"), (ne = {},
                z(ne, "".concat(G, "-group-wrapper-sm"), K === "small"),
                z(ne, "".concat(G, "-group-wrapper-lg"), K === "large"),
                z(ne, "".concat(G, "-group-wrapper-rtl"), f.value === "rtl"),
                ne), P);
                U = _("div", {
                    class: ee,
                    style: O
                }, [_("div", {
                    class: H
                }, [q, U, F])])
            }
            return Qt(U, {
                style: O
            })
        }
    }
});
const NEe = Wt(OT, {
    install: function(e) {
        return e.component(OT.name, OT),
        e
    }
});
var tE = function() {
    return {
        prefixCls: String,
        hasSider: {
            type: Boolean,
            default: void 0
        },
        tagName: String
    }
};
function yw(t) {
    var e = t.suffixCls
      , n = t.tagName
      , r = t.name;
    return function(a) {
        var i = de({
            compatConfig: {
                MODE: 3
            },
            name: r,
            props: tE(),
            setup: function(l, s) {
                var u = s.slots
                  , c = je(e, l)
                  , f = c.prefixCls;
                return function() {
                    var d = I(I({}, l), {}, {
                        prefixCls: f.value,
                        tagName: n
                    });
                    return _(a, d, u)
                }
            }
        });
        return i
    }
}
var nE = de({
    compatConfig: {
        MODE: 3
    },
    props: tE(),
    setup: function(e, n) {
        var r = n.slots;
        return function() {
            return _(e.tagName, {
                class: e.prefixCls
            }, r)
        }
    }
})
  , $Ee = de({
    compatConfig: {
        MODE: 3
    },
    props: tE(),
    setup: function(e, n) {
        var r = n.slots
          , a = je("", e)
          , i = a.direction
          , o = Q([])
          , l = {
            addSider: function(c) {
                o.value = [].concat($e(o.value), [c])
            },
            removeSider: function(c) {
                o.value = o.value.filter(function(f) {
                    return f !== c
                })
            }
        };
        It(eJ, l);
        var s = j(function() {
            var u, c = e.prefixCls, f = e.hasSider;
            return u = {},
            z(u, "".concat(c), !0),
            z(u, "".concat(c, "-has-sider"), typeof f == "boolean" ? f : o.value.length > 0),
            z(u, "".concat(c, "-rtl"), i.value === "rtl"),
            u
        });
        return function() {
            var u = e.tagName;
            return _(u, {
                class: s.value
            }, r)
        }
    }
})
  , FEe = yw({
    suffixCls: "layout",
    tagName: "section",
    name: "ALayout"
})($Ee)
  , Pb = yw({
    suffixCls: "layout-header",
    tagName: "header",
    name: "ALayoutHeader"
})(nE)
  , Mb = yw({
    suffixCls: "layout-footer",
    tagName: "footer",
    name: "ALayoutFooter"
})(nE)
  , Ab = yw({
    suffixCls: "layout-content",
    tagName: "main",
    name: "ALayoutContent"
})(nE);
const DT = FEe;
var BEe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "0 0 1024 1024",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"
            }
        }]
    },
    name: "bars",
    theme: "outlined"
};
const VEe = BEe;
function IB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            zEe(t, a, n[a])
        })
    }
    return t
}
function zEe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var rE = function(e, n) {
    var r = IB({}, e, n.attrs);
    return _(lt, IB({}, r, {
        icon: VEe
    }), null)
};
rE.displayName = "BarsOutlined";
rE.inheritAttrs = !1;
const HEe = rE;
var kB = {
    xs: "479.98px",
    sm: "575.98px",
    md: "767.98px",
    lg: "991.98px",
    xl: "1199.98px",
    xxl: "1599.98px",
    xxxl: "1999.98px"
}
  , jEe = function() {
    return {
        prefixCls: String,
        collapsible: {
            type: Boolean,
            default: void 0
        },
        collapsed: {
            type: Boolean,
            default: void 0
        },
        defaultCollapsed: {
            type: Boolean,
            default: void 0
        },
        reverseArrow: {
            type: Boolean,
            default: void 0
        },
        zeroWidthTriggerStyle: {
            type: Object,
            default: void 0
        },
        trigger: J.any,
        width: J.oneOfType([J.number, J.string]),
        collapsedWidth: J.oneOfType([J.number, J.string]),
        breakpoint: J.oneOf(Kn("xs", "sm", "md", "lg", "xl", "xxl", "xxxl")),
        theme: J.oneOf(Kn("light", "dark")).def("dark"),
        onBreakpoint: Function,
        onCollapse: Function
    }
}
  , WEe = function() {
    var t = 0;
    return function() {
        var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
        return t += 1,
        "".concat(e).concat(t)
    }
}();
const Ib = de({
    compatConfig: {
        MODE: 3
    },
    name: "ALayoutSider",
    inheritAttrs: !1,
    props: $t(jEe(), {
        collapsible: !1,
        defaultCollapsed: !1,
        reverseArrow: !1,
        width: 200,
        collapsedWidth: 80
    }),
    emits: ["breakpoint", "update:collapsed", "collapse"],
    setup: function(e, n) {
        var r = n.emit
          , a = n.attrs
          , i = n.slots
          , o = je("layout-sider", e)
          , l = o.prefixCls
          , s = vt(eJ, void 0)
          , u = Q(!!(e.collapsed !== void 0 ? e.collapsed : e.defaultCollapsed))
          , c = Q(!1);
        Te(function() {
            return e.collapsed
        }, function() {
            u.value = !!e.collapsed
        }),
        It(JQ, u);
        var f = function(y, b) {
            e.collapsed === void 0 && (u.value = y),
            r("update:collapsed", y),
            r("collapse", y, b)
        }, d = Q(function(m) {
            c.value = m.matches,
            r("breakpoint", m.matches),
            u.value !== m.matches && f(m.matches, "responsive")
        }), v;
        function h(m) {
            return d.value(m)
        }
        var p = WEe("ant-sider-");
        s && s.addSider(p),
        ct(function() {
            Te(function() {
                return e.breakpoint
            }, function() {
                try {
                    var m;
                    (m = v) === null || m === void 0 || m.removeEventListener("change", h)
                } catch (C) {
                    var y;
                    (y = v) === null || y === void 0 || y.removeListener(h)
                }
                if (typeof window != "undefined") {
                    var b = window
                      , x = b.matchMedia;
                    if (x && e.breakpoint && e.breakpoint in kB) {
                        v = x("(max-width: ".concat(kB[e.breakpoint], ")"));
                        try {
                            v.addEventListener("change", h)
                        } catch (C) {
                            v.addListener(h)
                        }
                        h(v)
                    }
                }
            }, {
                immediate: !0
            })
        }),
        Nt(function() {
            try {
                var m;
                (m = v) === null || m === void 0 || m.removeEventListener("change", h)
            } catch (b) {
                var y;
                (y = v) === null || y === void 0 || y.removeListener(h)
            }
            s && s.removeSider(p)
        });
        var g = function() {
            f(!u.value, "clickTrigger")
        };
        return function() {
            var m, y, b, x = l.value, C = e.collapsedWidth, S = e.width, w = e.reverseArrow, T = e.zeroWidthTriggerStyle, P = e.trigger, M = P === void 0 ? (m = i.trigger) === null || m === void 0 ? void 0 : m.call(i) : P, A = e.collapsible, O = e.theme, k = u.value ? C : S, D = zQ(k) ? "".concat(k, "px") : String(k), E = parseFloat(String(C || 0)) === 0 ? _("span", {
                onClick: g,
                class: he("".concat(x, "-zero-width-trigger"), "".concat(x, "-zero-width-trigger-").concat(w ? "right" : "left")),
                style: T
            }, [M || _(HEe, null, null)]) : null, L = {
                expanded: _(w ? ls : Df, null, null),
                collapsed: _(w ? Df : ls, null, null)
            }, N = u.value ? "collapsed" : "expanded", R = L[N], $ = M !== null ? E || _("div", {
                class: "".concat(x, "-trigger"),
                onClick: g,
                style: {
                    width: D
                }
            }, [M || R]) : null, W = [a.style, {
                flex: "0 0 ".concat(D),
                maxWidth: D,
                minWidth: D,
                width: D
            }], B = he(x, "".concat(x, "-").concat(O), (y = {},
            z(y, "".concat(x, "-collapsed"), !!u.value),
            z(y, "".concat(x, "-has-trigger"), A && M !== null && !E),
            z(y, "".concat(x, "-below"), !!c.value),
            z(y, "".concat(x, "-zero-width"), parseFloat(D) === 0),
            y), a.class);
            return _("aside", I(I({}, a), {}, {
                class: B,
                style: W
            }), [_("div", {
                class: "".concat(x, "-children")
            }, [(b = i.default) === null || b === void 0 ? void 0 : b.call(i)]), A || c.value && E ? $ : null])
        }
    }
});
var GEe = Pb
  , KEe = Mb
  , UEe = Ib
  , YEe = Ab;
const qEe = Wt(DT, {
    Header: Pb,
    Footer: Mb,
    Content: Ab,
    Sider: Ib,
    install: function(e) {
        return e.component(DT.name, DT),
        e.component(Pb.name, Pb),
        e.component(Mb.name, Mb),
        e.component(Ib.name, Ib),
        e.component(Ab.name, Ab),
        e
    }
});
var XEe = ["class", "style"]
  , ZEe = function() {
    return {
        prefixCls: String,
        spinning: {
            type: Boolean,
            default: void 0
        },
        size: String,
        wrapperClassName: String,
        tip: J.any,
        delay: Number,
        indicator: J.any
    }
}
  , kb = null;
function QEe(t, e) {
    return !!t && !!e && !isNaN(Number(e))
}
function JEe(t) {
    var e = t.indicator;
    kb = typeof e == "function" ? e : function() {
        return _(e, null, null)
    }
}
const mu = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASpin",
    inheritAttrs: !1,
    props: $t(ZEe(), {
        size: "default",
        spinning: !0,
        wrapperClassName: ""
    }),
    setup: function() {
        return {
            originalUpdateSpinning: null,
            configProvider: vt("configProvider", JO)
        }
    },
    data: function() {
        var e = this.spinning
          , n = this.delay
          , r = QEe(e, n);
        return {
            sSpinning: e && !r
        }
    },
    created: function() {
        this.originalUpdateSpinning = this.updateSpinning,
        this.debouncifyUpdateSpinning(this.$props)
    },
    mounted: function() {
        this.updateSpinning()
    },
    updated: function() {
        var e = this;
        yt(function() {
            e.debouncifyUpdateSpinning(),
            e.updateSpinning()
        })
    },
    beforeUnmount: function() {
        this.cancelExistingSpin()
    },
    methods: {
        debouncifyUpdateSpinning: function(e) {
            var n = e || this.$props
              , r = n.delay;
            r && (this.cancelExistingSpin(),
            this.updateSpinning = sw(this.originalUpdateSpinning, r))
        },
        updateSpinning: function() {
            var e = this.spinning
              , n = this.sSpinning;
            n !== e && (this.sSpinning = e)
        },
        cancelExistingSpin: function() {
            var e = this.updateSpinning;
            e && e.cancel && e.cancel()
        },
        renderIndicator: function(e) {
            var n = "".concat(e, "-dot")
              , r = DO(this, "indicator");
            return r === null ? null : (Array.isArray(r) && (r = r.length === 1 ? r[0] : r),
            Hr(r) ? Zr(r, {
                class: n
            }) : kb && Hr(kb()) ? Zr(kb(), {
                class: n
            }) : _("span", {
                class: "".concat(n, " ").concat(e, "-dot-spin")
            }, [_("i", {
                class: "".concat(e, "-dot-item")
            }, null), _("i", {
                class: "".concat(e, "-dot-item")
            }, null), _("i", {
                class: "".concat(e, "-dot-item")
            }, null), _("i", {
                class: "".concat(e, "-dot-item")
            }, null)]))
        }
    },
    render: function() {
        var e, n, r, a = this.$props, i = a.size, o = a.prefixCls, l = a.tip, s = l === void 0 ? (e = (n = this.$slots).tip) === null || e === void 0 ? void 0 : e.call(n) : l, u = a.wrapperClassName, c = this.$attrs, f = c.class, d = c.style, v = tt(c, XEe), h = this.configProvider, p = h.getPrefixCls, g = h.direction, m = p("spin", o), y = this.sSpinning, b = (r = {},
        z(r, m, !0),
        z(r, "".concat(m, "-sm"), i === "small"),
        z(r, "".concat(m, "-lg"), i === "large"),
        z(r, "".concat(m, "-spinning"), y),
        z(r, "".concat(m, "-show-text"), !!s),
        z(r, "".concat(m, "-rtl"), g === "rtl"),
        z(r, f, !!f),
        r), x = _("div", I(I({}, v), {}, {
            style: d,
            class: b
        }), [this.renderIndicator(m), s ? _("div", {
            class: "".concat(m, "-text")
        }, [s]) : null]), C = hm(this);
        if (C && C.length) {
            var S, w = (S = {},
            z(S, "".concat(m, "-container"), !0),
            z(S, "".concat(m, "-blur"), y),
            S);
            return _("div", {
                class: ["".concat(m, "-nested-loading"), u]
            }, [y && _("div", {
                key: "loading"
            }, [x]), _("div", {
                class: w,
                key: "container"
            }, [C])])
        }
        return x
    }
});
mu.setDefaultIndicator = JEe;
mu.install = function(t) {
    return t.component(mu.name, mu),
    t
}
;
var e6e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"
            }
        }]
    },
    name: "double-left",
    theme: "outlined"
};
const t6e = e6e;
function OB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            n6e(t, a, n[a])
        })
    }
    return t
}
function n6e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var aE = function(e, n) {
    var r = OB({}, e, n.attrs);
    return _(lt, OB({}, r, {
        icon: t6e
    }), null)
};
aE.displayName = "DoubleLeftOutlined";
aE.inheritAttrs = !1;
const r6e = aE;
var a6e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"
            }
        }]
    },
    name: "double-right",
    theme: "outlined"
};
const i6e = a6e;
function DB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            o6e(t, a, n[a])
        })
    }
    return t
}
function o6e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var iE = function(e, n) {
    var r = DB({}, e, n.attrs);
    return _(lt, DB({}, r, {
        icon: i6e
    }), null)
};
iE.displayName = "DoubleRightOutlined";
iE.inheritAttrs = !1;
const l6e = iE
  , s6e = de({
    compatConfig: {
        MODE: 3
    },
    inheritAttrs: !1,
    props: kD(),
    Option: Au.Option,
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots;
        return function() {
            var i = I(I({}, e), {}, {
                size: "small"
            }, r);
            return _(Au, i, a)
        }
    }
})
  , ac = de({
    compatConfig: {
        MODE: 3
    },
    name: "Pager",
    inheritAttrs: !1,
    props: {
        rootPrefixCls: String,
        page: Number,
        active: {
            type: Boolean,
            default: void 0
        },
        last: {
            type: Boolean,
            default: void 0
        },
        locale: J.object,
        showTitle: {
            type: Boolean,
            default: void 0
        },
        itemRender: {
            type: Function,
            default: function() {}
        },
        onClick: {
            type: Function
        },
        onKeypress: {
            type: Function
        }
    },
    eimt: ["click", "keypress"],
    setup: function(e, n) {
        var r = n.emit
          , a = n.attrs
          , i = function() {
            r("click", e.page)
        }
          , o = function(s) {
            r("keypress", s, i, e.page)
        };
        return function() {
            var l, s = e.showTitle, u = e.page, c = e.itemRender, f = a.class, d = a.style, v = "".concat(e.rootPrefixCls, "-item"), h = he(v, "".concat(v, "-").concat(e.page), (l = {},
            z(l, "".concat(v, "-active"), e.active),
            z(l, "".concat(v, "-disabled"), !e.page),
            l), f);
            return _("li", {
                onClick: i,
                onKeypress: o,
                title: s ? String(u) : null,
                tabindex: "0",
                class: h,
                style: d
            }, [c({
                page: u,
                type: "page",
                originalElement: _("a", {
                    rel: "nofollow"
                }, [u])
            })])
        }
    }
})
  , Oc = {
    ZERO: 48,
    NINE: 57,
    NUMPAD_ZERO: 96,
    NUMPAD_NINE: 105,
    BACKSPACE: 8,
    DELETE: 46,
    ENTER: 13,
    ARROW_UP: 38,
    ARROW_DOWN: 40
}
  , u6e = de({
    compatConfig: {
        MODE: 3
    },
    props: {
        disabled: {
            type: Boolean,
            default: void 0
        },
        changeSize: Function,
        quickGo: Function,
        selectComponentClass: J.any,
        current: Number,
        pageSizeOptions: J.array.def(["10", "20", "50", "100"]),
        pageSize: Number,
        buildOptionText: Function,
        locale: J.object,
        rootPrefixCls: String,
        selectPrefixCls: String,
        goButton: J.any
    },
    setup: function(e) {
        var n = Q("")
          , r = j(function() {
            return !n.value || isNaN(n.value) ? void 0 : Number(n.value)
        })
          , a = function(c) {
            return "".concat(c.value, " ").concat(e.locale.items_per_page)
        }
          , i = function(c) {
            var f = c.target
              , d = f.value
              , v = f.composing;
            c.isComposing || v || n.value === d || (n.value = d)
        }
          , o = function(c) {
            var f = e.goButton
              , d = e.quickGo
              , v = e.rootPrefixCls;
            if (!(f || n.value === ""))
                if (c.relatedTarget && (c.relatedTarget.className.indexOf("".concat(v, "-item-link")) >= 0 || c.relatedTarget.className.indexOf("".concat(v, "-item")) >= 0)) {
                    n.value = "";
                    return
                } else
                    d(r.value),
                    n.value = ""
        }
          , l = function(c) {
            n.value !== "" && (c.keyCode === Oc.ENTER || c.type === "click") && (e.quickGo(r.value),
            n.value = "")
        }
          , s = j(function() {
            var u = e.pageSize
              , c = e.pageSizeOptions;
            return c.some(function(f) {
                return f.toString() === u.toString()
            }) ? c : c.concat([u.toString()]).sort(function(f, d) {
                var v = isNaN(Number(f)) ? 0 : Number(f)
                  , h = isNaN(Number(d)) ? 0 : Number(d);
                return v - h
            })
        });
        return function() {
            var u = e.rootPrefixCls
              , c = e.locale
              , f = e.changeSize
              , d = e.quickGo
              , v = e.goButton
              , h = e.selectComponentClass
              , p = e.selectPrefixCls
              , g = e.pageSize
              , m = e.disabled
              , y = "".concat(u, "-options")
              , b = null
              , x = null
              , C = null;
            if (!f && !d)
                return null;
            if (f && h) {
                var S = e.buildOptionText || a
                  , w = s.value.map(function(T, P) {
                    return _(h.Option, {
                        key: P,
                        value: T
                    }, {
                        default: function() {
                            return [S({
                                value: T
                            })]
                        }
                    })
                });
                b = _(h, {
                    disabled: m,
                    prefixCls: p,
                    showSearch: !1,
                    class: "".concat(y, "-size-changer"),
                    optionLabelProp: "children",
                    value: (g || s.value[0]).toString(),
                    onChange: function(P) {
                        return f(Number(P))
                    },
                    getPopupContainer: function(P) {
                        return P.parentNode
                    }
                }, {
                    default: function() {
                        return [w]
                    }
                })
            }
            return d && (v && (C = typeof v == "boolean" ? _("button", {
                type: "button",
                onClick: l,
                onKeyup: l,
                disabled: m,
                class: "".concat(y, "-quick-jumper-button")
            }, [c.jump_to_confirm]) : _("span", {
                onClick: l,
                onKeyup: l
            }, [v])),
            x = _("div", {
                class: "".concat(y, "-quick-jumper")
            }, [c.jump_to, Fr(_("input", {
                disabled: m,
                type: "text",
                value: n.value,
                onInput: i,
                onChange: i,
                onKeyup: l,
                onBlur: o
            }, null), [[mh]]), c.page, C])),
            _("li", {
                class: "".concat(y)
            }, [b, x])
        }
    }
});
var c6e = ["class"];
function f6e(t) {
    return typeof t == "number" && isFinite(t) && Math.floor(t) === t
}
function d6e(t) {
    var e = t.originalElement;
    return e
}
function Rl(t, e, n) {
    var r = typeof t == "undefined" ? e.statePageSize : t;
    return Math.floor((n.total - 1) / r) + 1
}
const v6e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Pagination",
    mixins: [Xf],
    inheritAttrs: !1,
    props: {
        disabled: {
            type: Boolean,
            default: void 0
        },
        prefixCls: J.string.def("rc-pagination"),
        selectPrefixCls: J.string.def("rc-select"),
        current: Number,
        defaultCurrent: J.number.def(1),
        total: J.number.def(0),
        pageSize: Number,
        defaultPageSize: J.number.def(10),
        hideOnSinglePage: {
            type: Boolean,
            default: !1
        },
        showSizeChanger: {
            type: Boolean,
            default: void 0
        },
        showLessItems: {
            type: Boolean,
            default: !1
        },
        selectComponentClass: J.any,
        showPrevNextJumpers: {
            type: Boolean,
            default: !0
        },
        showQuickJumper: J.oneOfType([J.looseBool, J.object]).def(!1),
        showTitle: {
            type: Boolean,
            default: !0
        },
        pageSizeOptions: J.arrayOf(J.oneOfType([J.number, J.string])),
        buildOptionText: Function,
        showTotal: Function,
        simple: {
            type: Boolean,
            default: void 0
        },
        locale: J.object.def(rX),
        itemRender: J.func.def(d6e),
        prevIcon: J.any,
        nextIcon: J.any,
        jumpPrevIcon: J.any,
        jumpNextIcon: J.any,
        totalBoundaryShowSizeChanger: J.number.def(50)
    },
    data: function() {
        var e = this.$props
          , n = Fx([this.current, this.defaultCurrent])
          , r = Fx([this.pageSize, this.defaultPageSize]);
        return n = Math.min(n, Rl(r, void 0, e)),
        {
            stateCurrent: n,
            stateCurrentInputValue: n,
            statePageSize: r
        }
    },
    watch: {
        current: function(e) {
            this.setState({
                stateCurrent: e,
                stateCurrentInputValue: e
            })
        },
        pageSize: function(e) {
            var n = {}
              , r = this.stateCurrent
              , a = Rl(e, this.$data, this.$props);
            r = r > a ? a : r,
            Kl(this, "current") || (n.stateCurrent = r,
            n.stateCurrentInputValue = r),
            n.statePageSize = e,
            this.setState(n)
        },
        stateCurrent: function(e, n) {
            var r = this;
            this.$nextTick(function() {
                if (r.$refs.paginationNode) {
                    var a = r.$refs.paginationNode.querySelector(".".concat(r.prefixCls, "-item-").concat(n));
                    a && document.activeElement === a && a.blur()
                }
            })
        },
        total: function() {
            var e = {}
              , n = Rl(this.pageSize, this.$data, this.$props);
            if (Kl(this, "current")) {
                var r = Math.min(this.current, n);
                e.stateCurrent = r,
                e.stateCurrentInputValue = r
            } else {
                var a = this.stateCurrent;
                a === 0 && n > 0 ? a = 1 : a = Math.min(this.stateCurrent, n),
                e.stateCurrent = a
            }
            this.setState(e)
        }
    },
    methods: {
        getJumpPrevPage: function() {
            return Math.max(1, this.stateCurrent - (this.showLessItems ? 3 : 5))
        },
        getJumpNextPage: function() {
            return Math.min(Rl(void 0, this.$data, this.$props), this.stateCurrent + (this.showLessItems ? 3 : 5))
        },
        getItemIcon: function(e, n) {
            var r = this.$props.prefixCls
              , a = DO(this, e, this.$props) || _("button", {
                type: "button",
                "aria-label": n,
                class: "".concat(r, "-item-link")
            }, null);
            return a
        },
        getValidValue: function(e) {
            var n = e.target.value, r = Rl(void 0, this.$data, this.$props), a = this.$data.stateCurrentInputValue, i;
            return n === "" ? i = n : isNaN(Number(n)) ? i = a : n >= r ? i = r : i = Number(n),
            i
        },
        isValid: function(e) {
            return f6e(e) && e !== this.stateCurrent
        },
        shouldDisplayQuickJumper: function() {
            var e = this.$props
              , n = e.showQuickJumper
              , r = e.pageSize
              , a = e.total;
            return a <= r ? !1 : n
        },
        handleKeyDown: function(e) {
            (e.keyCode === Oc.ARROW_UP || e.keyCode === Oc.ARROW_DOWN) && e.preventDefault()
        },
        handleKeyUp: function(e) {
            if (!(e.isComposing || e.target.composing)) {
                var n = this.getValidValue(e)
                  , r = this.stateCurrentInputValue;
                n !== r && this.setState({
                    stateCurrentInputValue: n
                }),
                e.keyCode === Oc.ENTER ? this.handleChange(n) : e.keyCode === Oc.ARROW_UP ? this.handleChange(n - 1) : e.keyCode === Oc.ARROW_DOWN && this.handleChange(n + 1)
            }
        },
        changePageSize: function(e) {
            var n = this.stateCurrent
              , r = n
              , a = Rl(e, this.$data, this.$props);
            n = n > a ? a : n,
            a === 0 && (n = this.stateCurrent),
            typeof e == "number" && (Kl(this, "pageSize") || this.setState({
                statePageSize: e
            }),
            Kl(this, "current") || this.setState({
                stateCurrent: n,
                stateCurrentInputValue: n
            })),
            this.__emit("update:pageSize", e),
            n !== r && this.__emit("update:current", n),
            this.__emit("showSizeChange", n, e),
            this.__emit("change", n, e)
        },
        handleChange: function(e) {
            var n = this.$props.disabled
              , r = e;
            if (this.isValid(r) && !n) {
                var a = Rl(void 0, this.$data, this.$props);
                return r > a ? r = a : r < 1 && (r = 1),
                Kl(this, "current") || this.setState({
                    stateCurrent: r,
                    stateCurrentInputValue: r
                }),
                this.__emit("update:current", r),
                this.__emit("change", r, this.statePageSize),
                r
            }
            return this.stateCurrent
        },
        prev: function() {
            this.hasPrev() && this.handleChange(this.stateCurrent - 1)
        },
        next: function() {
            this.hasNext() && this.handleChange(this.stateCurrent + 1)
        },
        jumpPrev: function() {
            this.handleChange(this.getJumpPrevPage())
        },
        jumpNext: function() {
            this.handleChange(this.getJumpNextPage())
        },
        hasPrev: function() {
            return this.stateCurrent > 1
        },
        hasNext: function() {
            return this.stateCurrent < Rl(void 0, this.$data, this.$props)
        },
        getShowSizeChanger: function() {
            var e = this.$props
              , n = e.showSizeChanger
              , r = e.total
              , a = e.totalBoundaryShowSizeChanger;
            return typeof n != "undefined" ? n : r > a
        },
        runIfEnter: function(e, n) {
            if (e.key === "Enter" || e.charCode === 13) {
                for (var r = arguments.length, a = new Array(r > 2 ? r - 2 : 0), i = 2; i < r; i++)
                    a[i - 2] = arguments[i];
                n.apply(void 0, a)
            }
        },
        runIfEnterPrev: function(e) {
            this.runIfEnter(e, this.prev)
        },
        runIfEnterNext: function(e) {
            this.runIfEnter(e, this.next)
        },
        runIfEnterJumpPrev: function(e) {
            this.runIfEnter(e, this.jumpPrev)
        },
        runIfEnterJumpNext: function(e) {
            this.runIfEnter(e, this.jumpNext)
        },
        handleGoTO: function(e) {
            (e.keyCode === Oc.ENTER || e.type === "click") && this.handleChange(this.stateCurrentInputValue)
        },
        renderPrev: function(e) {
            var n = this.$props.itemRender
              , r = n({
                page: e,
                type: "prev",
                originalElement: this.getItemIcon("prevIcon", "prev page")
            })
              , a = !this.hasPrev();
            return cr(r) ? Qt(r, a ? {
                disabled: a
            } : {}) : r
        },
        renderNext: function(e) {
            var n = this.$props.itemRender
              , r = n({
                page: e,
                type: "next",
                originalElement: this.getItemIcon("nextIcon", "next page")
            })
              , a = !this.hasNext();
            return cr(r) ? Qt(r, a ? {
                disabled: a
            } : {}) : r
        }
    },
    render: function() {
        var e, n = this.$props, r = n.prefixCls, a = n.disabled, i = n.hideOnSinglePage, o = n.total, l = n.locale, s = n.showQuickJumper, u = n.showLessItems, c = n.showTitle, f = n.showTotal, d = n.simple, v = n.itemRender, h = n.showPrevNextJumpers, p = n.jumpPrevIcon, g = n.jumpNextIcon, m = n.selectComponentClass, y = n.selectPrefixCls, b = n.pageSizeOptions, x = this.stateCurrent, C = this.statePageSize, S = kO(this.$attrs).extraAttrs, w = S.class, T = tt(S, c6e);
        if (i === !0 && this.total <= C)
            return null;
        var P = Rl(void 0, this.$data, this.$props)
          , M = []
          , A = null
          , O = null
          , k = null
          , D = null
          , E = null
          , L = s && s.goButton
          , N = u ? 1 : 2
          , R = x - 1 > 0 ? x - 1 : 0
          , $ = x + 1 < P ? x + 1 : P
          , W = this.hasPrev()
          , B = this.hasNext();
        if (d)
            return L && (typeof L == "boolean" ? E = _("button", {
                type: "button",
                onClick: this.handleGoTO,
                onKeyup: this.handleGoTO
            }, [l.jump_to_confirm]) : E = _("span", {
                onClick: this.handleGoTO,
                onKeyup: this.handleGoTO
            }, [L]),
            E = _("li", {
                title: c ? "".concat(l.jump_to).concat(x, "/").concat(P) : null,
                class: "".concat(r, "-simple-pager")
            }, [E])),
            _("ul", I({
                class: he("".concat(r, " ").concat(r, "-simple"), z({}, "".concat(r, "-disabled"), a), w)
            }, T), [_("li", {
                title: c ? l.prev_page : null,
                onClick: this.prev,
                tabindex: W ? 0 : null,
                onKeypress: this.runIfEnterPrev,
                class: he("".concat(r, "-prev"), z({}, "".concat(r, "-disabled"), !W)),
                "aria-disabled": !W
            }, [this.renderPrev(R)]), _("li", {
                title: c ? "".concat(x, "/").concat(P) : null,
                class: "".concat(r, "-simple-pager")
            }, [Fr(_("input", {
                type: "text",
                value: this.stateCurrentInputValue,
                disabled: a,
                onKeydown: this.handleKeyDown,
                onKeyup: this.handleKeyUp,
                onInput: this.handleKeyUp,
                onChange: this.handleKeyUp,
                size: "3"
            }, null), [[mh]]), _("span", {
                class: "".concat(r, "-slash")
            }, [Fi("\uFF0F")]), P]), _("li", {
                title: c ? l.next_page : null,
                onClick: this.next,
                tabindex: B ? 0 : null,
                onKeypress: this.runIfEnterNext,
                class: he("".concat(r, "-next"), z({}, "".concat(r, "-disabled"), !B)),
                "aria-disabled": !B
            }, [this.renderNext($)]), E]);
        if (P <= 3 + N * 2) {
            var G = {
                locale: l,
                rootPrefixCls: r,
                showTitle: c,
                itemRender: v,
                onClick: this.handleChange,
                onKeypress: this.runIfEnter
            };
            P || M.push(_(ac, I(I({}, G), {}, {
                key: "noPager",
                page: 1,
                class: "".concat(r, "-item-disabled")
            }), null));
            for (var K = 1; K <= P; K += 1) {
                var V = x === K;
                M.push(_(ac, I(I({}, G), {}, {
                    key: K,
                    page: K,
                    active: V
                }), null))
            }
        } else {
            var U = u ? l.prev_3 : l.prev_5
              , X = u ? l.next_3 : l.next_5;
            h && (A = _("li", {
                title: this.showTitle ? U : null,
                key: "prev",
                onClick: this.jumpPrev,
                tabindex: "0",
                onKeypress: this.runIfEnterJumpPrev,
                class: he("".concat(r, "-jump-prev"), z({}, "".concat(r, "-jump-prev-custom-icon"), !!p))
            }, [v({
                page: this.getJumpPrevPage(),
                type: "jump-prev",
                originalElement: this.getItemIcon("jumpPrevIcon", "prev page")
            })]),
            O = _("li", {
                title: this.showTitle ? X : null,
                key: "next",
                tabindex: "0",
                onClick: this.jumpNext,
                onKeypress: this.runIfEnterJumpNext,
                class: he("".concat(r, "-jump-next"), z({}, "".concat(r, "-jump-next-custom-icon"), !!g))
            }, [v({
                page: this.getJumpNextPage(),
                type: "jump-next",
                originalElement: this.getItemIcon("jumpNextIcon", "next page")
            })])),
            D = _(ac, {
                locale: l,
                last: !0,
                rootPrefixCls: r,
                onClick: this.handleChange,
                onKeypress: this.runIfEnter,
                key: P,
                page: P,
                active: !1,
                showTitle: c,
                itemRender: v
            }, null),
            k = _(ac, {
                locale: l,
                rootPrefixCls: r,
                onClick: this.handleChange,
                onKeypress: this.runIfEnter,
                key: 1,
                page: 1,
                active: !1,
                showTitle: c,
                itemRender: v
            }, null);
            var Y = Math.max(1, x - N)
              , te = Math.min(x + N, P);
            x - 1 <= N && (te = 1 + N * 2),
            P - x <= N && (Y = P - N * 2);
            for (var ne = Y; ne <= te; ne += 1) {
                var ie = x === ne;
                M.push(_(ac, {
                    locale: l,
                    rootPrefixCls: r,
                    onClick: this.handleChange,
                    onKeypress: this.runIfEnter,
                    key: ne,
                    page: ne,
                    active: ie,
                    showTitle: c,
                    itemRender: v
                }, null))
            }
            x - 1 >= N * 2 && x !== 1 + 2 && (M[0] = _(ac, {
                locale: l,
                rootPrefixCls: r,
                onClick: this.handleChange,
                onKeypress: this.runIfEnter,
                key: Y,
                page: Y,
                class: "".concat(r, "-item-after-jump-prev"),
                active: !1,
                showTitle: this.showTitle,
                itemRender: v
            }, null),
            M.unshift(A)),
            P - x >= N * 2 && x !== P - 2 && (M[M.length - 1] = _(ac, {
                locale: l,
                rootPrefixCls: r,
                onClick: this.handleChange,
                onKeypress: this.runIfEnter,
                key: te,
                page: te,
                class: "".concat(r, "-item-before-jump-next"),
                active: !1,
                showTitle: this.showTitle,
                itemRender: v
            }, null),
            M.push(O)),
            Y !== 1 && M.unshift(k),
            te !== P && M.push(D)
        }
        var ae = null;
        f && (ae = _("li", {
            class: "".concat(r, "-total-text")
        }, [f(o, [o === 0 ? 0 : (x - 1) * C + 1, x * C > o ? o : x * C])]));
        var q = !W || !P
          , F = !B || !P
          , H = this.buildOptionText || this.$slots.buildOptionText;
        return _("ul", I(I({
            unselectable: "on",
            ref: "paginationNode"
        }, T), {}, {
            class: he((e = {},
            z(e, "".concat(r), !0),
            z(e, "".concat(r, "-disabled"), a),
            e), w)
        }), [ae, _("li", {
            title: c ? l.prev_page : null,
            onClick: this.prev,
            tabindex: q ? null : 0,
            onKeypress: this.runIfEnterPrev,
            class: he("".concat(r, "-prev"), z({}, "".concat(r, "-disabled"), q)),
            "aria-disabled": q
        }, [this.renderPrev(R)]), M, _("li", {
            title: c ? l.next_page : null,
            onClick: this.next,
            tabindex: F ? null : 0,
            onKeypress: this.runIfEnterNext,
            class: he("".concat(r, "-next"), z({}, "".concat(r, "-disabled"), F)),
            "aria-disabled": F
        }, [this.renderNext($)]), _(u6e, {
            disabled: a,
            locale: l,
            rootPrefixCls: r,
            selectComponentClass: m,
            selectPrefixCls: y,
            changeSize: this.getShowSizeChanger() ? this.changePageSize : null,
            current: x,
            pageSize: C,
            pageSizeOptions: b,
            buildOptionText: H || null,
            quickGo: this.shouldDisplayQuickJumper() ? this.handleChange : null,
            goButton: L
        }, null)])
    }
});
var h6e = ["size", "itemRender", "buildOptionText", "selectComponentClass", "responsive"]
  , p6e = function() {
    return {
        total: Number,
        defaultCurrent: Number,
        disabled: {
            type: Boolean,
            default: void 0
        },
        current: Number,
        defaultPageSize: Number,
        pageSize: Number,
        hideOnSinglePage: {
            type: Boolean,
            default: void 0
        },
        showSizeChanger: {
            type: Boolean,
            default: void 0
        },
        pageSizeOptions: Array,
        buildOptionText: Function,
        showQuickJumper: {
            type: [Boolean, Object],
            default: void 0
        },
        showTotal: Function,
        size: String,
        simple: {
            type: Boolean,
            default: void 0
        },
        locale: Object,
        prefixCls: String,
        selectPrefixCls: String,
        totalBoundaryShowSizeChanger: Number,
        selectComponentClass: String,
        itemRender: Function,
        role: String,
        responsive: Boolean,
        showLessItems: {
            type: Boolean,
            default: void 0
        },
        onChange: Function,
        onShowSizeChange: Function,
        "onUpdate:current": Function,
        "onUpdate:pageSize": Function
    }
};
const g6e = de({
    compatConfig: {
        MODE: 3
    },
    name: "APagination",
    inheritAttrs: !1,
    props: p6e(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = je("pagination", e)
          , o = i.prefixCls
          , l = i.configProvider
          , s = i.direction
          , u = j(function() {
            return l.getPrefixCls("select", e.selectPrefixCls)
        })
          , c = yh()
          , f = xl("Pagination", lX, at(e, "locale"))
          , d = De(f, 1)
          , v = d[0]
          , h = function(g) {
            var m = _("span", {
                class: "".concat(g, "-item-ellipsis")
            }, [Fi("\u2022\u2022\u2022")])
              , y = _("button", {
                class: "".concat(g, "-item-link"),
                type: "button",
                tabindex: -1
            }, [_(Df, null, null)])
              , b = _("button", {
                class: "".concat(g, "-item-link"),
                type: "button",
                tabindex: -1
            }, [_(ls, null, null)])
              , x = _("a", {
                rel: "nofollow",
                class: "".concat(g, "-item-link")
            }, [_("div", {
                class: "".concat(g, "-item-container")
            }, [_(r6e, {
                class: "".concat(g, "-item-link-icon")
            }, null), m])])
              , C = _("a", {
                rel: "nofollow",
                class: "".concat(g, "-item-link")
            }, [_("div", {
                class: "".concat(g, "-item-container")
            }, [_(l6e, {
                class: "".concat(g, "-item-link-icon")
            }, null), m])]);
            if (s.value === "rtl") {
                var S = [b, y];
                y = S[0],
                b = S[1];
                var w = [C, x];
                x = w[0],
                C = w[1]
            }
            return {
                prevIcon: y,
                nextIcon: b,
                jumpPrevIcon: x,
                jumpNextIcon: C
            }
        };
        return function() {
            var p, g = e.size, m = e.itemRender, y = m === void 0 ? r.itemRender : m, b = e.buildOptionText, x = b === void 0 ? r.buildOptionText : b, C = e.selectComponentClass, S = e.responsive, w = tt(e, h6e), T = g === "small" || !!((p = c.value) !== null && p !== void 0 && p.xs && !g && S), P = I(I(I(I({}, w), h(o.value)), {}, {
                prefixCls: o.value,
                selectPrefixCls: u.value,
                selectComponentClass: C || (T ? s6e : Au),
                locale: v.value,
                buildOptionText: x
            }, a), {}, {
                class: he(z({
                    mini: T
                }, "".concat(o.value, "-rtl"), s.value === "rtl"), a.class),
                itemRender: y
            });
            return _(v6e, P, null)
        }
    }
})
  , bw = Jn(g6e);
var m6e = function() {
    return {
        avatar: J.any,
        description: J.any,
        prefixCls: String,
        title: J.any
    }
};
const Fte = de({
    compatConfig: {
        MODE: 3
    },
    name: "AListItemMeta",
    props: m6e(),
    displayName: "AListItemMeta",
    __ANT_LIST_ITEM_META: !0,
    slots: ["avatar", "description", "title"],
    setup: function(e, n) {
        var r = n.slots
          , a = je("list", e)
          , i = a.prefixCls;
        return function() {
            var o, l, s, u, c, f, d = "".concat(i.value, "-item-meta"), v = (o = e.title) !== null && o !== void 0 ? o : (l = r.title) === null || l === void 0 ? void 0 : l.call(r), h = (s = e.description) !== null && s !== void 0 ? s : (u = r.description) === null || u === void 0 ? void 0 : u.call(r), p = (c = e.avatar) !== null && c !== void 0 ? c : (f = r.avatar) === null || f === void 0 ? void 0 : f.call(r), g = _("div", {
                class: "".concat(i.value, "-item-meta-content")
            }, [v && _("h4", {
                class: "".concat(i.value, "-item-meta-title")
            }, [v]), h && _("div", {
                class: "".concat(i.value, "-item-meta-description")
            }, [h])]);
            return _("div", {
                class: d
            }, [p && _("div", {
                class: "".concat(i.value, "-item-meta-avatar")
            }, [p]), (v || h) && g])
        }
    }
});
var Bte = Symbol("ListContextKey")
  , y6e = ["class"]
  , b6e = function() {
    return {
        prefixCls: String,
        extra: J.any,
        actions: J.array,
        grid: Object,
        colStyle: {
            type: Object,
            default: void 0
        }
    }
};
const Vte = de({
    compatConfig: {
        MODE: 3
    },
    name: "AListItem",
    inheritAttrs: !1,
    Meta: Fte,
    props: b6e(),
    slots: ["actions", "extra"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = vt(Bte, {
            grid: Q(),
            itemLayout: Q()
        })
          , o = i.itemLayout
          , l = i.grid
          , s = je("list", e)
          , u = s.prefixCls
          , c = function() {
            var v, h = ((v = r.default) === null || v === void 0 ? void 0 : v.call(r)) || [], p;
            return h.forEach(function(g) {
                Oye(g) && !pm(g) && (p = !0)
            }),
            p && h.length > 1
        }
          , f = function() {
            var v, h, p = (v = e.extra) !== null && v !== void 0 ? v : (h = r.extra) === null || h === void 0 ? void 0 : h.call(r);
            return o.value === "vertical" ? !!p : !c()
        };
        return function() {
            var d, v, h, p, g, m = a.class, y = tt(a, y6e), b = u.value, x = (d = e.extra) !== null && d !== void 0 ? d : (v = r.extra) === null || v === void 0 ? void 0 : v.call(r), C = (h = r.default) === null || h === void 0 ? void 0 : h.call(r), S = (p = e.actions) !== null && p !== void 0 ? p : bn((g = r.actions) === null || g === void 0 ? void 0 : g.call(r));
            S = S && !Array.isArray(S) ? [S] : S;
            var w = S && S.length > 0 && _("ul", {
                class: "".concat(b, "-item-action"),
                key: "actions"
            }, [S.map(function(M, A) {
                return _("li", {
                    key: "".concat(b, "-item-action-").concat(A)
                }, [M, A !== S.length - 1 && _("em", {
                    class: "".concat(b, "-item-action-split")
                }, null)])
            })])
              , T = l.value ? "div" : "li"
              , P = _(T, I(I({}, y), {}, {
                class: he("".concat(b, "-item"), z({}, "".concat(b, "-item-no-flex"), !f()), m)
            }), {
                default: function() {
                    return [o.value === "vertical" && x ? [_("div", {
                        class: "".concat(b, "-item-main"),
                        key: "content"
                    }, [C, w]), _("div", {
                        class: "".concat(b, "-item-extra"),
                        key: "extra"
                    }, [x])] : [C, w, Qt(x, {
                        key: "extra"
                    })]]
                }
            });
            return l.value ? _(lw, {
                flex: 1,
                style: e.colStyle
            }, {
                default: function() {
                    return [P]
                }
            }) : P
        }
    }
});
var x6e = function() {
    return {
        bordered: {
            type: Boolean,
            default: void 0
        },
        dataSource: J.array,
        extra: J.any,
        grid: {
            type: Object,
            default: void 0
        },
        itemLayout: String,
        loading: {
            type: [Boolean, Object],
            default: void 0
        },
        loadMore: J.any,
        pagination: {
            type: [Boolean, Object],
            default: void 0
        },
        prefixCls: String,
        rowKey: [String, Number, Function],
        renderItem: Function,
        size: String,
        split: {
            type: Boolean,
            default: void 0
        },
        header: J.any,
        footer: J.any,
        locale: {
            type: Object
        }
    }
}
  , js = de({
    compatConfig: {
        MODE: 3
    },
    name: "AList",
    Item: Vte,
    props: $t(x6e(), {
        dataSource: [],
        bordered: !1,
        split: !0,
        loading: !1,
        pagination: !1
    }),
    slots: ["extra", "loadMore", "renderItem", "header", "footer"],
    setup: function(e, n) {
        var r, a, i = n.slots;
        It(Bte, {
            grid: at(e, "grid"),
            itemLayout: at(e, "itemLayout")
        });
        var o = {
            current: 1,
            total: 0
        }
          , l = je("list", e)
          , s = l.prefixCls
          , u = l.direction
          , c = l.renderEmpty
          , f = j(function() {
            return e.pagination && We(e.pagination) === "object" ? e.pagination : {}
        })
          , d = Q((r = f.value.defaultCurrent) !== null && r !== void 0 ? r : 1)
          , v = Q((a = f.value.defaultPageSize) !== null && a !== void 0 ? a : 10);
        Te(f, function() {
            "current"in f.value && (d.value = f.value.current),
            "pageSize"in f.value && (v.value = f.value.pageSize)
        });
        var h = []
          , p = function(D) {
            return function(E, L) {
                d.value = E,
                v.value = L,
                f.value[D] && f.value[D](E, L)
            }
        }
          , g = p("onChange")
          , m = p("onShowSizeChange")
          , y = function(D) {
            var E;
            return _("div", {
                class: "".concat(s.value, "-empty-text")
            }, [((E = e.locale) === null || E === void 0 ? void 0 : E.emptyText) || D("List")])
        }
          , b = j(function() {
            return typeof e.loading == "boolean" ? {
                spinning: e.loading
            } : e.loading
        })
          , x = j(function() {
            return b.value && b.value.spinning
        })
          , C = j(function() {
            var k = "";
            switch (e.size) {
            case "large":
                k = "lg";
                break;
            case "small":
                k = "sm";
                break
            }
            return k
        })
          , S = j(function() {
            var k;
            return k = {},
            z(k, "".concat(s.value), !0),
            z(k, "".concat(s.value, "-vertical"), e.itemLayout === "vertical"),
            z(k, "".concat(s.value, "-").concat(C.value), C.value),
            z(k, "".concat(s.value, "-split"), e.split),
            z(k, "".concat(s.value, "-bordered"), e.bordered),
            z(k, "".concat(s.value, "-loading"), x.value),
            z(k, "".concat(s.value, "-grid"), !!e.grid),
            z(k, "".concat(s.value, "-rtl"), u.value === "rtl"),
            k
        })
          , w = j(function() {
            var k = I(I({}, o), {}, {
                total: e.dataSource.length,
                current: d.value,
                pageSize: v.value
            }, e.pagination || {})
              , D = Math.ceil(k.total / k.pageSize);
            return k.current > D && (k.current = D),
            k
        })
          , T = j(function() {
            var k = $e(e.dataSource);
            return e.pagination && e.dataSource.length > (w.value.current - 1) * w.value.pageSize && (k = $e(e.dataSource).splice((w.value.current - 1) * w.value.pageSize, w.value.pageSize)),
            k
        })
          , P = yh()
          , M = Qa(function() {
            for (var k = 0; k < Of.length; k += 1) {
                var D = Of[k];
                if (P.value[D])
                    return D
            }
        })
          , A = j(function() {
            if (!!e.grid) {
                var k = M.value && e.grid[M.value] ? e.grid[M.value] : e.grid.column;
                if (k)
                    return {
                        width: "".concat(100 / k, "%"),
                        maxWidth: "".concat(100 / k, "%")
                    }
            }
        })
          , O = function(D, E) {
            var L, N = (L = e.renderItem) !== null && L !== void 0 ? L : i.renderItem;
            if (!N)
                return null;
            var R, $ = We(e.rowKey);
            return $ === "function" ? R = e.rowKey(D) : $ === "string" || $ === "number" ? R = D[e.rowKey] : R = D.key,
            R || (R = "list-item-".concat(E)),
            h[E] = R,
            N({
                item: D,
                index: E
            })
        };
        return function() {
            var k, D, E, L, N, R, $, W = (k = e.loadMore) !== null && k !== void 0 ? k : (D = i.loadMore) === null || D === void 0 ? void 0 : D.call(i), B = (E = e.footer) !== null && E !== void 0 ? E : (L = i.footer) === null || L === void 0 ? void 0 : L.call(i), G = (N = e.header) !== null && N !== void 0 ? N : (R = i.header) === null || R === void 0 ? void 0 : R.call(i), K = bn(($ = i.default) === null || $ === void 0 ? void 0 : $.call(i)), V = !!(W || e.pagination || B), U = I(I({}, S.value), {}, z({}, "".concat(s.value, "-something-after-last-item"), V)), X = e.pagination ? _("div", {
                class: "".concat(s.value, "-pagination")
            }, [_(bw, I(I({}, w.value), {}, {
                onChange: g,
                onShowSizeChange: m
            }), null)]) : null, Y = x.value && _("div", {
                style: {
                    minHeight: "53px"
                }
            }, null);
            if (T.value.length > 0) {
                h.length = 0;
                var te = T.value.map(function(ae, q) {
                    return O(ae, q)
                })
                  , ne = te.map(function(ae, q) {
                    return _("div", {
                        key: h[q],
                        style: A.value
                    }, [ae])
                });
                Y = e.grid ? _(P8, {
                    gutter: e.grid.gutter
                }, {
                    default: function() {
                        return [ne]
                    }
                }) : _("ul", {
                    class: "".concat(s.value, "-items")
                }, [te])
            } else
                !K.length && !x.value && (Y = y(c.value));
            var ie = w.value.position || "bottom";
            return _("div", {
                class: U
            }, [(ie === "top" || ie === "both") && X, G && _("div", {
                class: "".concat(s.value, "-header")
            }, [G]), _(mu, b.value, {
                default: function() {
                    return [Y, K]
                }
            }), B && _("div", {
                class: "".concat(s.value, "-footer")
            }, [B]), W || (ie === "bottom" || ie === "both") && X])
        }
    }
});
js.install = function(t) {
    return t.component(js.name, js),
    t.component(js.Item.name, js.Item),
    t.component(js.Item.Meta.name, js.Item.Meta),
    t
}
;
const S6e = js;
function C6e(t) {
    var e = t.selectionStart;
    return t.value.slice(0, e)
}
function w6e(t) {
    var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""
      , n = Array.isArray(e) ? e : [e];
    return n.reduce(function(r, a) {
        var i = t.lastIndexOf(a);
        return i > r.location ? {
            location: i,
            prefix: a
        } : r
    }, {
        location: -1,
        prefix: ""
    })
}
function EB(t) {
    return (t || "").toLowerCase()
}
function _6e(t, e, n) {
    var r = t[0];
    if (!r || r === n)
        return t;
    for (var a = t, i = e.length, o = 0; o < i; o += 1)
        if (EB(a[o]) !== EB(e[o])) {
            a = a.slice(o);
            break
        } else
            o === i - 1 && (a = a.slice(i));
    return a
}
function T6e(t, e) {
    var n = e.measureLocation
      , r = e.prefix
      , a = e.targetText
      , i = e.selectionStart
      , o = e.split
      , l = t.slice(0, n);
    l[l.length - o.length] === o && (l = l.slice(0, l.length - o.length)),
    l && (l = "".concat(l).concat(o));
    var s = _6e(t.slice(i), a.slice(i - n - r.length), o);
    s.slice(0, o.length) === o && (s = s.slice(o.length));
    var u = "".concat(l).concat(r).concat(a).concat(o);
    return {
        text: "".concat(u).concat(s),
        selectionLocation: u.length
    }
}
function P6e(t, e) {
    t.setSelectionRange(e, e),
    t.blur(),
    t.focus()
}
function M6e(t, e) {
    var n = e.split;
    return !n || t.indexOf(n) === -1
}
function A6e(t, e) {
    var n = e.value
      , r = n === void 0 ? "" : n
      , a = t.toLowerCase();
    return r.toLowerCase().indexOf(a) !== -1
}
var I6e = Symbol("MentionsContextKey");
const zte = I6e;
function k6e() {}
const O6e = de({
    compatConfig: {
        MODE: 3
    },
    name: "DropdownMenu",
    props: {
        prefixCls: String,
        options: {
            type: Array,
            default: function() {
                return []
            }
        }
    },
    slots: ["notFoundContent", "option"],
    setup: function(e, n) {
        var r = n.slots, a = vt(zte, {
            activeIndex: Q(),
            loading: Q(!1)
        }), i = a.activeIndex, o = a.setActiveIndex, l = a.selectOption, s = a.onFocus, u = s === void 0 ? k6e : s, c = a.loading, f, d = function(h) {
            clearTimeout(f),
            f = setTimeout(function() {
                u(h)
            })
        };
        return Nt(function() {
            clearTimeout(f)
        }),
        function() {
            var v, h = e.prefixCls, p = e.options, g = p[i.value] || {};
            return _(Xn, {
                prefixCls: "".concat(h, "-menu"),
                activeKey: g.value,
                onSelect: function(y) {
                    var b = y.key
                      , x = p.find(function(C) {
                        var S = C.value;
                        return S === b
                    });
                    l(x)
                },
                onMousedown: d
            }, {
                default: function() {
                    return [!c.value && p.map(function(y, b) {
                        var x, C, S = y.value, w = y.disabled, T = y.label, P = T === void 0 ? y.value : T;
                        return _(ns, {
                            key: S,
                            disabled: w,
                            onMouseenter: function() {
                                o(b)
                            }
                        }, {
                            default: function() {
                                return [(x = (C = r.option) === null || C === void 0 ? void 0 : C.call(r, y)) !== null && x !== void 0 ? x : typeof P == "function" ? P({
                                    value: S,
                                    disabled: w
                                }) : P]
                            }
                        })
                    }), !c.value && p.length === 0 ? _(ns, {
                        key: "notFoundContent",
                        disabled: !0
                    }, {
                        default: function() {
                            return [(v = r.notFoundContent) === null || v === void 0 ? void 0 : v.call(r)]
                        }
                    }) : null, c.value && _(ns, {
                        key: "loading",
                        disabled: !0
                    }, {
                        default: function() {
                            return [_(mu, {
                                size: "small"
                            }, null)]
                        }
                    })]
                }
            })
        }
    }
});
var D6e = {
    bottomRight: {
        points: ["tl", "br"],
        offset: [0, 4],
        overflow: {
            adjustX: 0,
            adjustY: 1
        }
    },
    bottomLeft: {
        points: ["tr", "bl"],
        offset: [0, 4],
        overflow: {
            adjustX: 0,
            adjustY: 1
        }
    },
    topRight: {
        points: ["bl", "tr"],
        offset: [0, -4],
        overflow: {
            adjustX: 0,
            adjustY: 1
        }
    },
    topLeft: {
        points: ["br", "tl"],
        offset: [0, -4],
        overflow: {
            adjustX: 0,
            adjustY: 1
        }
    }
};
const E6e = de({
    compatConfig: {
        MODE: 3
    },
    name: "KeywordTrigger",
    props: {
        loading: {
            type: Boolean,
            default: void 0
        },
        options: {
            type: Array,
            default: function() {
                return []
            }
        },
        prefixCls: String,
        placement: String,
        visible: {
            type: Boolean,
            default: void 0
        },
        transitionName: String,
        getPopupContainer: Function,
        direction: String
    },
    slots: ["notFoundContent", "option"],
    setup: function(e, n) {
        var r = n.slots
          , a = function() {
            return "".concat(e.prefixCls, "-dropdown")
        }
          , i = function() {
            var s = e.options;
            return _(O6e, {
                prefixCls: a(),
                options: s
            }, {
                notFoundContent: r.notFoundContent,
                option: r.option
            })
        }
          , o = j(function() {
            var l = e.placement
              , s = e.direction
              , u = "topRight";
            return s === "rtl" ? u = l === "top" ? "topLeft" : "bottomLeft" : u = l === "top" ? "topRight" : "bottomRight",
            u
        });
        return function() {
            var l = e.visible
              , s = e.transitionName
              , u = e.getPopupContainer;
            return _(gh, {
                prefixCls: a(),
                popupVisible: l,
                popup: i(),
                popupPlacement: o.value,
                popupTransitionName: s,
                builtinPlacements: D6e,
                getPopupContainer: u
            }, {
                default: r.default
            })
        }
    }
});
var L6e = Kn("top", "bottom")
  , Hte = {
    autofocus: {
        type: Boolean,
        default: void 0
    },
    prefix: J.oneOfType([J.string, J.arrayOf(J.string)]),
    prefixCls: String,
    value: String,
    disabled: {
        type: Boolean,
        default: void 0
    },
    split: String,
    transitionName: String,
    placement: J.oneOf(L6e),
    character: J.any,
    characterRender: Function,
    filterOption: {
        type: [Boolean, Function]
    },
    validateSearch: Function,
    getPopupContainer: {
        type: Function
    },
    options: {
        type: Array,
        default: function() {}
    },
    loading: {
        type: Boolean,
        default: void 0
    },
    rows: [Number, String],
    direction: {
        type: String
    }
}
  , jte = I({}, Hte)
  , Wte = {
    prefix: "@",
    split: " ",
    rows: 1,
    validateSearch: M6e,
    filterOption: function() {
        return A6e
    }
};
$t(jte, Wte);
var R6e = ["prefixCls", "placement", "transitionName", "getPopupContainer", "direction"]
  , N6e = ["class", "style"];
function LB() {}
const $6e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Mentions",
    inheritAttrs: !1,
    props: $t(jte, Wte),
    slots: ["notFoundContent", "option"],
    emits: ["change", "select", "search", "focus", "blur", "pressenter"],
    setup: function(e, n) {
        var r = n.emit
          , a = n.attrs
          , i = n.expose
          , o = n.slots
          , l = Q(null)
          , s = Q(null)
          , u = Q()
          , c = en({
            value: e.value || "",
            measuring: !1,
            measureLocation: 0,
            measureText: null,
            measurePrefix: "",
            activeIndex: 0,
            isFocus: !1
        });
        pt(function() {
            c.value = e.value
        });
        var f = function(k) {
            r("change", k)
        }
          , d = function(k) {
            var D = k.target
              , E = D.value
              , L = D.composing
              , N = k.isComposing;
            N || L || f(E)
        }
          , v = function(k, D, E) {
            Wt(c, {
                measuring: !0,
                measureText: k,
                measurePrefix: D,
                measureLocation: E,
                activeIndex: 0
            })
        }
          , h = function(k) {
            Wt(c, {
                measuring: !1,
                measureLocation: 0,
                measureText: null
            }),
            k == null || k()
        }
          , p = function(k) {
            var D = k.which;
            if (!!c.measuring) {
                if (D === Ee.UP || D === Ee.DOWN) {
                    var E = P.value.length
                      , L = D === Ee.UP ? -1 : 1
                      , N = (c.activeIndex + L + E) % E;
                    c.activeIndex = N,
                    k.preventDefault()
                } else if (D === Ee.ESC)
                    h();
                else if (D === Ee.ENTER) {
                    if (k.preventDefault(),
                    !P.value.length) {
                        h();
                        return
                    }
                    var R = P.value[c.activeIndex];
                    S(R)
                }
            }
        }
          , g = function(k) {
            var D = k.key
              , E = k.which
              , L = c.measureText
              , N = c.measuring
              , R = e.prefix
              , $ = e.validateSearch
              , W = k.target;
            if (!W.composing) {
                var B = C6e(W)
                  , G = w6e(B, R)
                  , K = G.location
                  , V = G.prefix;
                if ([Ee.ESC, Ee.UP, Ee.DOWN, Ee.ENTER].indexOf(E) === -1)
                    if (K !== -1) {
                        var U = B.slice(K + V.length)
                          , X = $(U, e)
                          , Y = !!T(U).length;
                        X ? (D === V || D === "Shift" || N || U !== L && Y) && v(U, V, K) : N && h(),
                        X && r("search", U, V)
                    } else
                        N && h()
            }
        }
          , m = function(k) {
            c.measuring || r("pressenter", k)
        }
          , y = function(k) {
            x(k)
        }
          , b = function(k) {
            C(k)
        }
          , x = function(k) {
            clearTimeout(u.value);
            var D = c.isFocus;
            !D && k && r("focus", k),
            c.isFocus = !0
        }
          , C = function(k) {
            u.value = setTimeout(function() {
                c.isFocus = !1,
                h(),
                r("blur", k)
            }, 100)
        }
          , S = function(k) {
            var D = e.split
              , E = k.value
              , L = E === void 0 ? "" : E
              , N = T6e(c.value, {
                measureLocation: c.measureLocation,
                targetText: L,
                prefix: c.measurePrefix,
                selectionStart: s.value.selectionStart,
                split: D
            })
              , R = N.text
              , $ = N.selectionLocation;
            f(R),
            h(function() {
                P6e(s.value, $)
            }),
            r("select", k, c.measurePrefix)
        }
          , w = function(k) {
            c.activeIndex = k
        }
          , T = function(k) {
            var D = k || c.measureText || ""
              , E = e.filterOption
              , L = e.options.filter(function(N) {
                return E ? E(D, N) : !0
            });
            return L
        }
          , P = j(function() {
            return T()
        })
          , M = function() {
            s.value.focus()
        }
          , A = function() {
            s.value.blur()
        };
        return i({
            blur: A,
            focus: M
        }),
        It(zte, {
            activeIndex: at(c, "activeIndex"),
            setActiveIndex: w,
            selectOption: S,
            onFocus: x,
            onBlur: C,
            loading: at(e, "loading")
        }),
        ua(function() {
            yt(function() {
                c.measuring && (l.value.scrollTop = s.value.scrollTop)
            })
        }),
        function() {
            var O = c.measureLocation
              , k = c.measurePrefix
              , D = c.measuring
              , E = e.prefixCls
              , L = e.placement
              , N = e.transitionName
              , R = e.getPopupContainer
              , $ = e.direction
              , W = tt(e, R6e)
              , B = a.class
              , G = a.style
              , K = tt(a, N6e)
              , V = Et(W, ["value", "prefix", "split", "validateSearch", "filterOption", "options", "loading"])
              , U = I(I(I({}, V), K), {}, {
                onChange: LB,
                onSelect: LB,
                value: c.value,
                onInput: d,
                onBlur: b,
                onKeydown: p,
                onKeyup: g,
                onFocus: y,
                onPressenter: m
            });
            return _("div", {
                class: he(E, B),
                style: G
            }, [Fr(_("textarea", I({
                ref: s
            }, U), null), [[mh]]), D && _("div", {
                ref: l,
                class: "".concat(E, "-measure")
            }, [c.value.slice(0, O), _(E6e, {
                prefixCls: E,
                transitionName: N,
                placement: L,
                options: D ? P.value : [],
                visible: !0,
                direction: $,
                getPopupContainer: R
            }, {
                default: function() {
                    return [_("span", null, [k])]
                },
                notFoundContent: o.notFoundContent,
                option: o.option
            }), c.value.slice(O + k.length)])])
        }
    }
});
var Gte = {
    value: String,
    disabled: Boolean,
    label: [String, Number, Function]
}
  , Kte = {
    name: "Option",
    props: Gte,
    render: function(e, n) {
        var r, a = n.slots;
        return (r = a.default) === null || r === void 0 ? void 0 : r.call(a)
    }
};
de(I({
    compatConfig: {
        MODE: 3
    }
}, Kte));
var F6e = ["disabled", "getPopupContainer", "rows", "id"]
  , B6e = ["class"]
  , V6e = function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""
      , n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , r = n.prefix
      , a = r === void 0 ? "@" : r
      , i = n.split
      , o = i === void 0 ? " " : i
      , l = Array.isArray(a) ? a : [a];
    return e.split(o).map(function() {
        var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""
          , u = null;
        return l.some(function(c) {
            var f = s.slice(0, c.length);
            return f === c ? (u = c,
            !0) : !1
        }),
        u !== null ? {
            prefix: u,
            value: s.slice(u.length)
        } : null
    }).filter(function(s) {
        return !!s && !!s.value
    })
}
  , z6e = function() {
    return I(I({}, Hte), {}, {
        loading: {
            type: Boolean,
            default: void 0
        },
        onFocus: {
            type: Function
        },
        onBlur: {
            type: Function
        },
        onSelect: {
            type: Function
        },
        onChange: {
            type: Function
        },
        onPressenter: {
            type: Function
        },
        "onUpdate:value": {
            type: Function
        },
        notFoundContent: J.any,
        defaultValue: String,
        id: String
    })
}
  , ET = de({
    compatConfig: {
        MODE: 3
    },
    name: "AMentions",
    inheritAttrs: !1,
    props: z6e(),
    slots: ["notFoundContent", "option"],
    setup: function(e, n) {
        var r, a, i = n.slots, o = n.emit, l = n.attrs, s = n.expose, u = je("mentions", e), c = u.prefixCls, f = u.renderEmpty, d = u.direction, v = Q(!1), h = Q(null), p = Q((r = (a = e.value) !== null && a !== void 0 ? a : e.defaultValue) !== null && r !== void 0 ? r : ""), g = br();
        Te(function() {
            return e.value
        }, function(P) {
            p.value = P
        });
        var m = function(M) {
            v.value = !0,
            o("focus", M)
        }
          , y = function(M) {
            v.value = !1,
            o("blur", M),
            g.onFieldBlur()
        }
          , b = function() {
            for (var M = arguments.length, A = new Array(M), O = 0; O < M; O++)
                A[O] = arguments[O];
            o.apply(void 0, ["select"].concat(A)),
            v.value = !0
        }
          , x = function(M) {
            e.value === void 0 && (p.value = M),
            o("update:value", M),
            o("change", M),
            g.onFieldChange()
        }
          , C = function() {
            var M = e.notFoundContent;
            return M !== void 0 ? M : i.notFoundContent ? i.notFoundContent() : f.value("Select")
        }
          , S = function() {
            var M;
            return bn(((M = i.default) === null || M === void 0 ? void 0 : M.call(i)) || []).map(function(A) {
                var O, k;
                return I(I({}, UX(A)), {}, {
                    label: (O = A.children) === null || O === void 0 || (k = O.default) === null || k === void 0 ? void 0 : k.call(O)
                })
            })
        }
          , w = function() {
            h.value.focus()
        }
          , T = function() {
            h.value.blur()
        };
        return s({
            focus: w,
            blur: T
        }),
        function() {
            var P, M = e.disabled, A = e.getPopupContainer, O = e.rows, k = O === void 0 ? 1 : O, D = e.id, E = D === void 0 ? g.id.value : D, L = tt(e, F6e), N = l.class, R = tt(l, B6e), $ = Et(L, ["defaultValue", "onUpdate:value", "prefixCls"]), W = he(N, (P = {},
            z(P, "".concat(c.value, "-disabled"), M),
            z(P, "".concat(c.value, "-focused"), v.value),
            z(P, "".concat(c.value, "-rtl"), d.value === "rtl"),
            P)), B = I(I(I({
                prefixCls: c.value
            }, $), {}, {
                disabled: M,
                direction: d.value,
                filterOption: e.filterOption,
                getPopupContainer: A,
                options: e.options || S(),
                class: W
            }, R), {}, {
                rows: k,
                onChange: x,
                onSelect: b,
                onFocus: m,
                onBlur: y,
                ref: h,
                value: p.value,
                id: E
            });
            return _($6e, B, {
                notFoundContent: C,
                option: i.option
            })
        }
    }
})
  , Ob = de(I(I({
    compatConfig: {
        MODE: 3
    }
}, Kte), {}, {
    name: "AMentionsOption",
    props: Gte
}));
const H6e = Wt(ET, {
    Option: Ob,
    getMentions: V6e,
    install: function(e) {
        return e.component(ET.name, ET),
        e.component(Ob.name, Ob),
        e
    }
});
var j6e = ["prefixCls", "visible", "wrapClassName", "centered", "getContainer", "closeIcon", "focusTriggerAfterClose"]
  , dA = null
  , W6e = function(e) {
    dA = {
        x: e.pageX,
        y: e.pageY
    },
    setTimeout(function() {
        return dA = null
    }, 100)
};
dee() && Nn(document.documentElement, "click", W6e, !0);
var G6e = function() {
    return {
        prefixCls: String,
        visible: {
            type: Boolean,
            default: void 0
        },
        confirmLoading: {
            type: Boolean,
            default: void 0
        },
        title: J.any,
        closable: {
            type: Boolean,
            default: void 0
        },
        closeIcon: J.any,
        onOk: Function,
        onCancel: Function,
        "onUpdate:visible": Function,
        onChange: Function,
        afterClose: Function,
        centered: {
            type: Boolean,
            default: void 0
        },
        width: [String, Number],
        footer: J.any,
        okText: J.any,
        okType: String,
        cancelText: J.any,
        icon: J.any,
        maskClosable: {
            type: Boolean,
            default: void 0
        },
        forceRender: {
            type: Boolean,
            default: void 0
        },
        okButtonProps: Object,
        cancelButtonProps: Object,
        destroyOnClose: {
            type: Boolean,
            default: void 0
        },
        wrapClassName: String,
        maskTransitionName: String,
        transitionName: String,
        getContainer: {
            type: [String, Function, Boolean, Object],
            default: void 0
        },
        zIndex: Number,
        bodyStyle: {
            type: Object,
            default: void 0
        },
        maskStyle: {
            type: Object,
            default: void 0
        },
        mask: {
            type: Boolean,
            default: void 0
        },
        keyboard: {
            type: Boolean,
            default: void 0
        },
        wrapProps: Object,
        focusTriggerAfterClose: {
            type: Boolean,
            default: void 0
        },
        modalRender: Function
    }
}
  , tv = [];
const Vr = de({
    compatConfig: {
        MODE: 3
    },
    name: "AModal",
    inheritAttrs: !1,
    props: $t(G6e(), {
        width: 520,
        transitionName: "zoom",
        maskTransitionName: "fade",
        confirmLoading: !1,
        visible: !1,
        okType: "primary"
    }),
    setup: function(e, n) {
        var r = n.emit
          , a = n.slots
          , i = n.attrs
          , o = xl("Modal")
          , l = De(o, 1)
          , s = l[0]
          , u = je("modal", e)
          , c = u.prefixCls
          , f = u.rootPrefixCls
          , d = u.direction
          , v = u.getPopupContainer
          , h = function(y) {
            r("update:visible", !1),
            r("cancel", y),
            r("change", !1)
        }
          , p = function(y) {
            r("ok", y)
        }
          , g = function() {
            var y, b, x = e.okText, C = x === void 0 ? (y = a.okText) === null || y === void 0 ? void 0 : y.call(a) : x, S = e.okType, w = e.cancelText, T = w === void 0 ? (b = a.cancelText) === null || b === void 0 ? void 0 : b.call(a) : w, P = e.confirmLoading;
            return _(xt, null, [_(Pr, I({
                onClick: h
            }, e.cancelButtonProps), {
                default: function() {
                    return [T || s.value.cancelText]
                }
            }), _(Pr, I(I({}, zx(S)), {}, {
                loading: P,
                onClick: p
            }, e.okButtonProps), {
                default: function() {
                    return [C || s.value.okText]
                }
            })])
        };
        return function() {
            var m, y;
            e.prefixCls;
            var b = e.visible
              , x = e.wrapClassName
              , C = e.centered
              , S = e.getContainer
              , w = e.closeIcon
              , T = w === void 0 ? (m = a.closeIcon) === null || m === void 0 ? void 0 : m.call(a) : w
              , P = e.focusTriggerAfterClose
              , M = P === void 0 ? !0 : P
              , A = tt(e, j6e)
              , O = he(x, (y = {},
            z(y, "".concat(c.value, "-centered"), !!C),
            z(y, "".concat(c.value, "-wrap-rtl"), d.value === "rtl"),
            y));
            return _(Ate, I(I(I({}, A), i), {}, {
                getContainer: S || v.value,
                prefixCls: c.value,
                wrapClassName: O,
                visible: b,
                mousePosition: dA,
                onClose: h,
                focusTriggerAfterClose: M,
                transitionName: So(f.value, "zoom", e.transitionName),
                maskTransitionName: So(f.value, "fade", e.maskTransitionName)
            }), I(I({}, a), {}, {
                footer: a.footer || g,
                closeIcon: function() {
                    return _("span", {
                        class: "".concat(c.value, "-close-x")
                    }, [T || _(Sl, {
                        class: "".concat(c.value, "-close-icon")
                    }, null)])
                }
            }))
        }
    }
});
var K6e = function() {
    var e = Q(!1);
    return Nt(function() {
        e.value = !0
    }),
    e
};
const Ute = K6e;
var U6e = {
    type: {
        type: String
    },
    actionFn: Function,
    close: Function,
    autofocus: Boolean,
    prefixCls: String,
    buttonProps: Object,
    emitEvent: Boolean,
    quitOnNullishReturnValue: Boolean
};
function RB(t) {
    return !!(t && !!t.then)
}
const vA = de({
    compatConfig: {
        MODE: 3
    },
    name: "ActionButton",
    props: U6e,
    setup: function(e, n) {
        var r = n.slots, a = Q(!1), i = Q(), o = Q(!1), l, s = Ute();
        ct(function() {
            e.autofocus && (l = setTimeout(function() {
                var f;
                return (f = i.value.$el) === null || f === void 0 ? void 0 : f.focus()
            }))
        }),
        Nt(function() {
            clearTimeout(l)
        });
        var u = function(d) {
            var v = e.close;
            !RB(d) || (o.value = !0,
            d.then(function() {
                s.value || (o.value = !1),
                v.apply(void 0, arguments),
                a.value = !1
            }, function(h) {
                s.value || (o.value = !1),
                a.value = !1
            }))
        }
          , c = function(d) {
            var v = e.actionFn
              , h = e.close
              , p = h === void 0 ? function() {}
            : h;
            if (!a.value) {
                if (a.value = !0,
                !v) {
                    p();
                    return
                }
                var g;
                if (e.emitEvent) {
                    if (g = v(d),
                    e.quitOnNullishReturnValue && !RB(g)) {
                        a.value = !1,
                        p(d);
                        return
                    }
                } else if (v.length)
                    g = v(p),
                    a.value = !1;
                else if (g = v(),
                !g) {
                    p();
                    return
                }
                u(g)
            }
        };
        return function() {
            var f = e.type
              , d = e.prefixCls
              , v = e.buttonProps;
            return _(Pr, I(I(I({}, zx(f)), {}, {
                onClick: c,
                loading: o.value,
                prefixCls: d
            }, v), {}, {
                ref: i
            }), r)
        }
    }
});
function ip(t) {
    return typeof t == "function" ? t() : t
}
const Y6e = de({
    name: "ConfirmDialog",
    inheritAttrs: !1,
    props: ["icon", "onCancel", "onOk", "close", "closable", "zIndex", "afterClose", "visible", "keyboard", "centered", "getContainer", "maskStyle", "okButtonProps", "cancelButtonProps", "okType", "prefixCls", "okCancel", "width", "mask", "maskClosable", "okText", "cancelText", "autoFocusButton", "transitionName", "maskTransitionName", "type", "title", "content", "direction", "rootPrefixCls", "bodyStyle", "closeIcon", "modalRender", "focusTriggerAfterClose", "wrapClassName"],
    setup: function(e, n) {
        var r = n.attrs
          , a = xl("Modal")
          , i = De(a, 1)
          , o = i[0];
        return function() {
            var l = e.icon
              , s = e.onCancel
              , u = e.onOk
              , c = e.close
              , f = e.closable
              , d = f === void 0 ? !1 : f
              , v = e.zIndex
              , h = e.afterClose
              , p = e.visible
              , g = e.keyboard
              , m = e.centered
              , y = e.getContainer
              , b = e.maskStyle
              , x = e.okButtonProps
              , C = e.cancelButtonProps
              , S = e.okCancel
              , w = S === void 0 ? !0 : S
              , T = e.width
              , P = T === void 0 ? 416 : T
              , M = e.mask
              , A = M === void 0 ? !0 : M
              , O = e.maskClosable
              , k = O === void 0 ? !1 : O
              , D = e.type
              , E = e.title
              , L = e.content
              , N = e.direction
              , R = e.closeIcon
              , $ = e.modalRender
              , W = e.focusTriggerAfterClose
              , B = e.rootPrefixCls
              , G = e.bodyStyle
              , K = e.wrapClassName
              , V = e.okType || "primary"
              , U = e.prefixCls || "ant-modal"
              , X = "".concat(U, "-confirm")
              , Y = r.style || {}
              , te = ip(e.okText) || (w ? o.value.okText : o.value.justOkText)
              , ne = ip(e.cancelText) || o.value.cancelText
              , ie = e.autoFocusButton === null ? !1 : e.autoFocusButton || "ok"
              , ae = he(X, "".concat(X, "-").concat(D), "".concat(U, "-").concat(D), z({}, "".concat(X, "-rtl"), N === "rtl"), r.class)
              , q = w && _(vA, {
                actionFn: s,
                close: c,
                autofocus: ie === "cancel",
                buttonProps: C,
                prefixCls: "".concat(B, "-btn")
            }, {
                default: function() {
                    return [ne]
                }
            });
            return _(Vr, {
                prefixCls: U,
                class: ae,
                wrapClassName: he(z({}, "".concat(X, "-centered"), !!m), K),
                onCancel: function(H) {
                    return c({
                        triggerCancel: !0
                    }, H)
                },
                visible: p,
                title: "",
                footer: "",
                transitionName: So(B, "zoom", e.transitionName),
                maskTransitionName: So(B, "fade", e.maskTransitionName),
                mask: A,
                maskClosable: k,
                maskStyle: b,
                style: Y,
                bodyStyle: G,
                width: P,
                zIndex: v,
                afterClose: h,
                keyboard: g,
                centered: m,
                getContainer: y,
                closable: d,
                closeIcon: R,
                modalRender: $,
                focusTriggerAfterClose: W
            }, {
                default: function() {
                    return [_("div", {
                        class: "".concat(X, "-body-wrapper")
                    }, [_("div", {
                        class: "".concat(X, "-body")
                    }, [ip(l), E === void 0 ? null : _("span", {
                        class: "".concat(X, "-title")
                    }, [ip(E)]), _("div", {
                        class: "".concat(X, "-content")
                    }, [ip(L)])]), _("div", {
                        class: "".concat(X, "-btns")
                    }, [q, _(vA, {
                        type: V,
                        actionFn: u,
                        close: c,
                        autofocus: ie === "ok",
                        buttonProps: x,
                        prefixCls: "".concat(B, "-btn")
                    }, {
                        default: function() {
                            return [te]
                        }
                    })])])]
                }
            })
        }
    }
});
var q6e = function(e) {
    var n = document.createDocumentFragment()
      , r = I(I({}, Et(e, ["parentContext", "appContext"])), {}, {
        close: o,
        visible: !0
    })
      , a = null;
    function i() {
        a && (_x(null, n),
        a.component.update(),
        a = null);
        for (var c = arguments.length, f = new Array(c), d = 0; d < c; d++)
            f[d] = arguments[d];
        var v = f.some(function(g) {
            return g && g.triggerCancel
        });
        e.onCancel && v && e.onCancel.apply(e, f);
        for (var h = 0; h < tv.length; h++) {
            var p = tv[h];
            if (p === o) {
                tv.splice(h, 1);
                break
            }
        }
    }
    function o() {
        for (var c = this, f = arguments.length, d = new Array(f), v = 0; v < f; v++)
            d[v] = arguments[v];
        r = I(I({}, r), {}, {
            visible: !1,
            afterClose: function() {
                typeof e.afterClose == "function" && e.afterClose(),
                i.apply(c, d)
            }
        }),
        l(r)
    }
    function l(c) {
        typeof c == "function" ? r = c(r) : r = I(I({}, r), c),
        a && (Wt(a.component.props, r),
        a.component.update())
    }
    var s = function(f) {
        var d = Ra
          , v = d.prefixCls
          , h = f.prefixCls || "".concat(v, "-modal");
        return _(df, I(I({}, d), {}, {
            notUpdateGlobalConfig: !0,
            prefixCls: v
        }), {
            default: function() {
                return [_(Y6e, I(I({}, f), {}, {
                    rootPrefixCls: v,
                    prefixCls: h
                }), null)]
            }
        })
    };
    function u(c) {
        var f = _(s, I({}, c));
        return f.appContext = e.parentContext || e.appContext || f.appContext,
        _x(f, n),
        f
    }
    return a = u(r),
    tv.push(o),
    {
        destroy: o,
        update: l
    }
};
const Om = q6e;
function X6e(t) {
    return I(I({
        icon: function() {
            return _(HC, null, null)
        },
        okCancel: !1
    }, t), {}, {
        type: "warning"
    })
}
function Z6e(t) {
    return I(I({
        icon: function() {
            return _(KO, null, null)
        },
        okCancel: !1
    }, t), {}, {
        type: "info"
    })
}
function Q6e(t) {
    return I(I({
        icon: function() {
            return _(WO, null, null)
        },
        okCancel: !1
    }, t), {}, {
        type: "success"
    })
}
function J6e(t) {
    return I(I({
        icon: function() {
            return _(YO, null, null)
        },
        okCancel: !1
    }, t), {}, {
        type: "error"
    })
}
function e5e(t) {
    return I(I({
        icon: function() {
            return _(HC, null, null)
        },
        okCancel: !0
    }, t), {}, {
        type: "confirm"
    })
}
function Yte(t) {
    return Om(X6e(t))
}
Vr.info = function(e) {
    return Om(Z6e(e))
}
;
Vr.success = function(e) {
    return Om(Q6e(e))
}
;
Vr.error = function(e) {
    return Om(J6e(e))
}
;
Vr.warning = Yte;
Vr.warn = Yte;
Vr.confirm = function(e) {
    return Om(e5e(e))
}
;
Vr.destroyAll = function() {
    for (; tv.length; ) {
        var e = tv.pop();
        e && e()
    }
}
;
Vr.install = function(t) {
    return t.component(Vr.name, Vr),
    t
}
;
function t5e(t, e, n) {
    t = ZD(t),
    e = XD(e);
    var r = e ? qD(t) : 0;
    return e && r < e ? t + IJ(e - r, n) : t
}
var qte = function(e) {
    var n = e.value, r = e.formatter, a = e.precision, i = e.decimalSeparator, o = e.groupSeparator, l = o === void 0 ? "" : o, s = e.prefixCls, u;
    if (typeof r == "function")
        u = r({
            value: n
        });
    else {
        var c = String(n)
          , f = c.match(/^(-?)(\d*)(\.(\d+))?$/);
        if (!f)
            u = c;
        else {
            var d = f[1]
              , v = f[2] || "0"
              , h = f[4] || "";
            v = v.replace(/\B(?=(\d{3})+(?!\d))/g, l),
            typeof a == "number" && (h = t5e(h, a, "0").slice(0, a)),
            h && (h = "".concat(i).concat(h)),
            u = [_("span", {
                key: "int",
                class: "".concat(s, "-content-value-int")
            }, [d, v]), h && _("span", {
                key: "decimal",
                class: "".concat(s, "-content-value-decimal")
            }, [h])]
        }
    }
    return _("span", {
        class: "".concat(s, "-content-value")
    }, [u])
};
qte.displayName = "StatisticNumber";
const n5e = qte;
var r5e = function() {
    return {
        prefixCls: String,
        width: {
            type: [Number, String]
        }
    }
}
  , a5e = de({
    compatConfig: {
        MODE: 3
    },
    name: "SkeletonTitle",
    props: r5e(),
    setup: function(e) {
        return function() {
            var n = e.prefixCls
              , r = e.width
              , a = typeof r == "number" ? "".concat(r, "px") : r;
            return _("h3", {
                class: n,
                style: {
                    width: a
                }
            }, null)
        }
    }
});
const xw = a5e;
var i5e = function() {
    return {
        prefixCls: String,
        width: {
            type: [Number, String, Array]
        },
        rows: Number
    }
}
  , o5e = de({
    compatConfig: {
        MODE: 3
    },
    name: "SkeletonParagraph",
    props: i5e(),
    setup: function(e) {
        var n = function(a) {
            var i = e.width
              , o = e.rows
              , l = o === void 0 ? 2 : o;
            if (Array.isArray(i))
                return i[a];
            if (l - 1 === a)
                return i
        };
        return function() {
            var r = e.prefixCls
              , a = e.rows
              , i = $e(Array(a)).map(function(o, l) {
                var s = n(l);
                return _("li", {
                    key: l,
                    style: {
                        width: typeof s == "number" ? "".concat(s, "px") : s
                    }
                }, null)
            });
            return _("ul", {
                class: r
            }, [i])
        }
    }
});
const l5e = o5e;
var Sw = function() {
    return {
        prefixCls: String,
        size: [String, Number],
        shape: String,
        active: {
            type: Boolean,
            default: void 0
        }
    }
}
  , Xte = function(e) {
    var n, r, a = e.prefixCls, i = e.size, o = e.shape, l = he((n = {},
    z(n, "".concat(a, "-lg"), i === "large"),
    z(n, "".concat(a, "-sm"), i === "small"),
    n)), s = he((r = {},
    z(r, "".concat(a, "-circle"), o === "circle"),
    z(r, "".concat(a, "-square"), o === "square"),
    z(r, "".concat(a, "-round"), o === "round"),
    r)), u = typeof i == "number" ? {
        width: "".concat(i, "px"),
        height: "".concat(i, "px"),
        lineHeight: "".concat(i, "px")
    } : {};
    return _("span", {
        class: he(a, l, s),
        style: u
    }, null)
};
Xte.displayName = "SkeletonElement";
const Cw = Xte;
var s5e = function() {
    return {
        active: {
            type: Boolean,
            default: void 0
        },
        loading: {
            type: Boolean,
            default: void 0
        },
        prefixCls: String,
        avatar: {
            type: [Boolean, Object],
            default: void 0
        },
        title: {
            type: [Boolean, Object],
            default: void 0
        },
        paragraph: {
            type: [Boolean, Object],
            default: void 0
        },
        round: {
            type: Boolean,
            default: void 0
        }
    }
};
function LT(t) {
    return t && We(t) === "object" ? t : {}
}
function u5e(t, e) {
    return t && !e ? {
        size: "large",
        shape: "square"
    } : {
        size: "large",
        shape: "circle"
    }
}
function c5e(t, e) {
    return !t && e ? {
        width: "38%"
    } : t && e ? {
        width: "50%"
    } : {}
}
function f5e(t, e) {
    var n = {};
    return (!t || !e) && (n.width = "61%"),
    !t && e ? n.rows = 3 : n.rows = 2,
    n
}
var d5e = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASkeleton",
    props: $t(s5e(), {
        avatar: !1,
        title: !0,
        paragraph: !0
    }),
    setup: function(e, n) {
        var r = n.slots
          , a = je("skeleton", e)
          , i = a.prefixCls
          , o = a.direction;
        return function() {
            var l, s = e.loading, u = e.avatar, c = e.title, f = e.paragraph, d = e.active, v = e.round, h = i.value;
            if (s || e.loading === void 0) {
                var p, g = !!u || u === "", m = !!c || c === "", y = !!f || f === "", b;
                if (g) {
                    var x = I(I({
                        prefixCls: "".concat(h, "-avatar")
                    }, u5e(m, y)), LT(u));
                    b = _("div", {
                        class: "".concat(h, "-header")
                    }, [_(Cw, x, null)])
                }
                var C;
                if (m || y) {
                    var S;
                    if (m) {
                        var w = I(I({
                            prefixCls: "".concat(h, "-title")
                        }, c5e(g, y)), LT(c));
                        S = _(xw, w, null)
                    }
                    var T;
                    if (y) {
                        var P = I(I({
                            prefixCls: "".concat(h, "-paragraph")
                        }, f5e(g, m)), LT(f));
                        T = _(l5e, P, null)
                    }
                    C = _("div", {
                        class: "".concat(h, "-content")
                    }, [S, T])
                }
                var M = he(h, (p = {},
                z(p, "".concat(h, "-with-avatar"), g),
                z(p, "".concat(h, "-active"), d),
                z(p, "".concat(h, "-rtl"), o.value === "rtl"),
                z(p, "".concat(h, "-round"), v),
                p));
                return _("div", {
                    class: M
                }, [b, C])
            }
            return (l = r.default) === null || l === void 0 ? void 0 : l.call(r)
        }
    }
});
const ga = d5e;
var Zte = function() {
    return {
        prefixCls: String,
        decimalSeparator: String,
        groupSeparator: String,
        format: String,
        value: {
            type: [String, Number, Object]
        },
        valueStyle: {
            type: Object,
            default: void 0
        },
        valueRender: J.any,
        formatter: J.any,
        precision: Number,
        prefix: J.any,
        suffix: J.any,
        title: J.any,
        loading: {
            type: Boolean,
            default: void 0
        }
    }
};
const Ul = de({
    compatConfig: {
        MODE: 3
    },
    name: "AStatistic",
    props: $t(Zte(), {
        decimalSeparator: ".",
        groupSeparator: ",",
        loading: !1
    }),
    slots: ["title", "prefix", "suffix", "formatter"],
    setup: function(e, n) {
        var r = n.slots
          , a = je("statistic", e)
          , i = a.prefixCls
          , o = a.direction;
        return function() {
            var l, s, u, c, f, d, v, h = e.value, p = h === void 0 ? 0 : h, g = e.valueStyle, m = e.valueRender, y = i.value, b = (l = e.title) !== null && l !== void 0 ? l : (s = r.title) === null || s === void 0 ? void 0 : s.call(r), x = (u = e.prefix) !== null && u !== void 0 ? u : (c = r.prefix) === null || c === void 0 ? void 0 : c.call(r), C = (f = e.suffix) !== null && f !== void 0 ? f : (d = r.suffix) === null || d === void 0 ? void 0 : d.call(r), S = (v = e.formatter) !== null && v !== void 0 ? v : r.formatter, w = _(n5e, I({
                "data-for-update": Date.now()
            }, I(I({}, e), {}, {
                prefixCls: y,
                value: p,
                formatter: S
            })), null);
            return m && (w = m(w)),
            _("div", {
                class: [y, z({}, "".concat(y, "-rtl"), o.value === "rtl")]
            }, [b && _("div", {
                class: "".concat(y, "-title")
            }, [b]), _(ga, {
                paragraph: !1,
                loading: e.loading
            }, {
                default: function() {
                    return [_("div", {
                        style: g,
                        class: "".concat(y, "-content")
                    }, [x && _("span", {
                        class: "".concat(y, "-content-prefix")
                    }, [x]), w, C && _("span", {
                        class: "".concat(y, "-content-suffix")
                    }, [C])])]
                }
            })])
        }
    }
});
var v5e = [["Y", 1e3 * 60 * 60 * 24 * 365], ["M", 1e3 * 60 * 60 * 24 * 30], ["D", 1e3 * 60 * 60 * 24], ["H", 1e3 * 60 * 60], ["m", 1e3 * 60], ["s", 1e3], ["S", 1]];
function h5e(t, e) {
    var n = t
      , r = /\[[^\]]*]/g
      , a = (e.match(r) || []).map(function(s) {
        return s.slice(1, -1)
    })
      , i = e.replace(r, "[]")
      , o = v5e.reduce(function(s, u) {
        var c = De(u, 2)
          , f = c[0]
          , d = c[1];
        if (s.indexOf(f) !== -1) {
            var v = Math.floor(n / d);
            return n -= v * d,
            s.replace(new RegExp("".concat(f, "+"),"g"), function(h) {
                var p = h.length;
                return kJ(v.toString(), p, "0")
            })
        }
        return s
    }, i)
      , l = 0;
    return o.replace(r, function() {
        var s = a[l];
        return l += 1,
        s
    })
}
function p5e(t, e) {
    var n = e.format
      , r = n === void 0 ? "" : n
      , a = new Date(t).getTime()
      , i = Date.now()
      , o = Math.max(a - i, 0);
    return h5e(o, r)
}
var g5e = 1e3 / 30;
function RT(t) {
    return new Date(t).getTime()
}
var m5e = function() {
    return I(I({}, Zte()), {}, {
        value: [Number, String, Object],
        format: String,
        onFinish: Function,
        onChange: Function
    })
};
const y5e = de({
    compatConfig: {
        MODE: 3
    },
    name: "AStatisticCountdown",
    props: $t(m5e(), {
        format: "HH:mm:ss"
    }),
    setup: function(e, n) {
        var r = n.emit
          , a = n.slots
          , i = Q()
          , o = Q()
          , l = function() {
            var v = e.value
              , h = RT(v);
            h >= Date.now() ? s() : u()
        }
          , s = function() {
            if (!i.value) {
                var v = RT(e.value);
                i.value = setInterval(function() {
                    o.value.$forceUpdate(),
                    v > Date.now() && r("change", v - Date.now()),
                    l()
                }, g5e)
            }
        }
          , u = function() {
            var v = e.value;
            if (i.value) {
                clearInterval(i.value),
                i.value = void 0;
                var h = RT(v);
                h < Date.now() && r("finish")
            }
        }
          , c = function(v) {
            var h = v.value
              , p = v.config
              , g = e.format;
            return p5e(h, I(I({}, p), {}, {
                format: g
            }))
        }
          , f = function(v) {
            return v
        };
        return ct(function() {
            l()
        }),
        ua(function() {
            l()
        }),
        Nt(function() {
            u()
        }),
        function() {
            var d = e.value;
            return _(Ul, I({
                ref: o
            }, I(I({}, Et(e, ["onFinish", "onChange"])), {}, {
                value: d,
                valueRender: f,
                formatter: c
            })), a)
        }
    }
});
Ul.Countdown = y5e;
Ul.install = function(t) {
    return t.component(Ul.name, Ul),
    t.component(Ul.Countdown.name, Ul.Countdown),
    t
}
;
var b5e = Ul.Countdown
  , x5e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"
            }
        }]
    },
    name: "arrow-left",
    theme: "outlined"
};
const S5e = x5e;
function NB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            C5e(t, a, n[a])
        })
    }
    return t
}
function C5e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var oE = function(e, n) {
    var r = NB({}, e, n.attrs);
    return _(lt, NB({}, r, {
        icon: S5e
    }), null)
};
oE.displayName = "ArrowLeftOutlined";
oE.inheritAttrs = !1;
const w5e = oE;
var _5e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"
            }
        }]
    },
    name: "arrow-right",
    theme: "outlined"
};
const T5e = _5e;
function $B(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            P5e(t, a, n[a])
        })
    }
    return t
}
function P5e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var lE = function(e, n) {
    var r = $B({}, e, n.attrs);
    return _(lt, $B({}, r, {
        icon: T5e
    }), null)
};
lE.displayName = "ArrowRightOutlined";
lE.inheritAttrs = !1;
const M5e = lE;
var A5e = ["noStyle", "disabled"]
  , I5e = {
    border: 0,
    background: "transparent",
    padding: 0,
    lineHeight: "inherit",
    display: "inline-block"
}
  , k5e = de({
    compatConfig: {
        MODE: 3
    },
    name: "TransButton",
    inheritAttrs: !1,
    props: {
        noStyle: {
            type: Boolean,
            default: void 0
        },
        onClick: Function,
        disabled: {
            type: Boolean,
            default: void 0
        },
        autofocus: {
            type: Boolean,
            default: void 0
        }
    },
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = n.attrs
          , o = n.expose
          , l = Q()
          , s = function(h) {
            var p = h.keyCode;
            p === Ee.ENTER && h.preventDefault()
        }
          , u = function(h) {
            var p = h.keyCode;
            p === Ee.ENTER && a("click", h)
        }
          , c = function(h) {
            a("click", h)
        }
          , f = function() {
            l.value && l.value.focus()
        }
          , d = function() {
            l.value && l.value.blur()
        };
        return ct(function() {
            e.autofocus && f()
        }),
        o({
            focus: f,
            blur: d
        }),
        function() {
            var v, h = e.noStyle, p = e.disabled, g = tt(e, A5e), m = {};
            return h || (m = I({}, I5e)),
            p && (m.pointerEvents = "none"),
            _("div", I(I(I({
                role: "button",
                tabindex: 0,
                ref: l
            }, g), i), {}, {
                onClick: c,
                onKeydown: s,
                onKeyup: u,
                style: I(I({}, m), i.style || {})
            }), [(v = r.default) === null || v === void 0 ? void 0 : v.call(r)])
        }
    }
});
const oS = k5e;
var O5e = function() {
    return {
        backIcon: J.any,
        prefixCls: String,
        title: J.any,
        subTitle: J.any,
        breadcrumb: J.object,
        tags: J.any,
        footer: J.any,
        extra: J.any,
        avatar: J.object,
        ghost: {
            type: Boolean,
            default: void 0
        },
        onBack: Function
    }
}
  , D5e = de({
    compatConfig: {
        MODE: 3
    },
    name: "APageHeader",
    props: O5e(),
    slots: ["backIcon", "avatar", "breadcrumb", "title", "subTitle", "tags", "extra", "footer"],
    setup: function(e, n) {
        var r = n.emit
          , a = n.slots
          , i = je("page-header", e)
          , o = i.prefixCls
          , l = i.direction
          , s = i.pageHeader
          , u = Q(!1)
          , c = Ute()
          , f = function(x) {
            var C = x.width;
            c.value || (u.value = C < 768)
        }
          , d = j(function() {
            var b, x, C;
            return (b = (x = e.ghost) !== null && x !== void 0 ? x : (C = s.value) === null || C === void 0 ? void 0 : C.ghost) !== null && b !== void 0 ? b : !0
        })
          , v = function() {
            var x, C, S;
            return (x = (C = e.backIcon) !== null && C !== void 0 ? C : (S = a.backIcon) === null || S === void 0 ? void 0 : S.call(a)) !== null && x !== void 0 ? x : l.value === "rtl" ? _(M5e, null, null) : _(w5e, null, null)
        }
          , h = function(x) {
            return !x || !e.onBack ? null : _(ch, {
                componentName: "PageHeader",
                children: function(S) {
                    var w = S.back;
                    return _("div", {
                        class: "".concat(o.value, "-back")
                    }, [_(oS, {
                        onClick: function(P) {
                            r("back", P)
                        },
                        class: "".concat(o.value, "-back-button"),
                        "aria-label": w
                    }, {
                        default: function() {
                            return [x]
                        }
                    })])
                }
            }, null)
        }
          , p = function() {
            var x;
            return e.breadcrumb ? _(hf, e.breadcrumb, null) : (x = a.breadcrumb) === null || x === void 0 ? void 0 : x.call(a)
        }
          , g = function() {
            var x, C, S, w, T, P, M, A, O, k = e.avatar, D = (x = e.title) !== null && x !== void 0 ? x : (C = a.title) === null || C === void 0 ? void 0 : C.call(a), E = (S = e.subTitle) !== null && S !== void 0 ? S : (w = a.subTitle) === null || w === void 0 ? void 0 : w.call(a), L = (T = e.tags) !== null && T !== void 0 ? T : (P = a.tags) === null || P === void 0 ? void 0 : P.call(a), N = (M = e.extra) !== null && M !== void 0 ? M : (A = a.extra) === null || A === void 0 ? void 0 : A.call(a), R = "".concat(o.value, "-heading"), $ = D || E || L || N;
            if (!$)
                return null;
            var W = v()
              , B = h(W)
              , G = B || k || $;
            return _("div", {
                class: R
            }, [G && _("div", {
                class: "".concat(R, "-left")
            }, [B, k ? _(vf, k, null) : (O = a.avatar) === null || O === void 0 ? void 0 : O.call(a), D && _("span", {
                class: "".concat(R, "-title"),
                title: typeof D == "string" ? D : void 0
            }, [D]), E && _("span", {
                class: "".concat(R, "-sub-title"),
                title: typeof E == "string" ? E : void 0
            }, [E]), L && _("span", {
                class: "".concat(R, "-tags")
            }, [L])]), N && _("span", {
                class: "".concat(R, "-extra")
            }, [N])])
        }
          , m = function() {
            var x, C, S = (x = e.footer) !== null && x !== void 0 ? x : ar((C = a.footer) === null || C === void 0 ? void 0 : C.call(a));
            return kye(S) ? null : _("div", {
                class: "".concat(o.value, "-footer")
            }, [S])
        }
          , y = function(x) {
            return _("div", {
                class: "".concat(o.value, "-content")
            }, [x])
        };
        return function() {
            var b, x, C, S = ((b = e.breadcrumb) === null || b === void 0 ? void 0 : b.routes) || a.breadcrumb, w = e.footer || a.footer, T = bn((x = a.default) === null || x === void 0 ? void 0 : x.call(a)), P = he(o.value, (C = {
                "has-breadcrumb": S,
                "has-footer": w
            },
            z(C, "".concat(o.value, "-ghost"), d.value),
            z(C, "".concat(o.value, "-rtl"), l.value === "rtl"),
            z(C, "".concat(o.value, "-compact"), u.value),
            C));
            return _(Vi, {
                onResize: f
            }, {
                default: function() {
                    return [_("div", {
                        class: P
                    }, [p(), g(), T.length ? y(T) : null, m()])]
                }
            })
        }
    }
});
const E5e = Jn(D5e);
var L5e = ["placement", "overlayClassName"]
  , R5e = function() {
    return I(I({}, LD()), {}, {
        prefixCls: String,
        content: J.any,
        title: J.any,
        okType: {
            type: String,
            default: "primary"
        },
        disabled: {
            type: Boolean,
            default: !1
        },
        okText: J.any,
        cancelText: J.any,
        icon: J.any,
        okButtonProps: {
            type: Object,
            default: void 0
        },
        cancelButtonProps: {
            type: Object,
            default: void 0
        },
        showCancel: {
            type: Boolean,
            default: !0
        },
        onConfirm: Function,
        onCancel: Function
    })
}
  , N5e = de({
    compatConfig: {
        MODE: 3
    },
    name: "APopconfirm",
    props: $t(R5e(), I(I({}, BQ()), {}, {
        trigger: "click",
        transitionName: "zoom-big",
        placement: "top",
        mouseEnterDelay: .1,
        mouseLeaveDelay: .1,
        arrowPointAtCenter: !1,
        autoAdjustOverflow: !0,
        okType: "primary",
        disabled: !1
    })),
    slots: ["title", "content", "okText", "icon", "cancelText", "cancelButton", "okButton"],
    emits: ["update:visible", "visibleChange"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = n.expose;
        ct(function() {
            sn(e.defaultVisible === void 0, "Popconfirm", "'defaultVisible' is deprecated, please use 'v-model:visible'")
        });
        var o = Q();
        i({
            getPopupDomNode: function() {
                var O, k;
                return (O = o.value) === null || O === void 0 || (k = O.getPopupDomNode) === null || k === void 0 ? void 0 : k.call(O)
            }
        });
        var l = zn(!1, {
            value: at(e, "visible"),
            defaultValue: e.defaultVisible
        })
          , s = De(l, 2)
          , u = s[0]
          , c = s[1]
          , f = function(O, k) {
            e.visible === void 0 && c(O),
            a("update:visible", O),
            a("visibleChange", O, k)
        }
          , d = function(O) {
            f(!1, O)
        }
          , v = function(O) {
            var k;
            return (k = e.onConfirm) === null || k === void 0 ? void 0 : k.call(e, O)
        }
          , h = function(O) {
            var k;
            f(!1, O),
            (k = e.onCancel) === null || k === void 0 || k.call(e, O)
        }
          , p = function(O) {
            O.keyCode === Ee.ESC && u && f(!1, O)
        }
          , g = function(O) {
            var k = e.disabled;
            k || f(O)
        }
          , m = je("popconfirm", e)
          , y = m.prefixCls
          , b = m.getPrefixCls
          , x = j(function() {
            return b()
        })
          , C = j(function() {
            return b("popover")
        })
          , S = j(function() {
            return b("btn")
        })
          , w = xl("Popconfirm", yo.Popconfirm)
          , T = De(w, 1)
          , P = T[0]
          , M = function() {
            var O, k, D, E, L = e.okButtonProps, N = e.cancelButtonProps, R = e.title, $ = R === void 0 ? (O = r.title) === null || O === void 0 ? void 0 : O.call(r) : R, W = e.cancelText, B = W === void 0 ? (k = r.cancel) === null || k === void 0 ? void 0 : k.call(r) : W, G = e.okText, K = G === void 0 ? (D = r.okText) === null || D === void 0 ? void 0 : D.call(r) : G, V = e.okType, U = e.icon, X = U === void 0 ? (E = r.icon) === null || E === void 0 ? void 0 : E.call(r) : U, Y = e.showCancel, te = Y === void 0 ? !0 : Y, ne = r.cancelButton, ie = r.okButton, ae = I({
                onClick: h,
                size: "small"
            }, N), q = I(I({
                onClick: v
            }, zx(V)), {}, {
                size: "small"
            }, L);
            return _("div", {
                class: "".concat(C.value, "-inner-content")
            }, [_("div", {
                class: "".concat(C.value, "-message")
            }, [X || _(gm, null, null), _("div", {
                class: "".concat(C.value, "-message-title")
            }, [$])]), _("div", {
                class: "".concat(C.value, "-buttons")
            }, [te ? ne ? ne(ae) : _(Pr, ae, {
                default: function() {
                    return [B || P.value.cancelText]
                }
            }) : null, ie ? ie(q) : _(vA, {
                buttonProps: I(I({
                    size: "small"
                }, zx(V)), L),
                actionFn: v,
                close: d,
                prefixCls: S.value,
                quitOnNullishReturnValue: !0,
                emitEvent: !0
            }, {
                default: function() {
                    return [K || P.value.okText]
                }
            })])])
        };
        return function() {
            var A, O = e.placement, k = e.overlayClassName, D = tt(e, L5e), E = Et(D, ["title", "content", "cancelText", "okText", "onUpdate:visible", "onConfirm", "onCancel"]), L = he(y.value, k);
            return _(vo, I(I({}, E), {}, {
                prefixCls: C.value,
                placement: O,
                onVisibleChange: g,
                visible: u.value,
                overlayClassName: L,
                transitionName: So(x.value, "zoom-big", e.transitionName),
                ref: o
            }), {
                default: function() {
                    return [Yxe(((A = r.default) === null || A === void 0 ? void 0 : A.call(r)) || [], {
                        onKeydown: function($) {
                            p($)
                        }
                    }, !1)]
                },
                title: M
            })
        }
    }
});
const $5e = Jn(N5e);
var Qte = Kn("normal", "exception", "active", "success")
  , F5e = Kn("line", "circle", "dashboard")
  , B5e = Kn("default", "small")
  , ww = function() {
    return {
        prefixCls: String,
        type: J.oneOf(F5e),
        percent: Number,
        format: {
            type: Function
        },
        status: J.oneOf(Qte),
        showInfo: {
            type: Boolean,
            default: void 0
        },
        strokeWidth: Number,
        strokeLinecap: String,
        strokeColor: {
            type: [String, Object],
            default: void 0
        },
        trailColor: String,
        width: Number,
        success: {
            type: Object,
            default: function() {
                return {}
            }
        },
        gapDegree: Number,
        gapPosition: String,
        size: J.oneOf(B5e),
        steps: Number,
        successPercent: Number,
        title: String
    }
};
function gf(t) {
    return !t || t < 0 ? 0 : t > 100 ? 100 : t
}
function lS(t) {
    var e = t.success
      , n = t.successPercent
      , r = n;
    return e && "progress"in e && (sn(!1, "Progress", "`success.progress` is deprecated. Please use `success.percent` instead."),
    r = e.progress),
    e && "percent"in e && (r = e.percent),
    r
}
var V5e = ["from", "to", "direction"]
  , z5e = function() {
    return I(I({}, ww()), {}, {
        prefixCls: String,
        direction: {
            type: String
        }
    })
}
  , H5e = function(e) {
    var n = [];
    return Object.keys(e).forEach(function(r) {
        var a = parseFloat(r.replace(/%/g, ""));
        isNaN(a) || n.push({
            key: a,
            value: e[r]
        })
    }),
    n = n.sort(function(r, a) {
        return r.key - a.key
    }),
    n.map(function(r) {
        var a = r.key
          , i = r.value;
        return "".concat(i, " ").concat(a, "%")
    }).join(", ")
}
  , j5e = function(e, n) {
    var r = e.from
      , a = r === void 0 ? uv.blue : r
      , i = e.to
      , o = i === void 0 ? uv.blue : i
      , l = e.direction
      , s = l === void 0 ? n === "rtl" ? "to left" : "to right" : l
      , u = tt(e, V5e);
    if (Object.keys(u).length !== 0) {
        var c = H5e(u);
        return {
            backgroundImage: "linear-gradient(".concat(s, ", ").concat(c, ")")
        }
    }
    return {
        backgroundImage: "linear-gradient(".concat(s, ", ").concat(a, ", ").concat(o, ")")
    }
};
const W5e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Line",
    props: z5e(),
    setup: function(e, n) {
        var r = n.slots
          , a = j(function() {
            var u = e.strokeColor
              , c = e.direction;
            return u && typeof u != "string" ? j5e(u, c) : {
                background: u
            }
        })
          , i = j(function() {
            return e.trailColor ? {
                backgroundColor: e.trailColor
            } : void 0
        })
          , o = j(function() {
            var u = e.percent
              , c = e.strokeWidth
              , f = e.strokeLinecap
              , d = e.size;
            return I({
                width: "".concat(gf(u), "%"),
                height: "".concat(c || (d === "small" ? 6 : 8), "px"),
                borderRadius: f === "square" ? 0 : ""
            }, a.value)
        })
          , l = j(function() {
            return lS(e)
        })
          , s = j(function() {
            var u = e.strokeWidth
              , c = e.size
              , f = e.strokeLinecap
              , d = e.success;
            return {
                width: "".concat(gf(l.value), "%"),
                height: "".concat(u || (c === "small" ? 6 : 8), "px"),
                borderRadius: f === "square" ? 0 : "",
                backgroundColor: d == null ? void 0 : d.strokeColor
            }
        });
        return function() {
            var u;
            return _(xt, null, [_("div", {
                class: "".concat(e.prefixCls, "-outer")
            }, [_("div", {
                class: "".concat(e.prefixCls, "-inner"),
                style: i.value
            }, [_("div", {
                class: "".concat(e.prefixCls, "-bg"),
                style: o.value
            }, null), l.value !== void 0 ? _("div", {
                class: "".concat(e.prefixCls, "-success-bg"),
                style: s.value
            }, null) : null])]), (u = r.default) === null || u === void 0 ? void 0 : u.call(r)])
        }
    }
});
var G5e = {
    percent: 0,
    prefixCls: "vc-progress",
    strokeColor: "#2db7f5",
    strokeLinecap: "round",
    strokeWidth: 1,
    trailColor: "#D9D9D9",
    trailWidth: 1
}
  , K5e = function(e) {
    var n = Q(null);
    return ua(function() {
        var r = Date.now()
          , a = !1;
        e.value.forEach(function(i) {
            var o = (i == null ? void 0 : i.$el) || i;
            if (!!o) {
                a = !0;
                var l = o.style;
                l.transitionDuration = ".3s, .3s, .3s, .06s",
                n.value && r - n.value < 100 && (l.transitionDuration = "0s, 0s")
            }
        }),
        a && (n.value = Date.now())
    }),
    e
}
  , U5e = {
    gapDegree: Number,
    gapPosition: {
        type: String
    },
    percent: {
        type: [Array, Number]
    },
    prefixCls: String,
    strokeColor: {
        type: [Object, String, Array]
    },
    strokeLinecap: {
        type: String
    },
    strokeWidth: Number,
    trailColor: String,
    trailWidth: Number,
    transition: String
}
  , Y5e = ["prefixCls", "strokeWidth", "trailWidth", "gapDegree", "gapPosition", "trailColor", "strokeLinecap", "strokeColor"]
  , FB = 0;
function BB(t) {
    return +t.replace("%", "")
}
function VB(t) {
    return Array.isArray(t) ? t : [t]
}
function zB(t, e, n, r) {
    var a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0
      , i = arguments.length > 5 ? arguments[5] : void 0
      , o = 50 - r / 2
      , l = 0
      , s = -o
      , u = 0
      , c = -2 * o;
    switch (i) {
    case "left":
        l = -o,
        s = 0,
        u = 2 * o,
        c = 0;
        break;
    case "right":
        l = o,
        s = 0,
        u = -2 * o,
        c = 0;
        break;
    case "bottom":
        s = o,
        c = 2 * o;
        break
    }
    var f = "M 50,50 m ".concat(l, ",").concat(s, `
   a `).concat(o, ",").concat(o, " 0 1 1 ").concat(u, ",").concat(-c, `
   a `).concat(o, ",").concat(o, " 0 1 1 ").concat(-u, ",").concat(c)
      , d = Math.PI * 2 * o
      , v = {
        stroke: n,
        strokeDasharray: "".concat(e / 100 * (d - a), "px ").concat(d, "px"),
        strokeDashoffset: "-".concat(a / 2 + t / 100 * (d - a), "px"),
        transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"
    };
    return {
        pathString: f,
        pathStyle: v
    }
}
const q5e = de({
    compatConfig: {
        MODE: 3
    },
    name: "VCCircle",
    props: $t(U5e, G5e),
    setup: function(e) {
        FB += 1;
        var n = Q(FB)
          , r = j(function() {
            return VB(e.percent)
        })
          , a = j(function() {
            return VB(e.strokeColor)
        })
          , i = y8()
          , o = De(i, 2)
          , l = o[0]
          , s = o[1];
        K5e(s);
        var u = function() {
            var f = e.prefixCls
              , d = e.strokeWidth
              , v = e.strokeLinecap
              , h = e.gapDegree
              , p = e.gapPosition
              , g = 0;
            return r.value.map(function(m, y) {
                var b = a.value[y] || a.value[a.value.length - 1]
                  , x = Object.prototype.toString.call(b) === "[object Object]" ? "url(#".concat(f, "-gradient-").concat(n.value, ")") : ""
                  , C = zB(g, m, b, d, h, p)
                  , S = C.pathString
                  , w = C.pathStyle;
                g += m;
                var T = {
                    key: y,
                    d: S,
                    stroke: x,
                    "stroke-linecap": v,
                    "stroke-width": d,
                    opacity: m === 0 ? 0 : 1,
                    "fill-opacity": "0",
                    class: "".concat(f, "-circle-path"),
                    style: w
                };
                return _("path", I({
                    ref: l(y)
                }, T), null)
            })
        };
        return function() {
            var c = e.prefixCls
              , f = e.strokeWidth
              , d = e.trailWidth
              , v = e.gapDegree
              , h = e.gapPosition
              , p = e.trailColor
              , g = e.strokeLinecap;
            e.strokeColor;
            var m = tt(e, Y5e)
              , y = zB(0, 100, p, f, v, h)
              , b = y.pathString
              , x = y.pathStyle;
            delete m.percent;
            var C = a.value.find(function(w) {
                return Object.prototype.toString.call(w) === "[object Object]"
            })
              , S = {
                d: b,
                stroke: p,
                "stroke-linecap": g,
                "stroke-width": d || f,
                "fill-opacity": "0",
                class: "".concat(c, "-circle-trail"),
                style: x
            };
            return _("svg", I({
                class: "".concat(c, "-circle"),
                viewBox: "0 0 100 100"
            }, m), [C && _("defs", null, [_("linearGradient", {
                id: "".concat(c, "-gradient-").concat(n.value),
                x1: "100%",
                y1: "0%",
                x2: "0%",
                y2: "0%"
            }, [Object.keys(C).sort(function(w, T) {
                return BB(w) - BB(T)
            }).map(function(w, T) {
                return _("stop", {
                    key: T,
                    offset: w,
                    "stop-color": C[w]
                }, null)
            })])]), _("path", S, null), u().reverse()])
        }
    }
});
function X5e(t) {
    var e = t.percent
      , n = t.success
      , r = t.successPercent
      , a = gf(lS({
        success: n,
        successPercent: r
    }));
    return [a, gf(gf(e) - a)]
}
function Z5e(t) {
    var e = t.success
      , n = e === void 0 ? {} : e
      , r = t.strokeColor
      , a = n.strokeColor;
    return [a || uv.green, r || null]
}
const Q5e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Circle",
    inheritAttrs: !1,
    props: ww(),
    setup: function(e, n) {
        var r = n.slots
          , a = j(function() {
            if (e.gapDegree || e.gapDegree === 0)
                return e.gapDegree;
            if (e.type === "dashboard")
                return 75
        })
          , i = j(function() {
            var d = e.width || 120;
            return {
                width: typeof d == "number" ? "".concat(d, "px") : d,
                height: typeof d == "number" ? "".concat(d, "px") : d,
                fontSize: "".concat(d * .15 + 6, "px")
            }
        })
          , o = j(function() {
            return e.strokeWidth || 6
        })
          , l = j(function() {
            return e.gapPosition || e.type === "dashboard" && "bottom" || "top"
        })
          , s = j(function() {
            return X5e(e)
        })
          , u = j(function() {
            return Object.prototype.toString.call(e.strokeColor) === "[object Object]"
        })
          , c = j(function() {
            return Z5e({
                success: e.success,
                strokeColor: e.strokeColor
            })
        })
          , f = j(function() {
            var d;
            return d = {},
            z(d, "".concat(e.prefixCls, "-inner"), !0),
            z(d, "".concat(e.prefixCls, "-circle-gradient"), u.value),
            d
        });
        return function() {
            var d;
            return _("div", {
                class: f.value,
                style: i.value
            }, [_(q5e, {
                percent: s.value,
                strokeWidth: o.value,
                trailWidth: o.value,
                strokeColor: c.value,
                strokeLinecap: e.strokeLinecap,
                trailColor: e.trailColor,
                prefixCls: e.prefixCls,
                gapDegree: a.value,
                gapPosition: l.value
            }, null), (d = r.default) === null || d === void 0 ? void 0 : d.call(r)])
        }
    }
});
var J5e = function() {
    return I(I({}, ww()), {}, {
        steps: Number,
        size: {
            type: String
        },
        strokeColor: String,
        trailColor: String
    })
};
const eLe = de({
    compatConfig: {
        MODE: 3
    },
    name: "Steps",
    props: J5e(),
    setup: function(e, n) {
        var r = n.slots
          , a = j(function() {
            return Math.round(e.steps * ((e.percent || 0) / 100))
        })
          , i = j(function() {
            return e.size === "small" ? 2 : 14
        })
          , o = j(function() {
            for (var l = e.steps, s = e.strokeWidth, u = s === void 0 ? 8 : s, c = e.strokeColor, f = e.trailColor, d = e.prefixCls, v = [], h = 0; h < l; h += 1) {
                var p, g = (p = {},
                z(p, "".concat(d, "-steps-item"), !0),
                z(p, "".concat(d, "-steps-item-active"), h <= a.value - 1),
                p);
                v.push(_("div", {
                    key: h,
                    class: g,
                    style: {
                        backgroundColor: h <= a.value - 1 ? c : f,
                        width: "".concat(i.value, "px"),
                        height: "".concat(u, "px")
                    }
                }, null))
            }
            return v
        });
        return function() {
            var l;
            return _("div", {
                class: "".concat(e.prefixCls, "-steps-outer")
            }, [o.value, (l = r.default) === null || l === void 0 ? void 0 : l.call(r)])
        }
    }
})
  , tLe = de({
    compatConfig: {
        MODE: 3
    },
    name: "AProgress",
    props: $t(ww(), {
        type: "line",
        percent: 0,
        showInfo: !0,
        trailColor: null,
        size: "default",
        strokeLinecap: "round"
    }),
    slots: ["format"],
    setup: function(e, n) {
        var r = n.slots
          , a = je("progress", e)
          , i = a.prefixCls
          , o = a.direction;
        sn(e.successPercent == null, "Progress", "`successPercent` is deprecated. Please use `success.percent` instead.");
        var l = j(function() {
            var f, d = e.type, v = e.showInfo, h = e.size, p = i.value;
            return f = {},
            z(f, p, !0),
            z(f, "".concat(p, "-").concat(d === "dashboard" && "circle" || d), !0),
            z(f, "".concat(p, "-show-info"), v),
            z(f, "".concat(p, "-").concat(h), h),
            z(f, "".concat(p, "-rtl"), o.value === "rtl"),
            f
        })
          , s = j(function() {
            var f = e.percent
              , d = f === void 0 ? 0 : f
              , v = lS(e);
            return parseInt(v !== void 0 ? v.toString() : d.toString(), 10)
        })
          , u = j(function() {
            var f = e.status;
            return Qte.indexOf(f) < 0 && s.value >= 100 ? "success" : f || "normal"
        })
          , c = function() {
            var d = e.showInfo
              , v = e.format
              , h = e.type
              , p = e.percent
              , g = e.title
              , m = lS(e);
            if (!d)
                return null;
            var y, b = v || (r == null ? void 0 : r.format) || function(C) {
                return "".concat(C, "%")
            }
            , x = h === "line";
            return v || r != null && r.format || u.value !== "exception" && u.value !== "success" ? y = b(gf(p), gf(m)) : u.value === "exception" ? y = _(x ? ms : Sl, null, null) : u.value === "success" && (y = _(x ? mm : JC, null, null)),
            _("span", {
                class: "".concat(i.value, "-text"),
                title: g === void 0 && typeof y == "string" ? y : void 0
            }, [y])
        };
        return function() {
            var f = e.type, d = e.steps, v = e.strokeColor, h = e.title, p = c(), g;
            f === "line" ? g = d ? _(eLe, I(I({}, e), {}, {
                strokeColor: typeof v == "string" ? v : void 0,
                prefixCls: i.value,
                steps: d
            }), {
                default: function() {
                    return [p]
                }
            }) : _(W5e, I(I({}, e), {}, {
                prefixCls: i.value
            }), {
                default: function() {
                    return [p]
                }
            }) : (f === "circle" || f === "dashboard") && (g = _(Q5e, I(I({}, e), {}, {
                prefixCls: i.value
            }), {
                default: function() {
                    return [p]
                }
            }));
            var m = I(I({}, l.value), {}, z({}, "".concat(i.value, "-status-").concat(u.value), !0));
            return _("div", {
                class: m,
                title: h
            }, [g])
        }
    }
})
  , sE = Jn(tLe);
function nLe(t) {
    var e = t.pageXOffset
      , n = "scrollLeft";
    if (typeof e != "number") {
        var r = t.document;
        e = r.documentElement[n],
        typeof e != "number" && (e = r.body[n])
    }
    return e
}
function rLe(t) {
    var e, n, r = t.ownerDocument, a = r.body, i = r && r.documentElement, o = t.getBoundingClientRect();
    return e = o.left,
    n = o.top,
    e -= i.clientLeft || a.clientLeft || 0,
    n -= i.clientTop || a.clientTop || 0,
    {
        left: e,
        top: n
    }
}
function aLe(t) {
    var e = rLe(t)
      , n = t.ownerDocument
      , r = n.defaultView || n.parentWindow;
    return e.left += nLe(r),
    e.left
}
var iLe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"
            }
        }]
    },
    name: "star",
    theme: "filled"
};
const oLe = iLe;
function HB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            lLe(t, a, n[a])
        })
    }
    return t
}
function lLe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var uE = function(e, n) {
    var r = HB({}, e, n.attrs);
    return _(lt, HB({}, r, {
        icon: oLe
    }), null)
};
uE.displayName = "StarFilled";
uE.inheritAttrs = !1;
const sLe = uE;
var uLe = {
    value: Number,
    index: Number,
    prefixCls: String,
    allowHalf: {
        type: Boolean,
        default: void 0
    },
    disabled: {
        type: Boolean,
        default: void 0
    },
    character: J.any,
    characterRender: Function,
    focused: {
        type: Boolean,
        default: void 0
    },
    count: Number,
    onClick: Function,
    onHover: Function
};
const cLe = de({
    compatConfig: {
        MODE: 3
    },
    name: "Star",
    inheritAttrs: !1,
    props: uLe,
    emits: ["hover", "click"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = function(c) {
            var f = e.index;
            a("hover", c, f)
        }
          , o = function(c) {
            var f = e.index;
            a("click", c, f)
        }
          , l = function(c) {
            var f = e.index;
            c.keyCode === 13 && a("click", c, f)
        }
          , s = j(function() {
            var u = e.prefixCls
              , c = e.index
              , f = e.value
              , d = e.allowHalf
              , v = e.focused
              , h = c + 1
              , p = u;
            return f === 0 && c === 0 && v ? p += " ".concat(u, "-focused") : d && f + .5 >= h && f < h ? (p += " ".concat(u, "-half ").concat(u, "-active"),
            v && (p += " ".concat(u, "-focused"))) : (p += h <= f ? " ".concat(u, "-full") : " ".concat(u, "-zero"),
            h === f && v && (p += " ".concat(u, "-focused"))),
            p
        });
        return function() {
            var u = e.disabled
              , c = e.prefixCls
              , f = e.characterRender
              , d = e.index
              , v = e.count
              , h = e.value
              , p = Dn(r, e, "character")
              , g = _("li", {
                class: s.value
            }, [_("div", {
                onClick: u ? null : o,
                onKeydown: u ? null : l,
                onMousemove: u ? null : i,
                role: "radio",
                "aria-checked": h > d ? "true" : "false",
                "aria-posinset": d + 1,
                "aria-setsize": v,
                tabindex: u ? -1 : 0
            }, [_("div", {
                class: "".concat(c, "-first")
            }, [p]), _("div", {
                class: "".concat(c, "-second")
            }, [p])])]);
            return f && (g = f(g, e)),
            g
        }
    }
});
var fLe = function() {
    return {
        prefixCls: String,
        count: Number,
        value: Number,
        allowHalf: {
            type: Boolean,
            default: void 0
        },
        allowClear: {
            type: Boolean,
            default: void 0
        },
        tooltips: Array,
        disabled: {
            type: Boolean,
            default: void 0
        },
        character: J.any,
        autofocus: {
            type: Boolean,
            default: void 0
        },
        tabindex: J.oneOfType([J.number, J.string]),
        direction: String,
        id: String,
        onChange: Function,
        onHoverChange: Function,
        "onUpdate:value": Function,
        onFocus: Function,
        onBlur: Function,
        onKeydown: Function
    }
}
  , dLe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ARate",
    inheritAttrs: !1,
    props: $t(fLe(), {
        value: 0,
        count: 5,
        allowHalf: !1,
        allowClear: !0,
        tabindex: 0,
        direction: "ltr"
    }),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.emit
          , o = n.expose
          , l = je("rate", e)
          , s = l.prefixCls
          , u = l.direction
          , c = br()
          , f = Q()
          , d = y8()
          , v = De(d, 2)
          , h = v[0]
          , p = v[1]
          , g = en({
            value: e.value,
            focused: !1,
            cleanedValue: null,
            hoverValue: void 0
        });
        Te(function() {
            return e.value
        }, function() {
            g.value = e.value
        });
        var m = function(E) {
            return eu(p.value.get(E))
        }
          , y = function(E, L) {
            var N = u.value === "rtl"
              , R = E + 1;
            if (e.allowHalf) {
                var $ = m(E)
                  , W = aLe($)
                  , B = $.clientWidth;
                (N && L - W > B / 2 || !N && L - W < B / 2) && (R -= .5)
            }
            return R
        }
          , b = function(E) {
            e.value === void 0 && (g.value = E),
            i("update:value", E),
            i("change", E),
            c.onFieldChange()
        }
          , x = function(E, L) {
            var N = y(L, E.pageX);
            N !== g.cleanedValue && (g.hoverValue = N,
            g.cleanedValue = null),
            i("hoverChange", N)
        }
          , C = function() {
            g.hoverValue = void 0,
            g.cleanedValue = null,
            i("hoverChange", void 0)
        }
          , S = function(E, L) {
            var N = e.allowClear
              , R = y(L, E.pageX)
              , $ = !1;
            N && ($ = R === g.value),
            C(),
            b($ ? 0 : R),
            g.cleanedValue = $ ? R : null
        }
          , w = function(E) {
            g.focused = !0,
            i("focus", E)
        }
          , T = function(E) {
            g.focused = !1,
            i("blur", E),
            c.onFieldBlur()
        }
          , P = function(E) {
            var L = E.keyCode
              , N = e.count
              , R = e.allowHalf
              , $ = u.value === "rtl";
            L === Ee.RIGHT && g.value < N && !$ ? (R ? g.value += .5 : g.value += 1,
            b(g.value),
            E.preventDefault()) : L === Ee.LEFT && g.value > 0 && !$ || L === Ee.RIGHT && g.value > 0 && $ ? (R ? g.value -= .5 : g.value -= 1,
            b(g.value),
            E.preventDefault()) : L === Ee.LEFT && g.value < N && $ && (R ? g.value += .5 : g.value += 1,
            b(g.value),
            E.preventDefault()),
            i("keydown", E)
        }
          , M = function() {
            e.disabled || f.value.focus()
        }
          , A = function() {
            e.disabled || f.value.blur()
        };
        o({
            focus: M,
            blur: A
        }),
        ct(function() {
            var D = e.autofocus
              , E = e.disabled;
            D && !E && M()
        });
        var O = function(E, L) {
            var N = L.index
              , R = e.tooltips;
            return R ? _(vo, {
                title: R[N]
            }, {
                default: function() {
                    return [E]
                }
            }) : E
        }
          , k = Dn(r, e, "character") || _(sLe, null, null);
        return function() {
            for (var D = e.count, E = e.allowHalf, L = e.disabled, N = e.tabindex, R = e.id, $ = R === void 0 ? c.id.value : R, W = a.class, B = a.style, G = [], K = L ? "".concat(s.value, "-disabled") : "", V = 0; V < D; V++)
                G.push(_(cLe, {
                    ref: h(V),
                    key: V,
                    index: V,
                    count: D,
                    disabled: L,
                    prefixCls: "".concat(s.value, "-star"),
                    allowHalf: E,
                    value: g.hoverValue === void 0 ? g.value : g.hoverValue,
                    onClick: S,
                    onHover: x,
                    character: k,
                    characterRender: O,
                    focused: g.focused
                }, null));
            var U = he(s.value, K, W, z({}, "".concat(s.value, "-rtl"), u.value === "rtl"));
            return _("ul", I(I({}, a), {}, {
                id: $,
                class: U,
                style: B,
                onMouseleave: L ? null : C,
                tabindex: L ? -1 : N,
                onFocus: L ? null : w,
                onBlur: L ? null : T,
                onKeydown: L ? null : P,
                ref: f,
                role: "radiogroup"
            }), [G])
        }
    }
});
const vLe = Jn(dLe);
var hLe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
            }
        }]
    },
    name: "warning",
    theme: "filled"
};
const pLe = hLe;
function jB(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            gLe(t, a, n[a])
        })
    }
    return t
}
function gLe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var cE = function(e, n) {
    var r = jB({}, e, n.attrs);
    return _(lt, jB({}, r, {
        icon: pLe
    }), null)
};
cE.displayName = "WarningFilled";
cE.inheritAttrs = !1;
const mLe = cE;
var yLe = function() {
    return _("svg", {
        width: "252",
        height: "294"
    }, [_("defs", null, [_("path", {
        d: "M0 .387h251.772v251.772H0z"
    }, null)]), _("g", {
        fill: "none",
        "fill-rule": "evenodd"
    }, [_("g", {
        transform: "translate(0 .012)"
    }, [_("mask", {
        fill: "#fff"
    }, null), _("path", {
        d: "M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",
        fill: "#E4EBF7",
        mask: "url(#b)"
    }, null)]), _("path", {
        d: "M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",
        fill: "#FFF"
    }, null), _("path", {
        d: "M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",
        stroke: "#FFF",
        "stroke-width": "2"
    }, null), _("path", {
        d: "M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",
        fill: "#FFF"
    }, null), _("path", {
        d: "M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",
        fill: "#FFF"
    }, null), _("path", {
        d: "M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",
        stroke: "#FFF",
        "stroke-width": "2"
    }, null), _("path", {
        d: "M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",
        fill: "#FFF"
    }, null), _("path", {
        d: "M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",
        stroke: "#FFF",
        "stroke-width": "2"
    }, null), _("path", {
        stroke: "#FFF",
        "stroke-width": "2",
        d: "M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"
    }, null), _("path", {
        d: "M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",
        fill: "#FFF"
    }, null), _("path", {
        d: "M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",
        fill: "#1890FF"
    }, null), _("path", {
        d: "M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",
        fill: "#FFF"
    }, null), _("path", {
        d: "M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",
        fill: "#FFB594"
    }, null), _("path", {
        d: "M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",
        fill: "#FFF"
    }, null), _("path", {
        d: "M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",
        fill: "#CBD1D1"
    }, null), _("path", {
        d: "M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",
        fill: "#2B0849"
    }, null), _("path", {
        d: "M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",
        fill: "#A4AABA"
    }, null), _("path", {
        d: "M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",
        fill: "#CBD1D1"
    }, null), _("path", {
        d: "M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",
        fill: "#2B0849"
    }, null), _("path", {
        d: "M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",
        fill: "#A4AABA"
    }, null), _("path", {
        d: "M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",
        fill: "#7BB2F9"
    }, null), _("path", {
        d: "M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",
        stroke: "#648BD8",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M107.275 222.1s2.773-1.11 6.102-3.884",
        stroke: "#648BD8",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",
        stroke: "#648BD8",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",
        fill: "#192064"
    }, null), _("path", {
        d: "M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",
        fill: "#FFF"
    }, null), _("path", {
        d: "M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",
        fill: "#192064"
    }, null), _("path", {
        d: "M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",
        stroke: "#648BD8",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",
        fill: "#520038"
    }, null), _("path", {
        d: "M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",
        fill: "#552950"
    }, null), _("path", {
        stroke: "#DB836E",
        "stroke-width": "1.118",
        "stroke-linecap": "round",
        "stroke-linejoin": "round",
        d: "M110.13 74.84l-.896 1.61-.298 4.357h-2.228"
    }, null), _("path", {
        d: "M110.846 74.481s1.79-.716 2.506.537",
        stroke: "#5C2552",
        "stroke-width": "1.118",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",
        stroke: "#DB836E",
        "stroke-width": "1.118",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M103.287 72.93s1.83 1.113 4.137.954",
        stroke: "#5C2552",
        "stroke-width": "1.118",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",
        stroke: "#DB836E",
        "stroke-width": "1.118",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",
        stroke: "#E4EBF7",
        "stroke-width": "1.101",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M129.405 122.865s-5.272 7.403-9.422 10.768",
        stroke: "#E4EBF7",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M119.306 107.329s.452 4.366-2.127 32.062",
        stroke: "#E4EBF7",
        "stroke-width": "1.101",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",
        fill: "#F2D7AD"
    }, null), _("path", {
        d: "M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",
        fill: "#F4D19D"
    }, null), _("path", {
        d: "M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",
        fill: "#F2D7AD"
    }, null), _("path", {
        fill: "#CC9B6E",
        d: "M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"
    }, null), _("path", {
        d: "M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",
        fill: "#F4D19D"
    }, null), _("path", {
        fill: "#CC9B6E",
        d: "M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"
    }, null), _("path", {
        fill: "#CC9B6E",
        d: "M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"
    }, null), _("path", {
        d: "M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",
        stroke: "#DB836E",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",
        stroke: "#DB836E",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",
        stroke: "#DB836E",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",
        fill: "#5BA02E"
    }, null), _("path", {
        d: "M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",
        fill: "#92C110"
    }, null), _("path", {
        d: "M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",
        fill: "#F2D7AD"
    }, null), _("path", {
        d: "M88.979 89.48s7.776 5.384 16.6 2.842",
        stroke: "#E4EBF7",
        "stroke-width": "1.101",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null)])])
};
const bLe = yLe;
var xLe = function() {
    return _("svg", {
        width: "254",
        height: "294"
    }, [_("defs", null, [_("path", {
        d: "M0 .335h253.49v253.49H0z"
    }, null), _("path", {
        d: "M0 293.665h253.49V.401H0z"
    }, null)]), _("g", {
        fill: "none",
        "fill-rule": "evenodd"
    }, [_("g", {
        transform: "translate(0 .067)"
    }, [_("mask", {
        fill: "#fff"
    }, null), _("path", {
        d: "M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",
        fill: "#E4EBF7",
        mask: "url(#b)"
    }, null)]), _("path", {
        d: "M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",
        fill: "#FFF"
    }, null), _("path", {
        d: "M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",
        stroke: "#FFF",
        "stroke-width": "2"
    }, null), _("path", {
        d: "M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",
        fill: "#FFF"
    }, null), _("path", {
        d: "M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",
        fill: "#FFF"
    }, null), _("path", {
        d: "M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",
        fill: "#FF603B"
    }, null), _("path", {
        d: "M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",
        fill: "#FFF"
    }, null), _("path", {
        d: "M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",
        fill: "#FFB594"
    }, null), _("path", {
        d: "M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",
        fill: "#FFF"
    }, null), _("path", {
        d: "M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",
        fill: "#FFB594"
    }, null), _("path", {
        d: "M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",
        fill: "#520038"
    }, null), _("path", {
        d: "M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",
        fill: "#552950"
    }, null), _("path", {
        stroke: "#DB836E",
        "stroke-width": "1.063",
        "stroke-linecap": "round",
        "stroke-linejoin": "round",
        d: "M99.206 73.644l-.9 1.62-.3 4.38h-2.24"
    }, null), _("path", {
        d: "M99.926 73.284s1.8-.72 2.52.54",
        stroke: "#5C2552",
        "stroke-width": "1.117",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",
        stroke: "#DB836E",
        "stroke-width": "1.117",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M92.326 71.724s1.84 1.12 4.16.96",
        stroke: "#5C2552",
        "stroke-width": "1.117",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",
        stroke: "#DB836E",
        "stroke-width": "1.063",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",
        stroke: "#E4EBF7",
        "stroke-width": "1.136",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",
        fill: "#FFF"
    }, null), _("path", {
        d: "M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",
        stroke: "#E4EBF7",
        "stroke-width": "1.085",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",
        fill: "#FFF"
    }, null), _("path", {
        d: "M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",
        fill: "#CBD1D1"
    }, null), _("path", {
        d: "M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",
        fill: "#2B0849"
    }, null), _("path", {
        d: "M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",
        fill: "#A4AABA"
    }, null), _("path", {
        d: "M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",
        fill: "#CBD1D1"
    }, null), _("path", {
        d: "M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",
        fill: "#2B0849"
    }, null), _("path", {
        d: "M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",
        fill: "#A4AABA"
    }, null), _("path", {
        d: "M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",
        fill: "#7BB2F9"
    }, null), _("path", {
        d: "M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",
        stroke: "#648BD8",
        "stroke-width": "1.085",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M96.973 219.373s2.882-1.153 6.34-4.034",
        stroke: "#648BD8",
        "stroke-width": "1.032",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",
        stroke: "#648BD8",
        "stroke-width": "1.085",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",
        fill: "#192064"
    }, null), _("path", {
        d: "M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",
        fill: "#FFF"
    }, null), _("path", {
        d: "M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",
        fill: "#192064"
    }, null), _("path", {
        d: "M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",
        stroke: "#648BD8",
        "stroke-width": "1.085",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",
        stroke: "#E4EBF7",
        "stroke-width": "1.085",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",
        stroke: "#DB836E",
        "stroke-width": ".774",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",
        stroke: "#E59788",
        "stroke-width": ".774",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",
        stroke: "#E59788",
        "stroke-width": ".774",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M109.278 112.533s3.38-3.613 7.575-4.662",
        stroke: "#E4EBF7",
        "stroke-width": "1.085",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M107.375 123.006s9.697-2.745 11.445-.88",
        stroke: "#E59788",
        "stroke-width": ".774",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",
        stroke: "#BFCDDD",
        "stroke-width": "2",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",
        fill: "#A3B4C6"
    }, null), _("path", {
        d: "M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",
        fill: "#A3B4C6"
    }, null), _("mask", {
        fill: "#fff"
    }, null), _("path", {
        fill: "#A3B4C6",
        mask: "url(#d)",
        d: "M154.098 190.096h70.513v-84.617h-70.513z"
    }, null), _("path", {
        d: "M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",
        fill: "#BFCDDD",
        mask: "url(#d)"
    }, null), _("path", {
        d: "M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",
        fill: "#FFF",
        mask: "url(#d)"
    }, null), _("path", {
        d: "M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",
        fill: "#BFCDDD",
        mask: "url(#d)"
    }, null), _("path", {
        d: "M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",
        stroke: "#7C90A5",
        "stroke-width": "1.124",
        "stroke-linecap": "round",
        "stroke-linejoin": "round",
        mask: "url(#d)"
    }, null), _("path", {
        d: "M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",
        fill: "#FFF",
        mask: "url(#d)"
    }, null), _("path", {
        d: "M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",
        fill: "#BFCDDD",
        mask: "url(#d)"
    }, null), _("path", {
        d: "M177.259 207.217v11.52M201.05 207.217v11.52",
        stroke: "#A3B4C6",
        "stroke-width": "1.124",
        "stroke-linecap": "round",
        "stroke-linejoin": "round",
        mask: "url(#d)"
    }, null), _("path", {
        d: "M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",
        fill: "#5BA02E",
        mask: "url(#d)"
    }, null), _("path", {
        d: "M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",
        fill: "#92C110",
        mask: "url(#d)"
    }, null), _("path", {
        d: "M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",
        fill: "#F2D7AD",
        mask: "url(#d)"
    }, null)])])
};
const SLe = xLe;
var CLe = function() {
    return _("svg", {
        width: "251",
        height: "294"
    }, [_("g", {
        fill: "none",
        "fill-rule": "evenodd"
    }, [_("path", {
        d: "M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",
        fill: "#E4EBF7"
    }, null), _("path", {
        d: "M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",
        fill: "#FFF"
    }, null), _("path", {
        d: "M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",
        stroke: "#FFF",
        "stroke-width": "2"
    }, null), _("path", {
        d: "M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",
        fill: "#FFF"
    }, null), _("path", {
        d: "M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",
        fill: "#FFF"
    }, null), _("path", {
        d: "M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",
        stroke: "#FFF",
        "stroke-width": "2"
    }, null), _("path", {
        d: "M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",
        fill: "#FFF"
    }, null), _("path", {
        d: "M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",
        stroke: "#FFF",
        "stroke-width": "2"
    }, null), _("path", {
        stroke: "#FFF",
        "stroke-width": "2",
        d: "M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"
    }, null), _("path", {
        d: "M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",
        fill: "#A26EF4"
    }, null), _("path", {
        d: "M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",
        fill: "#FFF"
    }, null), _("path", {
        d: "M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",
        fill: "#FFF"
    }, null), _("path", {
        d: "M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",
        fill: "#5BA02E"
    }, null), _("path", {
        d: "M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",
        fill: "#92C110"
    }, null), _("path", {
        d: "M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",
        fill: "#F2D7AD"
    }, null), _("path", {
        d: "M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",
        fill: "#FFF"
    }, null), _("path", {
        d: "M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",
        fill: "#FFB594"
    }, null), _("path", {
        d: "M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",
        fill: "#FFF"
    }, null), _("path", {
        d: "M78.18 94.656s.911 7.41-4.914 13.078",
        stroke: "#E4EBF7",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",
        stroke: "#E4EBF7",
        "stroke-width": ".932",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",
        fill: "#FFB594"
    }, null), _("path", {
        d: "M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",
        fill: "#5C2552"
    }, null), _("path", {
        d: "M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",
        fill: "#FFC6A0"
    }, null), _("path", {
        stroke: "#DB836E",
        "stroke-width": "1.145",
        "stroke-linecap": "round",
        "stroke-linejoin": "round",
        d: "M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"
    }, null), _("path", {
        d: "M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",
        fill: "#552950"
    }, null), _("path", {
        d: "M91.132 86.786s5.269 4.957 12.679 2.327",
        stroke: "#DB836E",
        "stroke-width": "1.145",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",
        fill: "#DB836E"
    }, null), _("path", {
        d: "M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",
        stroke: "#5C2552",
        "stroke-width": "1.526",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",
        stroke: "#DB836E",
        "stroke-width": "1.145",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",
        stroke: "#E4EBF7",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M66.508 86.763s-1.598 8.83-6.697 14.078",
        stroke: "#E4EBF7",
        "stroke-width": "1.114",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M128.31 87.934s3.013 4.121 4.06 11.785",
        stroke: "#E4EBF7",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M64.09 84.816s-6.03 9.912-13.607 9.903",
        stroke: "#DB836E",
        "stroke-width": ".795",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",
        fill: "#FFC6A0"
    }, null), _("path", {
        d: "M130.532 85.488s4.588 5.757 11.619 6.214",
        stroke: "#DB836E",
        "stroke-width": ".75",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M121.708 105.73s-.393 8.564-1.34 13.612",
        stroke: "#E4EBF7",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M115.784 161.512s-3.57-1.488-2.678-7.14",
        stroke: "#648BD8",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",
        fill: "#CBD1D1"
    }, null), _("path", {
        d: "M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",
        fill: "#2B0849"
    }, null), _("path", {
        d: "M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",
        fill: "#A4AABA"
    }, null), _("path", {
        d: "M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",
        fill: "#CBD1D1"
    }, null), _("path", {
        d: "M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",
        fill: "#2B0849"
    }, null), _("path", {
        d: "M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",
        fill: "#A4AABA"
    }, null), _("path", {
        d: "M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",
        fill: "#7BB2F9"
    }, null), _("path", {
        d: "M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",
        stroke: "#648BD8",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M108.459 220.905s2.759-1.104 6.07-3.863",
        stroke: "#648BD8",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",
        stroke: "#648BD8",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null), _("path", {
        d: "M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",
        fill: "#192064"
    }, null), _("path", {
        d: "M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",
        fill: "#FFF"
    }, null), _("path", {
        d: "M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",
        fill: "#192064"
    }, null), _("path", {
        d: "M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",
        stroke: "#648BD8",
        "stroke-width": "1.051",
        "stroke-linecap": "round",
        "stroke-linejoin": "round"
    }, null)])])
};
const wLe = CLe;
var _Le = {
    success: mm,
    error: ms,
    info: gm,
    warning: mLe
}
  , Dm = {
    404: bLe,
    500: SLe,
    403: wLe
}
  , TLe = Object.keys(Dm)
  , PLe = function() {
    return {
        prefixCls: String,
        icon: J.any,
        status: {
            type: [Number, String],
            default: "info"
        },
        title: J.any,
        subTitle: J.any,
        extra: J.any
    }
}
  , MLe = function(e, n) {
    var r = n.status
      , a = n.icon;
    if (TLe.includes("".concat(r))) {
        var i = Dm[r];
        return _("div", {
            class: "".concat(e, "-icon ").concat(e, "-image")
        }, [_(i, null, null)])
    }
    var o = _Le[r]
      , l = a || _(o, null, null);
    return _("div", {
        class: "".concat(e, "-icon")
    }, [l])
}
  , ALe = function(e, n) {
    return n && _("div", {
        class: "".concat(e, "-extra")
    }, [n])
}
  , mf = de({
    compatConfig: {
        MODE: 3
    },
    name: "AResult",
    props: PLe(),
    slots: ["title", "subTitle", "icon", "extra"],
    setup: function(e, n) {
        var r = n.slots
          , a = je("result", e)
          , i = a.prefixCls
          , o = a.direction
          , l = j(function() {
            return he(i.value, "".concat(i.value, "-").concat(e.status), z({}, "".concat(i.value, "-rtl"), o.value === "rtl"))
        });
        return function() {
            var s, u, c, f, d, v, h, p, g = (s = e.title) !== null && s !== void 0 ? s : (u = r.title) === null || u === void 0 ? void 0 : u.call(r), m = (c = e.subTitle) !== null && c !== void 0 ? c : (f = r.subTitle) === null || f === void 0 ? void 0 : f.call(r), y = (d = e.icon) !== null && d !== void 0 ? d : (v = r.icon) === null || v === void 0 ? void 0 : v.call(r), b = (h = e.extra) !== null && h !== void 0 ? h : (p = r.extra) === null || p === void 0 ? void 0 : p.call(r), x = i.value;
            return _("div", {
                class: l.value
            }, [MLe(x, {
                status: e.status,
                icon: y
            }), _("div", {
                class: "".concat(x, "-title")
            }, [g]), m && _("div", {
                class: "".concat(x, "-subtitle")
            }, [m]), ALe(x, b), r.default && _("div", {
                class: "".concat(x, "-content")
            }, [r.default()])])
        }
    }
});
mf.PRESENTED_IMAGE_403 = Dm[403];
mf.PRESENTED_IMAGE_404 = Dm[404];
mf.PRESENTED_IMAGE_500 = Dm[500];
mf.install = function(t) {
    return t.component(mf.name, mf),
    t
}
;
const ILe = mf;
var kLe = function() {
    return I(I({}, Sw()), {}, {
        size: String,
        block: Boolean
    })
}
  , OLe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASkeletonButton",
    props: $t(kLe(), {
        size: "default"
    }),
    setup: function(e) {
        var n = je("skeleton", e)
          , r = n.prefixCls
          , a = j(function() {
            var i;
            return he(r.value, "".concat(r.value, "-element"), (i = {},
            z(i, "".concat(r.value, "-active"), e.active),
            z(i, "".concat(r.value, "-block"), e.block),
            i))
        });
        return function() {
            return _("div", {
                class: a.value
            }, [_(Cw, I(I({}, e), {}, {
                prefixCls: "".concat(r.value, "-button")
            }), null)])
        }
    }
});
const fE = OLe;
var DLe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASkeletonInput",
    props: I(I({}, Et(Sw(), ["shape"])), {}, {
        size: String
    }),
    setup: function(e) {
        var n = je("skeleton", e)
          , r = n.prefixCls
          , a = j(function() {
            return he(r.value, "".concat(r.value, "-element"), z({}, "".concat(r.value, "-active"), e.active))
        });
        return function() {
            return _("div", {
                class: a.value
            }, [_(Cw, I(I({}, e), {}, {
                prefixCls: "".concat(r.value, "-input")
            }), null)])
        }
    }
});
const dE = DLe;
var ELe = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z"
  , LLe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASkeletonImage",
    props: Et(Sw(), ["size", "shape", "active"]),
    setup: function(e) {
        var n = je("skeleton", e)
          , r = n.prefixCls
          , a = j(function() {
            return he(r.value, "".concat(r.value, "-element"))
        });
        return function() {
            return _("div", {
                class: a.value
            }, [_("div", {
                class: "".concat(r.value, "-image")
            }, [_("svg", {
                viewBox: "0 0 1098 1024",
                xmlns: "http://www.w3.org/2000/svg",
                class: "".concat(r.value, "-image-svg")
            }, [_("path", {
                d: ELe,
                class: "".concat(r.value, "-image-path")
            }, null)])])])
        }
    }
});
const vE = LLe;
var RLe = function() {
    return I(I({}, Sw()), {}, {
        shape: String
    })
}
  , NLe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASkeletonAvatar",
    props: $t(RLe(), {
        size: "default",
        shape: "circle"
    }),
    setup: function(e) {
        var n = je("skeleton", e)
          , r = n.prefixCls
          , a = j(function() {
            return he(r.value, "".concat(r.value, "-element"), z({}, "".concat(r.value, "-active"), e.active))
        });
        return function() {
            return _("div", {
                class: a.value
            }, [_(Cw, I(I({}, e), {}, {
                prefixCls: "".concat(r.value, "-avatar")
            }), null)])
        }
    }
});
const hE = NLe;
ga.Button = fE;
ga.Avatar = hE;
ga.Input = dE;
ga.Image = vE;
ga.Title = xw;
ga.install = function(t) {
    return t.component(ga.name, ga),
    t.component(ga.Button.name, fE),
    t.component(ga.Avatar.name, hE),
    t.component(ga.Input.name, dE),
    t.component(ga.Image.name, vE),
    t.component(ga.Title.name, xw),
    t
}
;
var Jte = function(e, n) {
    var r, a, i = n.attrs, o = i.included, l = i.vertical, s = i.style, u = i.class, c = i.length, f = i.offset, d = i.reverse;
    c < 0 && (d = !d,
    c = Math.abs(c),
    f = 100 - f);
    var v = l ? (r = {},
    z(r, d ? "top" : "bottom", "".concat(f, "%")),
    z(r, d ? "bottom" : "top", "auto"),
    z(r, "height", "".concat(c, "%")),
    r) : (a = {},
    z(a, d ? "right" : "left", "".concat(f, "%")),
    z(a, d ? "left" : "right", "auto"),
    z(a, "width", "".concat(c, "%")),
    a)
      , h = I(I({}, s), v);
    return o ? _("div", {
        class: u,
        style: h
    }, null) : null
};
Jte.inheritAttrs = !1;
const ene = Jte;
var $Le = function(e, n, r, a, i, o) {
    ur(r ? a > 0 : !0, "Slider", "`Slider[step]` should be a positive number in order to make Slider[dots] work.");
    var l = Object.keys(n).map(parseFloat).sort(function(u, c) {
        return u - c
    });
    if (r && a)
        for (var s = i; s <= o; s += a)
            l.indexOf(s) === -1 && l.push(s);
    return l
}
  , tne = function(e, n) {
    var r = n.attrs
      , a = r.prefixCls
      , i = r.vertical
      , o = r.reverse
      , l = r.marks
      , s = r.dots
      , u = r.step
      , c = r.included
      , f = r.lowerBound
      , d = r.upperBound
      , v = r.max
      , h = r.min
      , p = r.dotStyle
      , g = r.activeDotStyle
      , m = v - h
      , y = $Le(i, l, s, u, h, v).map(function(b) {
        var x, C = "".concat(Math.abs(b - h) / m * 100, "%"), S = !c && b === d || c && b <= d && b >= f, w = i ? I(I({}, p), {}, z({}, o ? "top" : "bottom", C)) : I(I({}, p), {}, z({}, o ? "right" : "left", C));
        S && (w = I(I({}, w), g));
        var T = he((x = {},
        z(x, "".concat(a, "-dot"), !0),
        z(x, "".concat(a, "-dot-active"), S),
        z(x, "".concat(a, "-dot-reverse"), o),
        x));
        return _("span", {
            class: T,
            style: w,
            key: b
        }, null)
    });
    return _("div", {
        class: "".concat(a, "-step")
    }, [y])
};
tne.inheritAttrs = !1;
const FLe = tne;
var nne = function(e, n) {
    var r = n.attrs
      , a = n.slots
      , i = r.class
      , o = r.vertical
      , l = r.reverse
      , s = r.marks
      , u = r.included
      , c = r.upperBound
      , f = r.lowerBound
      , d = r.max
      , v = r.min
      , h = r.onClickLabel
      , p = Object.keys(s)
      , g = a.mark
      , m = d - v
      , y = p.map(parseFloat).sort(function(b, x) {
        return b - x
    }).map(function(b) {
        var x, C = typeof s[b] == "function" ? s[b]() : s[b], S = We(C) === "object" && !cr(C), w = S ? C.label : C;
        if (!w && w !== 0)
            return null;
        g && (w = g({
            point: b,
            label: w
        }));
        var T = !u && b === c || u && b <= c && b >= f
          , P = he((x = {},
        z(x, "".concat(i, "-text"), !0),
        z(x, "".concat(i, "-text-active"), T),
        x))
          , M = z({
            marginBottom: "-50%"
        }, l ? "top" : "bottom", "".concat((b - v) / m * 100, "%"))
          , A = z({
            transform: "translateX(".concat(l ? "50%" : "-50%", ")"),
            msTransform: "translateX(".concat(l ? "50%" : "-50%", ")")
        }, l ? "right" : "left", "".concat((b - v) / m * 100, "%"))
          , O = o ? M : A
          , k = S ? I(I({}, O), C.style) : O
          , D = z({}, gr ? "onTouchstartPassive" : "onTouchstart", function(E) {
            return h(E, b)
        });
        return _("span", I({
            class: P,
            style: k,
            key: b,
            onMousedown: function(L) {
                return h(L, b)
            }
        }, D), [w])
    });
    return _("div", {
        class: i
    }, [y])
};
nne.inheritAttrs = !1;
const BLe = nne
  , rne = de({
    compatConfig: {
        MODE: 3
    },
    name: "Handle",
    inheritAttrs: !1,
    props: {
        prefixCls: String,
        vertical: {
            type: Boolean,
            default: void 0
        },
        offset: Number,
        disabled: {
            type: Boolean,
            default: void 0
        },
        min: Number,
        max: Number,
        value: Number,
        tabindex: J.oneOfType([J.number, J.string]),
        reverse: {
            type: Boolean,
            default: void 0
        },
        ariaLabel: String,
        ariaLabelledBy: String,
        ariaValueTextFormatter: Function,
        onMouseenter: {
            type: Function
        },
        onMouseleave: {
            type: Function
        },
        onMousedown: {
            type: Function
        }
    },
    setup: function(e, n) {
        var r = n.attrs
          , a = n.emit
          , i = n.expose
          , o = Q(!1)
          , l = Q()
          , s = function() {
            document.activeElement === l.value && (o.value = !0)
        }
          , u = function(y) {
            o.value = !1,
            a("blur", y)
        }
          , c = function() {
            o.value = !1
        }
          , f = function() {
            var y;
            (y = l.value) === null || y === void 0 || y.focus()
        }
          , d = function() {
            var y;
            (y = l.value) === null || y === void 0 || y.blur()
        }
          , v = function() {
            o.value = !0,
            f()
        }
          , h = function(y) {
            y.preventDefault(),
            f(),
            a("mousedown", y)
        };
        i({
            focus: f,
            blur: d,
            clickFocus: v,
            ref: l
        });
        var p = null;
        ct(function() {
            p = Nn(document, "mouseup", s)
        }),
        Nt(function() {
            var m;
            (m = p) === null || m === void 0 || m.remove()
        });
        var g = j(function() {
            var m, y, b = e.vertical, x = e.offset, C = e.reverse;
            return b ? (m = {},
            z(m, C ? "top" : "bottom", "".concat(x, "%")),
            z(m, C ? "bottom" : "top", "auto"),
            z(m, "transform", C ? null : "translateY(+50%)"),
            m) : (y = {},
            z(y, C ? "right" : "left", "".concat(x, "%")),
            z(y, C ? "left" : "right", "auto"),
            z(y, "transform", "translateX(".concat(C ? "+" : "-", "50%)")),
            y)
        });
        return function() {
            var m = e.prefixCls
              , y = e.disabled
              , b = e.min
              , x = e.max
              , C = e.value
              , S = e.tabindex
              , w = e.ariaLabel
              , T = e.ariaLabelledBy
              , P = e.ariaValueTextFormatter
              , M = e.onMouseenter
              , A = e.onMouseleave
              , O = he(r.class, z({}, "".concat(m, "-handle-click-focused"), o.value))
              , k = {
                "aria-valuemin": b,
                "aria-valuemax": x,
                "aria-valuenow": C,
                "aria-disabled": !!y
            }
              , D = [r.style, g.value]
              , E = S || 0;
            (y || S === null) && (E = null);
            var L;
            P && (L = P(C));
            var N = I(I(I({}, r), {}, {
                role: "slider",
                tabindex: E
            }, k), {}, {
                class: O,
                onBlur: u,
                onKeydown: c,
                onMousedown: h,
                onMouseenter: M,
                onMouseleave: A,
                ref: l,
                style: D
            });
            return _("div", I(I({}, N), {}, {
                "aria-label": w,
                "aria-labelledby": T,
                "aria-valuetext": L
            }), null)
        }
    }
});
function NT(t, e) {
    try {
        return Object.keys(e).some(function(n) {
            return t.target === e[n].ref
        })
    } catch (n) {
        return !1
    }
}
function ane(t, e) {
    var n = e.min
      , r = e.max;
    return t < n || t > r
}
function WB(t) {
    return t.touches.length > 1 || t.type.toLowerCase() === "touchend" && t.touches.length > 0
}
function GB(t, e) {
    var n = e.marks
      , r = e.step
      , a = e.min
      , i = e.max
      , o = Object.keys(n).map(parseFloat);
    if (r !== null) {
        var l = Math.pow(10, ine(r))
          , s = Math.floor((i * l - a * l) / (r * l))
          , u = Math.min((t - a) / r, s)
          , c = Math.round(u) * r + a;
        o.push(c)
    }
    var f = o.map(function(d) {
        return Math.abs(t - d)
    });
    return o[f.indexOf(Math.min.apply(Math, $e(f)))]
}
function ine(t) {
    var e = t.toString()
      , n = 0;
    return e.indexOf(".") >= 0 && (n = e.length - e.indexOf(".") - 1),
    n
}
function KB(t, e) {
    var n = 1;
    return window.visualViewport && (n = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2)),
    (t ? e.clientY : e.pageX) / n
}
function UB(t, e) {
    var n = 1;
    return window.visualViewport && (n = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2)),
    (t ? e.touches[0].clientY : e.touches[0].pageX) / n
}
function YB(t, e) {
    var n = e.getBoundingClientRect();
    return t ? n.top + n.height * .5 : window.pageXOffset + n.left + n.width * .5
}
function pE(t, e) {
    var n = e.max
      , r = e.min;
    return t <= r ? r : t >= n ? n : t
}
function one(t, e) {
    var n = e.step
      , r = isFinite(GB(t, e)) ? GB(t, e) : 0;
    return n === null ? r : parseFloat(r.toFixed(ine(n)))
}
function Hv(t) {
    t.stopPropagation(),
    t.preventDefault()
}
function VLe(t, e, n) {
    var r = {
        increase: function(l, s) {
            return l + s
        },
        decrease: function(l, s) {
            return l - s
        }
    }
      , a = r[t](Object.keys(n.marks).indexOf(JSON.stringify(e)), 1)
      , i = Object.keys(n.marks)[a];
    return n.step ? r[t](e, n.step) : !!Object.keys(n.marks).length && !!n.marks[i] ? n.marks[i] : e
}
function lne(t, e, n) {
    var r = "increase"
      , a = "decrease"
      , i = r;
    switch (t.keyCode) {
    case Ee.UP:
        i = e && n ? a : r;
        break;
    case Ee.RIGHT:
        i = !e && n ? a : r;
        break;
    case Ee.DOWN:
        i = e && n ? r : a;
        break;
    case Ee.LEFT:
        i = !e && n ? r : a;
        break;
    case Ee.END:
        return function(o, l) {
            return l.max
        }
        ;
    case Ee.HOME:
        return function(o, l) {
            return l.min
        }
        ;
    case Ee.PAGE_UP:
        return function(o, l) {
            return o + l.step * 2
        }
        ;
    case Ee.PAGE_DOWN:
        return function(o, l) {
            return o - l.step * 2
        }
        ;
    default:
        return
    }
    return function(o, l) {
        return VLe(i, o, l)
    }
}
var zLe = ["index", "directives", "className", "style"];
function ic() {}
function sne(t) {
    var e = {
        id: String,
        min: Number,
        max: Number,
        step: Number,
        marks: J.object,
        included: {
            type: Boolean,
            default: void 0
        },
        prefixCls: String,
        disabled: {
            type: Boolean,
            default: void 0
        },
        handle: Function,
        dots: {
            type: Boolean,
            default: void 0
        },
        vertical: {
            type: Boolean,
            default: void 0
        },
        reverse: {
            type: Boolean,
            default: void 0
        },
        minimumTrackStyle: J.object,
        maximumTrackStyle: J.object,
        handleStyle: J.oneOfType([J.object, J.arrayOf(J.object)]),
        trackStyle: J.oneOfType([J.object, J.arrayOf(J.object)]),
        railStyle: J.object,
        dotStyle: J.object,
        activeDotStyle: J.object,
        autofocus: {
            type: Boolean,
            default: void 0
        },
        draggableTrack: {
            type: Boolean,
            default: void 0
        }
    };
    return de({
        compatConfig: {
            MODE: 3
        },
        name: "CreateSlider",
        mixins: [Xf, t],
        inheritAttrs: !1,
        slots: ["mark"],
        props: $t(e, {
            prefixCls: "rc-slider",
            min: 0,
            max: 100,
            step: 1,
            marks: {},
            included: !0,
            disabled: !1,
            dots: !1,
            vertical: !1,
            reverse: !1,
            trackStyle: [{}],
            handleStyle: [{}],
            railStyle: {},
            dotStyle: {},
            activeDotStyle: {}
        }),
        emits: ["change", "blur", "focus"],
        data: function() {
            var r = this.step
              , a = this.max
              , i = this.min
              , o = isFinite(a - i) ? (a - i) % r === 0 : !0;
            return ur(r && Math.floor(r) === r ? o : !0, "Slider[max] - Slider[min] (".concat(a - i, ") should be a multiple of Slider[step] (").concat(r, ")")),
            this.handlesRefs = {},
            {}
        },
        mounted: function() {
            var r = this;
            this.$nextTick(function() {
                r.document = r.sliderRef && r.sliderRef.ownerDocument;
                var a = r.autofocus
                  , i = r.disabled;
                a && !i && r.focus()
            })
        },
        beforeUnmount: function() {
            var r = this;
            this.$nextTick(function() {
                r.removeDocumentEvents()
            })
        },
        methods: {
            defaultHandle: function(r) {
                var a = r.index;
                r.directives;
                var i = r.className
                  , o = r.style
                  , l = tt(r, zLe);
                if (delete l.dragging,
                l.value === null)
                    return null;
                var s = I(I({}, l), {}, {
                    class: i,
                    style: o,
                    key: a
                });
                return _(rne, s, null)
            },
            onDown: function(r, a) {
                var i = a
                  , o = this.$props
                  , l = o.draggableTrack
                  , s = o.vertical
                  , u = this.$data.bounds
                  , c = l && this.positionGetValue ? this.positionGetValue(i) || [] : []
                  , f = NT(r, this.handlesRefs);
                if (this.dragTrack = l && u.length >= 2 && !f && !c.map(function(v, h) {
                    var p = h ? !0 : v >= u[h];
                    return h === c.length - 1 ? v <= u[h] : p
                }).some(function(v) {
                    return !v
                }),
                this.dragTrack)
                    this.dragOffset = i,
                    this.startBounds = $e(u);
                else {
                    if (!f)
                        this.dragOffset = 0;
                    else {
                        var d = YB(s, r.target);
                        this.dragOffset = i - d,
                        i = d
                    }
                    this.onStart(i)
                }
            },
            onMouseDown: function(r) {
                if (r.button === 0) {
                    this.removeDocumentEvents();
                    var a = this.$props.vertical
                      , i = KB(a, r);
                    this.onDown(r, i),
                    this.addDocumentMouseEvents()
                }
            },
            onTouchStart: function(r) {
                if (!WB(r)) {
                    var a = this.vertical
                      , i = UB(a, r);
                    this.onDown(r, i),
                    this.addDocumentTouchEvents(),
                    Hv(r)
                }
            },
            onFocus: function(r) {
                var a = this.vertical;
                if (NT(r, this.handlesRefs) && !this.dragTrack) {
                    var i = YB(a, r.target);
                    this.dragOffset = 0,
                    this.onStart(i),
                    Hv(r),
                    this.$emit("focus", r)
                }
            },
            onBlur: function(r) {
                this.dragTrack || this.onEnd(),
                this.$emit("blur", r)
            },
            onMouseUp: function() {
                this.handlesRefs[this.prevMovedHandleIndex] && this.handlesRefs[this.prevMovedHandleIndex].clickFocus()
            },
            onMouseMove: function(r) {
                if (!this.sliderRef) {
                    this.onEnd();
                    return
                }
                var a = KB(this.vertical, r);
                this.onMove(r, a - this.dragOffset, this.dragTrack, this.startBounds)
            },
            onTouchMove: function(r) {
                if (WB(r) || !this.sliderRef) {
                    this.onEnd();
                    return
                }
                var a = UB(this.vertical, r);
                this.onMove(r, a - this.dragOffset, this.dragTrack, this.startBounds)
            },
            onKeyDown: function(r) {
                this.sliderRef && NT(r, this.handlesRefs) && this.onKeyboard(r)
            },
            onClickMarkLabel: function(r, a) {
                var i = this;
                r.stopPropagation(),
                this.onChange({
                    sValue: a
                }),
                this.setState({
                    sValue: a
                }, function() {
                    return i.onEnd(!0)
                })
            },
            getSliderStart: function() {
                var r = this.sliderRef
                  , a = this.vertical
                  , i = this.reverse
                  , o = r.getBoundingClientRect();
                return a ? i ? o.bottom : o.top : window.pageXOffset + (i ? o.right : o.left)
            },
            getSliderLength: function() {
                var r = this.sliderRef;
                if (!r)
                    return 0;
                var a = r.getBoundingClientRect();
                return this.vertical ? a.height : a.width
            },
            addDocumentTouchEvents: function() {
                this.onTouchMoveListener = Nn(this.document, "touchmove", this.onTouchMove),
                this.onTouchUpListener = Nn(this.document, "touchend", this.onEnd)
            },
            addDocumentMouseEvents: function() {
                this.onMouseMoveListener = Nn(this.document, "mousemove", this.onMouseMove),
                this.onMouseUpListener = Nn(this.document, "mouseup", this.onEnd)
            },
            removeDocumentEvents: function() {
                this.onTouchMoveListener && this.onTouchMoveListener.remove(),
                this.onTouchUpListener && this.onTouchUpListener.remove(),
                this.onMouseMoveListener && this.onMouseMoveListener.remove(),
                this.onMouseUpListener && this.onMouseUpListener.remove()
            },
            focus: function() {
                var r;
                this.$props.disabled || (r = this.handlesRefs[0]) === null || r === void 0 || r.focus()
            },
            blur: function() {
                var r = this;
                this.$props.disabled || Object.keys(this.handlesRefs).forEach(function(a) {
                    var i, o;
                    (i = r.handlesRefs[a]) === null || i === void 0 || (o = i.blur) === null || o === void 0 || o.call(i)
                })
            },
            calcValue: function(r) {
                var a = this.vertical
                  , i = this.min
                  , o = this.max
                  , l = Math.abs(Math.max(r, 0) / this.getSliderLength())
                  , s = a ? (1 - l) * (o - i) + i : l * (o - i) + i;
                return s
            },
            calcValueByPos: function(r) {
                var a = this.reverse ? -1 : 1
                  , i = a * (r - this.getSliderStart())
                  , o = this.trimAlignValue(this.calcValue(i));
                return o
            },
            calcOffset: function(r) {
                var a = this.min
                  , i = this.max
                  , o = (r - a) / (i - a);
                return Math.max(0, o * 100)
            },
            saveSlider: function(r) {
                this.sliderRef = r
            },
            saveHandle: function(r, a) {
                this.handlesRefs[r] = a
            }
        },
        render: function() {
            var r, a = this.prefixCls, i = this.marks, o = this.dots, l = this.step, s = this.included, u = this.disabled, c = this.vertical, f = this.reverse, d = this.min, v = this.max, h = this.maximumTrackStyle, p = this.railStyle, g = this.dotStyle, m = this.activeDotStyle, y = this.id, b = this.$attrs, x = b.class, C = b.style, S = this.renderSlider(), w = S.tracks, T = S.handles, P = he(a, x, (r = {},
            z(r, "".concat(a, "-with-marks"), Object.keys(i).length),
            z(r, "".concat(a, "-disabled"), u),
            z(r, "".concat(a, "-vertical"), c),
            r)), M = {
                vertical: c,
                marks: i,
                included: s,
                lowerBound: this.getLowerBound(),
                upperBound: this.getUpperBound(),
                max: v,
                min: d,
                reverse: f,
                class: "".concat(a, "-mark"),
                onClickLabel: u ? ic : this.onClickMarkLabel
            }, A = z({}, gr ? "onTouchstartPassive" : "onTouchstart", u ? ic : this.onTouchStart);
            return _("div", I(I({
                id: y,
                ref: this.saveSlider,
                tabindex: "-1",
                class: P
            }, A), {}, {
                onMousedown: u ? ic : this.onMouseDown,
                onMouseup: u ? ic : this.onMouseUp,
                onKeydown: u ? ic : this.onKeyDown,
                onFocus: u ? ic : this.onFocus,
                onBlur: u ? ic : this.onBlur,
                style: C
            }), [_("div", {
                class: "".concat(a, "-rail"),
                style: I(I({}, h), p)
            }, null), w, _(FLe, {
                prefixCls: a,
                vertical: c,
                reverse: f,
                marks: i,
                dots: o,
                step: l,
                included: s,
                lowerBound: this.getLowerBound(),
                upperBound: this.getUpperBound(),
                max: v,
                min: d,
                dotStyle: g,
                activeDotStyle: m
            }, null), T, _(BLe, M, {
                mark: this.$slots.mark
            }), hm(this)])
        }
    })
}
var HLe = de({
    compatConfig: {
        MODE: 3
    },
    name: "Slider",
    mixins: [Xf],
    inheritAttrs: !1,
    props: {
        defaultValue: Number,
        value: Number,
        disabled: {
            type: Boolean,
            default: void 0
        },
        autofocus: {
            type: Boolean,
            default: void 0
        },
        tabindex: J.oneOfType([J.number, J.string]),
        reverse: {
            type: Boolean,
            default: void 0
        },
        min: Number,
        max: Number,
        ariaLabelForHandle: String,
        ariaLabelledByForHandle: String,
        ariaValueTextFormatterForHandle: String,
        startPoint: Number
    },
    emits: ["beforeChange", "afterChange", "change"],
    data: function() {
        var e = this.defaultValue !== void 0 ? this.defaultValue : this.min
          , n = this.value !== void 0 ? this.value : e;
        return {
            sValue: this.trimAlignValue(n),
            dragging: !1
        }
    },
    watch: {
        value: {
            handler: function(e) {
                this.setChangeValue(e)
            },
            deep: !0
        },
        min: function() {
            var e = this.sValue;
            this.setChangeValue(e)
        },
        max: function() {
            var e = this.sValue;
            this.setChangeValue(e)
        }
    },
    methods: {
        setChangeValue: function(e) {
            var n = e !== void 0 ? e : this.sValue
              , r = this.trimAlignValue(n, this.$props);
            r !== this.sValue && (this.setState({
                sValue: r
            }),
            ane(n, this.$props) && this.$emit("change", r))
        },
        onChange: function(e) {
            var n = !Kl(this, "value")
              , r = e.sValue > this.max ? I(I({}, e), {}, {
                sValue: this.max
            }) : e;
            n && this.setState(r);
            var a = r.sValue;
            this.$emit("change", a)
        },
        onStart: function(e) {
            this.setState({
                dragging: !0
            });
            var n = this.sValue;
            this.$emit("beforeChange", n);
            var r = this.calcValueByPos(e);
            this.startValue = r,
            this.startPosition = e,
            r !== n && (this.prevMovedHandleIndex = 0,
            this.onChange({
                sValue: r
            }))
        },
        onEnd: function(e) {
            var n = this.dragging;
            this.removeDocumentEvents(),
            (n || e) && this.$emit("afterChange", this.sValue),
            this.setState({
                dragging: !1
            })
        },
        onMove: function(e, n) {
            Hv(e);
            var r = this.sValue
              , a = this.calcValueByPos(n);
            a !== r && this.onChange({
                sValue: a
            })
        },
        onKeyboard: function(e) {
            var n = this.$props
              , r = n.reverse
              , a = n.vertical
              , i = lne(e, a, r);
            if (i) {
                Hv(e);
                var o = this.sValue
                  , l = i(o, this.$props)
                  , s = this.trimAlignValue(l);
                if (s === o)
                    return;
                this.onChange({
                    sValue: s
                }),
                this.$emit("afterChange", s),
                this.onEnd()
            }
        },
        getLowerBound: function() {
            var e = this.$props.startPoint || this.$props.min;
            return this.$data.sValue > e ? e : this.$data.sValue
        },
        getUpperBound: function() {
            return this.$data.sValue < this.$props.startPoint ? this.$props.startPoint : this.$data.sValue
        },
        trimAlignValue: function(e) {
            var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
            if (e === null)
                return null;
            var r = I(I({}, this.$props), n)
              , a = pE(e, r);
            return one(a, r)
        },
        getTrack: function(e) {
            var n = e.prefixCls
              , r = e.reverse
              , a = e.vertical
              , i = e.included
              , o = e.minimumTrackStyle
              , l = e.mergedTrackStyle
              , s = e.length
              , u = e.offset;
            return _(ene, {
                class: "".concat(n, "-track"),
                vertical: a,
                included: i,
                offset: u,
                reverse: r,
                length: s,
                style: I(I({}, o), l)
            }, null)
        },
        renderSlider: function() {
            var e = this
              , n = this.prefixCls
              , r = this.vertical
              , a = this.included
              , i = this.disabled
              , o = this.minimumTrackStyle
              , l = this.trackStyle
              , s = this.handleStyle
              , u = this.tabindex
              , c = this.ariaLabelForHandle
              , f = this.ariaLabelledByForHandle
              , d = this.ariaValueTextFormatterForHandle
              , v = this.min
              , h = this.max
              , p = this.startPoint
              , g = this.reverse
              , m = this.handle
              , y = this.defaultHandle
              , b = m || y
              , x = this.sValue
              , C = this.dragging
              , S = this.calcOffset(x)
              , w = b({
                class: "".concat(n, "-handle"),
                prefixCls: n,
                vertical: r,
                offset: S,
                value: x,
                dragging: C,
                disabled: i,
                min: v,
                max: h,
                reverse: g,
                index: 0,
                tabindex: u,
                ariaLabel: c,
                ariaLabelledBy: f,
                ariaValueTextFormatter: d,
                style: s[0] || s,
                ref: function(A) {
                    return e.saveHandle(0, A)
                },
                onFocus: this.onFocus,
                onBlur: this.onBlur
            })
              , T = p !== void 0 ? this.calcOffset(p) : 0
              , P = l[0] || l;
            return {
                tracks: this.getTrack({
                    prefixCls: n,
                    reverse: g,
                    vertical: r,
                    included: a,
                    offset: T,
                    minimumTrackStyle: o,
                    mergedTrackStyle: P,
                    length: S - T
                }),
                handles: w
            }
        }
    }
});
const jLe = sne(HLe);
var op = function(e) {
    var n = e.value
      , r = e.handle
      , a = e.bounds
      , i = e.props
      , o = i.allowCross
      , l = i.pushable
      , s = Number(l)
      , u = pE(n, i)
      , c = u;
    return !o && r != null && a !== void 0 && (r > 0 && u <= a[r - 1] + s && (c = a[r - 1] + s),
    r < a.length - 1 && u >= a[r + 1] - s && (c = a[r + 1] - s)),
    one(c, i)
}
  , WLe = {
    defaultValue: J.arrayOf(J.number),
    value: J.arrayOf(J.number),
    count: Number,
    pushable: fZ(J.oneOfType([J.looseBool, J.number])),
    allowCross: {
        type: Boolean,
        default: void 0
    },
    disabled: {
        type: Boolean,
        default: void 0
    },
    reverse: {
        type: Boolean,
        default: void 0
    },
    tabindex: J.arrayOf(J.number),
    prefixCls: String,
    min: Number,
    max: Number,
    autofocus: {
        type: Boolean,
        default: void 0
    },
    ariaLabelGroupForHandles: Array,
    ariaLabelledByGroupForHandles: Array,
    ariaValueTextFormatterGroupForHandles: Array,
    draggableTrack: {
        type: Boolean,
        default: void 0
    }
}
  , GLe = de({
    compatConfig: {
        MODE: 3
    },
    name: "Range",
    mixins: [Xf],
    inheritAttrs: !1,
    props: $t(WLe, {
        count: 1,
        allowCross: !0,
        pushable: !1,
        tabindex: [],
        draggableTrack: !1,
        ariaLabelGroupForHandles: [],
        ariaLabelledByGroupForHandles: [],
        ariaValueTextFormatterGroupForHandles: []
    }),
    emits: ["beforeChange", "afterChange", "change"],
    displayName: "Range",
    data: function() {
        var e = this
          , n = this.count
          , r = this.min
          , a = this.max
          , i = Array.apply(void 0, $e(Array(n + 1))).map(function() {
            return r
        })
          , o = Kl(this, "defaultValue") ? this.defaultValue : i
          , l = this.value;
        l === void 0 && (l = o);
        var s = l.map(function(c, f) {
            return op({
                value: c,
                handle: f,
                props: e.$props
            })
        })
          , u = s[0] === a ? 0 : s.length - 1;
        return {
            sHandle: null,
            recent: u,
            bounds: s
        }
    },
    watch: {
        value: {
            handler: function(e) {
                var n = this.bounds;
                this.setChangeValue(e || n)
            },
            deep: !0
        },
        min: function() {
            var e = this.value;
            this.setChangeValue(e || this.bounds)
        },
        max: function() {
            var e = this.value;
            this.setChangeValue(e || this.bounds)
        }
    },
    methods: {
        setChangeValue: function(e) {
            var n = this
              , r = this.bounds
              , a = e.map(function(o, l) {
                return op({
                    value: o,
                    handle: l,
                    bounds: r,
                    props: n.$props
                })
            });
            if (r.length === a.length) {
                if (a.every(function(o, l) {
                    return o === r[l]
                }))
                    return null
            } else
                a = e.map(function(o, l) {
                    return op({
                        value: o,
                        handle: l,
                        props: n.$props
                    })
                });
            if (this.setState({
                bounds: a
            }),
            e.some(function(o) {
                return ane(o, n.$props)
            })) {
                var i = e.map(function(o) {
                    return pE(o, n.$props)
                });
                this.$emit("change", i)
            }
        },
        onChange: function(e) {
            var n = !Kl(this, "value");
            if (n)
                this.setState(e);
            else {
                var r = {};
                ["sHandle", "recent"].forEach(function(o) {
                    e[o] !== void 0 && (r[o] = e[o])
                }),
                Object.keys(r).length && this.setState(r)
            }
            var a = I(I({}, this.$data), e)
              , i = a.bounds;
            this.$emit("change", i)
        },
        positionGetValue: function(e) {
            var n = this.getValue()
              , r = this.calcValueByPos(e)
              , a = this.getClosestBound(r)
              , i = this.getBoundNeedMoving(r, a)
              , o = n[i];
            if (r === o)
                return null;
            var l = $e(n);
            return l[i] = r,
            l
        },
        onStart: function(e) {
            var n = this.bounds;
            this.$emit("beforeChange", n);
            var r = this.calcValueByPos(e);
            this.startValue = r,
            this.startPosition = e;
            var a = this.getClosestBound(r);
            this.prevMovedHandleIndex = this.getBoundNeedMoving(r, a),
            this.setState({
                sHandle: this.prevMovedHandleIndex,
                recent: this.prevMovedHandleIndex
            });
            var i = n[this.prevMovedHandleIndex];
            if (r !== i) {
                var o = $e(n);
                o[this.prevMovedHandleIndex] = r,
                this.onChange({
                    bounds: o
                })
            }
        },
        onEnd: function(e) {
            var n = this.sHandle;
            this.removeDocumentEvents(),
            n || (this.dragTrack = !1),
            (n !== null || e) && this.$emit("afterChange", this.bounds),
            this.setState({
                sHandle: null
            })
        },
        onMove: function(e, n, r, a) {
            Hv(e);
            var i = this.$data
              , o = this.$props
              , l = o.max || 100
              , s = o.min || 0;
            if (r) {
                var u = o.vertical ? -n : n;
                u = o.reverse ? -u : u;
                var c = l - Math.max.apply(Math, $e(a))
                  , f = s - Math.min.apply(Math, $e(a))
                  , d = Math.min(Math.max(u / (this.getSliderLength() / 100), f), c)
                  , v = a.map(function(y) {
                    return Math.floor(Math.max(Math.min(y + d, l), s))
                });
                i.bounds.map(function(y, b) {
                    return y === v[b]
                }).some(function(y) {
                    return !y
                }) && this.onChange({
                    bounds: v
                });
                return
            }
            var h = this.bounds
              , p = this.sHandle
              , g = this.calcValueByPos(n)
              , m = h[p];
            g !== m && this.moveTo(g)
        },
        onKeyboard: function(e) {
            var n = this.$props
              , r = n.reverse
              , a = n.vertical
              , i = lne(e, a, r);
            if (i) {
                Hv(e);
                var o = this.bounds
                  , l = this.sHandle
                  , s = o[l === null ? this.recent : l]
                  , u = i(s, this.$props)
                  , c = op({
                    value: u,
                    handle: l,
                    bounds: o,
                    props: this.$props
                });
                if (c === s)
                    return;
                var f = !0;
                this.moveTo(c, f)
            }
        },
        getClosestBound: function(e) {
            for (var n = this.bounds, r = 0, a = 1; a < n.length - 1; a += 1)
                e >= n[a] && (r = a);
            return Math.abs(n[r + 1] - e) < Math.abs(n[r] - e) && (r += 1),
            r
        },
        getBoundNeedMoving: function(e, n) {
            var r = this.bounds
              , a = this.recent
              , i = n
              , o = r[n + 1] === r[n];
            return o && r[a] === r[n] && (i = a),
            o && e !== r[n + 1] && (i = e < r[n + 1] ? n : n + 1),
            i
        },
        getLowerBound: function() {
            return this.bounds[0]
        },
        getUpperBound: function() {
            var e = this.bounds;
            return e[e.length - 1]
        },
        getPoints: function() {
            var e = this.marks
              , n = this.step
              , r = this.min
              , a = this.max
              , i = this.internalPointsCache;
            if (!i || i.marks !== e || i.step !== n) {
                var o = I({}, e);
                if (n !== null)
                    for (var l = r; l <= a; l += n)
                        o[l] = l;
                var s = Object.keys(o).map(parseFloat);
                s.sort(function(u, c) {
                    return u - c
                }),
                this.internalPointsCache = {
                    marks: e,
                    step: n,
                    points: s
                }
            }
            return this.internalPointsCache.points
        },
        moveTo: function(e, n) {
            var r = this
              , a = $e(this.bounds)
              , i = this.sHandle
              , o = this.recent
              , l = i === null ? o : i;
            a[l] = e;
            var s = l;
            this.$props.pushable !== !1 ? this.pushSurroundingHandles(a, s) : this.$props.allowCross && (a.sort(function(u, c) {
                return u - c
            }),
            s = a.indexOf(e)),
            this.onChange({
                recent: s,
                sHandle: s,
                bounds: a
            }),
            n && (this.$emit("afterChange", a),
            this.setState({}, function() {
                r.handlesRefs[s].focus()
            }),
            this.onEnd())
        },
        pushSurroundingHandles: function(e, n) {
            var r = e[n]
              , a = this.pushable
              , i = Number(a)
              , o = 0;
            if (e[n + 1] - r < i && (o = 1),
            r - e[n - 1] < i && (o = -1),
            o !== 0) {
                var l = n + o
                  , s = o * (e[l] - r);
                this.pushHandle(e, l, o, i - s) || (e[n] = e[l] - o * i)
            }
        },
        pushHandle: function(e, n, r, a) {
            for (var i = e[n], o = e[n]; r * (o - i) < a; ) {
                if (!this.pushHandleOnePoint(e, n, r))
                    return e[n] = i,
                    !1;
                o = e[n]
            }
            return !0
        },
        pushHandleOnePoint: function(e, n, r) {
            var a = this.getPoints()
              , i = a.indexOf(e[n])
              , o = i + r;
            if (o >= a.length || o < 0)
                return !1;
            var l = n + r
              , s = a[o]
              , u = this.pushable
              , c = Number(u)
              , f = r * (e[l] - s);
            return this.pushHandle(e, l, r, c - f) ? (e[n] = s,
            !0) : !1
        },
        trimAlignValue: function(e) {
            var n = this.sHandle
              , r = this.bounds;
            return op({
                value: e,
                handle: n,
                bounds: r,
                props: this.$props
            })
        },
        ensureValueNotConflict: function(e, n, r) {
            var a = r.allowCross
              , i = r.pushable
              , o = this.$data || {}
              , l = o.bounds;
            if (e = e === void 0 ? o.sHandle : e,
            i = Number(i),
            !a && e != null && l !== void 0) {
                if (e > 0 && n <= l[e - 1] + i)
                    return l[e - 1] + i;
                if (e < l.length - 1 && n >= l[e + 1] - i)
                    return l[e + 1] - i
            }
            return n
        },
        getTrack: function(e) {
            var n = e.bounds
              , r = e.prefixCls
              , a = e.reverse
              , i = e.vertical
              , o = e.included
              , l = e.offsets
              , s = e.trackStyle;
            return n.slice(0, -1).map(function(u, c) {
                var f, d = c + 1, v = he((f = {},
                z(f, "".concat(r, "-track"), !0),
                z(f, "".concat(r, "-track-").concat(d), !0),
                f));
                return _(ene, {
                    class: v,
                    vertical: i,
                    reverse: a,
                    included: o,
                    offset: l[d - 1],
                    length: l[d] - l[d - 1],
                    style: s[c],
                    key: d
                }, null)
            })
        },
        renderSlider: function() {
            var e = this
              , n = this.sHandle
              , r = this.bounds
              , a = this.prefixCls
              , i = this.vertical
              , o = this.included
              , l = this.disabled
              , s = this.min
              , u = this.max
              , c = this.reverse
              , f = this.handle
              , d = this.defaultHandle
              , v = this.trackStyle
              , h = this.handleStyle
              , p = this.tabindex
              , g = this.ariaLabelGroupForHandles
              , m = this.ariaLabelledByGroupForHandles
              , y = this.ariaValueTextFormatterGroupForHandles
              , b = f || d
              , x = r.map(function(w) {
                return e.calcOffset(w)
            })
              , C = "".concat(a, "-handle")
              , S = r.map(function(w, T) {
                var P, M = p[T] || 0;
                (l || p[T] === null) && (M = null);
                var A = n === T;
                return b({
                    class: he((P = {},
                    z(P, C, !0),
                    z(P, "".concat(C, "-").concat(T + 1), !0),
                    z(P, "".concat(C, "-dragging"), A),
                    P)),
                    prefixCls: a,
                    vertical: i,
                    dragging: A,
                    offset: x[T],
                    value: w,
                    index: T,
                    tabindex: M,
                    min: s,
                    max: u,
                    reverse: c,
                    disabled: l,
                    style: h[T],
                    ref: function(k) {
                        return e.saveHandle(T, k)
                    },
                    onFocus: e.onFocus,
                    onBlur: e.onBlur,
                    ariaLabel: g[T],
                    ariaLabelledBy: m[T],
                    ariaValueTextFormatter: y[T]
                })
            });
            return {
                tracks: this.getTrack({
                    bounds: r,
                    prefixCls: a,
                    reverse: c,
                    vertical: i,
                    included: o,
                    offsets: x,
                    trackStyle: v
                }),
                handles: S
            }
        }
    }
});
const KLe = sne(GLe)
  , ULe = de({
    compatConfig: {
        MODE: 3
    },
    name: "SliderTooltip",
    inheritAttrs: !1,
    props: FQ(),
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = Q(null)
          , o = Q(null);
        function l() {
            gt.cancel(o.value),
            o.value = null
        }
        function s() {
            o.value = gt(function() {
                var c;
                (c = i.value) === null || c === void 0 || c.forcePopupAlign(),
                o.value = null
            })
        }
        var u = function() {
            l(),
            e.visible && s()
        };
        return Te([function() {
            return e.visible
        }
        , function() {
            return e.title
        }
        ], function() {
            u()
        }, {
            flush: "post",
            immediate: !0
        }),
        PC(function() {
            u()
        }),
        Nt(function() {
            l()
        }),
        function() {
            return _(vo, I(I({
                ref: i
            }, e), r), a)
        }
    }
});
var YLe = ["value", "dragging", "index"]
  , qLe = ["tooltipPrefixCls", "range", "id"]
  , XLe = function(e) {
    return typeof e == "number" ? e.toString() : ""
}
  , ZLe = function() {
    return {
        id: String,
        prefixCls: String,
        tooltipPrefixCls: String,
        range: {
            type: [Boolean, Object],
            default: void 0
        },
        reverse: {
            type: Boolean,
            default: void 0
        },
        min: Number,
        max: Number,
        step: {
            type: [Number, Object]
        },
        marks: {
            type: Object
        },
        dots: {
            type: Boolean,
            default: void 0
        },
        value: {
            type: [Number, Array]
        },
        defaultValue: {
            type: [Number, Array]
        },
        included: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        vertical: {
            type: Boolean,
            default: void 0
        },
        tipFormatter: {
            type: [Function, Object],
            default: function() {
                return XLe
            }
        },
        tooltipVisible: {
            type: Boolean,
            default: void 0
        },
        tooltipPlacement: {
            type: String
        },
        getTooltipPopupContainer: {
            type: Function
        },
        autofocus: {
            type: Boolean,
            default: void 0
        },
        handleStyle: {
            type: [Object, Array]
        },
        trackStyle: {
            type: [Object, Array]
        },
        onChange: {
            type: Function
        },
        onAfterChange: {
            type: Function
        },
        onFocus: {
            type: Function
        },
        onBlur: {
            type: Function
        },
        "onUpdate:value": {
            type: Function
        }
    }
}
  , QLe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASlider",
    inheritAttrs: !1,
    props: ZLe(),
    slots: ["mark"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.emit
          , o = n.expose
          , l = je("slider", e)
          , s = l.prefixCls
          , u = l.rootPrefixCls
          , c = l.direction
          , f = l.getPopupContainer
          , d = l.configProvider
          , v = br()
          , h = Q()
          , p = Q({})
          , g = function(T, P) {
            p.value[T] = P
        }
          , m = j(function() {
            return e.tooltipPlacement ? e.tooltipPlacement : e.vertical ? c.value === "rtl" ? "left" : "right" : "top"
        })
          , y = function() {
            var T;
            (T = h.value) === null || T === void 0 || T.focus()
        }
          , b = function() {
            var T;
            (T = h.value) === null || T === void 0 || T.blur()
        }
          , x = function(T) {
            i("update:value", T),
            i("change", T),
            v.onFieldChange()
        }
          , C = function(T) {
            i("blur", T)
        };
        o({
            focus: y,
            blur: b
        });
        var S = function(T) {
            var P = T.tooltipPrefixCls
              , M = T.info
              , A = M.value
              , O = M.dragging
              , k = M.index
              , D = tt(M, YLe)
              , E = e.tipFormatter
              , L = e.tooltipVisible
              , N = e.getTooltipPopupContainer
              , R = E ? p.value[k] || O : !1
              , $ = L || L === void 0 && R;
            return _(ULe, {
                prefixCls: P,
                title: E ? E(A) : "",
                visible: $,
                placement: m.value,
                transitionName: "".concat(u.value, "-zoom-down"),
                key: k,
                overlayClassName: "".concat(s.value, "-tooltip"),
                getPopupContainer: N || f.value
            }, {
                default: function() {
                    return [_(rne, I(I({}, D), {}, {
                        value: A,
                        onMouseenter: function() {
                            return g(k, !0)
                        },
                        onMouseleave: function() {
                            return g(k, !1)
                        }
                    }), null)]
                }
            })
        };
        return function() {
            var w = e.tooltipPrefixCls
              , T = e.range
              , P = e.id
              , M = P === void 0 ? v.id.value : P
              , A = tt(e, qLe)
              , O = d.getPrefixCls("tooltip", w)
              , k = he(r.class, z({}, "".concat(s.value, "-rtl"), c.value === "rtl"));
            c.value === "rtl" && !A.vertical && (A.reverse = !A.reverse);
            var D;
            return We(T) === "object" && (D = T.draggableTrack),
            T ? _(KLe, I(I({}, A), {}, {
                step: A.step,
                draggableTrack: D,
                class: k,
                ref: h,
                handle: function(L) {
                    return S({
                        tooltipPrefixCls: O,
                        prefixCls: s.value,
                        info: L
                    })
                },
                prefixCls: s.value,
                onChange: x,
                onBlur: C
            }), {
                mark: a.mark
            }) : _(jLe, I(I({}, A), {}, {
                id: M,
                step: A.step,
                class: k,
                ref: h,
                handle: function(L) {
                    return S({
                        tooltipPrefixCls: O,
                        prefixCls: s.value,
                        info: L
                    })
                },
                prefixCls: s.value,
                onChange: x,
                onBlur: C
            }), {
                mark: a.mark
            })
        }
    }
});
const JLe = Jn(QLe);
var eRe = {
    small: 8,
    middle: 16,
    large: 24
}
  , tRe = function() {
    return {
        prefixCls: String,
        size: {
            type: [String, Number, Array]
        },
        direction: J.oneOf(Kn("horizontal", "vertical")).def("horizontal"),
        align: J.oneOf(Kn("start", "end", "center", "baseline")),
        wrap: {
            type: Boolean,
            default: void 0
        }
    }
};
function nRe(t) {
    return typeof t == "string" ? eRe[t] : t || 0
}
var rRe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASpace",
    props: tRe(),
    slots: ["split"],
    setup: function(e, n) {
        var r = n.slots
          , a = je("space", e)
          , i = a.prefixCls
          , o = a.space
          , l = a.direction
          , s = hee()
          , u = j(function() {
            var g, m, y;
            return (g = (m = e.size) !== null && m !== void 0 ? m : (y = o.value) === null || y === void 0 ? void 0 : y.size) !== null && g !== void 0 ? g : "small"
        })
          , c = Q()
          , f = Q();
        Te(u, function() {
            var g = (Array.isArray(u.value) ? u.value : [u.value, u.value]).map(function(y) {
                return nRe(y)
            })
              , m = De(g, 2);
            c.value = m[0],
            f.value = m[1]
        }, {
            immediate: !0
        });
        var d = j(function() {
            return e.align === void 0 && e.direction === "horizontal" ? "center" : e.align
        })
          , v = j(function() {
            var g;
            return he(i.value, "".concat(i.value, "-").concat(e.direction), (g = {},
            z(g, "".concat(i.value, "-rtl"), l.value === "rtl"),
            z(g, "".concat(i.value, "-align-").concat(d.value), d.value),
            g))
        })
          , h = j(function() {
            return l.value === "rtl" ? "marginLeft" : "marginRight"
        })
          , p = j(function() {
            var g = {};
            return s.value && (g.columnGap = "".concat(c.value, "px"),
            g.rowGap = "".concat(f.value, "px")),
            I(I({}, g), e.wrap && {
                flexWrap: "wrap",
                marginBottom: "".concat(-f.value, "px")
            })
        });
        return function() {
            var g, m, y = e.wrap, b = e.direction, x = b === void 0 ? "horizontal" : b, C = (g = r.default) === null || g === void 0 ? void 0 : g.call(r), S = ar(C), w = S.length;
            if (w === 0)
                return null;
            var T = (m = r.split) === null || m === void 0 ? void 0 : m.call(r)
              , P = "".concat(i.value, "-item")
              , M = c.value
              , A = w - 1;
            return _("div", {
                class: v.value,
                style: p.value
            }, [S.map(function(O, k) {
                var D = C.indexOf(O)
                  , E = {};
                return s.value || (x === "vertical" ? k < A && (E = {
                    marginBottom: "".concat(M / (T ? 2 : 1), "px")
                }) : E = I(I({}, k < A && z({}, h.value, "".concat(M / (T ? 2 : 1), "px"))), y && {
                    paddingBottom: "".concat(f.value, "px")
                })),
                _(xt, {
                    key: D
                }, [_("div", {
                    class: P,
                    style: E
                }, [O]), k < A && T && _("span", {
                    class: "".concat(P, "-split"),
                    style: E
                }, [T])])
            })])
        }
    }
});
const aRe = Jn(rRe);
var iRe = ["prefixCls"];
const oRe = de({
    compatConfig: {
        MODE: 3
    },
    name: "Steps",
    props: {
        type: J.string.def("default"),
        prefixCls: J.string.def("vc-steps"),
        iconPrefix: J.string.def("vc"),
        direction: J.string.def("horizontal"),
        labelPlacement: J.string.def("horizontal"),
        status: J.string.def("process"),
        size: J.string.def(""),
        progressDot: J.oneOfType([J.looseBool, J.func]).def(void 0),
        initial: J.number.def(0),
        current: J.number.def(0),
        icons: J.shape({
            finish: J.any,
            error: J.any
        }).loose,
        stepIcon: Function
    },
    slots: ["stepIcon", "progressDot"],
    emits: ["change"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = function(l) {
            var s = e.current;
            s !== l && a("change", l)
        };
        return function() {
            var o, l, s = e.prefixCls, u = e.direction, c = e.type, f = e.labelPlacement, d = e.iconPrefix, v = e.status, h = e.size, p = e.current, g = e.progressDot, m = g === void 0 ? r.progressDot : g, y = e.initial, b = e.icons, x = e.stepIcon, C = x === void 0 ? r.stepIcon : x, S = c === "navigation", w = m ? "vertical" : f, T = he(s, "".concat(s, "-").concat(u), (o = {},
            z(o, "".concat(s, "-").concat(h), h),
            z(o, "".concat(s, "-label-").concat(w), u === "horizontal"),
            z(o, "".concat(s, "-dot"), !!m),
            z(o, "".concat(s, "-navigation"), S),
            o)), P = ar((l = r.default) === null || l === void 0 ? void 0 : l.call(r));
            return _("div", {
                class: T
            }, [P.map(function(M, A) {
                var O = M.props || {}
                  , k = O.prefixCls
                  , D = k === void 0 ? s : k
                  , E = tt(O, iRe)
                  , L = y + A
                  , N = I(I({}, E), {}, {
                    stepNumber: L + 1,
                    stepIndex: L,
                    key: L,
                    prefixCls: D,
                    iconPrefix: d,
                    progressDot: m,
                    icons: b,
                    stepIcon: C,
                    onStepClick: i
                });
                return v === "error" && A === p - 1 && (N.class = "".concat(s, "-next-error")),
                E.status || (L === p ? N.status = v : L < p ? N.status = "finish" : N.status = "wait"),
                N.active = L === p,
                Qt(M, N)
            })])
        }
    }
});
function qB(t) {
    return typeof t == "string"
}
function lRe() {}
var une = function() {
    return {
        prefixCls: String,
        wrapperStyle: {
            type: Object,
            default: void 0
        },
        itemWidth: String,
        active: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        status: String,
        iconPrefix: String,
        icon: J.any,
        adjustMarginRight: String,
        stepNumber: Number,
        stepIndex: Number,
        description: J.any,
        title: J.any,
        subTitle: J.any,
        progressDot: fZ(J.oneOfType([J.looseBool, J.func])),
        tailContent: J.any,
        icons: J.shape({
            finish: J.any,
            error: J.any
        }).loose,
        onClick: Function,
        onStepClick: Function,
        stepIcon: Function
    }
};
const sRe = de({
    compatConfig: {
        MODE: 3
    },
    name: "Step",
    props: une(),
    slots: ["title", "subTitle", "description", "tailContent", "stepIcon", "progressDot"],
    emits: ["click", "stepClick"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.emit
          , i = function(s) {
            a("click", s),
            a("stepClick", e.stepIndex)
        }
          , o = function(s) {
            var u, c = s.icon, f = s.title, d = s.description, v = e.prefixCls, h = e.stepNumber, p = e.status, g = e.iconPrefix, m = e.icons, y = e.progressDot, b = y === void 0 ? r.progressDot : y, x = e.stepIcon, C = x === void 0 ? r.stepIcon : x, S, w = (u = {},
            z(u, "".concat(v, "-icon"), !0),
            z(u, "".concat(g, "icon"), !0),
            z(u, "".concat(g, "icon-").concat(c), c && qB(c)),
            z(u, "".concat(g, "icon-check"), !c && p === "finish" && m && !m.finish),
            z(u, "".concat(g, "icon-close"), !c && p === "error" && m && !m.error),
            u), T = _("span", {
                class: "".concat(v, "-icon-dot")
            }, null);
            return b ? typeof b == "function" ? S = _("span", {
                class: "".concat(v, "-icon")
            }, [b({
                iconDot: T,
                index: h - 1,
                status: p,
                title: f,
                description: d,
                prefixCls: v
            })]) : S = _("span", {
                class: "".concat(v, "-icon")
            }, [T]) : c && !qB(c) ? S = _("span", {
                class: "".concat(v, "-icon")
            }, [c]) : m && m.finish && p === "finish" ? S = _("span", {
                class: "".concat(v, "-icon")
            }, [m.finish]) : m && m.error && p === "error" ? S = _("span", {
                class: "".concat(v, "-icon")
            }, [m.error]) : c || p === "finish" || p === "error" ? S = _("span", {
                class: w
            }, null) : S = _("span", {
                class: "".concat(v, "-icon")
            }, [h]),
            C && (S = C({
                index: h - 1,
                status: p,
                title: f,
                description: d,
                node: S
            })),
            S
        };
        return function() {
            var l, s, u, c, f, d = e.prefixCls, v = e.itemWidth, h = e.active, p = e.status, g = p === void 0 ? "wait" : p, m = e.tailContent, y = e.adjustMarginRight, b = e.disabled, x = e.title, C = x === void 0 ? (l = r.title) === null || l === void 0 ? void 0 : l.call(r) : x, S = e.description, w = S === void 0 ? (s = r.description) === null || s === void 0 ? void 0 : s.call(r) : S, T = e.subTitle, P = T === void 0 ? (u = r.subTitle) === null || u === void 0 ? void 0 : u.call(r) : T, M = e.icon, A = M === void 0 ? (c = r.icon) === null || c === void 0 ? void 0 : c.call(r) : M, O = e.onClick, k = e.onStepClick, D = (f = {},
            z(f, "".concat(d, "-item"), !0),
            z(f, "".concat(d, "-item-").concat(g), !0),
            z(f, "".concat(d, "-item-custom"), A),
            z(f, "".concat(d, "-item-active"), h),
            z(f, "".concat(d, "-item-disabled"), b === !0),
            f), E = {
                class: D
            }, L = {};
            v && (L.width = v),
            y && (L.marginRight = y);
            var N = {
                onClick: O || lRe
            };
            return k && !b && (N.role = "button",
            N.tabindex = 0,
            N.onClick = i),
            _("div", I(I({}, E), {}, {
                style: L
            }), [_("div", I(I({}, N), {}, {
                class: "".concat(d, "-item-container")
            }), [_("div", {
                class: "".concat(d, "-item-tail")
            }, [m]), _("div", {
                class: "".concat(d, "-item-icon")
            }, [o({
                icon: A,
                title: C,
                description: w
            })]), _("div", {
                class: "".concat(d, "-item-content")
            }, [_("div", {
                class: "".concat(d, "-item-title")
            }, [C, P && _("div", {
                title: P,
                class: "".concat(d, "-item-subtitle")
            }, [P])]), w && _("div", {
                class: "".concat(d, "-item-description")
            }, [w])])])])
        }
    }
});
var uRe = function() {
    return {
        prefixCls: String,
        iconPrefix: String,
        current: Number,
        initial: Number,
        percent: Number,
        responsive: {
            type: Boolean,
            default: void 0
        },
        labelPlacement: String,
        status: String,
        size: String,
        direction: String,
        progressDot: {
            type: [Boolean, Function],
            default: void 0
        },
        type: String,
        onChange: Function,
        "onUpdate:current": Function
    }
}
  , $T = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASteps",
    inheritAttrs: !1,
    props: $t(uRe(), {
        current: 0,
        responsive: !0,
        labelPlacement: "horizontal"
    }),
    slots: ["progressDot"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.emit
          , o = je("steps", e)
          , l = o.prefixCls
          , s = o.direction
          , u = o.configProvider
          , c = yh()
          , f = j(function() {
            return e.responsive && c.value.xs ? "vertical" : e.direction
        })
          , d = j(function() {
            return u.getPrefixCls("", e.iconPrefix)
        })
          , v = function(g) {
            i("update:current", g),
            i("change", g)
        }
          , h = function(g) {
            var m = g.node
              , y = g.status;
            if (y === "process" && e.percent !== void 0) {
                var b = e.size === "small" ? 32 : 40
                  , x = _("div", {
                    class: "".concat(l, "-progress-icon")
                }, [_(sE, {
                    type: "circle",
                    percent: e.percent,
                    width: b,
                    strokeWidth: 4,
                    format: function() {
                        return null
                    }
                }, null), m]);
                return x
            }
            return m
        };
        return function() {
            var p, g = he((p = {},
            z(p, "".concat(l.value, "-rtl"), s.value === "rtl"),
            z(p, "".concat(l.value, "-with-progress"), e.percent !== void 0),
            p), r.class), m = {
                finish: _(JC, {
                    class: "".concat(l, "-finish-icon")
                }, null),
                error: _(Sl, {
                    class: "".concat(l, "-error-icon")
                }, null)
            };
            return _(oRe, I(I({
                icons: m
            }, Et(e, ["percent", "responsive"])), {}, {
                direction: f.value,
                prefixCls: l.value,
                iconPrefix: d.value,
                class: g,
                onChange: v
            }), I(I({}, a), {}, {
                stepIcon: h
            }))
        }
    }
})
  , Db = de(I(I({
    compatConfig: {
        MODE: 3
    }
}, sRe), {}, {
    name: "AStep",
    props: une()
}));
const cRe = Wt($T, {
    Step: Db,
    install: function(e) {
        return e.component($T.name, $T),
        e.component(Db.name, Db),
        e
    }
});
var fRe = Kn("small", "default")
  , dRe = function() {
    return {
        id: String,
        prefixCls: String,
        size: J.oneOf(fRe),
        disabled: {
            type: Boolean,
            default: void 0
        },
        checkedChildren: J.any,
        unCheckedChildren: J.any,
        tabindex: J.oneOfType([J.string, J.number]),
        autofocus: {
            type: Boolean,
            default: void 0
        },
        loading: {
            type: Boolean,
            default: void 0
        },
        checked: J.oneOfType([J.string, J.number, J.looseBool]),
        checkedValue: J.oneOfType([J.string, J.number, J.looseBool]).def(!0),
        unCheckedValue: J.oneOfType([J.string, J.number, J.looseBool]).def(!1),
        onChange: {
            type: Function
        },
        onClick: {
            type: Function
        },
        onKeydown: {
            type: Function
        },
        onMouseup: {
            type: Function
        },
        "onUpdate:checked": {
            type: Function
        },
        onBlur: Function,
        onFocus: Function
    }
}
  , vRe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ASwitch",
    __ANT_SWITCH: !0,
    inheritAttrs: !1,
    props: dRe(),
    slots: ["checkedChildren", "unCheckedChildren"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.expose
          , o = n.emit
          , l = br();
        dm(function() {
            ur(!("defaultChecked"in r), "Switch", "'defaultChecked' is deprecated, please use 'v-model:checked'"),
            ur(!("value"in r), "Switch", "`value` is not validate prop, do you mean `checked`?")
        });
        var s = Q(e.checked !== void 0 ? e.checked : r.defaultChecked)
          , u = j(function() {
            return s.value === e.checkedValue
        });
        Te(function() {
            return e.checked
        }, function() {
            s.value = e.checked
        });
        var c = je("switch", e)
          , f = c.prefixCls
          , d = c.direction
          , v = c.size
          , h = Q()
          , p = function() {
            var T;
            (T = h.value) === null || T === void 0 || T.focus()
        }
          , g = function() {
            var T;
            (T = h.value) === null || T === void 0 || T.blur()
        };
        i({
            focus: p,
            blur: g
        }),
        ct(function() {
            yt(function() {
                e.autofocus && !e.disabled && h.value.focus()
            })
        });
        var m = function(T, P) {
            e.disabled || (o("update:checked", T),
            o("change", T, P),
            l.onFieldChange())
        }
          , y = function(T) {
            o("blur", T)
        }
          , b = function(T) {
            p();
            var P = u.value ? e.unCheckedValue : e.checkedValue;
            m(P, T),
            o("click", P, T)
        }
          , x = function(T) {
            T.keyCode === Ee.LEFT ? m(e.unCheckedValue, T) : T.keyCode === Ee.RIGHT && m(e.checkedValue, T),
            o("keydown", T)
        }
          , C = function(T) {
            var P;
            (P = h.value) === null || P === void 0 || P.blur(),
            o("mouseup", T)
        }
          , S = j(function() {
            var w;
            return w = {},
            z(w, "".concat(f.value, "-small"), v.value === "small"),
            z(w, "".concat(f.value, "-loading"), e.loading),
            z(w, "".concat(f.value, "-checked"), u.value),
            z(w, "".concat(f.value, "-disabled"), e.disabled),
            z(w, f.value, !0),
            z(w, "".concat(f.value, "-rtl"), d.value === "rtl"),
            w
        });
        return function() {
            var w;
            return _(ND, {
                insertExtraNode: !0
            }, {
                default: function() {
                    return [_("button", I(I(I({}, Et(e, ["prefixCls", "checkedChildren", "unCheckedChildren", "checked", "autofocus", "checkedValue", "unCheckedValue", "id", "onChange", "onUpdate:checked"])), r), {}, {
                        id: (w = e.id) !== null && w !== void 0 ? w : l.id.value,
                        onKeydown: x,
                        onClick: b,
                        onBlur: y,
                        onMouseup: C,
                        type: "button",
                        role: "switch",
                        "aria-checked": s.value,
                        disabled: e.disabled || e.loading,
                        class: [r.class, S.value],
                        ref: h
                    }), [_("div", {
                        class: "".concat(f.value, "-handle")
                    }, [e.loading ? _(Co, {
                        class: "".concat(f.value, "-loading-icon")
                    }, null) : null]), _("span", {
                        class: "".concat(f.value, "-inner")
                    }, [u.value ? Dn(a, e, "checkedChildren") : Dn(a, e, "unCheckedChildren")])])]
                }
            })
        }
    }
});
const hRe = Jn(vRe);
var cne = Symbol("TableContextProps")
  , pRe = function(e) {
    It(cne, e)
}
  , wl = function() {
    return vt(cne, {})
}
  , gRe = "RC_TABLE_KEY";
function fne(t) {
    return t == null ? [] : Array.isArray(t) ? t : [t]
}
function dne(t, e) {
    if (!e && typeof e != "number")
        return t;
    for (var n = fne(e), r = t, a = 0; a < n.length; a += 1) {
        if (!r)
            return null;
        var i = n[a];
        r = r[i]
    }
    return r
}
function _w(t) {
    var e = []
      , n = {};
    return t.forEach(function(r) {
        for (var a = r || {}, i = a.key, o = a.dataIndex, l = i || fne(o).join("-") || gRe; n[l]; )
            l = "".concat(l, "_next");
        n[l] = !0,
        e.push(l)
    }),
    e
}
function mRe() {
    var t = {};
    function e(i, o) {
        o && Object.keys(o).forEach(function(l) {
            var s = o[l];
            s && We(s) === "object" ? (i[l] = i[l] || {},
            e(i[l], s)) : i[l] = s
        })
    }
    for (var n = arguments.length, r = new Array(n), a = 0; a < n; a++)
        r[a] = arguments[a];
    return r.forEach(function(i) {
        e(t, i)
    }),
    t
}
function hA(t) {
    return t != null
}
var vne = Symbol("SlotsContextProps")
  , yRe = function(e) {
    It(vne, e)
}
  , hne = function() {
    return vt(vne, j(function() {
        return {}
    }))
}
  , pne = Symbol("ContextProps")
  , bRe = function(e) {
    It(pne, e)
}
  , xRe = function() {
    return vt(pne, {
        onResizeColumn: function() {}
    })
}
  , yv = "RC_TABLE_INTERNAL_COL_DEFINE"
  , gne = Symbol("HoverContextProps")
  , SRe = function(e) {
    It(gne, e)
}
  , CRe = function() {
    return vt(gne, {
        startRow: Q(-1),
        endRow: Q(-1),
        onHover: function() {}
    })
}
  , pA = Q(!1)
  , wRe = function() {
    ct(function() {
        pA.value = pA.value || T8("position", "sticky")
    })
}
  , _Re = function() {
    return pA
}
  , TRe = ["colSpan", "rowSpan", "style", "class"];
function PRe(t, e, n, r) {
    var a = t + e - 1;
    return t <= r && a >= n
}
function MRe(t) {
    return t && We(t) === "object" && !Array.isArray(t) && !Hr(t)
}
const Tw = de({
    name: "Cell",
    props: ["prefixCls", "record", "index", "renderIndex", "dataIndex", "customRender", "component", "colSpan", "rowSpan", "fixLeft", "fixRight", "firstFixLeft", "lastFixLeft", "firstFixRight", "lastFixRight", "appendNode", "additionalProps", "ellipsis", "align", "rowType", "isSticky", "column", "cellType", "transformCellText"],
    slots: ["appendNode"],
    setup: function(e, n) {
        var r = n.slots
          , a = hne()
          , i = CRe()
          , o = i.onHover
          , l = i.startRow
          , s = i.endRow
          , u = j(function() {
            var g, m, y, b;
            return (g = (m = e.colSpan) !== null && m !== void 0 ? m : (y = e.additionalProps) === null || y === void 0 ? void 0 : y.colSpan) !== null && g !== void 0 ? g : (b = e.additionalProps) === null || b === void 0 ? void 0 : b.colspan
        })
          , c = j(function() {
            var g, m, y, b;
            return (g = (m = e.rowSpan) !== null && m !== void 0 ? m : (y = e.additionalProps) === null || y === void 0 ? void 0 : y.rowSpan) !== null && g !== void 0 ? g : (b = e.additionalProps) === null || b === void 0 ? void 0 : b.rowspan
        })
          , f = Qa(function() {
            var g = e.index;
            return PRe(g, c.value || 1, l.value, s.value)
        })
          , d = _Re()
          , v = function(m, y) {
            var b, x = e.record, C = e.index, S = e.additionalProps;
            x && o(C, C + y - 1),
            S == null || (b = S.onMouseenter) === null || b === void 0 || b.call(S, m)
        }
          , h = function(m) {
            var y, b = e.record, x = e.additionalProps;
            b && o(-1, -1),
            x == null || (y = x.onMouseleave) === null || y === void 0 || y.call(x, m)
        }
          , p = function g(m) {
            var y = ar(m)[0];
            return Hr(y) ? y.type === gs ? y.children : Array.isArray(y.children) ? g(y.children) : void 0 : y
        };
        return function() {
            var g, m, y, b, x, C, S = e.prefixCls, w = e.record, T = e.index, P = e.renderIndex, M = e.dataIndex, A = e.customRender, O = e.component, k = O === void 0 ? "td" : O, D = e.fixLeft, E = e.fixRight, L = e.firstFixLeft, N = e.lastFixLeft, R = e.firstFixRight, $ = e.lastFixRight, W = e.appendNode, B = W === void 0 ? (g = r.appendNode) === null || g === void 0 ? void 0 : g.call(r) : W, G = e.additionalProps, K = G === void 0 ? {} : G, V = e.ellipsis, U = e.align, X = e.rowType, Y = e.isSticky, te = e.column, ne = te === void 0 ? {} : te, ie = e.cellType, ae = "".concat(S, "-cell"), q, F, H = (m = r.default) === null || m === void 0 ? void 0 : m.call(r);
            if (hA(H) || ie === "header")
                F = H;
            else {
                var ee, re = dne(w, M);
                if (F = re,
                A) {
                    var ue = A({
                        text: re,
                        value: re,
                        record: w,
                        index: T,
                        renderIndex: P,
                        column: ne.__originColumn__
                    });
                    MRe(ue) ? (F = ue.children,
                    q = ue.props) : F = ue
                }
                if (!(yv in ne) && ie === "body" && a.value.bodyCell && !((ee = ne.slots) !== null && ee !== void 0 && ee.customRender)) {
                    var ve = oo(a.value, "bodyCell", {
                        text: re,
                        value: re,
                        record: w,
                        index: T,
                        column: ne.__originColumn__
                    }, function() {
                        var ye = F === void 0 ? re : F;
                        return [We(ye) === "object" && cr(ye) || We(ye) !== "object" ? ye : null]
                    });
                    F = bn(ve)
                }
                e.transformCellText && (F = e.transformCellText({
                    text: F,
                    record: w,
                    index: T,
                    column: ne.__originColumn__
                }))
            }
            We(F) === "object" && !Array.isArray(F) && !Hr(F) && (F = null),
            V && (N || R) && (F = _("span", {
                class: "".concat(ae, "-content")
            }, [F])),
            Array.isArray(F) && F.length === 1 && (F = F[0]);
            var fe = q || {}
              , ce = fe.colSpan
              , le = fe.rowSpan
              , oe = fe.style
              , se = fe.class
              , xe = tt(fe, TRe)
              , Pe = (y = ce !== void 0 ? ce : u.value) !== null && y !== void 0 ? y : 1
              , Fe = (b = le !== void 0 ? le : c.value) !== null && b !== void 0 ? b : 1;
            if (Pe === 0 || Fe === 0)
                return null;
            var ze = {}
              , _e = typeof D == "number" && d.value
              , me = typeof E == "number" && d.value;
            _e && (ze.position = "sticky",
            ze.left = "".concat(D, "px")),
            me && (ze.position = "sticky",
            ze.right = "".concat(E, "px"));
            var Ie = {};
            U && (Ie.textAlign = U);
            var Oe, Ce = V === !0 ? {
                showTitle: !0
            } : V;
            Ce && (Ce.showTitle || X === "header") && (typeof F == "string" || typeof F == "number" ? Oe = F.toString() : Hr(F) && (Oe = p([F])));
            var pe = I(I(I({
                title: Oe
            }, xe), K), {}, {
                colSpan: Pe !== 1 ? Pe : null,
                rowSpan: Fe !== 1 ? Fe : null,
                class: he(ae, (x = {},
                z(x, "".concat(ae, "-fix-left"), _e && d.value),
                z(x, "".concat(ae, "-fix-left-first"), L && d.value),
                z(x, "".concat(ae, "-fix-left-last"), N && d.value),
                z(x, "".concat(ae, "-fix-right"), me && d.value),
                z(x, "".concat(ae, "-fix-right-first"), R && d.value),
                z(x, "".concat(ae, "-fix-right-last"), $ && d.value),
                z(x, "".concat(ae, "-ellipsis"), V),
                z(x, "".concat(ae, "-with-append"), B),
                z(x, "".concat(ae, "-fix-sticky"), (_e || me) && Y && d.value),
                z(x, "".concat(ae, "-row-hover"), !q && f.value),
                x), K.class, se),
                onMouseenter: function(be) {
                    v(be, Fe)
                },
                onMouseleave: h,
                style: I(I(I(I({}, OO(K.style)), Ie), ze), oe)
            });
            return _(k, pe, {
                default: function() {
                    return [B, F, (C = r.dragHandle) === null || C === void 0 ? void 0 : C.call(r)]
                }
            })
        }
    }
});
function gE(t, e, n, r, a) {
    var i = n[t] || {}, o = n[e] || {}, l, s;
    i.fixed === "left" ? l = r.left[t] : o.fixed === "right" && (s = r.right[e]);
    var u = !1
      , c = !1
      , f = !1
      , d = !1
      , v = n[e + 1]
      , h = n[t - 1];
    if (a === "rtl") {
        if (l !== void 0) {
            var p = h && h.fixed === "left";
            d = !p
        } else if (s !== void 0) {
            var g = v && v.fixed === "right";
            f = !g
        }
    } else if (l !== void 0) {
        var m = v && v.fixed === "left";
        u = !m
    } else if (s !== void 0) {
        var y = h && h.fixed === "right";
        c = !y
    }
    return {
        fixLeft: l,
        fixRight: s,
        lastFixLeft: u,
        firstFixRight: c,
        lastFixRight: f,
        firstFixLeft: d,
        isSticky: r.isSticky
    }
}
var XB = {
    mouse: {
        start: "mousedown",
        move: "mousemove",
        stop: "mouseup"
    },
    touch: {
        start: "touchstart",
        move: "touchmove",
        stop: "touchend"
    }
}
  , ZB = 50;
const ARe = de({
    compatConfig: {
        MODE: 3
    },
    name: "DragHandle",
    props: {
        prefixCls: String,
        width: {
            type: Number,
            required: !0
        },
        minWidth: {
            type: Number,
            default: ZB
        },
        maxWidth: {
            type: Number,
            default: 1 / 0
        },
        column: {
            type: Object,
            default: void 0
        }
    },
    setup: function(e) {
        var n = 0
          , r = {
            remove: function() {}
        }
          , a = {
            remove: function() {}
        }
          , i = function() {
            r.remove(),
            a.remove()
        };
        dr(function() {
            i()
        }),
        pt(function() {
            sn(!isNaN(e.width), "Table", "width must be a number when use resizable")
        });
        var o = xRe(), l = o.onResizeColumn, s = j(function() {
            return typeof e.minWidth == "number" && !isNaN(e.minWidth) ? e.minWidth : ZB
        }), u = j(function() {
            return typeof e.maxWidth == "number" && !isNaN(e.maxWidth) ? e.maxWidth : 1 / 0
        }), c = qn(), f = 0, d = Q(!1), v, h = function(S) {
            var w = 0;
            S.touches ? S.touches.length ? w = S.touches[0].pageX : w = S.changedTouches[0].pageX : w = S.pageX;
            var T = n - w
              , P = Math.max(f - T, s.value);
            P = Math.min(P, u.value),
            gt.cancel(v),
            v = gt(function() {
                l(P, e.column.__originColumn__)
            })
        }, p = function(S) {
            h(S)
        }, g = function(S) {
            d.value = !1,
            h(S),
            i()
        }, m = function(S, w) {
            d.value = !0,
            i(),
            f = c.vnode.el.parentNode.getBoundingClientRect().width,
            !(S instanceof MouseEvent && S.which !== 1) && (S.stopPropagation && S.stopPropagation(),
            n = S.touches ? S.touches[0].pageX : S.pageX,
            r = Nn(document.documentElement, w.move, p),
            a = Nn(document.documentElement, w.stop, g))
        }, y = function(S) {
            S.stopPropagation(),
            S.preventDefault(),
            m(S, XB.mouse)
        }, b = function(S) {
            S.stopPropagation(),
            S.preventDefault(),
            m(S, XB.touch)
        }, x = function(S) {
            S.stopPropagation(),
            S.preventDefault()
        };
        return function() {
            var C = e.prefixCls
              , S = z({}, gr ? "onTouchstartPassive" : "onTouchstart", function(w) {
                return b(w)
            });
            return _("div", I(I({
                class: "".concat(C, "-resize-handle ").concat(d.value ? "dragging" : ""),
                onMousedown: y
            }, S), {}, {
                onClick: x
            }), [_("div", {
                class: "".concat(C, "-resize-handle-line")
            }, null)])
        }
    }
})
  , IRe = de({
    name: "HeaderRow",
    props: ["cells", "stickyOffsets", "flattenColumns", "rowComponent", "cellComponent", "index", "customHeaderRow"],
    setup: function(e) {
        var n = wl();
        return function() {
            var r = n.prefixCls, a = n.direction, i = e.cells, o = e.stickyOffsets, l = e.flattenColumns, s = e.rowComponent, u = e.cellComponent, c = e.customHeaderRow, f = e.index, d;
            c && (d = c(i.map(function(h) {
                return h.column
            }), f));
            var v = _w(i.map(function(h) {
                return h.column
            }));
            return _(s, d, {
                default: function() {
                    return [i.map(function(p, g) {
                        var m = p.column, y = gE(p.colStart, p.colEnd, l, o, a), b;
                        m && m.customHeaderCell && (b = p.column.customHeaderCell(m));
                        var x = m;
                        return _(Tw, I(I(I({}, p), {}, {
                            cellType: "header",
                            ellipsis: m.ellipsis,
                            align: m.align,
                            component: u,
                            prefixCls: r,
                            key: v[g]
                        }, y), {}, {
                            additionalProps: b,
                            rowType: "header",
                            column: m
                        }), {
                            default: function() {
                                return m.title
                            },
                            dragHandle: function() {
                                return x.resizable ? _(ARe, {
                                    prefixCls: r,
                                    width: x.width,
                                    minWidth: x.minWidth,
                                    maxWidth: x.maxWidth,
                                    column: x
                                }, null) : null
                            }
                        })
                    })]
                }
            })
        }
    }
});
function kRe(t) {
    var e = [];
    function n(o, l) {
        var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
        e[s] = e[s] || [];
        var u = l
          , c = o.filter(Boolean).map(function(f) {
            var d = {
                key: f.key,
                class: he(f.className, f.class),
                column: f,
                colStart: u
            }
              , v = 1
              , h = f.children;
            return h && h.length > 0 && (v = n(h, u, s + 1).reduce(function(p, g) {
                return p + g
            }, 0),
            d.hasSubColumns = !0),
            "colSpan"in f && (v = f.colSpan),
            "rowSpan"in f && (d.rowSpan = f.rowSpan),
            d.colSpan = v,
            d.colEnd = d.colStart + v - 1,
            e[s].push(d),
            u += v,
            v
        });
        return c
    }
    n(t, 0);
    for (var r = e.length, a = function(l) {
        e[l].forEach(function(s) {
            !("rowSpan"in s) && !s.hasSubColumns && (s.rowSpan = r - l)
        })
    }, i = 0; i < r; i += 1)
        a(i);
    return e
}
const QB = de({
    name: "Header",
    inheritAttrs: !1,
    props: ["columns", "flattenColumns", "stickyOffsets", "customHeaderRow"],
    setup: function(e) {
        var n = wl()
          , r = j(function() {
            return kRe(e.columns)
        });
        return function() {
            var a = n.prefixCls
              , i = n.getComponent
              , o = e.stickyOffsets
              , l = e.flattenColumns
              , s = e.customHeaderRow
              , u = i(["header", "wrapper"], "thead")
              , c = i(["header", "row"], "tr")
              , f = i(["header", "cell"], "th");
            return _(u, {
                class: "".concat(a, "-thead")
            }, {
                default: function() {
                    return [r.value.map(function(v, h) {
                        var p = _(IRe, {
                            key: h,
                            flattenColumns: l,
                            cells: v,
                            stickyOffsets: o,
                            rowComponent: c,
                            cellComponent: f,
                            customHeaderRow: s,
                            index: h
                        }, null);
                        return p
                    })]
                }
            })
        }
    }
});
var mne = Symbol("ExpandedRowProps")
  , ORe = function(e) {
    It(mne, e)
}
  , DRe = function() {
    return vt(mne, {})
};
const yne = de({
    name: "ExpandedRow",
    inheritAttrs: !1,
    props: ["prefixCls", "component", "cellComponent", "expanded", "colSpan", "isEmpty"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = wl()
          , o = DRe()
          , l = o.fixHeader
          , s = o.fixColumn
          , u = o.componentWidth
          , c = o.horizonScroll;
        return function() {
            var f = e.prefixCls
              , d = e.component
              , v = e.cellComponent
              , h = e.expanded
              , p = e.colSpan
              , g = e.isEmpty;
            return _(d, {
                class: a.class,
                style: {
                    display: h ? null : "none"
                }
            }, {
                default: function() {
                    return [_(Tw, {
                        component: v,
                        prefixCls: f,
                        colSpan: p
                    }, {
                        default: function() {
                            var b, x = (b = r.default) === null || b === void 0 ? void 0 : b.call(r);
                            return (g ? c.value : s.value) && (x = _("div", {
                                style: {
                                    width: "".concat(u.value - (l.value ? i.scrollbarSize : 0), "px"),
                                    position: "sticky",
                                    left: 0,
                                    overflow: "hidden"
                                },
                                class: "".concat(f, "-expanded-row-fixed")
                            }, [x])),
                            x
                        }
                    })]
                }
            })
        }
    }
})
  , ERe = de({
    name: "MeasureCell",
    props: ["columnKey"],
    setup: function(e, n) {
        var r = n.emit
          , a = Q();
        return ct(function() {
            a.value && r("columnResize", e.columnKey, a.value.offsetWidth)
        }),
        function() {
            return _(Vi, {
                onResize: function(o) {
                    var l = o.offsetWidth;
                    r("columnResize", e.columnKey, l)
                }
            }, {
                default: function() {
                    return [_("td", {
                        ref: a,
                        style: {
                            padding: 0,
                            border: 0,
                            height: 0
                        }
                    }, [_("div", {
                        style: {
                            height: 0,
                            overflow: "hidden"
                        }
                    }, [Fi("\xA0")])])]
                }
            })
        }
    }
});
var bne = Symbol("BodyContextProps")
  , LRe = function(e) {
    It(bne, e)
}
  , xne = function() {
    return vt(bne, {})
};
const RRe = de({
    name: "BodyRow",
    inheritAttrs: !1,
    props: ["record", "index", "renderIndex", "recordKey", "expandedKeys", "rowComponent", "cellComponent", "customRow", "rowExpandable", "indent", "rowKey", "getRowKey", "childrenColumnName"],
    setup: function(e, n) {
        var r = n.attrs
          , a = wl()
          , i = xne()
          , o = Q(!1)
          , l = j(function() {
            return e.expandedKeys && e.expandedKeys.has(e.recordKey)
        });
        pt(function() {
            l.value && (o.value = !0)
        });
        var s = j(function() {
            return i.expandableType === "row" && (!e.rowExpandable || e.rowExpandable(e.record))
        })
          , u = j(function() {
            return i.expandableType === "nest"
        })
          , c = j(function() {
            return e.childrenColumnName && e.record && e.record[e.childrenColumnName]
        })
          , f = j(function() {
            return s.value || u.value
        })
          , d = function(y, b) {
            i.onTriggerExpand(y, b)
        }
          , v = j(function() {
            var m;
            return ((m = e.customRow) === null || m === void 0 ? void 0 : m.call(e, e.record, e.index)) || {}
        })
          , h = function(y) {
            var b, x;
            i.expandRowByClick && f.value && d(e.record, y);
            for (var C = arguments.length, S = new Array(C > 1 ? C - 1 : 0), w = 1; w < C; w++)
                S[w - 1] = arguments[w];
            (b = v.value) === null || b === void 0 || (x = b.onClick) === null || x === void 0 || x.call.apply(x, [b, y].concat(S))
        }
          , p = j(function() {
            var m = e.record
              , y = e.index
              , b = e.indent
              , x = i.rowClassName;
            return typeof x == "string" ? x : typeof x == "function" ? x(m, y, b) : ""
        })
          , g = j(function() {
            return _w(i.flattenColumns)
        });
        return function() {
            var m = r.class, y = r.style, b = e.record, x = e.index, C = e.rowKey, S = e.indent, w = S === void 0 ? 0 : S, T = e.rowComponent, P = e.cellComponent, M = a.prefixCls, A = a.fixedInfoList, O = a.transformCellText, k = i.flattenColumns, D = i.expandedRowClassName, E = i.indentSize, L = i.expandIcon, N = i.expandedRowRender, R = i.expandIconColumnIndex, $ = _(T, I(I({}, v.value), {}, {
                "data-row-key": C,
                class: he(m, "".concat(M, "-row"), "".concat(M, "-row-level-").concat(w), p.value, v.value.class),
                style: I(I({}, y), OO(v.value.style)),
                onClick: h
            }), {
                default: function() {
                    return [k.map(function(V, U) {
                        var X = V.customRender, Y = V.dataIndex, te = V.className, ne = g[U], ie = A[U], ae;
                        V.customCell && (ae = V.customCell(b, x, V));
                        var q = U === (R || 0) && u.value ? _(xt, null, [_("span", {
                            style: {
                                paddingLeft: "".concat(E * w, "px")
                            },
                            class: "".concat(M, "-row-indent indent-level-").concat(w)
                        }, null), L({
                            prefixCls: M,
                            expanded: l.value,
                            expandable: c.value,
                            record: b,
                            onExpand: d
                        })]) : null;
                        return _(Tw, I(I({
                            cellType: "body",
                            class: te,
                            ellipsis: V.ellipsis,
                            align: V.align,
                            component: P,
                            prefixCls: M,
                            key: ne,
                            record: b,
                            index: x,
                            renderIndex: e.renderIndex,
                            dataIndex: Y,
                            customRender: X
                        }, ie), {}, {
                            additionalProps: ae,
                            column: V,
                            transformCellText: O,
                            appendNode: q
                        }), null)
                    })]
                }
            }), W;
            if (s.value && (o.value || l.value)) {
                var B = N({
                    record: b,
                    index: x,
                    indent: w + 1,
                    expanded: l.value
                })
                  , G = D && D(b, x, w);
                W = _(yne, {
                    expanded: l.value,
                    class: he("".concat(M, "-expanded-row"), "".concat(M, "-expanded-row-level-").concat(w + 1), G),
                    prefixCls: M,
                    component: T,
                    cellComponent: P,
                    colSpan: k.length,
                    isEmpty: !1
                }, {
                    default: function() {
                        return [B]
                    }
                })
            }
            return _(xt, null, [$, W])
        }
    }
});
function Sne(t, e, n, r, a, i) {
    var o = [];
    o.push({
        record: t,
        indent: e,
        index: i
    });
    var l = a(t)
      , s = r == null ? void 0 : r.has(l);
    if (t && Array.isArray(t[n]) && s)
        for (var u = 0; u < t[n].length; u += 1) {
            var c = Sne(t[n][u], e + 1, n, r, a, u);
            o.push.apply(o, $e(c))
        }
    return o
}
function NRe(t, e, n, r) {
    var a = j(function() {
        var i = e.value
          , o = n.value
          , l = t.value;
        if (o != null && o.size) {
            for (var s = [], u = 0; u < (l == null ? void 0 : l.length); u += 1) {
                var c = l[u];
                s.push.apply(s, $e(Sne(c, 0, i, o, r.value, u)))
            }
            return s
        }
        return l == null ? void 0 : l.map(function(f, d) {
            return {
                record: f,
                indent: 0,
                index: d
            }
        })
    });
    return a
}
var Cne = Symbol("ResizeContextProps")
  , $Re = function(e) {
    It(Cne, e)
}
  , FRe = function() {
    return vt(Cne, {
        onColumnResize: function() {}
    })
};
const BRe = de({
    name: "Body",
    props: ["data", "getRowKey", "measureColumnWidth", "expandedKeys", "customRow", "rowExpandable", "childrenColumnName"],
    slots: ["emptyNode"],
    setup: function(e, n) {
        var r = n.slots, a = FRe(), i = wl(), o = xne(), l = NRe(at(e, "data"), at(e, "childrenColumnName"), at(e, "expandedKeys"), at(e, "getRowKey")), s = Q(-1), u = Q(-1), c;
        return SRe({
            startRow: s,
            endRow: u,
            onHover: function(d, v) {
                clearTimeout(c),
                c = setTimeout(function() {
                    s.value = d,
                    u.value = v
                }, 100)
            }
        }),
        function() {
            var f = e.data, d = e.getRowKey, v = e.measureColumnWidth, h = e.expandedKeys, p = e.customRow, g = e.rowExpandable, m = e.childrenColumnName, y = a.onColumnResize, b = i.prefixCls, x = i.getComponent, C = o.flattenColumns, S = x(["body", "wrapper"], "tbody"), w = x(["body", "row"], "tr"), T = x(["body", "cell"], "td"), P;
            if (f.length)
                P = l.value.map(function(O, k) {
                    var D = O.record
                      , E = O.indent
                      , L = O.index
                      , N = d(D, k);
                    return _(RRe, {
                        key: N,
                        rowKey: N,
                        record: D,
                        recordKey: N,
                        index: k,
                        renderIndex: L,
                        rowComponent: w,
                        cellComponent: T,
                        expandedKeys: h,
                        customRow: p,
                        getRowKey: d,
                        rowExpandable: g,
                        childrenColumnName: m,
                        indent: E
                    }, null)
                });
            else {
                var M;
                P = _(yne, {
                    expanded: !0,
                    class: "".concat(b, "-placeholder"),
                    prefixCls: b,
                    component: w,
                    cellComponent: T,
                    colSpan: C.length,
                    isEmpty: !0
                }, {
                    default: function() {
                        return [(M = r.emptyNode) === null || M === void 0 ? void 0 : M.call(r)]
                    }
                })
            }
            var A = _w(C);
            return _(S, {
                class: "".concat(b, "-tbody")
            }, {
                default: function() {
                    return [v && _("tr", {
                        "aria-hidden": "true",
                        class: "".concat(b, "-measure-row"),
                        style: {
                            height: 0,
                            fontSize: 0
                        }
                    }, [A.map(function(k) {
                        return _(ERe, {
                            key: k,
                            columnKey: k,
                            onColumnResize: y
                        }, null)
                    })]), P]
                }
            })
        }
    }
});
var Ys = {}
  , VRe = ["fixed"];
function gA(t) {
    return t.reduce(function(e, n) {
        var r = n.fixed
          , a = r === !0 ? "left" : r
          , i = n.children;
        return i && i.length > 0 ? [].concat($e(e), $e(gA(i).map(function(o) {
            return I({
                fixed: a
            }, o)
        }))) : [].concat($e(e), [I(I({}, n), {}, {
            fixed: a
        })])
    }, [])
}
function zRe(t) {
    return t.map(function(e) {
        var n = e.fixed
          , r = tt(e, VRe)
          , a = n;
        return n === "left" ? a = "right" : n === "right" && (a = "left"),
        I({
            fixed: a
        }, r)
    })
}
function HRe(t, e) {
    var n = t.prefixCls
      , r = t.columns
      , a = t.expandable
      , i = t.expandedKeys
      , o = t.getRowKey
      , l = t.onTriggerExpand
      , s = t.expandIcon
      , u = t.rowExpandable
      , c = t.expandIconColumnIndex
      , f = t.direction
      , d = t.expandRowByClick
      , v = t.expandColumnWidth
      , h = t.expandFixed
      , p = j(function() {
        if (a.value) {
            var y, b = r.value.slice();
            if (!b.includes(Ys)) {
                var x = c.value || 0;
                x >= 0 && b.splice(x, 0, Ys)
            }
            var C = b.indexOf(Ys);
            b = b.filter(function(D, E) {
                return D !== Ys || E === C
            });
            var S = r.value[C], w;
            (h.value === "left" || h.value) && !c.value ? w = "left" : (h.value === "right" || h.value) && c.value === r.value.length ? w = "right" : w = S ? S.fixed : null;
            var T = i.value
              , P = u.value
              , M = s.value
              , A = n.value
              , O = d.value
              , k = (y = {},
            z(y, yv, {
                class: "".concat(n.value, "-expand-icon-col"),
                columnType: "EXPAND_COLUMN"
            }),
            z(y, "title", ""),
            z(y, "fixed", w),
            z(y, "class", "".concat(n.value, "-row-expand-icon-cell")),
            z(y, "width", v.value),
            z(y, "customRender", function(E) {
                var L = E.record
                  , N = E.index
                  , R = o.value(L, N)
                  , $ = T.has(R)
                  , W = P ? P(L) : !0
                  , B = M({
                    prefixCls: A,
                    expanded: $,
                    expandable: W,
                    record: L,
                    onExpand: l
                });
                return O ? _("span", {
                    onClick: function(K) {
                        return K.stopPropagation()
                    }
                }, [B]) : B
            }),
            y);
            return b.map(function(D) {
                return D === Ys ? k : D
            })
        }
        return r.value.filter(function(D) {
            return D !== Ys
        })
    })
      , g = j(function() {
        var y = p.value;
        return e.value && (y = e.value(y)),
        y.length || (y = [{
            customRender: function() {
                return null
            }
        }]),
        y
    })
      , m = j(function() {
        return f.value === "rtl" ? zRe(gA(g.value)) : gA(g.value)
    });
    return [g, m]
}
function wne(t) {
    var e = Mt(t), n, r = Mt([]);
    function a(i) {
        r.value.push(i),
        gt.cancel(n),
        n = gt(function() {
            var o = r.value;
            r.value = [],
            o.forEach(function(l) {
                e.value = l(e.value)
            })
        })
    }
    return Nt(function() {
        gt.cancel(n)
    }),
    [e, a]
}
function jRe(t) {
    var e = Q(t || null)
      , n = Q();
    function r() {
        clearTimeout(n.value)
    }
    function a(o) {
        e.value = o,
        r(),
        n.value = setTimeout(function() {
            e.value = null,
            n.value = void 0
        }, 100)
    }
    function i() {
        return e.value
    }
    return Nt(function() {
        r()
    }),
    [a, i]
}
function WRe(t, e, n) {
    var r = j(function() {
        for (var a = [], i = [], o = 0, l = 0, s = t.value, u = e.value, c = n.value, f = 0; f < u; f += 1)
            if (c === "rtl") {
                i[f] = l,
                l += s[f] || 0;
                var d = u - f - 1;
                a[d] = o,
                o += s[d] || 0
            } else {
                a[f] = o,
                o += s[f] || 0;
                var v = u - f - 1;
                i[v] = l,
                l += s[v] || 0
            }
        return {
            left: a,
            right: i
        }
    });
    return r
}
var GRe = ["columnType"];
function _ne(t) {
    for (var e = t.colWidths, n = t.columns, r = t.columCount, a = [], i = r || n.length, o = !1, l = i - 1; l >= 0; l -= 1) {
        var s = e[l]
          , u = n && n[l]
          , c = u && u[yv];
        if (s || c || o) {
            var f = c || {};
            f.columnType;
            var d = tt(f, GRe);
            a.unshift(_("col", I({
                key: l,
                style: {
                    width: typeof s == "number" ? "".concat(s, "px") : s
                }
            }, d), null)),
            o = !0
        }
    }
    return _("colgroup", null, [a])
}
function mA(t, e) {
    var n, r = e.slots;
    return _("div", null, [(n = r.default) === null || n === void 0 ? void 0 : n.call(r)])
}
mA.displayName = "Panel";
var KRe = 0
  , URe = de({
    name: "Summary",
    props: ["fixed"],
    setup: function(e, n) {
        var r = n.slots
          , a = wl()
          , i = "table-summary-uni-key-".concat(++KRe)
          , o = j(function() {
            return e.fixed === "" || e.fixed
        });
        return pt(function() {
            a.summaryCollect(i, o.value)
        }),
        Nt(function() {
            a.summaryCollect(i, !1)
        }),
        function() {
            var l;
            return (l = r.default) === null || l === void 0 ? void 0 : l.call(r)
        }
    }
});
const YRe = URe
  , qRe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATableSummaryRow",
    setup: function(e, n) {
        var r = n.slots;
        return function() {
            var a;
            return _("tr", null, [(a = r.default) === null || a === void 0 ? void 0 : a.call(r)])
        }
    }
});
var Tne = Symbol("SummaryContextProps")
  , XRe = function(e) {
    It(Tne, e)
}
  , ZRe = function() {
    return vt(Tne, {})
};
const QRe = de({
    name: "ATableSummaryCell",
    props: ["index", "colSpan", "rowSpan", "align"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = wl()
          , o = ZRe();
        return function() {
            var l = e.index
              , s = e.colSpan
              , u = s === void 0 ? 1 : s
              , c = e.rowSpan
              , f = e.align
              , d = i.prefixCls
              , v = i.direction
              , h = o.scrollColumnIndex
              , p = o.stickyOffsets
              , g = o.flattenColumns
              , m = l + u - 1
              , y = m + 1 === h ? u + 1 : u
              , b = gE(l, l + y - 1, g, p, v);
            return _(Tw, I({
                class: r.class,
                index: l,
                component: "td",
                prefixCls: d,
                record: null,
                dataIndex: null,
                align: f,
                colSpan: y,
                rowSpan: c,
                customRender: function() {
                    var C;
                    return (C = a.default) === null || C === void 0 ? void 0 : C.call(a)
                }
            }, b), null)
        }
    }
})
  , Xy = de({
    name: "Footer",
    inheritAttrs: !1,
    props: ["stickyOffsets", "flattenColumns"],
    setup: function(e, n) {
        var r = n.slots
          , a = wl();
        return XRe(en({
            stickyOffsets: at(e, "stickyOffsets"),
            flattenColumns: at(e, "flattenColumns"),
            scrollColumnIndex: j(function() {
                var i = e.flattenColumns.length - 1
                  , o = e.flattenColumns[i];
                return o != null && o.scrollbar ? i : null
            })
        })),
        function() {
            var i, o = a.prefixCls;
            return _("tfoot", {
                class: "".concat(o, "-summary")
            }, [(i = r.default) === null || i === void 0 ? void 0 : i.call(r)])
        }
    }
});
var JRe = YRe;
function eNe(t) {
    var e, n = t.prefixCls, r = t.record, a = t.onExpand, i = t.expanded, o = t.expandable, l = "".concat(n, "-row-expand-icon");
    if (!o)
        return _("span", {
            class: [l, "".concat(n, "-row-spaced")]
        }, null);
    var s = function(c) {
        a(r, c),
        c.stopPropagation()
    };
    return _("span", {
        class: (e = {},
        z(e, l, !0),
        z(e, "".concat(n, "-row-expanded"), i),
        z(e, "".concat(n, "-row-collapsed"), !i),
        e),
        onClick: s
    }, null)
}
function tNe(t, e, n) {
    var r = [];
    function a(i) {
        (i || []).forEach(function(o, l) {
            r.push(e(o, l)),
            a(o[n])
        })
    }
    return a(t),
    r
}
const nNe = de({
    name: "StickyScrollBar",
    inheritAttrs: !1,
    props: ["offsetScroll", "container", "scrollBodyRef", "scrollBodySizeInfo"],
    emits: ["scroll"],
    setup: function(e, n) {
        var r = n.emit
          , a = n.expose
          , i = wl()
          , o = Q(0)
          , l = Q(0)
          , s = Q(0);
        pt(function() {
            o.value = e.scrollBodySizeInfo.scrollWidth || 0,
            l.value = e.scrollBodySizeInfo.clientWidth || 0,
            s.value = o.value && l.value * (l.value / o.value)
        }, {
            flush: "post"
        });
        var u = Q()
          , c = wne({
            scrollLeft: 0,
            isHiddenScrollBar: !0
        })
          , f = De(c, 2)
          , d = f[0]
          , v = f[1]
          , h = Q({
            delta: 0,
            x: 0
        })
          , p = Q(!1)
          , g = function() {
            p.value = !1
        }
          , m = function(A) {
            h.value = {
                delta: A.pageX - d.value.scrollLeft,
                x: 0
            },
            p.value = !0,
            A.preventDefault()
        }
          , y = function(A) {
            var O, k = A || ((O = window) === null || O === void 0 ? void 0 : O.event), D = k.buttons;
            if (!p.value || D === 0) {
                p.value && (p.value = !1);
                return
            }
            var E = h.value.x + A.pageX - h.value.x - h.value.delta;
            E <= 0 && (E = 0),
            E + s.value >= l.value && (E = l.value - s.value),
            r("scroll", {
                scrollLeft: E / l.value * (o.value + 2)
            }),
            h.value.x = A.pageX
        }
          , b = function() {
            if (!!e.scrollBodyRef.value) {
                var A = iS(e.scrollBodyRef.value).top
                  , O = A + e.scrollBodyRef.value.offsetHeight
                  , k = e.container === window ? document.documentElement.scrollTop + window.innerHeight : iS(e.container).top + e.container.clientHeight;
                O - Vv() <= k || A >= k - e.offsetScroll ? v(function(D) {
                    return I(I({}, D), {}, {
                        isHiddenScrollBar: !0
                    })
                }) : v(function(D) {
                    return I(I({}, D), {}, {
                        isHiddenScrollBar: !1
                    })
                })
            }
        }
          , x = function(A) {
            v(function(O) {
                return I(I({}, O), {}, {
                    scrollLeft: A / o.value * l.value || 0
                })
            })
        };
        a({
            setScrollLeft: x
        });
        var C = null
          , S = null
          , w = null
          , T = null;
        ct(function() {
            C = Nn(document.body, "mouseup", g, !1),
            S = Nn(document.body, "mousemove", y, !1),
            w = Nn(window, "resize", b, !1)
        }),
        PC(function() {
            yt(function() {
                b()
            })
        }),
        ct(function() {
            setTimeout(function() {
                Te([s, p], function() {
                    b()
                }, {
                    immediate: !0,
                    flush: "post"
                })
            })
        }),
        Te(function() {
            return e.container
        }, function() {
            var M;
            (M = T) === null || M === void 0 || M.remove(),
            T = Nn(e.container, "scroll", b, !1)
        }, {
            immediate: !0,
            flush: "post"
        }),
        Nt(function() {
            var M, A, O, k;
            (M = C) === null || M === void 0 || M.remove(),
            (A = S) === null || A === void 0 || A.remove(),
            (O = T) === null || O === void 0 || O.remove(),
            (k = w) === null || k === void 0 || k.remove()
        }),
        Te(function() {
            return I({}, d.value)
        }, function(M, A) {
            M.isHiddenScrollBar !== (A == null ? void 0 : A.isHiddenScrollBar) && !M.isHiddenScrollBar && v(function(O) {
                var k = e.scrollBodyRef.value;
                return k ? I(I({}, O), {}, {
                    scrollLeft: k.scrollLeft / k.scrollWidth * k.clientWidth
                }) : O
            })
        }, {
            immediate: !0
        });
        var P = Vv();
        return function() {
            if (o.value <= l.value || !s.value || d.value.isHiddenScrollBar)
                return null;
            var M = i.prefixCls;
            return _("div", {
                style: {
                    height: "".concat(P, "px"),
                    width: "".concat(l.value, "px"),
                    bottom: "".concat(e.offsetScroll, "px")
                },
                class: "".concat(M, "-sticky-scroll")
            }, [_("div", {
                onMousedown: m,
                ref: u,
                class: he("".concat(M, "-sticky-scroll-bar"), z({}, "".concat(M, "-sticky-scroll-bar-active"), p.value)),
                style: {
                    width: "".concat(s.value, "px"),
                    transform: "translate3d(".concat(d.value.scrollLeft, "px, 0, 0)")
                }
            }, null)])
        }
    }
});
var JB = Uf() ? window : null;
function rNe(t, e) {
    return j(function() {
        var n = We(t.value) === "object" ? t.value : {}
          , r = n.offsetHeader
          , a = r === void 0 ? 0 : r
          , i = n.offsetSummary
          , o = i === void 0 ? 0 : i
          , l = n.offsetScroll
          , s = l === void 0 ? 0 : l
          , u = n.getContainer
          , c = u === void 0 ? function() {
            return JB
        }
        : u
          , f = c() || JB
          , d = !!t.value;
        return {
            isSticky: d,
            stickyClassName: d ? "".concat(e.value, "-sticky-holder") : "",
            offsetHeader: a,
            offsetSummary: o,
            offsetScroll: s,
            container: f
        }
    })
}
function aNe(t, e) {
    return j(function() {
        for (var n = [], r = t.value, a = e.value, i = 0; i < a; i += 1) {
            var o = r[i];
            if (o !== void 0)
                n[i] = o;
            else
                return null
        }
        return n
    })
}
const eV = de({
    name: "FixedHolder",
    inheritAttrs: !1,
    props: ["columns", "flattenColumns", "stickyOffsets", "customHeaderRow", "noData", "maxContentScroll", "colWidths", "columCount", "direction", "fixHeader", "stickyTopOffset", "stickyBottomOffset", "stickyClassName"],
    emits: ["scroll"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.emit
          , o = wl()
          , l = j(function() {
            return o.isSticky && !e.fixHeader ? 0 : o.scrollbarSize
        })
          , s = Q()
          , u = function(m) {
            var y = m.currentTarget
              , b = m.deltaX;
            b && (i("scroll", {
                currentTarget: y,
                scrollLeft: y.scrollLeft + b
            }),
            m.preventDefault())
        }
          , c = Q();
        ct(function() {
            yt(function() {
                c.value = Nn(s.value, "wheel", u)
            })
        }),
        Nt(function() {
            var g;
            (g = c.value) === null || g === void 0 || g.remove()
        });
        var f = j(function() {
            return e.flattenColumns.every(function(g) {
                return g.width && g.width !== 0 && g.width !== "0px"
            })
        })
          , d = Q([])
          , v = Q([]);
        pt(function() {
            var g = e.flattenColumns[e.flattenColumns.length - 1]
              , m = {
                fixed: g ? g.fixed : null,
                scrollbar: !0,
                customHeaderCell: function() {
                    return {
                        class: "".concat(o.prefixCls, "-cell-scrollbar")
                    }
                }
            };
            d.value = l.value ? [].concat($e(e.columns), [m]) : e.columns,
            v.value = l.value ? [].concat($e(e.flattenColumns), [m]) : e.flattenColumns
        });
        var h = j(function() {
            var g = e.stickyOffsets
              , m = e.direction
              , y = g.right
              , b = g.left;
            return I(I({}, g), {}, {
                left: m === "rtl" ? [].concat($e(b.map(function(x) {
                    return x + l.value
                })), [0]) : b,
                right: m === "rtl" ? y : [].concat($e(y.map(function(x) {
                    return x + l.value
                })), [0]),
                isSticky: o.isSticky
            })
        })
          , p = aNe(at(e, "colWidths"), at(e, "columCount"));
        return function() {
            var g, m = e.noData, y = e.columCount, b = e.stickyTopOffset, x = e.stickyBottomOffset, C = e.stickyClassName, S = e.maxContentScroll, w = o.isSticky;
            return _("div", {
                style: I({
                    overflow: "hidden"
                }, w ? {
                    top: "".concat(b, "px"),
                    bottom: "".concat(x, "px")
                } : {}),
                ref: s,
                class: he(r.class, z({}, C, !!C))
            }, [_("table", {
                style: {
                    tableLayout: "fixed",
                    visibility: m || p.value ? null : "hidden"
                }
            }, [(!m || !S || f.value) && _(_ne, {
                colWidths: p.value ? [].concat($e(p.value), [l.value]) : [],
                columCount: y + 1,
                columns: v.value
            }, null), (g = a.default) === null || g === void 0 ? void 0 : g.call(a, I(I({}, e), {}, {
                stickyOffsets: h.value,
                columns: d.value,
                flattenColumns: v.value
            }))])])
        }
    }
});
function iNe(t) {
    for (var e = -1, n = t == null ? 0 : t.length, r = {}; ++e < n; ) {
        var a = t[e];
        r[a[0]] = a[1]
    }
    return r
}
function tV(t) {
    for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
        n[r - 1] = arguments[r];
    return en(iNe(n.map(function(a) {
        return [a, at(t, a)]
    })))
}
var oNe = []
  , lNe = {}
  , yA = "rc-table-internal-hook";
const sNe = de({
    name: "Table",
    inheritAttrs: !1,
    props: ["prefixCls", "data", "columns", "rowKey", "tableLayout", "scroll", "rowClassName", "title", "footer", "id", "showHeader", "components", "customRow", "customHeaderRow", "direction", "expandFixed", "expandColumnWidth", "expandedRowKeys", "defaultExpandedRowKeys", "expandedRowRender", "expandRowByClick", "expandIcon", "onExpand", "onExpandedRowsChange", "onUpdate:expandedRowKeys", "defaultExpandAllRows", "indentSize", "expandIconColumnIndex", "expandedRowClassName", "childrenColumnName", "rowExpandable", "sticky", "transformColumns", "internalHooks", "internalRefs", "canExpandable", "onUpdateInternalRefs", "transformCellText"],
    slots: ["title", "footer", "summary", "emptyText"],
    emits: ["expand", "expandedRowsChange", "updateInternalRefs", "update:expandedRowKeys"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.emit
          , o = j(function() {
            return e.data || oNe
        })
          , l = j(function() {
            return !!o.value.length
        })
          , s = j(function() {
            return mRe(e.components, {})
        })
          , u = function(we, Ve) {
            return dne(s.value, we) || Ve
        }
          , c = j(function() {
            var Se = e.rowKey;
            return typeof Se == "function" ? Se : function(we) {
                var Ve = we && we[Se];
                return Ve
            }
        })
          , f = j(function() {
            return e.expandIcon || eNe
        })
          , d = j(function() {
            return e.childrenColumnName || "children"
        })
          , v = j(function() {
            return e.expandedRowRender ? "row" : e.canExpandable || o.value.some(function(Se) {
                return Se && We(Se) === "object" && Se[d.value]
            }) ? "nest" : !1
        })
          , h = Mt([])
          , p = pt(function() {
            e.defaultExpandedRowKeys && (h.value = e.defaultExpandedRowKeys),
            e.defaultExpandAllRows && (h.value = tNe(o.value, c.value, d.value))
        });
        p();
        var g = j(function() {
            return new Set(e.expandedRowKeys || h.value || [])
        })
          , m = function(we) {
            var Ve = c.value(we, o.value.indexOf(we)), Ye, Ue = g.value.has(Ve);
            Ue ? (g.value.delete(Ve),
            Ye = $e(g.value)) : Ye = [].concat($e(g.value), [Ve]),
            h.value = Ye,
            i("expand", !Ue, we),
            i("update:expandedRowKeys", Ye),
            i("expandedRowsChange", Ye)
        }
          , y = Q(0)
          , b = HRe(I(I({}, vu(e)), {}, {
            expandable: j(function() {
                return !!e.expandedRowRender
            }),
            expandedKeys: g,
            getRowKey: c,
            onTriggerExpand: m,
            expandIcon: f
        }), j(function() {
            return e.internalHooks === yA ? e.transformColumns : null
        }))
          , x = De(b, 2)
          , C = x[0]
          , S = x[1]
          , w = j(function() {
            return {
                columns: C.value,
                flattenColumns: S.value
            }
        })
          , T = Q()
          , P = Q()
          , M = Q()
          , A = Q({
            scrollWidth: 0,
            clientWidth: 0
        })
          , O = Q()
          , k = Rn(!1)
          , D = De(k, 2)
          , E = D[0]
          , L = D[1]
          , N = Rn(!1)
          , R = De(N, 2)
          , $ = R[0]
          , W = R[1]
          , B = wne(new Map)
          , G = De(B, 2)
          , K = G[0]
          , V = G[1]
          , U = j(function() {
            return _w(S.value)
        })
          , X = j(function() {
            return U.value.map(function(Se) {
                return K.value.get(Se)
            })
        })
          , Y = j(function() {
            return S.value.length
        })
          , te = WRe(X, Y, at(e, "direction"))
          , ne = j(function() {
            return e.scroll && hA(e.scroll.y)
        })
          , ie = j(function() {
            return e.scroll && hA(e.scroll.x) || Boolean(e.expandFixed)
        })
          , ae = j(function() {
            return ie.value && S.value.some(function(Se) {
                var we = Se.fixed;
                return we
            })
        })
          , q = Q()
          , F = rNe(at(e, "sticky"), at(e, "prefixCls"))
          , H = en({})
          , ee = j(function() {
            var Se = Object.values(H)[0];
            return (ne.value || F.value.isSticky) && Se
        })
          , re = function(we, Ve) {
            Ve ? H[we] = Ve : delete H[we]
        }
          , ue = Q({})
          , ve = Q({})
          , fe = Q({});
        pt(function() {
            ne.value && (ve.value = {
                overflowY: "scroll",
                maxHeight: Hc(e.scroll.y)
            }),
            ie.value && (ue.value = {
                overflowX: "auto"
            },
            ne.value || (ve.value = {
                overflowY: "hidden"
            }),
            fe.value = {
                width: e.scroll.x === !0 ? "auto" : Hc(e.scroll.x),
                minWidth: "100%"
            })
        });
        var ce = function(we, Ve) {
            uD(T.value) && V(function(Ye) {
                if (Ye.get(we) !== Ve) {
                    var Ue = new Map(Ye);
                    return Ue.set(we, Ve),
                    Ue
                }
                return Ye
            })
        }
          , le = jRe(null)
          , oe = De(le, 2)
          , se = oe[0]
          , xe = oe[1];
        function Pe(Se, we) {
            if (!!we) {
                if (typeof we == "function") {
                    we(Se);
                    return
                }
                var Ve = we.$el || we;
                Ve.scrollLeft !== Se && (Ve.scrollLeft = Se)
            }
        }
        var Fe = function(we) {
            var Ve = we.currentTarget
              , Ye = we.scrollLeft
              , Ue = e.direction === "rtl"
              , Ke = typeof Ye == "number" ? Ye : Ve.scrollLeft
              , Xe = Ve || lNe;
            if (!xe() || xe() === Xe) {
                var it;
                se(Xe),
                Pe(Ke, P.value),
                Pe(Ke, M.value),
                Pe(Ke, O.value),
                Pe(Ke, (it = q.value) === null || it === void 0 ? void 0 : it.setScrollLeft)
            }
            if (Ve) {
                var nt = Ve.scrollWidth
                  , ht = Ve.clientWidth;
                Ue ? (L(-Ke < nt - ht),
                W(-Ke > 0)) : (L(Ke > 0),
                W(Ke < nt - ht))
            }
        }, ze = function() {
            ie.value && M.value ? Fe({
                currentTarget: M.value
            }) : (L(!1),
            W(!1))
        }, _e, me = function(we) {
            we !== y.value && (ze(),
            y.value = T.value ? T.value.offsetWidth : we)
        }, Ie = function(we) {
            var Ve = we.width;
            if (clearTimeout(_e),
            y.value === 0) {
                me(Ve);
                return
            }
            _e = setTimeout(function() {
                me(Ve)
            }, 100)
        };
        Te([ie, function() {
            return e.data
        }
        , function() {
            return e.columns
        }
        ], function() {
            ie.value && ze()
        }, {
            flush: "post"
        });
        var Oe = Rn(0)
          , Ce = De(Oe, 2)
          , pe = Ce[0]
          , ye = Ce[1];
        wRe(),
        ct(function() {
            yt(function() {
                var Se, we;
                ze(),
                ye(ZDe(M.value).width),
                A.value = {
                    scrollWidth: ((Se = M.value) === null || Se === void 0 ? void 0 : Se.scrollWidth) || 0,
                    clientWidth: ((we = M.value) === null || we === void 0 ? void 0 : we.clientWidth) || 0
                }
            })
        }),
        ua(function() {
            yt(function() {
                var Se, we, Ve = ((Se = M.value) === null || Se === void 0 ? void 0 : Se.scrollWidth) || 0, Ye = ((we = M.value) === null || we === void 0 ? void 0 : we.clientWidth) || 0;
                (A.value.scrollWidth !== Ve || A.value.clientWidth !== Ye) && (A.value = {
                    scrollWidth: Ve,
                    clientWidth: Ye
                })
            })
        }),
        pt(function() {
            e.internalHooks === yA && e.internalRefs && e.onUpdateInternalRefs({
                body: M.value ? M.value.$el || M.value : null
            })
        }, {
            flush: "post"
        });
        var be = j(function() {
            return e.tableLayout ? e.tableLayout : ae.value ? e.scroll.x === "max-content" ? "auto" : "fixed" : ne.value || F.value.isSticky || S.value.some(function(Se) {
                var we = Se.ellipsis;
                return we
            }) ? "fixed" : "auto"
        })
          , Ae = function() {
            var we;
            return l.value ? null : ((we = a.emptyText) === null || we === void 0 ? void 0 : we.call(a)) || "No Data"
        };
        pRe(en(I(I({}, vu(tV(e, "prefixCls", "direction", "transformCellText"))), {}, {
            getComponent: u,
            scrollbarSize: pe,
            fixedInfoList: j(function() {
                return S.value.map(function(Se, we) {
                    return gE(we, we, S.value, te.value, e.direction)
                })
            }),
            isSticky: j(function() {
                return F.value.isSticky
            }),
            summaryCollect: re
        }))),
        LRe(en(I(I({}, vu(tV(e, "rowClassName", "expandedRowClassName", "expandRowByClick", "expandedRowRender", "expandIconColumnIndex", "indentSize"))), {}, {
            columns: C,
            flattenColumns: S,
            tableLayout: be,
            expandIcon: f,
            expandableType: v,
            onTriggerExpand: m
        }))),
        $Re({
            onColumnResize: ce
        }),
        ORe({
            componentWidth: y,
            fixHeader: ne,
            fixColumn: ae,
            horizonScroll: ie
        });
        var Re = function() {
            return _(BRe, {
                data: o.value,
                measureColumnWidth: ne.value || ie.value || F.value.isSticky,
                expandedKeys: g.value,
                rowExpandable: e.rowExpandable,
                getRowKey: c.value,
                customRow: e.customRow,
                childrenColumnName: d.value
            }, {
                emptyNode: Ae
            })
        }
          , Ne = function() {
            return _(_ne, {
                colWidths: S.value.map(function(we) {
                    var Ve = we.width;
                    return Ve
                }),
                columns: S.value
            }, null)
        };
        return function() {
            var Se, we = e.prefixCls, Ve = e.scroll, Ye = e.tableLayout, Ue = e.direction, Ke = e.title, Xe = Ke === void 0 ? a.title : Ke, it = e.footer, nt = it === void 0 ? a.footer : it, ht = e.id, ft = e.showHeader, Zt = e.customHeaderRow, Tt = F.value, bt = Tt.isSticky, wt = Tt.offsetHeader, Mn = Tt.offsetSummary, gn = Tt.offsetScroll, or = Tt.stickyClassName, er = Tt.container, xn = u(["table"], "table"), Sn = u(["body"]), Fn = (Se = a.summary) === null || Se === void 0 ? void 0 : Se.call(a, {
                pageData: o.value
            }), Wa = function() {
                return null
            }, Ln = {
                colWidths: X.value,
                columCount: S.value.length,
                stickyOffsets: te.value,
                customHeaderRow: Zt,
                fixHeader: ne.value,
                scroll: Ve
            };
            if (ne.value || bt) {
                var Ia = function() {
                    return null
                };
                typeof Sn == "function" ? (Ia = function() {
                    return Sn(o.value, {
                        scrollbarSize: pe.value,
                        ref: M,
                        onScroll: Fe
                    })
                }
                ,
                Ln.colWidths = S.value.map(function(fa, tr) {
                    var Ga = fa.width
                      , Ml = tr === C.value.length - 1 ? Ga - pe.value : Ga;
                    return typeof Ml == "number" && !Number.isNaN(Ml) ? Ml : 0
                })) : Ia = function() {
                    return _("div", {
                        style: I(I({}, ue.value), ve.value),
                        onScroll: Fe,
                        ref: M,
                        class: he("".concat(we, "-body"))
                    }, [_(xn, {
                        style: I(I({}, fe.value), {}, {
                            tableLayout: be.value
                        })
                    }, {
                        default: function() {
                            return [Ne(), Re(), !ee.value && Fn && _(Xy, {
                                stickyOffsets: te.value,
                                flattenColumns: S.value
                            }, {
                                default: function() {
                                    return [Fn]
                                }
                            })]
                        }
                    })])
                }
                ;
                var ci = I(I(I({
                    noData: !o.value.length,
                    maxContentScroll: ie.value && Ve.x === "max-content"
                }, Ln), w.value), {}, {
                    direction: Ue,
                    stickyClassName: or,
                    onScroll: Fe
                });
                Wa = function() {
                    return _(xt, null, [ft !== !1 && _(eV, I(I({}, ci), {}, {
                        stickyTopOffset: wt,
                        class: "".concat(we, "-header"),
                        ref: P
                    }), {
                        default: function(Ga) {
                            return _(xt, null, [_(QB, Ga, null), ee.value === "top" && _(Xy, Ga, {
                                default: function() {
                                    return [Fn]
                                }
                            })])
                        }
                    }), Ia(), ee.value && ee.value !== "top" && _(eV, I(I({}, ci), {}, {
                        stickyBottomOffset: Mn,
                        class: "".concat(we, "-summary"),
                        ref: O
                    }), {
                        default: function(Ga) {
                            return _(Xy, Ga, {
                                default: function() {
                                    return [Fn]
                                }
                            })
                        }
                    }), bt && M.value && _(nNe, {
                        ref: q,
                        offsetScroll: gn,
                        scrollBodyRef: M,
                        onScroll: Fe,
                        container: er,
                        scrollBodySizeInfo: A.value
                    }, null)])
                }
            } else
                Wa = function() {
                    return _("div", {
                        style: I(I({}, ue.value), ve.value),
                        class: he("".concat(we, "-content")),
                        onScroll: Fe,
                        ref: M
                    }, [_(xn, {
                        style: I(I({}, fe.value), {}, {
                            tableLayout: be.value
                        })
                    }, {
                        default: function() {
                            return [Ne(), ft !== !1 && _(QB, I(I({}, Ln), w.value), null), Re(), Fn && _(Xy, {
                                stickyOffsets: te.value,
                                flattenColumns: S.value
                            }, {
                                default: function() {
                                    return [Fn]
                                }
                            })]
                        }
                    })])
                }
                ;
            var Do = Hu(r, {
                aria: !0,
                data: !0
            })
              , ca = function() {
                var tr;
                return _("div", I(I({}, Do), {}, {
                    class: he(we, (tr = {},
                    z(tr, "".concat(we, "-rtl"), Ue === "rtl"),
                    z(tr, "".concat(we, "-ping-left"), E.value),
                    z(tr, "".concat(we, "-ping-right"), $.value),
                    z(tr, "".concat(we, "-layout-fixed"), Ye === "fixed"),
                    z(tr, "".concat(we, "-fixed-header"), ne.value),
                    z(tr, "".concat(we, "-fixed-column"), ae.value),
                    z(tr, "".concat(we, "-scroll-horizontal"), ie.value),
                    z(tr, "".concat(we, "-has-fix-left"), S.value[0] && S.value[0].fixed),
                    z(tr, "".concat(we, "-has-fix-right"), S.value[Y.value - 1] && S.value[Y.value - 1].fixed === "right"),
                    z(tr, r.class, r.class),
                    tr)),
                    style: r.style,
                    id: ht,
                    ref: T
                }), [Xe && _(mA, {
                    class: "".concat(we, "-title")
                }, {
                    default: function() {
                        return [Xe(o.value)]
                    }
                }), _("div", {
                    class: "".concat(we, "-container")
                }, [Wa()]), nt && _(mA, {
                    class: "".concat(we, "-footer")
                }, {
                    default: function() {
                        return [nt(o.value)]
                    }
                })])
            };
            return ie.value ? _(Vi, {
                onResize: Ie
            }, {
                default: ca
            }) : ca()
        }
    }
});
var bA = 10;
function uNe(t, e) {
    var n = {
        current: e.current,
        pageSize: e.pageSize
    }
      , r = t && We(t) === "object" ? t : {};
    return Object.keys(r).forEach(function(a) {
        var i = e[a];
        typeof i != "function" && (n[a] = i)
    }),
    n
}
function cNe() {
    for (var t = {}, e = arguments.length, n = new Array(e), r = 0; r < e; r++)
        n[r] = arguments[r];
    return n.forEach(function(a) {
        a && Object.keys(a).forEach(function(i) {
            var o = a[i];
            o !== void 0 && (t[i] = o)
        })
    }),
    t
}
function fNe(t, e, n) {
    var r = j(function() {
        return e.value && We(e.value) === "object" ? e.value : {}
    })
      , a = j(function() {
        return r.value.total || 0
    })
      , i = Rn(function() {
        return {
            current: "defaultCurrent"in r.value ? r.value.defaultCurrent : 1,
            pageSize: "defaultPageSize"in r.value ? r.value.defaultPageSize : bA
        }
    })
      , o = De(i, 2)
      , l = o[0]
      , s = o[1]
      , u = j(function() {
        var d = cNe(l.value, r.value, {
            total: a.value > 0 ? a.value : t.value
        })
          , v = Math.ceil((a.value || t.value) / d.pageSize);
        return d.current > v && (d.current = v || 1),
        d
    })
      , c = function(v, h) {
        r.value !== !1 && s({
            current: v != null ? v : 1,
            pageSize: h || u.value.pageSize
        })
    }
      , f = function(v, h) {
        if (r.value) {
            var p, g;
            (p = (g = r.value).onChange) === null || p === void 0 || p.call(g, v, h)
        }
        c(v, h),
        n(v, h || u.value.pageSize)
    };
    return [j(function() {
        return r.value === !1 ? {} : I(I({}, u.value), {}, {
            onChange: f
        })
    }), c]
}
function dNe(t, e, n) {
    var r = Mt({});
    Te([t, e, n], function() {
        var i = new Map
          , o = n.value
          , l = e.value;
        function s(u) {
            u.forEach(function(c, f) {
                var d = o(c, f);
                i.set(d, c),
                c && We(c) === "object" && l in c && s(c[l] || [])
            })
        }
        s(t.value),
        r.value = {
            kvMap: i
        }
    }, {
        deep: !0,
        immediate: !0
    });
    function a(i) {
        return r.value.kvMap.get(i)
    }
    return [a]
}
var Hl = {}
  , xA = "SELECT_ALL"
  , SA = "SELECT_INVERT"
  , CA = "SELECT_NONE"
  , vNe = [];
function Pne(t, e) {
    var n = [];
    return (t || []).forEach(function(r) {
        n.push(r),
        r && We(r) === "object" && e in r && (n = [].concat($e(n), $e(Pne(r[e], e))))
    }),
    n
}
function hNe(t, e) {
    var n = j(function() {
        var D = t.value || {}
          , E = D.checkStrictly
          , L = E === void 0 ? !0 : E;
        return I(I({}, D), {}, {
            checkStrictly: L
        })
    })
      , r = zn(n.value.selectedRowKeys || n.value.defaultSelectedRowKeys || vNe, {
        value: j(function() {
            return n.value.selectedRowKeys
        })
    })
      , a = De(r, 2)
      , i = a[0]
      , o = a[1]
      , l = Mt(new Map)
      , s = function(E) {
        if (n.value.preserveSelectedRowKeys) {
            var L = new Map;
            E.forEach(function(N) {
                var R = e.getRecordByKey(N);
                !R && l.value.has(N) && (R = l.value.get(N)),
                L.set(N, R)
            }),
            l.value = L
        }
    };
    pt(function() {
        s(i.value)
    });
    var u = j(function() {
        return n.value.checkStrictly ? null : Am(e.data.value, {
            externalGetKey: e.getRowKey.value,
            childrenPropName: e.childrenColumnName.value
        }).keyEntities
    })
      , c = j(function() {
        return Pne(e.pageData.value, e.childrenColumnName.value)
    })
      , f = j(function() {
        var D = new Map
          , E = e.getRowKey.value
          , L = n.value.getCheckboxProps;
        return c.value.forEach(function(N, R) {
            var $ = E(N, R)
              , W = (L ? L(N) : null) || {};
            D.set($, W)
        }),
        D
    })
      , d = hw(u)
      , v = d.maxLevel
      , h = d.levelEntities
      , p = function(E) {
        var L;
        return !!((L = f.value.get(e.getRowKey.value(E))) !== null && L !== void 0 && L.disabled)
    }
      , g = j(function() {
        if (n.value.checkStrictly)
            return [i.value || [], []];
        var D = Li(i.value, !0, u.value, v.value, h.value, p)
          , E = D.checkedKeys
          , L = D.halfCheckedKeys;
        return [E || [], L]
    })
      , m = j(function() {
        return g.value[0]
    })
      , y = j(function() {
        return g.value[1]
    })
      , b = j(function() {
        var D = n.value.type === "radio" ? m.value.slice(0, 1) : m.value;
        return new Set(D)
    })
      , x = j(function() {
        return n.value.type === "radio" ? new Set : new Set(y.value)
    })
      , C = Rn(null)
      , S = De(C, 2)
      , w = S[0]
      , T = S[1]
      , P = function(E) {
        var L, N;
        s(E);
        var R = n.value
          , $ = R.preserveSelectedRowKeys
          , W = R.onChange
          , B = e.getRecordByKey;
        $ ? (L = E,
        N = E.map(function(G) {
            return l.value.get(G)
        })) : (L = [],
        N = [],
        E.forEach(function(G) {
            var K = B(G);
            K !== void 0 && (L.push(G),
            N.push(K))
        })),
        o(L),
        W == null || W(L, N)
    }
      , M = function(E, L, N, R) {
        var $ = n.value.onSelect
          , W = e || {}
          , B = W.getRecordByKey;
        if ($) {
            var G = N.map(function(K) {
                return B(K)
            });
            $(B(E), L, G, R)
        }
        P(N)
    }
      , A = j(function() {
        var D = n.value
          , E = D.onSelectInvert
          , L = D.onSelectNone
          , N = D.selections
          , R = D.hideSelectAll
          , $ = e.data
          , W = e.pageData
          , B = e.getRowKey
          , G = e.locale;
        if (!N || R)
            return null;
        var K = N === !0 ? [xA, SA, CA] : N;
        return K.map(function(V) {
            return V === xA ? {
                key: "all",
                text: G.value.selectionAll,
                onSelect: function() {
                    P($.value.map(function(X, Y) {
                        return B.value(X, Y)
                    }).filter(function(X) {
                        var Y = f.value.get(X);
                        return !(Y != null && Y.disabled) || b.value.has(X)
                    }))
                }
            } : V === SA ? {
                key: "invert",
                text: G.value.selectInvert,
                onSelect: function() {
                    var X = new Set(b.value);
                    W.value.forEach(function(te, ne) {
                        var ie = B.value(te, ne)
                          , ae = f.value.get(ie);
                        ae != null && ae.disabled || (X.has(ie) ? X.delete(ie) : X.add(ie))
                    });
                    var Y = Array.from(X);
                    E && (sn(!1, "Table", "`onSelectInvert` will be removed in future. Please use `onChange` instead."),
                    E(Y)),
                    P(Y)
                }
            } : V === CA ? {
                key: "none",
                text: G.value.selectNone,
                onSelect: function() {
                    L == null || L(),
                    P(Array.from(b.value).filter(function(X) {
                        var Y = f.value.get(X);
                        return Y == null ? void 0 : Y.disabled
                    }))
                }
            } : V
        })
    })
      , O = j(function() {
        return c.value.length
    })
      , k = function(E) {
        var L, N = n.value, R = N.onSelectAll, $ = N.onSelectMultiple, W = N.columnWidth, B = N.type, G = N.fixed, K = N.renderCell, V = N.hideSelectAll, U = N.checkStrictly, X = e.prefixCls, Y = e.getRecordByKey, te = e.getRowKey, ne = e.expandType, ie = e.getPopupContainer;
        if (!t.value)
            return E.filter(function(be) {
                return be !== Hl
            });
        var ae = E.slice(), q = new Set(b.value), F = c.value.map(te.value).filter(function(be) {
            return !f.value.get(be).disabled
        }), H = F.every(function(be) {
            return q.has(be)
        }), ee = F.some(function(be) {
            return q.has(be)
        }), re = function() {
            var Ae = [];
            H ? F.forEach(function(Ne) {
                q.delete(Ne),
                Ae.push(Ne)
            }) : F.forEach(function(Ne) {
                q.has(Ne) || (q.add(Ne),
                Ae.push(Ne))
            });
            var Re = Array.from(q);
            R == null || R(!H, Re.map(function(Ne) {
                return Y(Ne)
            }), Ae.map(function(Ne) {
                return Y(Ne)
            })),
            P(Re)
        }, ue;
        if (B !== "radio") {
            var ve;
            if (A.value) {
                var fe = _(Xn, {
                    getPopupContainer: ie.value
                }, {
                    default: function() {
                        return [A.value.map(function(Ae, Re) {
                            var Ne = Ae.key
                              , Se = Ae.text
                              , we = Ae.onSelect;
                            return _(Xn.Item, {
                                key: Ne || Re,
                                onClick: function() {
                                    we == null || we(F)
                                }
                            }, {
                                default: function() {
                                    return [Se]
                                }
                            })
                        })]
                    }
                });
                ve = _("div", {
                    class: "".concat(X.value, "-selection-extra")
                }, [_(sl, {
                    overlay: fe,
                    getPopupContainer: ie.value
                }, {
                    default: function() {
                        return [_("span", null, [_(Cm, null, null)])]
                    }
                })])
            }
            var ce = c.value.map(function(be, Ae) {
                var Re = te.value(be, Ae)
                  , Ne = f.value.get(Re) || {};
                return I({
                    checked: q.has(Re)
                }, Ne)
            }).filter(function(be) {
                var Ae = be.disabled;
                return Ae
            })
              , le = !!ce.length && ce.length === O.value
              , oe = le && ce.every(function(be) {
                var Ae = be.checked;
                return Ae
            })
              , se = le && ce.some(function(be) {
                var Ae = be.checked;
                return Ae
            });
            ue = !V && _("div", {
                class: "".concat(X.value, "-selection")
            }, [_(Ri, {
                checked: le ? oe : !!O.value && H,
                indeterminate: le ? !oe && se : !H && ee,
                onChange: re,
                disabled: O.value === 0 || le,
                skipGroup: !0
            }, null), ve])
        }
        var xe;
        B === "radio" ? xe = function(Ae) {
            var Re = Ae.record
              , Ne = Ae.index
              , Se = te.value(Re, Ne)
              , we = q.has(Se);
            return {
                node: _(xa, I(I({}, f.value.get(Se)), {}, {
                    checked: we,
                    onClick: function(Ye) {
                        return Ye.stopPropagation()
                    },
                    onChange: function(Ye) {
                        q.has(Se) || M(Se, !0, [Se], Ye.nativeEvent)
                    }
                }), null),
                checked: we
            }
        }
        : xe = function(Ae) {
            var Re = Ae.record, Ne = Ae.index, Se = te.value(Re, Ne), we = q.has(Se), Ve = x.value.has(Se), Ye = f.value.get(Se), Ue;
            if (ne.value === "nest")
                Ue = Ve,
                sn(typeof (Ye == null ? void 0 : Ye.indeterminate) != "boolean", "Table", "set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.");
            else {
                var Ke;
                Ue = (Ke = Ye == null ? void 0 : Ye.indeterminate) !== null && Ke !== void 0 ? Ke : Ve
            }
            return {
                node: _(Ri, I(I({}, Ye), {}, {
                    indeterminate: Ue,
                    checked: we,
                    skipGroup: !0,
                    onClick: function(it) {
                        return it.stopPropagation()
                    },
                    onChange: function(it) {
                        var nt = it.nativeEvent
                          , ht = nt.shiftKey
                          , ft = -1
                          , Zt = -1;
                        if (ht && U) {
                            var Tt = new Set([w.value, Se]);
                            F.some(function(Ln, Ia) {
                                if (Tt.has(Ln))
                                    if (ft === -1)
                                        ft = Ia;
                                    else
                                        return Zt = Ia,
                                        !0;
                                return !1
                            })
                        }
                        if (Zt !== -1 && ft !== Zt && U) {
                            var bt = F.slice(ft, Zt + 1)
                              , wt = [];
                            we ? bt.forEach(function(Ln) {
                                q.has(Ln) && (wt.push(Ln),
                                q.delete(Ln))
                            }) : bt.forEach(function(Ln) {
                                q.has(Ln) || (wt.push(Ln),
                                q.add(Ln))
                            });
                            var Mn = Array.from(q);
                            $ == null || $(!we, Mn.map(function(Ln) {
                                return Y(Ln)
                            }), wt.map(function(Ln) {
                                return Y(Ln)
                            })),
                            P(Mn)
                        } else {
                            var gn = m.value;
                            if (U) {
                                var or = we ? Vl(gn, Se) : Hs(gn, Se);
                                M(Se, !we, or, nt)
                            } else {
                                var er = Li([].concat($e(gn), [Se]), !0, u.value, v.value, h.value, p)
                                  , xn = er.checkedKeys
                                  , Sn = er.halfCheckedKeys
                                  , Fn = xn;
                                if (we) {
                                    var Wa = new Set(xn);
                                    Wa.delete(Se),
                                    Fn = Li(Array.from(Wa), {
                                        checked: !1,
                                        halfCheckedKeys: Sn
                                    }, u.value, v.value, h.value, p).checkedKeys
                                }
                                M(Se, !we, Fn, nt)
                            }
                        }
                        T(Se)
                    }
                }), null),
                checked: we
            }
        }
        ;
        var Pe = function(Ae) {
            var Re = Ae.record
              , Ne = Ae.index
              , Se = xe({
                record: Re,
                index: Ne
            })
              , we = Se.node
              , Ve = Se.checked;
            return K ? K(Ve, Re, Ne, we) : we
        };
        if (!ae.includes(Hl))
            if (ae.findIndex(function(be) {
                var Ae;
                return ((Ae = be[yv]) === null || Ae === void 0 ? void 0 : Ae.columnType) === "EXPAND_COLUMN"
            }) === 0) {
                var Fe = ae
                  , ze = nD(Fe)
                  , _e = ze[0]
                  , me = ze.slice(1);
                ae = [_e, Hl].concat($e(me))
            } else
                ae = [Hl].concat($e(ae));
        var Ie = ae.indexOf(Hl);
        ae = ae.filter(function(be, Ae) {
            return be !== Hl || Ae === Ie
        });
        var Oe = ae[Ie - 1]
          , Ce = ae[Ie + 1]
          , pe = G;
        pe === void 0 && ((Ce == null ? void 0 : Ce.fixed) !== void 0 ? pe = Ce.fixed : (Oe == null ? void 0 : Oe.fixed) !== void 0 && (pe = Oe.fixed)),
        pe && Oe && ((L = Oe[yv]) === null || L === void 0 ? void 0 : L.columnType) === "EXPAND_COLUMN" && Oe.fixed === void 0 && (Oe.fixed = pe);
        var ye = z({
            fixed: pe,
            width: W,
            className: "".concat(X.value, "-selection-column"),
            title: n.value.columnTitle || ue,
            customRender: Pe
        }, yv, {
            class: "".concat(X.value, "-selection-col")
        });
        return ae.map(function(be) {
            return be === Hl ? ye : be
        })
    };
    return [k, b]
}
var pNe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "0 0 1024 1024",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"
            }
        }]
    },
    name: "caret-down",
    theme: "outlined"
};
const gNe = pNe;
function nV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            mNe(t, a, n[a])
        })
    }
    return t
}
function mNe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var mE = function(e, n) {
    var r = nV({}, e, n.attrs);
    return _(lt, nV({}, r, {
        icon: gNe
    }), null)
};
mE.displayName = "CaretDownOutlined";
mE.inheritAttrs = !1;
const yNe = mE;
var bNe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "0 0 1024 1024",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"
            }
        }]
    },
    name: "caret-up",
    theme: "outlined"
};
const xNe = bNe;
function rV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            SNe(t, a, n[a])
        })
    }
    return t
}
function SNe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var yE = function(e, n) {
    var r = rV({}, e, n.attrs);
    return _(lt, rV({}, r, {
        icon: xNe
    }), null)
};
yE.displayName = "CaretUpOutlined";
yE.inheritAttrs = !1;
const CNe = yE;
var wNe = ["default"];
function jv(t, e) {
    return "key"in t && t.key !== void 0 && t.key !== null ? t.key : t.dataIndex ? Array.isArray(t.dataIndex) ? t.dataIndex.join(".") : t.dataIndex : e
}
function Pw(t, e) {
    return e ? "".concat(e, "-").concat(t) : "".concat(t)
}
function bE(t, e) {
    return typeof t == "function" ? t(e) : t
}
function Mne() {
    var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []
      , e = bn(t)
      , n = [];
    return e.forEach(function(r) {
        var a, i, o;
        if (!!r) {
            for (var l = r.key, s = ((a = r.props) === null || a === void 0 ? void 0 : a.style) || {}, u = ((i = r.props) === null || i === void 0 ? void 0 : i.class) || "", c = r.props || {}, f = 0, d = Object.entries(c); f < d.length; f++) {
                var v = De(d[f], 2)
                  , h = v[0]
                  , p = v[1];
                c[Va(h)] = p
            }
            var g = r.children || {}
              , m = g.default
              , y = tt(g, wNe)
              , b = I(I(I({}, y), c), {}, {
                style: s,
                class: u
            });
            if (l && (b.key = l),
            (o = r.type) !== null && o !== void 0 && o.__ANT_TABLE_COLUMN_GROUP)
                b.children = Mne(typeof m == "function" ? m() : m);
            else {
                var x, C = (x = r.children) === null || x === void 0 ? void 0 : x.default;
                b.customRender = b.customRender || C
            }
            n.push(b)
        }
    }),
    n
}
var Eb = "ascend"
  , FT = "descend";
function wA(t) {
    return We(t.sorter) === "object" && typeof t.sorter.multiple == "number" ? t.sorter.multiple : !1
}
function aV(t) {
    return typeof t == "function" ? t : t && We(t) === "object" && t.compare ? t.compare : !1
}
function _Ne(t, e) {
    return e ? t[t.indexOf(e) + 1] : t[0]
}
function _A(t, e, n) {
    var r = [];
    function a(i, o) {
        r.push({
            column: i,
            key: jv(i, o),
            multiplePriority: wA(i),
            sortOrder: i.sortOrder
        })
    }
    return (t || []).forEach(function(i, o) {
        var l = Pw(o, n);
        i.children ? ("sortOrder"in i && a(i, l),
        r = [].concat($e(r), $e(_A(i.children, e, l)))) : i.sorter && ("sortOrder"in i ? a(i, l) : e && i.defaultSortOrder && r.push({
            column: i,
            key: jv(i, l),
            multiplePriority: wA(i),
            sortOrder: i.defaultSortOrder
        }))
    }),
    r
}
function Ane(t, e, n, r, a, i, o, l) {
    return (e || []).map(function(s, u) {
        var c = Pw(u, l)
          , f = s;
        if (f.sorter) {
            var d = f.sortDirections || a
              , v = f.showSorterTooltip === void 0 ? o : f.showSorterTooltip
              , h = jv(f, c)
              , p = n.find(function(M) {
                var A = M.key;
                return A === h
            })
              , g = p ? p.sortOrder : null
              , m = _Ne(d, g)
              , y = d.includes(Eb) && _(CNe, {
                class: he("".concat(t, "-column-sorter-up"), {
                    active: g === Eb
                })
            }, null)
              , b = d.includes(FT) && _(yNe, {
                class: he("".concat(t, "-column-sorter-down"), {
                    active: g === FT
                })
            }, null)
              , x = i || {}
              , C = x.cancelSort
              , S = x.triggerAsc
              , w = x.triggerDesc
              , T = C;
            m === FT ? T = w : m === Eb && (T = S);
            var P = We(v) === "object" ? v : {
                title: T
            };
            f = I(I({}, f), {}, {
                className: he(f.className, z({}, "".concat(t, "-column-sort"), g)),
                title: function(A) {
                    var O = _("div", {
                        class: "".concat(t, "-column-sorters")
                    }, [_("span", {
                        class: "".concat(t, "-column-title")
                    }, [bE(s.title, A)]), _("span", {
                        class: he("".concat(t, "-column-sorter"), z({}, "".concat(t, "-column-sorter-full"), !!(y && b)))
                    }, [_("span", {
                        class: "".concat(t, "-column-sorter-inner")
                    }, [y, b])])]);
                    return v ? _(vo, P, {
                        default: function() {
                            return [O]
                        }
                    }) : O
                },
                customHeaderCell: function(A) {
                    var O = s.customHeaderCell && s.customHeaderCell(A) || {}
                      , k = O.onClick;
                    return O.onClick = function(D) {
                        r({
                            column: s,
                            key: h,
                            sortOrder: m,
                            multiplePriority: wA(s)
                        }),
                        k && k(D)
                    }
                    ,
                    O.class = he(O.class, "".concat(t, "-column-has-sorters")),
                    O
                }
            })
        }
        return "children"in f && (f = I(I({}, f), {}, {
            children: Ane(t, f.children, n, r, a, i, o, c)
        })),
        f
    })
}
function iV(t) {
    var e = t.column
      , n = t.sortOrder;
    return {
        column: e,
        order: n,
        field: e.dataIndex,
        columnKey: e.key
    }
}
function oV(t) {
    var e = t.filter(function(n) {
        var r = n.sortOrder;
        return r
    }).map(iV);
    return e.length === 0 && t.length ? I(I({}, iV(t[t.length - 1])), {}, {
        column: void 0
    }) : e.length <= 1 ? e[0] || {} : e
}
function TA(t, e, n) {
    var r = e.slice().sort(function(o, l) {
        return l.multiplePriority - o.multiplePriority
    })
      , a = t.slice()
      , i = r.filter(function(o) {
        var l = o.column.sorter
          , s = o.sortOrder;
        return aV(l) && s
    });
    return i.length ? a.sort(function(o, l) {
        for (var s = 0; s < i.length; s += 1) {
            var u = i[s]
              , c = u.column.sorter
              , f = u.sortOrder
              , d = aV(c);
            if (d && f) {
                var v = d(o, l, f);
                if (v !== 0)
                    return f === Eb ? v : -v
            }
        }
        return 0
    }).map(function(o) {
        var l = o[n];
        return l ? I(I({}, o), {}, z({}, n, TA(l, e, n))) : o
    }) : a
}
function TNe(t) {
    var e = t.prefixCls
      , n = t.mergedColumns
      , r = t.onSorterChange
      , a = t.sortDirections
      , i = t.tableLocale
      , o = t.showSorterTooltip
      , l = Rn(_A(n.value, !0))
      , s = De(l, 2)
      , u = s[0]
      , c = s[1]
      , f = j(function() {
        var g = !0
          , m = _A(n.value, !1);
        if (!m.length)
            return u.value;
        var y = [];
        function b(C) {
            g ? y.push(C) : y.push(I(I({}, C), {}, {
                sortOrder: null
            }))
        }
        var x = null;
        return m.forEach(function(C) {
            x === null ? (b(C),
            C.sortOrder && (C.multiplePriority === !1 ? g = !1 : x = !0)) : (x && C.multiplePriority !== !1 || (g = !1),
            b(C))
        }),
        y
    })
      , d = j(function() {
        var g = f.value.map(function(m) {
            var y = m.column
              , b = m.sortOrder;
            return {
                column: y,
                order: b
            }
        });
        return {
            sortColumns: g,
            sortColumn: g[0] && g[0].column,
            sortOrder: g[0] && g[0].order
        }
    });
    function v(g) {
        var m;
        g.multiplePriority === !1 || !f.value.length || f.value[0].multiplePriority === !1 ? m = [g] : m = [].concat($e(f.value.filter(function(y) {
            var b = y.key;
            return b !== g.key
        })), [g]),
        c(m),
        r(oV(m), m)
    }
    var h = function(m) {
        return Ane(e.value, m, f.value, v, a.value, i.value, o.value)
    }
      , p = j(function() {
        return oV(f.value)
    });
    return [h, f, d, p]
}
var PNe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"
            }
        }]
    },
    name: "filter",
    theme: "filled"
};
const MNe = PNe;
function lV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            ANe(t, a, n[a])
        })
    }
    return t
}
function ANe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var xE = function(e, n) {
    var r = lV({}, e, n.attrs);
    return _(lt, lV({}, r, {
        icon: MNe
    }), null)
};
xE.displayName = "FilterFilled";
xE.inheritAttrs = !1;
const INe = xE;
var kNe = function(e, n) {
    var r, a = n.slots;
    return _("div", {
        onClick: function(o) {
            return o.stopPropagation()
        }
    }, [(r = a.default) === null || r === void 0 ? void 0 : r.call(a)])
};
const ONe = kNe
  , sV = de({
    compatConfig: {
        MODE: 3
    },
    name: "FilterSearch",
    inheritAttrs: !1,
    props: {
        value: String,
        onChange: Function,
        filterSearch: Boolean,
        tablePrefixCls: String,
        locale: {
            type: Object,
            default: void 0
        }
    },
    setup: function(e) {
        return function() {
            var n = e.value
              , r = e.onChange
              , a = e.filterSearch
              , i = e.tablePrefixCls
              , o = e.locale;
            return a ? _("div", {
                class: "".concat(i, "-filter-dropdown-search")
            }, [_(Sr, {
                placeholder: o.filterSearchPlaceholder,
                onChange: r,
                value: n,
                htmlSize: 1,
                class: "".concat(i, "-filter-dropdown-search-input")
            }, {
                prefix: function() {
                    return _(ew, null, null)
                }
            })]) : null
        }
    }
});
var DNe = ["motion", "motionNodes", "motionType", "active", "eventKey"];
const ENe = de({
    compatConfig: {
        MODE: 3
    },
    name: "MotionTreeNode",
    inheritAttrs: !1,
    props: I(I({}, Oee), {}, {
        active: Boolean,
        motion: Object,
        motionNodes: {
            type: Array
        },
        onMotionStart: Function,
        onMotionEnd: Function,
        motionType: String
    }),
    slots: ["title", "icon", "switcherIcon", "checkable"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = Q(!0)
          , o = k8()
          , l = Q(!1)
          , s = j(function() {
            return e.motion ? e.motion : wm()
        })
          , u = function(f, d) {
            if (d === "appear") {
                var v, h;
                (v = s.value) === null || v === void 0 || (h = v.onAfterEnter) === null || h === void 0 || h.call(v, f)
            } else if (d === "leave") {
                var p, g;
                (p = s.value) === null || p === void 0 || (g = p.onAfterLeave) === null || g === void 0 || g.call(p, f)
            }
            l.value || e.onMotionEnd(),
            l.value = !0
        };
        return Te(function() {
            return e.motionNodes
        }, function() {
            e.motionNodes && e.motionType === "hide" && i.value && yt(function() {
                i.value = !1
            })
        }, {
            immediate: !0,
            flush: "post"
        }),
        ct(function() {
            e.motionNodes && e.onMotionStart()
        }),
        Nt(function() {
            e.motionNodes && u()
        }),
        function() {
            e.motion;
            var c = e.motionNodes
              , f = e.motionType
              , d = e.active
              , v = e.eventKey
              , h = tt(e, DNe);
            return c ? _(bl, I(I({}, s.value), {}, {
                appear: f === "show",
                onAfterAppear: function(g) {
                    return u(g, "appear")
                },
                onAfterLeave: function(g) {
                    return u(g, "leave")
                }
            }), {
                default: function() {
                    return [Fr(_("div", {
                        class: "".concat(o.value.prefixCls, "-treenode-motion")
                    }, [c.map(function(g) {
                        var m = Wt({}, (mw(g.data),
                        g.data))
                          , y = g.title
                          , b = g.key
                          , x = g.isStart
                          , C = g.isEnd;
                        return delete m.children,
                        _(UM, I(I({}, m), {}, {
                            title: y,
                            active: d,
                            data: g.data,
                            key: b,
                            eventKey: b,
                            isStart: x,
                            isEnd: C
                        }), a)
                    })]), [[Io, i.value]])]
                }
            }) : _(UM, I(I({
                domRef: Q,
                class: r.class,
                style: r.style
            }, h), {}, {
                active: d,
                eventKey: v
            }), a)
        }
    }
});
function LNe() {
    var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []
      , e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []
      , n = t.length
      , r = e.length;
    if (Math.abs(n - r) !== 1)
        return {
            add: !1,
            key: null
        };
    function a(i, o) {
        var l = new Map;
        i.forEach(function(u) {
            l.set(u, !0)
        });
        var s = o.filter(function(u) {
            return !l.has(u)
        });
        return s.length === 1 ? s[0] : null
    }
    return n < r ? {
        add: !0,
        key: a(t, e)
    } : {
        add: !1,
        key: a(e, t)
    }
}
function uV(t, e, n) {
    var r = t.findIndex(function(l) {
        return l.key === n
    })
      , a = t[r + 1]
      , i = e.findIndex(function(l) {
        return l.key === n
    });
    if (a) {
        var o = e.findIndex(function(l) {
            return l.key === a.key
        });
        return e.slice(i + 1, o)
    }
    return e.slice(i + 1)
}
var RNe = ["prefixCls", "selectable", "checkable", "disabled", "motion", "height", "itemHeight", "virtual", "focusable", "activeItem", "focused", "tabindex", "onKeydown", "onFocus", "onBlur", "onListChangeStart", "onListChangeEnd"]
  , cV = {
    width: 0,
    height: 0,
    display: "flex",
    overflow: "hidden",
    opacity: 0,
    border: 0,
    padding: 0,
    margin: 0
}
  , NNe = function() {}
  , Ef = "RC_TREE_MOTION_".concat(Math.random())
  , PA = {
    key: Ef
}
  , Ine = {
    key: Ef,
    level: 0,
    index: 0,
    pos: "0",
    node: PA,
    nodes: [PA]
}
  , fV = {
    parent: null,
    children: [],
    pos: Ine.pos,
    data: PA,
    title: null,
    key: Ef,
    isStart: [],
    isEnd: []
};
function dV(t, e, n, r) {
    return e === !1 || !n ? t : t.slice(0, Math.ceil(n / r) + 1)
}
function vV(t) {
    var e = t.key
      , n = t.pos;
    return Mm(e, n)
}
function $Ne(t) {
    for (var e = String(t.key), n = t; n.parent; )
        n = n.parent,
        e = "".concat(n.key, " > ").concat(e);
    return e
}
const FNe = de({
    compatConfig: {
        MODE: 3
    },
    name: "NodeList",
    inheritAttrs: !1,
    props: dAe,
    setup: function(e, n) {
        var r = n.expose
          , a = n.attrs
          , i = Q()
          , o = Q()
          , l = kee()
          , s = l.expandedKeys
          , u = l.flattenNodes;
        r({
            scrollTo: function(y) {
                i.value.scrollTo(y)
            },
            getIndentWidth: function() {
                return o.value.offsetWidth
            }
        });
        var c = Mt(u.value)
          , f = Mt([])
          , d = Q(null);
        function v() {
            c.value = u.value,
            f.value = [],
            d.value = null,
            e.onListChangeEnd()
        }
        var h = k8();
        Te([function() {
            return s.value.slice()
        }
        , u], function(m, y) {
            var b = De(m, 2)
              , x = b[0]
              , C = b[1]
              , S = De(y, 2)
              , w = S[0]
              , T = S[1]
              , P = LNe(w, x);
            if (P.key !== null) {
                var M = e.virtual
                  , A = e.height
                  , O = e.itemHeight;
                if (P.add) {
                    var k = T.findIndex(function($) {
                        var W = $.key;
                        return W === P.key
                    })
                      , D = dV(uV(T, C, P.key), M, A, O)
                      , E = T.slice();
                    E.splice(k + 1, 0, fV),
                    c.value = E,
                    f.value = D,
                    d.value = "show"
                } else {
                    var L = C.findIndex(function($) {
                        var W = $.key;
                        return W === P.key
                    })
                      , N = dV(uV(C, T, P.key), M, A, O)
                      , R = C.slice();
                    R.splice(L + 1, 0, fV),
                    c.value = R,
                    f.value = N,
                    d.value = "hide"
                }
            } else
                T !== C && (c.value = C)
        }),
        Te(function() {
            return h.value.dragging
        }, function(m) {
            m || v()
        });
        var p = j(function() {
            return e.motion === void 0 ? c.value : u.value
        })
          , g = function() {
            e.onActiveChange(null)
        };
        return function() {
            var m = I(I({}, e), a)
              , y = m.prefixCls;
            m.selectable,
            m.checkable;
            var b = m.disabled
              , x = m.motion
              , C = m.height
              , S = m.itemHeight
              , w = m.virtual
              , T = m.focusable
              , P = m.activeItem
              , M = m.focused
              , A = m.tabindex
              , O = m.onKeydown
              , k = m.onFocus
              , D = m.onBlur
              , E = m.onListChangeStart;
            m.onListChangeEnd;
            var L = tt(m, RNe);
            return _(xt, null, [M && P && _("span", {
                style: cV,
                "aria-live": "assertive"
            }, [$Ne(P)]), _("div", null, [_("input", {
                style: cV,
                disabled: T === !1 || b,
                tabindex: T !== !1 ? A : null,
                onKeydown: O,
                onFocus: k,
                onBlur: D,
                value: "",
                onChange: NNe,
                "aria-label": "for screen reader"
            }, null)]), _("div", {
                class: "".concat(y, "-treenode"),
                "aria-hidden": !0,
                style: {
                    position: "absolute",
                    pointerEvents: "none",
                    visibility: "hidden",
                    height: 0,
                    overflow: "hidden"
                }
            }, [_("div", {
                class: "".concat(y, "-indent")
            }, [_("div", {
                ref: o,
                class: "".concat(y, "-indent-unit")
            }, null)])]), _(IQ, I(I({}, Et(L, ["onActiveChange"])), {}, {
                data: p.value,
                itemKey: vV,
                height: C,
                fullHeight: !1,
                virtual: w,
                itemHeight: S,
                prefixCls: "".concat(y, "-list"),
                ref: i,
                onVisibleChange: function(R, $) {
                    var W = new Set(R)
                      , B = $.filter(function(G) {
                        return !W.has(G)
                    });
                    B.some(function(G) {
                        return vV(G) === Ef
                    }) && v()
                }
            }), {
                default: function(R) {
                    var $ = R.pos
                      , W = Wt({}, (mw(R.data),
                    R.data))
                      , B = R.title
                      , G = R.key
                      , K = R.isStart
                      , V = R.isEnd
                      , U = Mm(G, $);
                    return delete W.key,
                    delete W.children,
                    _(ENe, I(I({}, W), {}, {
                        eventKey: U,
                        title: B,
                        active: !!P && G === P.key,
                        data: R.data,
                        isStart: K,
                        isEnd: V,
                        motion: x,
                        motionNodes: G === Ef ? f.value : null,
                        motionType: d.value,
                        onMotionStart: E,
                        onMotionEnd: v,
                        onMousemove: g
                    }), null)
                }
            })])
        }
    }
});
function BNe(t) {
    var e = t.dropPosition
      , n = t.dropLevelOffset
      , r = t.indent
      , a = {
        pointerEvents: "none",
        position: "absolute",
        right: 0,
        backgroundColor: "red",
        height: "".concat(2, "px")
    };
    switch (e) {
    case -1:
        a.top = 0,
        a.left = "".concat(-n * r, "px");
        break;
    case 1:
        a.bottom = 0,
        a.left = "".concat(-n * r, "px");
        break;
    case 0:
        a.bottom = 0,
        a.left = "".concat(r);
        break
    }
    return _("div", {
        style: a
    }, null)
}
var VNe = 10;
const kne = de({
    compatConfig: {
        MODE: 3
    },
    name: "Tree",
    inheritAttrs: !1,
    slots: ["checkable", "title", "icon", "titleRender"],
    props: $t(Dee(), {
        prefixCls: "vc-tree",
        showLine: !1,
        showIcon: !0,
        selectable: !0,
        multiple: !1,
        checkable: !1,
        disabled: !1,
        checkStrictly: !1,
        draggable: !1,
        defaultExpandParent: !0,
        autoExpandParent: !1,
        defaultExpandAll: !1,
        defaultExpandedKeys: [],
        defaultCheckedKeys: [],
        defaultSelectedKeys: [],
        dropIndicatorRender: BNe,
        allowDrop: function() {
            return !0
        }
    }),
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.expose
          , o = Q(!1)
          , l = {}
          , s = Q()
          , u = Mt([])
          , c = Mt([])
          , f = Mt([])
          , d = Mt([])
          , v = Mt([])
          , h = Mt([])
          , p = {}
          , g = en({
            draggingNodeKey: null,
            dragChildrenKeys: [],
            dropTargetKey: null,
            dropPosition: null,
            dropContainerKey: null,
            dropLevelOffset: null,
            dropTargetPos: null,
            dropAllowed: !0,
            dragOverNodeKey: null
        })
          , m = Mt([]);
        Te([function() {
            return e.treeData
        }
        , function() {
            return e.children
        }
        ], function() {
            m.value = e.treeData !== void 0 ? _t(e.treeData).slice() : qM(_t(e.children))
        }, {
            immediate: !0,
            deep: !0
        });
        var y = Mt({})
          , b = Q(!1)
          , x = Q(null)
          , C = Q(!1)
          , S = j(function() {
            return cw(e.fieldNames)
        })
          , w = Q()
          , T = null
          , P = null
          , M = null
          , A = j(function() {
            return {
                expandedKeysSet: O.value,
                selectedKeysSet: k.value,
                loadedKeysSet: D.value,
                loadingKeysSet: E.value,
                checkedKeysSet: L.value,
                halfCheckedKeysSet: N.value,
                dragOverNodeKey: g.dragOverNodeKey,
                dropPosition: g.dropPosition,
                keyEntities: y.value
            }
        })
          , O = j(function() {
            return new Set(h.value)
        })
          , k = j(function() {
            return new Set(u.value)
        })
          , D = j(function() {
            return new Set(d.value)
        })
          , E = j(function() {
            return new Set(v.value)
        })
          , L = j(function() {
            return new Set(c.value)
        })
          , N = j(function() {
            return new Set(f.value)
        });
        pt(function() {
            if (m.value) {
                var Ce = Am(m.value, {
                    fieldNames: S.value
                });
                y.value = I(z({}, Ef, Ine), Ce.keyEntities)
            }
        });
        var R = !1;
        Te([function() {
            return e.expandedKeys
        }
        , function() {
            return e.autoExpandParent
        }
        , y], function(Ce, pe) {
            var ye = De(Ce, 2);
            ye[0];
            var be = ye[1]
              , Ae = De(pe, 2);
            Ae[0];
            var Re = Ae[1]
              , Ne = h.value;
            if (e.expandedKeys !== void 0 || R && be !== Re)
                Ne = e.autoExpandParent || !R && e.defaultExpandParent ? YM(e.expandedKeys, y.value) : e.expandedKeys;
            else if (!R && e.defaultExpandAll) {
                var Se = I({}, y.value);
                delete Se[Ef],
                Ne = Object.keys(Se).map(function(we) {
                    return Se[we].key
                })
            } else
                !R && e.defaultExpandedKeys && (Ne = e.autoExpandParent || e.defaultExpandParent ? YM(e.defaultExpandedKeys, y.value) : e.defaultExpandedKeys);
            Ne && (h.value = Ne),
            R = !0
        }, {
            immediate: !0
        });
        var $ = Mt([]);
        pt(function() {
            $.value = xAe(m.value, h.value, S.value)
        }),
        pt(function() {
            e.selectable && (e.selectedKeys !== void 0 ? u.value = y9(e.selectedKeys, e) : !R && e.defaultSelectedKeys && (u.value = y9(e.defaultSelectedKeys, e)))
        });
        var W = hw(y)
          , B = W.maxLevel
          , G = W.levelEntities;
        pt(function() {
            if (e.checkable) {
                var Ce;
                if (e.checkedKeys !== void 0 ? Ce = vT(e.checkedKeys) || {} : !R && e.defaultCheckedKeys ? Ce = vT(e.defaultCheckedKeys) || {} : m.value && (Ce = vT(e.checkedKeys) || {
                    checkedKeys: c.value,
                    halfCheckedKeys: f.value
                }),
                Ce) {
                    var pe = Ce
                      , ye = pe.checkedKeys
                      , be = ye === void 0 ? [] : ye
                      , Ae = pe.halfCheckedKeys
                      , Re = Ae === void 0 ? [] : Ae;
                    if (!e.checkStrictly) {
                        var Ne = Li(be, !0, y.value, B.value, G.value);
                        be = Ne.checkedKeys,
                        Re = Ne.halfCheckedKeys
                    }
                    c.value = be,
                    f.value = Re
                }
            }
        }),
        pt(function() {
            e.loadedKeys && (d.value = e.loadedKeys)
        });
        var K = function() {
            Wt(g, {
                dragOverNodeKey: null,
                dropPosition: null,
                dropLevelOffset: null,
                dropTargetKey: null,
                dropContainerKey: null,
                dropTargetPos: null,
                dropAllowed: !1
            })
        }
          , V = function(pe) {
            w.value.scrollTo(pe)
        };
        Te(function() {
            return e.activeKey
        }, function() {
            e.activeKey !== void 0 && (x.value = e.activeKey)
        }, {
            immediate: !0
        }),
        Te(x, function(Ce) {
            yt(function() {
                Ce !== null && V({
                    key: Ce
                })
            })
        }, {
            immediate: !0,
            flush: "post"
        });
        var U = function(pe) {
            e.expandedKeys === void 0 && (h.value = pe)
        }
          , X = function() {
            g.draggingNodeKey !== null && Wt(g, {
                draggingNodeKey: null,
                dropPosition: null,
                dropContainerKey: null,
                dropTargetKey: null,
                dropLevelOffset: null,
                dropAllowed: !0,
                dragOverNodeKey: null
            }),
            T = null,
            M = null
        }
          , Y = function(pe, ye) {
            var be = e.onDragend;
            g.dragOverNodeKey = null,
            X(),
            be == null || be({
                event: pe,
                node: ye.eventData
            }),
            P = null
        }
          , te = function Ce(pe) {
            Y(pe, null),
            window.removeEventListener("dragend", Ce)
        }
          , ne = function(pe, ye) {
            var be = e.onDragstart
              , Ae = ye.eventKey
              , Re = ye.eventData;
            P = ye,
            T = {
                x: pe.clientX,
                y: pe.clientY
            };
            var Ne = Vl(h.value, Ae);
            g.draggingNodeKey = Ae,
            g.dragChildrenKeys = gAe(Ae, y.value),
            s.value = w.value.getIndentWidth(),
            U(Ne),
            window.addEventListener("dragend", te),
            be && be({
                event: pe,
                node: Re
            })
        }
          , ie = function(pe, ye) {
            var be = e.onDragenter
              , Ae = e.onExpand
              , Re = e.allowDrop
              , Ne = e.direction
              , Se = ye.pos
              , we = ye.eventKey;
            if (M !== we && (M = we),
            !P) {
                K();
                return
            }
            var Ve = m9(pe, P, ye, s.value, T, Re, $.value, y.value, O.value, Ne)
              , Ye = Ve.dropPosition
              , Ue = Ve.dropLevelOffset
              , Ke = Ve.dropTargetKey
              , Xe = Ve.dropContainerKey
              , it = Ve.dropTargetPos
              , nt = Ve.dropAllowed
              , ht = Ve.dragOverNodeKey;
            if (g.dragChildrenKeys.indexOf(Ke) !== -1 || !nt) {
                K();
                return
            }
            if (l || (l = {}),
            Object.keys(l).forEach(function(ft) {
                clearTimeout(l[ft])
            }),
            P.eventKey !== ye.eventKey && (l[Se] = window.setTimeout(function() {
                if (g.draggingNodeKey !== null) {
                    var ft = h.value.slice()
                      , Zt = y.value[ye.eventKey];
                    Zt && (Zt.children || []).length && (ft = Hs(h.value, ye.eventKey)),
                    U(ft),
                    Ae && Ae(ft, {
                        node: ye.eventData,
                        expanded: !0,
                        nativeEvent: pe
                    })
                }
            }, 800)),
            P.eventKey === Ke && Ue === 0) {
                K();
                return
            }
            Wt(g, {
                dragOverNodeKey: ht,
                dropPosition: Ye,
                dropLevelOffset: Ue,
                dropTargetKey: Ke,
                dropContainerKey: Xe,
                dropTargetPos: it,
                dropAllowed: nt
            }),
            be && be({
                event: pe,
                node: ye.eventData,
                expandedKeys: h.value
            })
        }
          , ae = function(pe, ye) {
            var be = e.onDragover
              , Ae = e.allowDrop
              , Re = e.direction;
            if (!!P) {
                var Ne = m9(pe, P, ye, s.value, T, Ae, $.value, y.value, O.value, Re)
                  , Se = Ne.dropPosition
                  , we = Ne.dropLevelOffset
                  , Ve = Ne.dropTargetKey
                  , Ye = Ne.dropContainerKey
                  , Ue = Ne.dropAllowed
                  , Ke = Ne.dropTargetPos
                  , Xe = Ne.dragOverNodeKey;
                g.dragChildrenKeys.indexOf(Ve) !== -1 || !Ue || (P.eventKey === Ve && we === 0 ? g.dropPosition === null && g.dropLevelOffset === null && g.dropTargetKey === null && g.dropContainerKey === null && g.dropTargetPos === null && g.dropAllowed === !1 && g.dragOverNodeKey === null || K() : Se === g.dropPosition && we === g.dropLevelOffset && Ve === g.dropTargetKey && Ye === g.dropContainerKey && Ke === g.dropTargetPos && Ue === g.dropAllowed && Xe === g.dragOverNodeKey || Wt(g, {
                    dropPosition: Se,
                    dropLevelOffset: we,
                    dropTargetKey: Ve,
                    dropContainerKey: Ye,
                    dropTargetPos: Ke,
                    dropAllowed: Ue,
                    dragOverNodeKey: Xe
                }),
                be && be({
                    event: pe,
                    node: ye.eventData
                }))
            }
        }
          , q = function(pe, ye) {
            M === ye.eventKey && !pe.currentTarget.contains(pe.relatedTarget) && (K(),
            M = null);
            var be = e.onDragleave;
            be && be({
                event: pe,
                node: ye.eventData
            })
        }
          , F = function(pe, ye) {
            var be, Ae = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, Re = g.dragChildrenKeys, Ne = g.dropPosition, Se = g.dropTargetKey, we = g.dropTargetPos, Ve = g.dropAllowed;
            if (!!Ve) {
                var Ye = e.onDrop;
                if (g.dragOverNodeKey = null,
                X(),
                Se !== null) {
                    var Ue = I(I({}, XM(Se, _t(A.value))), {}, {
                        active: ((be = _e.value) === null || be === void 0 ? void 0 : be.key) === Se,
                        data: y.value[Se].node
                    });
                    Re.indexOf(Se);
                    var Ke = O8(we)
                      , Xe = {
                        event: pe,
                        node: ZM(Ue),
                        dragNode: P ? P.eventData : null,
                        dragNodesKeys: [P.eventKey].concat(Re),
                        dropToGap: Ne !== 0,
                        dropPosition: Ne + Number(Ke[Ke.length - 1])
                    };
                    Ae || Ye == null || Ye(Xe),
                    P = null
                }
            }
        }
          , H = function(pe, ye) {
            var be = e.onClick;
            be && be(pe, ye)
        }
          , ee = function(pe, ye) {
            var be = e.onDblclick;
            be && be(pe, ye)
        }
          , re = function(pe, ye) {
            var be = u.value
              , Ae = e.onSelect
              , Re = e.multiple
              , Ne = ye.selected
              , Se = ye[S.value.key]
              , we = !Ne;
            we ? Re ? be = Hs(be, Se) : be = [Se] : be = Vl(be, Se);
            var Ve = y.value
              , Ye = be.map(function(Ue) {
                var Ke = Ve[Ue];
                return Ke ? Ke.node : null
            }).filter(function(Ue) {
                return Ue
            });
            e.selectedKeys === void 0 && (u.value = be),
            Ae && Ae(be, {
                event: "select",
                selected: we,
                node: ye,
                selectedNodes: Ye,
                nativeEvent: pe
            })
        }
          , ue = function(pe, ye, be) {
            var Ae = e.checkStrictly, Re = e.onCheck, Ne = ye[S.value.key], Se, we = {
                event: "check",
                node: ye,
                checked: be,
                nativeEvent: pe
            }, Ve = y.value;
            if (Ae) {
                var Ye = be ? Hs(c.value, Ne) : Vl(c.value, Ne)
                  , Ue = Vl(f.value, Ne);
                Se = {
                    checked: Ye,
                    halfChecked: Ue
                },
                we.checkedNodes = Ye.map(function(ft) {
                    return Ve[ft]
                }).filter(function(ft) {
                    return ft
                }).map(function(ft) {
                    return ft.node
                }),
                e.checkedKeys === void 0 && (c.value = Ye)
            } else {
                var Ke = Li([].concat($e(c.value), [Ne]), !0, Ve, B.value, G.value)
                  , Xe = Ke.checkedKeys
                  , it = Ke.halfCheckedKeys;
                if (!be) {
                    var nt = new Set(Xe);
                    nt.delete(Ne);
                    var ht = Li(Array.from(nt), {
                        checked: !1,
                        halfCheckedKeys: it
                    }, Ve, B.value, G.value);
                    Xe = ht.checkedKeys,
                    it = ht.halfCheckedKeys
                }
                Se = Xe,
                we.checkedNodes = [],
                we.checkedNodesPositions = [],
                we.halfCheckedKeys = it,
                Xe.forEach(function(ft) {
                    var Zt = Ve[ft];
                    if (!!Zt) {
                        var Tt = Zt.node
                          , bt = Zt.pos;
                        we.checkedNodes.push(Tt),
                        we.checkedNodesPositions.push({
                            node: Tt,
                            pos: bt
                        })
                    }
                }),
                e.checkedKeys === void 0 && (c.value = Xe,
                f.value = it)
            }
            Re && Re(Se, we)
        }
          , ve = function(pe) {
            var ye = pe[S.value.key]
              , be = new Promise(function(Ae, Re) {
                var Ne = e.loadData
                  , Se = e.onLoad;
                if (!Ne || D.value.has(ye) || E.value.has(ye))
                    return null;
                var we = Ne(pe);
                we.then(function() {
                    var Ve = Hs(d.value, ye)
                      , Ye = Vl(v.value, ye);
                    Se && Se(Ve, {
                        event: "load",
                        node: pe
                    }),
                    e.loadedKeys === void 0 && (d.value = Ve),
                    v.value = Ye,
                    Ae()
                }).catch(function(Ve) {
                    var Ye = Vl(v.value, ye);
                    if (v.value = Ye,
                    p[ye] = (p[ye] || 0) + 1,
                    p[ye] >= VNe) {
                        var Ue = Hs(d.value, ye);
                        e.loadedKeys === void 0 && (d.value = Ue),
                        Ae()
                    }
                    Re(Ve)
                }),
                v.value = Hs(v.value, ye)
            }
            );
            return be.catch(function() {}),
            be
        }
          , fe = function(pe, ye) {
            var be = e.onMouseenter;
            be && be({
                event: pe,
                node: ye
            })
        }
          , ce = function(pe, ye) {
            var be = e.onMouseleave;
            be && be({
                event: pe,
                node: ye
            })
        }
          , le = function(pe, ye) {
            var be = e.onRightClick;
            be && (pe.preventDefault(),
            be({
                event: pe,
                node: ye
            }))
        }
          , oe = function(pe) {
            var ye = e.onFocus;
            b.value = !0,
            ye && ye(pe)
        }
          , se = function(pe) {
            var ye = e.onBlur;
            b.value = !1,
            ze(null),
            ye && ye(pe)
        }
          , xe = function(pe, ye) {
            var be = h.value
              , Ae = e.onExpand
              , Re = e.loadData
              , Ne = ye.expanded
              , Se = ye[S.value.key];
            if (!C.value) {
                be.indexOf(Se);
                var we = !Ne;
                if (we ? be = Hs(be, Se) : be = Vl(be, Se),
                U(be),
                Ae && Ae(be, {
                    node: ye,
                    expanded: we,
                    nativeEvent: pe
                }),
                we && Re) {
                    var Ve = ve(ye);
                    Ve && Ve.then(function() {}).catch(function(Ye) {
                        var Ue = Vl(h.value, Se);
                        U(Ue),
                        Promise.reject(Ye)
                    })
                }
            }
        }
          , Pe = function() {
            C.value = !0
        }
          , Fe = function() {
            setTimeout(function() {
                C.value = !1
            })
        }
          , ze = function(pe) {
            var ye = e.onActiveChange;
            x.value !== pe && (e.activeKey !== void 0 && (x.value = pe),
            pe !== null && V({
                key: pe
            }),
            ye && ye(pe))
        }
          , _e = j(function() {
            return x.value === null ? null : $.value.find(function(Ce) {
                var pe = Ce.key;
                return pe === x.value
            }) || null
        })
          , me = function(pe) {
            var ye = $.value.findIndex(function(Re) {
                var Ne = Re.key;
                return Ne === x.value
            });
            ye === -1 && pe < 0 && (ye = $.value.length),
            ye = (ye + pe + $.value.length) % $.value.length;
            var be = $.value[ye];
            if (be) {
                var Ae = be.key;
                ze(Ae)
            } else
                ze(null)
        }
          , Ie = j(function() {
            return ZM(I(I({}, XM(x.value, A.value)), {}, {
                data: _e.value.data,
                active: !0
            }))
        })
          , Oe = function(pe) {
            var ye = e.onKeydown
              , be = e.checkable
              , Ae = e.selectable;
            switch (pe.which) {
            case Ee.UP:
                {
                    me(-1),
                    pe.preventDefault();
                    break
                }
            case Ee.DOWN:
                {
                    me(1),
                    pe.preventDefault();
                    break
                }
            }
            var Re = _e.value;
            if (Re && Re.data) {
                var Ne = Re.data.isLeaf === !1 || !!(Re.data.children || []).length
                  , Se = Ie.value;
                switch (pe.which) {
                case Ee.LEFT:
                    {
                        Ne && O.value.has(x.value) ? xe({}, Se) : Re.parent && ze(Re.parent.key),
                        pe.preventDefault();
                        break
                    }
                case Ee.RIGHT:
                    {
                        Ne && !O.value.has(x.value) ? xe({}, Se) : Re.children && Re.children.length && ze(Re.children[0].key),
                        pe.preventDefault();
                        break
                    }
                case Ee.ENTER:
                case Ee.SPACE:
                    {
                        be && !Se.disabled && Se.checkable !== !1 && !Se.disableCheckbox ? ue({}, Se, !L.value.has(x.value)) : !be && Ae && !Se.disabled && Se.selectable !== !1 && re({}, Se);
                        break
                    }
                }
            }
            ye && ye(pe)
        };
        return i({
            onNodeExpand: xe,
            scrollTo: V,
            onKeydown: Oe,
            selectedKeys: j(function() {
                return u.value
            }),
            checkedKeys: j(function() {
                return c.value
            }),
            halfCheckedKeys: j(function() {
                return f.value
            }),
            loadedKeys: j(function() {
                return d.value
            }),
            loadingKeys: j(function() {
                return v.value
            }),
            expandedKeys: j(function() {
                return h.value
            })
        }),
        dr(function() {
            window.removeEventListener("dragend", te),
            o.value = !0
        }),
        uAe({
            expandedKeys: h,
            selectedKeys: u,
            loadedKeys: d,
            loadingKeys: v,
            checkedKeys: c,
            halfCheckedKeys: f,
            expandedKeysSet: O,
            selectedKeysSet: k,
            loadedKeysSet: D,
            loadingKeysSet: E,
            checkedKeysSet: L,
            halfCheckedKeysSet: N,
            flattenNodes: $
        }),
        function() {
            var Ce, pe = g.draggingNodeKey, ye = g.dropLevelOffset, be = g.dropContainerKey, Ae = g.dropTargetKey, Re = g.dropPosition, Ne = g.dragOverNodeKey, Se = e.prefixCls, we = e.showLine, Ve = e.focusable, Ye = e.tabindex, Ue = Ye === void 0 ? 0 : Ye, Ke = e.selectable, Xe = e.showIcon, it = e.icon, nt = it === void 0 ? a.icon : it, ht = e.switcherIcon, ft = e.draggable, Zt = e.checkable, Tt = e.checkStrictly, bt = e.disabled, wt = e.motion, Mn = e.loadData, gn = e.filterTreeNode, or = e.height, er = e.itemHeight, xn = e.virtual, Sn = e.dropIndicatorRender, Fn = e.onContextmenu, Wa = e.onScroll, Ln = e.direction, Ia = r.class, ci = r.style, Do = Hu(I(I({}, e), r), {
                aria: !0,
                data: !0
            }), ca;
            return ft && (We(ft) === "object" ? ca = ft : typeof ft == "function" ? ca = {
                nodeDraggable: ft
            } : ca = {}),
            _(sAe, {
                value: {
                    prefixCls: Se,
                    selectable: Ke,
                    showIcon: Xe,
                    icon: nt,
                    switcherIcon: ht,
                    draggable: ca,
                    draggingNodeKey: pe,
                    checkable: Zt,
                    customCheckable: a.checkable,
                    checkStrictly: Tt,
                    disabled: bt,
                    keyEntities: y.value,
                    dropLevelOffset: ye,
                    dropContainerKey: be,
                    dropTargetKey: Ae,
                    dropPosition: Re,
                    dragOverNodeKey: Ne,
                    dragging: pe !== null,
                    indent: s.value,
                    direction: Ln,
                    dropIndicatorRender: Sn,
                    loadData: Mn,
                    filterTreeNode: gn,
                    onNodeClick: H,
                    onNodeDoubleClick: ee,
                    onNodeExpand: xe,
                    onNodeSelect: re,
                    onNodeCheck: ue,
                    onNodeLoad: ve,
                    onNodeMouseEnter: fe,
                    onNodeMouseLeave: ce,
                    onNodeContextMenu: le,
                    onNodeDragStart: ne,
                    onNodeDragEnter: ie,
                    onNodeDragOver: ae,
                    onNodeDragLeave: q,
                    onNodeDragEnd: Y,
                    onNodeDrop: F,
                    slots: a
                }
            }, {
                default: function() {
                    return [_("div", {
                        role: "tree",
                        class: he(Se, Ia, (Ce = {},
                        z(Ce, "".concat(Se, "-show-line"), we),
                        z(Ce, "".concat(Se, "-focused"), b.value),
                        z(Ce, "".concat(Se, "-active-focused"), x.value !== null),
                        Ce))
                    }, [_(FNe, I({
                        ref: w,
                        prefixCls: Se,
                        style: ci,
                        disabled: bt,
                        selectable: Ke,
                        checkable: !!Zt,
                        motion: wt,
                        height: or,
                        itemHeight: er,
                        virtual: xn,
                        focusable: Ve,
                        focused: b.value,
                        tabindex: Ue,
                        activeItem: _e.value,
                        onFocus: oe,
                        onBlur: se,
                        onKeydown: Oe,
                        onActiveChange: ze,
                        onListChangeStart: Pe,
                        onListChangeEnd: Fe,
                        onContextmenu: Fn,
                        onScroll: Wa
                    }, Do), null)])]
                }
            })
        }
    }
});
var zNe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"
            }
        }]
    },
    name: "file",
    theme: "outlined"
};
const HNe = zNe;
function hV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            jNe(t, a, n[a])
        })
    }
    return t
}
function jNe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var SE = function(e, n) {
    var r = hV({}, e, n.attrs);
    return _(lt, hV({}, r, {
        icon: HNe
    }), null)
};
SE.displayName = "FileOutlined";
SE.inheritAttrs = !1;
const One = SE;
var WNe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"
            }
        }, {
            tag: "path",
            attrs: {
                d: "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"
            }
        }]
    },
    name: "minus-square",
    theme: "outlined"
};
const GNe = WNe;
function pV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            KNe(t, a, n[a])
        })
    }
    return t
}
function KNe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var CE = function(e, n) {
    var r = pV({}, e, n.attrs);
    return _(lt, pV({}, r, {
        icon: GNe
    }), null)
};
CE.displayName = "MinusSquareOutlined";
CE.inheritAttrs = !1;
const UNe = CE;
var YNe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"
            }
        }, {
            tag: "path",
            attrs: {
                d: "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"
            }
        }]
    },
    name: "plus-square",
    theme: "outlined"
};
const qNe = YNe;
function gV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            XNe(t, a, n[a])
        })
    }
    return t
}
function XNe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var wE = function(e, n) {
    var r = gV({}, e, n.attrs);
    return _(lt, gV({}, r, {
        icon: qNe
    }), null)
};
wE.displayName = "PlusSquareOutlined";
wE.inheritAttrs = !1;
const ZNe = wE;
var QNe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "0 0 1024 1024",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"
            }
        }]
    },
    name: "caret-down",
    theme: "filled"
};
const JNe = QNe;
function mV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            e7e(t, a, n[a])
        })
    }
    return t
}
function e7e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var _E = function(e, n) {
    var r = mV({}, e, n.attrs);
    return _(lt, mV({}, r, {
        icon: JNe
    }), null)
};
_E.displayName = "CaretDownFilled";
_E.inheritAttrs = !1;
const t7e = _E;
function Dne(t, e, n, r) {
    var a = r.isLeaf
      , i = r.expanded
      , o = r.loading
      , l = e;
    if (o)
        return _(Co, {
            class: "".concat(t, "-switcher-loading-icon")
        }, null);
    var s;
    n && We(n) === "object" && (s = n.showLeafIcon);
    var u = null
      , c = "".concat(t, "-switcher-icon");
    return a ? (n && (We(n) === "object" && !s ? u = _("span", {
        class: "".concat(t, "-switcher-leaf-line")
    }, null) : u = _(One, {
        class: "".concat(t, "-switcher-line-icon")
    }, null)),
    u) : (u = _(t7e, {
        class: c
    }, null),
    n && (u = i ? _(UNe, {
        class: "".concat(t, "-switcher-line-icon")
    }, null) : _(ZNe, {
        class: "".concat(t, "-switcher-line-icon")
    }, null)),
    typeof e == "function" ? l = e(I(I({}, r), {}, {
        defaultIcon: u,
        switcherCls: c
    })) : cr(l) && (l = Zr(l, {
        class: c
    })),
    l || u)
}
var yV = 4;
function n7e(t) {
    var e, n = t.dropPosition, r = t.dropLevelOffset, a = t.prefixCls, i = t.indent, o = t.direction, l = o === void 0 ? "ltr" : o, s = l === "ltr" ? "left" : "right", u = l === "ltr" ? "right" : "left", c = (e = {},
    z(e, s, "".concat(-r * i + yV, "px")),
    z(e, u, 0),
    e);
    switch (n) {
    case -1:
        c.top = "".concat(-3, "px");
        break;
    case 1:
        c.bottom = "".concat(-3, "px");
        break;
    default:
        c.bottom = "".concat(-3, "px"),
        c[s] = "".concat(i + yV, "px");
        break
    }
    return _("div", {
        style: c,
        class: "".concat(a, "-drop-indicator")
    }, null)
}
var Ene = function() {
    var e = Dee();
    return I(I({}, e), {}, {
        showLine: {
            type: [Boolean, Object],
            default: void 0
        },
        multiple: {
            type: Boolean,
            default: void 0
        },
        autoExpandParent: {
            type: Boolean,
            default: void 0
        },
        checkStrictly: {
            type: Boolean,
            default: void 0
        },
        checkable: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        defaultExpandAll: {
            type: Boolean,
            default: void 0
        },
        defaultExpandParent: {
            type: Boolean,
            default: void 0
        },
        defaultExpandedKeys: {
            type: Array
        },
        expandedKeys: {
            type: Array
        },
        checkedKeys: {
            type: [Array, Object]
        },
        defaultCheckedKeys: {
            type: Array
        },
        selectedKeys: {
            type: Array
        },
        defaultSelectedKeys: {
            type: Array
        },
        selectable: {
            type: Boolean,
            default: void 0
        },
        loadedKeys: {
            type: Array
        },
        draggable: {
            type: Boolean,
            default: void 0
        },
        showIcon: {
            type: Boolean,
            default: void 0
        },
        icon: {
            type: Function
        },
        switcherIcon: J.any,
        prefixCls: String,
        replaceFields: {
            type: Object
        },
        blockNode: {
            type: Boolean,
            default: void 0
        },
        openAnimation: J.any,
        onDoubleclick: e.onDblclick,
        "onUpdate:selectedKeys": Function,
        "onUpdate:checkedKeys": Function,
        "onUpdate:expandedKeys": Function
    })
};
const Lb = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATree",
    inheritAttrs: !1,
    props: $t(Ene(), {
        checkable: !1,
        selectable: !0,
        showIcon: !1,
        blockNode: !1
    }),
    slots: ["icon", "title", "switcherIcon", "titleRender"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.expose
          , i = n.emit
          , o = n.slots;
        e.treeData === void 0 && o.default;
        var l = je("tree", e)
          , s = l.prefixCls
          , u = l.direction
          , c = l.virtual
          , f = Q()
          , d = function(m) {
            var y;
            (y = f.value) === null || y === void 0 || y.scrollTo(m)
        };
        a({
            treeRef: f,
            onNodeExpand: function() {
                for (var m, y = arguments.length, b = new Array(y), x = 0; x < y; x++)
                    b[x] = arguments[x];
                (m = f.value) === null || m === void 0 || m.onNodeExpand.apply(m, b)
            },
            scrollTo: d,
            selectedKeys: j(function() {
                var g;
                return (g = f.value) === null || g === void 0 ? void 0 : g.selectedKeys
            }),
            checkedKeys: j(function() {
                var g;
                return (g = f.value) === null || g === void 0 ? void 0 : g.checkedKeys
            }),
            halfCheckedKeys: j(function() {
                var g;
                return (g = f.value) === null || g === void 0 ? void 0 : g.halfCheckedKeys
            }),
            loadedKeys: j(function() {
                var g;
                return (g = f.value) === null || g === void 0 ? void 0 : g.loadedKeys
            }),
            loadingKeys: j(function() {
                var g;
                return (g = f.value) === null || g === void 0 ? void 0 : g.loadingKeys
            }),
            expandedKeys: j(function() {
                var g;
                return (g = f.value) === null || g === void 0 ? void 0 : g.expandedKeys
            })
        }),
        pt(function() {
            sn(e.replaceFields === void 0, "Tree", "`replaceFields` is deprecated, please use fieldNames instead")
        });
        var v = function(m, y) {
            i("update:checkedKeys", m),
            i("check", m, y)
        }
          , h = function(m, y) {
            i("update:expandedKeys", m),
            i("expand", m, y)
        }
          , p = function(m, y) {
            i("update:selectedKeys", m),
            i("select", m, y)
        };
        return function() {
            var g, m = e.showIcon, y = e.showLine, b = e.switcherIcon, x = b === void 0 ? o.switcherIcon : b, C = e.icon, S = C === void 0 ? o.icon : C, w = e.blockNode, T = e.checkable, P = e.selectable, M = e.fieldNames, A = M === void 0 ? e.replaceFields : M, O = e.motion, k = O === void 0 ? e.openAnimation : O, D = e.itemHeight, E = D === void 0 ? 28 : D, L = e.onDoubleclick, N = e.onDblclick, R = I(I(I({}, r), Et(e, ["onUpdate:checkedKeys", "onUpdate:expandedKeys", "onUpdate:selectedKeys", "onDoubleclick"])), {}, {
                showLine: Boolean(y),
                dropIndicatorRender: n7e,
                fieldNames: A,
                icon: S,
                itemHeight: E
            }), $ = o.default ? ar(o.default()) : void 0;
            return _(kne, I(I({}, R), {}, {
                virtual: c.value,
                motion: k,
                ref: f,
                prefixCls: s.value,
                class: he((g = {},
                z(g, "".concat(s.value, "-icon-hide"), !m),
                z(g, "".concat(s.value, "-block-node"), w),
                z(g, "".concat(s.value, "-unselectable"), !P),
                z(g, "".concat(s.value, "-rtl"), u.value === "rtl"),
                g), r.class),
                direction: u.value,
                checkable: T,
                selectable: P,
                switcherIcon: function(B) {
                    return Dne(s.value, x, y, B)
                },
                onCheck: v,
                onExpand: h,
                onSelect: p,
                onDblclick: N || L,
                children: $
            }), I(I({}, o), {}, {
                checkable: function() {
                    return _("span", {
                        class: "".concat(s.value, "-checkbox-inner")
                    }, null)
                }
            }))
        }
    }
});
var r7e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"
            }
        }]
    },
    name: "folder-open",
    theme: "outlined"
};
const a7e = r7e;
function bV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            i7e(t, a, n[a])
        })
    }
    return t
}
function i7e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var TE = function(e, n) {
    var r = bV({}, e, n.attrs);
    return _(lt, bV({}, r, {
        icon: a7e
    }), null)
};
TE.displayName = "FolderOpenOutlined";
TE.inheritAttrs = !1;
const o7e = TE;
var l7e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"
            }
        }]
    },
    name: "folder",
    theme: "outlined"
};
const s7e = l7e;
function xV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            u7e(t, a, n[a])
        })
    }
    return t
}
function u7e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var PE = function(e, n) {
    var r = xV({}, e, n.attrs);
    return _(lt, xV({}, r, {
        icon: s7e
    }), null)
};
PE.displayName = "FolderOutlined";
PE.inheritAttrs = !1;
const c7e = PE;
var jl;
(function(t) {
    t[t.None = 0] = "None",
    t[t.Start = 1] = "Start",
    t[t.End = 2] = "End"
}
)(jl || (jl = {}));
function ME(t, e, n) {
    function r(a) {
        var i = a[e.key]
          , o = a[e.children];
        n(i, a) !== !1 && ME(o || [], e, n)
    }
    t.forEach(r)
}
function f7e(t) {
    var e = t.treeData
      , n = t.expandedKeys
      , r = t.startKey
      , a = t.endKey
      , i = t.fieldNames
      , o = i === void 0 ? {
        title: "title",
        key: "key",
        children: "children"
    } : i
      , l = []
      , s = jl.None;
    if (r && r === a)
        return [r];
    if (!r || !a)
        return [];
    function u(c) {
        return c === r || c === a
    }
    return ME(e, o, function(c) {
        if (s === jl.End)
            return !1;
        if (u(c)) {
            if (l.push(c),
            s === jl.None)
                s = jl.Start;
            else if (s === jl.Start)
                return s = jl.End,
                !1
        } else
            s === jl.Start && l.push(c);
        return n.indexOf(c) !== -1
    }),
    l
}
function BT(t, e, n) {
    var r = $e(e)
      , a = [];
    return ME(t, n, function(i, o) {
        var l = r.indexOf(i);
        return l !== -1 && (a.push(o),
        r.splice(l, 1)),
        !!r.length
    }),
    a
}
var d7e = ["icon", "blockNode"]
  , v7e = function() {
    return I(I({}, Ene()), {}, {
        expandAction: {
            type: [Boolean, String]
        }
    })
};
function h7e(t) {
    var e = t.isLeaf
      , n = t.expanded;
    return _(e ? One : n ? o7e : c7e, null, null)
}
const Rb = de({
    compatConfig: {
        MODE: 3
    },
    name: "ADirectoryTree",
    inheritAttrs: !1,
    props: $t(v7e(), {
        showIcon: !0,
        expandAction: "click"
    }),
    slots: ["icon", "title", "switcherIcon", "titleRender"],
    setup: function(e, n) {
        var r, a = n.attrs, i = n.slots, o = n.emit, l = n.expose, s = Q(e.treeData || qM(ar((r = i.default) === null || r === void 0 ? void 0 : r.call(i))));
        Te(function() {
            return e.treeData
        }, function() {
            s.value = e.treeData
        }),
        ua(function() {
            yt(function() {
                if (e.treeData === void 0 && i.default) {
                    var A;
                    s.value = qM(ar((A = i.default) === null || A === void 0 ? void 0 : A.call(i)))
                }
            })
        });
        var u = Q()
          , c = Q()
          , f = j(function() {
            return cw(e.fieldNames)
        })
          , d = Q()
          , v = function(O) {
            var k;
            (k = d.value) === null || k === void 0 || k.scrollTo(O)
        };
        l({
            scrollTo: v,
            selectedKeys: j(function() {
                var A;
                return (A = d.value) === null || A === void 0 ? void 0 : A.selectedKeys
            }),
            checkedKeys: j(function() {
                var A;
                return (A = d.value) === null || A === void 0 ? void 0 : A.checkedKeys
            }),
            halfCheckedKeys: j(function() {
                var A;
                return (A = d.value) === null || A === void 0 ? void 0 : A.halfCheckedKeys
            }),
            loadedKeys: j(function() {
                var A;
                return (A = d.value) === null || A === void 0 ? void 0 : A.loadedKeys
            }),
            loadingKeys: j(function() {
                var A;
                return (A = d.value) === null || A === void 0 ? void 0 : A.loadingKeys
            }),
            expandedKeys: j(function() {
                var A;
                return (A = d.value) === null || A === void 0 ? void 0 : A.expandedKeys
            })
        });
        var h = function() {
            var O = Am(s.value, {
                fieldNames: f.value
            }), k = O.keyEntities, D;
            return e.defaultExpandAll ? D = Object.keys(k) : e.defaultExpandParent ? D = YM(e.expandedKeys || e.defaultExpandedKeys || [], k) : D = e.expandedKeys || e.defaultExpandedKeys,
            D
        }
          , p = Q(e.selectedKeys || e.defaultSelectedKeys || [])
          , g = Q(h());
        Te(function() {
            return e.selectedKeys
        }, function() {
            e.selectedKeys !== void 0 && (p.value = e.selectedKeys)
        }, {
            immediate: !0
        }),
        Te(function() {
            return e.expandedKeys
        }, function() {
            e.expandedKeys !== void 0 && (g.value = e.expandedKeys)
        }, {
            immediate: !0
        });
        var m = function(O, k) {
            var D = k.isLeaf;
            D || O.shiftKey || O.metaKey || O.ctrlKey || d.value.onNodeExpand(O, k)
        }
          , y = sw(m, 200, {
            leading: !0
        })
          , b = function(O, k) {
            e.expandedKeys === void 0 && (g.value = O),
            o("update:expandedKeys", O),
            o("expand", O, k)
        }
          , x = function(O, k) {
            var D = e.expandAction;
            D === "click" && y(O, k),
            o("click", O, k)
        }
          , C = function(O, k) {
            var D = e.expandAction;
            (D === "dblclick" || D === "doubleclick") && y(O, k),
            o("doubleclick", O, k),
            o("dblclick", O, k)
        }
          , S = function(O, k) {
            var D = e.multiple, E = k.node, L = k.nativeEvent, N = E[f.value.key], R = I(I({}, k), {}, {
                selected: !0
            }), $ = (L == null ? void 0 : L.ctrlKey) || (L == null ? void 0 : L.metaKey), W = L == null ? void 0 : L.shiftKey, B;
            D && $ ? (B = O,
            u.value = N,
            c.value = B,
            R.selectedNodes = BT(s.value, B, f.value)) : D && W ? (B = Array.from(new Set([].concat($e(c.value || []), $e(f7e({
                treeData: s.value,
                expandedKeys: g.value,
                startKey: N,
                endKey: u.value,
                fieldNames: f.value
            }))))),
            R.selectedNodes = BT(s.value, B, f.value)) : (B = [N],
            u.value = N,
            c.value = B,
            R.selectedNodes = BT(s.value, B, f.value)),
            o("update:selectedKeys", B),
            o("select", B, R),
            e.selectedKeys === void 0 && (p.value = B)
        }
          , w = function(O, k) {
            o("update:checkedKeys", O),
            o("check", O, k)
        }
          , T = je("tree", e)
          , P = T.prefixCls
          , M = T.direction;
        return function() {
            var A = he("".concat(P.value, "-directory"), z({}, "".concat(P.value, "-directory-rtl"), M.value === "rtl"), a.class)
              , O = e.icon
              , k = O === void 0 ? i.icon : O
              , D = e.blockNode
              , E = D === void 0 ? !0 : D
              , L = tt(e, d7e);
            return _(Lb, I(I(I({}, a), {}, {
                icon: k || h7e,
                ref: d,
                blockNode: E
            }, L), {}, {
                prefixCls: P.value,
                class: A,
                expandedKeys: g.value,
                selectedKeys: p.value,
                onSelect: S,
                onClick: x,
                onDblclick: C,
                onExpand: b,
                onCheck: w
            }), i)
        }
    }
});
var Nb = UM;
const Lne = Wt(Lb, {
    DirectoryTree: Rb,
    TreeNode: Nb,
    install: function(e) {
        return e.component(Lb.name, Lb),
        e.component(Nb.name, Nb),
        e.component(Rb.name, Rb),
        e
    }
});
var p7e = Xn.SubMenu
  , g7e = Xn.Item;
function m7e(t) {
    return t.some(function(e) {
        var n = e.children;
        return n && n.length > 0
    })
}
function Rne(t, e) {
    return typeof e == "string" || typeof e == "number" ? e == null ? void 0 : e.toString().toLowerCase().includes(t.trim().toLowerCase()) : !1
}
function Nne(t) {
    var e = t.filters
      , n = t.prefixCls
      , r = t.filteredKeys
      , a = t.filterMultiple
      , i = t.searchValue
      , o = t.filterSearch;
    return e.map(function(l, s) {
        var u = String(l.value);
        if (l.children)
            return _(p7e, {
                key: u || s,
                title: l.text,
                popupClassName: "".concat(n, "-dropdown-submenu")
            }, {
                default: function() {
                    return [Nne({
                        filters: l.children,
                        prefixCls: n,
                        filteredKeys: r,
                        filterMultiple: a,
                        searchValue: i,
                        filterSearch: o
                    })]
                }
            });
        var c = a ? Ri : xa
          , f = _(g7e, {
            key: l.value !== void 0 ? u : s
        }, {
            default: function() {
                return [_(c, {
                    checked: r.includes(u)
                }, null), _("span", null, [l.text])]
            }
        });
        return i.trim() ? typeof o == "function" ? o(i, l) ? f : void 0 : Rne(i, l.text) ? f : void 0 : f
    })
}
const y7e = de({
    name: "FilterDropdown",
    props: ["tablePrefixCls", "prefixCls", "dropdownPrefixCls", "column", "filterState", "filterMultiple", "filterMode", "filterSearch", "columnKey", "triggerFilter", "locale", "getPopupContainer"],
    setup: function(e, n) {
        var r = n.slots
          , a = hne()
          , i = j(function() {
            var B;
            return (B = e.filterMode) !== null && B !== void 0 ? B : "menu"
        })
          , o = j(function() {
            var B;
            return (B = e.filterSearch) !== null && B !== void 0 ? B : !1
        })
          , l = j(function() {
            return e.column.filterDropdownVisible
        })
          , s = Q(!1)
          , u = j(function() {
            var B;
            return !!(e.filterState && ((B = e.filterState.filteredKeys) !== null && B !== void 0 && B.length || e.filterState.forceFiltered))
        })
          , c = j(function() {
            var B;
            return Mw((B = e.column) === null || B === void 0 ? void 0 : B.filters)
        })
          , f = j(function() {
            var B = e.column
              , G = B.filterDropdown
              , K = B.slots
              , V = K === void 0 ? {} : K
              , U = B.customFilterDropdown;
            return G || V.filterDropdown && a.value[V.filterDropdown] || U && a.value.customFilterDropdown
        })
          , d = j(function() {
            var B = e.column
              , G = B.filterIcon
              , K = B.slots
              , V = K === void 0 ? {} : K;
            return G || V.filterIcon && a.value[V.filterIcon] || a.value.customFilterIcon
        })
          , v = function(G) {
            var K, V;
            s.value = G,
            (K = (V = e.column).onFilterDropdownVisibleChange) === null || K === void 0 || K.call(V, G)
        }
          , h = j(function() {
            return typeof l.value == "boolean" ? l.value : s.value
        })
          , p = j(function() {
            var B;
            return (B = e.filterState) === null || B === void 0 ? void 0 : B.filteredKeys
        })
          , g = Mt([])
          , m = function(G) {
            var K = G.selectedKeys;
            g.value = K
        }
          , y = function(G, K) {
            var V = K.node
              , U = K.checked;
            e.filterMultiple ? m({
                selectedKeys: G
            }) : m({
                selectedKeys: U && V.key ? [V.key] : []
            })
        };
        Te(p, function() {
            !s.value || m({
                selectedKeys: p.value || []
            })
        }, {
            immediate: !0
        });
        var b = Mt([])
          , x = Q()
          , C = function(G) {
            x.value = setTimeout(function() {
                b.value = G
            })
        }
          , S = function() {
            clearTimeout(x.value)
        };
        Nt(function() {
            clearTimeout(x.value)
        });
        var w = Q("")
          , T = function(G) {
            var K = G.target.value;
            w.value = K
        };
        Te(s, function() {
            s.value || (w.value = "")
        });
        var P = function(G) {
            var K = e.column
              , V = e.columnKey
              , U = e.filterState
              , X = G && G.length ? G : null;
            if (X === null && (!U || !U.filteredKeys) || UC(X, U == null ? void 0 : U.filteredKeys))
                return null;
            e.triggerFilter({
                column: K,
                key: V,
                filteredKeys: X
            })
        }
          , M = function() {
            v(!1),
            P(g.value)
        }
          , A = function() {
            var G = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
                confirm: !1,
                closeDropdown: !1
            }
              , K = G.confirm
              , V = G.closeDropdown;
            K && P([]),
            V && v(!1),
            w.value = "",
            g.value = []
        }
          , O = function() {
            var G = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
                closeDropdown: !0
            }
              , K = G.closeDropdown;
            K && v(!1),
            P(g.value)
        }
          , k = function(G) {
            G && p.value !== void 0 && (g.value = p.value || []),
            v(G),
            !G && !f.value && M()
        }
          , D = je("", e)
          , E = D.direction
          , L = function(G) {
            if (G.target.checked) {
                var K = c.value;
                g.value = K
            } else
                g.value = []
        }
          , N = function B(G) {
            var K = G.filters;
            return (K || []).map(function(V, U) {
                var X = String(V.value)
                  , Y = {
                    title: V.text,
                    key: V.value !== void 0 ? X : U
                };
                return V.children && (Y.children = B({
                    filters: V.children
                })),
                Y
            })
        }
          , R = j(function() {
            return N({
                filters: e.column.filters
            })
        })
          , $ = j(function() {
            return he(z({}, "".concat(e.dropdownPrefixCls, "-menu-without-submenu"), !m7e(e.column.filters || [])))
        })
          , W = function() {
            var G = g.value
              , K = e.column
              , V = e.locale
              , U = e.tablePrefixCls
              , X = e.filterMultiple
              , Y = e.dropdownPrefixCls
              , te = e.getPopupContainer
              , ne = e.prefixCls;
            return (K.filters || []).length === 0 ? _(Zs, {
                image: Zs.PRESENTED_IMAGE_SIMPLE,
                description: V.filterEmptyText,
                imageStyle: {
                    height: 24
                },
                style: {
                    margin: 0,
                    padding: "16px 0"
                }
            }, null) : i.value === "tree" ? _(xt, null, [_(sV, {
                filterSearch: o.value,
                value: w.value,
                onChange: T,
                tablePrefixCls: U,
                locale: V
            }, null), _("div", {
                class: "".concat(U, "-filter-dropdown-tree")
            }, [X ? _(Ri, {
                class: "".concat(U, "-filter-dropdown-checkall"),
                onChange: L,
                checked: G.length === c.value.length,
                indeterminate: G.length > 0 && G.length < c.value.length
            }, {
                default: function() {
                    return [V.filterCheckall]
                }
            }) : null, _(Lne, {
                checkable: !0,
                selectable: !1,
                blockNode: !0,
                multiple: X,
                checkStrictly: !X,
                class: "".concat(Y, "-menu"),
                onCheck: y,
                checkedKeys: G,
                selectedKeys: G,
                showIcon: !1,
                treeData: R.value,
                autoExpandParent: !0,
                defaultExpandAll: !0,
                filterTreeNode: w.value.trim() ? function(ie) {
                    return Rne(w.value, ie.title)
                }
                : void 0
            }, null)])]) : _(xt, null, [_(sV, {
                filterSearch: o.value,
                value: w.value,
                onChange: T,
                tablePrefixCls: U,
                locale: V
            }, null), _(Xn, {
                multiple: X,
                prefixCls: "".concat(Y, "-menu"),
                class: $.value,
                onClick: S,
                onSelect: m,
                onDeselect: m,
                selectedKeys: G,
                getPopupContainer: te,
                openKeys: b.value,
                onOpenChange: C
            }, {
                default: function() {
                    return Nne({
                        filters: K.filters || [],
                        filterSearch: o.value,
                        prefixCls: ne,
                        filteredKeys: g.value,
                        filterMultiple: X,
                        searchValue: w.value
                    })
                }
            })])
        };
        return function() {
            var B, G = e.tablePrefixCls, K = e.prefixCls, V = e.column, U = e.dropdownPrefixCls, X = e.locale, Y = e.getPopupContainer, te;
            if (typeof f.value == "function")
                te = f.value({
                    prefixCls: "".concat(U, "-custom"),
                    setSelectedKeys: function(F) {
                        return m({
                            selectedKeys: F
                        })
                    },
                    selectedKeys: g.value,
                    confirm: O,
                    clearFilters: A,
                    filters: V.filters,
                    visible: h.value,
                    column: V.__originColumn__
                });
            else if (f.value)
                te = f.value;
            else {
                var ne = g.value;
                te = _(xt, null, [W(), _("div", {
                    class: "".concat(K, "-dropdown-btns")
                }, [_(Pr, {
                    type: "link",
                    size: "small",
                    disabled: ne.length === 0,
                    onClick: function() {
                        return A()
                    }
                }, {
                    default: function() {
                        return [X.filterReset]
                    }
                }), _(Pr, {
                    type: "primary",
                    size: "small",
                    onClick: M
                }, {
                    default: function() {
                        return [X.filterConfirm]
                    }
                })])])
            }
            var ie = _(ONe, {
                class: "".concat(K, "-dropdown")
            }, {
                default: function() {
                    return [te]
                }
            }), ae;
            return typeof d.value == "function" ? ae = d.value({
                filtered: u.value,
                column: V.__originColumn__
            }) : d.value ? ae = d.value : ae = _(INe, null, null),
            _("div", {
                class: "".concat(K, "-column")
            }, [_("span", {
                class: "".concat(G, "-column-title")
            }, [(B = r.default) === null || B === void 0 ? void 0 : B.call(r)]), _(sl, {
                overlay: ie,
                trigger: ["click"],
                visible: h.value,
                onVisibleChange: k,
                getPopupContainer: Y,
                placement: E.value === "rtl" ? "bottomLeft" : "bottomRight"
            }, {
                default: function() {
                    return [_("span", {
                        role: "button",
                        tabindex: -1,
                        class: he("".concat(K, "-trigger"), {
                            active: u.value
                        }),
                        onClick: function(H) {
                            H.stopPropagation()
                        }
                    }, [ae])]
                }
            })])
        }
    }
});
function MA(t, e, n) {
    var r = [];
    return (t || []).forEach(function(a, i) {
        var o, l = Pw(i, n), s = a.filterDropdown || (a == null || (o = a.slots) === null || o === void 0 ? void 0 : o.filterDropdown) || a.customFilterDropdown;
        if (a.filters || s || "onFilter"in a)
            if ("filteredValue"in a) {
                var u = a.filteredValue;
                if (!s) {
                    var c, f;
                    u = (c = (f = u) === null || f === void 0 ? void 0 : f.map(String)) !== null && c !== void 0 ? c : u
                }
                r.push({
                    column: a,
                    key: jv(a, l),
                    filteredKeys: u,
                    forceFiltered: a.filtered
                })
            } else
                r.push({
                    column: a,
                    key: jv(a, l),
                    filteredKeys: e && a.defaultFilteredValue ? a.defaultFilteredValue : void 0,
                    forceFiltered: a.filtered
                });
        "children"in a && (r = [].concat($e(r), $e(MA(a.children, e, l))))
    }),
    r
}
function $ne(t, e, n, r, a, i, o, l) {
    return n.map(function(s, u) {
        var c, f = Pw(u, l), d = s.filterMultiple, v = d === void 0 ? !0 : d, h = s.filterMode, p = s.filterSearch, g = s, m = s.filterDropdown || (s == null || (c = s.slots) === null || c === void 0 ? void 0 : c.filterDropdown) || s.customFilterDropdown;
        if (g.filters || m) {
            var y = jv(g, f)
              , b = r.find(function(x) {
                var C = x.key;
                return y === C
            });
            g = I(I({}, g), {}, {
                title: function(C) {
                    return _(y7e, {
                        tablePrefixCls: t,
                        prefixCls: "".concat(t, "-filter"),
                        dropdownPrefixCls: e,
                        column: g,
                        columnKey: y,
                        filterState: b,
                        filterMultiple: v,
                        filterMode: h,
                        filterSearch: p,
                        triggerFilter: a,
                        locale: o,
                        getPopupContainer: i
                    }, {
                        default: function() {
                            return [bE(s.title, C)]
                        }
                    })
                }
            })
        }
        return "children"in g && (g = I(I({}, g), {}, {
            children: $ne(t, e, g.children, r, a, i, o, f)
        })),
        g
    })
}
function Mw(t) {
    var e = [];
    return (t || []).forEach(function(n) {
        var r = n.value
          , a = n.children;
        e.push(r),
        a && (e = [].concat($e(e), $e(Mw(a))))
    }),
    e
}
function SV(t) {
    var e = {};
    return t.forEach(function(n) {
        var r, a = n.key, i = n.filteredKeys, o = n.column, l = o.filterDropdown || (o == null || (r = o.slots) === null || r === void 0 ? void 0 : r.filterDropdown) || o.customFilterDropdown, s = o.filters;
        if (l)
            e[a] = i || null;
        else if (Array.isArray(i)) {
            var u = Mw(s);
            e[a] = u.filter(function(c) {
                return i.includes(String(c))
            })
        } else
            e[a] = null
    }),
    e
}
function CV(t, e) {
    return e.reduce(function(n, r) {
        var a = r.column
          , i = a.onFilter
          , o = a.filters
          , l = r.filteredKeys;
        return i && l && l.length ? n.filter(function(s) {
            return l.some(function(u) {
                var c = Mw(o)
                  , f = c.findIndex(function(v) {
                    return String(v) === String(u)
                })
                  , d = f !== -1 ? c[f] : u;
                return i(d, s)
            })
        }) : n
    }, t)
}
function b7e(t) {
    var e = t.prefixCls
      , n = t.dropdownPrefixCls
      , r = t.mergedColumns
      , a = t.locale
      , i = t.onFilterChange
      , o = t.getPopupContainer
      , l = Rn(MA(r.value, !0))
      , s = De(l, 2)
      , u = s[0]
      , c = s[1]
      , f = j(function() {
        var p = MA(r.value, !1)
          , g = p.every(function(y) {
            var b = y.filteredKeys;
            return b === void 0
        });
        if (g)
            return u.value;
        var m = p.every(function(y) {
            var b = y.filteredKeys;
            return b !== void 0
        });
        return sn(g || m, "Table", "`FilteredKeys` should all be controlled or not controlled."),
        p
    })
      , d = j(function() {
        return SV(f.value)
    })
      , v = function(g) {
        var m = f.value.filter(function(y) {
            var b = y.key;
            return b !== g.key
        });
        m.push(g),
        c(m),
        i(SV(m), m)
    }
      , h = function(g) {
        return $ne(e.value, n.value, g, f.value, v, o.value, a.value)
    };
    return [h, f, d]
}
function Fne(t, e) {
    return t.map(function(n) {
        var r = I({}, n);
        return r.title = bE(r.title, e),
        "children"in r && (r.children = Fne(r.children, e)),
        r
    })
}
function x7e(t) {
    var e = function(r) {
        return Fne(r, t.value)
    };
    return [e]
}
function S7e(t) {
    return function(n) {
        var r, a = n.prefixCls, i = n.onExpand, o = n.record, l = n.expanded, s = n.expandable, u = "".concat(a, "-row-expand-icon");
        return _("button", {
            type: "button",
            onClick: function(f) {
                i(o, f),
                f.stopPropagation()
            },
            class: he(u, (r = {},
            z(r, "".concat(u, "-spaced"), !s),
            z(r, "".concat(u, "-expanded"), s && l),
            z(r, "".concat(u, "-collapsed"), s && !l),
            r)),
            "aria-label": l ? t.collapse : t.expand
        }, null)
    }
}
function Bne(t, e) {
    var n = e.value;
    return t.map(function(r) {
        var a;
        if (r === Hl || r === Ys)
            return r;
        var i = I({}, r)
          , o = i.slots
          , l = o === void 0 ? {} : o;
        return i.__originColumn__ = r,
        sn(!("slots"in i), "Table", "`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),
        Object.keys(l).forEach(function(s) {
            var u = l[s];
            i[s] === void 0 && n[u] && (i[s] = n[u])
        }),
        e.value.headerCell && !((a = r.slots) !== null && a !== void 0 && a.title) && (i.title = oo(e.value, "headerCell", {
            title: r.title,
            column: r
        }, function() {
            return [r.title]
        })),
        "children"in i && (i.children = Bne(i.children, e)),
        i
    })
}
function C7e(t) {
    var e = function(r) {
        return Bne(r, t)
    };
    return [e]
}
var w7e = []
  , _7e = function() {
    return {
        prefixCls: {
            type: String,
            default: void 0
        },
        columns: {
            type: Array,
            default: void 0
        },
        rowKey: {
            type: [String, Function],
            default: void 0
        },
        tableLayout: {
            type: String,
            default: void 0
        },
        rowClassName: {
            type: [String, Function],
            default: void 0
        },
        title: {
            type: Function,
            default: void 0
        },
        footer: {
            type: Function,
            default: void 0
        },
        id: {
            type: String,
            default: void 0
        },
        showHeader: {
            type: Boolean,
            default: void 0
        },
        components: {
            type: Object,
            default: void 0
        },
        customRow: {
            type: Function,
            default: void 0
        },
        customHeaderRow: {
            type: Function,
            default: void 0
        },
        direction: {
            type: String,
            default: void 0
        },
        expandFixed: {
            type: [Boolean, String],
            default: void 0
        },
        expandColumnWidth: {
            type: Number,
            default: void 0
        },
        expandedRowKeys: {
            type: Array,
            default: void 0
        },
        defaultExpandedRowKeys: {
            type: Array,
            default: void 0
        },
        expandedRowRender: {
            type: Function,
            default: void 0
        },
        expandRowByClick: {
            type: Boolean,
            default: void 0
        },
        expandIcon: {
            type: Function,
            default: void 0
        },
        onExpand: {
            type: Function,
            default: void 0
        },
        onExpandedRowsChange: {
            type: Function,
            default: void 0
        },
        "onUpdate:expandedRowKeys": {
            type: Function,
            default: void 0
        },
        defaultExpandAllRows: {
            type: Boolean,
            default: void 0
        },
        indentSize: {
            type: Number,
            default: void 0
        },
        expandIconColumnIndex: {
            type: Number,
            default: void 0
        },
        showExpandColumn: {
            type: Boolean,
            default: void 0
        },
        expandedRowClassName: {
            type: Function,
            default: void 0
        },
        childrenColumnName: {
            type: String,
            default: void 0
        },
        rowExpandable: {
            type: Function,
            default: void 0
        },
        sticky: {
            type: [Boolean, Object],
            default: void 0
        },
        dropdownPrefixCls: String,
        dataSource: {
            type: Array,
            default: void 0
        },
        pagination: {
            type: [Boolean, Object],
            default: void 0
        },
        loading: {
            type: [Boolean, Object],
            default: void 0
        },
        size: {
            type: String,
            default: void 0
        },
        bordered: Boolean,
        locale: {
            type: Object,
            default: void 0
        },
        onChange: {
            type: Function,
            default: void 0
        },
        onResizeColumn: {
            type: Function,
            default: void 0
        },
        rowSelection: {
            type: Object,
            default: void 0
        },
        getPopupContainer: {
            type: Function,
            default: void 0
        },
        scroll: {
            type: Object,
            default: void 0
        },
        sortDirections: {
            type: Array,
            default: void 0
        },
        showSorterTooltip: {
            type: [Boolean, Object],
            default: !0
        },
        contextSlots: {
            type: Object
        },
        transformCellText: {
            type: Function
        }
    }
}
  , T7e = de({
    name: "InteralTable",
    inheritAttrs: !1,
    props: $t(_7e(), {
        rowKey: "key"
    }),
    slots: ["emptyText", "expandIcon", "title", "footer", "summary", "expandedRowRender", "bodyCell", "headerCell", "customFilterIcon", "customFilterDropdown"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.expose
          , o = n.emit;
        sn(!(typeof e.rowKey == "function" && e.rowKey.length > 1), "Table", "`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),
        yRe(j(function() {
            return e.contextSlots
        })),
        bRe({
            onResizeColumn: function(pe, ye) {
                o("resizeColumn", pe, ye)
            }
        });
        var l = yh()
          , s = j(function() {
            var Ce = new Set(Object.keys(l.value).filter(function(pe) {
                return l.value[pe]
            }));
            return e.columns.filter(function(pe) {
                return !pe.responsive || pe.responsive.some(function(ye) {
                    return Ce.has(ye)
                })
            })
        })
          , u = je("table", e)
          , c = u.size
          , f = u.renderEmpty
          , d = u.direction
          , v = u.prefixCls
          , h = u.configProvider
          , p = j(function() {
            return e.transformCellText || h.transformCellText
        })
          , g = xl("Table", yo.Table, at(e, "locale"))
          , m = De(g, 1)
          , y = m[0]
          , b = j(function() {
            return e.dataSource || w7e
        })
          , x = j(function() {
            return h.getPrefixCls("dropdown", e.dropdownPrefixCls)
        })
          , C = j(function() {
            return e.childrenColumnName || "children"
        })
          , S = j(function() {
            return b.value.some(function(Ce) {
                return Ce == null ? void 0 : Ce[C.value]
            }) ? "nest" : e.expandedRowRender ? "row" : null
        })
          , w = en({
            body: null
        })
          , T = function(pe) {
            Wt(w, pe)
        }
          , P = j(function() {
            return typeof e.rowKey == "function" ? e.rowKey : function(Ce) {
                return Ce == null ? void 0 : Ce[e.rowKey]
            }
        })
          , M = dNe(b, C, P)
          , A = De(M, 1)
          , O = A[0]
          , k = {}
          , D = function(pe, ye) {
            var be = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1
              , Ae = e.pagination
              , Re = e.scroll
              , Ne = e.onChange
              , Se = I(I({}, k), pe);
            be && (k.resetPagination(),
            Se.pagination.current && (Se.pagination.current = 1),
            Ae && Ae.onChange && Ae.onChange(1, Se.pagination.pageSize)),
            Re && Re.scrollToFirstRowOnChange !== !1 && w.body && tD(0, {
                getContainer: function() {
                    return w.body
                }
            }),
            Ne == null || Ne(Se.pagination, Se.filters, Se.sorter, {
                currentDataSource: CV(TA(b.value, Se.sorterStates, C.value), Se.filterStates),
                action: ye
            })
        }
          , E = function(pe, ye) {
            D({
                sorter: pe,
                sorterStates: ye
            }, "sort", !1)
        }
          , L = TNe({
            prefixCls: v,
            mergedColumns: s,
            onSorterChange: E,
            sortDirections: j(function() {
                return e.sortDirections || ["ascend", "descend"]
            }),
            tableLocale: y,
            showSorterTooltip: at(e, "showSorterTooltip")
        })
          , N = De(L, 4)
          , R = N[0]
          , $ = N[1]
          , W = N[2]
          , B = N[3]
          , G = j(function() {
            return TA(b.value, $.value, C.value)
        })
          , K = function(pe, ye) {
            D({
                filters: pe,
                filterStates: ye
            }, "filter", !0)
        }
          , V = b7e({
            prefixCls: v,
            locale: y,
            dropdownPrefixCls: x,
            mergedColumns: s,
            onFilterChange: K,
            getPopupContainer: at(e, "getPopupContainer")
        })
          , U = De(V, 3)
          , X = U[0]
          , Y = U[1]
          , te = U[2]
          , ne = j(function() {
            return CV(G.value, Y.value)
        })
          , ie = C7e(at(e, "contextSlots"))
          , ae = De(ie, 1)
          , q = ae[0]
          , F = j(function() {
            return I({}, W.value)
        })
          , H = x7e(F)
          , ee = De(H, 1)
          , re = ee[0]
          , ue = function(pe, ye) {
            D({
                pagination: I(I({}, k.pagination), {}, {
                    current: pe,
                    pageSize: ye
                })
            }, "paginate")
        }
          , ve = fNe(j(function() {
            return ne.value.length
        }), at(e, "pagination"), ue)
          , fe = De(ve, 2)
          , ce = fe[0]
          , le = fe[1];
        pt(function() {
            k.sorter = B.value,
            k.sorterStates = $.value,
            k.filters = te.value,
            k.filterStates = Y.value,
            k.pagination = e.pagination === !1 ? {} : uNe(e.pagination, ce.value),
            k.resetPagination = le
        });
        var oe = j(function() {
            if (e.pagination === !1 || !ce.value.pageSize)
                return ne.value;
            var Ce = ce.value
              , pe = Ce.current
              , ye = pe === void 0 ? 1 : pe
              , be = Ce.total
              , Ae = Ce.pageSize
              , Re = Ae === void 0 ? bA : Ae;
            return sn(ye > 0, "Table", "`current` should be positive number."),
            ne.value.length < be ? ne.value.length > Re ? ne.value.slice((ye - 1) * Re, ye * Re) : ne.value : ne.value.slice((ye - 1) * Re, ye * Re)
        });
        pt(function() {
            yt(function() {
                var Ce = ce.value
                  , pe = Ce.total
                  , ye = Ce.pageSize
                  , be = ye === void 0 ? bA : ye;
                ne.value.length < pe && ne.value.length > be && sn(!1, "Table", "`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")
            })
        }, {
            flush: "post"
        });
        var se = j(function() {
            return e.showExpandColumn === !1 ? -1 : S.value === "nest" && e.expandIconColumnIndex === void 0 ? e.rowSelection ? 1 : 0 : e.expandIconColumnIndex > 0 && e.rowSelection ? e.expandIconColumnIndex - 1 : e.expandIconColumnIndex
        })
          , xe = Q();
        Te(function() {
            return e.rowSelection
        }, function() {
            xe.value = e.rowSelection ? I({}, e.rowSelection) : e.rowSelection
        }, {
            deep: !0,
            immediate: !0
        });
        var Pe = hNe(xe, {
            prefixCls: v,
            data: ne,
            pageData: oe,
            getRowKey: P,
            getRecordByKey: O,
            expandType: S,
            childrenColumnName: C,
            locale: y,
            getPopupContainer: j(function() {
                return e.getPopupContainer
            })
        })
          , Fe = De(Pe, 2)
          , ze = Fe[0]
          , _e = Fe[1]
          , me = function(pe, ye, be) {
            var Ae, Re = e.rowClassName;
            return typeof Re == "function" ? Ae = he(Re(pe, ye, be)) : Ae = he(Re),
            he(z({}, "".concat(v.value, "-row-selected"), _e.value.has(P.value(pe, ye))), Ae)
        };
        i({
            selectedKeySet: _e
        });
        var Ie = j(function() {
            return typeof e.indentSize == "number" ? e.indentSize : 15
        })
          , Oe = function(pe) {
            var ye = re(ze(X(R(q(pe)))));
            return ye
        };
        return function() {
            var Ce, pe, ye = e.expandIcon, be = ye === void 0 ? a.expandIcon || S7e(y.value) : ye, Ae = e.pagination, Re = e.loading, Ne = e.bordered, Se, we;
            if (Ae !== !1 && (Ce = ce.value) !== null && Ce !== void 0 && Ce.total) {
                var Ve;
                ce.value.size ? Ve = ce.value.size : Ve = c.value === "small" || c.value === "middle" ? "small" : void 0;
                var Ye = function(bt) {
                    return _(bw, I(I({}, ce.value), {}, {
                        class: ["".concat(v.value, "-pagination ").concat(v.value, "-pagination-").concat(bt), ce.value.class],
                        size: Ve
                    }), null)
                }
                  , Ue = d.value === "rtl" ? "left" : "right"
                  , Ke = ce.value.position;
                if (Ke !== null && Array.isArray(Ke)) {
                    var Xe = Ke.find(function(Tt) {
                        return Tt.indexOf("top") !== -1
                    })
                      , it = Ke.find(function(Tt) {
                        return Tt.indexOf("bottom") !== -1
                    })
                      , nt = Ke.every(function(Tt) {
                        return "".concat(Tt) === "none"
                    });
                    !Xe && !it && !nt && (we = Ye(Ue)),
                    Xe && (Se = Ye(Xe.toLowerCase().replace("top", ""))),
                    it && (we = Ye(it.toLowerCase().replace("bottom", "")))
                } else
                    we = Ye(Ue)
            }
            var ht;
            typeof Re == "boolean" ? ht = {
                spinning: Re
            } : We(Re) === "object" && (ht = I({
                spinning: !0
            }, Re));
            var ft = he("".concat(v.value, "-wrapper"), z({}, "".concat(v.value, "-wrapper-rtl"), d.value === "rtl"), r.class)
              , Zt = Et(e, ["columns"]);
            return _("div", {
                class: ft,
                style: r.style
            }, [_(mu, I({
                spinning: !1
            }, ht), {
                default: function() {
                    return [Se, _(sNe, I(I(I({}, r), Zt), {}, {
                        expandedRowKeys: e.expandedRowKeys,
                        defaultExpandedRowKeys: e.defaultExpandedRowKeys,
                        expandIconColumnIndex: se.value,
                        indentSize: Ie.value,
                        expandIcon: be,
                        columns: s.value,
                        direction: d.value,
                        prefixCls: v.value,
                        class: he((pe = {},
                        z(pe, "".concat(v.value, "-middle"), c.value === "middle"),
                        z(pe, "".concat(v.value, "-small"), c.value === "small"),
                        z(pe, "".concat(v.value, "-bordered"), Ne),
                        z(pe, "".concat(v.value, "-empty"), b.value.length === 0),
                        pe)),
                        data: oe.value,
                        rowKey: P.value,
                        rowClassName: me,
                        internalHooks: yA,
                        internalRefs: w,
                        onUpdateInternalRefs: T,
                        transformColumns: Oe,
                        transformCellText: p.value
                    }), I(I({}, a), {}, {
                        emptyText: function() {
                            var wt, Mn;
                            return ((wt = a.emptyText) === null || wt === void 0 ? void 0 : wt.call(a)) || ((Mn = e.locale) === null || Mn === void 0 ? void 0 : Mn.emptyText) || f.value("Table")
                        }
                    })), we]
                }
            })])
        }
    }
})
  , P7e = de({
    name: "ATable",
    inheritAttrs: !1,
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.expose
          , o = Q();
        return i({
            table: o
        }),
        function() {
            var l, s = r, u = s.columns || Mne((l = a.default) === null || l === void 0 ? void 0 : l.call(a));
            return _(T7e, I(I({
                ref: o
            }, r), {}, {
                columns: u || [],
                expandedRowRender: a.expandedRowRender,
                contextSlots: I({}, a)
            }), a)
        }
    }
});
const VT = P7e
  , $b = de({
    name: "ATableColumn",
    slots: ["title", "filterIcon"],
    render: function() {
        return null
    }
})
  , Fb = de({
    name: "ATableColumnGroup",
    slots: ["title"],
    __ANT_TABLE_COLUMN_GROUP: !0,
    render: function() {
        return null
    }
});
var sS = qRe
  , uS = QRe
  , Bb = Wt(JRe, {
    Cell: uS,
    Row: sS,
    name: "ATableSummary"
});
const M7e = Wt(VT, {
    SELECTION_ALL: xA,
    SELECTION_INVERT: SA,
    SELECTION_NONE: CA,
    SELECTION_COLUMN: Hl,
    EXPAND_COLUMN: Ys,
    Column: $b,
    ColumnGroup: Fb,
    Summary: Bb,
    install: function(e) {
        return e.component(Bb.name, Bb),
        e.component(uS.name, uS),
        e.component(sS.name, sS),
        e.component(VT.name, VT),
        e.component($b.name, $b),
        e.component(Fb.name, Fb),
        e
    }
});
var A7e = {
    prefixCls: String,
    placeholder: String,
    value: String,
    handleClear: Function,
    disabled: {
        type: Boolean,
        default: void 0
    },
    onChange: Function
};
const I7e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Search",
    inheritAttrs: !1,
    props: $t(A7e, {
        placeholder: ""
    }),
    emits: ["change"],
    setup: function(e, n) {
        var r = n.emit
          , a = function(o) {
            if (r("change", o),
            o.target.value === "") {
                var l;
                (l = e.handleClear) === null || l === void 0 || l.call(e)
            }
        };
        return function() {
            var i = e.placeholder
              , o = e.value
              , l = e.prefixCls
              , s = e.disabled;
            return _(Sr, {
                placeholder: i,
                class: l,
                value: o,
                onChange: a,
                disabled: s,
                allowClear: !0
            }, {
                prefix: function() {
                    return _(ew, null, null)
                }
            })
        }
    }
});
var k7e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"
            }
        }]
    },
    name: "delete",
    theme: "outlined"
};
const O7e = k7e;
function wV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            D7e(t, a, n[a])
        })
    }
    return t
}
function D7e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var AE = function(e, n) {
    var r = wV({}, e, n.attrs);
    return _(lt, wV({}, r, {
        icon: O7e
    }), null)
};
AE.displayName = "DeleteOutlined";
AE.inheritAttrs = !1;
const Vne = AE;
function E7e() {}
var L7e = {
    renderedText: J.any,
    renderedEl: J.any,
    item: J.any,
    checked: {
        type: Boolean,
        default: void 0
    },
    prefixCls: String,
    disabled: {
        type: Boolean,
        default: void 0
    },
    showRemove: {
        type: Boolean,
        default: void 0
    },
    onClick: Function,
    onRemove: Function
};
const R7e = de({
    compatConfig: {
        MODE: 3
    },
    name: "ListItem",
    inheritAttrs: !1,
    props: L7e,
    emits: ["click", "remove"],
    setup: function(e, n) {
        var r = n.emit;
        return function() {
            var a, i = e.renderedText, o = e.renderedEl, l = e.item, s = e.checked, u = e.disabled, c = e.prefixCls, f = e.showRemove, d = he((a = {},
            z(a, "".concat(c, "-content-item"), !0),
            z(a, "".concat(c, "-content-item-disabled"), u || l.disabled),
            a)), v;
            return (typeof i == "string" || typeof i == "number") && (v = String(i)),
            _(ch, {
                componentName: "Transfer",
                defaultLocale: yo.Transfer
            }, {
                default: function(p) {
                    var g = _("span", {
                        class: "".concat(c, "-content-item-text")
                    }, [o]);
                    return f ? _("li", {
                        class: d,
                        title: v
                    }, [g, _(oS, {
                        disabled: u || l.disabled,
                        class: "".concat(c, "-content-item-remove"),
                        "aria-label": p.remove,
                        onClick: function() {
                            r("remove", l)
                        }
                    }, {
                        default: function() {
                            return [_(Vne, null, null)]
                        }
                    })]) : _("li", {
                        class: d,
                        title: v,
                        onClick: u || l.disabled ? E7e : function() {
                            r("click", l)
                        }
                    }, [_(Ri, {
                        class: "".concat(c, "-checkbox"),
                        checked: s,
                        disabled: u || l.disabled
                    }, null), g])
                }
            })
        }
    }
});
var N7e = {
    prefixCls: String,
    filteredRenderItems: J.array.def([]),
    selectedKeys: J.array,
    disabled: {
        type: Boolean,
        default: void 0
    },
    showRemove: {
        type: Boolean,
        default: void 0
    },
    pagination: J.any,
    onItemSelect: Function,
    onScroll: Function,
    onItemRemove: Function
};
function $7e(t) {
    if (!t)
        return null;
    var e = {
        pageSize: 10
    };
    return We(t) === "object" ? I(I({}, e), t) : e
}
var F7e = de({
    compatConfig: {
        MODE: 3
    },
    name: "ListBody",
    inheritAttrs: !1,
    props: N7e,
    emits: ["itemSelect", "itemRemove", "scroll"],
    setup: function(e, n) {
        var r = n.emit
          , a = n.expose
          , i = Q(1)
          , o = function(v) {
            var h = e.selectedKeys
              , p = h.indexOf(v.key) >= 0;
            r("itemSelect", v.key, !p)
        }
          , l = function(v) {
            r("itemRemove", [v.key])
        }
          , s = function(v) {
            r("scroll", v)
        }
          , u = j(function() {
            return $7e(e.pagination)
        });
        Te([u, function() {
            return e.filteredRenderItems
        }
        ], function() {
            if (u.value) {
                var d = Math.ceil(e.filteredRenderItems.length / u.value.pageSize);
                i.value > d && (i.value = d)
            }
        }, {
            immediate: !0
        });
        var c = j(function() {
            var d = e.filteredRenderItems
              , v = d;
            return u.value && (v = d.slice((i.value - 1) * u.value.pageSize, i.value * u.value.pageSize)),
            v
        })
          , f = function(v) {
            i.value = v
        };
        return a({
            items: c
        }),
        function() {
            var d = e.prefixCls
              , v = e.filteredRenderItems
              , h = e.selectedKeys
              , p = e.disabled
              , g = e.showRemove
              , m = null;
            u.value && (m = _(bw, {
                simple: !0,
                size: "small",
                disabled: p,
                class: "".concat(d, "-pagination"),
                total: v.length,
                pageSize: u.value.pageSize,
                current: i.value,
                onChange: f
            }, null));
            var y = c.value.map(function(b) {
                var x = b.renderedEl
                  , C = b.renderedText
                  , S = b.item
                  , w = S.disabled
                  , T = h.indexOf(S.key) >= 0;
                return _(R7e, {
                    disabled: p || w,
                    key: S.key,
                    item: S,
                    renderedText: C,
                    renderedEl: x,
                    checked: T,
                    prefixCls: d,
                    onClick: o,
                    onRemove: l,
                    showRemove: g
                }, null)
            });
            return _(xt, null, [_("ul", {
                class: he("".concat(d, "-content"), z({}, "".concat(d, "-content-show-remove"), g)),
                onScroll: s
            }, [y]), m])
        }
    }
});
const B7e = F7e;
var V7e = function() {
    return null
};
function z7e(t) {
    return t && !cr(t) && Object.prototype.toString.call(t) === "[object Object]"
}
function Zy(t) {
    return t.filter(function(e) {
        return !e.disabled
    }).map(function(e) {
        return e.key
    })
}
var H7e = {
    prefixCls: String,
    dataSource: {
        type: Array,
        default: []
    },
    filter: String,
    filterOption: Function,
    checkedKeys: J.arrayOf(J.string),
    handleFilter: Function,
    handleClear: Function,
    renderItem: Function,
    showSearch: {
        type: Boolean,
        default: !1
    },
    searchPlaceholder: String,
    notFoundContent: J.any,
    itemUnit: String,
    itemsUnit: String,
    renderList: J.any,
    disabled: {
        type: Boolean,
        default: void 0
    },
    direction: String,
    showSelectAll: {
        type: Boolean,
        default: void 0
    },
    remove: String,
    selectAll: String,
    selectCurrent: String,
    selectInvert: String,
    removeAll: String,
    removeCurrent: String,
    selectAllLabel: J.any,
    showRemove: {
        type: Boolean,
        default: void 0
    },
    pagination: J.any,
    onItemSelect: Function,
    onItemSelectAll: Function,
    onItemRemove: Function,
    onScroll: Function
};
const _V = de({
    compatConfig: {
        MODE: 3
    },
    name: "TransferList",
    inheritAttrs: !1,
    props: H7e,
    slots: ["footer", "titleText"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = Q("")
          , o = Q()
          , l = Q()
          , s = function(S, w) {
            var T = S ? S(w) : null
              , P = !!T && ar(T).length > 0;
            return P || (T = _(B7e, I(I({}, w), {}, {
                ref: l
            }), null)),
            {
                customize: P,
                bodyContent: T
            }
        }
          , u = function(S) {
            var w = e.renderItem
              , T = w === void 0 ? V7e : w
              , P = T(S)
              , M = z7e(P);
            return {
                renderedText: M ? P.value : P,
                renderedEl: M ? P.label : P,
                item: S
            }
        }
          , c = Q([])
          , f = Q([]);
        pt(function() {
            var C = []
              , S = [];
            e.dataSource.forEach(function(w) {
                var T = u(w)
                  , P = T.renderedText;
                if (i.value && i.value.trim() && !y(P, w))
                    return null;
                C.push(w),
                S.push(T)
            }),
            c.value = C,
            f.value = S
        });
        var d = j(function() {
            var C = e.checkedKeys;
            return C.length === 0 ? "none" : c.value.every(function(S) {
                return C.indexOf(S.key) >= 0 || !!S.disabled
            }) ? "all" : "part"
        })
          , v = j(function() {
            return Zy(c.value)
        })
          , h = function(S, w) {
            return Array.from(new Set([].concat($e(S), $e(e.checkedKeys)))).filter(function(T) {
                return w.indexOf(T) === -1
            })
        }
          , p = function(S) {
            var w = S.disabled
              , T = S.prefixCls
              , P = d.value === "all"
              , M = _(Ri, {
                disabled: w,
                checked: P,
                indeterminate: d.value === "part",
                class: "".concat(T, "-checkbox"),
                onChange: function() {
                    var O = v.value;
                    e.onItemSelectAll(h(P ? [] : O, P ? e.checkedKeys : []))
                }
            }, null);
            return M
        }
          , g = function(S) {
            var w, T = S.target.value;
            i.value = T,
            (w = e.handleFilter) === null || w === void 0 || w.call(e, S)
        }
          , m = function(S) {
            var w;
            i.value = "",
            (w = e.handleClear) === null || w === void 0 || w.call(e, S)
        }
          , y = function(S, w) {
            var T = e.filterOption;
            return T ? T(i.value, w) : S.indexOf(i.value) >= 0
        }
          , b = function(S, w) {
            var T = e.itemsUnit
              , P = e.itemUnit
              , M = e.selectAllLabel;
            if (M)
                return typeof M == "function" ? M({
                    selectedCount: S,
                    totalCount: w
                }) : M;
            var A = w > 1 ? T : P;
            return _(xt, null, [(S > 0 ? "".concat(S, "/") : "") + w, Fi(" "), A])
        }
          , x = function(S, w, T, P, M, A) {
            var O = M ? _("div", {
                class: "".concat(S, "-body-search-wrapper")
            }, [_(I7e, {
                prefixCls: "".concat(S, "-search"),
                onChange: g,
                handleClear: m,
                placeholder: w,
                value: i.value,
                disabled: A
            }, null)]) : null, k, D = kO(r), E = D.onEvents, L = s(P, I(I({}, e), {}, {
                filteredItems: c.value,
                filteredRenderItems: f.value,
                selectedKeys: T
            }, E)), N = L.bodyContent, R = L.customize;
            return R ? k = _("div", {
                class: "".concat(S, "-body-customize-wrapper")
            }, [N]) : k = c.value.length ? N : _("div", {
                class: "".concat(S, "-body-not-found")
            }, [e.notFoundContent]),
            _("div", {
                class: M ? "".concat(S, "-body ").concat(S, "-body-with-search") : "".concat(S, "-body"),
                ref: o
            }, [O, k])
        };
        return function() {
            var C, S, w, T = e.prefixCls, P = e.checkedKeys, M = e.disabled, A = e.showSearch, O = e.searchPlaceholder, k = e.selectAll, D = e.selectCurrent, E = e.selectInvert, L = e.removeAll, N = e.removeCurrent, R = e.renderList, $ = e.onItemSelectAll, W = e.onItemRemove, B = e.showSelectAll, G = B === void 0 ? !0 : B, K = e.showRemove, V = e.pagination, U = (C = a.footer) === null || C === void 0 ? void 0 : C.call(a, I({}, e)), X = he(T, (S = {},
            z(S, "".concat(T, "-with-pagination"), !!V),
            z(S, "".concat(T, "-with-footer"), !!U),
            S)), Y = x(T, O, P, R, A, M), te = U ? _("div", {
                class: "".concat(T, "-footer")
            }, [U]) : null, ne = !K && !V && p({
                disabled: M,
                prefixCls: T
            }), ie = null;
            K ? ie = _(Xn, null, {
                default: function() {
                    return [V && _(Xn.Item, {
                        key: "removeCurrent",
                        onClick: function() {
                            var H = Zy((l.value.items || []).map(function(ee) {
                                return ee.item
                            }));
                            W == null || W(H)
                        }
                    }, {
                        default: function() {
                            return [N]
                        }
                    }), _(Xn.Item, {
                        key: "removeAll",
                        onClick: function() {
                            W == null || W(v.value)
                        }
                    }, {
                        default: function() {
                            return [L]
                        }
                    })]
                }
            }) : ie = _(Xn, null, {
                default: function() {
                    return [_(Xn.Item, {
                        key: "selectAll",
                        onClick: function() {
                            var H = v.value;
                            $(h(H, []))
                        }
                    }, {
                        default: function() {
                            return [k]
                        }
                    }), V && _(Xn.Item, {
                        onClick: function() {
                            var H = Zy((l.value.items || []).map(function(ee) {
                                return ee.item
                            }));
                            $(h(H, []))
                        }
                    }, {
                        default: function() {
                            return [D]
                        }
                    }), _(Xn.Item, {
                        key: "selectInvert",
                        onClick: function() {
                            var H;
                            V ? H = Zy((l.value.items || []).map(function(ve) {
                                return ve.item
                            })) : H = v.value;
                            var ee = new Set(P)
                              , re = []
                              , ue = [];
                            H.forEach(function(ve) {
                                ee.has(ve) ? ue.push(ve) : re.push(ve)
                            }),
                            $(h(re, ue))
                        }
                    }, {
                        default: function() {
                            return [E]
                        }
                    })]
                }
            });
            var ae = _(sl, {
                class: "".concat(T, "-header-dropdown"),
                overlay: ie,
                disabled: M
            }, {
                default: function() {
                    return [_(Cm, null, null)]
                }
            });
            return _("div", {
                class: X,
                style: r.style
            }, [_("div", {
                class: "".concat(T, "-header")
            }, [G ? _(xt, null, [ne, ae]) : null, _("span", {
                class: "".concat(T, "-header-selected")
            }, [_("span", null, [b(P.length, c.value.length)]), _("span", {
                class: "".concat(T, "-header-title")
            }, [(w = a.titleText) === null || w === void 0 ? void 0 : w.call(a)])])]), Y, te])
        }
    }
});
function TV() {}
var IE = function(e) {
    var n = e.disabled
      , r = e.moveToLeft
      , a = r === void 0 ? TV : r
      , i = e.moveToRight
      , o = i === void 0 ? TV : i
      , l = e.leftArrowText
      , s = l === void 0 ? "" : l
      , u = e.rightArrowText
      , c = u === void 0 ? "" : u
      , f = e.leftActive
      , d = e.rightActive
      , v = e.class
      , h = e.style
      , p = e.direction
      , g = e.oneWay;
    return _("div", {
        class: v,
        style: h
    }, [_(Pr, {
        type: "primary",
        size: "small",
        disabled: n || !d,
        onClick: o,
        icon: _(p !== "rtl" ? ls : Df, null, null)
    }, {
        default: function() {
            return [c]
        }
    }), !g && _(Pr, {
        type: "primary",
        size: "small",
        disabled: n || !f,
        onClick: a,
        icon: _(p !== "rtl" ? Df : ls, null, null)
    }, {
        default: function() {
            return [s]
        }
    })])
};
IE.displayName = "Operation";
IE.inheritAttrs = !1;
const j7e = IE;
var W7e = function() {
    return {
        id: String,
        prefixCls: String,
        dataSource: {
            type: Array,
            default: []
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        targetKeys: {
            type: Array,
            default: void 0
        },
        selectedKeys: {
            type: Array,
            default: void 0
        },
        render: {
            type: Function
        },
        listStyle: {
            type: [Function, Object],
            default: function() {
                return {}
            }
        },
        operationStyle: {
            type: Object,
            default: void 0
        },
        titles: {
            type: Array
        },
        operations: {
            type: Array
        },
        showSearch: {
            type: Boolean,
            default: !1
        },
        filterOption: {
            type: Function
        },
        searchPlaceholder: String,
        notFoundContent: J.any,
        locale: {
            type: Object,
            default: function() {
                return {}
            }
        },
        rowKey: {
            type: Function
        },
        showSelectAll: {
            type: Boolean,
            default: void 0
        },
        selectAllLabels: {
            type: Array
        },
        children: {
            type: Function
        },
        oneWay: {
            type: Boolean,
            default: void 0
        },
        pagination: {
            type: [Object, Boolean],
            default: void 0
        },
        onChange: Function,
        onSelectChange: Function,
        onSearch: Function,
        onScroll: Function,
        "onUpdate:targetKeys": Function,
        "onUpdate:selectedKeys": Function
    }
}
  , G7e = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATransfer",
    inheritAttrs: !1,
    props: W7e(),
    slots: ["leftTitle", "rightTitle", "children", "render", "notFoundContent", "leftSelectAllLabel", "rightSelectAllLabel", "footer"],
    setup: function(e, n) {
        var r = n.emit
          , a = n.attrs
          , i = n.slots
          , o = n.expose
          , l = je("transfer", e)
          , s = l.configProvider
          , u = l.prefixCls
          , c = l.direction
          , f = Q([])
          , d = Q([])
          , v = br();
        Te(function() {
            return e.selectedKeys
        }, function() {
            var K, V;
            f.value = ((K = e.selectedKeys) === null || K === void 0 ? void 0 : K.filter(function(U) {
                return e.targetKeys.indexOf(U) === -1
            })) || [],
            d.value = ((V = e.selectedKeys) === null || V === void 0 ? void 0 : V.filter(function(U) {
                return e.targetKeys.indexOf(U) > -1
            })) || []
        }, {
            immediate: !0
        });
        var h = function(V, U) {
            var X = {
                notFoundContent: U("Transfer")
            }
              , Y = Dn(i, e, "notFoundContent");
            return Y && (X.notFoundContent = Y),
            e.searchPlaceholder !== void 0 && (X.searchPlaceholder = e.searchPlaceholder),
            I(I(I({}, V), X), e.locale)
        }
          , p = function(V) {
            var U = e.targetKeys
              , X = U === void 0 ? [] : U
              , Y = e.dataSource
              , te = Y === void 0 ? [] : Y
              , ne = V === "right" ? f.value : d.value
              , ie = ne.filter(function(F) {
                return !te.some(function(H) {
                    return !!(F === H.key && H.disabled)
                })
            })
              , ae = V === "right" ? ie.concat(X) : X.filter(function(F) {
                return ie.indexOf(F) === -1
            })
              , q = V === "right" ? "left" : "right";
            V === "right" ? f.value = [] : d.value = [],
            r("update:targetKeys", ae),
            C(q, []),
            r("change", ae, V, ie),
            v.onFieldChange()
        }
          , g = function() {
            p("left")
        }
          , m = function() {
            p("right")
        }
          , y = function(V, U) {
            C(V, U)
        }
          , b = function(V) {
            return y("left", V)
        }
          , x = function(V) {
            return y("right", V)
        }
          , C = function(V, U) {
            V === "left" ? (e.selectedKeys || (f.value = U),
            r("update:selectedKeys", [].concat($e(U), $e(d.value))),
            r("selectChange", U, _t(d.value))) : (e.selectedKeys || (d.value = U),
            r("update:selectedKeys", [].concat($e(U), $e(f.value))),
            r("selectChange", _t(f.value), U))
        }
          , S = function(V, U) {
            var X = U.target.value;
            r("search", V, X)
        }
          , w = function(V) {
            S("left", V)
        }
          , T = function(V) {
            S("right", V)
        }
          , P = function(V) {
            r("search", V, "")
        }
          , M = function() {
            P("left")
        }
          , A = function() {
            P("right")
        }
          , O = function(V, U, X) {
            var Y = $e(V === "left" ? f.value : d.value)
              , te = Y.indexOf(U);
            te > -1 && Y.splice(te, 1),
            X && Y.push(U),
            C(V, Y)
        }
          , k = function(V, U) {
            return O("left", V, U)
        }
          , D = function(V, U) {
            return O("right", V, U)
        }
          , E = function(V) {
            var U = e.targetKeys
              , X = U === void 0 ? [] : U
              , Y = X.filter(function(te) {
                return !V.includes(te)
            });
            r("update:targetKeys", Y),
            r("change", Y, "left", $e(V))
        }
          , L = function(V, U) {
            r("scroll", V, U)
        }
          , N = function(V) {
            L("left", V)
        }
          , R = function(V) {
            L("right", V)
        }
          , $ = function(V, U) {
            return typeof V == "function" ? V({
                direction: U
            }) : V
        }
          , W = Q([])
          , B = Q([]);
        pt(function() {
            var K = e.dataSource
              , V = e.rowKey
              , U = e.targetKeys
              , X = U === void 0 ? [] : U
              , Y = []
              , te = new Array(X.length);
            K.forEach(function(ne) {
                V && (ne.key = V(ne));
                var ie = X.indexOf(ne.key);
                ie !== -1 ? te[ie] = ne : Y.push(ne)
            }),
            W.value = Y,
            B.value = te
        }),
        o({
            handleSelectChange: C
        });
        var G = function(V) {
            var U, X, Y, te, ne, ie, ae, q = e.disabled, F = e.operations, H = F === void 0 ? [] : F, ee = e.showSearch, re = e.listStyle, ue = e.operationStyle, ve = e.filterOption, fe = e.showSelectAll, ce = e.selectAllLabels, le = ce === void 0 ? [] : ce, oe = e.oneWay, se = e.pagination, xe = e.id, Pe = xe === void 0 ? v.id.value : xe, Fe = a.class, ze = a.style, _e = i.children, me = !_e && se, Ie = s.renderEmpty, Oe = h(V, Ie), Ce = i.footer, pe = e.render || i.render, ye = d.value.length > 0, be = f.value.length > 0, Ae = he(u.value, Fe, (U = {},
            z(U, "".concat(u.value, "-disabled"), q),
            z(U, "".concat(u.value, "-customize-list"), !!_e),
            U)), Re = e.titles, Ne = (X = (Y = Re && Re[0]) !== null && Y !== void 0 ? Y : (te = i.leftTitle) === null || te === void 0 ? void 0 : te.call(i)) !== null && X !== void 0 ? X : (Oe.titles || ["", ""])[0], Se = (ne = (ie = Re && Re[1]) !== null && ie !== void 0 ? ie : (ae = i.rightTitle) === null || ae === void 0 ? void 0 : ae.call(i)) !== null && ne !== void 0 ? ne : (Oe.titles || ["", ""])[1];
            return _("div", {
                class: Ae,
                style: ze,
                id: Pe
            }, [_(_V, I({
                key: "leftList",
                prefixCls: "".concat(u.value, "-list"),
                dataSource: W.value,
                filterOption: ve,
                style: $(re, "left"),
                checkedKeys: f.value,
                handleFilter: w,
                handleClear: M,
                onItemSelect: k,
                onItemSelectAll: b,
                renderItem: pe,
                showSearch: ee,
                renderList: _e,
                onScroll: N,
                disabled: q,
                direction: c.value === "rtl" ? "right" : "left",
                showSelectAll: fe,
                selectAllLabel: le[0] || i.leftSelectAllLabel,
                pagination: me
            }, Oe), {
                titleText: function() {
                    return Ne
                },
                footer: Ce
            }), _(j7e, {
                key: "operation",
                class: "".concat(u.value, "-operation"),
                rightActive: be,
                rightArrowText: H[0],
                moveToRight: m,
                leftActive: ye,
                leftArrowText: H[1],
                moveToLeft: g,
                style: ue,
                disabled: q,
                direction: c.value,
                oneWay: oe
            }, null), _(_V, I({
                key: "rightList",
                prefixCls: "".concat(u.value, "-list"),
                dataSource: B.value,
                filterOption: ve,
                style: $(re, "right"),
                checkedKeys: d.value,
                handleFilter: T,
                handleClear: A,
                onItemSelect: D,
                onItemSelectAll: x,
                onItemRemove: E,
                renderItem: pe,
                showSearch: ee,
                renderList: _e,
                onScroll: R,
                disabled: q,
                direction: c.value === "rtl" ? "left" : "right",
                showSelectAll: fe,
                selectAllLabel: le[1] || i.rightSelectAllLabel,
                showRemove: oe,
                pagination: me
            }, Oe), {
                titleText: function() {
                    return Se
                },
                footer: Ce
            })])
        };
        return function() {
            return _(ch, {
                componentName: "Transfer",
                defaultLocale: yo.Transfer,
                children: G
            }, null)
        }
    }
});
const K7e = Jn(G7e);
function U7e(t) {
    return Array.isArray(t) ? t : t !== void 0 ? [t] : []
}
function Y7e(t) {
    var e = t || {}
      , n = e.label
      , r = e.value
      , a = e.children
      , i = r || "value";
    return {
        _title: n ? [n] : ["title", "label"],
        value: i,
        key: i,
        children: a || "children"
    }
}
function AA(t) {
    return t.disabled || t.disableCheckbox || t.checkable === !1
}
function q7e(t, e) {
    var n = [];
    function r(a) {
        a.forEach(function(i) {
            n.push(i[e.value]);
            var o = i[e.children];
            o && r(o)
        })
    }
    return r(t),
    n
}
function PV(t) {
    return t == null
}
var zne = Symbol("TreeSelectContextPropsKey");
function X7e(t) {
    return It(zne, t)
}
function Z7e() {
    return vt(zne, {})
}
var Q7e = {
    width: 0,
    height: 0,
    display: "flex",
    overflow: "hidden",
    opacity: 0,
    border: 0,
    padding: 0,
    margin: 0
};
const J7e = de({
    compatConfig: {
        MODE: 3
    },
    name: "OptionList",
    inheritAttrs: !1,
    slots: ["notFoundContent", "menuItemSelectedIcon"],
    setup: function(e, n) {
        var r = n.slots
          , a = n.expose
          , i = Sm()
          , o = XC()
          , l = Z7e()
          , s = Q()
          , u = CD(function() {
            return l.treeData
        }, [function() {
            return i.open
        }
        , function() {
            return l.treeData
        }
        ], function(S) {
            return S[0]
        })
          , c = j(function() {
            var S = o.checkable
              , w = o.halfCheckedKeys
              , T = o.checkedKeys;
            return S ? {
                checked: T,
                halfChecked: w
            } : null
        });
        Te(function() {
            return i.open
        }, function() {
            yt(function() {
                if (i.open && !i.multiple && o.checkedKeys.length) {
                    var S;
                    (S = s.value) === null || S === void 0 || S.scrollTo({
                        key: o.checkedKeys[0]
                    })
                }
            })
        }, {
            immediate: !0,
            flush: "post"
        });
        var f = j(function() {
            return String(i.searchValue).toLowerCase()
        })
          , d = function(w) {
            return f.value ? String(w[o.treeNodeFilterProp]).toLowerCase().includes(f.value) : !1
        }
          , v = Mt(o.treeDefaultExpandedKeys)
          , h = Mt(null);
        Te(function() {
            return i.searchValue
        }, function() {
            i.searchValue && (h.value = q7e(_t(l.treeData), _t(l.fieldNames)))
        }, {
            immediate: !0
        });
        var p = j(function() {
            return o.treeExpandedKeys ? o.treeExpandedKeys.slice() : i.searchValue ? h.value : v.value
        })
          , g = function(w) {
            var T;
            v.value = w,
            h.value = w,
            (T = o.onTreeExpand) === null || T === void 0 || T.call(o, w)
        }
          , m = function(w) {
            w.preventDefault()
        }
          , y = function(w, T) {
            var P, M = T.node, A = o.checkable, O = o.checkedKeys;
            if (!(A && AA(M)) && ((P = l.onSelect) === null || P === void 0 || P.call(l, M.key, {
                selected: !O.includes(M.key)
            }),
            !i.multiple)) {
                var k;
                (k = i.toggleOpen) === null || k === void 0 || k.call(i, !1)
            }
        }
          , b = Q(null)
          , x = j(function() {
            return o.keyEntities[b.value]
        })
          , C = function(w) {
            b.value = w
        };
        return a({
            scrollTo: function() {
                for (var w, T, P = arguments.length, M = new Array(P), A = 0; A < P; A++)
                    M[A] = arguments[A];
                return (w = s.value) === null || w === void 0 || (T = w.scrollTo) === null || T === void 0 ? void 0 : T.call.apply(T, [w].concat(M))
            },
            onKeydown: function(w) {
                var T, P = w.which;
                switch (P) {
                case Ee.UP:
                case Ee.DOWN:
                case Ee.LEFT:
                case Ee.RIGHT:
                    (T = s.value) === null || T === void 0 || T.onKeydown(w);
                    break;
                case Ee.ENTER:
                    {
                        if (x.value) {
                            var M = x.value.node || {}
                              , A = M.selectable
                              , O = M.value;
                            A !== !1 && y(null, {
                                node: {
                                    key: b.value
                                },
                                selected: !o.checkedKeys.includes(O)
                            })
                        }
                        break
                    }
                case Ee.ESC:
                    i.toggleOpen(!1)
                }
            },
            onKeyup: function() {}
        }),
        function() {
            var S, w = i.prefixCls, T = i.multiple, P = i.searchValue, M = i.open, A = i.notFoundContent, O = A === void 0 ? (S = r.notFoundContent) === null || S === void 0 ? void 0 : S.call(r) : A, k = l.listHeight, D = l.listItemHeight, E = l.virtual, L = o.checkable, N = o.treeDefaultExpandAll, R = o.treeIcon, $ = o.showTreeIcon, W = o.switcherIcon, B = o.treeLine, G = o.loadData, K = o.treeLoadedKeys, V = o.treeMotion, U = o.onTreeLoad, X = o.checkedKeys;
            if (u.value.length === 0)
                return _("div", {
                    role: "listbox",
                    class: "".concat(w, "-empty"),
                    onMousedown: m
                }, [O]);
            var Y = {
                fieldNames: l.fieldNames
            };
            return K && (Y.loadedKeys = K),
            p.value && (Y.expandedKeys = p.value),
            _("div", {
                onMousedown: m
            }, [x.value && M && _("span", {
                style: Q7e,
                "aria-live": "assertive"
            }, [x.value.node.value]), _(kne, I(I({
                ref: s,
                focusable: !1,
                prefixCls: "".concat(w, "-tree"),
                treeData: u.value,
                height: k,
                itemHeight: D,
                virtual: E,
                multiple: T,
                icon: R,
                showIcon: $,
                switcherIcon: W,
                showLine: B,
                loadData: P ? null : G,
                motion: V,
                activeKey: b.value,
                checkable: L,
                checkStrictly: !0,
                checkedKeys: c.value,
                selectedKeys: L ? [] : X,
                defaultExpandAll: N
            }, Y), {}, {
                onActiveChange: C,
                onSelect: y,
                onCheck: y,
                onExpand: g,
                onLoad: U,
                filterTreeNode: d
            }), I(I({}, r), {}, {
                checkable: o.customSlots.treeCheckable
            }))])
        }
    }
});
var e$e = "SHOW_ALL"
  , Hne = "SHOW_PARENT"
  , kE = "SHOW_CHILD";
function MV(t, e, n, r) {
    var a = new Set(t);
    return e === kE ? t.filter(function(i) {
        var o = n[i];
        return !(o && o.children && o.children.some(function(l) {
            var s = l.node;
            return a.has(s[r.value])
        }) && o.children.every(function(l) {
            var s = l.node;
            return AA(s) || a.has(s[r.value])
        }))
    }) : e === Hne ? t.filter(function(i) {
        var o = n[i]
          , l = o ? o.parent : null;
        return !(l && !AA(l.node) && a.has(l.key))
    }) : t
}
var Aw = function() {
    return null
};
Aw.inheritAttrs = !1;
Aw.displayName = "ATreeSelectNode";
Aw.isTreeSelectNode = !0;
const OE = Aw;
var t$e = ["title", "switcherIcon"];
function n$e(t) {
    return t && t.type && t.type.isTreeSelectNode
}
function r$e(t) {
    function e() {
        var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
        return ar(n).map(function(r) {
            var a, i, o;
            if (!n$e(r))
                return null;
            for (var l = r.children || {}, s = r.key, u = {}, c = 0, f = Object.entries(r.props); c < f.length; c++) {
                var d = De(f[c], 2)
                  , v = d[0]
                  , h = d[1];
                u[Va(v)] = h
            }
            var p = u.isLeaf
              , g = u.checkable
              , m = u.selectable
              , y = u.disabled
              , b = u.disableCheckbox
              , x = {
                isLeaf: p || p === "" || void 0,
                checkable: g || g === "" || void 0,
                selectable: m || m === "" || void 0,
                disabled: y || y === "" || void 0,
                disableCheckbox: b || b === "" || void 0
            }
              , C = I(I({}, u), x)
              , S = u.title
              , w = S === void 0 ? (a = l.title) === null || a === void 0 ? void 0 : a.call(l, C) : S
              , T = u.switcherIcon
              , P = T === void 0 ? (i = l.switcherIcon) === null || i === void 0 ? void 0 : i.call(l, C) : T
              , M = tt(u, t$e)
              , A = (o = l.default) === null || o === void 0 ? void 0 : o.call(l)
              , O = I(I({}, M), {}, {
                title: w,
                switcherIcon: P,
                key: s,
                isLeaf: p
            }, x)
              , k = e(A);
            return k.length && (O.children = k),
            O
        })
    }
    return e(t)
}
function IA(t) {
    if (!t)
        return t;
    var e = I({}, t);
    return "props"in e || Object.defineProperty(e, "props", {
        get: function() {
            return e
        }
    }),
    e
}
function a$e(t, e, n, r, a, i) {
    var o = null
      , l = null;
    function s() {
        function u(c) {
            var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0"
              , d = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
            return c.map(function(v, h) {
                var p = "".concat(f, "-").concat(h)
                  , g = v[i.value]
                  , m = n.includes(g)
                  , y = u(v[i.children] || [], p, m)
                  , b = _(OE, v, {
                    default: function() {
                        return [y.map(function(S) {
                            return S.node
                        })]
                    }
                });
                if (e === g && (o = b),
                m) {
                    var x = {
                        pos: p,
                        node: b,
                        children: y
                    };
                    return d || l.push(x),
                    x
                }
                return null
            }).filter(function(v) {
                return v
            })
        }
        l || (l = [],
        u(r),
        l.sort(function(c, f) {
            var d = c.node.props.value
              , v = f.node.props.value
              , h = n.indexOf(d)
              , p = n.indexOf(v);
            return h - p
        }))
    }
    Object.defineProperty(t, "triggerNode", {
        get: function() {
            return s(),
            o
        }
    }),
    Object.defineProperty(t, "allCheckedNodes", {
        get: function() {
            return s(),
            a ? l : l.map(function(c) {
                var f = c.node;
                return f
            })
        }
    })
}
function i$e(t, e) {
    var n = e.id
      , r = e.pId
      , a = e.rootPId
      , i = {}
      , o = []
      , l = t.map(function(s) {
        var u = I({}, s)
          , c = u[n];
        return i[c] = u,
        u.key = u.key || c,
        u
    });
    return l.forEach(function(s) {
        var u = s[r]
          , c = i[u];
        c && (c.children = c.children || [],
        c.children.push(s)),
        (u === a || !c && a === null) && o.push(s)
    }),
    o
}
function o$e(t, e, n) {
    var r = Mt();
    return Te([n, t, e], function() {
        var a = n.value;
        t.value ? r.value = n.value ? i$e(_t(t.value), I({
            id: "id",
            pId: "pId",
            rootPId: null
        }, a !== !0 ? a : {})) : _t(t.value).slice() : r.value = r$e(_t(e.value))
    }, {
        immediate: !0,
        deep: !0
    }),
    r
}
const l$e = function(t) {
    var e = Mt({
        valueLabels: new Map
    })
      , n = Mt();
    Te(t, function() {
        n.value = _t(t.value)
    }, {
        immediate: !0
    });
    var r = j(function() {
        var a = e.value.valueLabels
          , i = new Map
          , o = n.value.map(function(l) {
            var s, u = l.value, c = (s = l.label) !== null && s !== void 0 ? s : a.get(u);
            return i.set(u, c),
            I(I({}, l), {}, {
                label: c
            })
        });
        return e.value.valueLabels = i,
        o
    });
    return [r]
}
  , s$e = function(t, e) {
    var n = Mt(new Map)
      , r = Mt({});
    return pt(function() {
        var a = e.value
          , i = Am(t.value, {
            fieldNames: a,
            initWrapper: function(l) {
                return I(I({}, l), {}, {
                    valueEntities: new Map
                })
            },
            processEntity: function(l, s) {
                var u = l.node[a.value];
                s.valueEntities.set(u, l)
            }
        });
        n.value = i.valueEntities,
        r.value = i.keyEntities
    }),
    {
        valueEntities: n,
        keyEntities: r
    }
}
  , u$e = function(t, e, n, r, a, i) {
    var o = Mt([])
      , l = Mt([]);
    return pt(function() {
        var s = t.value.map(function(d) {
            var v = d.value;
            return v
        })
          , u = e.value.map(function(d) {
            var v = d.value;
            return v
        })
          , c = s.filter(function(d) {
            return !r.value[d]
        });
        if (n.value) {
            var f = Li(s, !0, r.value, a.value, i.value);
            s = f.checkedKeys,
            u = f.halfCheckedKeys
        }
        o.value = Array.from(new Set([].concat($e(c), $e(s)))),
        l.value = u
    }),
    [o, l]
}
  , c$e = function(t, e, n) {
    var r = n.treeNodeFilterProp
      , a = n.filterTreeNode
      , i = n.fieldNames;
    return j(function() {
        var o = i.value.children
          , l = e.value
          , s = r == null ? void 0 : r.value;
        if (!l || a.value === !1)
            return t.value;
        var u;
        if (typeof a.value == "function")
            u = a.value;
        else {
            var c = l.toUpperCase();
            u = function(v, h) {
                var p = h[s];
                return String(p).toUpperCase().includes(c)
            }
        }
        function f(d) {
            for (var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, h = [], p = 0, g = d.length; p < g; p++) {
                var m = d[p]
                  , y = m[o]
                  , b = v || u(l, IA(m))
                  , x = f(y || [], b);
                (b || x.length) && h.push(I(I({}, m), {}, z({}, o, x)))
            }
            return h
        }
        return f(t.value)
    })
};
function jne() {
    return I(I({}, Et(ZC(), ["mode"])), {}, {
        prefixCls: String,
        id: String,
        value: {
            type: [String, Number, Object, Array]
        },
        defaultValue: {
            type: [String, Number, Object, Array]
        },
        onChange: {
            type: Function
        },
        searchValue: String,
        inputValue: String,
        onSearch: {
            type: Function
        },
        autoClearSearchValue: {
            type: Boolean,
            default: void 0
        },
        filterTreeNode: {
            type: [Boolean, Function],
            default: void 0
        },
        treeNodeFilterProp: String,
        onSelect: Function,
        onDeselect: Function,
        showCheckedStrategy: {
            type: String
        },
        treeNodeLabelProp: String,
        fieldNames: {
            type: Object
        },
        multiple: {
            type: Boolean,
            default: void 0
        },
        treeCheckable: {
            type: Boolean,
            default: void 0
        },
        treeCheckStrictly: {
            type: Boolean,
            default: void 0
        },
        labelInValue: {
            type: Boolean,
            default: void 0
        },
        treeData: {
            type: Array
        },
        treeDataSimpleMode: {
            type: [Boolean, Object],
            default: void 0
        },
        loadData: {
            type: Function
        },
        treeLoadedKeys: {
            type: Array
        },
        onTreeLoad: {
            type: Function
        },
        treeDefaultExpandAll: {
            type: Boolean,
            default: void 0
        },
        treeExpandedKeys: {
            type: Array
        },
        treeDefaultExpandedKeys: {
            type: Array
        },
        onTreeExpand: {
            type: Function
        },
        virtual: {
            type: Boolean,
            default: void 0
        },
        listHeight: Number,
        listItemHeight: Number,
        onDropdownVisibleChange: {
            type: Function
        },
        treeLine: {
            type: [Boolean, Object],
            default: void 0
        },
        treeIcon: J.any,
        showTreeIcon: {
            type: Boolean,
            default: void 0
        },
        switcherIcon: J.any,
        treeMotion: J.any,
        children: Array,
        showArrow: {
            type: Boolean,
            default: void 0
        },
        showSearch: {
            type: Boolean,
            default: void 0
        },
        open: {
            type: Boolean,
            default: void 0
        },
        defaultOpen: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        placeholder: J.any,
        maxTagPlaceholder: {
            type: Function
        },
        dropdownPopupAlign: J.any,
        customSlots: Object
    })
}
function f$e(t) {
    return !t || We(t) !== "object"
}
const d$e = de({
    compatConfig: {
        MODE: 3
    },
    name: "TreeSelect",
    inheritAttrs: !1,
    props: $t(jne(), {
        treeNodeFilterProp: "value",
        autoClearSearchValue: !0,
        showCheckedStrategy: kE,
        listHeight: 200,
        listItemHeight: 20,
        prefixCls: "vc-tree-select"
    }),
    setup: function(e, n) {
        var r = n.attrs
          , a = n.expose
          , i = n.slots
          , o = wD(at(e, "id"))
          , l = j(function() {
            return e.treeCheckable && !e.treeCheckStrictly
        })
          , s = j(function() {
            return e.treeCheckable || e.treeCheckStrictly
        })
          , u = j(function() {
            return e.treeCheckStrictly || e.labelInValue
        })
          , c = j(function() {
            return s.value || e.multiple
        })
          , f = j(function() {
            return Y7e(e.fieldNames)
        })
          , d = zn("", {
            value: j(function() {
                return e.searchValue !== void 0 ? e.searchValue : e.inputValue
            }),
            postState: function(pe) {
                return pe || ""
            }
        })
          , v = De(d, 2)
          , h = v[0]
          , p = v[1]
          , g = function(pe) {
            var ye;
            p(pe),
            (ye = e.onSearch) === null || ye === void 0 || ye.call(e, pe)
        }
          , m = o$e(at(e, "treeData"), at(e, "children"), at(e, "treeDataSimpleMode"))
          , y = s$e(m, f)
          , b = y.keyEntities
          , x = y.valueEntities
          , C = function(pe) {
            var ye = []
              , be = [];
            return pe.forEach(function(Ae) {
                x.value.has(Ae) ? be.push(Ae) : ye.push(Ae)
            }),
            {
                missingRawValues: ye,
                existRawValues: be
            }
        }
          , S = c$e(m, h, {
            fieldNames: f,
            treeNodeFilterProp: at(e, "treeNodeFilterProp"),
            filterTreeNode: at(e, "filterTreeNode")
        })
          , w = function(pe) {
            if (pe) {
                if (e.treeNodeLabelProp)
                    return pe[e.treeNodeLabelProp];
                for (var ye = f.value._title, be = 0; be < ye.length; be += 1) {
                    var Ae = pe[ye[be]];
                    if (Ae !== void 0)
                        return Ae
                }
            }
        }
          , T = function(pe) {
            var ye = U7e(pe);
            return ye.map(function(be) {
                return f$e(be) ? {
                    value: be
                } : be
            })
        }
          , P = function(pe) {
            var ye = T(pe);
            return ye.map(function(be) {
                var Ae = be.label, Re = be.value, Ne = be.halfChecked, Se, we = x.value.get(Re);
                if (we) {
                    var Ve;
                    Ae = (Ve = Ae) !== null && Ve !== void 0 ? Ve : w(we.node),
                    Se = we.node.disabled
                }
                return {
                    label: Ae,
                    value: Re,
                    halfChecked: Ne,
                    disabled: Se
                }
            })
        }
          , M = zn(e.defaultValue, {
            value: at(e, "value")
        })
          , A = De(M, 2)
          , O = A[0]
          , k = A[1]
          , D = j(function() {
            return T(O.value)
        })
          , E = Mt([])
          , L = Mt([]);
        pt(function() {
            var Ce = []
              , pe = [];
            D.value.forEach(function(ye) {
                ye.halfChecked ? pe.push(ye) : Ce.push(ye)
            }),
            E.value = Ce,
            L.value = pe
        });
        var N = j(function() {
            return E.value.map(function(Ce) {
                return Ce.value
            })
        })
          , R = hw(b)
          , $ = R.maxLevel
          , W = R.levelEntities
          , B = u$e(E, L, l, b, $, W)
          , G = De(B, 2)
          , K = G[0]
          , V = G[1]
          , U = j(function() {
            var Ce = MV(K.value, e.showCheckedStrategy, b.value, f.value)
              , pe = Ce.map(function(Re) {
                var Ne, Se, we;
                return (Ne = (Se = b.value[Re]) === null || Se === void 0 || (we = Se.node) === null || we === void 0 ? void 0 : we[f.value.value]) !== null && Ne !== void 0 ? Ne : Re
            })
              , ye = pe.map(function(Re) {
                var Ne = E.value.find(function(Se) {
                    return Se.value === Re
                });
                return {
                    value: Re,
                    label: Ne == null ? void 0 : Ne.label
                }
            })
              , be = P(ye)
              , Ae = be[0];
            return !c.value && Ae && PV(Ae.value) && PV(Ae.label) ? [] : be.map(function(Re) {
                var Ne;
                return I(I({}, Re), {}, {
                    label: (Ne = Re.label) !== null && Ne !== void 0 ? Ne : Re.value
                })
            })
        })
          , X = l$e(U)
          , Y = De(X, 1)
          , te = Y[0]
          , ne = function(pe, ye, be) {
            var Ae = P(pe);
            if (k(Ae),
            e.autoClearSearchValue && p(""),
            e.onChange) {
                var Re = pe;
                if (l.value) {
                    var Ne = MV(pe, e.showCheckedStrategy, b.value, f.value);
                    Re = Ne.map(function(ht) {
                        var ft = x.value.get(ht);
                        return ft ? ft.node[f.value.value] : ht
                    })
                }
                var Se = ye || {
                    triggerValue: void 0,
                    selected: void 0
                }
                  , we = Se.triggerValue
                  , Ve = Se.selected
                  , Ye = Re;
                if (e.treeCheckStrictly) {
                    var Ue = L.value.filter(function(ht) {
                        return !Re.includes(ht.value)
                    });
                    Ye = [].concat($e(Ye), $e(Ue))
                }
                var Ke = P(Ye)
                  , Xe = {
                    preValue: E.value,
                    triggerValue: we
                }
                  , it = !0;
                (e.treeCheckStrictly || be === "selection" && !Ve) && (it = !1),
                a$e(Xe, we, pe, m.value, it, f.value),
                s.value ? Xe.checked = Ve : Xe.selected = Ve;
                var nt = u.value ? Ke : Ke.map(function(ht) {
                    return ht.value
                });
                e.onChange(c.value ? nt : nt[0], u.value ? null : Ke.map(function(ht) {
                    return ht.label
                }), Xe)
            }
        }
          , ie = function(pe, ye) {
            var be, Ae = ye.selected, Re = ye.source, Ne = _t(b.value), Se = _t(x.value), we = Ne[pe], Ve = we == null ? void 0 : we.node, Ye = (be = Ve == null ? void 0 : Ve[f.value.value]) !== null && be !== void 0 ? be : pe;
            if (!c.value)
                ne([Ye], {
                    selected: !0,
                    triggerValue: Ye
                }, "option");
            else {
                var Ue = Ae ? [].concat($e(N.value), [Ye]) : K.value.filter(function(wt) {
                    return wt !== Ye
                });
                if (l.value) {
                    var Ke = C(Ue), Xe = Ke.missingRawValues, it = Ke.existRawValues, nt = it.map(function(wt) {
                        return Se.get(wt).key
                    }), ht;
                    if (Ae) {
                        var ft = Li(nt, !0, Ne, $.value, W.value);
                        ht = ft.checkedKeys
                    } else {
                        var Zt = Li(nt, {
                            checked: !1,
                            halfCheckedKeys: V.value
                        }, Ne, $.value, W.value);
                        ht = Zt.checkedKeys
                    }
                    Ue = [].concat($e(Xe), $e(ht.map(function(wt) {
                        return Ne[wt].node[f.value.value]
                    })))
                }
                ne(Ue, {
                    selected: Ae,
                    triggerValue: Ye
                }, Re || "option")
            }
            if (Ae || !c.value) {
                var Tt;
                (Tt = e.onSelect) === null || Tt === void 0 || Tt.call(e, Ye, IA(Ve))
            } else {
                var bt;
                (bt = e.onDeselect) === null || bt === void 0 || bt.call(e, Ye, IA(Ve))
            }
        }
          , ae = function(pe) {
            if (e.onDropdownVisibleChange) {
                var ye = {};
                Object.defineProperty(ye, "documentClickClose", {
                    get: function() {
                        return !1
                    }
                }),
                e.onDropdownVisibleChange(pe, ye)
            }
        }
          , q = function(pe, ye) {
            var be = pe.map(function(Ae) {
                return Ae.value
            });
            if (ye.type === "clear") {
                ne(be, {}, "selection");
                return
            }
            ye.values.length && ie(ye.values[0].value, {
                selected: !1,
                source: "selection"
            })
        }
          , F = vu(e)
          , H = F.treeNodeFilterProp
          , ee = F.loadData
          , re = F.treeLoadedKeys
          , ue = F.onTreeLoad
          , ve = F.treeDefaultExpandAll
          , fe = F.treeExpandedKeys
          , ce = F.treeDefaultExpandedKeys
          , le = F.onTreeExpand
          , oe = F.virtual
          , se = F.listHeight
          , xe = F.listItemHeight
          , Pe = F.treeLine
          , Fe = F.treeIcon
          , ze = F.showTreeIcon
          , _e = F.switcherIcon
          , me = F.treeMotion
          , Ie = F.customSlots;
        c2e(Lx({
            checkable: s,
            loadData: ee,
            treeLoadedKeys: re,
            onTreeLoad: ue,
            checkedKeys: K,
            halfCheckedKeys: V,
            treeDefaultExpandAll: ve,
            treeExpandedKeys: fe,
            treeDefaultExpandedKeys: ce,
            onTreeExpand: le,
            treeIcon: Fe,
            treeMotion: me,
            showTreeIcon: ze,
            switcherIcon: _e,
            treeLine: Pe,
            treeNodeFilterProp: H,
            keyEntities: b,
            customSlots: Ie
        })),
        X7e(Lx({
            virtual: oe,
            listHeight: se,
            listItemHeight: xe,
            treeData: S,
            fieldNames: f,
            onSelect: ie
        }));
        var Oe = Q();
        return a({
            focus: function() {
                var pe;
                (pe = Oe.value) === null || pe === void 0 || pe.focus()
            },
            blur: function() {
                var pe;
                (pe = Oe.value) === null || pe === void 0 || pe.blur()
            },
            scrollTo: function(pe) {
                var ye;
                (ye = Oe.value) === null || ye === void 0 || ye.scrollTo(pe)
            }
        }),
        function() {
            var Ce, pe = Et(e, ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "virtual", "listHeight", "listItemHeight", "onDropdownVisibleChange", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"]);
            return _(SD, I(I(I({
                ref: Oe
            }, r), pe), {}, {
                id: o,
                prefixCls: e.prefixCls,
                mode: c.value ? "multiple" : void 0,
                displayValues: te.value,
                onDisplayValuesChange: q,
                searchValue: h.value,
                onSearch: g,
                OptionList: J7e,
                emptyOptions: !m.value.length,
                onDropdownVisibleChange: ae,
                tagRender: e.tagRender || i.tagRender,
                dropdownMatchSelectWidth: (Ce = e.dropdownMatchSelectWidth) !== null && Ce !== void 0 ? Ce : !0
            }), i)
        }
    }
});
var AV = function(e, n, r) {
    return r !== void 0 ? r : "".concat(e, "-").concat(n)
};
function v$e() {
    return I(I({}, Et(jne(), ["showTreeIcon", "treeMotion", "inputIcon", "getInputElement", "treeLine", "customSlots"])), {}, {
        suffixIcon: J.any,
        size: {
            type: String
        },
        bordered: {
            type: Boolean,
            default: void 0
        },
        treeLine: {
            type: [Boolean, Object],
            default: void 0
        },
        replaceFields: {
            type: Object
        },
        "onUpdate:value": {
            type: Function
        },
        "onUpdate:treeExpandedKeys": {
            type: Function
        },
        "onUpdate:searchValue": {
            type: Function
        }
    })
}
var zT = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATreeSelect",
    inheritAttrs: !1,
    props: $t(v$e(), {
        choiceTransitionName: "",
        listHeight: 256,
        treeIcon: !1,
        listItemHeight: 26,
        bordered: !0
    }),
    slots: ["title", "titleRender", "placeholder", "maxTagPlaceholder", "treeIcon", "switcherIcon", "notFoundContent"],
    setup: function(e, n) {
        var r = n.attrs
          , a = n.slots
          , i = n.expose
          , o = n.emit;
        e.treeData === void 0 && a.default,
        pt(function() {
            sn(e.multiple !== !1 || !e.treeCheckable, "TreeSelect", "`multiple` will always be `true` when `treeCheckable` is true"),
            sn(e.replaceFields === void 0, "TreeSelect", "`replaceFields` is deprecated, please use fieldNames instead")
        });
        var l = br()
          , s = je("select", e)
          , u = s.prefixCls
          , c = s.renderEmpty
          , f = s.direction
          , d = s.virtual
          , v = s.dropdownMatchSelectWidth
          , h = s.size
          , p = s.getPopupContainer
          , g = s.getPrefixCls
          , m = j(function() {
            return g()
        })
          , y = j(function() {
            return AV(m.value, "slide-up", e.transitionName)
        })
          , b = j(function() {
            return AV(m.value, "", e.choiceTransitionName)
        })
          , x = j(function() {
            return g("select-tree", e.prefixCls)
        })
          , C = j(function() {
            return g("tree-select", e.prefixCls)
        })
          , S = j(function() {
            return he(e.dropdownClassName, "".concat(C.value, "-dropdown"), z({}, "".concat(C.value, "-dropdown-rtl"), f.value === "rtl"))
        })
          , w = j(function() {
            return !!(e.treeCheckable || e.multiple)
        })
          , T = Q();
        i({
            focus: function() {
                var D, E;
                (D = (E = T.value).focus) === null || D === void 0 || D.call(E)
            },
            blur: function() {
                var D, E;
                (D = (E = T.value).blur) === null || D === void 0 || D.call(E)
            }
        });
        var P = function() {
            for (var D = arguments.length, E = new Array(D), L = 0; L < D; L++)
                E[L] = arguments[L];
            o("update:value", E[0]),
            o.apply(void 0, ["change"].concat(E)),
            l.onFieldChange()
        }
          , M = function(D) {
            o("update:treeExpandedKeys", D),
            o("treeExpand", D)
        }
          , A = function(D) {
            o("update:searchValue", D),
            o("search", D)
        }
          , O = function(D) {
            o("blur", D),
            l.onFieldBlur()
        };
        return function() {
            var k, D, E, L = e.notFoundContent, N = L === void 0 ? (k = a.notFoundContent) === null || k === void 0 ? void 0 : k.call(a) : L, R = e.prefixCls, $ = e.bordered, W = e.listHeight, B = e.listItemHeight, G = e.multiple, K = e.treeIcon, V = e.treeLine, U = e.switcherIcon, X = U === void 0 ? (D = a.switcherIcon) === null || D === void 0 ? void 0 : D.call(a) : U, Y = e.fieldNames, te = Y === void 0 ? e.replaceFields : Y, ne = e.id, ie = ne === void 0 ? l.id.value : ne, ae = ID(I(I({}, e), {}, {
                multiple: w.value,
                prefixCls: u.value
            }), a), q = ae.suffixIcon, F = ae.removeIcon, H = ae.clearIcon, ee;
            N !== void 0 ? ee = N : ee = c.value("Select");
            var re = Et(e, ["suffixIcon", "itemIcon", "removeIcon", "clearIcon", "switcherIcon", "bordered", "onUpdate:value", "onUpdate:treeExpandedKeys", "onUpdate:searchValue"])
              , ue = he(!R && C.value, (E = {},
            z(E, "".concat(u.value, "-lg"), h.value === "large"),
            z(E, "".concat(u.value, "-sm"), h.value === "small"),
            z(E, "".concat(u.value, "-rtl"), f.value === "rtl"),
            z(E, "".concat(u.value, "-borderless"), !$),
            E), r.class)
              , ve = {};
            return e.treeData === void 0 && a.default && (ve.children = bn(a.default())),
            _(d$e, I(I(I(I({}, r), re), {}, {
                virtual: d.value,
                dropdownMatchSelectWidth: v.value,
                id: ie,
                fieldNames: te,
                ref: T,
                prefixCls: u.value,
                class: ue,
                listHeight: W,
                listItemHeight: B,
                treeLine: !!V,
                inputIcon: q,
                multiple: G,
                removeIcon: F,
                clearIcon: H,
                switcherIcon: function(ce) {
                    return Dne(x.value, X, V, ce)
                },
                showTreeIcon: K,
                notFoundContent: ee,
                getPopupContainer: p.value,
                treeMotion: null,
                dropdownClassName: S.value,
                choiceTransitionName: b.value,
                onChange: P,
                onBlur: O,
                onSearch: A,
                onTreeExpand: M
            }, ve), {}, {
                transitionName: y.value,
                customSlots: I(I({}, a), {}, {
                    treeCheckable: function() {
                        return _("span", {
                            class: "".concat(u.value, "-tree-checkbox-inner")
                        }, null)
                    }
                }),
                maxTagPlaceholder: e.maxTagPlaceholder || a.maxTagPlaceholder
            }), I(I({}, a), {}, {
                treeCheckable: function() {
                    return _("span", {
                        class: "".concat(u.value, "-tree-checkbox-inner")
                    }, null)
                }
            }))
        }
    }
})
  , kA = OE;
const h$e = Wt(zT, {
    TreeNode: OE,
    SHOW_ALL: e$e,
    SHOW_PARENT: Hne,
    SHOW_CHILD: kE,
    install: function(e) {
        return e.component(zT.name, zT),
        e.component(kA.displayName, kA),
        e
    }
});
var HT = function() {
    return {
        format: String,
        showNow: {
            type: Boolean,
            default: void 0
        },
        showHour: {
            type: Boolean,
            default: void 0
        },
        showMinute: {
            type: Boolean,
            default: void 0
        },
        showSecond: {
            type: Boolean,
            default: void 0
        },
        use12Hours: {
            type: Boolean,
            default: void 0
        },
        hourStep: Number,
        minuteStep: Number,
        secondStep: Number,
        hideDisabledOptions: {
            type: Boolean,
            default: void 0
        },
        popupClassName: String
    }
};
function p$e(t) {
    var e = fte(t, I(I({}, HT()), {}, {
        order: {
            type: Boolean,
            default: !0
        }
    }))
      , n = e.TimePicker
      , r = e.RangePicker
      , a = de({
        name: "ATimePicker",
        inheritAttrs: !1,
        props: I(I(I(I({}, rS()), ste()), HT()), {}, {
            addon: {
                type: Function
            }
        }),
        slot: ["addon", "renderExtraFooter", "suffixIcon", "clearIcon"],
        setup: function(l, s) {
            var u = s.slots
              , c = s.expose
              , f = s.emit
              , d = s.attrs
              , v = br();
            sn(!(u.addon || l.addon), "TimePicker", "`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");
            var h = Q();
            c({
                focus: function() {
                    var C;
                    (C = h.value) === null || C === void 0 || C.focus()
                },
                blur: function() {
                    var C;
                    (C = h.value) === null || C === void 0 || C.blur()
                }
            });
            var p = function(C, S) {
                f("update:value", C),
                f("change", C, S),
                v.onFieldChange()
            }
              , g = function(C) {
                f("update:open", C),
                f("openChange", C)
            }
              , m = function(C) {
                f("focus", C)
            }
              , y = function(C) {
                f("blur", C),
                v.onFieldBlur()
            }
              , b = function(C) {
                f("ok", C)
            };
            return function() {
                var x = l.id
                  , C = x === void 0 ? v.id.value : x;
                return _(n, I(I(I({}, d), Et(l, ["onUpdate:value", "onUpdate:open"])), {}, {
                    id: C,
                    dropdownClassName: l.popupClassName,
                    mode: void 0,
                    ref: h,
                    renderExtraFooter: l.addon || u.addon || l.renderExtraFooter || u.renderExtraFooter,
                    onChange: p,
                    onOpenChange: g,
                    onFocus: m,
                    onBlur: y,
                    onOk: b
                }), u)
            }
        }
    })
      , i = de({
        name: "ATimeRangePicker",
        inheritAttrs: !1,
        props: I(I(I(I({}, rS()), ute()), HT()), {}, {
            order: {
                type: Boolean,
                default: !0
            }
        }),
        slot: ["renderExtraFooter", "suffixIcon", "clearIcon"],
        setup: function(l, s) {
            var u = s.slots
              , c = s.expose
              , f = s.emit
              , d = s.attrs
              , v = Q()
              , h = br();
            c({
                focus: function() {
                    var w;
                    (w = v.value) === null || w === void 0 || w.focus()
                },
                blur: function() {
                    var w;
                    (w = v.value) === null || w === void 0 || w.blur()
                }
            });
            var p = function(w, T) {
                f("update:value", w),
                f("change", w, T),
                h.onFieldChange()
            }
              , g = function(w) {
                f("update:open", w),
                f("openChange", w)
            }
              , m = function(w) {
                f("focus", w)
            }
              , y = function(w) {
                f("blur", w),
                h.onFieldBlur()
            }
              , b = function(w, T) {
                f("panelChange", w, T)
            }
              , x = function(w) {
                f("ok", w)
            }
              , C = function(w, T, P) {
                f("calendarChange", w, T, P)
            };
            return function() {
                var S = l.id
                  , w = S === void 0 ? h.id.value : S;
                return _(r, I(I(I({}, d), Et(l, ["onUpdate:open", "onUpdate:value"])), {}, {
                    id: w,
                    dropdownClassName: l.popupClassName,
                    picker: "time",
                    mode: void 0,
                    ref: v,
                    onChange: p,
                    onOpenChange: g,
                    onFocus: m,
                    onBlur: y,
                    onPanelChange: b,
                    onOk: x,
                    onCalendarChange: C
                }), u)
            }
        }
    });
    return {
        TimePicker: a,
        TimeRangePicker: i
    }
}
var Wne = p$e(KD)
  , Qy = Wne.TimePicker
  , Vb = Wne.TimeRangePicker;
const g$e = Wt(Qy, {
    TimePicker: Qy,
    TimeRangePicker: Vb,
    install: function(e) {
        return e.component(Qy.name, Qy),
        e.component(Vb.name, Vb),
        e
    }
});
var m$e = function() {
    return {
        prefixCls: String,
        color: String,
        dot: J.any,
        pending: {
            type: Boolean,
            default: void 0
        },
        position: J.oneOf(Kn("left", "right", "")).def(""),
        label: J.any
    }
};
const w0 = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATimelineItem",
    props: $t(m$e(), {
        color: "blue",
        pending: !1
    }),
    slots: ["dot", "label"],
    setup: function(e, n) {
        var r = n.slots
          , a = je("timeline", e)
          , i = a.prefixCls;
        return function() {
            var o, l, s, u, c, f = e.color, d = f === void 0 ? "" : f, v = e.pending, h = e.label, p = h === void 0 ? (o = r.label) === null || o === void 0 ? void 0 : o.call(r) : h, g = e.dot, m = g === void 0 ? (l = r.dot) === null || l === void 0 ? void 0 : l.call(r) : g, y = he((s = {},
            z(s, "".concat(i.value, "-item"), !0),
            z(s, "".concat(i.value, "-item-pending"), v),
            s)), b = he((u = {},
            z(u, "".concat(i.value, "-item-head"), !0),
            z(u, "".concat(i.value, "-item-head-custom"), m),
            z(u, "".concat(i.value, "-item-head-").concat(d), !0),
            u)), x = /blue|red|green|gray/.test(d || "") ? void 0 : d;
            return _("li", {
                class: y
            }, [p && _("div", {
                class: "".concat(i.value, "-item-label")
            }, [p]), _("div", {
                class: "".concat(i.value, "-item-tail")
            }, null), _("div", {
                class: b,
                style: {
                    borderColor: x,
                    color: x
                }
            }, [m]), _("div", {
                class: "".concat(i.value, "-item-content")
            }, [(c = r.default) === null || c === void 0 ? void 0 : c.call(r)])])
        }
    }
});
var y$e = function() {
    return {
        prefixCls: String,
        pending: J.any,
        pendingDot: J.any,
        reverse: {
            type: Boolean,
            default: void 0
        },
        mode: J.oneOf(Kn("left", "alternate", "right", ""))
    }
};
const Mg = de({
    compatConfig: {
        MODE: 3
    },
    name: "ATimeline",
    props: $t(y$e(), {
        reverse: !1,
        mode: ""
    }),
    slots: ["pending", "pendingDot"],
    setup: function(e, n) {
        var r = n.slots
          , a = je("timeline", e)
          , i = a.prefixCls
          , o = a.direction
          , l = function(u, c) {
            var f = u.props || {};
            return e.mode === "alternate" ? f.position === "right" ? "".concat(i.value, "-item-right") : f.position === "left" || c % 2 === 0 ? "".concat(i.value, "-item-left") : "".concat(i.value, "-item-right") : e.mode === "left" ? "".concat(i.value, "-item-left") : e.mode === "right" || f.position === "right" ? "".concat(i.value, "-item-right") : ""
        };
        return function() {
            var s, u, c, f, d = e.pending, v = d === void 0 ? (s = r.pending) === null || s === void 0 ? void 0 : s.call(r) : d, h = e.pendingDot, p = h === void 0 ? (u = r.pendingDot) === null || u === void 0 ? void 0 : u.call(r) : h, g = e.reverse, m = e.mode, y = typeof v == "boolean" ? null : v, b = ar((c = r.default) === null || c === void 0 ? void 0 : c.call(r)), x = v ? _(w0, {
                pending: !!v,
                dot: p || _(Co, null, null)
            }, {
                default: function() {
                    return [y]
                }
            }) : null;
            x && b.push(x);
            var C = g ? b.reverse() : b
              , S = C.length
              , w = "".concat(i.value, "-item-last")
              , T = C.map(function(A, O) {
                var k = O === S - 2 ? w : ""
                  , D = O === S - 1 ? w : "";
                return Zr(A, {
                    class: he([!g && !!v ? k : D, l(A, O)])
                })
            })
              , P = C.some(function(A) {
                var O, k;
                return !!((O = A.props) !== null && O !== void 0 && O.label || (k = A.children) !== null && k !== void 0 && k.label)
            })
              , M = he(i.value, (f = {},
            z(f, "".concat(i.value, "-pending"), !!v),
            z(f, "".concat(i.value, "-reverse"), !!g),
            z(f, "".concat(i.value, "-").concat(m), !!m && !P),
            z(f, "".concat(i.value, "-label"), P),
            z(f, "".concat(i.value, "-rtl"), o.value === "rtl"),
            f));
            return _("ul", {
                class: M
            }, [T])
        }
    }
});
Mg.Item = w0;
Mg.install = function(t) {
    return t.component(Mg.name, Mg),
    t.component(w0.name, w0),
    t
}
;
var b$e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"
            }
        }]
    },
    name: "enter",
    theme: "outlined"
};
const x$e = b$e;
function IV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            S$e(t, a, n[a])
        })
    }
    return t
}
function S$e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var DE = function(e, n) {
    var r = IV({}, e, n.attrs);
    return _(lt, IV({}, r, {
        icon: x$e
    }), null)
};
DE.displayName = "EnterOutlined";
DE.inheritAttrs = !1;
const C$e = DE;
var w$e = function() {
    return {
        prefixCls: String,
        value: String,
        maxlength: Number,
        autoSize: {
            type: [Boolean, Object]
        },
        onSave: Function,
        onCancel: Function,
        onEnd: Function,
        onChange: Function,
        originContent: String,
        direction: String
    }
}
  , _$e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Editable",
    props: w$e(),
    setup: function(e, n) {
        var r = n.emit
          , a = n.slots
          , i = en({
            current: e.value || "",
            lastKeyCode: void 0,
            inComposition: !1,
            cancelFlag: !1
        });
        Te(function() {
            return e.value
        }, function(g) {
            i.current = g
        });
        var o = Q();
        ct(function() {
            if (o.value) {
                var g, m = (g = o.value) === null || g === void 0 ? void 0 : g.resizableTextArea, y = m == null ? void 0 : m.textArea;
                y.focus();
                var b = y.value.length;
                y.setSelectionRange(b, b)
            }
        });
        function l(g) {
            o.value = g
        }
        function s(g) {
            var m = g.target.value;
            i.current = m.replace(/[\r\n]/g, ""),
            r("change", i.current)
        }
        function u() {
            i.inComposition = !0
        }
        function c() {
            i.inComposition = !1
        }
        function f(g) {
            var m = g.keyCode;
            m === Ee.ENTER && g.preventDefault(),
            !i.inComposition && (i.lastKeyCode = m)
        }
        function d(g) {
            var m = g.keyCode
              , y = g.ctrlKey
              , b = g.altKey
              , x = g.metaKey
              , C = g.shiftKey;
            i.lastKeyCode === m && !i.inComposition && !y && !b && !x && !C && (m === Ee.ENTER ? (h(),
            r("end")) : m === Ee.ESC && (i.current = e.originContent,
            r("cancel")))
        }
        function v() {
            h()
        }
        function h() {
            r("save", i.current.trim())
        }
        var p = j(function() {
            var g;
            return g = {},
            z(g, "".concat(e.prefixCls), !0),
            z(g, "".concat(e.prefixCls, "-edit-content"), !0),
            z(g, "".concat(e.prefixCls, "-rtl"), e.direction === "rtl"),
            g
        });
        return function() {
            return _("div", {
                class: p.value
            }, [_(H8, {
                ref: l,
                maxlength: e.maxlength,
                value: i.current,
                onChange: s,
                onKeydown: f,
                onKeyup: d,
                onCompositionstart: u,
                onCompositionend: c,
                onBlur: v,
                rows: 1,
                autoSize: e.autoSize === void 0 || e.autoSize
            }, null), a.enterIcon ? a.enterIcon({
                className: "".concat(e.prefixCls, "-edit-content-confirm")
            }) : _(C$e, {
                class: "".concat(e.prefixCls, "-edit-content-confirm")
            }, null)])
        }
    }
});
const T$e = _$e;
var P$e = 3, M$e = 8, Oa, jT = {
    padding: 0,
    margin: 0,
    display: "inline",
    lineHeight: "inherit"
};
function A$e(t) {
    var e = Array.prototype.slice.apply(t);
    return e.map(function(n) {
        return "".concat(n, ": ").concat(t.getPropertyValue(n), ";")
    }).join("")
}
function Gne(t, e) {
    t.setAttribute("aria-hidden", "true");
    var n = window.getComputedStyle(e)
      , r = A$e(n);
    t.setAttribute("style", r),
    t.style.position = "fixed",
    t.style.left = "0",
    t.style.height = "auto",
    t.style.minHeight = "auto",
    t.style.maxHeight = "auto",
    t.style.paddingTop = "0",
    t.style.paddingBottom = "0",
    t.style.borderTopWidth = "0",
    t.style.borderBottomWidth = "0",
    t.style.top = "-999999px",
    t.style.zIndex = "-1000",
    t.style.textOverflow = "clip",
    t.style.whiteSpace = "normal",
    t.style.webkitLineClamp = "none"
}
function I$e(t) {
    var e = document.createElement("div");
    Gne(e, t),
    e.appendChild(document.createTextNode("text")),
    document.body.appendChild(e);
    var n = e.getBoundingClientRect().height;
    return document.body.removeChild(e),
    n
}
const k$e = function(t, e, n, r, a) {
    Oa || (Oa = document.createElement("div"),
    Oa.setAttribute("aria-hidden", "true"),
    document.body.appendChild(Oa));
    var i = e.rows
      , o = e.suffix
      , l = o === void 0 ? "" : o
      , s = I$e(t)
      , u = Math.round(s * i * 100) / 100;
    Gne(Oa, t);
    var c = Ohe({
        render: function() {
            return _("div", {
                style: jT
            }, [_("span", {
                style: jT
            }, [n, l]), _("span", {
                style: jT
            }, [r])])
        }
    });
    c.mount(Oa);
    function f() {
        var x = Math.round(Oa.getBoundingClientRect().height * 100) / 100;
        return x - .1 <= u
    }
    if (f())
        return c.unmount(),
        {
            content: n,
            text: Oa.innerHTML,
            ellipsis: !1
        };
    var d = Array.prototype.slice.apply(Oa.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(function(x) {
        var C = x.nodeType
          , S = x.data;
        return C !== M$e && S !== ""
    })
      , v = Array.prototype.slice.apply(Oa.childNodes[0].childNodes[1].cloneNode(!0).childNodes);
    c.unmount();
    var h = [];
    Oa.innerHTML = "";
    var p = document.createElement("span");
    Oa.appendChild(p);
    var g = document.createTextNode(a + l);
    p.appendChild(g),
    v.forEach(function(x) {
        Oa.appendChild(x)
    });
    function m(x) {
        p.insertBefore(x, g)
    }
    function y(x, C) {
        var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0
          , w = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : C.length
          , T = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0
          , P = Math.floor((S + w) / 2)
          , M = C.slice(0, P);
        if (x.textContent = M,
        S >= w - 1)
            for (var A = w; A >= S; A -= 1) {
                var O = C.slice(0, A);
                if (x.textContent = O,
                f() || !O)
                    return A === C.length ? {
                        finished: !1,
                        vNode: C
                    } : {
                        finished: !0,
                        vNode: O
                    }
            }
        return f() ? y(x, C, P, w, P) : y(x, C, S, P, T)
    }
    function b(x) {
        var C = x.nodeType;
        if (C === P$e) {
            var S = x.textContent || ""
              , w = document.createTextNode(S);
            return m(w),
            y(w, S)
        }
        return {
            finished: !1,
            vNode: null
        }
    }
    return d.some(function(x) {
        var C = b(x)
          , S = C.finished
          , w = C.vNode;
        return w && h.push(w),
        S
    }),
    {
        content: h,
        text: Oa.innerHTML,
        ellipsis: !0
    }
};
var O$e = ["prefixCls", "class", "direction", "component"]
  , D$e = function() {
    return {
        prefixCls: String,
        direction: String,
        component: String
    }
}
  , E$e = de({
    name: "ATypography",
    inheritAttrs: !1,
    props: D$e(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = je("typography", e)
          , o = i.prefixCls
          , l = i.direction;
        return function() {
            var s, u = I(I({}, e), a);
            u.prefixCls,
            u.class,
            u.direction;
            var c = u.component
              , f = c === void 0 ? "article" : c
              , d = tt(u, O$e);
            return _(f, I({
                class: he(o.value, z({}, "".concat(o.value, "-rtl"), l.value === "rtl"), a.class)
            }, d), {
                default: function() {
                    return [(s = r.default) === null || s === void 0 ? void 0 : s.call(r)]
                }
            })
        }
    }
});
const Na = E$e;
var L$e = function() {
    var e = document.getSelection();
    if (!e.rangeCount)
        return function() {}
        ;
    for (var n = document.activeElement, r = [], a = 0; a < e.rangeCount; a++)
        r.push(e.getRangeAt(a));
    switch (n.tagName.toUpperCase()) {
    case "INPUT":
    case "TEXTAREA":
        n.blur();
        break;
    default:
        n = null;
        break
    }
    return e.removeAllRanges(),
    function() {
        e.type === "Caret" && e.removeAllRanges(),
        e.rangeCount || r.forEach(function(i) {
            e.addRange(i)
        }),
        n && n.focus()
    }
};
const R$e = L$e;
var kV = {
    "text/plain": "Text",
    "text/html": "Url",
    default: "Text"
}
  , N$e = "Copy to clipboard: #{key}, Enter";
function $$e(t) {
    var e = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C";
    return t.replace(/#{\s*key\s*}/g, e)
}
function F$e(t, e) {
    var n, r, a, i, o, l = !1;
    e || (e = {});
    var s = e.debug || !1;
    try {
        r = R$e(),
        a = document.createRange(),
        i = document.getSelection(),
        o = document.createElement("span"),
        o.textContent = t,
        o.style.all = "unset",
        o.style.position = "fixed",
        o.style.top = 0,
        o.style.clip = "rect(0, 0, 0, 0)",
        o.style.whiteSpace = "pre",
        o.style.webkitUserSelect = "text",
        o.style.MozUserSelect = "text",
        o.style.msUserSelect = "text",
        o.style.userSelect = "text",
        o.addEventListener("copy", function(c) {
            if (c.stopPropagation(),
            e.format)
                if (c.preventDefault(),
                typeof c.clipboardData == "undefined") {
                    window.clipboardData.clearData();
                    var f = kV[e.format] || kV.default;
                    window.clipboardData.setData(f, t)
                } else
                    c.clipboardData.clearData(),
                    c.clipboardData.setData(e.format, t);
            e.onCopy && (c.preventDefault(),
            e.onCopy(c.clipboardData))
        }),
        document.body.appendChild(o),
        a.selectNodeContents(o),
        i.addRange(a);
        var u = document.execCommand("copy");
        if (!u)
            throw new Error("copy command was unsuccessful");
        l = !0
    } catch (c) {
        try {
            window.clipboardData.setData(e.format || "text", t),
            e.onCopy && e.onCopy(window.clipboardData),
            l = !0
        } catch (f) {
            n = $$e("message"in e ? e.message : N$e),
            window.prompt(n, t)
        }
    } finally {
        i && (typeof i.removeRange == "function" ? i.removeRange(a) : i.removeAllRanges()),
        o && document.body.removeChild(o),
        r()
    }
    return l
}
var B$e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"
            }
        }]
    },
    name: "copy",
    theme: "outlined"
};
const V$e = B$e;
function OV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            z$e(t, a, n[a])
        })
    }
    return t
}
function z$e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var EE = function(e, n) {
    var r = OV({}, e, n.attrs);
    return _(lt, OV({}, r, {
        icon: V$e
    }), null)
};
EE.displayName = "CopyOutlined";
EE.inheritAttrs = !1;
const H$e = EE;
var j$e = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"
            }
        }]
    },
    name: "edit",
    theme: "outlined"
};
const W$e = j$e;
function DV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            G$e(t, a, n[a])
        })
    }
    return t
}
function G$e(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var LE = function(e, n) {
    var r = DV({}, e, n.attrs);
    return _(lt, DV({}, r, {
        icon: W$e
    }), null)
};
LE.displayName = "EditOutlined";
LE.inheritAttrs = !1;
const K$e = LE;
var U$e = ["type", "disabled", "content", "class", "style"]
  , Y$e = T8("webkitLineClamp")
  , q$e = T8("textOverflow")
  , EV = "..."
  , Em = function() {
    return {
        editable: {
            type: [Boolean, Object],
            default: void 0
        },
        copyable: {
            type: [Boolean, Object],
            default: void 0
        },
        prefixCls: String,
        component: String,
        type: String,
        disabled: {
            type: Boolean,
            default: void 0
        },
        ellipsis: {
            type: [Boolean, Object],
            default: void 0
        },
        code: {
            type: Boolean,
            default: void 0
        },
        mark: {
            type: Boolean,
            default: void 0
        },
        underline: {
            type: Boolean,
            default: void 0
        },
        delete: {
            type: Boolean,
            default: void 0
        },
        strong: {
            type: Boolean,
            default: void 0
        },
        keyboard: {
            type: Boolean,
            default: void 0
        },
        content: String,
        "onUpdate:content": Function
    }
}
  , X$e = de({
    compatConfig: {
        MODE: 3
    },
    name: "Base",
    inheritAttrs: !1,
    props: Em(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.emit
          , o = je("typography", e)
          , l = o.prefixCls
          , s = o.direction
          , u = en({
            copied: !1,
            ellipsisText: "",
            ellipsisContent: null,
            isEllipsis: !1,
            expanded: !1,
            clientRendered: !1,
            expandStr: "",
            copyStr: "",
            copiedStr: "",
            editStr: "",
            copyId: void 0,
            rafId: void 0,
            prevProps: void 0,
            originContent: ""
        })
          , c = Q()
          , f = Q()
          , d = j(function() {
            var $ = e.ellipsis;
            return $ ? I({
                rows: 1,
                expandable: !1
            }, We($) === "object" ? $ : null) : {}
        });
        ct(function() {
            u.clientRendered = !0
        }),
        Nt(function() {
            clearTimeout(u.copyId),
            gt.cancel(u.rafId)
        }),
        Te([function() {
            return d.value.rows
        }
        , function() {
            return e.content
        }
        ], function() {
            yt(function() {
                M()
            })
        }, {
            flush: "post",
            deep: !0,
            immediate: !0
        }),
        pt(function() {
            e.content === void 0 && (ur(!e.editable, "Typography", "When `editable` is enabled, please use `content` instead of children"),
            ur(!e.ellipsis, "Typography", "When `ellipsis` is enabled, please use `content` instead of children"))
        });
        function v() {
            var $, W;
            return e.ellipsis || e.editable ? e.content : ($ = c.value) === null || $ === void 0 || (W = $.$el) === null || W === void 0 ? void 0 : W.innerText
        }
        function h($) {
            var W = d.value.onExpand;
            u.expanded = !0,
            W == null || W($)
        }
        function p($) {
            $.preventDefault(),
            u.originContent = e.content,
            P(!0)
        }
        function g($) {
            m($),
            P(!1)
        }
        function m($) {
            var W = x.value.onChange;
            $ !== e.content && (i("update:content", $),
            W == null || W($))
        }
        function y() {
            var $, W;
            ($ = (W = x.value).onCancel) === null || $ === void 0 || $.call(W),
            P(!1)
        }
        function b($) {
            $.preventDefault(),
            $.stopPropagation();
            var W = e.copyable
              , B = I({}, We(W) === "object" ? W : null);
            B.text === void 0 && (B.text = v()),
            F$e(B.text || ""),
            u.copied = !0,
            yt(function() {
                B.onCopy && B.onCopy(),
                u.copyId = setTimeout(function() {
                    u.copied = !1
                }, 3e3)
            })
        }
        var x = j(function() {
            var $ = e.editable;
            return $ ? I({}, We($) === "object" ? $ : null) : {
                editing: !1
            }
        })
          , C = zn(!1, {
            value: j(function() {
                return x.value.editing
            })
        })
          , S = De(C, 2)
          , w = S[0]
          , T = S[1];
        function P($) {
            var W = x.value.onStart;
            $ && W && W(),
            T($)
        }
        Te(w, function($) {
            if (!$) {
                var W;
                (W = f.value) === null || W === void 0 || W.focus()
            }
        }, {
            flush: "post"
        });
        function M() {
            gt.cancel(u.rafId),
            u.rafId = gt(function() {
                O()
            })
        }
        var A = j(function() {
            var $ = d.value
              , W = $.rows
              , B = $.expandable
              , G = $.suffix
              , K = $.onEllipsis
              , V = $.tooltip;
            return G || V || e.editable || e.copyable || B || K ? !1 : W === 1 ? q$e : Y$e
        })
          , O = function() {
            var W, B, G = u.ellipsisText, K = u.isEllipsis, V = d.value, U = V.rows, X = V.suffix, Y = V.onEllipsis;
            if (!(!U || U < 0 || !((W = c.value) !== null && W !== void 0 && W.$el) || u.expanded || e.content === void 0) && !A.value) {
                var te = k$e((B = c.value) === null || B === void 0 ? void 0 : B.$el, {
                    rows: U,
                    suffix: X
                }, e.content, R(!0), EV)
                  , ne = te.content
                  , ie = te.text
                  , ae = te.ellipsis;
                (G !== ie || u.isEllipsis !== ae) && (u.ellipsisText = ie,
                u.ellipsisContent = ne,
                u.isEllipsis = ae,
                K !== ae && Y && Y(ae))
            }
        };
        function k($, W) {
            var B = $.mark
              , G = $.code
              , K = $.underline
              , V = $.delete
              , U = $.strong
              , X = $.keyboard
              , Y = W;
            function te(ne, ie) {
                if (!!ne) {
                    var ae = function() {
                        return Y
                    }();
                    Y = _(ie, null, {
                        default: function() {
                            return [ae]
                        }
                    })
                }
            }
            return te(U, "strong"),
            te(K, "u"),
            te(V, "del"),
            te(G, "code"),
            te(B, "mark"),
            te(X, "kbd"),
            Y
        }
        function D($) {
            var W = d.value
              , B = W.expandable
              , G = W.symbol;
            if (!B || !$ && (u.expanded || !u.isEllipsis))
                return null;
            var K = (r.ellipsisSymbol ? r.ellipsisSymbol() : G) || u.expandStr;
            return _("a", {
                key: "expand",
                class: "".concat(l.value, "-expand"),
                onClick: h,
                "aria-label": u.expandStr
            }, [K])
        }
        function E() {
            if (!!e.editable) {
                var $ = e.editable
                  , W = $.tooltip
                  , B = $.triggerType
                  , G = B === void 0 ? ["icon"] : B
                  , K = r.editableIcon ? r.editableIcon() : _(K$e, {
                    role: "button"
                }, null)
                  , V = r.editableTooltip ? r.editableTooltip() : u.editStr
                  , U = typeof V == "string" ? V : "";
                return G.indexOf("icon") !== -1 ? _(vo, {
                    key: "edit",
                    title: W === !1 ? "" : V
                }, {
                    default: function() {
                        return [_(oS, {
                            ref: f,
                            class: "".concat(l.value, "-edit"),
                            onClick: p,
                            "aria-label": U
                        }, {
                            default: function() {
                                return [K]
                            }
                        })]
                    }
                }) : null
            }
        }
        function L() {
            if (!!e.copyable) {
                var $ = e.copyable.tooltip
                  , W = u.copied ? u.copiedStr : u.copyStr
                  , B = r.copyableTooltip ? r.copyableTooltip({
                    copied: u.copied
                }) : W
                  , G = typeof B == "string" ? B : ""
                  , K = u.copied ? _(JC, null, null) : _(H$e, null, null)
                  , V = r.copyableIcon ? r.copyableIcon({
                    copied: !!u.copied
                }) : K;
                return _(vo, {
                    key: "copy",
                    title: $ === !1 ? "" : B
                }, {
                    default: function() {
                        return [_(oS, {
                            class: ["".concat(l.value, "-copy"), z({}, "".concat(l.value, "-copy-success"), u.copied)],
                            onClick: b,
                            "aria-label": G
                        }, {
                            default: function() {
                                return [V]
                            }
                        })]
                    }
                })
            }
        }
        function N() {
            var $ = a.class
              , W = a.style
              , B = x.value
              , G = B.maxlength
              , K = B.autoSize
              , V = B.onEnd;
            return _(T$e, {
                class: $,
                style: W,
                prefixCls: l.value,
                value: e.content,
                originContent: u.originContent,
                maxlength: G,
                autoSize: K,
                onSave: g,
                onChange: m,
                onCancel: y,
                onEnd: V,
                direction: s.value
            }, {
                enterIcon: r.editableEnterIcon
            })
        }
        function R($) {
            return [D($), E(), L()].filter(function(W) {
                return W
            })
        }
        return function() {
            var $, W = x.value.triggerType, B = W === void 0 ? ["icon"] : W, G = e.ellipsis || e.editable ? e.content !== void 0 ? e.content : ($ = r.default) === null || $ === void 0 ? void 0 : $.call(r) : r.default ? r.default() : e.content;
            return w.value ? N() : _(ch, {
                componentName: "Text",
                children: function(V) {
                    var U, X = I(I({}, e), a), Y = X.type, te = X.disabled;
                    X.content;
                    var ne = X.class
                      , ie = X.style
                      , ae = tt(X, U$e)
                      , q = d.value
                      , F = q.rows
                      , H = q.suffix
                      , ee = q.tooltip
                      , re = V.edit
                      , ue = V.copy
                      , ve = V.copied
                      , fe = V.expand;
                    u.editStr = re,
                    u.copyStr = ue,
                    u.copiedStr = ve,
                    u.expandStr = fe;
                    var ce = Et(ae, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard", "onUpdate:content"]), le = A.value, oe = F === 1 && le, se = F && F > 1 && le, xe = G, Pe;
                    if (F && u.isEllipsis && !u.expanded && !le) {
                        var Fe, ze = ae.title, _e = ze || "";
                        !ze && (typeof G == "string" || typeof G == "number") && (_e = String(G)),
                        _e = (Fe = _e) === null || Fe === void 0 ? void 0 : Fe.slice(String(u.ellipsisContent || "").length),
                        xe = _(xt, null, [_t(u.ellipsisContent), _("span", {
                            title: _e,
                            "aria-hidden": "true"
                        }, [EV]), H])
                    } else
                        xe = _(xt, null, [G, H]);
                    xe = k(e, xe);
                    var me = ee && F && u.isEllipsis && !u.expanded && !le
                      , Ie = r.ellipsisTooltip ? r.ellipsisTooltip() : ee;
                    return _(Vi, {
                        onResize: M,
                        disabled: !F
                    }, {
                        default: function() {
                            return [_(Na, I({
                                ref: c,
                                class: [(U = {},
                                z(U, "".concat(l.value, "-").concat(Y), Y),
                                z(U, "".concat(l.value, "-disabled"), te),
                                z(U, "".concat(l.value, "-ellipsis"), F),
                                z(U, "".concat(l.value, "-single-line"), F === 1 && !u.isEllipsis),
                                z(U, "".concat(l.value, "-ellipsis-single-line"), oe),
                                z(U, "".concat(l.value, "-ellipsis-multiple-line"), se),
                                U), ne],
                                style: I(I({}, ie), {}, {
                                    WebkitLineClamp: se ? F : void 0
                                }),
                                "aria-label": Pe,
                                direction: s.value,
                                onClick: B.indexOf("text") !== -1 ? p : function() {}
                            }, ce), {
                                default: function() {
                                    return [me ? _(vo, {
                                        title: ee === !0 ? G : Ie
                                    }, {
                                        default: function() {
                                            return [_("span", null, [xe])]
                                        }
                                    }) : xe, R()]
                                }
                            })]
                        }
                    })
                }
            }, null)
        }
    }
});
const Lm = X$e;
var Z$e = ["ellipsis", "rel"]
  , Q$e = function() {
    return Et(I(I({}, Em()), {}, {
        ellipsis: {
            type: Boolean,
            default: void 0
        }
    }), ["component"])
}
  , Iw = function(e, n) {
    var r = n.slots
      , a = n.attrs
      , i = I(I({}, e), a)
      , o = i.ellipsis
      , l = i.rel
      , s = tt(i, Z$e);
    ur(We(o) !== "object", "Typography.Link", "`ellipsis` only supports boolean value.");
    var u = I(I({}, s), {}, {
        rel: l === void 0 && s.target === "_blank" ? "noopener noreferrer" : l,
        ellipsis: !!o,
        component: "a"
    });
    return delete u.navigate,
    _(Lm, u, r)
};
Iw.displayName = "ATypographyLink";
Iw.inheritAttrs = !1;
Iw.props = Q$e();
const RE = Iw;
var J$e = function() {
    return Et(Em(), ["component"])
}
  , kw = function(e, n) {
    var r = n.slots
      , a = n.attrs
      , i = I(I({}, e), {}, {
        component: "div"
    }, a);
    return _(Lm, i, r)
};
kw.displayName = "ATypographyParagraph";
kw.inheritAttrs = !1;
kw.props = J$e();
const NE = kw;
var eFe = function() {
    return I(I({}, Et(Em(), ["component"])), {}, {
        ellipsis: {
            type: [Boolean, Object],
            default: void 0
        }
    })
}
  , Ow = function(e, n) {
    var r = n.slots
      , a = n.attrs
      , i = e.ellipsis;
    ur(We(i) !== "object" || !i || !("expandable"in i) && !("rows"in i), "Typography.Text", "`ellipsis` do not support `expandable` or `rows` props.");
    var o = I(I({}, e), {}, {
        ellipsis: i && We(i) === "object" ? Et(i, ["expandable", "rows"]) : i,
        component: "span"
    }, a);
    return _(Lm, o, r)
};
Ow.displayName = "ATypographyText";
Ow.inheritAttrs = !1;
Ow.props = eFe();
const $E = Ow;
var tFe = ["level"]
  , nFe = Dye(1, 2, 3, 4, 5)
  , rFe = function() {
    return I(I({}, Et(Em(), ["component", "strong"])), {}, {
        level: Number
    })
}
  , Dw = function(e, n) {
    var r = n.slots, a = n.attrs, i = e.level, o = i === void 0 ? 1 : i, l = tt(e, tFe), s;
    nFe.indexOf(o) !== -1 ? s = "h".concat(o) : (ur(!1, "Typography", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value."),
    s = "h1");
    var u = I(I({}, l), {}, {
        component: s
    }, a);
    return _(Lm, u, r)
};
Dw.displayName = "ATypographyTitle";
Dw.inheritAttrs = !1;
Dw.props = rFe();
const FE = Dw;
Na.Text = $E;
Na.Title = FE;
Na.Paragraph = NE;
Na.Link = RE;
Na.Base = Lm;
Na.install = function(t) {
    return t.component(Na.name, Na),
    t.component(Na.Text.displayName, $E),
    t.component(Na.Title.displayName, FE),
    t.component(Na.Paragraph.displayName, NE),
    t.component(Na.Link.displayName, RE),
    t
}
;
function aFe(t, e) {
    var n = "cannot ".concat(t.method, " ").concat(t.action, " ").concat(e.status, "'")
      , r = new Error(n);
    return r.status = e.status,
    r.method = t.method,
    r.url = t.action,
    r
}
function LV(t) {
    var e = t.responseText || t.response;
    if (!e)
        return e;
    try {
        return JSON.parse(e)
    } catch (n) {
        return e
    }
}
function iFe(t) {
    var e = new XMLHttpRequest;
    t.onProgress && e.upload && (e.upload.onprogress = function(i) {
        i.total > 0 && (i.percent = i.loaded / i.total * 100),
        t.onProgress(i)
    }
    );
    var n = new FormData;
    t.data && Object.keys(t.data).forEach(function(a) {
        var i = t.data[a];
        if (Array.isArray(i)) {
            i.forEach(function(o) {
                n.append("".concat(a, "[]"), o)
            });
            return
        }
        n.append(a, i)
    }),
    t.file instanceof Blob ? n.append(t.filename, t.file, t.file.name) : n.append(t.filename, t.file),
    e.onerror = function(i) {
        t.onError(i)
    }
    ,
    e.onload = function() {
        return e.status < 200 || e.status >= 300 ? t.onError(aFe(t, e), LV(e)) : t.onSuccess(LV(e), e)
    }
    ,
    e.open(t.method, t.action, !0),
    t.withCredentials && "withCredentials"in e && (e.withCredentials = !0);
    var r = t.headers || {};
    return r["X-Requested-With"] !== null && e.setRequestHeader("X-Requested-With", "XMLHttpRequest"),
    Object.keys(r).forEach(function(a) {
        r[a] !== null && e.setRequestHeader(a, r[a])
    }),
    e.send(n),
    {
        abort: function() {
            e.abort()
        }
    }
}
var oFe = +new Date
  , lFe = 0;
function WT() {
    return "vc-upload-".concat(oFe, "-").concat(++lFe)
}
const GT = function(t, e) {
    if (t && e) {
        var n = Array.isArray(e) ? e : e.split(",")
          , r = t.name || ""
          , a = t.type || ""
          , i = a.replace(/\/.*$/, "");
        return n.some(function(o) {
            var l = o.trim();
            if (/^\*(\/\*)?$/.test(o))
                return !0;
            if (l.charAt(0) === ".") {
                var s = r.toLowerCase()
                  , u = l.toLowerCase()
                  , c = [u];
                return (u === ".jpg" || u === ".jpeg") && (c = [".jpg", ".jpeg"]),
                c.some(function(f) {
                    return s.endsWith(f)
                })
            }
            return /\/\*$/.test(l) ? i === l.replace(/\/.*$/, "") : !!(a === l || /^\w+$/.test(l))
        })
    }
    return !0
};
function sFe(t, e) {
    var n = t.createReader()
      , r = [];
    function a() {
        n.readEntries(function(i) {
            var o = Array.prototype.slice.apply(i);
            r = r.concat(o);
            var l = !o.length;
            l ? e(r) : a()
        })
    }
    a()
}
var uFe = function(e, n, r) {
    var a = function i(o, l) {
        o.path = l || "",
        o.isFile ? o.file(function(s) {
            r(s) && (o.fullPath && !s.webkitRelativePath && (Object.defineProperties(s, {
                webkitRelativePath: {
                    writable: !0
                }
            }),
            s.webkitRelativePath = o.fullPath.replace(/^\//, ""),
            Object.defineProperties(s, {
                webkitRelativePath: {
                    writable: !1
                }
            })),
            n([s]))
        }) : o.isDirectory && sFe(o, function(s) {
            s.forEach(function(u) {
                i(u, "".concat(l).concat(o.name, "/"))
            })
        })
    };
    e.forEach(function(i) {
        a(i.webkitGetAsEntry())
    })
};
const cFe = uFe;
var Kne = function() {
    return {
        capture: [Boolean, String],
        multipart: {
            type: Boolean,
            default: void 0
        },
        name: String,
        disabled: {
            type: Boolean,
            default: void 0
        },
        componentTag: String,
        action: [String, Function],
        method: String,
        directory: {
            type: Boolean,
            default: void 0
        },
        data: [Object, Function],
        headers: Object,
        accept: String,
        multiple: {
            type: Boolean,
            default: void 0
        },
        onBatchStart: Function,
        onReject: Function,
        onStart: Function,
        onError: Function,
        onSuccess: Function,
        onProgress: Function,
        beforeUpload: Function,
        customRequest: Function,
        withCredentials: {
            type: Boolean,
            default: void 0
        },
        openFileDialogOnClick: {
            type: Boolean,
            default: void 0
        },
        prefixCls: String,
        id: String,
        onMouseenter: Function,
        onMouseleave: Function,
        onClick: Function
    }
};
function fFe(t, e, n, r) {
    for (var a = -1, i = t == null ? 0 : t.length; ++a < i; ) {
        var o = t[a];
        e(r, o, n(o), t)
    }
    return r
}
function dFe(t) {
    return function(e, n, r) {
        for (var a = -1, i = Object(e), o = r(e), l = o.length; l--; ) {
            var s = o[t ? l : ++a];
            if (n(i[s], s, i) === !1)
                break
        }
        return e
    }
}
var vFe = dFe();
const hFe = vFe;
function pFe(t, e) {
    return t && hFe(t, e, ph)
}
function gFe(t, e) {
    return function(n, r) {
        if (n == null)
            return n;
        if (!xm(n))
            return t(n, r);
        for (var a = n.length, i = e ? a : -1, o = Object(n); (e ? i-- : ++i < a) && r(o[i], i, o) !== !1; )
            ;
        return n
    }
}
var mFe = gFe(pFe);
const yFe = mFe;
function bFe(t, e, n, r) {
    return yFe(t, function(a, i, o) {
        e(r, a, n(a), o)
    }),
    r
}
function xFe(t, e) {
    return function(n, r) {
        var a = zi(n) ? fFe : bFe
          , i = e ? e() : {};
        return a(n, t, R8(r), i)
    }
}
var SFe = xFe(function(t, e, n) {
    t[n ? 0 : 1].push(e)
}, function() {
    return [[], []]
});
const CFe = SFe;
var wFe = ["componentTag", "prefixCls", "disabled", "id", "multiple", "accept", "capture", "directory", "openFileDialogOnClick", "onMouseenter", "onMouseleave"];
const _Fe = de({
    compatConfig: {
        MODE: 3
    },
    name: "AjaxUploader",
    inheritAttrs: !1,
    props: Kne(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.expose
          , o = Q(WT())
          , l = {}
          , s = Q()
          , u = !1
          , c = function() {
            var b = Kf(Ha.mark(function x(C, S) {
                var w, T, P, M, A, O, k, D, E;
                return Ha.wrap(function(N) {
                    for (; ; )
                        switch (N.prev = N.next) {
                        case 0:
                            if (w = e.beforeUpload,
                            T = C,
                            !w) {
                                N.next = 14;
                                break
                            }
                            return N.prev = 3,
                            N.next = 6,
                            w(C, S);
                        case 6:
                            T = N.sent,
                            N.next = 12;
                            break;
                        case 9:
                            N.prev = 9,
                            N.t0 = N.catch(3),
                            T = !1;
                        case 12:
                            if (T !== !1) {
                                N.next = 14;
                                break
                            }
                            return N.abrupt("return", {
                                origin: C,
                                parsedFile: null,
                                action: null,
                                data: null
                            });
                        case 14:
                            if (P = e.action,
                            typeof P != "function") {
                                N.next = 21;
                                break
                            }
                            return N.next = 18,
                            P(C);
                        case 18:
                            M = N.sent,
                            N.next = 22;
                            break;
                        case 21:
                            M = P;
                        case 22:
                            if (A = e.data,
                            typeof A != "function") {
                                N.next = 29;
                                break
                            }
                            return N.next = 26,
                            A(C);
                        case 26:
                            O = N.sent,
                            N.next = 30;
                            break;
                        case 29:
                            O = A;
                        case 30:
                            return k = (We(T) === "object" || typeof T == "string") && T ? T : C,
                            k instanceof File ? D = k : D = new File([k],C.name,{
                                type: C.type
                            }),
                            E = D,
                            E.uid = C.uid,
                            N.abrupt("return", {
                                origin: C,
                                data: O,
                                parsedFile: E,
                                action: M
                            });
                        case 35:
                        case "end":
                            return N.stop()
                        }
                }, x, null, [[3, 9]])
            }));
            return function(C, S) {
                return b.apply(this, arguments)
            }
        }()
          , f = function(x) {
            var C = x.data
              , S = x.origin
              , w = x.action
              , T = x.parsedFile;
            if (!!u) {
                var P = e.onStart
                  , M = e.customRequest
                  , A = e.name
                  , O = e.headers
                  , k = e.withCredentials
                  , D = e.method
                  , E = S.uid
                  , L = M || iFe
                  , N = {
                    action: w,
                    filename: A,
                    data: C,
                    file: T,
                    headers: O,
                    withCredentials: k,
                    method: D || "post",
                    onProgress: function($) {
                        var W = e.onProgress;
                        W == null || W($, T)
                    },
                    onSuccess: function($, W) {
                        var B = e.onSuccess;
                        B == null || B($, T, W),
                        delete l[E]
                    },
                    onError: function($, W) {
                        var B = e.onError;
                        B == null || B($, W, T),
                        delete l[E]
                    }
                };
                P(S),
                l[E] = L(N)
            }
        }
          , d = function() {
            o.value = WT()
        }
          , v = function(x) {
            if (x) {
                var C = x.uid ? x.uid : x;
                l[C] && l[C].abort && l[C].abort(),
                delete l[C]
            } else
                Object.keys(l).forEach(function(S) {
                    l[S] && l[S].abort && l[S].abort(),
                    delete l[S]
                })
        };
        ct(function() {
            u = !0
        }),
        Nt(function() {
            u = !1,
            v()
        });
        var h = function(x) {
            var C = $e(x)
              , S = C.map(function(w) {
                return w.uid = WT(),
                c(w, C)
            });
            Promise.all(S).then(function(w) {
                var T = e.onBatchStart;
                T == null || T(w.map(function(P) {
                    var M = P.origin
                      , A = P.parsedFile;
                    return {
                        file: M,
                        parsedFile: A
                    }
                })),
                w.filter(function(P) {
                    return P.parsedFile !== null
                }).forEach(function(P) {
                    f(P)
                })
            })
        }
          , p = function(x) {
            var C = e.accept
              , S = e.directory
              , w = x.target.files
              , T = $e(w).filter(function(P) {
                return !S || GT(P, C)
            });
            h(T),
            d()
        }
          , g = function(x) {
            var C = s.value;
            if (!!C) {
                var S = e.onClick;
                C.click(),
                S && S(x)
            }
        }
          , m = function(x) {
            x.key === "Enter" && g(x)
        }
          , y = function(x) {
            var C = e.multiple;
            if (x.preventDefault(),
            x.type !== "dragover")
                if (e.directory)
                    cFe(Array.prototype.slice.call(x.dataTransfer.items), h, function(P) {
                        return GT(P, e.accept)
                    });
                else {
                    var S = CFe(Array.prototype.slice.call(x.dataTransfer.files), function(P) {
                        return GT(P, e.accept)
                    })
                      , w = S[0]
                      , T = S[1];
                    C === !1 && (w = w.slice(0, 1)),
                    h(w),
                    T.length && e.onReject && e.onReject(T)
                }
        };
        return i({
            abort: v
        }),
        function() {
            var b, x, C = e.componentTag, S = e.prefixCls, w = e.disabled, T = e.id, P = e.multiple, M = e.accept, A = e.capture, O = e.directory, k = e.openFileDialogOnClick, D = e.onMouseenter, E = e.onMouseleave, L = tt(e, wFe), N = (b = {},
            z(b, S, !0),
            z(b, "".concat(S, "-disabled"), w),
            z(b, a.class, !!a.class),
            b), R = O ? {
                directory: "directory",
                webkitdirectory: "webkitdirectory"
            } : {}, $ = w ? {} : {
                onClick: k ? g : function() {}
                ,
                onKeydown: k ? m : function() {}
                ,
                onMouseenter: D,
                onMouseleave: E,
                onDrop: y,
                onDragover: y,
                tabindex: "0"
            };
            return _(C, I(I({}, $), {}, {
                class: N,
                role: "button",
                style: a.style
            }), {
                default: function() {
                    return [_("input", I(I(I({}, Hu(L, {
                        aria: !0,
                        data: !0
                    })), {}, {
                        id: T,
                        type: "file",
                        ref: s,
                        onClick: function(G) {
                            return G.stopPropagation()
                        },
                        key: o.value,
                        style: {
                            display: "none"
                        },
                        accept: M
                    }, R), {}, {
                        multiple: P,
                        onChange: p
                    }, A != null ? {
                        capture: A
                    } : {}), null), (x = r.default) === null || x === void 0 ? void 0 : x.call(r)]
                }
            })
        }
    }
});
function KT() {}
const RV = de({
    compatConfig: {
        MODE: 3
    },
    name: "Upload",
    inheritAttrs: !1,
    props: $t(Kne(), {
        componentTag: "span",
        prefixCls: "rc-upload",
        data: {},
        headers: {},
        name: "file",
        multipart: !1,
        onStart: KT,
        onError: KT,
        onSuccess: KT,
        multiple: !1,
        beforeUpload: null,
        customRequest: null,
        withCredentials: !1,
        openFileDialogOnClick: !0
    }),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.expose
          , o = Q()
          , l = function(u) {
            var c;
            (c = o.value) === null || c === void 0 || c.abort(u)
        };
        return i({
            abort: l
        }),
        function() {
            return _(_Fe, I(I(I({}, e), a), {}, {
                ref: o
            }), r)
        }
    }
});
var TFe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"
            }
        }]
    },
    name: "paper-clip",
    theme: "outlined"
};
const PFe = TFe;
function NV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            MFe(t, a, n[a])
        })
    }
    return t
}
function MFe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var BE = function(e, n) {
    var r = NV({}, e, n.attrs);
    return _(lt, NV({}, r, {
        icon: PFe
    }), null)
};
BE.displayName = "PaperClipOutlined";
BE.inheritAttrs = !1;
const AFe = BE;
var IFe = {
    icon: function(e, n) {
        return {
            tag: "svg",
            attrs: {
                viewBox: "64 64 896 896",
                focusable: "false"
            },
            children: [{
                tag: "path",
                attrs: {
                    d: "M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",
                    fill: e
                }
            }, {
                tag: "path",
                attrs: {
                    d: "M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",
                    fill: n
                }
            }, {
                tag: "path",
                attrs: {
                    d: "M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",
                    fill: n
                }
            }, {
                tag: "path",
                attrs: {
                    d: "M276 368a28 28 0 1056 0 28 28 0 10-56 0z",
                    fill: n
                }
            }, {
                tag: "path",
                attrs: {
                    d: "M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",
                    fill: e
                }
            }]
        }
    },
    name: "picture",
    theme: "twotone"
};
const kFe = IFe;
function $V(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            OFe(t, a, n[a])
        })
    }
    return t
}
function OFe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var VE = function(e, n) {
    var r = $V({}, e, n.attrs);
    return _(lt, $V({}, r, {
        icon: kFe
    }), null)
};
VE.displayName = "PictureTwoTone";
VE.inheritAttrs = !1;
const DFe = VE;
var EFe = {
    icon: function(e, n) {
        return {
            tag: "svg",
            attrs: {
                viewBox: "64 64 896 896",
                focusable: "false"
            },
            children: [{
                tag: "path",
                attrs: {
                    d: "M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",
                    fill: n
                }
            }, {
                tag: "path",
                attrs: {
                    d: "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",
                    fill: e
                }
            }]
        }
    },
    name: "file",
    theme: "twotone"
};
const LFe = EFe;
function FV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            RFe(t, a, n[a])
        })
    }
    return t
}
function RFe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var zE = function(e, n) {
    var r = FV({}, e, n.attrs);
    return _(lt, FV({}, r, {
        icon: LFe
    }), null)
};
zE.displayName = "FileTwoTone";
zE.inheritAttrs = !1;
const NFe = zE;
function Une() {
    return {
        capture: [Boolean, String],
        type: String,
        name: String,
        defaultFileList: Array,
        fileList: Array,
        action: [String, Function],
        directory: {
            type: Boolean,
            default: void 0
        },
        data: [Object, Function],
        method: String,
        headers: Object,
        showUploadList: {
            type: [Boolean, Object],
            default: void 0
        },
        multiple: {
            type: Boolean,
            default: void 0
        },
        accept: String,
        beforeUpload: Function,
        onChange: Function,
        "onUpdate:fileList": Function,
        onDrop: Function,
        listType: String,
        onPreview: Function,
        onDownload: Function,
        onReject: Function,
        onRemove: Function,
        remove: Function,
        supportServerRender: {
            type: Boolean,
            default: void 0
        },
        disabled: {
            type: Boolean,
            default: void 0
        },
        prefixCls: String,
        customRequest: Function,
        withCredentials: {
            type: Boolean,
            default: void 0
        },
        openFileDialogOnClick: {
            type: Boolean,
            default: void 0
        },
        locale: {
            type: Object,
            default: void 0
        },
        id: String,
        previewFile: Function,
        transformFile: Function,
        iconRender: Function,
        isImageUrl: Function,
        progress: Object,
        itemRender: Function,
        maxCount: Number,
        height: [Number, String],
        removeIcon: Function,
        downloadIcon: Function,
        previewIcon: Function
    }
}
function $Fe() {
    return {
        listType: String,
        onPreview: Function,
        onDownload: Function,
        onRemove: Function,
        items: Array,
        progress: Object,
        prefixCls: String,
        showRemoveIcon: {
            type: Boolean,
            default: void 0
        },
        showDownloadIcon: {
            type: Boolean,
            default: void 0
        },
        showPreviewIcon: {
            type: Boolean,
            default: void 0
        },
        removeIcon: Function,
        downloadIcon: Function,
        previewIcon: Function,
        locale: {
            type: Object,
            default: void 0
        },
        previewFile: Function,
        iconRender: Function,
        isImageUrl: Function,
        appendAction: Function,
        appendActionVisible: {
            type: Boolean,
            default: void 0
        },
        itemRender: Function
    }
}
function Jy(t) {
    return I(I({}, t), {}, {
        lastModified: t.lastModified,
        lastModifiedDate: t.lastModifiedDate,
        name: t.name,
        size: t.size,
        type: t.type,
        uid: t.uid,
        percent: 0,
        originFileObj: t
    })
}
function e1(t, e) {
    var n = $e(e)
      , r = n.findIndex(function(a) {
        var i = a.uid;
        return i === t.uid
    });
    return r === -1 ? n.push(t) : n[r] = t,
    n
}
function UT(t, e) {
    var n = t.uid !== void 0 ? "uid" : "name";
    return e.filter(function(r) {
        return r[n] === t[n]
    })[0]
}
function FFe(t, e) {
    var n = t.uid !== void 0 ? "uid" : "name"
      , r = e.filter(function(a) {
        return a[n] !== t[n]
    });
    return r.length === e.length ? null : r
}
var BFe = function() {
    var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""
      , n = e.split("/")
      , r = n[n.length - 1]
      , a = r.split(/#|\?/)[0];
    return (/\.[^./\\]*$/.exec(a) || [""])[0]
}
  , Yne = function(e) {
    return e.indexOf("image/") === 0
}
  , VFe = function(e) {
    if (e.type && !e.thumbUrl)
        return Yne(e.type);
    var n = e.thumbUrl || e.url || ""
      , r = BFe(n);
    return /^data:image\//.test(n) || /(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(r) ? !0 : !(/^data:/.test(n) || r)
}
  , ks = 200;
function zFe(t) {
    return new Promise(function(e) {
        if (!t.type || !Yne(t.type)) {
            e("");
            return
        }
        var n = document.createElement("canvas");
        n.width = ks,
        n.height = ks,
        n.style.cssText = "position: fixed; left: 0; top: 0; width: ".concat(ks, "px; height: ").concat(ks, "px; z-index: 9999; display: none;"),
        document.body.appendChild(n);
        var r = n.getContext("2d")
          , a = new Image;
        a.onload = function() {
            var i = a.width
              , o = a.height
              , l = ks
              , s = ks
              , u = 0
              , c = 0;
            i > o ? (s = o * (ks / i),
            c = -(s - l) / 2) : (l = i * (ks / o),
            u = -(l - s) / 2),
            r.drawImage(a, u, c, l, s);
            var f = n.toDataURL();
            document.body.removeChild(n),
            e(f)
        }
        ,
        a.src = window.URL.createObjectURL(t)
    }
    )
}
var HFe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
            }
        }]
    },
    name: "download",
    theme: "outlined"
};
const jFe = HFe;
function BV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            WFe(t, a, n[a])
        })
    }
    return t
}
function WFe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var HE = function(e, n) {
    var r = BV({}, e, n.attrs);
    return _(lt, BV({}, r, {
        icon: jFe
    }), null)
};
HE.displayName = "DownloadOutlined";
HE.inheritAttrs = !1;
const GFe = HE;
var KFe = function() {
    return {
        prefixCls: String,
        locale: {
            type: Object,
            default: void 0
        },
        file: Object,
        items: Array,
        listType: String,
        isImgUrl: Function,
        showRemoveIcon: {
            type: Boolean,
            default: void 0
        },
        showDownloadIcon: {
            type: Boolean,
            default: void 0
        },
        showPreviewIcon: {
            type: Boolean,
            default: void 0
        },
        removeIcon: Function,
        downloadIcon: Function,
        previewIcon: Function,
        iconRender: Function,
        actionIconRender: Function,
        itemRender: Function,
        onPreview: Function,
        onClose: Function,
        onDownload: Function,
        progress: {
            type: Object,
            default: void 0
        }
    }
};
const UFe = de({
    compatConfig: {
        MODE: 3
    },
    name: "ListItem",
    inheritAttrs: !1,
    props: KFe(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = Q(!1)
          , o = Q();
        ct(function() {
            o.value = setTimeout(function() {
                i.value = !0
            }, 300)
        }),
        Nt(function() {
            clearTimeout(o.value)
        });
        var l = je("upload", e)
          , s = l.rootPrefixCls
          , u = j(function() {
            return zu("".concat(s.value, "-fade"))
        });
        return function() {
            var c, f, d = e.prefixCls, v = e.locale, h = e.listType, p = e.file, g = e.items, m = e.progress, y = e.iconRender, b = y === void 0 ? r.iconRender : y, x = e.actionIconRender, C = x === void 0 ? r.actionIconRender : x, S = e.itemRender, w = S === void 0 ? r.itemRender : S, T = e.isImgUrl, P = e.showPreviewIcon, M = e.showRemoveIcon, A = e.showDownloadIcon, O = e.previewIcon, k = O === void 0 ? r.previewIcon : O, D = e.removeIcon, E = D === void 0 ? r.removeIcon : D, L = e.downloadIcon, N = L === void 0 ? r.downloadIcon : L, R = e.onPreview, $ = e.onDownload, W = e.onClose, B = a.class, G = a.style, K = "".concat(d, "-span"), V = b({
                file: p
            }), U = _("div", {
                class: "".concat(d, "-text-icon")
            }, [V]);
            if (h === "picture" || h === "picture-card")
                if (p.status === "uploading" || !p.thumbUrl && !p.url) {
                    var X, Y = (X = {},
                    z(X, "".concat(d, "-list-item-thumbnail"), !0),
                    z(X, "".concat(d, "-list-item-file"), p.status !== "uploading"),
                    X);
                    U = _("div", {
                        class: Y
                    }, [V])
                } else {
                    var te, ne = T != null && T(p) ? _("img", {
                        src: p.thumbUrl || p.url,
                        alt: p.name,
                        class: "".concat(d, "-list-item-image")
                    }, null) : V, ie = (te = {},
                    z(te, "".concat(d, "-list-item-thumbnail"), !0),
                    z(te, "".concat(d, "-list-item-file"), T && !T(p)),
                    te);
                    U = _("a", {
                        class: ie,
                        onClick: function(me) {
                            return R(p, me)
                        },
                        href: p.url || p.thumbUrl,
                        target: "_blank",
                        rel: "noopener noreferrer"
                    }, [ne])
                }
            var ae = (c = {},
            z(c, "".concat(d, "-list-item"), !0),
            z(c, "".concat(d, "-list-item-").concat(p.status), !0),
            z(c, "".concat(d, "-list-item-list-type-").concat(h), !0),
            c), q = typeof p.linkProps == "string" ? JSON.parse(p.linkProps) : p.linkProps, F = M ? C({
                customIcon: E ? E({
                    file: p
                }) : _(Vne, null, null),
                callback: function() {
                    return W(p)
                },
                prefixCls: d,
                title: v.removeFile
            }) : null, H = A && p.status === "done" ? C({
                customIcon: N ? N({
                    file: p
                }) : _(GFe, null, null),
                callback: function() {
                    return $(p)
                },
                prefixCls: d,
                title: v.downloadFile
            }) : null, ee = h !== "picture-card" && _("span", {
                key: "download-delete",
                class: ["".concat(d, "-list-item-card-actions"), {
                    picture: h === "picture"
                }]
            }, [H, F]), re = "".concat(d, "-list-item-name"), ue = p.url ? [_("a", I(I({
                key: "view",
                target: "_blank",
                rel: "noopener noreferrer",
                class: re,
                title: p.name
            }, q), {}, {
                href: p.url,
                onClick: function(me) {
                    return R(p, me)
                }
            }), [p.name]), ee] : [_("span", {
                key: "view",
                class: re,
                onClick: function(me) {
                    return R(p, me)
                },
                title: p.name
            }, [p.name]), ee], ve = {
                pointerEvents: "none",
                opacity: .5
            }, fe = P ? _("a", {
                href: p.url || p.thumbUrl,
                target: "_blank",
                rel: "noopener noreferrer",
                style: p.url || p.thumbUrl ? void 0 : ve,
                onClick: function(me) {
                    return R(p, me)
                },
                title: v.previewFile
            }, [k ? k({
                file: p
            }) : _(W8, null, null)]) : null, ce = h === "picture-card" && p.status !== "uploading" && _("span", {
                class: "".concat(d, "-list-item-actions")
            }, [fe, p.status === "done" && H, F]), le;
            if (p.response && typeof p.response == "string")
                le = p.response;
            else {
                var oe, se;
                le = ((oe = p.error) === null || oe === void 0 ? void 0 : oe.statusText) || ((se = p.error) === null || se === void 0 ? void 0 : se.message) || v.uploadError
            }
            var xe = _("span", {
                class: K
            }, [U, ue])
              , Pe = _("div", {
                class: ae
            }, [_("div", {
                class: "".concat(d, "-list-item-info")
            }, [xe]), ce, i.value && _(dh, u.value, {
                default: function() {
                    return [Fr(_("div", {
                        class: "".concat(d, "-list-item-progress")
                    }, ["percent"in p ? _(sE, I(I({}, m), {}, {
                        type: "line",
                        percent: p.percent
                    }), null) : null]), [[Io, p.status === "uploading"]])]
                }
            })])
              , Fe = (f = {},
            z(f, "".concat(d, "-list-").concat(h, "-container"), !0),
            z(f, "".concat(B), !!B),
            f)
              , ze = p.status === "error" ? _(vo, {
                title: le,
                getPopupContainer: function(me) {
                    return me.parentNode
                }
            }, {
                default: function() {
                    return [Pe]
                }
            }) : Pe;
            return _("div", {
                class: Fe,
                style: G,
                ref: Q
            }, [w ? w({
                originNode: ze,
                file: p,
                fileList: g,
                actions: {
                    download: $.bind(null, p),
                    preview: R.bind(null, p),
                    remove: W.bind(null, p)
                }
            }) : ze])
        }
    }
});
var YFe = function(e, n) {
    var r, a = n.slots;
    return ar((r = a.default) === null || r === void 0 ? void 0 : r.call(a))[0]
};
const qFe = de({
    compatConfig: {
        MODE: 3
    },
    name: "AUploadList",
    props: $t($Fe(), {
        listType: "text",
        progress: {
            strokeWidth: 2,
            showInfo: !1
        },
        showRemoveIcon: !0,
        showDownloadIcon: !1,
        showPreviewIcon: !0,
        previewFile: zFe,
        isImageUrl: VFe,
        items: [],
        appendActionVisible: !0
    }),
    setup: function(e, n) {
        var r = n.slots
          , a = n.expose
          , i = Q(!1)
          , o = qn();
        ct(function() {
            i.value == !0
        }),
        pt(function() {
            e.listType !== "picture" && e.listType !== "picture-card" || (e.items || []).forEach(function(m) {
                typeof document == "undefined" || typeof window == "undefined" || !window.FileReader || !window.File || !(m.originFileObj instanceof File || m.originFileObj instanceof Blob) || m.thumbUrl !== void 0 || (m.thumbUrl = "",
                e.previewFile && e.previewFile(m.originFileObj).then(function(y) {
                    m.thumbUrl = y || "",
                    o.update()
                }))
            })
        });
        var l = function(y, b) {
            if (!!e.onPreview)
                return b == null || b.preventDefault(),
                e.onPreview(y)
        }
          , s = function(y) {
            typeof e.onDownload == "function" ? e.onDownload(y) : y.url && window.open(y.url)
        }
          , u = function(y) {
            var b;
            (b = e.onRemove) === null || b === void 0 || b.call(e, y)
        }
          , c = function(y) {
            var b = y.file
              , x = e.iconRender || r.iconRender;
            if (x)
                return x({
                    file: b,
                    listType: e.listType
                });
            var C = b.status === "uploading"
              , S = e.isImageUrl && e.isImageUrl(b) ? _(DFe, null, null) : _(NFe, null, null)
              , w = _(C ? Co : AFe, null, null);
            return e.listType === "picture" ? w = C ? _(Co, null, null) : S : e.listType === "picture-card" && (w = C ? e.locale.uploading : S),
            w
        }
          , f = function(y) {
            var b = y.customIcon
              , x = y.callback
              , C = y.prefixCls
              , S = y.title
              , w = {
                type: "text",
                size: "small",
                title: S,
                onClick: function() {
                    x()
                },
                class: "".concat(C, "-list-item-card-actions-btn")
            };
            return cr(b) ? _(Pr, w, {
                icon: function() {
                    return b
                }
            }) : _(Pr, w, {
                default: function() {
                    return [_("span", null, [b])]
                }
            })
        };
        a({
            handlePreview: l,
            handleDownload: s
        });
        var d = je("upload", e)
          , v = d.prefixCls
          , h = d.direction
          , p = j(function() {
            var m;
            return m = {},
            z(m, "".concat(v.value, "-list"), !0),
            z(m, "".concat(v.value, "-list-").concat(e.listType), !0),
            z(m, "".concat(v.value, "-list-rtl"), h.value === "rtl"),
            m
        })
          , g = j(function() {
            return I(I(I({}, wm("".concat(v.value, "-").concat(e.listType === "picture-card" ? "animate-inline" : "animate"))), RO("".concat(v.value, "-").concat(e.listType === "picture-card" ? "animate-inline" : "animate"))), {}, {
                class: p.value,
                appear: i.value
            })
        });
        return function() {
            var m = e.listType
              , y = e.locale
              , b = e.isImageUrl
              , x = e.items
              , C = x === void 0 ? [] : x
              , S = e.showPreviewIcon
              , w = e.showRemoveIcon
              , T = e.showDownloadIcon
              , P = e.removeIcon
              , M = e.previewIcon
              , A = e.downloadIcon
              , O = e.progress
              , k = e.appendAction
              , D = e.itemRender
              , E = e.appendActionVisible
              , L = k == null ? void 0 : k();
            return _(dO, I(I({}, g.value), {}, {
                tag: "div"
            }), {
                default: function() {
                    return [C.map(function(R) {
                        var $ = R.uid;
                        return _(UFe, {
                            key: $,
                            locale: y,
                            prefixCls: v.value,
                            file: R,
                            items: C,
                            progress: O,
                            listType: m,
                            isImgUrl: b,
                            showPreviewIcon: S,
                            showRemoveIcon: w,
                            showDownloadIcon: T,
                            onPreview: l,
                            onDownload: s,
                            onClose: u,
                            removeIcon: P,
                            previewIcon: M,
                            downloadIcon: A,
                            itemRender: D
                        }, I(I({}, r), {}, {
                            iconRender: c,
                            actionIconRender: f
                        }))
                    }), k ? Fr(_(YFe, {
                        key: "__ant_upload_appendAction"
                    }, {
                        default: function() {
                            return L
                        }
                    }), [[Io, !!E]]) : null]
                }
            })
        }
    }
});
var XFe = ["class", "style"]
  , Kp = "__LIST_IGNORE_".concat(Date.now(), "__");
const zb = de({
    compatConfig: {
        MODE: 3
    },
    name: "AUpload",
    inheritAttrs: !1,
    props: $t(Une(), {
        type: "select",
        multiple: !1,
        action: "",
        data: {},
        accept: "",
        showUploadList: !0,
        listType: "text",
        disabled: !1,
        supportServerRender: !0
    }),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs
          , i = n.expose
          , o = br()
          , l = zn(e.defaultFileList || [], {
            value: at(e, "fileList"),
            postState: function(k) {
                var D = Date.now();
                return (k != null ? k : []).map(function(E, L) {
                    return !E.uid && !Object.isFrozen(E) && (E.uid = "__AUTO__".concat(D, "_").concat(L, "__")),
                    E
                })
            }
        })
          , s = De(l, 2)
          , u = s[0]
          , c = s[1]
          , f = Q("drop")
          , d = Q();
        ct(function() {
            sn(e.fileList !== void 0 || a.value === void 0, "Upload", "`value` is not a valid prop, do you mean `fileList`?"),
            sn(e.transformFile === void 0, "Upload", "`transformFile` is deprecated. Please use `beforeUpload` directly."),
            sn(e.remove === void 0, "Upload", "`remove` props is deprecated. Please use `remove` event.")
        });
        var v = function(k, D, E) {
            var L, N, R = $e(D);
            e.maxCount === 1 ? R = R.slice(-1) : e.maxCount && (R = R.slice(0, e.maxCount)),
            c(R);
            var $ = {
                file: k,
                fileList: R
            };
            E && ($.event = E),
            (L = e["onUpdate:fileList"]) === null || L === void 0 || L.call(e, $.fileList),
            (N = e.onChange) === null || N === void 0 || N.call(e, $),
            o.onFieldChange()
        }
          , h = function() {
            var O = Kf(Ha.mark(function k(D, E) {
                var L, N, R, $;
                return Ha.wrap(function(B) {
                    for (; ; )
                        switch (B.prev = B.next) {
                        case 0:
                            if (L = e.beforeUpload,
                            N = e.transformFile,
                            R = D,
                            !L) {
                                B.next = 13;
                                break
                            }
                            return B.next = 5,
                            L(D, E);
                        case 5:
                            if ($ = B.sent,
                            $ !== !1) {
                                B.next = 8;
                                break
                            }
                            return B.abrupt("return", !1);
                        case 8:
                            if (delete D[Kp],
                            $ !== Kp) {
                                B.next = 12;
                                break
                            }
                            return Object.defineProperty(D, Kp, {
                                value: !0,
                                configurable: !0
                            }),
                            B.abrupt("return", !1);
                        case 12:
                            We($) === "object" && $ && (R = $);
                        case 13:
                            if (!N) {
                                B.next = 17;
                                break
                            }
                            return B.next = 16,
                            N(R);
                        case 16:
                            R = B.sent;
                        case 17:
                            return B.abrupt("return", R);
                        case 18:
                        case "end":
                            return B.stop()
                        }
                }, k)
            }));
            return function(D, E) {
                return O.apply(this, arguments)
            }
        }()
          , p = function(k) {
            var D = k.filter(function(N) {
                return !N.file[Kp]
            });
            if (!!D.length) {
                var E = D.map(function(N) {
                    return Jy(N.file)
                })
                  , L = $e(u.value);
                E.forEach(function(N) {
                    L = e1(N, L)
                }),
                E.forEach(function(N, R) {
                    var $ = N;
                    if (D[R].parsedFile)
                        N.status = "uploading";
                    else {
                        var W = N.originFileObj, B;
                        try {
                            B = new File([W],W.name,{
                                type: W.type
                            })
                        } catch (G) {
                            B = new Blob([W],{
                                type: W.type
                            }),
                            B.name = W.name,
                            B.lastModifiedDate = new Date,
                            B.lastModified = new Date().getTime()
                        }
                        B.uid = N.uid,
                        $ = B
                    }
                    v($, L)
                })
            }
        }
          , g = function(k, D, E) {
            try {
                typeof k == "string" && (k = JSON.parse(k))
            } catch (R) {}
            if (!!UT(D, u.value)) {
                var L = Jy(D);
                L.status = "done",
                L.percent = 100,
                L.response = k,
                L.xhr = E;
                var N = e1(L, u.value);
                v(L, N)
            }
        }
          , m = function(k, D) {
            if (!!UT(D, u.value)) {
                var E = Jy(D);
                E.status = "uploading",
                E.percent = k.percent;
                var L = e1(E, u.value);
                v(E, L, k)
            }
        }
          , y = function(k, D, E) {
            if (!!UT(E, u.value)) {
                var L = Jy(E);
                L.error = k,
                L.response = D,
                L.status = "error";
                var N = e1(L, u.value);
                v(L, N)
            }
        }
          , b = function(k) {
            var D, E = e.onRemove || e.remove;
            Promise.resolve(typeof E == "function" ? E(k) : E).then(function(L) {
                if (L !== !1) {
                    var N = FFe(k, u.value);
                    if (N) {
                        var R, $;
                        D = I(I({}, k), {}, {
                            status: "removed"
                        }),
                        (R = u.value) === null || R === void 0 || R.forEach(function(W) {
                            var B = D.uid !== void 0 ? "uid" : "name";
                            W[B] === D[B] && !Object.isFrozen(W) && (W.status = "removed")
                        }),
                        ($ = d.value) === null || $ === void 0 || $.abort(D),
                        v(D, N)
                    }
                }
            })
        }
          , x = function(k) {
            if (f.value = k.type,
            k.type === "drop") {
                var D;
                (D = e.onDrop) === null || D === void 0 || D.call(e, k)
            }
        };
        i({
            onBatchStart: p,
            onSuccess: g,
            onProgress: m,
            onError: y,
            fileList: u,
            upload: d
        });
        var C = je("upload", e)
          , S = C.prefixCls
          , w = C.direction
          , T = xl("Upload", yo.Upload, j(function() {
            return e.locale
        }))
          , P = De(T, 1)
          , M = P[0]
          , A = function(k, D) {
            var E = e.removeIcon
              , L = e.previewIcon
              , N = e.downloadIcon
              , R = e.previewFile
              , $ = e.onPreview
              , W = e.onDownload
              , B = e.disabled
              , G = e.isImageUrl
              , K = e.progress
              , V = e.itemRender
              , U = e.iconRender
              , X = e.showUploadList
              , Y = typeof X == "boolean" ? {} : X
              , te = Y.showDownloadIcon
              , ne = Y.showPreviewIcon
              , ie = Y.showRemoveIcon;
            return X ? _(qFe, {
                listType: e.listType,
                items: u.value,
                previewFile: R,
                onPreview: $,
                onDownload: W,
                onRemove: b,
                showRemoveIcon: !B && ie,
                showPreviewIcon: ne,
                showDownloadIcon: te,
                removeIcon: E,
                previewIcon: L,
                downloadIcon: N,
                iconRender: U,
                locale: M.value,
                isImageUrl: G,
                progress: K,
                itemRender: V,
                appendActionVisible: D,
                appendAction: k
            }, I({}, r)) : k == null ? void 0 : k()
        };
        return function() {
            var O, k, D, E = e.listType, L = e.disabled, N = e.type;
            a.class,
            a.style;
            var R = tt(a, XFe)
              , $ = I(I(I({
                onBatchStart: p,
                onError: y,
                onProgress: m,
                onSuccess: g
            }, R), e), {}, {
                id: (O = e.id) !== null && O !== void 0 ? O : o.id.value,
                prefixCls: S.value,
                beforeUpload: h,
                onChange: void 0
            });
            if (delete $.remove,
            (!r.default || L) && delete $.id,
            N === "drag") {
                var W, B, G = he(S.value, (W = {},
                z(W, "".concat(S.value, "-drag"), !0),
                z(W, "".concat(S.value, "-drag-uploading"), u.value.some(function(X) {
                    return X.status === "uploading"
                })),
                z(W, "".concat(S.value, "-drag-hover"), f.value === "dragover"),
                z(W, "".concat(S.value, "-disabled"), L),
                z(W, "".concat(S.value, "-rtl"), w.value === "rtl"),
                W), a.class);
                return _("span", null, [_("div", {
                    class: G,
                    onDrop: x,
                    onDragover: x,
                    onDragleave: x,
                    style: a.style
                }, [_(RV, I(I({}, $), {}, {
                    ref: d,
                    class: "".concat(S.value, "-btn")
                }), I({
                    default: function() {
                        return [_("div", {
                            class: "".concat(S.value, "-drag-container")
                        }, [(B = r.default) === null || B === void 0 ? void 0 : B.call(r)])]
                    }
                }, r))]), A()])
            }
            var K = he(S.value, (k = {},
            z(k, "".concat(S.value, "-select"), !0),
            z(k, "".concat(S.value, "-select-").concat(E), !0),
            z(k, "".concat(S.value, "-disabled"), L),
            z(k, "".concat(S.value, "-rtl"), w.value === "rtl"),
            k))
              , V = bn((D = r.default) === null || D === void 0 ? void 0 : D.call(r))
              , U = function(Y) {
                return _("div", {
                    class: K,
                    style: Y
                }, [_(RV, I(I({}, $), {}, {
                    ref: d
                }), r)])
            };
            return E === "picture-card" ? _("span", {
                class: he("".concat(S.value, "-picture-card-wrapper"), a.class)
            }, [A(U, !!(V && V.length))]) : _("span", {
                class: a.class
            }, [U(V && V.length ? void 0 : {
                display: "none"
            }), A()])
        }
    }
});
var ZFe = ["height"]
  , QFe = ["style"];
const Hb = de({
    compatConfig: {
        MODE: 3
    },
    name: "AUploadDragger",
    inheritAttrs: !1,
    props: Une(),
    setup: function(e, n) {
        var r = n.slots
          , a = n.attrs;
        return function() {
            var i = e.height
              , o = tt(e, ZFe)
              , l = a.style
              , s = tt(a, QFe)
              , u = I(I(I({}, o), s), {}, {
                type: "drag",
                style: I(I({}, l), {}, {
                    height: typeof i == "number" ? "".concat(i, "px") : i
                })
            });
            return _(zb, u, r)
        }
    }
});
var JFe = Hb;
const e9e = Wt(zb, {
    Dragger: Hb,
    LIST_IGNORE: Kp,
    install: function(e) {
        return e.component(zb.name, zb),
        e.component(Hb.name, Hb),
        e
    }
})
  , VV = Object.freeze(Object.defineProperty({
    __proto__: null,
    Affix: KZ,
    Anchor: Wc,
    AnchorLink: YZ,
    AutoComplete: C_e,
    AutoCompleteOptGroup: S_e,
    AutoCompleteOption: x_e,
    Alert: A_e,
    Avatar: vf,
    AvatarGroup: Bx,
    BackTop: J_e,
    Badge: pb,
    BadgeRibbon: Vx,
    Breadcrumb: hf,
    BreadcrumbItem: m0,
    BreadcrumbSeparator: Kx,
    Button: Pr,
    ButtonGroup: Hx,
    Calendar: d3e,
    Card: gv,
    CardGrid: Qx,
    CardMeta: Zx,
    Collapse: bg,
    CollapsePanel: Jx,
    Carousel: nAe,
    Cascader: nDe,
    Checkbox: Ri,
    CheckboxGroup: tS,
    Col: Ji,
    Comment: fDe,
    ConfigProvider: df,
    DatePicker: BDe,
    MonthPicker: wb,
    WeekPicker: Cb,
    RangePicker: Tb,
    QuarterPicker: _b,
    Descriptions: UDe,
    DescriptionsItem: dte,
    Divider: XDe,
    Dropdown: sl,
    DropdownButton: g0,
    Drawer: m8e,
    Empty: Zs,
    Form: Qs,
    FormItem: ete,
    FormItemRest: $x,
    Grid: hMe,
    Input: Sr,
    InputGroup: _te,
    InputPassword: Mte,
    InputSearch: Tte,
    Textarea: H8,
    Image: xEe,
    ImagePreviewGroup: Rte,
    InputNumber: NEe,
    Layout: qEe,
    LayoutHeader: GEe,
    LayoutSider: UEe,
    LayoutFooter: KEe,
    LayoutContent: YEe,
    List: S6e,
    ListItem: Vte,
    ListItemMeta: Fte,
    message: HO,
    Menu: Xn,
    MenuDivider: Gx,
    MenuItem: ns,
    MenuItemGroup: Wx,
    SubMenu: Bv,
    Mentions: H6e,
    MentionsOption: Ob,
    Modal: Vr,
    Statistic: Ul,
    StatisticCountdown: b5e,
    notification: ZO,
    PageHeader: E5e,
    Pagination: bw,
    Popconfirm: $5e,
    Popover: VQ,
    Progress: sE,
    Radio: xa,
    RadioButton: Yx,
    RadioGroup: m8,
    Rate: vLe,
    Result: ILe,
    Row: Wd,
    Select: Au,
    SelectOptGroup: m_e,
    SelectOption: g_e,
    Skeleton: ga,
    SkeletonButton: fE,
    SkeletonAvatar: hE,
    SkeletonInput: dE,
    SkeletonImage: vE,
    SkeletonTitle: xw,
    Slider: JLe,
    Space: aRe,
    Spin: mu,
    Steps: cRe,
    Step: Db,
    Switch: hRe,
    Table: M7e,
    TableColumn: $b,
    TableColumnGroup: Fb,
    TableSummary: Bb,
    TableSummaryRow: sS,
    TableSummaryCell: uS,
    Transfer: K7e,
    Tree: Lne,
    TreeNode: Nb,
    DirectoryTree: Rb,
    TreeSelect: h$e,
    TreeSelectNode: kA,
    Tabs: pf,
    TabPane: Xx,
    Tag: ite,
    CheckableTag: nS,
    TimePicker: g$e,
    TimeRangePicker: Vb,
    Timeline: Mg,
    TimelineItem: w0,
    Tooltip: vo,
    Typography: Na,
    TypographyLink: RE,
    TypographyParagraph: NE,
    TypographyText: $E,
    TypographyTitle: FE,
    Upload: e9e,
    UploadDragger: JFe,
    LocaleProvider: mZ
}, Symbol.toStringTag, {
    value: "Module"
}))
  , t9e = "3.2.20";
var n9e = function(e) {
    return Object.keys(VV).forEach(function(n) {
        var r = VV[n];
        r.install && e.use(r)
    }),
    e.config.globalProperties.$message = HO,
    e.config.globalProperties.$notification = ZO,
    e.config.globalProperties.$info = Vr.info,
    e.config.globalProperties.$success = Vr.success,
    e.config.globalProperties.$error = Vr.error,
    e.config.globalProperties.$warning = Vr.warning,
    e.config.globalProperties.$confirm = Vr.confirm,
    e.config.globalProperties.$destroyAll = Vr.destroyAll,
    e
};
const Dpt = {
    version: t9e,
    install: n9e
};
function qne(t, e) {
    return function() {
        return t.apply(e, arguments)
    }
}
const {toString: r9e} = Object.prototype
  , {getPrototypeOf: jE} = Object
  , Ew = (t=>e=>{
    const n = r9e.call(e);
    return t[n] || (t[n] = n.slice(8, -1).toLowerCase())
}
)(Object.create(null))
  , _l = t=>(t = t.toLowerCase(),
e=>Ew(e) === t)
  , Lw = t=>e=>typeof e === t
  , {isArray: Ch} = Array
  , _0 = Lw("undefined");
function a9e(t) {
    return t !== null && !_0(t) && t.constructor !== null && !_0(t.constructor) && Ni(t.constructor.isBuffer) && t.constructor.isBuffer(t)
}
const Xne = _l("ArrayBuffer");
function i9e(t) {
    let e;
    return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Xne(t.buffer),
    e
}
const o9e = Lw("string")
  , Ni = Lw("function")
  , Zne = Lw("number")
  , Rw = t=>t !== null && typeof t == "object"
  , l9e = t=>t === !0 || t === !1
  , jb = t=>{
    if (Ew(t) !== "object")
        return !1;
    const e = jE(t);
    return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t)
}
  , s9e = _l("Date")
  , u9e = _l("File")
  , c9e = _l("Blob")
  , f9e = _l("FileList")
  , d9e = t=>Rw(t) && Ni(t.pipe)
  , v9e = t=>{
    let e;
    return t && (typeof FormData == "function" && t instanceof FormData || Ni(t.append) && ((e = Ew(t)) === "formdata" || e === "object" && Ni(t.toString) && t.toString() === "[object FormData]"))
}
  , h9e = _l("URLSearchParams")
  , p9e = t=>t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function Rm(t, e, {allOwnKeys: n=!1}={}) {
    if (t === null || typeof t == "undefined")
        return;
    let r, a;
    if (typeof t != "object" && (t = [t]),
    Ch(t))
        for (r = 0,
        a = t.length; r < a; r++)
            e.call(null, t[r], r, t);
    else {
        const i = n ? Object.getOwnPropertyNames(t) : Object.keys(t)
          , o = i.length;
        let l;
        for (r = 0; r < o; r++)
            l = i[r],
            e.call(null, t[l], l, t)
    }
}
function Qne(t, e) {
    e = e.toLowerCase();
    const n = Object.keys(t);
    let r = n.length, a;
    for (; r-- > 0; )
        if (a = n[r],
        e === a.toLowerCase())
            return a;
    return null
}
const Jne = (()=>typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : global)()
  , ere = t=>!_0(t) && t !== Jne;
function OA() {
    const {caseless: t} = ere(this) && this || {}
      , e = {}
      , n = (r,a)=>{
        const i = t && Qne(e, a) || a;
        jb(e[i]) && jb(r) ? e[i] = OA(e[i], r) : jb(r) ? e[i] = OA({}, r) : Ch(r) ? e[i] = r.slice() : e[i] = r
    }
    ;
    for (let r = 0, a = arguments.length; r < a; r++)
        arguments[r] && Rm(arguments[r], n);
    return e
}
const g9e = (t,e,n,{allOwnKeys: r}={})=>(Rm(e, (a,i)=>{
    n && Ni(a) ? t[i] = qne(a, n) : t[i] = a
}
, {
    allOwnKeys: r
}),
t)
  , m9e = t=>(t.charCodeAt(0) === 65279 && (t = t.slice(1)),
t)
  , y9e = (t,e,n,r)=>{
    t.prototype = Object.create(e.prototype, r),
    t.prototype.constructor = t,
    Object.defineProperty(t, "super", {
        value: e.prototype
    }),
    n && Object.assign(t.prototype, n)
}
  , b9e = (t,e,n,r)=>{
    let a, i, o;
    const l = {};
    if (e = e || {},
    t == null)
        return e;
    do {
        for (a = Object.getOwnPropertyNames(t),
        i = a.length; i-- > 0; )
            o = a[i],
            (!r || r(o, t, e)) && !l[o] && (e[o] = t[o],
            l[o] = !0);
        t = n !== !1 && jE(t)
    } while (t && (!n || n(t, e)) && t !== Object.prototype);
    return e
}
  , x9e = (t,e,n)=>{
    t = String(t),
    (n === void 0 || n > t.length) && (n = t.length),
    n -= e.length;
    const r = t.indexOf(e, n);
    return r !== -1 && r === n
}
  , S9e = t=>{
    if (!t)
        return null;
    if (Ch(t))
        return t;
    let e = t.length;
    if (!Zne(e))
        return null;
    const n = new Array(e);
    for (; e-- > 0; )
        n[e] = t[e];
    return n
}
  , C9e = (t=>e=>t && e instanceof t)(typeof Uint8Array != "undefined" && jE(Uint8Array))
  , w9e = (t,e)=>{
    const r = (t && t[Symbol.iterator]).call(t);
    let a;
    for (; (a = r.next()) && !a.done; ) {
        const i = a.value;
        e.call(t, i[0], i[1])
    }
}
  , _9e = (t,e)=>{
    let n;
    const r = [];
    for (; (n = t.exec(e)) !== null; )
        r.push(n);
    return r
}
  , T9e = _l("HTMLFormElement")
  , P9e = t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, a) {
    return r.toUpperCase() + a
})
  , zV = (({hasOwnProperty: t})=>(e,n)=>t.call(e, n))(Object.prototype)
  , M9e = _l("RegExp")
  , tre = (t,e)=>{
    const n = Object.getOwnPropertyDescriptors(t)
      , r = {};
    Rm(n, (a,i)=>{
        e(a, i, t) !== !1 && (r[i] = a)
    }
    ),
    Object.defineProperties(t, r)
}
  , A9e = t=>{
    tre(t, (e,n)=>{
        if (Ni(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
            return !1;
        const r = t[n];
        if (!!Ni(r)) {
            if (e.enumerable = !1,
            "writable"in e) {
                e.writable = !1;
                return
            }
            e.set || (e.set = ()=>{
                throw Error("Can not rewrite read-only method '" + n + "'")
            }
            )
        }
    }
    )
}
  , I9e = (t,e)=>{
    const n = {}
      , r = a=>{
        a.forEach(i=>{
            n[i] = !0
        }
        )
    }
    ;
    return Ch(t) ? r(t) : r(String(t).split(e)),
    n
}
  , k9e = ()=>{}
  , O9e = (t,e)=>(t = +t,
Number.isFinite(t) ? t : e)
  , YT = "abcdefghijklmnopqrstuvwxyz"
  , HV = "0123456789"
  , nre = {
    DIGIT: HV,
    ALPHA: YT,
    ALPHA_DIGIT: YT + YT.toUpperCase() + HV
}
  , D9e = (t=16,e=nre.ALPHA_DIGIT)=>{
    let n = "";
    const {length: r} = e;
    for (; t--; )
        n += e[Math.random() * r | 0];
    return n
}
;
function E9e(t) {
    return !!(t && Ni(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator])
}
const L9e = t=>{
    const e = new Array(10)
      , n = (r,a)=>{
        if (Rw(r)) {
            if (e.indexOf(r) >= 0)
                return;
            if (!("toJSON"in r)) {
                e[a] = r;
                const i = Ch(r) ? [] : {};
                return Rm(r, (o,l)=>{
                    const s = n(o, a + 1);
                    !_0(s) && (i[l] = s)
                }
                ),
                e[a] = void 0,
                i
            }
        }
        return r
    }
    ;
    return n(t, 0)
}
  , R9e = _l("AsyncFunction")
  , N9e = t=>t && (Rw(t) || Ni(t)) && Ni(t.then) && Ni(t.catch)
  , Be = {
    isArray: Ch,
    isArrayBuffer: Xne,
    isBuffer: a9e,
    isFormData: v9e,
    isArrayBufferView: i9e,
    isString: o9e,
    isNumber: Zne,
    isBoolean: l9e,
    isObject: Rw,
    isPlainObject: jb,
    isUndefined: _0,
    isDate: s9e,
    isFile: u9e,
    isBlob: c9e,
    isRegExp: M9e,
    isFunction: Ni,
    isStream: d9e,
    isURLSearchParams: h9e,
    isTypedArray: C9e,
    isFileList: f9e,
    forEach: Rm,
    merge: OA,
    extend: g9e,
    trim: p9e,
    stripBOM: m9e,
    inherits: y9e,
    toFlatObject: b9e,
    kindOf: Ew,
    kindOfTest: _l,
    endsWith: x9e,
    toArray: S9e,
    forEachEntry: w9e,
    matchAll: _9e,
    isHTMLForm: T9e,
    hasOwnProperty: zV,
    hasOwnProp: zV,
    reduceDescriptors: tre,
    freezeMethods: A9e,
    toObjectSet: I9e,
    toCamelCase: P9e,
    noop: k9e,
    toFiniteNumber: O9e,
    findKey: Qne,
    global: Jne,
    isContextDefined: ere,
    ALPHABET: nre,
    generateString: D9e,
    isSpecCompliantForm: E9e,
    toJSONObject: L9e,
    isAsyncFn: R9e,
    isThenable: N9e
};
function yn(t, e, n, r, a) {
    Error.call(this),
    Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack,
    this.message = t,
    this.name = "AxiosError",
    e && (this.code = e),
    n && (this.config = n),
    r && (this.request = r),
    a && (this.response = a)
}
Be.inherits(yn, Error, {
    toJSON: function() {
        return {
            message: this.message,
            name: this.name,
            description: this.description,
            number: this.number,
            fileName: this.fileName,
            lineNumber: this.lineNumber,
            columnNumber: this.columnNumber,
            stack: this.stack,
            config: Be.toJSONObject(this.config),
            code: this.code,
            status: this.response && this.response.status ? this.response.status : null
        }
    }
});
const rre = yn.prototype
  , are = {};
["ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", "ECONNABORTED", "ETIMEDOUT", "ERR_NETWORK", "ERR_FR_TOO_MANY_REDIRECTS", "ERR_DEPRECATED", "ERR_BAD_RESPONSE", "ERR_BAD_REQUEST", "ERR_CANCELED", "ERR_NOT_SUPPORT", "ERR_INVALID_URL"].forEach(t=>{
    are[t] = {
        value: t
    }
}
);
Object.defineProperties(yn, are);
Object.defineProperty(rre, "isAxiosError", {
    value: !0
});
yn.from = (t,e,n,r,a,i)=>{
    const o = Object.create(rre);
    return Be.toFlatObject(t, o, function(s) {
        return s !== Error.prototype
    }, l=>l !== "isAxiosError"),
    yn.call(o, t.message, e, n, r, a),
    o.cause = t,
    o.name = t.name,
    i && Object.assign(o, i),
    o
}
;
const $9e = null;
function DA(t) {
    return Be.isPlainObject(t) || Be.isArray(t)
}
function ire(t) {
    return Be.endsWith(t, "[]") ? t.slice(0, -2) : t
}
function jV(t, e, n) {
    return t ? t.concat(e).map(function(a, i) {
        return a = ire(a),
        !n && i ? "[" + a + "]" : a
    }).join(n ? "." : "") : e
}
function F9e(t) {
    return Be.isArray(t) && !t.some(DA)
}
const B9e = Be.toFlatObject(Be, {}, null, function(e) {
    return /^is[A-Z]/.test(e)
});
function Nw(t, e, n) {
    if (!Be.isObject(t))
        throw new TypeError("target must be an object");
    e = e || new FormData,
    n = Be.toFlatObject(n, {
        metaTokens: !0,
        dots: !1,
        indexes: !1
    }, !1, function(p, g) {
        return !Be.isUndefined(g[p])
    });
    const r = n.metaTokens
      , a = n.visitor || c
      , i = n.dots
      , o = n.indexes
      , s = (n.Blob || typeof Blob != "undefined" && Blob) && Be.isSpecCompliantForm(e);
    if (!Be.isFunction(a))
        throw new TypeError("visitor must be a function");
    function u(h) {
        if (h === null)
            return "";
        if (Be.isDate(h))
            return h.toISOString();
        if (!s && Be.isBlob(h))
            throw new yn("Blob is not supported. Use a Buffer instead.");
        return Be.isArrayBuffer(h) || Be.isTypedArray(h) ? s && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h
    }
    function c(h, p, g) {
        let m = h;
        if (h && !g && typeof h == "object") {
            if (Be.endsWith(p, "{}"))
                p = r ? p : p.slice(0, -2),
                h = JSON.stringify(h);
            else if (Be.isArray(h) && F9e(h) || (Be.isFileList(h) || Be.endsWith(p, "[]")) && (m = Be.toArray(h)))
                return p = ire(p),
                m.forEach(function(b, x) {
                    !(Be.isUndefined(b) || b === null) && e.append(o === !0 ? jV([p], x, i) : o === null ? p : p + "[]", u(b))
                }),
                !1
        }
        return DA(h) ? !0 : (e.append(jV(g, p, i), u(h)),
        !1)
    }
    const f = []
      , d = Object.assign(B9e, {
        defaultVisitor: c,
        convertValue: u,
        isVisitable: DA
    });
    function v(h, p) {
        if (!Be.isUndefined(h)) {
            if (f.indexOf(h) !== -1)
                throw Error("Circular reference detected in " + p.join("."));
            f.push(h),
            Be.forEach(h, function(m, y) {
                (!(Be.isUndefined(m) || m === null) && a.call(e, m, Be.isString(y) ? y.trim() : y, p, d)) === !0 && v(m, p ? p.concat(y) : [y])
            }),
            f.pop()
        }
    }
    if (!Be.isObject(t))
        throw new TypeError("data must be an object");
    return v(t),
    e
}
function WV(t) {
    const e = {
        "!": "%21",
        "'": "%27",
        "(": "%28",
        ")": "%29",
        "~": "%7E",
        "%20": "+",
        "%00": "\0"
    };
    return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
        return e[r]
    })
}
function WE(t, e) {
    this._pairs = [],
    t && Nw(t, this, e)
}
const ore = WE.prototype;
ore.append = function(e, n) {
    this._pairs.push([e, n])
}
;
ore.toString = function(e) {
    const n = e ? function(r) {
        return e.call(this, r, WV)
    }
    : WV;
    return this._pairs.map(function(a) {
        return n(a[0]) + "=" + n(a[1])
    }, "").join("&")
}
;
function V9e(t) {
    return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]")
}
function lre(t, e, n) {
    if (!e)
        return t;
    const r = n && n.encode || V9e
      , a = n && n.serialize;
    let i;
    if (a ? i = a(e, n) : i = Be.isURLSearchParams(e) ? e.toString() : new WE(e,n).toString(r),
    i) {
        const o = t.indexOf("#");
        o !== -1 && (t = t.slice(0, o)),
        t += (t.indexOf("?") === -1 ? "?" : "&") + i
    }
    return t
}
class z9e {
    constructor() {
        this.handlers = []
    }
    use(e, n, r) {
        return this.handlers.push({
            fulfilled: e,
            rejected: n,
            synchronous: r ? r.synchronous : !1,
            runWhen: r ? r.runWhen : null
        }),
        this.handlers.length - 1
    }
    eject(e) {
        this.handlers[e] && (this.handlers[e] = null)
    }
    clear() {
        this.handlers && (this.handlers = [])
    }
    forEach(e) {
        Be.forEach(this.handlers, function(r) {
            r !== null && e(r)
        })
    }
}
const GV = z9e
  , sre = {
    silentJSONParsing: !0,
    forcedJSONParsing: !0,
    clarifyTimeoutError: !1
}
  , H9e = typeof URLSearchParams != "undefined" ? URLSearchParams : WE
  , j9e = typeof FormData != "undefined" ? FormData : null
  , W9e = typeof Blob != "undefined" ? Blob : null
  , G9e = (()=>{
    let t;
    return typeof navigator != "undefined" && ((t = navigator.product) === "ReactNative" || t === "NativeScript" || t === "NS") ? !1 : typeof window != "undefined" && typeof document != "undefined"
}
)()
  , K9e = (()=>typeof WorkerGlobalScope != "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function")()
  , rl = {
    isBrowser: !0,
    classes: {
        URLSearchParams: H9e,
        FormData: j9e,
        Blob: W9e
    },
    isStandardBrowserEnv: G9e,
    isStandardBrowserWebWorkerEnv: K9e,
    protocols: ["http", "https", "file", "blob", "url", "data"]
};
function U9e(t, e) {
    return Nw(t, new rl.classes.URLSearchParams, Object.assign({
        visitor: function(n, r, a, i) {
            return rl.isNode && Be.isBuffer(n) ? (this.append(r, n.toString("base64")),
            !1) : i.defaultVisitor.apply(this, arguments)
        }
    }, e))
}
function Y9e(t) {
    return Be.matchAll(/\w+|\[(\w*)]/g, t).map(e=>e[0] === "[]" ? "" : e[1] || e[0])
}
function q9e(t) {
    const e = {}
      , n = Object.keys(t);
    let r;
    const a = n.length;
    let i;
    for (r = 0; r < a; r++)
        i = n[r],
        e[i] = t[i];
    return e
}
function ure(t) {
    function e(n, r, a, i) {
        let o = n[i++];
        const l = Number.isFinite(+o)
          , s = i >= n.length;
        return o = !o && Be.isArray(a) ? a.length : o,
        s ? (Be.hasOwnProp(a, o) ? a[o] = [a[o], r] : a[o] = r,
        !l) : ((!a[o] || !Be.isObject(a[o])) && (a[o] = []),
        e(n, r, a[o], i) && Be.isArray(a[o]) && (a[o] = q9e(a[o])),
        !l)
    }
    if (Be.isFormData(t) && Be.isFunction(t.entries)) {
        const n = {};
        return Be.forEachEntry(t, (r,a)=>{
            e(Y9e(r), a, n, 0)
        }
        ),
        n
    }
    return null
}
const X9e = {
    "Content-Type": void 0
};
function Z9e(t, e, n) {
    if (Be.isString(t))
        try {
            return (e || JSON.parse)(t),
            Be.trim(t)
        } catch (r) {
            if (r.name !== "SyntaxError")
                throw r
        }
    return (n || JSON.stringify)(t)
}
const $w = {
    transitional: sre,
    adapter: ["xhr", "http"],
    transformRequest: [function(e, n) {
        const r = n.getContentType() || ""
          , a = r.indexOf("application/json") > -1
          , i = Be.isObject(e);
        if (i && Be.isHTMLForm(e) && (e = new FormData(e)),
        Be.isFormData(e))
            return a && a ? JSON.stringify(ure(e)) : e;
        if (Be.isArrayBuffer(e) || Be.isBuffer(e) || Be.isStream(e) || Be.isFile(e) || Be.isBlob(e))
            return e;
        if (Be.isArrayBufferView(e))
            return e.buffer;
        if (Be.isURLSearchParams(e))
            return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1),
            e.toString();
        let l;
        if (i) {
            if (r.indexOf("application/x-www-form-urlencoded") > -1)
                return U9e(e, this.formSerializer).toString();
            if ((l = Be.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
                const s = this.env && this.env.FormData;
                return Nw(l ? {
                    "files[]": e
                } : e, s && new s, this.formSerializer)
            }
        }
        return i || a ? (n.setContentType("application/json", !1),
        Z9e(e)) : e
    }
    ],
    transformResponse: [function(e) {
        const n = this.transitional || $w.transitional
          , r = n && n.forcedJSONParsing
          , a = this.responseType === "json";
        if (e && Be.isString(e) && (r && !this.responseType || a)) {
            const o = !(n && n.silentJSONParsing) && a;
            try {
                return JSON.parse(e)
            } catch (l) {
                if (o)
                    throw l.name === "SyntaxError" ? yn.from(l, yn.ERR_BAD_RESPONSE, this, null, this.response) : l
            }
        }
        return e
    }
    ],
    timeout: 0,
    xsrfCookieName: "XSRF-TOKEN",
    xsrfHeaderName: "X-XSRF-TOKEN",
    maxContentLength: -1,
    maxBodyLength: -1,
    env: {
        FormData: rl.classes.FormData,
        Blob: rl.classes.Blob
    },
    validateStatus: function(e) {
        return e >= 200 && e < 300
    },
    headers: {
        common: {
            Accept: "application/json, text/plain, */*"
        }
    }
};
Be.forEach(["delete", "get", "head"], function(e) {
    $w.headers[e] = {}
});
Be.forEach(["post", "put", "patch"], function(e) {
    $w.headers[e] = Be.merge(X9e)
});
const GE = $w
  , Q9e = Be.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"])
  , J9e = t=>{
    const e = {};
    let n, r, a;
    return t && t.split(`
`).forEach(function(o) {
        a = o.indexOf(":"),
        n = o.substring(0, a).trim().toLowerCase(),
        r = o.substring(a + 1).trim(),
        !(!n || e[n] && Q9e[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r)
    }),
    e
}
  , KV = Symbol("internals");
function lp(t) {
    return t && String(t).trim().toLowerCase()
}
function Wb(t) {
    return t === !1 || t == null ? t : Be.isArray(t) ? t.map(Wb) : String(t)
}
function eBe(t) {
    const e = Object.create(null)
      , n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
    let r;
    for (; r = n.exec(t); )
        e[r[1]] = r[2];
    return e
}
const tBe = t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
function qT(t, e, n, r, a) {
    if (Be.isFunction(r))
        return r.call(this, e, n);
    if (a && (e = n),
    !!Be.isString(e)) {
        if (Be.isString(r))
            return e.indexOf(r) !== -1;
        if (Be.isRegExp(r))
            return r.test(e)
    }
}
function nBe(t) {
    return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e,n,r)=>n.toUpperCase() + r)
}
function rBe(t, e) {
    const n = Be.toCamelCase(" " + e);
    ["get", "set", "has"].forEach(r=>{
        Object.defineProperty(t, r + n, {
            value: function(a, i, o) {
                return this[r].call(this, e, a, i, o)
            },
            configurable: !0
        })
    }
    )
}
class Fw {
    constructor(e) {
        e && this.set(e)
    }
    set(e, n, r) {
        const a = this;
        function i(l, s, u) {
            const c = lp(s);
            if (!c)
                throw new Error("header name must be a non-empty string");
            const f = Be.findKey(a, c);
            (!f || a[f] === void 0 || u === !0 || u === void 0 && a[f] !== !1) && (a[f || s] = Wb(l))
        }
        const o = (l,s)=>Be.forEach(l, (u,c)=>i(u, c, s));
        return Be.isPlainObject(e) || e instanceof this.constructor ? o(e, n) : Be.isString(e) && (e = e.trim()) && !tBe(e) ? o(J9e(e), n) : e != null && i(n, e, r),
        this
    }
    get(e, n) {
        if (e = lp(e),
        e) {
            const r = Be.findKey(this, e);
            if (r) {
                const a = this[r];
                if (!n)
                    return a;
                if (n === !0)
                    return eBe(a);
                if (Be.isFunction(n))
                    return n.call(this, a, r);
                if (Be.isRegExp(n))
                    return n.exec(a);
                throw new TypeError("parser must be boolean|regexp|function")
            }
        }
    }
    has(e, n) {
        if (e = lp(e),
        e) {
            const r = Be.findKey(this, e);
            return !!(r && this[r] !== void 0 && (!n || qT(this, this[r], r, n)))
        }
        return !1
    }
    delete(e, n) {
        const r = this;
        let a = !1;
        function i(o) {
            if (o = lp(o),
            o) {
                const l = Be.findKey(r, o);
                l && (!n || qT(r, r[l], l, n)) && (delete r[l],
                a = !0)
            }
        }
        return Be.isArray(e) ? e.forEach(i) : i(e),
        a
    }
    clear(e) {
        const n = Object.keys(this);
        let r = n.length
          , a = !1;
        for (; r--; ) {
            const i = n[r];
            (!e || qT(this, this[i], i, e, !0)) && (delete this[i],
            a = !0)
        }
        return a
    }
    normalize(e) {
        const n = this
          , r = {};
        return Be.forEach(this, (a,i)=>{
            const o = Be.findKey(r, i);
            if (o) {
                n[o] = Wb(a),
                delete n[i];
                return
            }
            const l = e ? nBe(i) : String(i).trim();
            l !== i && delete n[i],
            n[l] = Wb(a),
            r[l] = !0
        }
        ),
        this
    }
    concat(...e) {
        return this.constructor.concat(this, ...e)
    }
    toJSON(e) {
        const n = Object.create(null);
        return Be.forEach(this, (r,a)=>{
            r != null && r !== !1 && (n[a] = e && Be.isArray(r) ? r.join(", ") : r)
        }
        ),
        n
    }
    [Symbol.iterator]() {
        return Object.entries(this.toJSON())[Symbol.iterator]()
    }
    toString() {
        return Object.entries(this.toJSON()).map(([e,n])=>e + ": " + n).join(`
`)
    }
    get[Symbol.toStringTag]() {
        return "AxiosHeaders"
    }
    static from(e) {
        return e instanceof this ? e : new this(e)
    }
    static concat(e, ...n) {
        const r = new this(e);
        return n.forEach(a=>r.set(a)),
        r
    }
    static accessor(e) {
        const r = (this[KV] = this[KV] = {
            accessors: {}
        }).accessors
          , a = this.prototype;
        function i(o) {
            const l = lp(o);
            r[l] || (rBe(a, o),
            r[l] = !0)
        }
        return Be.isArray(e) ? e.forEach(i) : i(e),
        this
    }
}
Fw.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
Be.freezeMethods(Fw.prototype);
Be.freezeMethods(Fw);
const rs = Fw;
function XT(t, e) {
    const n = this || GE
      , r = e || n
      , a = rs.from(r.headers);
    let i = r.data;
    return Be.forEach(t, function(l) {
        i = l.call(n, i, a.normalize(), e ? e.status : void 0)
    }),
    a.normalize(),
    i
}
function cre(t) {
    return !!(t && t.__CANCEL__)
}
function Nm(t, e, n) {
    yn.call(this, t == null ? "canceled" : t, yn.ERR_CANCELED, e, n),
    this.name = "CanceledError"
}
Be.inherits(Nm, yn, {
    __CANCEL__: !0
});
function aBe(t, e, n) {
    const r = n.config.validateStatus;
    !n.status || !r || r(n.status) ? t(n) : e(new yn("Request failed with status code " + n.status,[yn.ERR_BAD_REQUEST, yn.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],n.config,n.request,n))
}
const iBe = rl.isStandardBrowserEnv ? function() {
    return {
        write: function(n, r, a, i, o, l) {
            const s = [];
            s.push(n + "=" + encodeURIComponent(r)),
            Be.isNumber(a) && s.push("expires=" + new Date(a).toGMTString()),
            Be.isString(i) && s.push("path=" + i),
            Be.isString(o) && s.push("domain=" + o),
            l === !0 && s.push("secure"),
            document.cookie = s.join("; ")
        },
        read: function(n) {
            const r = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
            return r ? decodeURIComponent(r[3]) : null
        },
        remove: function(n) {
            this.write(n, "", Date.now() - 864e5)
        }
    }
}() : function() {
    return {
        write: function() {},
        read: function() {
            return null
        },
        remove: function() {}
    }
}();
function oBe(t) {
    return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)
}
function lBe(t, e) {
    return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t
}
function fre(t, e) {
    return t && !oBe(e) ? lBe(t, e) : e
}
const sBe = rl.isStandardBrowserEnv ? function() {
    const e = /(msie|trident)/i.test(navigator.userAgent)
      , n = document.createElement("a");
    let r;
    function a(i) {
        let o = i;
        return e && (n.setAttribute("href", o),
        o = n.href),
        n.setAttribute("href", o),
        {
            href: n.href,
            protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
            host: n.host,
            search: n.search ? n.search.replace(/^\?/, "") : "",
            hash: n.hash ? n.hash.replace(/^#/, "") : "",
            hostname: n.hostname,
            port: n.port,
            pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
        }
    }
    return r = a(window.location.href),
    function(o) {
        const l = Be.isString(o) ? a(o) : o;
        return l.protocol === r.protocol && l.host === r.host
    }
}() : function() {
    return function() {
        return !0
    }
}();
function uBe(t) {
    const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
    return e && e[1] || ""
}
function cBe(t, e) {
    t = t || 10;
    const n = new Array(t)
      , r = new Array(t);
    let a = 0, i = 0, o;
    return e = e !== void 0 ? e : 1e3,
    function(s) {
        const u = Date.now()
          , c = r[i];
        o || (o = u),
        n[a] = s,
        r[a] = u;
        let f = i
          , d = 0;
        for (; f !== a; )
            d += n[f++],
            f = f % t;
        if (a = (a + 1) % t,
        a === i && (i = (i + 1) % t),
        u - o < e)
            return;
        const v = c && u - c;
        return v ? Math.round(d * 1e3 / v) : void 0
    }
}
function UV(t, e) {
    let n = 0;
    const r = cBe(50, 250);
    return a=>{
        const i = a.loaded
          , o = a.lengthComputable ? a.total : void 0
          , l = i - n
          , s = r(l)
          , u = i <= o;
        n = i;
        const c = {
            loaded: i,
            total: o,
            progress: o ? i / o : void 0,
            bytes: l,
            rate: s || void 0,
            estimated: s && o && u ? (o - i) / s : void 0,
            event: a
        };
        c[e ? "download" : "upload"] = !0,
        t(c)
    }
}
const fBe = typeof XMLHttpRequest != "undefined"
  , dBe = fBe && function(t) {
    return new Promise(function(n, r) {
        let a = t.data;
        const i = rs.from(t.headers).normalize()
          , o = t.responseType;
        let l;
        function s() {
            t.cancelToken && t.cancelToken.unsubscribe(l),
            t.signal && t.signal.removeEventListener("abort", l)
        }
        Be.isFormData(a) && (rl.isStandardBrowserEnv || rl.isStandardBrowserWebWorkerEnv ? i.setContentType(!1) : i.setContentType("multipart/form-data;", !1));
        let u = new XMLHttpRequest;
        if (t.auth) {
            const v = t.auth.username || ""
              , h = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
            i.set("Authorization", "Basic " + btoa(v + ":" + h))
        }
        const c = fre(t.baseURL, t.url);
        u.open(t.method.toUpperCase(), lre(c, t.params, t.paramsSerializer), !0),
        u.timeout = t.timeout;
        function f() {
            if (!u)
                return;
            const v = rs.from("getAllResponseHeaders"in u && u.getAllResponseHeaders())
              , p = {
                data: !o || o === "text" || o === "json" ? u.responseText : u.response,
                status: u.status,
                statusText: u.statusText,
                headers: v,
                config: t,
                request: u
            };
            aBe(function(m) {
                n(m),
                s()
            }, function(m) {
                r(m),
                s()
            }, p),
            u = null
        }
        if ("onloadend"in u ? u.onloadend = f : u.onreadystatechange = function() {
            !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(f)
        }
        ,
        u.onabort = function() {
            !u || (r(new yn("Request aborted",yn.ECONNABORTED,t,u)),
            u = null)
        }
        ,
        u.onerror = function() {
            r(new yn("Network Error",yn.ERR_NETWORK,t,u)),
            u = null
        }
        ,
        u.ontimeout = function() {
            let h = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
            const p = t.transitional || sre;
            t.timeoutErrorMessage && (h = t.timeoutErrorMessage),
            r(new yn(h,p.clarifyTimeoutError ? yn.ETIMEDOUT : yn.ECONNABORTED,t,u)),
            u = null
        }
        ,
        rl.isStandardBrowserEnv) {
            const v = (t.withCredentials || sBe(c)) && t.xsrfCookieName && iBe.read(t.xsrfCookieName);
            v && i.set(t.xsrfHeaderName, v)
        }
        a === void 0 && i.setContentType(null),
        "setRequestHeader"in u && Be.forEach(i.toJSON(), function(h, p) {
            u.setRequestHeader(p, h)
        }),
        Be.isUndefined(t.withCredentials) || (u.withCredentials = !!t.withCredentials),
        o && o !== "json" && (u.responseType = t.responseType),
        typeof t.onDownloadProgress == "function" && u.addEventListener("progress", UV(t.onDownloadProgress, !0)),
        typeof t.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", UV(t.onUploadProgress)),
        (t.cancelToken || t.signal) && (l = v=>{
            !u || (r(!v || v.type ? new Nm(null,t,u) : v),
            u.abort(),
            u = null)
        }
        ,
        t.cancelToken && t.cancelToken.subscribe(l),
        t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
        const d = uBe(c);
        if (d && rl.protocols.indexOf(d) === -1) {
            r(new yn("Unsupported protocol " + d + ":",yn.ERR_BAD_REQUEST,t));
            return
        }
        u.send(a || null)
    }
    )
}
  , Gb = {
    http: $9e,
    xhr: dBe
};
Be.forEach(Gb, (t,e)=>{
    if (t) {
        try {
            Object.defineProperty(t, "name", {
                value: e
            })
        } catch (n) {}
        Object.defineProperty(t, "adapterName", {
            value: e
        })
    }
}
);
const vBe = {
    getAdapter: t=>{
        t = Be.isArray(t) ? t : [t];
        const {length: e} = t;
        let n, r;
        for (let a = 0; a < e && (n = t[a],
        !(r = Be.isString(n) ? Gb[n.toLowerCase()] : n)); a++)
            ;
        if (!r)
            throw r === !1 ? new yn(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT") : new Error(Be.hasOwnProp(Gb, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`);
        if (!Be.isFunction(r))
            throw new TypeError("adapter is not a function");
        return r
    }
    ,
    adapters: Gb
};
function ZT(t) {
    if (t.cancelToken && t.cancelToken.throwIfRequested(),
    t.signal && t.signal.aborted)
        throw new Nm(null,t)
}
function YV(t) {
    return ZT(t),
    t.headers = rs.from(t.headers),
    t.data = XT.call(t, t.transformRequest),
    ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1),
    vBe.getAdapter(t.adapter || GE.adapter)(t).then(function(r) {
        return ZT(t),
        r.data = XT.call(t, t.transformResponse, r),
        r.headers = rs.from(r.headers),
        r
    }, function(r) {
        return cre(r) || (ZT(t),
        r && r.response && (r.response.data = XT.call(t, t.transformResponse, r.response),
        r.response.headers = rs.from(r.response.headers))),
        Promise.reject(r)
    })
}
const qV = t=>t instanceof rs ? t.toJSON() : t;
function Wv(t, e) {
    e = e || {};
    const n = {};
    function r(u, c, f) {
        return Be.isPlainObject(u) && Be.isPlainObject(c) ? Be.merge.call({
            caseless: f
        }, u, c) : Be.isPlainObject(c) ? Be.merge({}, c) : Be.isArray(c) ? c.slice() : c
    }
    function a(u, c, f) {
        if (Be.isUndefined(c)) {
            if (!Be.isUndefined(u))
                return r(void 0, u, f)
        } else
            return r(u, c, f)
    }
    function i(u, c) {
        if (!Be.isUndefined(c))
            return r(void 0, c)
    }
    function o(u, c) {
        if (Be.isUndefined(c)) {
            if (!Be.isUndefined(u))
                return r(void 0, u)
        } else
            return r(void 0, c)
    }
    function l(u, c, f) {
        if (f in e)
            return r(u, c);
        if (f in t)
            return r(void 0, u)
    }
    const s = {
        url: i,
        method: i,
        data: i,
        baseURL: o,
        transformRequest: o,
        transformResponse: o,
        paramsSerializer: o,
        timeout: o,
        timeoutMessage: o,
        withCredentials: o,
        adapter: o,
        responseType: o,
        xsrfCookieName: o,
        xsrfHeaderName: o,
        onUploadProgress: o,
        onDownloadProgress: o,
        decompress: o,
        maxContentLength: o,
        maxBodyLength: o,
        beforeRedirect: o,
        transport: o,
        httpAgent: o,
        httpsAgent: o,
        cancelToken: o,
        socketPath: o,
        responseEncoding: o,
        validateStatus: l,
        headers: (u,c)=>a(qV(u), qV(c), !0)
    };
    return Be.forEach(Object.keys(Object.assign({}, t, e)), function(c) {
        const f = s[c] || a
          , d = f(t[c], e[c], c);
        Be.isUndefined(d) && f !== l || (n[c] = d)
    }),
    n
}
const dre = "1.4.0"
  , KE = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((t,e)=>{
    KE[t] = function(r) {
        return typeof r === t || "a" + (e < 1 ? "n " : " ") + t
    }
}
);
const XV = {};
KE.transitional = function(e, n, r) {
    function a(i, o) {
        return "[Axios v" + dre + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "")
    }
    return (i,o,l)=>{
        if (e === !1)
            throw new yn(a(o, " has been removed" + (n ? " in " + n : "")),yn.ERR_DEPRECATED);
        return n && !XV[o] && (XV[o] = !0),
        e ? e(i, o, l) : !0
    }
}
;
function hBe(t, e, n) {
    if (typeof t != "object")
        throw new yn("options must be an object",yn.ERR_BAD_OPTION_VALUE);
    const r = Object.keys(t);
    let a = r.length;
    for (; a-- > 0; ) {
        const i = r[a]
          , o = e[i];
        if (o) {
            const l = t[i]
              , s = l === void 0 || o(l, i, t);
            if (s !== !0)
                throw new yn("option " + i + " must be " + s,yn.ERR_BAD_OPTION_VALUE);
            continue
        }
        if (n !== !0)
            throw new yn("Unknown option " + i,yn.ERR_BAD_OPTION)
    }
}
const EA = {
    assertOptions: hBe,
    validators: KE
}
  , Os = EA.validators;
class cS {
    constructor(e) {
        this.defaults = e,
        this.interceptors = {
            request: new GV,
            response: new GV
        }
    }
    request(e, n) {
        typeof e == "string" ? (n = n || {},
        n.url = e) : n = e || {},
        n = Wv(this.defaults, n);
        const {transitional: r, paramsSerializer: a, headers: i} = n;
        r !== void 0 && EA.assertOptions(r, {
            silentJSONParsing: Os.transitional(Os.boolean),
            forcedJSONParsing: Os.transitional(Os.boolean),
            clarifyTimeoutError: Os.transitional(Os.boolean)
        }, !1),
        a != null && (Be.isFunction(a) ? n.paramsSerializer = {
            serialize: a
        } : EA.assertOptions(a, {
            encode: Os.function,
            serialize: Os.function
        }, !0)),
        n.method = (n.method || this.defaults.method || "get").toLowerCase();
        let o;
        o = i && Be.merge(i.common, i[n.method]),
        o && Be.forEach(["delete", "get", "head", "post", "put", "patch", "common"], h=>{
            delete i[h]
        }
        ),
        n.headers = rs.concat(o, i);
        const l = [];
        let s = !0;
        this.interceptors.request.forEach(function(p) {
            typeof p.runWhen == "function" && p.runWhen(n) === !1 || (s = s && p.synchronous,
            l.unshift(p.fulfilled, p.rejected))
        });
        const u = [];
        this.interceptors.response.forEach(function(p) {
            u.push(p.fulfilled, p.rejected)
        });
        let c, f = 0, d;
        if (!s) {
            const h = [YV.bind(this), void 0];
            for (h.unshift.apply(h, l),
            h.push.apply(h, u),
            d = h.length,
            c = Promise.resolve(n); f < d; )
                c = c.then(h[f++], h[f++]);
            return c
        }
        d = l.length;
        let v = n;
        for (f = 0; f < d; ) {
            const h = l[f++]
              , p = l[f++];
            try {
                v = h(v)
            } catch (g) {
                p.call(this, g);
                break
            }
        }
        try {
            c = YV.call(this, v)
        } catch (h) {
            return Promise.reject(h)
        }
        for (f = 0,
        d = u.length; f < d; )
            c = c.then(u[f++], u[f++]);
        return c
    }
    getUri(e) {
        e = Wv(this.defaults, e);
        const n = fre(e.baseURL, e.url);
        return lre(n, e.params, e.paramsSerializer)
    }
}
Be.forEach(["delete", "get", "head", "options"], function(e) {
    cS.prototype[e] = function(n, r) {
        return this.request(Wv(r || {}, {
            method: e,
            url: n,
            data: (r || {}).data
        }))
    }
});
Be.forEach(["post", "put", "patch"], function(e) {
    function n(r) {
        return function(i, o, l) {
            return this.request(Wv(l || {}, {
                method: e,
                headers: r ? {
                    "Content-Type": "multipart/form-data"
                } : {},
                url: i,
                data: o
            }))
        }
    }
    cS.prototype[e] = n(),
    cS.prototype[e + "Form"] = n(!0)
});
const Kb = cS;
class UE {
    constructor(e) {
        if (typeof e != "function")
            throw new TypeError("executor must be a function.");
        let n;
        this.promise = new Promise(function(i) {
            n = i
        }
        );
        const r = this;
        this.promise.then(a=>{
            if (!r._listeners)
                return;
            let i = r._listeners.length;
            for (; i-- > 0; )
                r._listeners[i](a);
            r._listeners = null
        }
        ),
        this.promise.then = a=>{
            let i;
            const o = new Promise(l=>{
                r.subscribe(l),
                i = l
            }
            ).then(a);
            return o.cancel = function() {
                r.unsubscribe(i)
            }
            ,
            o
        }
        ,
        e(function(i, o, l) {
            r.reason || (r.reason = new Nm(i,o,l),
            n(r.reason))
        })
    }
    throwIfRequested() {
        if (this.reason)
            throw this.reason
    }
    subscribe(e) {
        if (this.reason) {
            e(this.reason);
            return
        }
        this._listeners ? this._listeners.push(e) : this._listeners = [e]
    }
    unsubscribe(e) {
        if (!this._listeners)
            return;
        const n = this._listeners.indexOf(e);
        n !== -1 && this._listeners.splice(n, 1)
    }
    static source() {
        let e;
        return {
            token: new UE(function(a) {
                e = a
            }
            ),
            cancel: e
        }
    }
}
const pBe = UE;
function gBe(t) {
    return function(n) {
        return t.apply(null, n)
    }
}
function mBe(t) {
    return Be.isObject(t) && t.isAxiosError === !0
}
const LA = {
    Continue: 100,
    SwitchingProtocols: 101,
    Processing: 102,
    EarlyHints: 103,
    Ok: 200,
    Created: 201,
    Accepted: 202,
    NonAuthoritativeInformation: 203,
    NoContent: 204,
    ResetContent: 205,
    PartialContent: 206,
    MultiStatus: 207,
    AlreadyReported: 208,
    ImUsed: 226,
    MultipleChoices: 300,
    MovedPermanently: 301,
    Found: 302,
    SeeOther: 303,
    NotModified: 304,
    UseProxy: 305,
    Unused: 306,
    TemporaryRedirect: 307,
    PermanentRedirect: 308,
    BadRequest: 400,
    Unauthorized: 401,
    PaymentRequired: 402,
    Forbidden: 403,
    NotFound: 404,
    MethodNotAllowed: 405,
    NotAcceptable: 406,
    ProxyAuthenticationRequired: 407,
    RequestTimeout: 408,
    Conflict: 409,
    Gone: 410,
    LengthRequired: 411,
    PreconditionFailed: 412,
    PayloadTooLarge: 413,
    UriTooLong: 414,
    UnsupportedMediaType: 415,
    RangeNotSatisfiable: 416,
    ExpectationFailed: 417,
    ImATeapot: 418,
    MisdirectedRequest: 421,
    UnprocessableEntity: 422,
    Locked: 423,
    FailedDependency: 424,
    TooEarly: 425,
    UpgradeRequired: 426,
    PreconditionRequired: 428,
    TooManyRequests: 429,
    RequestHeaderFieldsTooLarge: 431,
    UnavailableForLegalReasons: 451,
    InternalServerError: 500,
    NotImplemented: 501,
    BadGateway: 502,
    ServiceUnavailable: 503,
    GatewayTimeout: 504,
    HttpVersionNotSupported: 505,
    VariantAlsoNegotiates: 506,
    InsufficientStorage: 507,
    LoopDetected: 508,
    NotExtended: 510,
    NetworkAuthenticationRequired: 511
};
Object.entries(LA).forEach(([t,e])=>{
    LA[e] = t
}
);
const yBe = LA;
function vre(t) {
    const e = new Kb(t)
      , n = qne(Kb.prototype.request, e);
    return Be.extend(n, Kb.prototype, e, {
        allOwnKeys: !0
    }),
    Be.extend(n, e, null, {
        allOwnKeys: !0
    }),
    n.create = function(a) {
        return vre(Wv(t, a))
    }
    ,
    n
}
const Rr = vre(GE);
Rr.Axios = Kb;
Rr.CanceledError = Nm;
Rr.CancelToken = pBe;
Rr.isCancel = cre;
Rr.VERSION = dre;
Rr.toFormData = Nw;
Rr.AxiosError = yn;
Rr.Cancel = Rr.CanceledError;
Rr.all = function(e) {
    return Promise.all(e)
}
;
Rr.spread = gBe;
Rr.isAxiosError = mBe;
Rr.mergeConfig = Wv;
Rr.AxiosHeaders = rs;
Rr.formToJSON = t=>ure(Be.isHTMLForm(t) ? new FormData(t) : t);
Rr.HttpStatusCode = yBe;
Rr.default = Rr;
const Ept = Rr;
var bBe = 200;
function xBe(t, e, n, r) {
    var a = -1
      , i = HD
      , o = !0
      , l = t.length
      , s = []
      , u = e.length;
    if (!l)
        return s;
    n && (e = _m(e, bm(n))),
    r ? (i = jD,
    o = !1) : e.length >= bBe && (i = v0,
    o = !1,
    e = new kf(e));
    e: for (; ++a < l; ) {
        var c = t[a]
          , f = n == null ? c : n(c);
        if (c = r || c !== 0 ? c : 0,
        o && f === f) {
            for (var d = u; d--; )
                if (e[d] === f)
                    continue e;
            s.push(c)
        } else
            i(e, f, r) || s.push(c)
    }
    return s
}
var SBe = rte(function(t, e) {
    return sA(t) ? xBe(t, C8(e, 1, sA, !0)) : []
});
const Lpt = SBe;
function Rpt(t, e, n) {
    return t == null ? t : iee(t, e, n)
}
var CBe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"
            }
        }]
    },
    name: "alert",
    theme: "filled"
};
const wBe = CBe;
function ZV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            _Be(t, a, n[a])
        })
    }
    return t
}
function _Be(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var YE = function(e, n) {
    var r = ZV({}, e, n.attrs);
    return _(lt, ZV({}, r, {
        icon: wBe
    }), null)
};
YE.displayName = "AlertFilled";
YE.inheritAttrs = !1;
const Npt = YE;
var TBe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "0 0 1024 1024",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"
            }
        }]
    },
    name: "caret-right",
    theme: "outlined"
};
const PBe = TBe;
function QV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            MBe(t, a, n[a])
        })
    }
    return t
}
function MBe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var qE = function(e, n) {
    var r = QV({}, e, n.attrs);
    return _(lt, QV({}, r, {
        icon: PBe
    }), null)
};
qE.displayName = "CaretRightOutlined";
qE.inheritAttrs = !1;
const $pt = qE;
var ABe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 01-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 01140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0166.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z"
            }
        }]
    },
    name: "cloud",
    theme: "outlined"
};
const IBe = ABe;
function JV(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            kBe(t, a, n[a])
        })
    }
    return t
}
function kBe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var XE = function(e, n) {
    var r = JV({}, e, n.attrs);
    return _(lt, JV({}, r, {
        icon: IBe
    }), null)
};
XE.displayName = "CloudOutlined";
XE.inheritAttrs = !1;
const Fpt = XE;
var OBe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"
            }
        }]
    },
    name: "copyright",
    theme: "outlined"
};
const DBe = OBe;
function ez(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            EBe(t, a, n[a])
        })
    }
    return t
}
function EBe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var ZE = function(e, n) {
    var r = ez({}, e, n.attrs);
    return _(lt, ez({}, r, {
        icon: DBe
    }), null)
};
ZE.displayName = "CopyrightOutlined";
ZE.inheritAttrs = !1;
const Bpt = ZE;
var LBe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z"
            }
        }]
    },
    name: "deployment-unit",
    theme: "outlined"
};
const RBe = LBe;
function tz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            NBe(t, a, n[a])
        })
    }
    return t
}
function NBe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var QE = function(e, n) {
    var r = tz({}, e, n.attrs);
    return _(lt, tz({}, r, {
        icon: RBe
    }), null)
};
QE.displayName = "DeploymentUnitOutlined";
QE.inheritAttrs = !1;
const Vpt = QE;
var $Be = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"
            }
        }]
    },
    name: "file-done",
    theme: "outlined"
};
const FBe = $Be;
function nz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            BBe(t, a, n[a])
        })
    }
    return t
}
function BBe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var JE = function(e, n) {
    var r = nz({}, e, n.attrs);
    return _(lt, nz({}, r, {
        icon: FBe
    }), null)
};
JE.displayName = "FileDoneOutlined";
JE.inheritAttrs = !1;
const zpt = JE;
var VBe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"
            }
        }]
    },
    name: "file-text",
    theme: "outlined"
};
const zBe = VBe;
function rz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            HBe(t, a, n[a])
        })
    }
    return t
}
function HBe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var e6 = function(e, n) {
    var r = rz({}, e, n.attrs);
    return _(lt, rz({}, r, {
        icon: zBe
    }), null)
};
e6.displayName = "FileTextOutlined";
e6.inheritAttrs = !1;
const Hpt = e6;
var jBe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "0 0 1024 1024",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z"
            }
        }]
    },
    name: "forward",
    theme: "outlined"
};
const WBe = jBe;
function az(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            GBe(t, a, n[a])
        })
    }
    return t
}
function GBe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var t6 = function(e, n) {
    var r = az({}, e, n.attrs);
    return _(lt, az({}, r, {
        icon: WBe
    }), null)
};
t6.displayName = "ForwardOutlined";
t6.inheritAttrs = !1;
const jpt = t6;
var KBe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"
            }
        }]
    },
    name: "logout",
    theme: "outlined"
};
const UBe = KBe;
function iz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            YBe(t, a, n[a])
        })
    }
    return t
}
function YBe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var n6 = function(e, n) {
    var r = iz({}, e, n.attrs);
    return _(lt, iz({}, r, {
        icon: UBe
    }), null)
};
n6.displayName = "LogoutOutlined";
n6.inheritAttrs = !1;
const Wpt = n6;
var qBe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"
            }
        }]
    },
    name: "more",
    theme: "outlined"
};
const XBe = qBe;
function oz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            ZBe(t, a, n[a])
        })
    }
    return t
}
function ZBe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var r6 = function(e, n) {
    var r = oz({}, e, n.attrs);
    return _(lt, oz({}, r, {
        icon: XBe
    }), null)
};
r6.displayName = "MoreOutlined";
r6.inheritAttrs = !1;
const Gpt = r6;
var QBe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
            }
        }, {
            tag: "path",
            attrs: {
                d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"
            }
        }]
    },
    name: "question-circle",
    theme: "outlined"
};
const JBe = QBe;
function lz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            eVe(t, a, n[a])
        })
    }
    return t
}
function eVe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var a6 = function(e, n) {
    var r = lz({}, e, n.attrs);
    return _(lt, lz({}, r, {
        icon: JBe
    }), null)
};
a6.displayName = "QuestionCircleOutlined";
a6.inheritAttrs = !1;
const Kpt = a6;
var tVe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"
            }
        }]
    },
    name: "save",
    theme: "outlined"
};
const nVe = tVe;
function sz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            rVe(t, a, n[a])
        })
    }
    return t
}
function rVe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var i6 = function(e, n) {
    var r = sz({}, e, n.attrs);
    return _(lt, sz({}, r, {
        icon: nVe
    }), null)
};
i6.displayName = "SaveOutlined";
i6.inheritAttrs = !1;
const Upt = i6;
var aVe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"
            }
        }]
    },
    name: "select",
    theme: "outlined"
};
const iVe = aVe;
function uz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            oVe(t, a, n[a])
        })
    }
    return t
}
function oVe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var o6 = function(e, n) {
    var r = uz({}, e, n.attrs);
    return _(lt, uz({}, r, {
        icon: iVe
    }), null)
};
o6.displayName = "SelectOutlined";
o6.inheritAttrs = !1;
const Ypt = o6;
var lVe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"
            }
        }]
    },
    name: "setting",
    theme: "outlined"
};
const sVe = lVe;
function cz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            uVe(t, a, n[a])
        })
    }
    return t
}
function uVe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var l6 = function(e, n) {
    var r = cz({}, e, n.attrs);
    return _(lt, cz({}, r, {
        icon: sVe
    }), null)
};
l6.displayName = "SettingOutlined";
l6.inheritAttrs = !1;
const qpt = l6;
var cVe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"
            }
        }]
    },
    name: "stop",
    theme: "outlined"
};
const fVe = cVe;
function fz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            dVe(t, a, n[a])
        })
    }
    return t
}
function dVe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var s6 = function(e, n) {
    var r = fz({}, e, n.attrs);
    return _(lt, fz({}, r, {
        icon: fVe
    }), null)
};
s6.displayName = "StopOutlined";
s6.inheritAttrs = !1;
const Xpt = s6;
var vVe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"
            }
        }]
    },
    name: "sync",
    theme: "outlined"
};
const hVe = vVe;
function dz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            pVe(t, a, n[a])
        })
    }
    return t
}
function pVe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var u6 = function(e, n) {
    var r = dz({}, e, n.attrs);
    return _(lt, dz({}, r, {
        icon: hVe
    }), null)
};
u6.displayName = "SyncOutlined";
u6.inheritAttrs = !1;
const Zpt = u6;
var gVe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"
            }
        }]
    },
    name: "tool",
    theme: "outlined"
};
const mVe = gVe;
function vz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            yVe(t, a, n[a])
        })
    }
    return t
}
function yVe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var c6 = function(e, n) {
    var r = vz({}, e, n.attrs);
    return _(lt, vz({}, r, {
        icon: mVe
    }), null)
};
c6.displayName = "ToolOutlined";
c6.inheritAttrs = !1;
const Qpt = c6;
var bVe = {
    icon: {
        tag: "svg",
        attrs: {
            viewBox: "64 64 896 896",
            focusable: "false"
        },
        children: [{
            tag: "path",
            attrs: {
                d: "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
            }
        }]
    },
    name: "upload",
    theme: "outlined"
};
const xVe = bVe;
function hz(t) {
    for (var e = 1; e < arguments.length; e++) {
        var n = arguments[e] != null ? Object(arguments[e]) : {}
          , r = Object.keys(n);
        typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
            return Object.getOwnPropertyDescriptor(n, a).enumerable
        }))),
        r.forEach(function(a) {
            SVe(t, a, n[a])
        })
    }
    return t
}
function SVe(t, e, n) {
    return e in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = n,
    t
}
var f6 = function(e, n) {
    var r = hz({}, e, n.attrs);
    return _(lt, hz({}, r, {
        icon: xVe
    }), null)
};
f6.displayName = "UploadOutlined";
f6.inheritAttrs = !1;
const Jpt = f6;
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */
function pz(t) {
    return Object.prototype.toString.call(t) === "[object Object]"
}
function CVe(t) {
    var e, n;
    return pz(t) === !1 ? !1 : (e = t.constructor,
    e === void 0 ? !0 : (n = e.prototype,
    !(pz(n) === !1 || n.hasOwnProperty("isPrototypeOf") === !1)))
}
function Ag() {
    return Ag = Object.assign ? Object.assign.bind() : function(t) {
        for (var e = 1; e < arguments.length; e++) {
            var n = arguments[e];
            for (var r in n)
                Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r])
        }
        return t
    }
    ,
    Ag.apply(this, arguments)
}
function hre(t, e) {
    if (t == null)
        return {};
    var n, r, a = {}, i = Object.keys(t);
    for (r = 0; r < i.length; r++)
        e.indexOf(n = i[r]) >= 0 || (a[n] = t[n]);
    return a
}
const wVe = {
    silent: !1,
    logLevel: "warn"
}
  , _Ve = ["validator"]
  , pre = Object.prototype
  , gre = pre.toString
  , TVe = pre.hasOwnProperty
  , mre = /^\s*function (\w+)/;
function gz(t) {
    var e;
    const n = (e = t == null ? void 0 : t.type) !== null && e !== void 0 ? e : t;
    if (n) {
        const r = n.toString().match(mre);
        return r ? r[1] : ""
    }
    return ""
}
const Lf = CVe
  , PVe = t=>t;
let wr = PVe;
const Gv = (t,e)=>TVe.call(t, e)
  , MVe = Number.isInteger || function(t) {
    return typeof t == "number" && isFinite(t) && Math.floor(t) === t
}
  , Kv = Array.isArray || function(t) {
    return gre.call(t) === "[object Array]"
}
  , Uv = t=>gre.call(t) === "[object Function]"
  , fS = (t,e)=>Lf(t) && Gv(t, "_vueTypes_name") && (!e || t._vueTypes_name === e)
  , yre = t=>Lf(t) && (Gv(t, "type") || ["_vueTypes_name", "validator", "default", "required"].some(e=>Gv(t, e)));
function d6(t, e) {
    return Object.defineProperty(t.bind(e), "__original", {
        value: t
    })
}
function ed(t, e, n=!1) {
    let r, a = !0, i = "";
    r = Lf(t) ? t : {
        type: t
    };
    const o = fS(r) ? r._vueTypes_name + " - " : "";
    if (yre(r) && r.type !== null) {
        if (r.type === void 0 || r.type === !0 || !r.required && e == null)
            return a;
        Kv(r.type) ? (a = r.type.some(l=>ed(l, e, !0) === !0),
        i = r.type.map(l=>gz(l)).join(" or ")) : (i = gz(r),
        a = i === "Array" ? Kv(e) : i === "Object" ? Lf(e) : i === "String" || i === "Number" || i === "Boolean" || i === "Function" ? function(l) {
            if (l == null)
                return "";
            const s = l.constructor.toString().match(mre);
            return s ? s[1].replace(/^Async/, "") : ""
        }(e) === i : e instanceof r.type)
    }
    if (!a) {
        const l = `${o}value "${e}" should be of type "${i}"`;
        return n === !1 ? (wr(l),
        !1) : l
    }
    if (Gv(r, "validator") && Uv(r.validator)) {
        const l = wr
          , s = [];
        if (wr = u=>{
            s.push(u)
        }
        ,
        a = r.validator(e),
        wr = l,
        !a) {
            const u = (s.length > 1 ? "* " : "") + s.join(`
* `);
            return s.length = 0,
            n === !1 ? (wr(u),
            a) : u
        }
    }
    return a
}
function ii(t, e) {
    const n = Object.defineProperties(e, {
        _vueTypes_name: {
            value: t,
            writable: !0
        },
        isRequired: {
            get() {
                return this.required = !0,
                this
            }
        },
        def: {
            value(a) {
                return a === void 0 ? this.type === Boolean || Array.isArray(this.type) && this.type.includes(Boolean) ? void (this.default = void 0) : (Gv(this, "default") && delete this.default,
                this) : Uv(a) || ed(this, a, !0) === !0 ? (this.default = Kv(a) ? ()=>[...a] : Lf(a) ? ()=>Object.assign({}, a) : a,
                this) : (wr(`${this._vueTypes_name} - invalid default value: "${a}"`),
                this)
            }
        }
    })
      , {validator: r} = n;
    return Uv(r) && (n.validator = d6(r, n)),
    n
}
function ul(t, e) {
    const n = ii(t, e);
    return Object.defineProperty(n, "validate", {
        value(r) {
            return Uv(this.validator) && wr(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
${JSON.stringify(this)}`),
            this.validator = d6(r, this),
            this
        }
    })
}
function mz(t, e, n) {
    const r = function(s) {
        const u = {};
        return Object.getOwnPropertyNames(s).forEach(c=>{
            u[c] = Object.getOwnPropertyDescriptor(s, c)
        }
        ),
        Object.defineProperties({}, u)
    }(e);
    if (r._vueTypes_name = t,
    !Lf(n))
        return r;
    const {validator: a} = n
      , i = hre(n, _Ve);
    if (Uv(a)) {
        let {validator: s} = r;
        s && (s = (l = (o = s).__original) !== null && l !== void 0 ? l : o),
        r.validator = d6(s ? function(u) {
            return s.call(this, u) && a.call(this, u)
        }
        : a, r)
    }
    var o, l;
    return Object.assign(r, i)
}
function Bw(t) {
    return t.replace(/^(?!\s*$)/gm, "  ")
}
const AVe = ()=>ul("any", {})
  , IVe = ()=>ul("function", {
    type: Function
})
  , yz = ()=>ul("boolean", {
    type: Boolean
})
  , kVe = ()=>ul("string", {
    type: String
})
  , OVe = ()=>ul("number", {
    type: Number
})
  , DVe = ()=>ul("array", {
    type: Array
})
  , EVe = ()=>ul("object", {
    type: Object
})
  , LVe = ()=>ii("integer", {
    type: Number,
    validator(t) {
        const e = MVe(t);
        return e === !1 && wr(`integer - "${t}" is not an integer`),
        e
    }
})
  , RVe = ()=>ii("symbol", {
    validator(t) {
        const e = typeof t == "symbol";
        return e === !1 && wr(`symbol - invalid value "${t}"`),
        e
    }
})
  , NVe = ()=>Object.defineProperty({
    type: null,
    validator(t) {
        const e = t === null;
        return e === !1 && wr("nullable - value should be null"),
        e
    }
}, "_vueTypes_name", {
    value: "nullable"
});
function $Ve(t, e="custom validation failed") {
    if (typeof t != "function")
        throw new TypeError("[VueTypes error]: You must provide a function as argument");
    return ii(t.name || "<<anonymous function>>", {
        type: null,
        validator(n) {
            const r = t(n);
            return r || wr(`${this._vueTypes_name} - ${e}`),
            r
        }
    })
}
function FVe(t) {
    if (!Kv(t))
        throw new TypeError("[VueTypes error]: You must provide an array as argument.");
    const e = `oneOf - value should be one of "${t.map(r=>typeof r == "symbol" ? r.toString() : r).join('", "')}".`
      , n = {
        validator(r) {
            const a = t.indexOf(r) !== -1;
            return a || wr(e),
            a
        }
    };
    if (t.indexOf(null) === -1) {
        const r = t.reduce((a,i)=>{
            if (i != null) {
                const o = i.constructor;
                a.indexOf(o) === -1 && a.push(o)
            }
            return a
        }
        , []);
        r.length > 0 && (n.type = r)
    }
    return ii("oneOf", n)
}
function BVe(t) {
    if (!Kv(t))
        throw new TypeError("[VueTypes error]: You must provide an array as argument");
    let e = !1
      , n = !1
      , r = [];
    for (let i = 0; i < t.length; i += 1) {
        const o = t[i];
        if (yre(o)) {
            if (Uv(o.validator) && (e = !0),
            fS(o, "oneOf") && o.type) {
                r = r.concat(o.type);
                continue
            }
            if (fS(o, "nullable")) {
                n = !0;
                continue
            }
            if (o.type === !0 || !o.type) {
                wr('oneOfType - invalid usage of "true" and "null" as types.');
                continue
            }
            r = r.concat(o.type)
        } else
            r.push(o)
    }
    r = r.filter((i,o)=>r.indexOf(i) === o);
    const a = n === !1 && r.length > 0 ? r : null;
    return ii("oneOfType", e ? {
        type: a,
        validator(i) {
            const o = []
              , l = t.some(s=>{
                const u = ed(s, i, !0);
                return typeof u == "string" && o.push(u),
                u === !0
            }
            );
            return l || wr(`oneOfType - provided value does not match any of the ${o.length} passed-in validators:
${Bw(o.join(`
`))}`),
            l
        }
    } : {
        type: a
    })
}
function VVe(t) {
    return ii("arrayOf", {
        type: Array,
        validator(e) {
            let n = "";
            const r = e.every(a=>(n = ed(t, a, !0),
            n === !0));
            return r || wr(`arrayOf - value validation error:
${Bw(n)}`),
            r
        }
    })
}
function zVe(t) {
    return ii("instanceOf", {
        type: t
    })
}
function HVe(t) {
    return ii("objectOf", {
        type: Object,
        validator(e) {
            let n = "";
            const r = Object.keys(e).every(a=>(n = ed(t, e[a], !0),
            n === !0));
            return r || wr(`objectOf - value validation error:
${Bw(n)}`),
            r
        }
    })
}
function jVe(t) {
    const e = Object.keys(t)
      , n = e.filter(a=>{
        var i;
        return !((i = t[a]) === null || i === void 0 || !i.required)
    }
    )
      , r = ii("shape", {
        type: Object,
        validator(a) {
            if (!Lf(a))
                return !1;
            const i = Object.keys(a);
            if (n.length > 0 && n.some(o=>i.indexOf(o) === -1)) {
                const o = n.filter(l=>i.indexOf(l) === -1);
                return wr(o.length === 1 ? `shape - required property "${o[0]}" is not defined.` : `shape - required properties "${o.join('", "')}" are not defined.`),
                !1
            }
            return i.every(o=>{
                if (e.indexOf(o) === -1)
                    return this._vueTypes_isLoose === !0 || (wr(`shape - shape definition does not include a "${o}" property. Allowed keys: "${e.join('", "')}".`),
                    !1);
                const l = ed(t[o], a[o], !0);
                return typeof l == "string" && wr(`shape - "${o}" property validation error:
 ${Bw(l)}`),
                l === !0
            }
            )
        }
    });
    return Object.defineProperty(r, "_vueTypes_isLoose", {
        writable: !0,
        value: !1
    }),
    Object.defineProperty(r, "loose", {
        get() {
            return this._vueTypes_isLoose = !0,
            this
        }
    }),
    r
}
const WVe = ["name", "validate", "getter"]
  , GVe = (()=>{
    var t;
    return (t = class {
        static get any() {
            return AVe()
        }
        static get func() {
            return IVe().def(this.defaults.func)
        }
        static get bool() {
            return this.defaults.bool === void 0 ? yz() : yz().def(this.defaults.bool)
        }
        static get string() {
            return kVe().def(this.defaults.string)
        }
        static get number() {
            return OVe().def(this.defaults.number)
        }
        static get array() {
            return DVe().def(this.defaults.array)
        }
        static get object() {
            return EVe().def(this.defaults.object)
        }
        static get integer() {
            return LVe().def(this.defaults.integer)
        }
        static get symbol() {
            return RVe()
        }
        static get nullable() {
            return NVe()
        }
        static extend(e) {
            if (wr("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),
            Kv(e))
                return e.forEach(s=>this.extend(s)),
                this;
            const {name: n, validate: r=!1, getter: a=!1} = e
              , i = hre(e, WVe);
            if (Gv(this, n))
                throw new TypeError(`[VueTypes error]: Type "${n}" already defined`);
            const {type: o} = i;
            if (fS(o))
                return delete i.type,
                Object.defineProperty(this, n, a ? {
                    get: ()=>mz(n, o, i)
                } : {
                    value(...s) {
                        const u = mz(n, o, i);
                        return u.validator && (u.validator = u.validator.bind(u, ...s)),
                        u
                    }
                });
            let l;
            return l = a ? {
                get() {
                    const s = Object.assign({}, i);
                    return r ? ul(n, s) : ii(n, s)
                },
                enumerable: !0
            } : {
                value(...s) {
                    const u = Object.assign({}, i);
                    let c;
                    return c = r ? ul(n, u) : ii(n, u),
                    u.validator && (c.validator = u.validator.bind(c, ...s)),
                    c
                },
                enumerable: !0
            },
            Object.defineProperty(this, n, l)
        }
    }
    ).defaults = {},
    t.sensibleDefaults = void 0,
    t.config = wVe,
    t.custom = $Ve,
    t.oneOf = FVe,
    t.instanceOf = zVe,
    t.oneOfType = BVe,
    t.arrayOf = VVe,
    t.objectOf = HVe,
    t.shape = jVe,
    t.utils = {
        validate: (e,n)=>ed(n, e, !0) === !0,
        toType: (e,n,r=!1)=>r ? ul(e, n) : ii(e, n)
    },
    t
}
)();
function KVe(t={
    func: ()=>{}
    ,
    bool: !0,
    string: "",
    number: 0,
    array: ()=>[],
    object: ()=>({}),
    integer: 0
}) {
    var e;
    return (e = class extends GVe {
        static get sensibleDefaults() {
            return Ag({}, this.defaults)
        }
        static set sensibleDefaults(n) {
            this.defaults = n !== !1 ? Ag({}, n !== !0 ? n : t) : {}
        }
    }
    ).defaults = Ag({}, t),
    e
}
class egt extends KVe() {
}
function UVe() {
    var t = window.navigator.userAgent
      , e = t.indexOf("MSIE ");
    if (e > 0)
        return parseInt(t.substring(e + 5, t.indexOf(".", e)), 10);
    var n = t.indexOf("Trident/");
    if (n > 0) {
        var r = t.indexOf("rv:");
        return parseInt(t.substring(r + 3, t.indexOf(".", r)), 10)
    }
    var a = t.indexOf("Edge/");
    return a > 0 ? parseInt(t.substring(a + 5, t.indexOf(".", a)), 10) : -1
}
let Ub;
function RA() {
    RA.init || (RA.init = !0,
    Ub = UVe() !== -1)
}
var Vw = {
    name: "ResizeObserver",
    props: {
        emitOnMount: {
            type: Boolean,
            default: !1
        },
        ignoreWidth: {
            type: Boolean,
            default: !1
        },
        ignoreHeight: {
            type: Boolean,
            default: !1
        }
    },
    emits: ["notify"],
    mounted() {
        RA(),
        yt(()=>{
            this._w = this.$el.offsetWidth,
            this._h = this.$el.offsetHeight,
            this.emitOnMount && this.emitSize()
        }
        );
        const t = document.createElement("object");
        this._resizeObject = t,
        t.setAttribute("aria-hidden", "true"),
        t.setAttribute("tabindex", -1),
        t.onload = this.addResizeHandlers,
        t.type = "text/html",
        Ub && this.$el.appendChild(t),
        t.data = "about:blank",
        Ub || this.$el.appendChild(t)
    },
    beforeUnmount() {
        this.removeResizeHandlers()
    },
    methods: {
        compareAndNotify() {
            (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth,
            this._h = this.$el.offsetHeight,
            this.emitSize())
        },
        emitSize() {
            this.$emit("notify", {
                width: this._w,
                height: this._h
            })
        },
        addResizeHandlers() {
            this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify),
            this.compareAndNotify()
        },
        removeResizeHandlers() {
            this._resizeObject && this._resizeObject.onload && (!Ub && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify),
            this.$el.removeChild(this._resizeObject),
            this._resizeObject.onload = null,
            this._resizeObject = null)
        }
    }
};
const YVe = ive();
rve("data-v-b329ee4c");
const qVe = {
    class: "resize-observer",
    tabindex: "-1"
};
ave();
const XVe = YVe((t,e,n,r,a,i)=>(Xo(),
Av("div", qVe)));
Vw.render = XVe;
Vw.__scopeId = "data-v-b329ee4c";
Vw.__file = "src/components/ResizeObserver.vue";
function Yb(t) {
    return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Yb = function(e) {
        return typeof e
    }
    : Yb = function(e) {
        return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
    }
    ,
    Yb(t)
}
function ZVe(t, e) {
    if (!(t instanceof e))
        throw new TypeError("Cannot call a class as a function")
}
function bz(t, e) {
    for (var n = 0; n < e.length; n++) {
        var r = e[n];
        r.enumerable = r.enumerable || !1,
        r.configurable = !0,
        "value"in r && (r.writable = !0),
        Object.defineProperty(t, r.key, r)
    }
}
function QVe(t, e, n) {
    return e && bz(t.prototype, e),
    n && bz(t, n),
    t
}
function xz(t) {
    return JVe(t) || eze(t) || tze(t) || nze()
}
function JVe(t) {
    if (Array.isArray(t))
        return NA(t)
}
function eze(t) {
    if (typeof Symbol != "undefined" && Symbol.iterator in Object(t))
        return Array.from(t)
}
function tze(t, e) {
    if (!!t) {
        if (typeof t == "string")
            return NA(t, e);
        var n = Object.prototype.toString.call(t).slice(8, -1);
        if (n === "Object" && t.constructor && (n = t.constructor.name),
        n === "Map" || n === "Set")
            return Array.from(t);
        if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
            return NA(t, e)
    }
}
function NA(t, e) {
    (e == null || e > t.length) && (e = t.length);
    for (var n = 0, r = new Array(e); n < e; n++)
        r[n] = t[n];
    return r
}
function nze() {
    throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
}
function rze(t) {
    var e;
    return typeof t == "function" ? e = {
        callback: t
    } : e = t,
    e
}
function aze(t, e) {
    var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r, a, i, o = function(s) {
        for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), f = 1; f < u; f++)
            c[f - 1] = arguments[f];
        if (i = c,
        !(r && s === a)) {
            var d = n.leading;
            typeof d == "function" && (d = d(s, a)),
            (!r || s !== a) && d && t.apply(void 0, [s].concat(xz(i))),
            a = s,
            clearTimeout(r),
            r = setTimeout(function() {
                t.apply(void 0, [s].concat(xz(i))),
                r = 0
            }, e)
        }
    };
    return o._clear = function() {
        clearTimeout(r),
        r = null
    }
    ,
    o
}
function bre(t, e) {
    if (t === e)
        return !0;
    if (Yb(t) === "object") {
        for (var n in t)
            if (!bre(t[n], e[n]))
                return !1;
        return !0
    }
    return !1
}
var ize = function() {
    function t(e, n, r) {
        ZVe(this, t),
        this.el = e,
        this.observer = null,
        this.frozen = !1,
        this.createObserver(n, r)
    }
    return QVe(t, [{
        key: "createObserver",
        value: function(n, r) {
            var a = this;
            if (this.observer && this.destroyObserver(),
            !this.frozen) {
                if (this.options = rze(n),
                this.callback = function(l, s) {
                    a.options.callback(l, s),
                    l && a.options.once && (a.frozen = !0,
                    a.destroyObserver())
                }
                ,
                this.callback && this.options.throttle) {
                    var i = this.options.throttleOptions || {}
                      , o = i.leading;
                    this.callback = aze(this.callback, this.options.throttle, {
                        leading: function(s) {
                            return o === "both" || o === "visible" && s || o === "hidden" && !s
                        }
                    })
                }
                this.oldResult = void 0,
                this.observer = new IntersectionObserver(function(l) {
                    var s = l[0];
                    if (l.length > 1) {
                        var u = l.find(function(f) {
                            return f.isIntersecting
                        });
                        u && (s = u)
                    }
                    if (a.callback) {
                        var c = s.isIntersecting && s.intersectionRatio >= a.threshold;
                        if (c === a.oldResult)
                            return;
                        a.oldResult = c,
                        a.callback(c, s)
                    }
                }
                ,this.options.intersection),
                yt(function() {
                    a.observer && a.observer.observe(a.el)
                })
            }
        }
    }, {
        key: "destroyObserver",
        value: function() {
            this.observer && (this.observer.disconnect(),
            this.observer = null),
            this.callback && this.callback._clear && (this.callback._clear(),
            this.callback = null)
        }
    }, {
        key: "threshold",
        get: function() {
            return this.options.intersection && typeof this.options.intersection.threshold == "number" ? this.options.intersection.threshold : 0
        }
    }]),
    t
}();
function xre(t, e, n) {
    var r = e.value;
    if (!!r && typeof IntersectionObserver != "undefined") {
        var a = new ize(t,r,n);
        t._vue_visibilityState = a
    }
}
function oze(t, e, n) {
    var r = e.value
      , a = e.oldValue;
    if (!bre(r, a)) {
        var i = t._vue_visibilityState;
        if (!r) {
            Sre(t);
            return
        }
        i ? i.createObserver(r, n) : xre(t, {
            value: r
        }, n)
    }
}
function Sre(t) {
    var e = t._vue_visibilityState;
    e && (e.destroyObserver(),
    delete t._vue_visibilityState)
}
var lze = {
    beforeMount: xre,
    updated: oze,
    unmounted: Sre
};
function sze(t) {
    return {
        all: t = t || new Map,
        on: function(e, n) {
            var r = t.get(e);
            r && r.push(n) || t.set(e, [n])
        },
        off: function(e, n) {
            var r = t.get(e);
            r && r.splice(r.indexOf(n) >>> 0, 1)
        },
        emit: function(e, n) {
            (t.get(e) || []).slice().map(function(r) {
                r(n)
            }),
            (t.get("*") || []).slice().map(function(r) {
                r(e, n)
            })
        }
    }
}
var Cre = {
    itemsLimit: 1e3
}
  , uze = /(auto|scroll)/;
function wre(t, e) {
    return t.parentNode === null ? e : wre(t.parentNode, e.concat([t]))
}
var QT = function(e, n) {
    return getComputedStyle(e, null).getPropertyValue(n)
}
  , cze = function(e) {
    return QT(e, "overflow") + QT(e, "overflow-y") + QT(e, "overflow-x")
}
  , fze = function(e) {
    return uze.test(cze(e))
};
function Sz(t) {
    if (t instanceof HTMLElement || t instanceof SVGElement) {
        for (var e = wre(t.parentNode, []), n = 0; n < e.length; n += 1)
            if (fze(e[n]))
                return e[n];
        return document.scrollingElement || document.documentElement
    }
}
function $A(t) {
    return $A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
        return typeof e
    }
    : function(e) {
        return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
    }
    ,
    $A(t)
}
var _re = {
    items: {
        type: Array,
        required: !0
    },
    keyField: {
        type: String,
        default: "id"
    },
    direction: {
        type: String,
        default: "vertical",
        validator: function(e) {
            return ["vertical", "horizontal"].includes(e)
        }
    },
    listTag: {
        type: String,
        default: "div"
    },
    itemTag: {
        type: String,
        default: "div"
    }
};
function Tre() {
    return this.items.length && $A(this.items[0]) !== "object"
}
var FA = !1;
if (typeof window != "undefined") {
    FA = !1;
    try {
        var dze = Object.defineProperty({}, "passive", {
            get: function() {
                FA = !0
            }
        });
        window.addEventListener("test", null, dze)
    } catch (t) {}
}
let vze = 0;
var T0 = {
    name: "RecycleScroller",
    components: {
        ResizeObserver: Vw
    },
    directives: {
        ObserveVisibility: lze
    },
    props: vi(on({}, _re), {
        itemSize: {
            type: Number,
            default: null
        },
        gridItems: {
            type: Number,
            default: void 0
        },
        itemSecondarySize: {
            type: Number,
            default: void 0
        },
        minItemSize: {
            type: [Number, String],
            default: null
        },
        sizeField: {
            type: String,
            default: "size"
        },
        typeField: {
            type: String,
            default: "type"
        },
        buffer: {
            type: Number,
            default: 200
        },
        pageMode: {
            type: Boolean,
            default: !1
        },
        prerender: {
            type: Number,
            default: 0
        },
        emitUpdate: {
            type: Boolean,
            default: !1
        },
        updateInterval: {
            type: Number,
            default: 0
        },
        skipHover: {
            type: Boolean,
            default: !1
        },
        listTag: {
            type: String,
            default: "div"
        },
        itemTag: {
            type: String,
            default: "div"
        },
        listClass: {
            type: [String, Object, Array],
            default: ""
        },
        itemClass: {
            type: [String, Object, Array],
            default: ""
        }
    }),
    emits: ["resize", "visible", "hidden", "update", "scroll-start", "scroll-end"],
    data() {
        return {
            pool: [],
            totalSize: 0,
            ready: !1,
            hoverKey: null
        }
    },
    computed: {
        sizes() {
            if (this.itemSize === null) {
                const t = {
                    "-1": {
                        accumulator: 0
                    }
                }
                  , e = this.items
                  , n = this.sizeField
                  , r = this.minItemSize;
                let a = 1e4, i = 0, o;
                for (let l = 0, s = e.length; l < s; l++)
                    o = e[l][n] || r,
                    o < a && (a = o),
                    i += o,
                    t[l] = {
                        accumulator: i,
                        size: o
                    };
                return this.$_computedMinItemSize = a,
                t
            }
            return []
        },
        simpleArray: Tre,
        itemIndexByKey() {
            const {keyField: t, items: e} = this
              , n = {};
            for (let r = 0, a = e.length; r < a; r++)
                n[e[r][t]] = r;
            return n
        }
    },
    watch: {
        items() {
            this.updateVisibleItems(!0)
        },
        pageMode() {
            this.applyPageMode(),
            this.updateVisibleItems(!1)
        },
        sizes: {
            handler() {
                this.updateVisibleItems(!1)
            },
            deep: !0
        },
        gridItems() {
            this.updateVisibleItems(!0)
        },
        itemSecondarySize() {
            this.updateVisibleItems(!0)
        }
    },
    created() {
        this.$_startIndex = 0,
        this.$_endIndex = 0,
        this.$_views = new Map,
        this.$_unusedViews = new Map,
        this.$_scrollDirty = !1,
        this.$_lastUpdateScrollPosition = 0,
        this.prerender && (this.$_prerender = !0,
        this.updateVisibleItems(!1)),
        this.gridItems && this.itemSize
    },
    mounted() {
        this.applyPageMode(),
        this.$nextTick(()=>{
            this.$_prerender = !1,
            this.updateVisibleItems(!0),
            this.ready = !0
        }
        )
    },
    activated() {
        const t = this.$_lastUpdateScrollPosition;
        typeof t == "number" && this.$nextTick(()=>{
            this.scrollToPosition(t)
        }
        )
    },
    beforeUnmount() {
        this.removeListeners()
    },
    methods: {
        addView(t, e, n, r, a) {
            const i = um({
                id: vze++,
                index: e,
                used: !0,
                key: r,
                type: a
            })
              , o = Xk({
                item: n,
                position: 0,
                nr: i
            });
            return t.push(o),
            o
        },
        unuseView(t, e=!1) {
            const n = this.$_unusedViews
              , r = t.nr.type;
            let a = n.get(r);
            a || (a = [],
            n.set(r, a)),
            a.push(t),
            e || (t.nr.used = !1,
            t.position = -9999)
        },
        handleResize() {
            this.$emit("resize"),
            this.ready && this.updateVisibleItems(!1)
        },
        handleScroll(t) {
            if (!this.$_scrollDirty) {
                if (this.$_scrollDirty = !0,
                this.$_updateTimeout)
                    return;
                const e = ()=>requestAnimationFrame(()=>{
                    this.$_scrollDirty = !1;
                    const {continuous: n} = this.updateVisibleItems(!1, !0);
                    n || (clearTimeout(this.$_refreshTimout),
                    this.$_refreshTimout = setTimeout(this.handleScroll, this.updateInterval + 100))
                }
                );
                e(),
                this.updateInterval && (this.$_updateTimeout = setTimeout(()=>{
                    this.$_updateTimeout = 0,
                    this.$_scrollDirty && e()
                }
                , this.updateInterval))
            }
        },
        handleVisibilityChange(t, e) {
            this.ready && (t || e.boundingClientRect.width !== 0 || e.boundingClientRect.height !== 0 ? (this.$emit("visible"),
            requestAnimationFrame(()=>{
                this.updateVisibleItems(!1)
            }
            )) : this.$emit("hidden"))
        },
        updateVisibleItems(t, e=!1) {
            const n = this.itemSize
              , r = this.gridItems || 1
              , a = this.itemSecondarySize || n
              , i = this.$_computedMinItemSize
              , o = this.typeField
              , l = this.simpleArray ? null : this.keyField
              , s = this.items
              , u = s.length
              , c = this.sizes
              , f = this.$_views
              , d = this.$_unusedViews
              , v = this.pool
              , h = this.itemIndexByKey;
            let p, g, m, y, b;
            if (!u)
                p = g = y = b = m = 0;
            else if (this.$_prerender)
                p = y = 0,
                g = b = Math.min(this.prerender, s.length),
                m = null;
            else {
                const M = this.getScroll();
                if (e) {
                    let k = M.start - this.$_lastUpdateScrollPosition;
                    if (k < 0 && (k = -k),
                    n === null && k < i || k < n)
                        return {
                            continuous: !0
                        }
                }
                this.$_lastUpdateScrollPosition = M.start;
                const A = this.buffer;
                M.start -= A,
                M.end += A;
                let O = 0;
                if (this.$refs.before && (O = this.$refs.before.scrollHeight,
                M.start -= O),
                this.$refs.after) {
                    const k = this.$refs.after.scrollHeight;
                    M.end += k
                }
                if (n === null) {
                    let k, D = 0, E = u - 1, L = ~~(u / 2), N;
                    do
                        N = L,
                        k = c[L].accumulator,
                        k < M.start ? D = L : L < u - 1 && c[L + 1].accumulator > M.start && (E = L),
                        L = ~~((D + E) / 2);
                    while (L !== N);
                    for (L < 0 && (L = 0),
                    p = L,
                    m = c[u - 1].accumulator,
                    g = L; g < u && c[g].accumulator < M.end; g++)
                        ;
                    for (g === -1 ? g = s.length - 1 : (g++,
                    g > u && (g = u)),
                    y = p; y < u && O + c[y].accumulator < M.start; y++)
                        ;
                    for (b = y; b < u && O + c[b].accumulator < M.end; b++)
                        ;
                } else {
                    p = ~~(M.start / n * r);
                    const k = p % r;
                    p -= k,
                    g = Math.ceil(M.end / n * r),
                    y = Math.max(0, Math.floor((M.start - O) / n * r)),
                    b = Math.floor((M.end - O) / n * r),
                    p < 0 && (p = 0),
                    g > u && (g = u),
                    y < 0 && (y = 0),
                    b > u && (b = u),
                    m = Math.ceil(u / r) * n
                }
            }
            g - p > Cre.itemsLimit && this.itemsLimitError(),
            this.totalSize = m;
            let x;
            const C = p <= this.$_endIndex && g >= this.$_startIndex;
            if (C)
                for (let M = 0, A = v.length; M < A; M++)
                    x = v[M],
                    x.nr.used && (t && (x.nr.index = h[x.item[l]]),
                    (x.nr.index == null || x.nr.index < p || x.nr.index >= g) && this.unuseView(x));
            const S = C ? null : new Map;
            let w, T, P;
            for (let M = p; M < g; M++) {
                w = s[M];
                const A = l ? w[l] : w;
                if (A == null)
                    throw new Error(`Key is ${A} on item (keyField is '${l}')`);
                if (x = f.get(A),
                !n && !c[M].size) {
                    x && this.unuseView(x);
                    continue
                }
                T = w[o];
                let O = d.get(T)
                  , k = !1;
                if (!x)
                    C ? O && O.length ? x = O.pop() : x = this.addView(v, M, w, A, T) : (P = S.get(T) || 0,
                    (!O || P >= O.length) && (x = this.addView(v, M, w, A, T),
                    this.unuseView(x, !0),
                    O = d.get(T)),
                    x = O[P],
                    S.set(T, P + 1)),
                    f.delete(x.nr.key),
                    x.nr.used = !0,
                    x.nr.index = M,
                    x.nr.key = A,
                    x.nr.type = T,
                    f.set(A, x),
                    k = !0;
                else if (!x.nr.used && (x.nr.used = !0,
                k = !0,
                O)) {
                    const D = O.indexOf(x);
                    D !== -1 && O.splice(D, 1)
                }
                x.item = w,
                k && (M === s.length - 1 && this.$emit("scroll-end"),
                M === 0 && this.$emit("scroll-start")),
                n === null ? (x.position = c[M - 1].accumulator,
                x.offset = 0) : (x.position = Math.floor(M / r) * n,
                x.offset = M % r * a)
            }
            return this.$_startIndex = p,
            this.$_endIndex = g,
            this.emitUpdate && this.$emit("update", p, g, y, b),
            clearTimeout(this.$_sortTimer),
            this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300),
            {
                continuous: C
            }
        },
        getListenerTarget() {
            let t = Sz(this.$el);
            return window.document && (t === window.document.documentElement || t === window.document.body) && (t = window),
            t
        },
        getScroll() {
            const {$el: t, direction: e} = this
              , n = e === "vertical";
            let r;
            if (this.pageMode) {
                const a = t.getBoundingClientRect()
                  , i = n ? a.height : a.width;
                let o = -(n ? a.top : a.left)
                  , l = n ? window.innerHeight : window.innerWidth;
                o < 0 && (l += o,
                o = 0),
                o + l > i && (l = i - o),
                r = {
                    start: o,
                    end: o + l
                }
            } else
                n ? r = {
                    start: t.scrollTop,
                    end: t.scrollTop + t.clientHeight
                } : r = {
                    start: t.scrollLeft,
                    end: t.scrollLeft + t.clientWidth
                };
            return r
        },
        applyPageMode() {
            this.pageMode ? this.addListeners() : this.removeListeners()
        },
        addListeners() {
            this.listenerTarget = this.getListenerTarget(),
            this.listenerTarget.addEventListener("scroll", this.handleScroll, FA ? {
                passive: !0
            } : !1),
            this.listenerTarget.addEventListener("resize", this.handleResize)
        },
        removeListeners() {
            !this.listenerTarget || (this.listenerTarget.removeEventListener("scroll", this.handleScroll),
            this.listenerTarget.removeEventListener("resize", this.handleResize),
            this.listenerTarget = null)
        },
        scrollToItem(t) {
            let e;
            const n = this.gridItems || 1;
            this.itemSize === null ? e = t > 0 ? this.sizes[t - 1].accumulator : 0 : e = Math.floor(t / n) * this.itemSize,
            this.scrollToPosition(e)
        },
        scrollToPosition(t) {
            const e = this.direction === "vertical" ? {
                scroll: "scrollTop",
                start: "top"
            } : {
                scroll: "scrollLeft",
                start: "left"
            };
            let n, r, a;
            if (this.pageMode) {
                const i = Sz(this.$el)
                  , o = i.tagName === "HTML" ? 0 : i[e.scroll]
                  , l = i.getBoundingClientRect()
                  , u = this.$el.getBoundingClientRect()[e.start] - l[e.start];
                n = i,
                r = e.scroll,
                a = t + o + u
            } else
                n = this.$el,
                r = e.scroll,
                a = t;
            n[r] = a
        },
        itemsLimitError() {
            throw setTimeout(()=>{}
            ),
            new Error("Rendered items limit reached")
        },
        sortViews() {
            this.pool.sort((t,e)=>t.nr.index - e.nr.index)
        }
    }
};
const hze = {
    key: 0,
    ref: "before",
    class: "vue-recycle-scroller__slot"
}
  , pze = {
    key: 1,
    ref: "after",
    class: "vue-recycle-scroller__slot"
};
function gze(t, e, n, r, a, i) {
    const o = uq("ResizeObserver")
      , l = fq("observe-visibility");
    return Fr((Xo(),
    Sy("div", {
        class: Pv(["vue-recycle-scroller", {
            ready: a.ready,
            "page-mode": n.pageMode,
            [`direction-${t.direction}`]: !0
        }]),
        onScrollPassive: e[0] || (e[0] = (...s)=>i.handleScroll && i.handleScroll(...s))
    }, [t.$slots.before ? (Xo(),
    Sy("div", hze, [oo(t.$slots, "before")], 512)) : RR("v-if", !0), (Xo(),
    Av(wR(n.listTag), {
        ref: "wrapper",
        style: sm({
            [t.direction === "vertical" ? "minHeight" : "minWidth"]: a.totalSize + "px"
        }),
        class: Pv(["vue-recycle-scroller__item-wrapper", n.listClass])
    }, {
        default: Js(()=>[(Xo(!0),
        Sy(xt, null, Sve(a.pool, s=>(Xo(),
        Av(wR(n.itemTag), cO({
            key: s.nr.id,
            style: a.ready ? {
                transform: `translate${t.direction === "vertical" ? "Y" : "X"}(${s.position}px) translate${t.direction === "vertical" ? "X" : "Y"}(${s.offset}px)`,
                width: n.gridItems ? `${t.direction === "vertical" && n.itemSecondarySize || n.itemSize}px` : void 0,
                height: n.gridItems ? `${t.direction === "horizontal" && n.itemSecondarySize || n.itemSize}px` : void 0
            } : null,
            class: ["vue-recycle-scroller__item-view", [n.itemClass, {
                hover: !n.skipHover && a.hoverKey === s.nr.key
            }]]
        }, Cve(n.skipHover ? {} : {
            mouseenter: ()=>{
                a.hoverKey = s.nr.key
            }
            ,
            mouseleave: ()=>{
                a.hoverKey = null
            }
        })), {
            default: Js(()=>[oo(t.$slots, "default", {
                item: s.item,
                index: s.nr.index,
                active: s.nr.used
            })]),
            _: 2
        }, 1040, ["style", "class"]))), 128)), oo(t.$slots, "empty")]),
        _: 3
    }, 8, ["style", "class"])), t.$slots.after ? (Xo(),
    Sy("div", pze, [oo(t.$slots, "after")], 512)) : RR("v-if", !0), _(o, {
        onNotify: i.handleResize
    }, null, 8, ["onNotify"])], 34)), [[l, i.handleVisibilityChange]])
}
T0.render = gze;
T0.__file = "src/components/RecycleScroller.vue";
var dS = {
    name: "DynamicScroller",
    components: {
        RecycleScroller: T0
    },
    provide() {
        return typeof ResizeObserver != "undefined" && (this.$_resizeObserver = new ResizeObserver(t=>{
            requestAnimationFrame(()=>{
                if (!!Array.isArray(t)) {
                    for (const e of t)
                        if (e.target && e.target.$_vs_onResize) {
                            let n, r;
                            if (e.borderBoxSize) {
                                const a = e.borderBoxSize[0];
                                n = a.inlineSize,
                                r = a.blockSize
                            } else
                                n = e.contentRect.width,
                                r = e.contentRect.height;
                            e.target.$_vs_onResize(e.target.$_vs_id, n, r)
                        }
                }
            }
            )
        }
        )),
        {
            vscrollData: this.vscrollData,
            vscrollParent: this,
            vscrollResizeObserver: this.$_resizeObserver
        }
    },
    inheritAttrs: !1,
    props: vi(on({}, _re), {
        minItemSize: {
            type: [Number, String],
            required: !0
        }
    }),
    emits: ["resize", "visible"],
    data() {
        return {
            vscrollData: {
                active: !0,
                sizes: {},
                keyField: this.keyField,
                simpleArray: !1
            }
        }
    },
    computed: {
        simpleArray: Tre,
        itemsWithSize() {
            const t = []
              , {items: e, keyField: n, simpleArray: r} = this
              , a = this.vscrollData.sizes
              , i = e.length;
            for (let o = 0; o < i; o++) {
                const l = e[o]
                  , s = r ? o : l[n];
                let u = a[s];
                typeof u == "undefined" && !this.$_undefinedMap[s] && (u = 0),
                t.push({
                    item: l,
                    id: s,
                    size: u
                })
            }
            return t
        }
    },
    watch: {
        items() {
            this.forceUpdate()
        },
        simpleArray: {
            handler(t) {
                this.vscrollData.simpleArray = t
            },
            immediate: !0
        },
        direction(t) {
            this.forceUpdate(!0)
        },
        itemsWithSize(t, e) {
            const n = this.$el.scrollTop;
            let r = 0
              , a = 0;
            const i = Math.min(t.length, e.length);
            for (let l = 0; l < i && !(r >= n); l++)
                r += e[l].size || this.minItemSize,
                a += t[l].size || this.minItemSize;
            const o = a - r;
            o !== 0 && (this.$el.scrollTop += o)
        }
    },
    beforeCreate() {
        this.$_updates = [],
        this.$_undefinedSizes = 0,
        this.$_undefinedMap = {},
        this.$_events = sze()
    },
    activated() {
        this.vscrollData.active = !0
    },
    deactivated() {
        this.vscrollData.active = !1
    },
    unmounted() {
        this.$_events.all.clear()
    },
    methods: {
        onScrollerResize() {
            this.$refs.scroller && this.forceUpdate(),
            this.$emit("resize")
        },
        onScrollerVisible() {
            this.$_events.emit("vscroll:update", {
                force: !1
            }),
            this.$emit("visible")
        },
        forceUpdate(t=!1) {
            (t || this.simpleArray) && (this.vscrollData.sizes = {}),
            this.$_events.emit("vscroll:update", {
                force: !0
            })
        },
        scrollToItem(t) {
            const e = this.$refs.scroller;
            e && e.scrollToItem(t)
        },
        getItemSize(t, e=void 0) {
            const n = this.simpleArray ? e != null ? e : this.items.indexOf(t) : t[this.keyField];
            return this.vscrollData.sizes[n] || 0
        },
        scrollToBottom() {
            if (this.$_scrollingToBottom)
                return;
            this.$_scrollingToBottom = !0;
            const t = this.$el;
            this.$nextTick(()=>{
                t.scrollTop = t.scrollHeight + 5e3;
                const e = ()=>{
                    t.scrollTop = t.scrollHeight + 5e3,
                    requestAnimationFrame(()=>{
                        t.scrollTop = t.scrollHeight + 5e3,
                        this.$_undefinedSizes === 0 ? this.$_scrollingToBottom = !1 : requestAnimationFrame(e)
                    }
                    )
                }
                ;
                requestAnimationFrame(e)
            }
            )
        }
    }
};
function mze(t, e, n, r, a, i) {
    const o = uq("RecycleScroller");
    return Xo(),
    Av(o, cO({
        ref: "scroller",
        items: i.itemsWithSize,
        "min-item-size": n.minItemSize,
        direction: t.direction,
        "key-field": "id",
        "list-tag": t.listTag,
        "item-tag": t.itemTag
    }, t.$attrs, {
        onResize: i.onScrollerResize,
        onVisible: i.onScrollerVisible
    }), {
        default: Js(({item: l, index: s, active: u})=>[oo(t.$slots, "default", pde(Tq({
            item: l.item,
            index: s,
            active: u,
            itemWithSize: l
        })))]),
        before: Js(()=>[oo(t.$slots, "before")]),
        after: Js(()=>[oo(t.$slots, "after")]),
        empty: Js(()=>[oo(t.$slots, "empty")]),
        _: 3
    }, 16, ["items", "min-item-size", "direction", "list-tag", "item-tag", "onResize", "onVisible"])
}
dS.render = mze;
dS.__file = "src/components/DynamicScroller.vue";
var BA = {
    name: "DynamicScrollerItem",
    inject: ["vscrollData", "vscrollParent", "vscrollResizeObserver"],
    props: {
        item: {
            required: !0
        },
        watchData: {
            type: Boolean,
            default: !1
        },
        active: {
            type: Boolean,
            required: !0
        },
        index: {
            type: Number,
            default: void 0
        },
        sizeDependencies: {
            type: [Array, Object],
            default: null
        },
        emitResize: {
            type: Boolean,
            default: !1
        },
        tag: {
            type: String,
            default: "div"
        }
    },
    emits: ["resize"],
    computed: {
        id() {
            if (this.vscrollData.simpleArray)
                return this.index;
            if (this.vscrollData.keyField in this.item)
                return this.item[this.vscrollData.keyField];
            throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)
        },
        size() {
            return this.vscrollData.sizes[this.id] || 0
        },
        finalActive() {
            return this.active && this.vscrollData.active
        }
    },
    watch: {
        watchData: "updateWatchData",
        id(t, e) {
            if (this.$el.$_vs_id = this.id,
            this.size || this.onDataUpdate(),
            this.$_sizeObserved) {
                const n = this.vscrollData.sizes[e]
                  , r = this.vscrollData.sizes[t];
                n != null && n !== r && this.applySize(n)
            }
        },
        finalActive(t) {
            this.size || (t ? this.vscrollParent.$_undefinedMap[this.id] || (this.vscrollParent.$_undefinedSizes++,
            this.vscrollParent.$_undefinedMap[this.id] = !0) : this.vscrollParent.$_undefinedMap[this.id] && (this.vscrollParent.$_undefinedSizes--,
            this.vscrollParent.$_undefinedMap[this.id] = !1)),
            this.vscrollResizeObserver ? t ? this.observeSize() : this.unobserveSize() : t && this.$_pendingVScrollUpdate === this.id && this.updateSize()
        }
    },
    created() {
        if (!this.$isServer && (this.$_forceNextVScrollUpdate = null,
        this.updateWatchData(),
        !this.vscrollResizeObserver)) {
            for (const t in this.sizeDependencies)
                this.$watch(()=>this.sizeDependencies[t], this.onDataUpdate);
            this.vscrollParent.$_events.on("vscroll:update", this.onVscrollUpdate)
        }
    },
    mounted() {
        this.finalActive && (this.updateSize(),
        this.observeSize())
    },
    beforeUnmount() {
        this.vscrollParent.$_events.off("vscroll:update", this.onVscrollUpdate),
        this.unobserveSize()
    },
    methods: {
        updateSize() {
            this.finalActive ? this.$_pendingSizeUpdate !== this.id && (this.$_pendingSizeUpdate = this.id,
            this.$_forceNextVScrollUpdate = null,
            this.$_pendingVScrollUpdate = null,
            this.computeSize(this.id)) : this.$_forceNextVScrollUpdate = this.id
        },
        updateWatchData() {
            this.watchData && !this.vscrollResizeObserver ? this.$_watchData = this.$watch("item", ()=>{
                this.onDataUpdate()
            }
            , {
                deep: !0
            }) : this.$_watchData && (this.$_watchData(),
            this.$_watchData = null)
        },
        onVscrollUpdate({force: t}) {
            !this.finalActive && t && (this.$_pendingVScrollUpdate = this.id),
            (this.$_forceNextVScrollUpdate === this.id || t || !this.size) && this.updateSize()
        },
        onDataUpdate() {
            this.updateSize()
        },
        computeSize(t) {
            this.$nextTick(()=>{
                if (this.id === t) {
                    const e = this.$el.offsetWidth
                      , n = this.$el.offsetHeight;
                    this.applyWidthHeight(e, n)
                }
                this.$_pendingSizeUpdate = null
            }
            )
        },
        applyWidthHeight(t, e) {
            const n = ~~(this.vscrollParent.direction === "vertical" ? e : t);
            n && this.size !== n && this.applySize(n)
        },
        applySize(t) {
            this.vscrollParent.$_undefinedMap[this.id] && (this.vscrollParent.$_undefinedSizes--,
            this.vscrollParent.$_undefinedMap[this.id] = void 0),
            this.vscrollData.sizes[this.id] = t,
            this.emitResize && this.$emit("resize", this.id)
        },
        observeSize() {
            !this.vscrollResizeObserver || this.$_sizeObserved || (this.vscrollResizeObserver.observe(this.$el),
            this.$el.$_vs_id = this.id,
            this.$el.$_vs_onResize = this.onResize,
            this.$_sizeObserved = !0)
        },
        unobserveSize() {
            !this.vscrollResizeObserver || !this.$_sizeObserved || (this.vscrollResizeObserver.unobserve(this.$el),
            this.$el.$_vs_onResize = void 0,
            this.$_sizeObserved = !1)
        },
        onResize(t, e, n) {
            this.id === t && this.applyWidthHeight(e, n)
        }
    },
    render() {
        return Pu(this.tag, this.$slots.default())
    }
};
BA.__file = "src/components/DynamicScrollerItem.vue";
function yze(t, e) {
    t.component("".concat(e, "recycle-scroller"), T0),
    t.component("".concat(e, "RecycleScroller"), T0),
    t.component("".concat(e, "dynamic-scroller"), dS),
    t.component("".concat(e, "DynamicScroller"), dS),
    t.component("".concat(e, "dynamic-scroller-item"), BA),
    t.component("".concat(e, "DynamicScrollerItem"), BA)
}
var tgt = {
    version: "2.0.0-beta.8",
    install: function(e, n) {
        var r = Object.assign({}, {
            installComponents: !0,
            componentsPrefix: ""
        }, n);
        for (var a in r)
            typeof r[a] != "undefined" && (Cre[a] = r[a]);
        r.installComponents && yze(e, r.componentsPrefix)
    }
};
/**
* (c) Iconify
*
* For the full copyright and license information, please view the license.txt or license.gpl.txt
* files at https://github.com/iconify/iconify
*
* Licensed under MIT.
*
* @license MIT
* @version 3.1.1
*/
const Pre = Object.freeze({
    left: 0,
    top: 0,
    width: 16,
    height: 16
})
  , vS = Object.freeze({
    rotate: 0,
    vFlip: !1,
    hFlip: !1
})
  , $m = Object.freeze(on(on({}, Pre), vS))
  , VA = Object.freeze(vi(on({}, $m), {
    body: "",
    hidden: !1
}));
function bze(t, e) {
    const n = {};
    !t.hFlip != !e.hFlip && (n.hFlip = !0),
    !t.vFlip != !e.vFlip && (n.vFlip = !0);
    const r = ((t.rotate || 0) + (e.rotate || 0)) % 4;
    return r && (n.rotate = r),
    n
}
function Cz(t, e) {
    const n = bze(t, e);
    for (const r in VA)
        r in vS ? r in t && !(r in n) && (n[r] = vS[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
    return n
}
function xze(t, e) {
    const n = t.icons
      , r = t.aliases || Object.create(null)
      , a = Object.create(null);
    function i(o) {
        if (n[o])
            return a[o] = [];
        if (!(o in a)) {
            a[o] = null;
            const l = r[o] && r[o].parent
              , s = l && i(l);
            s && (a[o] = [l].concat(s))
        }
        return a[o]
    }
    return (e || Object.keys(n).concat(Object.keys(r))).forEach(i),
    a
}
function Sze(t, e, n) {
    const r = t.icons
      , a = t.aliases || Object.create(null);
    let i = {};
    function o(l) {
        i = Cz(r[l] || a[l], i)
    }
    return o(e),
    n.forEach(o),
    Cz(t, i)
}
function Mre(t, e) {
    const n = [];
    if (typeof t != "object" || typeof t.icons != "object")
        return n;
    t.not_found instanceof Array && t.not_found.forEach(a=>{
        e(a, null),
        n.push(a)
    }
    );
    const r = xze(t);
    for (const a in r) {
        const i = r[a];
        i && (e(a, Sze(t, a, i)),
        n.push(a))
    }
    return n
}
const Ig = /^[a-z0-9]+(-[a-z0-9]+)*$/
  , wh = (t,e,n,r="")=>{
    const a = t.split(":");
    if (t.slice(0, 1) === "@") {
        if (a.length < 2 || a.length > 3)
            return null;
        r = a.shift().slice(1)
    }
    if (a.length > 3 || !a.length)
        return null;
    if (a.length > 1) {
        const l = a.pop()
          , s = a.pop()
          , u = {
            provider: a.length > 0 ? a[0] : r,
            prefix: s,
            name: l
        };
        return e && !qb(u) ? null : u
    }
    const i = a[0]
      , o = i.split("-");
    if (o.length > 1) {
        const l = {
            provider: r,
            prefix: o.shift(),
            name: o.join("-")
        };
        return e && !qb(l) ? null : l
    }
    if (n && r === "") {
        const l = {
            provider: r,
            prefix: "",
            name: i
        };
        return e && !qb(l, n) ? null : l
    }
    return null
}
  , qb = (t,e)=>t ? !!((t.provider === "" || t.provider.match(Ig)) && (e && t.prefix === "" || t.prefix.match(Ig)) && t.name.match(Ig)) : !1
  , Cze = on({
    provider: "",
    aliases: {},
    not_found: {}
}, Pre);
function JT(t, e) {
    for (const n in e)
        if (n in t && typeof t[n] != typeof e[n])
            return !1;
    return !0
}
function Are(t) {
    if (typeof t != "object" || t === null)
        return null;
    const e = t;
    if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !JT(t, Cze))
        return null;
    const n = e.icons;
    for (const a in n) {
        const i = n[a];
        if (!a.match(Ig) || typeof i.body != "string" || !JT(i, VA))
            return null
    }
    const r = e.aliases || Object.create(null);
    for (const a in r) {
        const i = r[a]
          , o = i.parent;
        if (!a.match(Ig) || typeof o != "string" || !n[o] && !r[o] || !JT(i, VA))
            return null
    }
    return e
}
const hS = Object.create(null);
function wze(t, e) {
    return {
        provider: t,
        prefix: e,
        icons: Object.create(null),
        missing: new Set
    }
}
function hl(t, e) {
    const n = hS[t] || (hS[t] = Object.create(null));
    return n[e] || (n[e] = wze(t, e))
}
function v6(t, e) {
    return Are(e) ? Mre(e, (n,r)=>{
        r ? t.icons[n] = r : t.missing.add(n)
    }
    ) : []
}
function _ze(t, e, n) {
    try {
        if (typeof n.body == "string")
            return t.icons[e] = on({}, n),
            !0
    } catch (r) {}
    return !1
}
function Tze(t, e) {
    let n = [];
    return (typeof t == "string" ? [t] : Object.keys(hS)).forEach(a=>{
        (typeof a == "string" && typeof e == "string" ? [e] : Object.keys(hS[a] || {})).forEach(o=>{
            const l = hl(a, o);
            n = n.concat(Object.keys(l.icons).map(s=>(a !== "" ? "@" + a + ":" : "") + o + ":" + s))
        }
        )
    }
    ),
    n
}
let P0 = !1;
function Pze(t) {
    return typeof t == "boolean" && (P0 = t),
    P0
}
function Fm(t) {
    const e = typeof t == "string" ? wh(t, !0, P0) : t;
    if (e) {
        const n = hl(e.provider, e.prefix)
          , r = e.name;
        return n.icons[r] || (n.missing.has(r) ? null : void 0)
    }
}
function Ire(t, e) {
    const n = wh(t, !0, P0);
    if (!n)
        return !1;
    const r = hl(n.provider, n.prefix);
    return _ze(r, n.name, e)
}
function kre(t, e) {
    if (typeof t != "object")
        return !1;
    if (typeof e != "string" && (e = t.provider || ""),
    P0 && !e && !t.prefix) {
        let a = !1;
        return Are(t) && (t.prefix = "",
        Mre(t, (i,o)=>{
            o && Ire(i, o) && (a = !0)
        }
        )),
        a
    }
    const n = t.prefix;
    if (!qb({
        provider: e,
        prefix: n,
        name: "a"
    }))
        return !1;
    const r = hl(e, n);
    return !!v6(r, t)
}
function Mze(t) {
    return !!Fm(t)
}
function Aze(t) {
    const e = Fm(t);
    return e ? on(on({}, $m), e) : null
}
const Ore = Object.freeze({
    width: null,
    height: null
})
  , Dre = Object.freeze(on(on({}, Ore), vS))
  , Ize = /(-?[0-9.]*[0-9]+[0-9.]*)/g
  , kze = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
function zA(t, e, n) {
    if (e === 1)
        return t;
    if (n = n || 100,
    typeof t == "number")
        return Math.ceil(t * e * n) / n;
    if (typeof t != "string")
        return t;
    const r = t.split(Ize);
    if (r === null || !r.length)
        return t;
    const a = [];
    let i = r.shift()
      , o = kze.test(i);
    for (; ; ) {
        if (o) {
            const l = parseFloat(i);
            isNaN(l) ? a.push(i) : a.push(Math.ceil(l * e * n) / n)
        } else
            a.push(i);
        if (i = r.shift(),
        i === void 0)
            return a.join("");
        o = !o
    }
}
const Oze = t=>t === "unset" || t === "undefined" || t === "none";
function zw(t, e) {
    const n = on(on({}, $m), t)
      , r = on(on({}, Dre), e)
      , a = {
        left: n.left,
        top: n.top,
        width: n.width,
        height: n.height
    };
    let i = n.body;
    [n, r].forEach(h=>{
        const p = []
          , g = h.hFlip
          , m = h.vFlip;
        let y = h.rotate;
        g ? m ? y += 2 : (p.push("translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"),
        p.push("scale(-1 1)"),
        a.top = a.left = 0) : m && (p.push("translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"),
        p.push("scale(1 -1)"),
        a.top = a.left = 0);
        let b;
        switch (y < 0 && (y -= Math.floor(y / 4) * 4),
        y = y % 4,
        y) {
        case 1:
            b = a.height / 2 + a.top,
            p.unshift("rotate(90 " + b.toString() + " " + b.toString() + ")");
            break;
        case 2:
            p.unshift("rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")");
            break;
        case 3:
            b = a.width / 2 + a.left,
            p.unshift("rotate(-90 " + b.toString() + " " + b.toString() + ")");
            break
        }
        y % 2 === 1 && (a.left !== a.top && (b = a.left,
        a.left = a.top,
        a.top = b),
        a.width !== a.height && (b = a.width,
        a.width = a.height,
        a.height = b)),
        p.length && (i = '<g transform="' + p.join(" ") + '">' + i + "</g>")
    }
    );
    const o = r.width
      , l = r.height
      , s = a.width
      , u = a.height;
    let c, f;
    o === null ? (f = l === null ? "1em" : l === "auto" ? u : l,
    c = zA(f, s / u)) : (c = o === "auto" ? s : o,
    f = l === null ? zA(c, u / s) : l === "auto" ? u : l);
    const d = {}
      , v = (h,p)=>{
        Oze(p) || (d[h] = p.toString())
    }
    ;
    return v("width", c),
    v("height", f),
    d.viewBox = a.left.toString() + " " + a.top.toString() + " " + s.toString() + " " + u.toString(),
    {
        attributes: d,
        body: i
    }
}
const Dze = /\sid="(\S+)"/g
  , Eze = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
let Lze = 0;
function Ere(t, e=Eze) {
    const n = [];
    let r;
    for (; r = Dze.exec(t); )
        n.push(r[1]);
    if (!n.length)
        return t;
    const a = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
    return n.forEach(i=>{
        const o = typeof e == "function" ? e(i) : e + (Lze++).toString()
          , l = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
        t = t.replace(new RegExp('([#;"])(' + l + ')([")]|\\.[a-z])',"g"), "$1" + o + a + "$3")
    }
    ),
    t = t.replace(new RegExp(a,"g"), ""),
    t
}
const yf = {
    local: !0,
    session: !0
}
  , Lre = {
    local: new Set,
    session: new Set
};
let h6 = !1;
function Rze(t) {
    h6 = t
}
const wz = "iconify2"
  , M0 = "iconify"
  , Rre = M0 + "-count"
  , _z = M0 + "-version"
  , Nre = 36e5
  , Nze = 168;
function HA(t, e) {
    try {
        return t.getItem(e)
    } catch (n) {}
}
function p6(t, e, n) {
    try {
        return t.setItem(e, n),
        !0
    } catch (r) {}
}
function Tz(t, e) {
    try {
        t.removeItem(e)
    } catch (n) {}
}
function jA(t, e) {
    return p6(t, Rre, e.toString())
}
function WA(t) {
    return parseInt(HA(t, Rre)) || 0
}
let t1 = typeof window == "undefined" ? {} : window;
function $re(t) {
    const e = t + "Storage";
    try {
        if (t1 && t1[e] && typeof t1[e].length == "number")
            return t1[e]
    } catch (n) {}
    yf[t] = !1
}
function Fre(t, e) {
    const n = $re(t);
    if (!n)
        return;
    const r = HA(n, _z);
    if (r !== wz) {
        if (r) {
            const l = WA(n);
            for (let s = 0; s < l; s++)
                Tz(n, M0 + s.toString())
        }
        p6(n, _z, wz),
        jA(n, 0);
        return
    }
    const a = Math.floor(Date.now() / Nre) - Nze
      , i = l=>{
        const s = M0 + l.toString()
          , u = HA(n, s);
        if (typeof u == "string") {
            try {
                const c = JSON.parse(u);
                if (typeof c == "object" && typeof c.cached == "number" && c.cached > a && typeof c.provider == "string" && typeof c.data == "object" && typeof c.data.prefix == "string" && e(c, l))
                    return !0
            } catch (c) {}
            Tz(n, s)
        }
    }
    ;
    let o = WA(n);
    for (let l = o - 1; l >= 0; l--)
        i(l) || (l === o - 1 ? (o--,
        jA(n, o)) : Lre[t].add(l))
}
function Bre() {
    if (!h6) {
        Rze(!0);
        for (const t in yf)
            Fre(t, e=>{
                const n = e.data
                  , r = e.provider
                  , a = n.prefix
                  , i = hl(r, a);
                if (!v6(i, n).length)
                    return !1;
                const o = n.lastModified || -1;
                return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, o) : o,
                !0
            }
            )
    }
}
function Vre(t, e) {
    switch (t) {
    case "local":
    case "session":
        yf[t] = e;
        break;
    case "all":
        for (const n in yf)
            yf[n] = e;
        break
    }
}
const GA = Object.create(null);
function zre(t, e) {
    GA[t] = e
}
function KA(t) {
    return GA[t] || GA[""]
}
function g6(t) {
    let e;
    if (typeof t.resources == "string")
        e = [t.resources];
    else if (e = t.resources,
    !(e instanceof Array) || !e.length)
        return null;
    return {
        resources: e,
        path: t.path || "/",
        maxURL: t.maxURL || 500,
        rotate: t.rotate || 750,
        timeout: t.timeout || 5e3,
        random: t.random === !0,
        index: t.index || 0,
        dataAfterTimeout: t.dataAfterTimeout !== !1
    }
}
const Hw = Object.create(null)
  , sp = ["https://api.simplesvg.com", "https://api.unisvg.com"]
  , Xb = [];
for (; sp.length > 0; )
    sp.length === 1 || Math.random() > .5 ? Xb.push(sp.shift()) : Xb.push(sp.pop());
Hw[""] = g6({
    resources: ["https://api.iconify.design"].concat(Xb)
});
function Hre(t, e) {
    const n = g6(e);
    return n === null ? !1 : (Hw[t] = n,
    !0)
}
function jw(t) {
    return Hw[t]
}
function $ze() {
    return Object.keys(Hw)
}
const Fze = ()=>{
    let t;
    try {
        if (t = fetch,
        typeof t == "function")
            return t
    } catch (e) {}
}
;
let pS = Fze();
function Bze(t) {
    pS = t
}
function Vze() {
    return pS
}
function zze(t, e) {
    const n = jw(t);
    if (!n)
        return 0;
    let r;
    if (!n.maxURL)
        r = 0;
    else {
        let a = 0;
        n.resources.forEach(o=>{
            a = Math.max(a, o.length)
        }
        );
        const i = e + ".json?icons=";
        r = n.maxURL - a - n.path.length - i.length
    }
    return r
}
function Hze(t) {
    return t === 404
}
const jze = (t,e,n)=>{
    const r = []
      , a = zze(t, e)
      , i = "icons";
    let o = {
        type: i,
        provider: t,
        prefix: e,
        icons: []
    }
      , l = 0;
    return n.forEach((s,u)=>{
        l += s.length + 1,
        l >= a && u > 0 && (r.push(o),
        o = {
            type: i,
            provider: t,
            prefix: e,
            icons: []
        },
        l = s.length),
        o.icons.push(s)
    }
    ),
    r.push(o),
    r
}
;
function Wze(t) {
    if (typeof t == "string") {
        const e = jw(t);
        if (e)
            return e.path
    }
    return "/"
}
const Gze = (t,e,n)=>{
    if (!pS) {
        n("abort", 424);
        return
    }
    let r = Wze(e.provider);
    switch (e.type) {
    case "icons":
        {
            const i = e.prefix
              , l = e.icons.join(",")
              , s = new URLSearchParams({
                icons: l
            });
            r += i + ".json?" + s.toString();
            break
        }
    case "custom":
        {
            const i = e.uri;
            r += i.slice(0, 1) === "/" ? i.slice(1) : i;
            break
        }
    default:
        n("abort", 400);
        return
    }
    let a = 503;
    pS(t + r).then(i=>{
        const o = i.status;
        if (o !== 200) {
            setTimeout(()=>{
                n(Hze(o) ? "abort" : "next", o)
            }
            );
            return
        }
        return a = 501,
        i.json()
    }
    ).then(i=>{
        if (typeof i != "object" || i === null) {
            setTimeout(()=>{
                i === 404 ? n("abort", i) : n("next", a)
            }
            );
            return
        }
        setTimeout(()=>{
            n("success", i)
        }
        )
    }
    ).catch(()=>{
        n("next", a)
    }
    )
}
  , Kze = {
    prepare: jze,
    send: Gze
};
function Uze(t) {
    const e = {
        loaded: [],
        missing: [],
        pending: []
    }
      , n = Object.create(null);
    t.sort((a,i)=>a.provider !== i.provider ? a.provider.localeCompare(i.provider) : a.prefix !== i.prefix ? a.prefix.localeCompare(i.prefix) : a.name.localeCompare(i.name));
    let r = {
        provider: "",
        prefix: "",
        name: ""
    };
    return t.forEach(a=>{
        if (r.name === a.name && r.prefix === a.prefix && r.provider === a.provider)
            return;
        r = a;
        const i = a.provider
          , o = a.prefix
          , l = a.name
          , s = n[i] || (n[i] = Object.create(null))
          , u = s[o] || (s[o] = hl(i, o));
        let c;
        l in u.icons ? c = e.loaded : o === "" || u.missing.has(l) ? c = e.missing : c = e.pending;
        const f = {
            provider: i,
            prefix: o,
            name: l
        };
        c.push(f)
    }
    ),
    e
}
function jre(t, e) {
    t.forEach(n=>{
        const r = n.loaderCallbacks;
        r && (n.loaderCallbacks = r.filter(a=>a.id !== e))
    }
    )
}
function Yze(t) {
    t.pendingCallbacksFlag || (t.pendingCallbacksFlag = !0,
    setTimeout(()=>{
        t.pendingCallbacksFlag = !1;
        const e = t.loaderCallbacks ? t.loaderCallbacks.slice(0) : [];
        if (!e.length)
            return;
        let n = !1;
        const r = t.provider
          , a = t.prefix;
        e.forEach(i=>{
            const o = i.icons
              , l = o.pending.length;
            o.pending = o.pending.filter(s=>{
                if (s.prefix !== a)
                    return !0;
                const u = s.name;
                if (t.icons[u])
                    o.loaded.push({
                        provider: r,
                        prefix: a,
                        name: u
                    });
                else if (t.missing.has(u))
                    o.missing.push({
                        provider: r,
                        prefix: a,
                        name: u
                    });
                else
                    return n = !0,
                    !0;
                return !1
            }
            ),
            o.pending.length !== l && (n || jre([t], i.id),
            i.callback(o.loaded.slice(0), o.missing.slice(0), o.pending.slice(0), i.abort))
        }
        )
    }
    ))
}
let qze = 0;
function Xze(t, e, n) {
    const r = qze++
      , a = jre.bind(null, n, r);
    if (!e.pending.length)
        return a;
    const i = {
        id: r,
        icons: e,
        callback: t,
        abort: a
    };
    return n.forEach(o=>{
        (o.loaderCallbacks || (o.loaderCallbacks = [])).push(i)
    }
    ),
    a
}
function Zze(t, e=!0, n=!1) {
    const r = [];
    return t.forEach(a=>{
        const i = typeof a == "string" ? wh(a, e, n) : a;
        i && r.push(i)
    }
    ),
    r
}
var Qze = {
    resources: [],
    index: 0,
    timeout: 2e3,
    rotate: 750,
    random: !1,
    dataAfterTimeout: !1
};
function Jze(t, e, n, r) {
    const a = t.resources.length
      , i = t.random ? Math.floor(Math.random() * a) : t.index;
    let o;
    if (t.random) {
        let S = t.resources.slice(0);
        for (o = []; S.length > 1; ) {
            const w = Math.floor(Math.random() * S.length);
            o.push(S[w]),
            S = S.slice(0, w).concat(S.slice(w + 1))
        }
        o = o.concat(S)
    } else
        o = t.resources.slice(i).concat(t.resources.slice(0, i));
    const l = Date.now();
    let s = "pending", u = 0, c, f = null, d = [], v = [];
    typeof r == "function" && v.push(r);
    function h() {
        f && (clearTimeout(f),
        f = null)
    }
    function p() {
        s === "pending" && (s = "aborted"),
        h(),
        d.forEach(S=>{
            S.status === "pending" && (S.status = "aborted")
        }
        ),
        d = []
    }
    function g(S, w) {
        w && (v = []),
        typeof S == "function" && v.push(S)
    }
    function m() {
        return {
            startTime: l,
            payload: e,
            status: s,
            queriesSent: u,
            queriesPending: d.length,
            subscribe: g,
            abort: p
        }
    }
    function y() {
        s = "failed",
        v.forEach(S=>{
            S(void 0, c)
        }
        )
    }
    function b() {
        d.forEach(S=>{
            S.status === "pending" && (S.status = "aborted")
        }
        ),
        d = []
    }
    function x(S, w, T) {
        const P = w !== "success";
        switch (d = d.filter(M=>M !== S),
        s) {
        case "pending":
            break;
        case "failed":
            if (P || !t.dataAfterTimeout)
                return;
            break;
        default:
            return
        }
        if (w === "abort") {
            c = T,
            y();
            return
        }
        if (P) {
            c = T,
            d.length || (o.length ? C() : y());
            return
        }
        if (h(),
        b(),
        !t.random) {
            const M = t.resources.indexOf(S.resource);
            M !== -1 && M !== t.index && (t.index = M)
        }
        s = "completed",
        v.forEach(M=>{
            M(T)
        }
        )
    }
    function C() {
        if (s !== "pending")
            return;
        h();
        const S = o.shift();
        if (S === void 0) {
            if (d.length) {
                f = setTimeout(()=>{
                    h(),
                    s === "pending" && (b(),
                    y())
                }
                , t.timeout);
                return
            }
            y();
            return
        }
        const w = {
            status: "pending",
            resource: S,
            callback: (T,P)=>{
                x(w, T, P)
            }
        };
        d.push(w),
        u++,
        f = setTimeout(C, t.rotate),
        n(S, e, w.callback)
    }
    return setTimeout(C),
    m
}
function Wre(t) {
    const e = on(on({}, Qze), t);
    let n = [];
    function r() {
        n = n.filter(l=>l().status === "pending")
    }
    function a(l, s, u) {
        const c = Jze(e, l, s, (f,d)=>{
            r(),
            u && u(f, d)
        }
        );
        return n.push(c),
        c
    }
    function i(l) {
        return n.find(s=>l(s)) || null
    }
    return {
        query: a,
        find: i,
        setIndex: l=>{
            e.index = l
        }
        ,
        getIndex: ()=>e.index,
        cleanup: r
    }
}
function Pz() {}
const eP = Object.create(null);
function eHe(t) {
    if (!eP[t]) {
        const e = jw(t);
        if (!e)
            return;
        const n = Wre(e)
          , r = {
            config: e,
            redundancy: n
        };
        eP[t] = r
    }
    return eP[t]
}
function Gre(t, e, n) {
    let r, a;
    if (typeof t == "string") {
        const i = KA(t);
        if (!i)
            return n(void 0, 424),
            Pz;
        a = i.send;
        const o = eHe(t);
        o && (r = o.redundancy)
    } else {
        const i = g6(t);
        if (i) {
            r = Wre(i);
            const o = t.resources ? t.resources[0] : ""
              , l = KA(o);
            l && (a = l.send)
        }
    }
    return !r || !a ? (n(void 0, 424),
    Pz) : r.query(e, a, n)().abort
}
function tHe(t, e) {
    const n = t.lastModifiedCached;
    if (n && n >= e)
        return n === e;
    if (t.lastModifiedCached = e,
    n)
        for (const r in yf)
            Fre(r, a=>{
                const i = a.data;
                return a.provider !== t.provider || i.prefix !== t.prefix || i.lastModified === e
            }
            );
    return !0
}
function nHe(t, e) {
    h6 || Bre();
    function n(r) {
        let a;
        if (!yf[r] || !(a = $re(r)))
            return;
        const i = Lre[r];
        let o;
        if (i.size)
            i.delete(o = Array.from(i).shift());
        else if (o = WA(a),
        !jA(a, o + 1))
            return;
        const l = {
            cached: Math.floor(Date.now() / Nre),
            provider: t.provider,
            data: e
        };
        return p6(a, M0 + o.toString(), JSON.stringify(l))
    }
    e.lastModified && !tHe(t, e.lastModified) || !Object.keys(e.icons).length || (e.not_found && (e = Object.assign({}, e),
    delete e.not_found),
    n("local") || n("session"))
}
function Mz() {}
function rHe(t) {
    t.iconsLoaderFlag || (t.iconsLoaderFlag = !0,
    setTimeout(()=>{
        t.iconsLoaderFlag = !1,
        Yze(t)
    }
    ))
}
function aHe(t, e) {
    t.iconsToLoad ? t.iconsToLoad = t.iconsToLoad.concat(e).sort() : t.iconsToLoad = e,
    t.iconsQueueFlag || (t.iconsQueueFlag = !0,
    setTimeout(()=>{
        t.iconsQueueFlag = !1;
        const {provider: n, prefix: r} = t
          , a = t.iconsToLoad;
        delete t.iconsToLoad;
        let i;
        if (!a || !(i = KA(n)))
            return;
        i.prepare(n, r, a).forEach(l=>{
            Gre(n, l, s=>{
                if (typeof s != "object")
                    l.icons.forEach(u=>{
                        t.missing.add(u)
                    }
                    );
                else
                    try {
                        const u = v6(t, s);
                        if (!u.length)
                            return;
                        const c = t.pendingIcons;
                        c && u.forEach(f=>{
                            c.delete(f)
                        }
                        ),
                        nHe(t, s)
                    } catch (u) {}
                rHe(t)
            }
            )
        }
        )
    }
    ))
}
const iHe = t=>{
    const n = hl(t.provider, t.prefix).pendingIcons;
    return !!(n && n.has(t.name))
}
  , m6 = (t,e)=>{
    const n = Zze(t, !0, Pze())
      , r = Uze(n);
    if (!r.pending.length) {
        let s = !0;
        return e && setTimeout(()=>{
            s && e(r.loaded, r.missing, r.pending, Mz)
        }
        ),
        ()=>{
            s = !1
        }
    }
    const a = Object.create(null)
      , i = [];
    let o, l;
    return r.pending.forEach(s=>{
        const {provider: u, prefix: c} = s;
        if (c === l && u === o)
            return;
        o = u,
        l = c,
        i.push(hl(u, c));
        const f = a[u] || (a[u] = Object.create(null));
        f[c] || (f[c] = [])
    }
    ),
    r.pending.forEach(s=>{
        const {provider: u, prefix: c, name: f} = s
          , d = hl(u, c)
          , v = d.pendingIcons || (d.pendingIcons = new Set);
        v.has(f) || (v.add(f),
        a[u][c].push(f))
    }
    ),
    i.forEach(s=>{
        const {provider: u, prefix: c} = s;
        a[u][c].length && aHe(s, a[u][c])
    }
    ),
    e ? Xze(e, r, i) : Mz
}
  , oHe = t=>new Promise((e,n)=>{
    const r = typeof t == "string" ? wh(t, !0) : t;
    if (!r) {
        n(t);
        return
    }
    m6([r || t], a=>{
        if (a.length && r) {
            const i = Fm(r);
            if (i) {
                e(on(on({}, $m), i));
                return
            }
        }
        n(t)
    }
    )
}
);
function Kre(t, e) {
    const n = on({}, t);
    for (const r in e) {
        const a = e[r]
          , i = typeof a;
        r in Ore ? (a === null || a && (i === "string" || i === "number")) && (n[r] = a) : i === typeof n[r] && (n[r] = r === "rotate" ? a % 4 : a)
    }
    return n
}
const Ww = vi(on({}, Dre), {
    inline: !1
})
  , tP = "iconify"
  , UA = "iconify-inline"
  , Iu = "iconifyData" + Date.now();
let Rf = [];
function Bm(t) {
    for (let e = 0; e < Rf.length; e++) {
        const n = Rf[e];
        if ((typeof n.node == "function" ? n.node() : n.node) === t)
            return n
    }
}
function Ure(t, e=!1) {
    let n = Bm(t);
    return n ? (n.temporary && (n.temporary = e),
    n) : (n = {
        node: t,
        temporary: e
    },
    Rf.push(n),
    n)
}
function lHe() {
    if (document.documentElement)
        return Ure(document.documentElement);
    Rf.push({
        node: ()=>document.documentElement
    })
}
function sHe(t) {
    Rf = Rf.filter(e=>t !== e && t !== (typeof e.node == "function" ? e.node() : e.node))
}
function Vm() {
    return Rf
}
function uHe(t) {
    const e = document;
    e.readyState && e.readyState !== "loading" ? t() : e.addEventListener("DOMContentLoaded", t)
}
let kg = null;
const cHe = {
    childList: !0,
    subtree: !0,
    attributes: !0
};
function Yre(t) {
    if (!t.observer)
        return;
    const e = t.observer;
    e.pendingScan || (e.pendingScan = setTimeout(()=>{
        delete e.pendingScan,
        kg && kg(t)
    }
    ))
}
function fHe(t, e) {
    if (!t.observer)
        return;
    const n = t.observer;
    if (!n.pendingScan)
        for (let r = 0; r < e.length; r++) {
            const a = e[r];
            if (a.addedNodes && a.addedNodes.length > 0 || a.type === "attributes" && a.target[Iu] !== void 0) {
                n.paused || Yre(t);
                return
            }
        }
}
function qre(t, e) {
    t.observer.instance.observe(e, cHe)
}
function gS(t) {
    let e = t.observer;
    if (e && e.instance)
        return;
    const n = typeof t.node == "function" ? t.node() : t.node;
    !n || !window || (e || (e = {
        paused: 0
    },
    t.observer = e),
    e.instance = new window.MutationObserver(fHe.bind(null, t)),
    qre(t, n),
    e.paused || Yre(t))
}
function Az() {
    Vm().forEach(gS)
}
function Xre(t) {
    if (!t.observer)
        return;
    const e = t.observer;
    e.pendingScan && (clearTimeout(e.pendingScan),
    delete e.pendingScan),
    e.instance && (e.instance.disconnect(),
    delete e.instance)
}
function dHe(t) {
    const e = kg !== null;
    if (kg !== t && (kg = t,
    e && Vm().forEach(Xre)),
    e) {
        Az();
        return
    }
    uHe(Az)
}
function YA(t) {
    (t ? [t] : Vm()).forEach(e=>{
        if (!e.observer) {
            e.observer = {
                paused: 1
            };
            return
        }
        const n = e.observer;
        if (n.paused++,
        n.paused > 1 || !n.instance)
            return;
        n.instance.disconnect()
    }
    )
}
function vHe(t) {
    if (t) {
        const e = Bm(t);
        e && YA(e)
    } else
        YA()
}
function qA(t) {
    (t ? [t] : Vm()).forEach(e=>{
        if (!e.observer) {
            gS(e);
            return
        }
        const n = e.observer;
        if (n.paused && (n.paused--,
        !n.paused)) {
            const r = typeof e.node == "function" ? e.node() : e.node;
            if (r)
                n.instance ? qre(e, r) : gS(e);
            else
                return
        }
    }
    )
}
function hHe(t) {
    if (t) {
        const e = Bm(t);
        e && qA(e)
    } else
        qA()
}
function Zre(t, e=!1) {
    const n = Ure(t, e);
    return gS(n),
    n
}
function Qre(t) {
    const e = Bm(t);
    e && (Xre(e),
    sHe(t))
}
function pHe(t, e) {
    if (t.name !== e.name || t.mode !== e.mode)
        return !0;
    const n = t.customisations
      , r = e.customisations;
    for (const a in Ww)
        if (n[a] !== r[a])
            return !0;
    return !1
}
function gHe(t, e=0) {
    const n = t.replace(/^-?[0-9.]*/, "");
    function r(a) {
        for (; a < 0; )
            a += 4;
        return a % 4
    }
    if (n === "") {
        const a = parseInt(t);
        return isNaN(a) ? 0 : r(a)
    } else if (n !== t) {
        let a = 0;
        switch (n) {
        case "%":
            a = 25;
            break;
        case "deg":
            a = 90
        }
        if (a) {
            let i = parseFloat(t.slice(0, t.length - n.length));
            return isNaN(i) ? 0 : (i = i / a,
            i % 1 === 0 ? r(i) : 0)
        }
    }
    return e
}
const mHe = /[\s,]+/;
function yHe(t, e) {
    e.split(mHe).forEach(n=>{
        switch (n.trim()) {
        case "horizontal":
            t.hFlip = !0;
            break;
        case "vertical":
            t.vFlip = !0;
            break
        }
    }
    )
}
const bHe = ["width", "height"]
  , xHe = ["inline", "hFlip", "vFlip"];
function SHe(t, e) {
    return t === e || t === "true" ? !0 : t === "" || t === "false" ? !1 : null
}
function CHe(t) {
    const e = t.getAttribute("data-icon")
      , n = typeof e == "string" && wh(e, !0);
    if (!n)
        return null;
    const r = vi(on({}, Ww), {
        inline: t.classList && t.classList.contains(UA)
    });
    bHe.forEach(l=>{
        const s = t.getAttribute("data-" + l);
        s && (r[l] = s)
    }
    );
    const a = t.getAttribute("data-rotate");
    typeof a == "string" && (r.rotate = gHe(a));
    const i = t.getAttribute("data-flip");
    typeof i == "string" && yHe(r, i),
    xHe.forEach(l=>{
        const s = "data-" + l
          , u = SHe(t.getAttribute(s), s);
        typeof u == "boolean" && (r[l] = u)
    }
    );
    const o = t.getAttribute("data-mode");
    return {
        name: e,
        icon: n,
        customisations: r,
        mode: o
    }
}
const wHe = "svg." + tP + ", i." + tP + ", span." + tP + ", i." + UA + ", span." + UA;
function _He(t) {
    const e = [];
    return t.querySelectorAll(wHe).forEach(n=>{
        const r = n[Iu] || n.tagName.toLowerCase() !== "svg" ? CHe(n) : null;
        r && e.push({
            node: n,
            props: r
        })
    }
    ),
    e
}
function Jre(t, e) {
    let n = t.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
    for (const r in e)
        n += " " + r + '="' + e[r] + '"';
    return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + t + "</svg>"
}
let Og;
function THe() {
    try {
        Og = window.trustedTypes.createPolicy("iconify", {
            createHTML: t=>t
        })
    } catch (t) {
        Og = null
    }
}
function PHe(t) {
    return Og === void 0 && THe(),
    Og ? Og.createHTML(t) : t
}
function eae(t) {
    const e = new Set(["iconify"]);
    return ["provider", "prefix"].forEach(n=>{
        t[n] && e.add("iconify--" + t[n])
    }
    ),
    e
}
function tae(t, e, n, r) {
    const a = t.classList;
    if (r) {
        const o = r.classList;
        Array.from(o).forEach(l=>{
            a.add(l)
        }
        )
    }
    const i = [];
    return e.forEach(o=>{
        a.contains(o) ? n.has(o) && i.push(o) : (a.add(o),
        i.push(o))
    }
    ),
    n.forEach(o=>{
        e.has(o) || a.remove(o)
    }
    ),
    i
}
function nae(t, e, n) {
    const r = t.style;
    (n || []).forEach(i=>{
        r.removeProperty(i)
    }
    );
    const a = [];
    for (const i in e)
        r.getPropertyValue(i) || (a.push(i),
        r.setProperty(i, e[i]));
    return a
}
function rae(t, e, n) {
    let r;
    try {
        r = document.createElement("span")
    } catch (h) {
        return t
    }
    const a = e.customisations
      , i = zw(n, a)
      , o = t[Iu]
      , l = Jre(Ere(i.body), on({
        "aria-hidden": "true",
        role: "img"
    }, i.attributes));
    r.innerHTML = PHe(l);
    const s = r.childNodes[0]
      , u = t.attributes;
    for (let h = 0; h < u.length; h++) {
        const p = u.item(h)
          , g = p.name;
        g !== "class" && !s.hasAttribute(g) && s.setAttribute(g, p.value)
    }
    const c = eae(e.icon)
      , f = tae(s, c, new Set(o && o.addedClasses), t)
      , d = nae(s, a.inline ? {
        "vertical-align": "-0.125em"
    } : {}, o && o.addedStyles)
      , v = vi(on({}, e), {
        status: "loaded",
        addedClasses: f,
        addedStyles: d
    });
    return s[Iu] = v,
    t.parentNode && t.parentNode.replaceChild(s, t),
    s
}
function MHe(t) {
    return t.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ")
}
function AHe(t) {
    return "data:image/svg+xml," + MHe(t)
}
function IHe(t) {
    return 'url("' + AHe(t) + '")'
}
const kHe = {
    display: "inline-block"
}
  , XA = {
    "background-color": "currentColor"
}
  , aae = {
    "background-color": "transparent"
}
  , Iz = {
    image: "var(--svg)",
    repeat: "no-repeat",
    size: "100% 100%"
}
  , kz = {
    "-webkit-mask": XA,
    mask: XA,
    background: aae
};
for (const t in kz) {
    const e = kz[t];
    for (const n in Iz)
        e[t + "-" + n] = Iz[n]
}
function Oz(t) {
    return t + (t.match(/^[-0-9.]+$/) ? "px" : "")
}
function OHe(t, e, n, r) {
    const a = e.customisations
      , i = zw(n, a)
      , o = i.attributes
      , l = t[Iu]
      , s = Jre(i.body, vi(on({}, o), {
        width: n.width + "",
        height: n.height + ""
    }))
      , u = eae(e.icon)
      , c = tae(t, u, new Set(l && l.addedClasses))
      , f = IHe(s)
      , d = on(on({
        "--svg": f,
        width: Oz(o.width),
        height: Oz(o.height)
    }, kHe), r ? XA : aae);
    a.inline && (d["vertical-align"] = "-0.125em");
    const v = nae(t, d, l && l.addedStyles)
      , h = vi(on({}, e), {
        status: "loaded",
        addedClasses: c,
        addedStyles: v
    });
    return t[Iu] = h,
    t
}
let n1 = !1;
function DHe() {
    n1 || (n1 = !0,
    setTimeout(()=>{
        n1 && (n1 = !1,
        Yv())
    }
    ))
}
function Yv(t, e=!1) {
    const n = Object.create(null);
    function r(a, i) {
        const {provider: o, prefix: l, name: s} = a
          , u = hl(o, l)
          , c = u.icons[s];
        if (c)
            return {
                status: "loaded",
                icon: c
            };
        if (u.missing.has(s))
            return {
                status: "missing"
            };
        if (i && !iHe(a)) {
            const f = n[o] || (n[o] = Object.create(null));
            (f[l] || (f[l] = new Set)).add(s)
        }
        return {
            status: "loading"
        }
    }
    (t ? [t] : Vm()).forEach(a=>{
        const i = typeof a.node == "function" ? a.node() : a.node;
        if (!i || !i.querySelectorAll)
            return;
        let o = !1
          , l = !1;
        function s(u, c, f) {
            if (l || (l = !0,
            YA(a)),
            u.tagName.toUpperCase() !== "SVG") {
                const d = c.mode
                  , v = d === "mask" || (d === "bg" ? !1 : d === "style" ? f.body.indexOf("currentColor") !== -1 : null);
                if (typeof v == "boolean") {
                    OHe(u, c, on(on({}, $m), f), v);
                    return
                }
            }
            rae(u, c, f)
        }
        _He(i).forEach(({node: u, props: c})=>{
            const f = u[Iu];
            if (!f) {
                const {status: v, icon: h} = r(c.icon, !0);
                if (h) {
                    s(u, c, h);
                    return
                }
                o = o || v === "loading",
                u[Iu] = vi(on({}, c), {
                    status: v
                });
                return
            }
            let d;
            if (pHe(f, c)) {
                if (d = r(c.icon, f.name !== c.name),
                !d.icon) {
                    o = o || d.status === "loading",
                    Object.assign(f, vi(on({}, c), {
                        status: d.status
                    }));
                    return
                }
            } else {
                if (f.status !== "loading")
                    return;
                if (d = r(c.icon, !1),
                !d.icon) {
                    f.status = d.status;
                    return
                }
            }
            s(u, c, d.icon)
        }
        ),
        a.temporary && !o ? Qre(i) : e && o ? Zre(i, !0) : l && a.observer && qA(a)
    }
    );
    for (const a in n) {
        const i = n[a];
        for (const o in i) {
            const l = i[o];
            m6(Array.from(l).map(s=>({
                provider: a,
                prefix: o,
                name: s
            })), DHe)
        }
    }
}
function EHe(t) {
    const e = Bm(t);
    e ? Yv(e) : Yv({
        node: t,
        temporary: !0
    }, !0)
}
function iae(t, e, n=!1) {
    const r = Fm(t);
    if (!r)
        return null;
    const a = wh(t)
      , i = Kre(Ww, e || {})
      , o = rae(document.createElement("span"), {
        name: t,
        icon: a,
        customisations: i
    }, r);
    return n ? o.outerHTML : o
}
function LHe() {
    return "3.1.1"
}
function RHe(t, e) {
    return iae(t, e, !1)
}
function NHe(t, e) {
    return iae(t, e, !0)
}
function $He(t, e) {
    const n = Fm(t);
    if (!n)
        return null;
    const r = Kre(Ww, e || {});
    return zw(n, r)
}
function FHe(t) {
    t ? EHe(t) : Yv()
}
if (typeof document != "undefined" && typeof window != "undefined") {
    lHe();
    const t = window;
    if (t.IconifyPreload !== void 0) {
        const e = t.IconifyPreload
          , n = "Invalid IconifyPreload syntax.";
        typeof e == "object" && e !== null && (e instanceof Array ? e : [e]).forEach(r=>{
            try {
                typeof r != "object" || r === null || r instanceof Array || typeof r.icons != "object" || typeof r.prefix != "string" || kre(r)
            } catch (a) {}
        }
        )
    }
    setTimeout(()=>{
        dHe(Yv),
        Yv()
    }
    )
}
function BHe(t, e) {
    Vre(t, e !== !1)
}
function VHe(t) {
    Vre(t, !0)
}
zre("", Kze);
if (typeof document != "undefined" && typeof window != "undefined") {
    Bre();
    const t = window;
    if (t.IconifyProviders !== void 0) {
        const e = t.IconifyProviders;
        if (typeof e == "object" && e !== null)
            for (const n in e) {
                const r = "IconifyProviders[" + n + "] is invalid.";
                try {
                    const a = e[n];
                    if (typeof a != "object" || !a || a.resources === void 0)
                        continue;
                    Hre(n, a)
                } catch (a) {}
            }
    }
}
const zHe = {
    getAPIConfig: jw,
    setAPIModule: zre,
    sendAPIQuery: Gre,
    setFetch: Bze,
    getFetch: Vze,
    listAPIProviders: $ze
}
  , HHe = {
    _api: zHe,
    addAPIProvider: Hre,
    loadIcons: m6,
    loadIcon: oHe,
    iconExists: Mze,
    getIcon: Aze,
    listIcons: Tze,
    addIcon: Ire,
    addCollection: kre,
    replaceIDs: Ere,
    calculateSize: zA,
    buildIcon: zw,
    getVersion: LHe,
    renderSVG: RHe,
    renderHTML: NHe,
    renderIcon: $He,
    scan: FHe,
    observe: Zre,
    stopObserving: Qre,
    pauseObserver: vHe,
    resumeObserver: hHe,
    enableCache: BHe,
    disableCache: VHe
};
try {
    self.Iconify === void 0 && (self.Iconify = HHe)
} catch (t) {}
const jHe = {}
  , oae = Symbol("GLOBAL_OPTIONS_PROVIDE_KEY")
  , lae = ()=>jHe
  , xs = t=>t
  , WHe = Object.prototype.toString
  , GHe = t=>WHe.call(t)
  , KHe = t=>GHe(t) === "[object Object]"
  , mS = t=>Array.isArray(t)
  , A0 = t=>t !== null && typeof t == "object"
  , y6 = t=>t instanceof Function
  , zm = t=>t == null
  , b6 = typeof window == "undefined"
  , sae = ()=>{
    var t;
    return b6 || zm((t = window.document) === null || t === void 0 ? void 0 : t.visibilityState) ? !0 : window.document.visibilityState === "visible"
}
  , UHe = ()=>{
    var t, e;
    return (t = !b6 && ((e = window.navigator) === null || e === void 0 ? void 0 : e.onLine)) !== null && t !== void 0 ? t : !0
}
  , nP = ()=>new Promise(()=>{}
)
  , Dz = function(t, e) {
    let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
    const r = e.replace(/\[(\d+)\]/g, ".$1").split(".");
    let a = t;
    for (const i of r)
        if (a = Object(a)[i],
        a === void 0)
            return n;
    return a
}
  , pl = t=>Hn(t) ? t.value : t
  , YHe = t=>A0(t) ? Object.assign(mS(t) ? [] : {}, t) : t
  , Zb = new Map
  , qHe = t=>zm(t) ? void 0 : Zb.get(t)
  , XHe = (t,e,n)=>{
    const r = Zb.get(t);
    r != null && r.timer && clearTimeout(r.timer);
    const a = setTimeout(()=>Zb.delete(t), e);
    Zb.set(t, vi(on({}, n), {
        timer: a
    }))
}
;
function uae(t, e, n) {
    let r, a, i, o, l, s, u = 0, c = !1, f = !1, d = !0;
    const v = !e && e !== 0 && typeof window.requestAnimationFrame == "function";
    if (typeof t != "function")
        throw new TypeError("Expected a function");
    e = +e || 0,
    A0(n) && (c = !!n.leading,
    f = "maxWait"in n,
    i = f ? Math.max(+n.maxWait || 0, e) : i,
    d = "trailing"in n ? !!n.trailing : d);
    function h(M) {
        const A = r
          , O = a;
        return r = a = void 0,
        u = M,
        o = t.apply(O, A),
        o
    }
    function p(M, A) {
        return v ? (window.cancelAnimationFrame(l),
        window.requestAnimationFrame(M)) : setTimeout(M, A)
    }
    function g(M) {
        if (v)
            return window.cancelAnimationFrame(M);
        clearTimeout(M)
    }
    function m(M) {
        return u = M,
        l = p(x, e),
        c ? h(M) : o
    }
    function y(M) {
        const A = M - s
          , O = M - u
          , k = e - A;
        return f ? Math.min(k, i - O) : k
    }
    function b(M) {
        const A = M - s
          , O = M - u;
        return s === void 0 || A >= e || A < 0 || f && O >= i
    }
    function x() {
        const M = Date.now();
        if (b(M))
            return C(M);
        l = p(x, y(M))
    }
    function C(M) {
        return l = void 0,
        d && r ? h(M) : (r = a = void 0,
        o)
    }
    function S() {
        l !== void 0 && g(l),
        u = 0,
        r = s = a = l = void 0
    }
    function w() {
        return l === void 0 ? o : C(Date.now())
    }
    function T() {
        return l !== void 0
    }
    function P() {
        const M = Date.now()
          , A = b(M);
        for (var O = arguments.length, k = new Array(O), D = 0; D < O; D++)
            k[D] = arguments[D];
        if (r = k,
        a = this,
        s = M,
        A) {
            if (l === void 0)
                return m(s);
            if (f)
                return l = p(x, e),
                h(s)
        }
        return l === void 0 && (l = p(x, e)),
        o
    }
    return P.cancel = S,
    P.flush = w,
    P.pending = T,
    P
}
function cae(t, e) {
    for (const n in e)
        if (e[n] !== void 0) {
            if (!A0(e[n]) || !A0(t[n]) || !(n in t)) {
                t[n] = e[n];
                continue
            }
            (KHe(e[n]) || mS(e[n])) && cae(t[n], e[n])
        }
}
function Ez(t) {
    const e = Object.assign({}, t);
    for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
        r[a - 1] = arguments[a];
    if (!r.length)
        return e;
    for (const i of r)
        cae(e, i);
    return e
}
function ZHe(t, e, n) {
    let r = !0
      , a = !0;
    if (typeof t != "function")
        throw new TypeError("Expected a function");
    return A0(n) && (r = "leading"in n ? !!n.leading : r,
    a = "trailing"in n ? !!n.trailing : a),
    uae(t, e, {
        leading: r,
        trailing: a,
        maxWait: e
    })
}
var QHe = xs((t,e)=>{
    let {debounceInterval: n, debounceOptions: r, manual: a} = e;
    const i = Q(!1)
      , o = Q()
      , l = j(()=>r)
      , s = j(()=>pl(n))
      , u = Q(t.context.runAsync);
    return a || (i.value = !0),
    pt(c=>{
        zm(s.value) || (o.value = uae(f=>f(), s.value, l.value),
        t.context.runAsync = function() {
            for (var f = arguments.length, d = new Array(f), v = 0; v < f; v++)
                d[v] = arguments[v];
            return new Promise((h,p)=>{
                i.value ? (i.value = !1,
                u.value(...d).then(h).catch(p)) : o.value(()=>{
                    u.value(...d).then(h).catch(p)
                }
                )
            }
            )
        }
        ,
        c(()=>{
            var f;
            (f = o.value) === null || f === void 0 || f.cancel(),
            t.context.runAsync = u.value
        }
        ))
    }
    ),
    {
        onCancel() {
            var c;
            (c = o.value) === null || c === void 0 || c.cancel()
        }
    }
}
)
  , JHe = xs((t,e)=>{
    let {errorRetryCount: n=0, errorRetryInterval: r=0} = e;
    const a = Q()
      , i = Q(0)
      , o = j(()=>pl(n))
      , l = j(()=>pl(r));
    let s = !1;
    const u = ()=>{
        i.value = 0
    }
      , c = j(()=>{
        if (l.value)
            return l.value;
        const v = 1e3
          , h = 1
          , p = 9
          , g = Math.floor(Math.random() * fR(2, Math.min(i.value, p)) + h);
        return v * g
    }
    )
      , f = ()=>{
        let v;
        const h = o.value === -1
          , p = i.value < o.value;
        return (h || p) && (h || (i.value += 1),
        v = setTimeout(()=>{
            s = !0,
            t.context.refresh()
        }
        , c.value)),
        ()=>v && clearTimeout(v)
    }
      , d = ()=>{
        a.value && a.value()
    }
    ;
    return {
        onBefore() {
            s || u(),
            s = !1,
            d()
        },
        onSuccess() {
            u()
        },
        onError() {
            a.value = f()
        },
        onCancel() {
            u(),
            d()
        }
    }
}
)
  , eje = xs((t,e)=>{
    let {ready: n=Q(!0), manual: r, defaultParams: a=[]} = e;
    return Te(n, i=>{
        !r && i && t.context.run(...a)
    }
    , {
        flush: "sync"
    }),
    {
        onBefore() {
            if (!(y6(n) ? n() : n.value))
                return t.loading.value = !1,
                {
                    isBreak: !0
                }
        }
    }
}
)
  , tje = xs((t,e)=>{
    let {refreshDeps: n, refreshDepsAction: r, manual: a} = e;
    if (n === void 0 || mS(n) && n.length === 0)
        return {};
    const i = mS(n) ? n : [n];
    return Te(i, ()=>{
        r ? r() : !a && t.context.refresh()
    }
    ),
    {}
}
)
  , nje = xs((t,e)=>{
    let {throttleInterval: n, throttleOptions: r} = e;
    const a = Q()
      , i = j(()=>pl(n))
      , o = j(()=>r)
      , l = Q(t.context.runAsync);
    return pt(s=>{
        if (zm(n))
            return {};
        a.value = ZHe(u=>u(), i.value, o.value),
        t.context.runAsync = function() {
            for (var u = arguments.length, c = new Array(u), f = 0; f < u; f++)
                c[f] = arguments[f];
            return new Promise((d,v)=>{
                a.value(()=>{
                    l.value(...c).then(d).catch(v)
                }
                )
            }
            )
        }
        ,
        s(()=>{
            var u;
            (u = a.value) === null || u === void 0 || u.cancel(),
            t.context.runAsync = l.value
        }
        )
    }
    ),
    {
        onCancel() {
            var s;
            (s = a.value) === null || s === void 0 || s.cancel()
        }
    }
}
);
const rje = (t,e)=>n=>{
    Object.keys(n).forEach(r=>{
        t[r].value = n[r]
    }
    ),
    e.forEach(r=>r(t))
}
  , aje = (t,e)=>()=>{
    let n = e;
    for (let r = t.length; r-- > 0; )
        n = t[r](n);
    return n()
}
  , ije = (t,e,n)=>{
    var r, a;
    const {initialData: i, onSuccess: o, onError: l, onBefore: s, onAfter: u} = e
      , c = Q((r = n == null ? void 0 : n.loading) !== null && r !== void 0 ? r : !1)
      , f = Mt((a = n == null ? void 0 : n.data) !== null && a !== void 0 ? a : i)
      , d = Mt(n == null ? void 0 : n.error)
      , v = Q(n == null ? void 0 : n.params)
      , h = Q([])
      , p = Mt("pending")
      , g = {}
      , m = rje({
        status: p,
        loading: c,
        data: f,
        error: d,
        params: v
    }, [])
      , y = function(x) {
        for (var C = arguments.length, S = new Array(C > 1 ? C - 1 : 0), w = 1; w < C; w++)
            S[w - 1] = arguments[w];
        if (x === "onQuery") {
            const T = h.value.map(P=>P.onQuery).filter(Boolean);
            return {
                servicePromise: aje(T, S[0])()
            }
        } else {
            const T = h.value.map(P=>{
                var M;
                return (M = P[x]) === null || M === void 0 ? void 0 : M.call(P, ...S)
            }
            );
            return Object.assign({}, ...T)
        }
    }
      , b = Q(0);
    return g.runAsync = function() {
        return Uh(this, arguments, function*() {
            for (var x = arguments.length, C = new Array(x), S = 0; S < x; S++)
                C[S] = arguments[S];
            m({
                loading: !0,
                params: C,
                status: "pending"
            }),
            b.value += 1;
            const w = b.value
              , {isBreak: T, breakResult: P=nP()} = y("onBefore", C);
            if (T)
                return m({
                    status: "settled"
                }),
                P;
            s == null || s(C);
            try {
                const M = ()=>new Promise(k=>k(t(...v.value)));
                let {servicePromise: A} = y("onQuery", M);
                A || (A = M());
                const O = yield A;
                return w !== b.value ? nP() : (m({
                    data: O,
                    loading: !1,
                    error: void 0,
                    status: "settled"
                }),
                y("onSuccess", O, C),
                o == null || o(O, C),
                w === b.value && y("onAfter", C, O, void 0),
                u == null || u(C),
                O)
            } catch (M) {
                if (w !== b.value)
                    return nP();
                throw m({
                    loading: !1,
                    error: M,
                    status: "settled"
                }),
                y("onError", M, C),
                l == null || l(M, C),
                w === b.value && y("onAfter", C, void 0, M),
                u == null || u(C),
                M
            }
        })
    }
    ,
    g.run = function() {
        g.runAsync(...arguments).catch(x=>{}
        )
    }
    ,
    g.cancel = ()=>{
        b.value += 1,
        m({
            loading: !1
        }),
        y("onCancel")
    }
    ,
    g.refresh = ()=>{
        g.run(...v.value || [])
    }
    ,
    g.refreshAsync = ()=>g.runAsync(...v.value || []),
    g.mutate = x=>{
        const C = y6(x) ? x(f.value) : x
          , S = YHe(C);
        m({
            data: S
        }),
        y("onMutate", S)
    }
    ,
    {
        status: p,
        loading: c,
        data: f,
        error: d,
        params: v,
        plugins: h,
        context: g
    }
}
;
function oje(t) {
    let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}
      , n = arguments.length > 2 ? arguments[2] : void 0;
    const r = vt(oae, {})
      , a = on(on(on({}, lae()), r), e)
      , {manual: i=!1, defaultParams: o=[]} = a
      , l = ije(t, a);
    if (l.plugins.value = n.map(s=>s(l, a)),
    !i) {
        const s = l.params.value || o;
        l.context.run(...s)
    }
    return dr(()=>{
        l.context.cancel()
    }
    ),
    {
        loading: l.loading,
        data: l.data,
        error: l.error,
        params: l.params,
        cancel: l.context.cancel,
        refresh: l.context.refresh,
        refreshAsync: l.context.refreshAsync,
        mutate: l.context.mutate,
        run: l.context.run,
        runAsync: l.context.runAsync
    }
}
const Qb = new Map
  , lje = (t,e)=>{
    Qb.set(t, e),
    e.then(n=>(Qb.delete(t),
    n)).catch(()=>{
        Qb.delete(t)
    }
    )
}
  , sje = t=>Qb.get(t)
  , Uc = new Map
  , uje = (t,e)=>{
    Uc.has(t) && Uc.get(t).forEach(n=>n(e))
}
  , cje = (t,e)=>(Uc.has(t) ? Uc.get(t).push(e) : Uc.set(t, [e]),
()=>{
    const n = Uc.get(t).indexOf(e);
    Uc.get(t).splice(n, 1)
}
);
var fje = xs((t,e)=>{
    let {cacheKey: n, cacheTime: r=6e5, staleTime: a=0, getCache: i, setCache: o} = e;
    if (!n)
        return {};
    const l = y6(n) ? n : ()=>n
      , s = Q(()=>{}
    );
    let u;
    const c = m=>i ? i(m) : qHe(m)
      , f = (m,y,b)=>{
        o ? o(m, b) : XHe(m, y, b),
        uje(m, b.data)
    }
      , d = m=>a === -1 || m + a > new Date().getTime()
      , v = (m,y)=>Object.prototype.hasOwnProperty.call(m, y)
      , h = m=>{
        const y = l(m);
        return cje(y, b=>{
            t.data.value = b
        }
        )
    }
      , p = l()
      , g = c(p);
    return g && v(g, "data") && (t.data.value = g.data,
    t.params.value = g.params),
    p && (s.value = h()),
    dr(()=>{
        s.value()
    }
    ),
    {
        onBefore(m) {
            const y = l(m)
              , b = c(y);
            if (!b || !v(b, "data"))
                return {};
            if (d(b.time))
                return t.data.value = b.data,
                t.loading.value = !1,
                {
                    isBreak: !0,
                    breakResult: b.data
                };
            t.data.value = b.data
        },
        onQuery(m) {
            const y = t.params.value
              , b = l(y);
            let x = sje(b);
            return x && x !== u ? ()=>x : (x = m(),
            u = x,
            lje(b, x),
            ()=>x)
        },
        onSuccess(m, y) {
            const b = l(y);
            b && (s.value(),
            f(b, r, {
                data: m,
                params: y,
                time: new Date().getTime()
            }),
            s.value = h(y))
        },
        onMutate(m) {
            const y = l(t.params.value);
            y && (s.value(),
            f(y, r, {
                data: m,
                params: t.params.value,
                time: new Date().getTime()
            }),
            s.value = h(t.params.value))
        }
    }
}
);
function dje(t) {
    let e, n;
    class r extends Promise {
        constructor(i) {
            super(i),
            this.cancel = ()=>{
                n(),
                clearTimeout(e)
            }
        }
    }
    return new r(a=>{
        n = a,
        e = setTimeout(n, t)
    }
    )
}
function rP() {
    return new Date().getTime()
}
var vje = xs((t,e)=>{
    let {loadingDelay: n=0, loadingKeep: r=0} = e;
    const a = Q(()=>{}
    )
      , i = j(()=>pl(n))
      , o = j(()=>pl(r));
    let l = 0
      , s = {};
    const u = ()=>{
        let c;
        return i.value && (c = setTimeout(()=>{
            t.status.value === "pending" && (t.loading.value = !0)
        }
        , i.value)),
        ()=>c && clearTimeout(c)
    }
    ;
    return {
        onBefore() {
            t.loading.value = !i.value,
            a.value(),
            a.value = u(),
            l = rP()
        },
        onQuery(c) {
            if (!o.value)
                return ()=>c();
            s = dje(o.value + i.value);
            const f = ()=>Uh(this, null, function*() {
                try {
                    const v = yield c();
                    return rP() - l <= i.value && s.cancel(),
                    Promise.resolve(v)
                } catch (v) {
                    return rP() - l <= i.value && s.cancel(),
                    Promise.reject(v)
                }
            })
              , d = Promise.allSettled([f(), s]).then(v=>{
                const h = v[0];
                return h.status === "fulfilled" ? h.value : Promise.reject(h.reason)
            }
            );
            return ()=>d
        },
        onCancel() {
            a.value()
        },
        onAfter() {
            a.value()
        }
    }
}
), aP;
const fae = new Set
  , dae = new Set
  , vae = new Set
  , yS = (t,e)=>{
    let n;
    switch (t) {
    case "FOCUS_LISTENER":
        n = fae;
        break;
    case "RECONNECT_LISTENER":
        n = vae;
        break;
    case "VISIBLE_LISTENER":
        n = dae;
        break
    }
    if (!n.has(e))
        return n.add(e),
        ()=>{
            n.delete(e)
        }
}
  , iP = t=>{
    t.forEach(e=>{
        e()
    }
    )
}
;
!b6 && (aP = window) !== null && aP !== void 0 && aP.addEventListener && (window.addEventListener("visibilitychange", ()=>{
    sae() && iP(dae)
}
, !1),
window.addEventListener("focus", ()=>iP(fae), !1),
window.addEventListener("online", ()=>iP(vae), !1));
var hje = xs((t,e)=>{
    let {pollingInterval: n, pollingWhenHidden: r=!1, pollingWhenOffline: a=!1, errorRetryCount: i=0} = e;
    const o = Q()
      , l = Q(!1)
      , s = j(()=>pl(n))
      , u = j(()=>pl(i))
      , c = []
      , f = p=>{
        p && c.push(p)
    }
      , d = ()=>(r || sae()) && (a || UHe())
      , v = p=>{
        if (t.error.value && u.value !== 0)
            return;
        let g;
        if (!zm(s.value) && s.value >= 0)
            if (d())
                g = setTimeout(p, s.value);
            else {
                l.value = !0;
                return
            }
        return ()=>g && clearTimeout(g)
    }
      , h = ()=>{
        l.value && d() && (t.context.refresh(),
        l.value = !1)
    }
    ;
    return Te(s, ()=>{
        o.value && (o.value(),
        o.value = v(()=>t.context.refresh()))
    }
    ),
    r || f(yS("VISIBLE_LISTENER", h)),
    a || f(yS("RECONNECT_LISTENER", h)),
    dr(()=>{
        c.forEach(p=>p())
    }
    ),
    {
        onBefore() {
            var p;
            (p = o.value) === null || p === void 0 || p.call(o)
        },
        onCancel() {
            var p;
            (p = o.value) === null || p === void 0 || p.call(o)
        },
        onAfter() {
            o.value = v(()=>t.context.refresh())
        }
    }
}
);
const pje = (t,e)=>{
    let n = !1;
    return function() {
        n || (n = !0,
        t(...arguments),
        setTimeout(()=>{
            n = !1
        }
        , e))
    }
}
;
var gje = xs((t,e)=>{
    let {refreshOnWindowFocus: n=!1, refocusTimespan: r=5e3} = e;
    const a = j(()=>pl(n))
      , i = j(()=>pl(r))
      , o = []
      , l = u=>{
        u && o.push(u)
    }
      , s = ()=>{
        o.forEach(u=>u())
    }
    ;
    return pt(()=>{
        if (s(),
        a.value) {
            const u = pje(t.context.refresh, i.value);
            l(yS("VISIBLE_LISTENER", u)),
            l(yS("FOCUS_LISTENER", u))
        }
    }
    ),
    dr(()=>{
        s()
    }
    ),
    {}
}
);
function mje(t, e) {
    return oje(t, e, [vje, JHe, QHe, hje, nje, gje, tje, eje, fje])
}
function ngt(t) {
    let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
    const n = {
        currentKey: "current",
        pageSizeKey: "pageSize",
        totalKey: "total",
        totalPageKey: "totalPage"
    }
      , r = vt(oae, {})
      , w = e
      , {pagination: a} = w
      , i = j2(w, ["pagination"])
      , {currentKey: o, pageSizeKey: l, totalKey: s, totalPageKey: u} = Ez(n, lae().pagination || {}, r.pagination || {}, a || {})
      , c = Ez({
        defaultParams: [{
            [o]: 1,
            [l]: 10
        }]
    }, i)
      , T = mje(t, c)
      , {data: f, params: d, run: v} = T
      , h = j2(T, ["data", "params", "run"])
      , p = P=>{
        const [M,...A] = d.value || []
          , k = [on(on({}, M), P), ...A];
        v(...k)
    }
      , g = P=>{
        p({
            [o]: P
        })
    }
      , m = P=>{
        p({
            [l]: P
        })
    }
      , y = (P,M)=>{
        p({
            [o]: P,
            [l]: M
        })
    }
      , b = j(()=>Dz(f.value, s, 0))
      , x = j({
        get: ()=>{
            var P, M, A;
            return (P = (M = d.value) === null || M === void 0 || (A = M[0]) === null || A === void 0 ? void 0 : A[o]) !== null && P !== void 0 ? P : c.defaultParams[0][o]
        }
        ,
        set: P=>{
            g(P)
        }
    })
      , C = j({
        get: ()=>{
            var P, M, A;
            return (P = (M = d.value) === null || M === void 0 || (A = M[0]) === null || A === void 0 ? void 0 : A[l]) !== null && P !== void 0 ? P : c.defaultParams[0][l]
        }
        ,
        set: P=>{
            m(P)
        }
    })
      , S = j(()=>Dz(f.value, u, Math.ceil(b.value / C.value)));
    return on({
        data: f,
        params: d,
        current: x,
        pageSize: C,
        total: b,
        totalPage: S,
        run: v,
        changeCurrent: g,
        changePageSize: m,
        changePagination: y
    }, h)
}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var ZA = function(t, e) {
    return ZA = Object.setPrototypeOf || {
        __proto__: []
    }instanceof Array && function(n, r) {
        n.__proto__ = r
    }
    || function(n, r) {
        for (var a in r)
            Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a])
    }
    ,
    ZA(t, e)
};
function ge(t, e) {
    if (typeof e != "function" && e !== null)
        throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
    ZA(t, e);
    function n() {
        this.constructor = t
    }
    t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype,
    new n)
}
var yje = function() {
    function t() {
        this.firefox = !1,
        this.ie = !1,
        this.edge = !1,
        this.newEdge = !1,
        this.weChat = !1
    }
    return t
}()
  , bje = function() {
    function t() {
        this.browser = new yje,
        this.node = !1,
        this.wxa = !1,
        this.worker = !1,
        this.svgSupported = !1,
        this.touchEventsSupported = !1,
        this.pointerEventsSupported = !1,
        this.domSupported = !1,
        this.transformSupported = !1,
        this.transform3dSupported = !1,
        this.hasGlobalWindow = typeof window != "undefined"
    }
    return t
}()
  , Dc = new bje;
typeof wx == "object" && typeof wx.getSystemInfoSync == "function" ? (Dc.wxa = !0,
Dc.touchEventsSupported = !0) : typeof document == "undefined" && typeof self != "undefined" ? Dc.worker = !0 : typeof navigator == "undefined" ? (Dc.node = !0,
Dc.svgSupported = !0) : xje(navigator.userAgent, Dc);
function xje(t, e) {
    var n = e.browser
      , r = t.match(/Firefox\/([\d.]+)/)
      , a = t.match(/MSIE\s([\d.]+)/) || t.match(/Trident\/.+?rv:(([\d.]+))/)
      , i = t.match(/Edge?\/([\d.]+)/)
      , o = /micromessenger/i.test(t);
    r && (n.firefox = !0,
    n.version = r[1]),
    a && (n.ie = !0,
    n.version = a[1]),
    i && (n.edge = !0,
    n.version = i[1],
    n.newEdge = +i[1].split(".")[0] > 18),
    o && (n.weChat = !0),
    e.svgSupported = typeof SVGRect != "undefined",
    e.touchEventsSupported = "ontouchstart"in window && !n.ie && !n.edge,
    e.pointerEventsSupported = "onpointerdown"in window && (n.edge || n.ie && +n.version >= 11),
    e.domSupported = typeof document != "undefined";
    var l = document.documentElement.style;
    e.transform3dSupported = (n.ie && "transition"in l || n.edge || "WebKitCSSMatrix"in window && "m11"in new WebKitCSSMatrix || "MozPerspective"in l) && !("OTransition"in l),
    e.transformSupported = e.transform3dSupported || n.ie && +n.version >= 9
}
const nn = Dc;
var x6 = 12
  , hae = "sans-serif"
  , ku = x6 + "px " + hae
  , Sje = 20
  , Cje = 100
  , wje = "007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";
function _je(t) {
    var e = {};
    if (typeof JSON == "undefined")
        return e;
    for (var n = 0; n < t.length; n++) {
        var r = String.fromCharCode(n + 32)
          , a = (t.charCodeAt(n) - Sje) / Cje;
        e[r] = a
    }
    return e
}
var Tje = _je(wje)
  , _o = {
    createCanvas: function() {
        return typeof document != "undefined" && document.createElement("canvas")
    },
    measureText: function() {
        var t, e;
        return function(n, r) {
            if (!t) {
                var a = _o.createCanvas();
                t = a && a.getContext("2d")
            }
            if (t)
                return e !== r && (e = t.font = r || ku),
                t.measureText(n);
            n = n || "",
            r = r || ku;
            var i = /(\d+)px/.exec(r)
              , o = i && +i[1] || x6
              , l = 0;
            if (r.indexOf("mono") >= 0)
                l = o * n.length;
            else
                for (var s = 0; s < n.length; s++) {
                    var u = Tje[n[s]];
                    l += u == null ? o : u * o
                }
            return {
                width: l
            }
        }
    }(),
    loadImage: function(t, e, n) {
        var r = new Image;
        return r.onload = e,
        r.onerror = n,
        r.src = t,
        r
    }
};
function pae(t) {
    for (var e in _o)
        t[e] && (_o[e] = t[e])
}
var gae = Hi(["Function", "RegExp", "Date", "Error", "CanvasGradient", "CanvasPattern", "Image", "Canvas"], function(t, e) {
    return t["[object " + e + "]"] = !0,
    t
}, {})
  , mae = Hi(["Int8", "Uint8", "Uint8Clamped", "Int16", "Uint16", "Int32", "Uint32", "Float32", "Float64"], function(t, e) {
    return t["[object " + e + "Array]"] = !0,
    t
}, {})
  , _h = Object.prototype.toString
  , Gw = Array.prototype
  , Pje = Gw.forEach
  , Mje = Gw.filter
  , S6 = Gw.slice
  , Aje = Gw.map
  , Lz = function() {}
.constructor
  , r1 = Lz ? Lz.prototype : null
  , C6 = "__proto__"
  , Ije = 2311;
function w6() {
    return Ije++
}
function Kw() {
    for (var t = [], e = 0; e < arguments.length; e++)
        t[e] = arguments[e]
}
function ut(t) {
    if (t == null || typeof t != "object")
        return t;
    var e = t
      , n = _h.call(t);
    if (n === "[object Array]") {
        if (!bv(t)) {
            e = [];
            for (var r = 0, a = t.length; r < a; r++)
                e[r] = ut(t[r])
        }
    } else if (mae[n]) {
        if (!bv(t)) {
            var i = t.constructor;
            if (i.from)
                e = i.from(t);
            else {
                e = new i(t.length);
                for (var r = 0, a = t.length; r < a; r++)
                    e[r] = t[r]
            }
        }
    } else if (!gae[n] && !bv(t) && !qv(t)) {
        e = {};
        for (var o in t)
            t.hasOwnProperty(o) && o !== C6 && (e[o] = ut(t[o]))
    }
    return e
}
function At(t, e, n) {
    if (!st(e) || !st(t))
        return n ? ut(e) : t;
    for (var r in e)
        if (e.hasOwnProperty(r) && r !== C6) {
            var a = t[r]
              , i = e[r];
            st(i) && st(a) && !ke(i) && !ke(a) && !qv(i) && !qv(a) && !QA(i) && !QA(a) && !bv(i) && !bv(a) ? At(a, i, n) : (n || !(r in t)) && (t[r] = ut(e[r]))
        }
    return t
}
function Uw(t, e) {
    for (var n = t[0], r = 1, a = t.length; r < a; r++)
        n = At(n, t[r], e);
    return n
}
function Me(t, e) {
    if (Object.assign)
        Object.assign(t, e);
    else
        for (var n in e)
            e.hasOwnProperty(n) && n !== C6 && (t[n] = e[n]);
    return t
}
function ot(t, e, n) {
    for (var r = Gt(e), a = 0; a < r.length; a++) {
        var i = r[a];
        (n ? e[i] != null : t[i] == null) && (t[i] = e[i])
    }
    return t
}
var kje = _o.createCanvas;
function Rt(t, e) {
    if (t) {
        if (t.indexOf)
            return t.indexOf(e);
        for (var n = 0, r = t.length; n < r; n++)
            if (t[n] === e)
                return n
    }
    return -1
}
function _6(t, e) {
    var n = t.prototype;
    function r() {}
    r.prototype = e.prototype,
    t.prototype = new r;
    for (var a in n)
        n.hasOwnProperty(a) && (t.prototype[a] = n[a]);
    t.prototype.constructor = t,
    t.superClass = e
}
function ir(t, e, n) {
    if (t = "prototype"in t ? t.prototype : t,
    e = "prototype"in e ? e.prototype : e,
    Object.getOwnPropertyNames)
        for (var r = Object.getOwnPropertyNames(e), a = 0; a < r.length; a++) {
            var i = r[a];
            i !== "constructor" && (n ? e[i] != null : t[i] == null) && (t[i] = e[i])
        }
    else
        ot(t, e, n)
}
function Qr(t) {
    return !t || typeof t == "string" ? !1 : typeof t.length == "number"
}
function Z(t, e, n) {
    if (!!(t && e))
        if (t.forEach && t.forEach === Pje)
            t.forEach(e, n);
        else if (t.length === +t.length)
            for (var r = 0, a = t.length; r < a; r++)
                e.call(n, t[r], r, t);
        else
            for (var i in t)
                t.hasOwnProperty(i) && e.call(n, t[i], i, t)
}
function Le(t, e, n) {
    if (!t)
        return [];
    if (!e)
        return Yw(t);
    if (t.map && t.map === Aje)
        return t.map(e, n);
    for (var r = [], a = 0, i = t.length; a < i; a++)
        r.push(e.call(n, t[a], a, t));
    return r
}
function Hi(t, e, n, r) {
    if (!!(t && e)) {
        for (var a = 0, i = t.length; a < i; a++)
            n = e.call(r, n, t[a], a, t);
        return n
    }
}
function pn(t, e, n) {
    if (!t)
        return [];
    if (!e)
        return Yw(t);
    if (t.filter && t.filter === Mje)
        return t.filter(e, n);
    for (var r = [], a = 0, i = t.length; a < i; a++)
        e.call(n, t[a], a, t) && r.push(t[a]);
    return r
}
function yae(t, e, n) {
    if (!!(t && e)) {
        for (var r = 0, a = t.length; r < a; r++)
            if (e.call(n, t[r], r, t))
                return t[r]
    }
}
function Gt(t) {
    if (!t)
        return [];
    if (Object.keys)
        return Object.keys(t);
    var e = [];
    for (var n in t)
        t.hasOwnProperty(n) && e.push(n);
    return e
}
function Oje(t, e) {
    for (var n = [], r = 2; r < arguments.length; r++)
        n[r - 2] = arguments[r];
    return function() {
        return t.apply(e, n.concat(S6.call(arguments)))
    }
}
var qe = r1 && et(r1.bind) ? r1.call.bind(r1.bind) : Oje;
function St(t) {
    for (var e = [], n = 1; n < arguments.length; n++)
        e[n - 1] = arguments[n];
    return function() {
        return t.apply(this, e.concat(S6.call(arguments)))
    }
}
function ke(t) {
    return Array.isArray ? Array.isArray(t) : _h.call(t) === "[object Array]"
}
function et(t) {
    return typeof t == "function"
}
function Ge(t) {
    return typeof t == "string"
}
function bS(t) {
    return _h.call(t) === "[object String]"
}
function rn(t) {
    return typeof t == "number"
}
function st(t) {
    var e = typeof t;
    return e === "function" || !!t && e === "object"
}
function QA(t) {
    return !!gae[_h.call(t)]
}
function ja(t) {
    return !!mae[_h.call(t)]
}
function qv(t) {
    return typeof t == "object" && typeof t.nodeType == "number" && typeof t.ownerDocument == "object"
}
function Hm(t) {
    return t.colorStops != null
}
function bae(t) {
    return t.image != null
}
function xae(t) {
    return _h.call(t) === "[object RegExp]"
}
function Xv(t) {
    return t !== t
}
function kr() {
    for (var t = [], e = 0; e < arguments.length; e++)
        t[e] = arguments[e];
    for (var n = 0, r = t.length; n < r; n++)
        if (t[n] != null)
            return t[n]
}
function Ot(t, e) {
    return t != null ? t : e
}
function ho(t, e, n) {
    return t != null ? t : e != null ? e : n
}
function Yw(t) {
    for (var e = [], n = 1; n < arguments.length; n++)
        e[n - 1] = arguments[n];
    return S6.apply(t, e)
}
function qw(t) {
    if (typeof t == "number")
        return [t, t, t, t];
    var e = t.length;
    return e === 2 ? [t[0], t[1], t[0], t[1]] : e === 3 ? [t[0], t[1], t[2], t[1]] : t
}
function la(t, e) {
    if (!t)
        throw new Error(e)
}
function Di(t) {
    return t == null ? null : typeof t.trim == "function" ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "")
}
var Sae = "__ec_primitive__";
function I0(t) {
    t[Sae] = !0
}
function bv(t) {
    return t[Sae]
}
var Dje = function() {
    function t() {
        this.data = {}
    }
    return t.prototype.delete = function(e) {
        var n = this.has(e);
        return n && delete this.data[e],
        n
    }
    ,
    t.prototype.has = function(e) {
        return this.data.hasOwnProperty(e)
    }
    ,
    t.prototype.get = function(e) {
        return this.data[e]
    }
    ,
    t.prototype.set = function(e, n) {
        return this.data[e] = n,
        this
    }
    ,
    t.prototype.keys = function() {
        return Gt(this.data)
    }
    ,
    t.prototype.forEach = function(e) {
        var n = this.data;
        for (var r in n)
            n.hasOwnProperty(r) && e(n[r], r)
    }
    ,
    t
}()
  , Cae = typeof Map == "function";
function Eje() {
    return Cae ? new Map : new Dje
}
var wae = function() {
    function t(e) {
        var n = ke(e);
        this.data = Eje();
        var r = this;
        e instanceof t ? e.each(a) : e && Z(e, a);
        function a(i, o) {
            n ? r.set(i, o) : r.set(o, i)
        }
    }
    return t.prototype.hasKey = function(e) {
        return this.data.has(e)
    }
    ,
    t.prototype.get = function(e) {
        return this.data.get(e)
    }
    ,
    t.prototype.set = function(e, n) {
        return this.data.set(e, n),
        n
    }
    ,
    t.prototype.each = function(e, n) {
        this.data.forEach(function(r, a) {
            e.call(n, r, a)
        })
    }
    ,
    t.prototype.keys = function() {
        var e = this.data.keys();
        return Cae ? Array.from(e) : e
    }
    ,
    t.prototype.removeKey = function(e) {
        this.data.delete(e)
    }
    ,
    t
}();
function Qe(t) {
    return new wae(t)
}
function k0(t, e) {
    for (var n = new t.constructor(t.length + e.length), r = 0; r < t.length; r++)
        n[r] = t[r];
    for (var a = t.length, r = 0; r < e.length; r++)
        n[r + a] = e[r];
    return n
}
function jm(t, e) {
    var n;
    if (Object.create)
        n = Object.create(t);
    else {
        var r = function() {};
        r.prototype = t,
        n = new r
    }
    return e && Me(n, e),
    n
}
function T6(t) {
    var e = t.style;
    e.webkitUserSelect = "none",
    e.userSelect = "none",
    e.webkitTapHighlightColor = "rgba(0,0,0,0)",
    e["-webkit-touch-callout"] = "none"
}
function Ze(t, e) {
    return t.hasOwnProperty(e)
}
function nr() {}
var Dg = 180 / Math.PI;
const Lje = Object.freeze(Object.defineProperty({
    __proto__: null,
    guid: w6,
    logError: Kw,
    clone: ut,
    merge: At,
    mergeAll: Uw,
    extend: Me,
    defaults: ot,
    createCanvas: kje,
    indexOf: Rt,
    inherits: _6,
    mixin: ir,
    isArrayLike: Qr,
    each: Z,
    map: Le,
    reduce: Hi,
    filter: pn,
    find: yae,
    keys: Gt,
    bind: qe,
    curry: St,
    isArray: ke,
    isFunction: et,
    isString: Ge,
    isStringSafe: bS,
    isNumber: rn,
    isObject: st,
    isBuiltInObject: QA,
    isTypedArray: ja,
    isDom: qv,
    isGradientObject: Hm,
    isImagePatternObject: bae,
    isRegExp: xae,
    eqNaN: Xv,
    retrieve: kr,
    retrieve2: Ot,
    retrieve3: ho,
    slice: Yw,
    normalizeCssArray: qw,
    assert: la,
    trim: Di,
    setAsPrimitive: I0,
    isPrimitive: bv,
    HashMap: wae,
    createHashMap: Qe,
    concatArray: k0,
    createObject: jm,
    disableUserSelect: T6,
    hasOwn: Ze,
    noop: nr,
    RADIAN_TO_DEGREE: Dg
}, Symbol.toStringTag, {
    value: "Module"
}));
function Gu(t, e) {
    return t == null && (t = 0),
    e == null && (e = 0),
    [t, e]
}
function ra(t, e) {
    return t[0] = e[0],
    t[1] = e[1],
    t
}
function cl(t) {
    return [t[0], t[1]]
}
function _ae(t, e, n) {
    return t[0] = e,
    t[1] = n,
    t
}
function JA(t, e, n) {
    return t[0] = e[0] + n[0],
    t[1] = e[1] + n[1],
    t
}
function xS(t, e, n, r) {
    return t[0] = e[0] + n[0] * r,
    t[1] = e[1] + n[1] * r,
    t
}
function au(t, e, n) {
    return t[0] = e[0] - n[0],
    t[1] = e[1] - n[1],
    t
}
function O0(t) {
    return Math.sqrt(P6(t))
}
var Rje = O0;
function P6(t) {
    return t[0] * t[0] + t[1] * t[1]
}
var Nje = P6;
function $je(t, e, n) {
    return t[0] = e[0] * n[0],
    t[1] = e[1] * n[1],
    t
}
function Fje(t, e, n) {
    return t[0] = e[0] / n[0],
    t[1] = e[1] / n[1],
    t
}
function Bje(t, e) {
    return t[0] * e[0] + t[1] * e[1]
}
function Eg(t, e, n) {
    return t[0] = e[0] * n,
    t[1] = e[1] * n,
    t
}
function td(t, e) {
    var n = O0(e);
    return n === 0 ? (t[0] = 0,
    t[1] = 0) : (t[0] = e[0] / n,
    t[1] = e[1] / n),
    t
}
function SS(t, e) {
    return Math.sqrt((t[0] - e[0]) * (t[0] - e[0]) + (t[1] - e[1]) * (t[1] - e[1]))
}
var Zl = SS;
function Tae(t, e) {
    return (t[0] - e[0]) * (t[0] - e[0]) + (t[1] - e[1]) * (t[1] - e[1])
}
var yu = Tae;
function Vje(t, e) {
    return t[0] = -e[0],
    t[1] = -e[1],
    t
}
function Lg(t, e, n, r) {
    return t[0] = e[0] + r * (n[0] - e[0]),
    t[1] = e[1] + r * (n[1] - e[1]),
    t
}
function Wr(t, e, n) {
    var r = e[0]
      , a = e[1];
    return t[0] = n[0] * r + n[2] * a + n[4],
    t[1] = n[1] * r + n[3] * a + n[5],
    t
}
function Ql(t, e, n) {
    return t[0] = Math.min(e[0], n[0]),
    t[1] = Math.min(e[1], n[1]),
    t
}
function Jl(t, e, n) {
    return t[0] = Math.max(e[0], n[0]),
    t[1] = Math.max(e[1], n[1]),
    t
}
const zje = Object.freeze(Object.defineProperty({
    __proto__: null,
    create: Gu,
    copy: ra,
    clone: cl,
    set: _ae,
    add: JA,
    scaleAndAdd: xS,
    sub: au,
    len: O0,
    length: Rje,
    lenSquare: P6,
    lengthSquare: Nje,
    mul: $je,
    div: Fje,
    dot: Bje,
    scale: Eg,
    normalize: td,
    distance: SS,
    dist: Zl,
    distanceSquare: Tae,
    distSquare: yu,
    negate: Vje,
    lerp: Lg,
    applyTransform: Wr,
    min: Ql,
    max: Jl
}, Symbol.toStringTag, {
    value: "Module"
}));
var yd = function() {
    function t(e, n) {
        this.target = e,
        this.topTarget = n && n.topTarget
    }
    return t
}()
  , Hje = function() {
    function t(e) {
        this.handler = e,
        e.on("mousedown", this._dragStart, this),
        e.on("mousemove", this._drag, this),
        e.on("mouseup", this._dragEnd, this)
    }
    return t.prototype._dragStart = function(e) {
        for (var n = e.target; n && !n.draggable; )
            n = n.parent || n.__hostTarget;
        n && (this._draggingTarget = n,
        n.dragging = !0,
        this._x = e.offsetX,
        this._y = e.offsetY,
        this.handler.dispatchToElement(new yd(n,e), "dragstart", e.event))
    }
    ,
    t.prototype._drag = function(e) {
        var n = this._draggingTarget;
        if (n) {
            var r = e.offsetX
              , a = e.offsetY
              , i = r - this._x
              , o = a - this._y;
            this._x = r,
            this._y = a,
            n.drift(i, o, e),
            this.handler.dispatchToElement(new yd(n,e), "drag", e.event);
            var l = this.handler.findHover(r, a, n).target
              , s = this._dropTarget;
            this._dropTarget = l,
            n !== l && (s && l !== s && this.handler.dispatchToElement(new yd(s,e), "dragleave", e.event),
            l && l !== s && this.handler.dispatchToElement(new yd(l,e), "dragenter", e.event))
        }
    }
    ,
    t.prototype._dragEnd = function(e) {
        var n = this._draggingTarget;
        n && (n.dragging = !1),
        this.handler.dispatchToElement(new yd(n,e), "dragend", e.event),
        this._dropTarget && this.handler.dispatchToElement(new yd(this._dropTarget,e), "drop", e.event),
        this._draggingTarget = null,
        this._dropTarget = null
    }
    ,
    t
}();
const jje = Hje;
var Wje = function() {
    function t(e) {
        e && (this._$eventProcessor = e)
    }
    return t.prototype.on = function(e, n, r, a) {
        this._$handlers || (this._$handlers = {});
        var i = this._$handlers;
        if (typeof n == "function" && (a = r,
        r = n,
        n = null),
        !r || !e)
            return this;
        var o = this._$eventProcessor;
        n != null && o && o.normalizeQuery && (n = o.normalizeQuery(n)),
        i[e] || (i[e] = []);
        for (var l = 0; l < i[e].length; l++)
            if (i[e][l].h === r)
                return this;
        var s = {
            h: r,
            query: n,
            ctx: a || this,
            callAtLast: r.zrEventfulCallAtLast
        }
          , u = i[e].length - 1
          , c = i[e][u];
        return c && c.callAtLast ? i[e].splice(u, 0, s) : i[e].push(s),
        this
    }
    ,
    t.prototype.isSilent = function(e) {
        var n = this._$handlers;
        return !n || !n[e] || !n[e].length
    }
    ,
    t.prototype.off = function(e, n) {
        var r = this._$handlers;
        if (!r)
            return this;
        if (!e)
            return this._$handlers = {},
            this;
        if (n) {
            if (r[e]) {
                for (var a = [], i = 0, o = r[e].length; i < o; i++)
                    r[e][i].h !== n && a.push(r[e][i]);
                r[e] = a
            }
            r[e] && r[e].length === 0 && delete r[e]
        } else
            delete r[e];
        return this
    }
    ,
    t.prototype.trigger = function(e) {
        for (var n = [], r = 1; r < arguments.length; r++)
            n[r - 1] = arguments[r];
        if (!this._$handlers)
            return this;
        var a = this._$handlers[e]
          , i = this._$eventProcessor;
        if (a)
            for (var o = n.length, l = a.length, s = 0; s < l; s++) {
                var u = a[s];
                if (!(i && i.filter && u.query != null && !i.filter(e, u.query)))
                    switch (o) {
                    case 0:
                        u.h.call(u.ctx);
                        break;
                    case 1:
                        u.h.call(u.ctx, n[0]);
                        break;
                    case 2:
                        u.h.call(u.ctx, n[0], n[1]);
                        break;
                    default:
                        u.h.apply(u.ctx, n);
                        break
                    }
            }
        return i && i.afterTrigger && i.afterTrigger(e),
        this
    }
    ,
    t.prototype.triggerWithContext = function(e) {
        for (var n = [], r = 1; r < arguments.length; r++)
            n[r - 1] = arguments[r];
        if (!this._$handlers)
            return this;
        var a = this._$handlers[e]
          , i = this._$eventProcessor;
        if (a)
            for (var o = n.length, l = n[o - 1], s = a.length, u = 0; u < s; u++) {
                var c = a[u];
                if (!(i && i.filter && c.query != null && !i.filter(e, c.query)))
                    switch (o) {
                    case 0:
                        c.h.call(l);
                        break;
                    case 1:
                        c.h.call(l, n[0]);
                        break;
                    case 2:
                        c.h.call(l, n[0], n[1]);
                        break;
                    default:
                        c.h.apply(l, n.slice(1, o - 1));
                        break
                    }
            }
        return i && i.afterTrigger && i.afterTrigger(e),
        this
    }
    ,
    t
}();
const Wi = Wje;
var Gje = Math.log(2);
function eI(t, e, n, r, a, i) {
    var o = r + "-" + a
      , l = t.length;
    if (i.hasOwnProperty(o))
        return i[o];
    if (e === 1) {
        var s = Math.round(Math.log((1 << l) - 1 & ~a) / Gje);
        return t[n][s]
    }
    for (var u = r | 1 << n, c = n + 1; r & 1 << c; )
        c++;
    for (var f = 0, d = 0, v = 0; d < l; d++) {
        var h = 1 << d;
        h & a || (f += (v % 2 ? -1 : 1) * t[n][d] * eI(t, e - 1, c, u, a | h, i),
        v++)
    }
    return i[o] = f,
    f
}
function Rz(t, e) {
    var n = [[t[0], t[1], 1, 0, 0, 0, -e[0] * t[0], -e[0] * t[1]], [0, 0, 0, t[0], t[1], 1, -e[1] * t[0], -e[1] * t[1]], [t[2], t[3], 1, 0, 0, 0, -e[2] * t[2], -e[2] * t[3]], [0, 0, 0, t[2], t[3], 1, -e[3] * t[2], -e[3] * t[3]], [t[4], t[5], 1, 0, 0, 0, -e[4] * t[4], -e[4] * t[5]], [0, 0, 0, t[4], t[5], 1, -e[5] * t[4], -e[5] * t[5]], [t[6], t[7], 1, 0, 0, 0, -e[6] * t[6], -e[6] * t[7]], [0, 0, 0, t[6], t[7], 1, -e[7] * t[6], -e[7] * t[7]]]
      , r = {}
      , a = eI(n, 8, 0, 0, 0, r);
    if (a !== 0) {
        for (var i = [], o = 0; o < 8; o++)
            for (var l = 0; l < 8; l++)
                i[l] == null && (i[l] = 0),
                i[l] += ((o + l) % 2 ? -1 : 1) * eI(n, 7, o === 0 ? 1 : 0, 1 << o, 1 << l, r) / a * e[o];
        return function(s, u, c) {
            var f = u * i[6] + c * i[7] + 1;
            s[0] = (u * i[0] + c * i[1] + i[2]) / f,
            s[1] = (u * i[3] + c * i[4] + i[5]) / f
        }
    }
}
var Nz = "___zrEVENTSAVED"
  , oP = [];
function Kje(t, e, n, r, a) {
    return tI(oP, e, r, a, !0) && tI(t, n, oP[0], oP[1])
}
function tI(t, e, n, r, a) {
    if (e.getBoundingClientRect && nn.domSupported && !Pae(e)) {
        var i = e[Nz] || (e[Nz] = {})
          , o = Uje(e, i)
          , l = Yje(o, i, a);
        if (l)
            return l(t, n, r),
            !0
    }
    return !1
}
function Uje(t, e) {
    var n = e.markers;
    if (n)
        return n;
    n = e.markers = [];
    for (var r = ["left", "right"], a = ["top", "bottom"], i = 0; i < 4; i++) {
        var o = document.createElement("div")
          , l = o.style
          , s = i % 2
          , u = (i >> 1) % 2;
        l.cssText = ["position: absolute", "visibility: hidden", "padding: 0", "margin: 0", "border-width: 0", "user-select: none", "width:0", "height:0", r[s] + ":0", a[u] + ":0", r[1 - s] + ":auto", a[1 - u] + ":auto", ""].join("!important;"),
        t.appendChild(o),
        n.push(o)
    }
    return n
}
function Yje(t, e, n) {
    for (var r = n ? "invTrans" : "trans", a = e[r], i = e.srcCoords, o = [], l = [], s = !0, u = 0; u < 4; u++) {
        var c = t[u].getBoundingClientRect()
          , f = 2 * u
          , d = c.left
          , v = c.top;
        o.push(d, v),
        s = s && i && d === i[f] && v === i[f + 1],
        l.push(t[u].offsetLeft, t[u].offsetTop)
    }
    return s && a ? a : (e.srcCoords = o,
    e[r] = n ? Rz(l, o) : Rz(o, l))
}
function Pae(t) {
    return t.nodeName.toUpperCase() === "CANVAS"
}
var qje = /([&<>"'])/g
  , Xje = {
    "&": "&amp;",
    "<": "&lt;",
    ">": "&gt;",
    '"': "&quot;",
    "'": "&#39;"
};
function Sa(t) {
    return t == null ? "" : (t + "").replace(qje, function(e, n) {
        return Xje[n]
    })
}
var Zje = /^(?:mouse|pointer|contextmenu|drag|drop)|click/
  , lP = []
  , Qje = nn.browser.firefox && +nn.browser.version.split(".")[0] < 39;
function nI(t, e, n, r) {
    return n = n || {},
    r ? $z(t, e, n) : Qje && e.layerX != null && e.layerX !== e.offsetX ? (n.zrX = e.layerX,
    n.zrY = e.layerY) : e.offsetX != null ? (n.zrX = e.offsetX,
    n.zrY = e.offsetY) : $z(t, e, n),
    n
}
function $z(t, e, n) {
    if (nn.domSupported && t.getBoundingClientRect) {
        var r = e.clientX
          , a = e.clientY;
        if (Pae(t)) {
            var i = t.getBoundingClientRect();
            n.zrX = r - i.left,
            n.zrY = a - i.top;
            return
        } else if (tI(lP, t, r, a)) {
            n.zrX = lP[0],
            n.zrY = lP[1];
            return
        }
    }
    n.zrX = n.zrY = 0
}
function M6(t) {
    return t || window.event
}
function Ti(t, e, n) {
    if (e = M6(e),
    e.zrX != null)
        return e;
    var r = e.type
      , a = r && r.indexOf("touch") >= 0;
    if (a) {
        var o = r !== "touchend" ? e.targetTouches[0] : e.changedTouches[0];
        o && nI(t, o, e, n)
    } else {
        nI(t, e, e, n);
        var i = Jje(e);
        e.zrDelta = i ? i / 120 : -(e.detail || 0) / 3
    }
    var l = e.button;
    return e.which == null && l !== void 0 && Zje.test(e.type) && (e.which = l & 1 ? 1 : l & 2 ? 3 : l & 4 ? 2 : 0),
    e
}
function Jje(t) {
    var e = t.wheelDelta;
    if (e)
        return e;
    var n = t.deltaX
      , r = t.deltaY;
    if (n == null || r == null)
        return e;
    var a = Math.abs(r !== 0 ? r : n)
      , i = r > 0 ? -1 : r < 0 ? 1 : n > 0 ? -1 : 1;
    return 3 * a * i
}
function rI(t, e, n, r) {
    t.addEventListener(e, n, r)
}
function eWe(t, e, n, r) {
    t.removeEventListener(e, n, r)
}
var ss = function(t) {
    t.preventDefault(),
    t.stopPropagation(),
    t.cancelBubble = !0
};
function Fz(t) {
    return t.which === 2 || t.which === 3
}
var tWe = function() {
    function t() {
        this._track = []
    }
    return t.prototype.recognize = function(e, n, r) {
        return this._doTrack(e, n, r),
        this._recognize(e)
    }
    ,
    t.prototype.clear = function() {
        return this._track.length = 0,
        this
    }
    ,
    t.prototype._doTrack = function(e, n, r) {
        var a = e.touches;
        if (!!a) {
            for (var i = {
                points: [],
                touches: [],
                target: n,
                event: e
            }, o = 0, l = a.length; o < l; o++) {
                var s = a[o]
                  , u = nI(r, s, {});
                i.points.push([u.zrX, u.zrY]),
                i.touches.push(s)
            }
            this._track.push(i)
        }
    }
    ,
    t.prototype._recognize = function(e) {
        for (var n in sP)
            if (sP.hasOwnProperty(n)) {
                var r = sP[n](this._track, e);
                if (r)
                    return r
            }
    }
    ,
    t
}();
function Bz(t) {
    var e = t[1][0] - t[0][0]
      , n = t[1][1] - t[0][1];
    return Math.sqrt(e * e + n * n)
}
function nWe(t) {
    return [(t[0][0] + t[1][0]) / 2, (t[0][1] + t[1][1]) / 2]
}
var sP = {
    pinch: function(t, e) {
        var n = t.length;
        if (!!n) {
            var r = (t[n - 1] || {}).points
              , a = (t[n - 2] || {}).points || r;
            if (a && a.length > 1 && r && r.length > 1) {
                var i = Bz(r) / Bz(a);
                !isFinite(i) && (i = 1),
                e.pinchScale = i;
                var o = nWe(r);
                return e.pinchX = o[0],
                e.pinchY = o[1],
                {
                    type: "pinch",
                    target: t[0].target,
                    event: e
                }
            }
        }
    }
};
function si() {
    return [1, 0, 0, 1, 0, 0]
}
function Wm(t) {
    return t[0] = 1,
    t[1] = 0,
    t[2] = 0,
    t[3] = 1,
    t[4] = 0,
    t[5] = 0,
    t
}
function Xw(t, e) {
    return t[0] = e[0],
    t[1] = e[1],
    t[2] = e[2],
    t[3] = e[3],
    t[4] = e[4],
    t[5] = e[5],
    t
}
function fl(t, e, n) {
    var r = e[0] * n[0] + e[2] * n[1]
      , a = e[1] * n[0] + e[3] * n[1]
      , i = e[0] * n[2] + e[2] * n[3]
      , o = e[1] * n[2] + e[3] * n[3]
      , l = e[0] * n[4] + e[2] * n[5] + e[4]
      , s = e[1] * n[4] + e[3] * n[5] + e[5];
    return t[0] = r,
    t[1] = a,
    t[2] = i,
    t[3] = o,
    t[4] = l,
    t[5] = s,
    t
}
function To(t, e, n) {
    return t[0] = e[0],
    t[1] = e[1],
    t[2] = e[2],
    t[3] = e[3],
    t[4] = e[4] + n[0],
    t[5] = e[5] + n[1],
    t
}
function Ku(t, e, n) {
    var r = e[0]
      , a = e[2]
      , i = e[4]
      , o = e[1]
      , l = e[3]
      , s = e[5]
      , u = Math.sin(n)
      , c = Math.cos(n);
    return t[0] = r * c + o * u,
    t[1] = -r * u + o * c,
    t[2] = a * c + l * u,
    t[3] = -a * u + c * l,
    t[4] = c * i + u * s,
    t[5] = c * s - u * i,
    t
}
function Zw(t, e, n) {
    var r = n[0]
      , a = n[1];
    return t[0] = e[0] * r,
    t[1] = e[1] * a,
    t[2] = e[2] * r,
    t[3] = e[3] * a,
    t[4] = e[4] * r,
    t[5] = e[5] * a,
    t
}
function nd(t, e) {
    var n = e[0]
      , r = e[2]
      , a = e[4]
      , i = e[1]
      , o = e[3]
      , l = e[5]
      , s = n * o - i * r;
    return s ? (s = 1 / s,
    t[0] = o * s,
    t[1] = -i * s,
    t[2] = -r * s,
    t[3] = n * s,
    t[4] = (r * l - o * a) * s,
    t[5] = (i * a - n * l) * s,
    t) : null
}
function Mae(t) {
    var e = si();
    return Xw(e, t),
    e
}
const rWe = Object.freeze(Object.defineProperty({
    __proto__: null,
    create: si,
    identity: Wm,
    copy: Xw,
    mul: fl,
    translate: To,
    rotate: Ku,
    scale: Zw,
    invert: nd,
    clone: Mae
}, Symbol.toStringTag, {
    value: "Module"
}));
var aWe = function() {
    function t(e, n) {
        this.x = e || 0,
        this.y = n || 0
    }
    return t.prototype.copy = function(e) {
        return this.x = e.x,
        this.y = e.y,
        this
    }
    ,
    t.prototype.clone = function() {
        return new t(this.x,this.y)
    }
    ,
    t.prototype.set = function(e, n) {
        return this.x = e,
        this.y = n,
        this
    }
    ,
    t.prototype.equal = function(e) {
        return e.x === this.x && e.y === this.y
    }
    ,
    t.prototype.add = function(e) {
        return this.x += e.x,
        this.y += e.y,
        this
    }
    ,
    t.prototype.scale = function(e) {
        this.x *= e,
        this.y *= e
    }
    ,
    t.prototype.scaleAndAdd = function(e, n) {
        this.x += e.x * n,
        this.y += e.y * n
    }
    ,
    t.prototype.sub = function(e) {
        return this.x -= e.x,
        this.y -= e.y,
        this
    }
    ,
    t.prototype.dot = function(e) {
        return this.x * e.x + this.y * e.y
    }
    ,
    t.prototype.len = function() {
        return Math.sqrt(this.x * this.x + this.y * this.y)
    }
    ,
    t.prototype.lenSquare = function() {
        return this.x * this.x + this.y * this.y
    }
    ,
    t.prototype.normalize = function() {
        var e = this.len();
        return this.x /= e,
        this.y /= e,
        this
    }
    ,
    t.prototype.distance = function(e) {
        var n = this.x - e.x
          , r = this.y - e.y;
        return Math.sqrt(n * n + r * r)
    }
    ,
    t.prototype.distanceSquare = function(e) {
        var n = this.x - e.x
          , r = this.y - e.y;
        return n * n + r * r
    }
    ,
    t.prototype.negate = function() {
        return this.x = -this.x,
        this.y = -this.y,
        this
    }
    ,
    t.prototype.transform = function(e) {
        if (!!e) {
            var n = this.x
              , r = this.y;
            return this.x = e[0] * n + e[2] * r + e[4],
            this.y = e[1] * n + e[3] * r + e[5],
            this
        }
    }
    ,
    t.prototype.toArray = function(e) {
        return e[0] = this.x,
        e[1] = this.y,
        e
    }
    ,
    t.prototype.fromArray = function(e) {
        this.x = e[0],
        this.y = e[1]
    }
    ,
    t.set = function(e, n, r) {
        e.x = n,
        e.y = r
    }
    ,
    t.copy = function(e, n) {
        e.x = n.x,
        e.y = n.y
    }
    ,
    t.len = function(e) {
        return Math.sqrt(e.x * e.x + e.y * e.y)
    }
    ,
    t.lenSquare = function(e) {
        return e.x * e.x + e.y * e.y
    }
    ,
    t.dot = function(e, n) {
        return e.x * n.x + e.y * n.y
    }
    ,
    t.add = function(e, n, r) {
        e.x = n.x + r.x,
        e.y = n.y + r.y
    }
    ,
    t.sub = function(e, n, r) {
        e.x = n.x - r.x,
        e.y = n.y - r.y
    }
    ,
    t.scale = function(e, n, r) {
        e.x = n.x * r,
        e.y = n.y * r
    }
    ,
    t.scaleAndAdd = function(e, n, r, a) {
        e.x = n.x + r.x * a,
        e.y = n.y + r.y * a
    }
    ,
    t.lerp = function(e, n, r, a) {
        var i = 1 - a;
        e.x = i * n.x + a * r.x,
        e.y = i * n.y + a * r.y
    }
    ,
    t
}();
const kt = aWe;
var a1 = Math.min
  , i1 = Math.max
  , oc = new kt
  , lc = new kt
  , sc = new kt
  , uc = new kt
  , up = new kt
  , cp = new kt
  , iWe = function() {
    function t(e, n, r, a) {
        r < 0 && (e = e + r,
        r = -r),
        a < 0 && (n = n + a,
        a = -a),
        this.x = e,
        this.y = n,
        this.width = r,
        this.height = a
    }
    return t.prototype.union = function(e) {
        var n = a1(e.x, this.x)
          , r = a1(e.y, this.y);
        isFinite(this.x) && isFinite(this.width) ? this.width = i1(e.x + e.width, this.x + this.width) - n : this.width = e.width,
        isFinite(this.y) && isFinite(this.height) ? this.height = i1(e.y + e.height, this.y + this.height) - r : this.height = e.height,
        this.x = n,
        this.y = r
    }
    ,
    t.prototype.applyTransform = function(e) {
        t.applyTransform(this, this, e)
    }
    ,
    t.prototype.calculateTransform = function(e) {
        var n = this
          , r = e.width / n.width
          , a = e.height / n.height
          , i = si();
        return To(i, i, [-n.x, -n.y]),
        Zw(i, i, [r, a]),
        To(i, i, [e.x, e.y]),
        i
    }
    ,
    t.prototype.intersect = function(e, n) {
        if (!e)
            return !1;
        e instanceof t || (e = t.create(e));
        var r = this
          , a = r.x
          , i = r.x + r.width
          , o = r.y
          , l = r.y + r.height
          , s = e.x
          , u = e.x + e.width
          , c = e.y
          , f = e.y + e.height
          , d = !(i < s || u < a || l < c || f < o);
        if (n) {
            var v = 1 / 0
              , h = 0
              , p = Math.abs(i - s)
              , g = Math.abs(u - a)
              , m = Math.abs(l - c)
              , y = Math.abs(f - o)
              , b = Math.min(p, g)
              , x = Math.min(m, y);
            i < s || u < a ? b > h && (h = b,
            p < g ? kt.set(cp, -p, 0) : kt.set(cp, g, 0)) : b < v && (v = b,
            p < g ? kt.set(up, p, 0) : kt.set(up, -g, 0)),
            l < c || f < o ? x > h && (h = x,
            m < y ? kt.set(cp, 0, -m) : kt.set(cp, 0, y)) : b < v && (v = b,
            m < y ? kt.set(up, 0, m) : kt.set(up, 0, -y))
        }
        return n && kt.copy(n, d ? up : cp),
        d
    }
    ,
    t.prototype.contain = function(e, n) {
        var r = this;
        return e >= r.x && e <= r.x + r.width && n >= r.y && n <= r.y + r.height
    }
    ,
    t.prototype.clone = function() {
        return new t(this.x,this.y,this.width,this.height)
    }
    ,
    t.prototype.copy = function(e) {
        t.copy(this, e)
    }
    ,
    t.prototype.plain = function() {
        return {
            x: this.x,
            y: this.y,
            width: this.width,
            height: this.height
        }
    }
    ,
    t.prototype.isFinite = function() {
        return isFinite(this.x) && isFinite(this.y) && isFinite(this.width) && isFinite(this.height)
    }
    ,
    t.prototype.isZero = function() {
        return this.width === 0 || this.height === 0
    }
    ,
    t.create = function(e) {
        return new t(e.x,e.y,e.width,e.height)
    }
    ,
    t.copy = function(e, n) {
        e.x = n.x,
        e.y = n.y,
        e.width = n.width,
        e.height = n.height
    }
    ,
    t.applyTransform = function(e, n, r) {
        if (!r) {
            e !== n && t.copy(e, n);
            return
        }
        if (r[1] < 1e-5 && r[1] > -1e-5 && r[2] < 1e-5 && r[2] > -1e-5) {
            var a = r[0]
              , i = r[3]
              , o = r[4]
              , l = r[5];
            e.x = n.x * a + o,
            e.y = n.y * i + l,
            e.width = n.width * a,
            e.height = n.height * i,
            e.width < 0 && (e.x += e.width,
            e.width = -e.width),
            e.height < 0 && (e.y += e.height,
            e.height = -e.height);
            return
        }
        oc.x = sc.x = n.x,
        oc.y = uc.y = n.y,
        lc.x = uc.x = n.x + n.width,
        lc.y = sc.y = n.y + n.height,
        oc.transform(r),
        uc.transform(r),
        lc.transform(r),
        sc.transform(r),
        e.x = a1(oc.x, lc.x, sc.x, uc.x),
        e.y = a1(oc.y, lc.y, sc.y, uc.y);
        var s = i1(oc.x, lc.x, sc.x, uc.x)
          , u = i1(oc.y, lc.y, sc.y, uc.y);
        e.width = s - e.x,
        e.height = u - e.y
    }
    ,
    t
}();
const Dt = iWe;
var Aae = "silent";
function oWe(t, e, n) {
    return {
        type: t,
        event: n,
        target: e.target,
        topTarget: e.topTarget,
        cancelBubble: !1,
        offsetX: n.zrX,
        offsetY: n.zrY,
        gestureEvent: n.gestureEvent,
        pinchX: n.pinchX,
        pinchY: n.pinchY,
        pinchScale: n.pinchScale,
        wheelDelta: n.zrDelta,
        zrByTouch: n.zrByTouch,
        which: n.which,
        stop: lWe
    }
}
function lWe() {
    ss(this.event)
}
var sWe = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.handler = null,
        n
    }
    return e.prototype.dispose = function() {}
    ,
    e.prototype.setCursor = function() {}
    ,
    e
}(Wi)
  , fp = function() {
    function t(e, n) {
        this.x = e,
        this.y = n
    }
    return t
}()
  , uWe = ["click", "dblclick", "mousewheel", "mouseout", "mouseup", "mousedown", "mousemove", "contextmenu"]
  , uP = new Dt(0,0,0,0)
  , Iae = function(t) {
    ge(e, t);
    function e(n, r, a, i, o) {
        var l = t.call(this) || this;
        return l._hovered = new fp(0,0),
        l.storage = n,
        l.painter = r,
        l.painterRoot = i,
        l._pointerSize = o,
        a = a || new sWe,
        l.proxy = null,
        l.setHandlerProxy(a),
        l._draggingMgr = new jje(l),
        l
    }
    return e.prototype.setHandlerProxy = function(n) {
        this.proxy && this.proxy.dispose(),
        n && (Z(uWe, function(r) {
            n.on && n.on(r, this[r], this)
        }, this),
        n.handler = this),
        this.proxy = n
    }
    ,
    e.prototype.mousemove = function(n) {
        var r = n.zrX
          , a = n.zrY
          , i = kae(this, r, a)
          , o = this._hovered
          , l = o.target;
        l && !l.__zr && (o = this.findHover(o.x, o.y),
        l = o.target);
        var s = this._hovered = i ? new fp(r,a) : this.findHover(r, a)
          , u = s.target
          , c = this.proxy;
        c.setCursor && c.setCursor(u ? u.cursor : "default"),
        l && u !== l && this.dispatchToElement(o, "mouseout", n),
        this.dispatchToElement(s, "mousemove", n),
        u && u !== l && this.dispatchToElement(s, "mouseover", n)
    }
    ,
    e.prototype.mouseout = function(n) {
        var r = n.zrEventControl;
        r !== "only_globalout" && this.dispatchToElement(this._hovered, "mouseout", n),
        r !== "no_globalout" && this.trigger("globalout", {
            type: "globalout",
            event: n
        })
    }
    ,
    e.prototype.resize = function() {
        this._hovered = new fp(0,0)
    }
    ,
    e.prototype.dispatch = function(n, r) {
        var a = this[n];
        a && a.call(this, r)
    }
    ,
    e.prototype.dispose = function() {
        this.proxy.dispose(),
        this.storage = null,
        this.proxy = null,
        this.painter = null
    }
    ,
    e.prototype.setCursorStyle = function(n) {
        var r = this.proxy;
        r.setCursor && r.setCursor(n)
    }
    ,
    e.prototype.dispatchToElement = function(n, r, a) {
        n = n || {};
        var i = n.target;
        if (!(i && i.silent)) {
            for (var o = "on" + r, l = oWe(r, n, a); i && (i[o] && (l.cancelBubble = !!i[o].call(i, l)),
            i.trigger(r, l),
            i = i.__hostTarget ? i.__hostTarget : i.parent,
            !l.cancelBubble); )
                ;
            l.cancelBubble || (this.trigger(r, l),
            this.painter && this.painter.eachOtherLayer && this.painter.eachOtherLayer(function(s) {
                typeof s[o] == "function" && s[o].call(s, l),
                s.trigger && s.trigger(r, l)
            }))
        }
    }
    ,
    e.prototype.findHover = function(n, r, a) {
        var i = this.storage.getDisplayList()
          , o = new fp(n,r);
        if (Vz(i, o, n, r, a),
        this._pointerSize && !o.target) {
            for (var l = [], s = this._pointerSize, u = s / 2, c = new Dt(n - u,r - u,s,s), f = i.length - 1; f >= 0; f--) {
                var d = i[f];
                d !== a && !d.ignore && !d.ignoreCoarsePointer && (!d.parent || !d.parent.ignoreCoarsePointer) && (uP.copy(d.getBoundingRect()),
                d.transform && uP.applyTransform(d.transform),
                uP.intersect(c) && l.push(d))
            }
            if (l.length)
                for (var v = 4, h = Math.PI / 12, p = Math.PI * 2, g = 0; g < u; g += v)
                    for (var m = 0; m < p; m += h) {
                        var y = n + g * Math.cos(m)
                          , b = r + g * Math.sin(m);
                        if (Vz(l, o, y, b, a),
                        o.target)
                            return o
                    }
        }
        return o
    }
    ,
    e.prototype.processGesture = function(n, r) {
        this._gestureMgr || (this._gestureMgr = new tWe);
        var a = this._gestureMgr;
        r === "start" && a.clear();
        var i = a.recognize(n, this.findHover(n.zrX, n.zrY, null).target, this.proxy.dom);
        if (r === "end" && a.clear(),
        i) {
            var o = i.type;
            n.gestureEvent = o;
            var l = new fp;
            l.target = i.target,
            this.dispatchToElement(l, o, i.event)
        }
    }
    ,
    e
}(Wi);
Z(["click", "mousedown", "mouseup", "mousewheel", "dblclick", "contextmenu"], function(t) {
    Iae.prototype[t] = function(e) {
        var n = e.zrX, r = e.zrY, a = kae(this, n, r), i, o;
        if ((t !== "mouseup" || !a) && (i = this.findHover(n, r),
        o = i.target),
        t === "mousedown")
            this._downEl = o,
            this._downPoint = [e.zrX, e.zrY],
            this._upEl = o;
        else if (t === "mouseup")
            this._upEl = o;
        else if (t === "click") {
            if (this._downEl !== this._upEl || !this._downPoint || Zl(this._downPoint, [e.zrX, e.zrY]) > 4)
                return;
            this._downPoint = null
        }
        this.dispatchToElement(i, t, e)
    }
});
function cWe(t, e, n) {
    if (t[t.rectHover ? "rectContain" : "contain"](e, n)) {
        for (var r = t, a = void 0, i = !1; r; ) {
            if (r.ignoreClip && (i = !0),
            !i) {
                var o = r.getClipPath();
                if (o && !o.contain(e, n))
                    return !1;
                r.silent && (a = !0)
            }
            var l = r.__hostTarget;
            r = l || r.parent
        }
        return a ? Aae : !0
    }
    return !1
}
function Vz(t, e, n, r, a) {
    for (var i = t.length - 1; i >= 0; i--) {
        var o = t[i]
          , l = void 0;
        if (o !== a && !o.ignore && (l = cWe(o, n, r)) && (!e.topTarget && (e.topTarget = o),
        l !== Aae)) {
            e.target = o;
            break
        }
    }
}
function kae(t, e, n) {
    var r = t.painter;
    return e < 0 || e > r.getWidth() || n < 0 || n > r.getHeight()
}
const fWe = Iae;
var Oae = 32
  , dp = 7;
function dWe(t) {
    for (var e = 0; t >= Oae; )
        e |= t & 1,
        t >>= 1;
    return t + e
}
function zz(t, e, n, r) {
    var a = e + 1;
    if (a === n)
        return 1;
    if (r(t[a++], t[e]) < 0) {
        for (; a < n && r(t[a], t[a - 1]) < 0; )
            a++;
        vWe(t, e, a)
    } else
        for (; a < n && r(t[a], t[a - 1]) >= 0; )
            a++;
    return a - e
}
function vWe(t, e, n) {
    for (n--; e < n; ) {
        var r = t[e];
        t[e++] = t[n],
        t[n--] = r
    }
}
function Hz(t, e, n, r, a) {
    for (r === e && r++; r < n; r++) {
        for (var i = t[r], o = e, l = r, s; o < l; )
            s = o + l >>> 1,
            a(i, t[s]) < 0 ? l = s : o = s + 1;
        var u = r - o;
        switch (u) {
        case 3:
            t[o + 3] = t[o + 2];
        case 2:
            t[o + 2] = t[o + 1];
        case 1:
            t[o + 1] = t[o];
            break;
        default:
            for (; u > 0; )
                t[o + u] = t[o + u - 1],
                u--
        }
        t[o] = i
    }
}
function cP(t, e, n, r, a, i) {
    var o = 0
      , l = 0
      , s = 1;
    if (i(t, e[n + a]) > 0) {
        for (l = r - a; s < l && i(t, e[n + a + s]) > 0; )
            o = s,
            s = (s << 1) + 1,
            s <= 0 && (s = l);
        s > l && (s = l),
        o += a,
        s += a
    } else {
        for (l = a + 1; s < l && i(t, e[n + a - s]) <= 0; )
            o = s,
            s = (s << 1) + 1,
            s <= 0 && (s = l);
        s > l && (s = l);
        var u = o;
        o = a - s,
        s = a - u
    }
    for (o++; o < s; ) {
        var c = o + (s - o >>> 1);
        i(t, e[n + c]) > 0 ? o = c + 1 : s = c
    }
    return s
}
function fP(t, e, n, r, a, i) {
    var o = 0
      , l = 0
      , s = 1;
    if (i(t, e[n + a]) < 0) {
        for (l = a + 1; s < l && i(t, e[n + a - s]) < 0; )
            o = s,
            s = (s << 1) + 1,
            s <= 0 && (s = l);
        s > l && (s = l);
        var u = o;
        o = a - s,
        s = a - u
    } else {
        for (l = r - a; s < l && i(t, e[n + a + s]) >= 0; )
            o = s,
            s = (s << 1) + 1,
            s <= 0 && (s = l);
        s > l && (s = l),
        o += a,
        s += a
    }
    for (o++; o < s; ) {
        var c = o + (s - o >>> 1);
        i(t, e[n + c]) < 0 ? s = c : o = c + 1
    }
    return s
}
function hWe(t, e) {
    var n = dp, r, a, i = 0;
    t.length;
    var o = [];
    r = [],
    a = [];
    function l(v, h) {
        r[i] = v,
        a[i] = h,
        i += 1
    }
    function s() {
        for (; i > 1; ) {
            var v = i - 2;
            if (v >= 1 && a[v - 1] <= a[v] + a[v + 1] || v >= 2 && a[v - 2] <= a[v] + a[v - 1])
                a[v - 1] < a[v + 1] && v--;
            else if (a[v] > a[v + 1])
                break;
            c(v)
        }
    }
    function u() {
        for (; i > 1; ) {
            var v = i - 2;
            v > 0 && a[v - 1] < a[v + 1] && v--,
            c(v)
        }
    }
    function c(v) {
        var h = r[v]
          , p = a[v]
          , g = r[v + 1]
          , m = a[v + 1];
        a[v] = p + m,
        v === i - 3 && (r[v + 1] = r[v + 2],
        a[v + 1] = a[v + 2]),
        i--;
        var y = fP(t[g], t, h, p, 0, e);
        h += y,
        p -= y,
        p !== 0 && (m = cP(t[h + p - 1], t, g, m, m - 1, e),
        m !== 0 && (p <= m ? f(h, p, g, m) : d(h, p, g, m)))
    }
    function f(v, h, p, g) {
        var m = 0;
        for (m = 0; m < h; m++)
            o[m] = t[v + m];
        var y = 0
          , b = p
          , x = v;
        if (t[x++] = t[b++],
        --g === 0) {
            for (m = 0; m < h; m++)
                t[x + m] = o[y + m];
            return
        }
        if (h === 1) {
            for (m = 0; m < g; m++)
                t[x + m] = t[b + m];
            t[x + g] = o[y];
            return
        }
        for (var C = n, S, w, T; ; ) {
            S = 0,
            w = 0,
            T = !1;
            do
                if (e(t[b], o[y]) < 0) {
                    if (t[x++] = t[b++],
                    w++,
                    S = 0,
                    --g === 0) {
                        T = !0;
                        break
                    }
                } else if (t[x++] = o[y++],
                S++,
                w = 0,
                --h === 1) {
                    T = !0;
                    break
                }
            while ((S | w) < C);
            if (T)
                break;
            do {
                if (S = fP(t[b], o, y, h, 0, e),
                S !== 0) {
                    for (m = 0; m < S; m++)
                        t[x + m] = o[y + m];
                    if (x += S,
                    y += S,
                    h -= S,
                    h <= 1) {
                        T = !0;
                        break
                    }
                }
                if (t[x++] = t[b++],
                --g === 0) {
                    T = !0;
                    break
                }
                if (w = cP(o[y], t, b, g, 0, e),
                w !== 0) {
                    for (m = 0; m < w; m++)
                        t[x + m] = t[b + m];
                    if (x += w,
                    b += w,
                    g -= w,
                    g === 0) {
                        T = !0;
                        break
                    }
                }
                if (t[x++] = o[y++],
                --h === 1) {
                    T = !0;
                    break
                }
                C--
            } while (S >= dp || w >= dp);
            if (T)
                break;
            C < 0 && (C = 0),
            C += 2
        }
        if (n = C,
        n < 1 && (n = 1),
        h === 1) {
            for (m = 0; m < g; m++)
                t[x + m] = t[b + m];
            t[x + g] = o[y]
        } else {
            if (h === 0)
                throw new Error;
            for (m = 0; m < h; m++)
                t[x + m] = o[y + m]
        }
    }
    function d(v, h, p, g) {
        var m = 0;
        for (m = 0; m < g; m++)
            o[m] = t[p + m];
        var y = v + h - 1
          , b = g - 1
          , x = p + g - 1
          , C = 0
          , S = 0;
        if (t[x--] = t[y--],
        --h === 0) {
            for (C = x - (g - 1),
            m = 0; m < g; m++)
                t[C + m] = o[m];
            return
        }
        if (g === 1) {
            for (x -= h,
            y -= h,
            S = x + 1,
            C = y + 1,
            m = h - 1; m >= 0; m--)
                t[S + m] = t[C + m];
            t[x] = o[b];
            return
        }
        for (var w = n; ; ) {
            var T = 0
              , P = 0
              , M = !1;
            do
                if (e(o[b], t[y]) < 0) {
                    if (t[x--] = t[y--],
                    T++,
                    P = 0,
                    --h === 0) {
                        M = !0;
                        break
                    }
                } else if (t[x--] = o[b--],
                P++,
                T = 0,
                --g === 1) {
                    M = !0;
                    break
                }
            while ((T | P) < w);
            if (M)
                break;
            do {
                if (T = h - fP(o[b], t, v, h, h - 1, e),
                T !== 0) {
                    for (x -= T,
                    y -= T,
                    h -= T,
                    S = x + 1,
                    C = y + 1,
                    m = T - 1; m >= 0; m--)
                        t[S + m] = t[C + m];
                    if (h === 0) {
                        M = !0;
                        break
                    }
                }
                if (t[x--] = o[b--],
                --g === 1) {
                    M = !0;
                    break
                }
                if (P = g - cP(t[y], o, 0, g, g - 1, e),
                P !== 0) {
                    for (x -= P,
                    b -= P,
                    g -= P,
                    S = x + 1,
                    C = b + 1,
                    m = 0; m < P; m++)
                        t[S + m] = o[C + m];
                    if (g <= 1) {
                        M = !0;
                        break
                    }
                }
                if (t[x--] = t[y--],
                --h === 0) {
                    M = !0;
                    break
                }
                w--
            } while (T >= dp || P >= dp);
            if (M)
                break;
            w < 0 && (w = 0),
            w += 2
        }
        if (n = w,
        n < 1 && (n = 1),
        g === 1) {
            for (x -= h,
            y -= h,
            S = x + 1,
            C = y + 1,
            m = h - 1; m >= 0; m--)
                t[S + m] = t[C + m];
            t[x] = o[b]
        } else {
            if (g === 0)
                throw new Error;
            for (C = x - (g - 1),
            m = 0; m < g; m++)
                t[C + m] = o[m]
        }
    }
    return {
        mergeRuns: s,
        forceMergeRuns: u,
        pushRun: l
    }
}
function Jb(t, e, n, r) {
    n || (n = 0),
    r || (r = t.length);
    var a = r - n;
    if (!(a < 2)) {
        var i = 0;
        if (a < Oae) {
            i = zz(t, n, r, e),
            Hz(t, n, r, n + i, e);
            return
        }
        var o = hWe(t, e)
          , l = dWe(a);
        do {
            if (i = zz(t, n, r, e),
            i < l) {
                var s = a;
                s > l && (s = l),
                Hz(t, n, n + s, n + i, e),
                i = s
            }
            o.pushRun(n, i),
            o.mergeRuns(),
            a -= i,
            n += i
        } while (a !== 0);
        o.forceMergeRuns()
    }
}
var ei = 1
  , Up = 2
  , Kd = 4
  , jz = !1;
function dP() {
    jz || (jz = !0)
}
function Wz(t, e) {
    return t.zlevel === e.zlevel ? t.z === e.z ? t.z2 - e.z2 : t.z - e.z : t.zlevel - e.zlevel
}
var pWe = function() {
    function t() {
        this._roots = [],
        this._displayList = [],
        this._displayListLen = 0,
        this.displayableSortFunc = Wz
    }
    return t.prototype.traverse = function(e, n) {
        for (var r = 0; r < this._roots.length; r++)
            this._roots[r].traverse(e, n)
    }
    ,
    t.prototype.getDisplayList = function(e, n) {
        n = n || !1;
        var r = this._displayList;
        return (e || !r.length) && this.updateDisplayList(n),
        r
    }
    ,
    t.prototype.updateDisplayList = function(e) {
        this._displayListLen = 0;
        for (var n = this._roots, r = this._displayList, a = 0, i = n.length; a < i; a++)
            this._updateAndAddDisplayable(n[a], null, e);
        r.length = this._displayListLen,
        Jb(r, Wz)
    }
    ,
    t.prototype._updateAndAddDisplayable = function(e, n, r) {
        if (!(e.ignore && !r)) {
            e.beforeUpdate(),
            e.update(),
            e.afterUpdate();
            var a = e.getClipPath();
            if (e.ignoreClip)
                n = null;
            else if (a) {
                n ? n = n.slice() : n = [];
                for (var i = a, o = e; i; )
                    i.parent = o,
                    i.updateTransform(),
                    n.push(i),
                    o = i,
                    i = i.getClipPath()
            }
            if (e.childrenRef) {
                for (var l = e.childrenRef(), s = 0; s < l.length; s++) {
                    var u = l[s];
                    e.__dirty && (u.__dirty |= ei),
                    this._updateAndAddDisplayable(u, n, r)
                }
                e.__dirty = 0
            } else {
                var c = e;
                n && n.length ? c.__clipPaths = n : c.__clipPaths && c.__clipPaths.length > 0 && (c.__clipPaths = []),
                isNaN(c.z) && (dP(),
                c.z = 0),
                isNaN(c.z2) && (dP(),
                c.z2 = 0),
                isNaN(c.zlevel) && (dP(),
                c.zlevel = 0),
                this._displayList[this._displayListLen++] = c
            }
            var f = e.getDecalElement && e.getDecalElement();
            f && this._updateAndAddDisplayable(f, n, r);
            var d = e.getTextGuideLine();
            d && this._updateAndAddDisplayable(d, n, r);
            var v = e.getTextContent();
            v && this._updateAndAddDisplayable(v, n, r)
        }
    }
    ,
    t.prototype.addRoot = function(e) {
        e.__zr && e.__zr.storage === this || this._roots.push(e)
    }
    ,
    t.prototype.delRoot = function(e) {
        if (e instanceof Array) {
            for (var n = 0, r = e.length; n < r; n++)
                this.delRoot(e[n]);
            return
        }
        var a = Rt(this._roots, e);
        a >= 0 && this._roots.splice(a, 1)
    }
    ,
    t.prototype.delAllRoots = function() {
        this._roots = [],
        this._displayList = [],
        this._displayListLen = 0
    }
    ,
    t.prototype.getRoots = function() {
        return this._roots
    }
    ,
    t.prototype.dispose = function() {
        this._displayList = null,
        this._roots = null
    }
    ,
    t
}();
const gWe = pWe;
var Dae;
Dae = nn.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(t) {
    return setTimeout(t, 16)
}
;
const aI = Dae;
var ex = {
    linear: function(t) {
        return t
    },
    quadraticIn: function(t) {
        return t * t
    },
    quadraticOut: function(t) {
        return t * (2 - t)
    },
    quadraticInOut: function(t) {
        return (t *= 2) < 1 ? .5 * t * t : -.5 * (--t * (t - 2) - 1)
    },
    cubicIn: function(t) {
        return t * t * t
    },
    cubicOut: function(t) {
        return --t * t * t + 1
    },
    cubicInOut: function(t) {
        return (t *= 2) < 1 ? .5 * t * t * t : .5 * ((t -= 2) * t * t + 2)
    },
    quarticIn: function(t) {
        return t * t * t * t
    },
    quarticOut: function(t) {
        return 1 - --t * t * t * t
    },
    quarticInOut: function(t) {
        return (t *= 2) < 1 ? .5 * t * t * t * t : -.5 * ((t -= 2) * t * t * t - 2)
    },
    quinticIn: function(t) {
        return t * t * t * t * t
    },
    quinticOut: function(t) {
        return --t * t * t * t * t + 1
    },
    quinticInOut: function(t) {
        return (t *= 2) < 1 ? .5 * t * t * t * t * t : .5 * ((t -= 2) * t * t * t * t + 2)
    },
    sinusoidalIn: function(t) {
        return 1 - Math.cos(t * Math.PI / 2)
    },
    sinusoidalOut: function(t) {
        return Math.sin(t * Math.PI / 2)
    },
    sinusoidalInOut: function(t) {
        return .5 * (1 - Math.cos(Math.PI * t))
    },
    exponentialIn: function(t) {
        return t === 0 ? 0 : Math.pow(1024, t - 1)
    },
    exponentialOut: function(t) {
        return t === 1 ? 1 : 1 - Math.pow(2, -10 * t)
    },
    exponentialInOut: function(t) {
        return t === 0 ? 0 : t === 1 ? 1 : (t *= 2) < 1 ? .5 * Math.pow(1024, t - 1) : .5 * (-Math.pow(2, -10 * (t - 1)) + 2)
    },
    circularIn: function(t) {
        return 1 - Math.sqrt(1 - t * t)
    },
    circularOut: function(t) {
        return Math.sqrt(1 - --t * t)
    },
    circularInOut: function(t) {
        return (t *= 2) < 1 ? -.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1)
    },
    elasticIn: function(t) {
        var e, n = .1, r = .4;
        return t === 0 ? 0 : t === 1 ? 1 : (!n || n < 1 ? (n = 1,
        e = r / 4) : e = r * Math.asin(1 / n) / (2 * Math.PI),
        -(n * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / r)))
    },
    elasticOut: function(t) {
        var e, n = .1, r = .4;
        return t === 0 ? 0 : t === 1 ? 1 : (!n || n < 1 ? (n = 1,
        e = r / 4) : e = r * Math.asin(1 / n) / (2 * Math.PI),
        n * Math.pow(2, -10 * t) * Math.sin((t - e) * (2 * Math.PI) / r) + 1)
    },
    elasticInOut: function(t) {
        var e, n = .1, r = .4;
        return t === 0 ? 0 : t === 1 ? 1 : (!n || n < 1 ? (n = 1,
        e = r / 4) : e = r * Math.asin(1 / n) / (2 * Math.PI),
        (t *= 2) < 1 ? -.5 * (n * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / r)) : n * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - e) * (2 * Math.PI) / r) * .5 + 1)
    },
    backIn: function(t) {
        var e = 1.70158;
        return t * t * ((e + 1) * t - e)
    },
    backOut: function(t) {
        var e = 1.70158;
        return --t * t * ((e + 1) * t + e) + 1
    },
    backInOut: function(t) {
        var e = 2.5949095;
        return (t *= 2) < 1 ? .5 * (t * t * ((e + 1) * t - e)) : .5 * ((t -= 2) * t * ((e + 1) * t + e) + 2)
    },
    bounceIn: function(t) {
        return 1 - ex.bounceOut(1 - t)
    },
    bounceOut: function(t) {
        return t < 1 / 2.75 ? 7.5625 * t * t : t < 2 / 2.75 ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : t < 2.5 / 2.75 ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375
    },
    bounceInOut: function(t) {
        return t < .5 ? ex.bounceIn(t * 2) * .5 : ex.bounceOut(t * 2 - 1) * .5 + .5
    }
};
const Eae = ex;
var o1 = Math.pow
  , bu = Math.sqrt
  , CS = 1e-8
  , Lae = 1e-4
  , Gz = bu(3)
  , l1 = 1 / 3
  , el = Gu()
  , Ii = Gu()
  , xv = Gu();
function iu(t) {
    return t > -CS && t < CS
}
function Rae(t) {
    return t > CS || t < -CS
}
function Ar(t, e, n, r, a) {
    var i = 1 - a;
    return i * i * (i * t + 3 * a * e) + a * a * (a * r + 3 * i * n)
}
function Kz(t, e, n, r, a) {
    var i = 1 - a;
    return 3 * (((e - t) * i + 2 * (n - e) * a) * i + (r - n) * a * a)
}
function wS(t, e, n, r, a, i) {
    var o = r + 3 * (e - n) - t
      , l = 3 * (n - e * 2 + t)
      , s = 3 * (e - t)
      , u = t - a
      , c = l * l - 3 * o * s
      , f = l * s - 9 * o * u
      , d = s * s - 3 * l * u
      , v = 0;
    if (iu(c) && iu(f))
        if (iu(l))
            i[0] = 0;
        else {
            var h = -s / l;
            h >= 0 && h <= 1 && (i[v++] = h)
        }
    else {
        var p = f * f - 4 * c * d;
        if (iu(p)) {
            var g = f / c
              , h = -l / o + g
              , m = -g / 2;
            h >= 0 && h <= 1 && (i[v++] = h),
            m >= 0 && m <= 1 && (i[v++] = m)
        } else if (p > 0) {
            var y = bu(p)
              , b = c * l + 1.5 * o * (-f + y)
              , x = c * l + 1.5 * o * (-f - y);
            b < 0 ? b = -o1(-b, l1) : b = o1(b, l1),
            x < 0 ? x = -o1(-x, l1) : x = o1(x, l1);
            var h = (-l - (b + x)) / (3 * o);
            h >= 0 && h <= 1 && (i[v++] = h)
        } else {
            var C = (2 * c * l - 3 * o * f) / (2 * bu(c * c * c))
              , S = Math.acos(C) / 3
              , w = bu(c)
              , T = Math.cos(S)
              , h = (-l - 2 * w * T) / (3 * o)
              , m = (-l + w * (T + Gz * Math.sin(S))) / (3 * o)
              , P = (-l + w * (T - Gz * Math.sin(S))) / (3 * o);
            h >= 0 && h <= 1 && (i[v++] = h),
            m >= 0 && m <= 1 && (i[v++] = m),
            P >= 0 && P <= 1 && (i[v++] = P)
        }
    }
    return v
}
function Nae(t, e, n, r, a) {
    var i = 6 * n - 12 * e + 6 * t
      , o = 9 * e + 3 * r - 3 * t - 9 * n
      , l = 3 * e - 3 * t
      , s = 0;
    if (iu(o)) {
        if (Rae(i)) {
            var u = -l / i;
            u >= 0 && u <= 1 && (a[s++] = u)
        }
    } else {
        var c = i * i - 4 * o * l;
        if (iu(c))
            a[0] = -i / (2 * o);
        else if (c > 0) {
            var f = bu(c)
              , u = (-i + f) / (2 * o)
              , d = (-i - f) / (2 * o);
            u >= 0 && u <= 1 && (a[s++] = u),
            d >= 0 && d <= 1 && (a[s++] = d)
        }
    }
    return s
}
function Ou(t, e, n, r, a, i) {
    var o = (e - t) * a + t
      , l = (n - e) * a + e
      , s = (r - n) * a + n
      , u = (l - o) * a + o
      , c = (s - l) * a + l
      , f = (c - u) * a + u;
    i[0] = t,
    i[1] = o,
    i[2] = u,
    i[3] = f,
    i[4] = f,
    i[5] = c,
    i[6] = s,
    i[7] = r
}
function $ae(t, e, n, r, a, i, o, l, s, u, c) {
    var f, d = .005, v = 1 / 0, h, p, g, m;
    el[0] = s,
    el[1] = u;
    for (var y = 0; y < 1; y += .05)
        Ii[0] = Ar(t, n, a, o, y),
        Ii[1] = Ar(e, r, i, l, y),
        g = yu(el, Ii),
        g < v && (f = y,
        v = g);
    v = 1 / 0;
    for (var b = 0; b < 32 && !(d < Lae); b++)
        h = f - d,
        p = f + d,
        Ii[0] = Ar(t, n, a, o, h),
        Ii[1] = Ar(e, r, i, l, h),
        g = yu(Ii, el),
        h >= 0 && g < v ? (f = h,
        v = g) : (xv[0] = Ar(t, n, a, o, p),
        xv[1] = Ar(e, r, i, l, p),
        m = yu(xv, el),
        p <= 1 && m < v ? (f = p,
        v = m) : d *= .5);
    return c && (c[0] = Ar(t, n, a, o, f),
    c[1] = Ar(e, r, i, l, f)),
    bu(v)
}
function mWe(t, e, n, r, a, i, o, l, s) {
    for (var u = t, c = e, f = 0, d = 1 / s, v = 1; v <= s; v++) {
        var h = v * d
          , p = Ar(t, n, a, o, h)
          , g = Ar(e, r, i, l, h)
          , m = p - u
          , y = g - c;
        f += Math.sqrt(m * m + y * y),
        u = p,
        c = g
    }
    return f
}
function Br(t, e, n, r) {
    var a = 1 - r;
    return a * (a * t + 2 * r * e) + r * r * n
}
function iI(t, e, n, r) {
    return 2 * ((1 - r) * (e - t) + r * (n - e))
}
function yWe(t, e, n, r, a) {
    var i = t - 2 * e + n
      , o = 2 * (e - t)
      , l = t - r
      , s = 0;
    if (iu(i)) {
        if (Rae(o)) {
            var u = -l / o;
            u >= 0 && u <= 1 && (a[s++] = u)
        }
    } else {
        var c = o * o - 4 * i * l;
        if (iu(c)) {
            var u = -o / (2 * i);
            u >= 0 && u <= 1 && (a[s++] = u)
        } else if (c > 0) {
            var f = bu(c)
              , u = (-o + f) / (2 * i)
              , d = (-o - f) / (2 * i);
            u >= 0 && u <= 1 && (a[s++] = u),
            d >= 0 && d <= 1 && (a[s++] = d)
        }
    }
    return s
}
function Fae(t, e, n) {
    var r = t + n - 2 * e;
    return r === 0 ? .5 : (t - e) / r
}
function D0(t, e, n, r, a) {
    var i = (e - t) * r + t
      , o = (n - e) * r + e
      , l = (o - i) * r + i;
    a[0] = t,
    a[1] = i,
    a[2] = l,
    a[3] = l,
    a[4] = o,
    a[5] = n
}
function Bae(t, e, n, r, a, i, o, l, s) {
    var u, c = .005, f = 1 / 0;
    el[0] = o,
    el[1] = l;
    for (var d = 0; d < 1; d += .05) {
        Ii[0] = Br(t, n, a, d),
        Ii[1] = Br(e, r, i, d);
        var v = yu(el, Ii);
        v < f && (u = d,
        f = v)
    }
    f = 1 / 0;
    for (var h = 0; h < 32 && !(c < Lae); h++) {
        var p = u - c
          , g = u + c;
        Ii[0] = Br(t, n, a, p),
        Ii[1] = Br(e, r, i, p);
        var v = yu(Ii, el);
        if (p >= 0 && v < f)
            u = p,
            f = v;
        else {
            xv[0] = Br(t, n, a, g),
            xv[1] = Br(e, r, i, g);
            var m = yu(xv, el);
            g <= 1 && m < f ? (u = g,
            f = m) : c *= .5
        }
    }
    return s && (s[0] = Br(t, n, a, u),
    s[1] = Br(e, r, i, u)),
    bu(f)
}
function bWe(t, e, n, r, a, i, o) {
    for (var l = t, s = e, u = 0, c = 1 / o, f = 1; f <= o; f++) {
        var d = f * c
          , v = Br(t, n, a, d)
          , h = Br(e, r, i, d)
          , p = v - l
          , g = h - s;
        u += Math.sqrt(p * p + g * g),
        l = v,
        s = h
    }
    return u
}
var xWe = /cubic-bezier\(([0-9,\.e ]+)\)/;
function A6(t) {
    var e = t && xWe.exec(t);
    if (e) {
        var n = e[1].split(",")
          , r = +Di(n[0])
          , a = +Di(n[1])
          , i = +Di(n[2])
          , o = +Di(n[3]);
        if (isNaN(r + a + i + o))
            return;
        var l = [];
        return function(s) {
            return s <= 0 ? 0 : s >= 1 ? 1 : wS(0, r, i, 1, s, l) && Ar(0, a, o, 1, l[0])
        }
    }
}
var SWe = function() {
    function t(e) {
        this._inited = !1,
        this._startTime = 0,
        this._pausedTime = 0,
        this._paused = !1,
        this._life = e.life || 1e3,
        this._delay = e.delay || 0,
        this.loop = e.loop || !1,
        this.onframe = e.onframe || nr,
        this.ondestroy = e.ondestroy || nr,
        this.onrestart = e.onrestart || nr,
        e.easing && this.setEasing(e.easing)
    }
    return t.prototype.step = function(e, n) {
        if (this._inited || (this._startTime = e + this._delay,
        this._inited = !0),
        this._paused) {
            this._pausedTime += n;
            return
        }
        var r = this._life
          , a = e - this._startTime - this._pausedTime
          , i = a / r;
        i < 0 && (i = 0),
        i = Math.min(i, 1);
        var o = this.easingFunc
          , l = o ? o(i) : i;
        if (this.onframe(l),
        i === 1)
            if (this.loop) {
                var s = a % r;
                this._startTime = e - s,
                this._pausedTime = 0,
                this.onrestart()
            } else
                return !0;
        return !1
    }
    ,
    t.prototype.pause = function() {
        this._paused = !0
    }
    ,
    t.prototype.resume = function() {
        this._paused = !1
    }
    ,
    t.prototype.setEasing = function(e) {
        this.easing = e,
        this.easingFunc = et(e) ? e : Eae[e] || A6(e)
    }
    ,
    t
}();
const CWe = SWe;
var Vae = function() {
    function t(e) {
        this.value = e
    }
    return t
}()
  , wWe = function() {
    function t() {
        this._len = 0
    }
    return t.prototype.insert = function(e) {
        var n = new Vae(e);
        return this.insertEntry(n),
        n
    }
    ,
    t.prototype.insertEntry = function(e) {
        this.head ? (this.tail.next = e,
        e.prev = this.tail,
        e.next = null,
        this.tail = e) : this.head = this.tail = e,
        this._len++
    }
    ,
    t.prototype.remove = function(e) {
        var n = e.prev
          , r = e.next;
        n ? n.next = r : this.head = r,
        r ? r.prev = n : this.tail = n,
        e.next = e.prev = null,
        this._len--
    }
    ,
    t.prototype.len = function() {
        return this._len
    }
    ,
    t.prototype.clear = function() {
        this.head = this.tail = null,
        this._len = 0
    }
    ,
    t
}()
  , _We = function() {
    function t(e) {
        this._list = new wWe,
        this._maxSize = 10,
        this._map = {},
        this._maxSize = e
    }
    return t.prototype.put = function(e, n) {
        var r = this._list
          , a = this._map
          , i = null;
        if (a[e] == null) {
            var o = r.len()
              , l = this._lastRemovedEntry;
            if (o >= this._maxSize && o > 0) {
                var s = r.head;
                r.remove(s),
                delete a[s.key],
                i = s.value,
                this._lastRemovedEntry = s
            }
            l ? l.value = n : l = new Vae(n),
            l.key = e,
            r.insertEntry(l),
            a[e] = l
        }
        return i
    }
    ,
    t.prototype.get = function(e) {
        var n = this._map[e]
          , r = this._list;
        if (n != null)
            return n !== r.tail && (r.remove(n),
            r.insertEntry(n)),
            n.value
    }
    ,
    t.prototype.clear = function() {
        this._list.clear(),
        this._map = {}
    }
    ,
    t.prototype.len = function() {
        return this._list.len()
    }
    ,
    t
}();
const Gm = _We;
var Uz = {
    transparent: [0, 0, 0, 0],
    aliceblue: [240, 248, 255, 1],
    antiquewhite: [250, 235, 215, 1],
    aqua: [0, 255, 255, 1],
    aquamarine: [127, 255, 212, 1],
    azure: [240, 255, 255, 1],
    beige: [245, 245, 220, 1],
    bisque: [255, 228, 196, 1],
    black: [0, 0, 0, 1],
    blanchedalmond: [255, 235, 205, 1],
    blue: [0, 0, 255, 1],
    blueviolet: [138, 43, 226, 1],
    brown: [165, 42, 42, 1],
    burlywood: [222, 184, 135, 1],
    cadetblue: [95, 158, 160, 1],
    chartreuse: [127, 255, 0, 1],
    chocolate: [210, 105, 30, 1],
    coral: [255, 127, 80, 1],
    cornflowerblue: [100, 149, 237, 1],
    cornsilk: [255, 248, 220, 1],
    crimson: [220, 20, 60, 1],
    cyan: [0, 255, 255, 1],
    darkblue: [0, 0, 139, 1],
    darkcyan: [0, 139, 139, 1],
    darkgoldenrod: [184, 134, 11, 1],
    darkgray: [169, 169, 169, 1],
    darkgreen: [0, 100, 0, 1],
    darkgrey: [169, 169, 169, 1],
    darkkhaki: [189, 183, 107, 1],
    darkmagenta: [139, 0, 139, 1],
    darkolivegreen: [85, 107, 47, 1],
    darkorange: [255, 140, 0, 1],
    darkorchid: [153, 50, 204, 1],
    darkred: [139, 0, 0, 1],
    darksalmon: [233, 150, 122, 1],
    darkseagreen: [143, 188, 143, 1],
    darkslateblue: [72, 61, 139, 1],
    darkslategray: [47, 79, 79, 1],
    darkslategrey: [47, 79, 79, 1],
    darkturquoise: [0, 206, 209, 1],
    darkviolet: [148, 0, 211, 1],
    deeppink: [255, 20, 147, 1],
    deepskyblue: [0, 191, 255, 1],
    dimgray: [105, 105, 105, 1],
    dimgrey: [105, 105, 105, 1],
    dodgerblue: [30, 144, 255, 1],
    firebrick: [178, 34, 34, 1],
    floralwhite: [255, 250, 240, 1],
    forestgreen: [34, 139, 34, 1],
    fuchsia: [255, 0, 255, 1],
    gainsboro: [220, 220, 220, 1],
    ghostwhite: [248, 248, 255, 1],
    gold: [255, 215, 0, 1],
    goldenrod: [218, 165, 32, 1],
    gray: [128, 128, 128, 1],
    green: [0, 128, 0, 1],
    greenyellow: [173, 255, 47, 1],
    grey: [128, 128, 128, 1],
    honeydew: [240, 255, 240, 1],
    hotpink: [255, 105, 180, 1],
    indianred: [205, 92, 92, 1],
    indigo: [75, 0, 130, 1],
    ivory: [255, 255, 240, 1],
    khaki: [240, 230, 140, 1],
    lavender: [230, 230, 250, 1],
    lavenderblush: [255, 240, 245, 1],
    lawngreen: [124, 252, 0, 1],
    lemonchiffon: [255, 250, 205, 1],
    lightblue: [173, 216, 230, 1],
    lightcoral: [240, 128, 128, 1],
    lightcyan: [224, 255, 255, 1],
    lightgoldenrodyellow: [250, 250, 210, 1],
    lightgray: [211, 211, 211, 1],
    lightgreen: [144, 238, 144, 1],
    lightgrey: [211, 211, 211, 1],
    lightpink: [255, 182, 193, 1],
    lightsalmon: [255, 160, 122, 1],
    lightseagreen: [32, 178, 170, 1],
    lightskyblue: [135, 206, 250, 1],
    lightslategray: [119, 136, 153, 1],
    lightslategrey: [119, 136, 153, 1],
    lightsteelblue: [176, 196, 222, 1],
    lightyellow: [255, 255, 224, 1],
    lime: [0, 255, 0, 1],
    limegreen: [50, 205, 50, 1],
    linen: [250, 240, 230, 1],
    magenta: [255, 0, 255, 1],
    maroon: [128, 0, 0, 1],
    mediumaquamarine: [102, 205, 170, 1],
    mediumblue: [0, 0, 205, 1],
    mediumorchid: [186, 85, 211, 1],
    mediumpurple: [147, 112, 219, 1],
    mediumseagreen: [60, 179, 113, 1],
    mediumslateblue: [123, 104, 238, 1],
    mediumspringgreen: [0, 250, 154, 1],
    mediumturquoise: [72, 209, 204, 1],
    mediumvioletred: [199, 21, 133, 1],
    midnightblue: [25, 25, 112, 1],
    mintcream: [245, 255, 250, 1],
    mistyrose: [255, 228, 225, 1],
    moccasin: [255, 228, 181, 1],
    navajowhite: [255, 222, 173, 1],
    navy: [0, 0, 128, 1],
    oldlace: [253, 245, 230, 1],
    olive: [128, 128, 0, 1],
    olivedrab: [107, 142, 35, 1],
    orange: [255, 165, 0, 1],
    orangered: [255, 69, 0, 1],
    orchid: [218, 112, 214, 1],
    palegoldenrod: [238, 232, 170, 1],
    palegreen: [152, 251, 152, 1],
    paleturquoise: [175, 238, 238, 1],
    palevioletred: [219, 112, 147, 1],
    papayawhip: [255, 239, 213, 1],
    peachpuff: [255, 218, 185, 1],
    peru: [205, 133, 63, 1],
    pink: [255, 192, 203, 1],
    plum: [221, 160, 221, 1],
    powderblue: [176, 224, 230, 1],
    purple: [128, 0, 128, 1],
    red: [255, 0, 0, 1],
    rosybrown: [188, 143, 143, 1],
    royalblue: [65, 105, 225, 1],
    saddlebrown: [139, 69, 19, 1],
    salmon: [250, 128, 114, 1],
    sandybrown: [244, 164, 96, 1],
    seagreen: [46, 139, 87, 1],
    seashell: [255, 245, 238, 1],
    sienna: [160, 82, 45, 1],
    silver: [192, 192, 192, 1],
    skyblue: [135, 206, 235, 1],
    slateblue: [106, 90, 205, 1],
    slategray: [112, 128, 144, 1],
    slategrey: [112, 128, 144, 1],
    snow: [255, 250, 250, 1],
    springgreen: [0, 255, 127, 1],
    steelblue: [70, 130, 180, 1],
    tan: [210, 180, 140, 1],
    teal: [0, 128, 128, 1],
    thistle: [216, 191, 216, 1],
    tomato: [255, 99, 71, 1],
    turquoise: [64, 224, 208, 1],
    violet: [238, 130, 238, 1],
    wheat: [245, 222, 179, 1],
    white: [255, 255, 255, 1],
    whitesmoke: [245, 245, 245, 1],
    yellow: [255, 255, 0, 1],
    yellowgreen: [154, 205, 50, 1]
};
function po(t) {
    return t = Math.round(t),
    t < 0 ? 0 : t > 255 ? 255 : t
}
function TWe(t) {
    return t = Math.round(t),
    t < 0 ? 0 : t > 360 ? 360 : t
}
function E0(t) {
    return t < 0 ? 0 : t > 1 ? 1 : t
}
function vP(t) {
    var e = t;
    return e.length && e.charAt(e.length - 1) === "%" ? po(parseFloat(e) / 100 * 255) : po(parseInt(e, 10))
}
function bf(t) {
    var e = t;
    return e.length && e.charAt(e.length - 1) === "%" ? E0(parseFloat(e) / 100) : E0(parseFloat(e))
}
function hP(t, e, n) {
    return n < 0 ? n += 1 : n > 1 && (n -= 1),
    n * 6 < 1 ? t + (e - t) * n * 6 : n * 2 < 1 ? e : n * 3 < 2 ? t + (e - t) * (2 / 3 - n) * 6 : t
}
function ou(t, e, n) {
    return t + (e - t) * n
}
function wi(t, e, n, r, a) {
    return t[0] = e,
    t[1] = n,
    t[2] = r,
    t[3] = a,
    t
}
function oI(t, e) {
    return t[0] = e[0],
    t[1] = e[1],
    t[2] = e[2],
    t[3] = e[3],
    t
}
var zae = new Gm(20)
  , s1 = null;
function bd(t, e) {
    s1 && oI(s1, e),
    s1 = zae.put(t, s1 || e.slice())
}
function _a(t, e) {
    if (!!t) {
        e = e || [];
        var n = zae.get(t);
        if (n)
            return oI(e, n);
        t = t + "";
        var r = t.replace(/ /g, "").toLowerCase();
        if (r in Uz)
            return oI(e, Uz[r]),
            bd(t, e),
            e;
        var a = r.length;
        if (r.charAt(0) === "#") {
            if (a === 4 || a === 5) {
                var i = parseInt(r.slice(1, 4), 16);
                if (!(i >= 0 && i <= 4095)) {
                    wi(e, 0, 0, 0, 1);
                    return
                }
                return wi(e, (i & 3840) >> 4 | (i & 3840) >> 8, i & 240 | (i & 240) >> 4, i & 15 | (i & 15) << 4, a === 5 ? parseInt(r.slice(4), 16) / 15 : 1),
                bd(t, e),
                e
            } else if (a === 7 || a === 9) {
                var i = parseInt(r.slice(1, 7), 16);
                if (!(i >= 0 && i <= 16777215)) {
                    wi(e, 0, 0, 0, 1);
                    return
                }
                return wi(e, (i & 16711680) >> 16, (i & 65280) >> 8, i & 255, a === 9 ? parseInt(r.slice(7), 16) / 255 : 1),
                bd(t, e),
                e
            }
            return
        }
        var o = r.indexOf("(")
          , l = r.indexOf(")");
        if (o !== -1 && l + 1 === a) {
            var s = r.substr(0, o)
              , u = r.substr(o + 1, l - (o + 1)).split(",")
              , c = 1;
            switch (s) {
            case "rgba":
                if (u.length !== 4)
                    return u.length === 3 ? wi(e, +u[0], +u[1], +u[2], 1) : wi(e, 0, 0, 0, 1);
                c = bf(u.pop());
            case "rgb":
                if (u.length >= 3)
                    return wi(e, vP(u[0]), vP(u[1]), vP(u[2]), u.length === 3 ? c : bf(u[3])),
                    bd(t, e),
                    e;
                wi(e, 0, 0, 0, 1);
                return;
            case "hsla":
                if (u.length !== 4) {
                    wi(e, 0, 0, 0, 1);
                    return
                }
                return u[3] = bf(u[3]),
                lI(u, e),
                bd(t, e),
                e;
            case "hsl":
                if (u.length !== 3) {
                    wi(e, 0, 0, 0, 1);
                    return
                }
                return lI(u, e),
                bd(t, e),
                e;
            default:
                return
            }
        }
        wi(e, 0, 0, 0, 1)
    }
}
function lI(t, e) {
    var n = (parseFloat(t[0]) % 360 + 360) % 360 / 360
      , r = bf(t[1])
      , a = bf(t[2])
      , i = a <= .5 ? a * (r + 1) : a + r - a * r
      , o = a * 2 - i;
    return e = e || [],
    wi(e, po(hP(o, i, n + 1 / 3) * 255), po(hP(o, i, n) * 255), po(hP(o, i, n - 1 / 3) * 255), 1),
    t.length === 4 && (e[3] = t[3]),
    e
}
function PWe(t) {
    if (!!t) {
        var e = t[0] / 255, n = t[1] / 255, r = t[2] / 255, a = Math.min(e, n, r), i = Math.max(e, n, r), o = i - a, l = (i + a) / 2, s, u;
        if (o === 0)
            s = 0,
            u = 0;
        else {
            l < .5 ? u = o / (i + a) : u = o / (2 - i - a);
            var c = ((i - e) / 6 + o / 2) / o
              , f = ((i - n) / 6 + o / 2) / o
              , d = ((i - r) / 6 + o / 2) / o;
            e === i ? s = d - f : n === i ? s = 1 / 3 + c - d : r === i && (s = 2 / 3 + f - c),
            s < 0 && (s += 1),
            s > 1 && (s -= 1)
        }
        var v = [s * 360, u, l];
        return t[3] != null && v.push(t[3]),
        v
    }
}
function _S(t, e) {
    var n = _a(t);
    if (n) {
        for (var r = 0; r < 3; r++)
            e < 0 ? n[r] = n[r] * (1 - e) | 0 : n[r] = (255 - n[r]) * e + n[r] | 0,
            n[r] > 255 ? n[r] = 255 : n[r] < 0 && (n[r] = 0);
        return go(n, n.length === 4 ? "rgba" : "rgb")
    }
}
function MWe(t) {
    var e = _a(t);
    if (e)
        return ((1 << 24) + (e[0] << 16) + (e[1] << 8) + +e[2]).toString(16).slice(1)
}
function Rg(t, e, n) {
    if (!(!(e && e.length) || !(t >= 0 && t <= 1))) {
        n = n || [];
        var r = t * (e.length - 1)
          , a = Math.floor(r)
          , i = Math.ceil(r)
          , o = e[a]
          , l = e[i]
          , s = r - a;
        return n[0] = po(ou(o[0], l[0], s)),
        n[1] = po(ou(o[1], l[1], s)),
        n[2] = po(ou(o[2], l[2], s)),
        n[3] = E0(ou(o[3], l[3], s)),
        n
    }
}
var AWe = Rg;
function I6(t, e, n) {
    if (!(!(e && e.length) || !(t >= 0 && t <= 1))) {
        var r = t * (e.length - 1)
          , a = Math.floor(r)
          , i = Math.ceil(r)
          , o = _a(e[a])
          , l = _a(e[i])
          , s = r - a
          , u = go([po(ou(o[0], l[0], s)), po(ou(o[1], l[1], s)), po(ou(o[2], l[2], s)), E0(ou(o[3], l[3], s))], "rgba");
        return n ? {
            color: u,
            leftIndex: a,
            rightIndex: i,
            value: r
        } : u
    }
}
var IWe = I6;
function Sv(t, e, n, r) {
    var a = _a(t);
    if (t)
        return a = PWe(a),
        e != null && (a[0] = TWe(e)),
        n != null && (a[1] = bf(n)),
        r != null && (a[2] = bf(r)),
        go(lI(a), "rgba")
}
function L0(t, e) {
    var n = _a(t);
    if (n && e != null)
        return n[3] = E0(e),
        go(n, "rgba")
}
function go(t, e) {
    if (!(!t || !t.length)) {
        var n = t[0] + "," + t[1] + "," + t[2];
        return (e === "rgba" || e === "hsva" || e === "hsla") && (n += "," + t[3]),
        e + "(" + n + ")"
    }
}
function R0(t, e) {
    var n = _a(t);
    return n ? (.299 * n[0] + .587 * n[1] + .114 * n[2]) * n[3] / 255 + (1 - n[3]) * e : 0
}
function kWe() {
    return go([Math.round(Math.random() * 255), Math.round(Math.random() * 255), Math.round(Math.random() * 255)], "rgb")
}
const OWe = Object.freeze(Object.defineProperty({
    __proto__: null,
    parse: _a,
    lift: _S,
    toHex: MWe,
    fastLerp: Rg,
    fastMapToColor: AWe,
    lerp: I6,
    mapToColor: IWe,
    modifyHSL: Sv,
    modifyAlpha: L0,
    stringify: go,
    lum: R0,
    random: kWe
}, Symbol.toStringTag, {
    value: "Module"
}));
var TS = Math.round;
function N0(t) {
    var e;
    if (!t || t === "transparent")
        t = "none";
    else if (typeof t == "string" && t.indexOf("rgba") > -1) {
        var n = _a(t);
        n && (t = "rgb(" + n[0] + "," + n[1] + "," + n[2] + ")",
        e = n[3])
    }
    return {
        color: t,
        opacity: e == null ? 1 : e
    }
}
var Yz = 1e-4;
function lu(t) {
    return t < Yz && t > -Yz
}
function u1(t) {
    return TS(t * 1e3) / 1e3
}
function sI(t) {
    return TS(t * 1e4) / 1e4
}
function DWe(t) {
    return "matrix(" + u1(t[0]) + "," + u1(t[1]) + "," + u1(t[2]) + "," + u1(t[3]) + "," + sI(t[4]) + "," + sI(t[5]) + ")"
}
var EWe = {
    left: "start",
    right: "end",
    center: "middle",
    middle: "middle"
};
function LWe(t, e, n) {
    return n === "top" ? t += e / 2 : n === "bottom" && (t -= e / 2),
    t
}
function RWe(t) {
    return t && (t.shadowBlur || t.shadowOffsetX || t.shadowOffsetY)
}
function NWe(t) {
    var e = t.style
      , n = t.getGlobalScale();
    return [e.shadowColor, (e.shadowBlur || 0).toFixed(2), (e.shadowOffsetX || 0).toFixed(2), (e.shadowOffsetY || 0).toFixed(2), n[0], n[1]].join(",")
}
function Hae(t) {
    return t && !!t.image
}
function $We(t) {
    return t && !!t.svgElement
}
function k6(t) {
    return Hae(t) || $We(t)
}
function jae(t) {
    return t.type === "linear"
}
function Wae(t) {
    return t.type === "radial"
}
function Gae(t) {
    return t && (t.type === "linear" || t.type === "radial")
}
function Qw(t) {
    return "url(#" + t + ")"
}
function Kae(t) {
    var e = t.getGlobalScale()
      , n = Math.max(e[0], e[1]);
    return Math.max(Math.ceil(Math.log(n) / Math.log(10)), 1)
}
function Uae(t) {
    var e = t.x || 0
      , n = t.y || 0
      , r = (t.rotation || 0) * Dg
      , a = Ot(t.scaleX, 1)
      , i = Ot(t.scaleY, 1)
      , o = t.skewX || 0
      , l = t.skewY || 0
      , s = [];
    return (e || n) && s.push("translate(" + e + "px," + n + "px)"),
    r && s.push("rotate(" + r + ")"),
    (a !== 1 || i !== 1) && s.push("scale(" + a + "," + i + ")"),
    (o || l) && s.push("skew(" + TS(o * Dg) + "deg, " + TS(l * Dg) + "deg)"),
    s.join(" ")
}
var FWe = function() {
    return nn.hasGlobalWindow && et(window.btoa) ? function(t) {
        return window.btoa(unescape(encodeURIComponent(t)))
    }
    : typeof Buffer != "undefined" ? function(t) {
        return Buffer.from(t).toString("base64")
    }
    : function(t) {
        return null
    }
}()
  , uI = Array.prototype.slice;
function Wl(t, e, n) {
    return (e - t) * n + t
}
function pP(t, e, n, r) {
    for (var a = e.length, i = 0; i < a; i++)
        t[i] = Wl(e[i], n[i], r);
    return t
}
function BWe(t, e, n, r) {
    for (var a = e.length, i = a && e[0].length, o = 0; o < a; o++) {
        t[o] || (t[o] = []);
        for (var l = 0; l < i; l++)
            t[o][l] = Wl(e[o][l], n[o][l], r)
    }
    return t
}
function c1(t, e, n, r) {
    for (var a = e.length, i = 0; i < a; i++)
        t[i] = e[i] + n[i] * r;
    return t
}
function qz(t, e, n, r) {
    for (var a = e.length, i = a && e[0].length, o = 0; o < a; o++) {
        t[o] || (t[o] = []);
        for (var l = 0; l < i; l++)
            t[o][l] = e[o][l] + n[o][l] * r
    }
    return t
}
function VWe(t, e) {
    for (var n = t.length, r = e.length, a = n > r ? e : t, i = Math.min(n, r), o = a[i - 1] || {
        color: [0, 0, 0, 0],
        offset: 0
    }, l = i; l < Math.max(n, r); l++)
        a.push({
            offset: o.offset,
            color: o.color.slice()
        })
}
function zWe(t, e, n) {
    var r = t
      , a = e;
    if (!(!r.push || !a.push)) {
        var i = r.length
          , o = a.length;
        if (i !== o) {
            var l = i > o;
            if (l)
                r.length = o;
            else
                for (var s = i; s < o; s++)
                    r.push(n === 1 ? a[s] : uI.call(a[s]))
        }
        for (var u = r[0] && r[0].length, s = 0; s < r.length; s++)
            if (n === 1)
                isNaN(r[s]) && (r[s] = a[s]);
            else
                for (var c = 0; c < u; c++)
                    isNaN(r[s][c]) && (r[s][c] = a[s][c])
    }
}
function Ng(t) {
    if (Qr(t)) {
        var e = t.length;
        if (Qr(t[0])) {
            for (var n = [], r = 0; r < e; r++)
                n.push(uI.call(t[r]));
            return n
        }
        return uI.call(t)
    }
    return t
}
function tx(t) {
    return t[0] = Math.floor(t[0]) || 0,
    t[1] = Math.floor(t[1]) || 0,
    t[2] = Math.floor(t[2]) || 0,
    t[3] = t[3] == null ? 1 : t[3],
    "rgba(" + t.join(",") + ")"
}
function HWe(t) {
    return Qr(t && t[0]) ? 2 : 1
}
var f1 = 0
  , nx = 1
  , Yae = 2
  , Yp = 3
  , cI = 4
  , fI = 5
  , Xz = 6;
function Zz(t) {
    return t === cI || t === fI
}
function d1(t) {
    return t === nx || t === Yae
}
var vp = [0, 0, 0, 0]
  , jWe = function() {
    function t(e) {
        this.keyframes = [],
        this.discrete = !1,
        this._invalid = !1,
        this._needsSort = !1,
        this._lastFr = 0,
        this._lastFrP = 0,
        this.propName = e
    }
    return t.prototype.isFinished = function() {
        return this._finished
    }
    ,
    t.prototype.setFinished = function() {
        this._finished = !0,
        this._additiveTrack && this._additiveTrack.setFinished()
    }
    ,
    t.prototype.needsAnimate = function() {
        return this.keyframes.length >= 1
    }
    ,
    t.prototype.getAdditiveTrack = function() {
        return this._additiveTrack
    }
    ,
    t.prototype.addKeyframe = function(e, n, r) {
        this._needsSort = !0;
        var a = this.keyframes
          , i = a.length
          , o = !1
          , l = Xz
          , s = n;
        if (Qr(n)) {
            var u = HWe(n);
            l = u,
            (u === 1 && !rn(n[0]) || u === 2 && !rn(n[0][0])) && (o = !0)
        } else if (rn(n) && !Xv(n))
            l = f1;
        else if (Ge(n))
            if (!isNaN(+n))
                l = f1;
            else {
                var c = _a(n);
                c && (s = c,
                l = Yp)
            }
        else if (Hm(n)) {
            var f = Me({}, s);
            f.colorStops = Le(n.colorStops, function(v) {
                return {
                    offset: v.offset,
                    color: _a(v.color)
                }
            }),
            jae(n) ? l = cI : Wae(n) && (l = fI),
            s = f
        }
        i === 0 ? this.valType = l : (l !== this.valType || l === Xz) && (o = !0),
        this.discrete = this.discrete || o;
        var d = {
            time: e,
            value: s,
            rawValue: n,
            percent: 0
        };
        return r && (d.easing = r,
        d.easingFunc = et(r) ? r : Eae[r] || A6(r)),
        a.push(d),
        d
    }
    ,
    t.prototype.prepare = function(e, n) {
        var r = this.keyframes;
        this._needsSort && r.sort(function(p, g) {
            return p.time - g.time
        });
        for (var a = this.valType, i = r.length, o = r[i - 1], l = this.discrete, s = d1(a), u = Zz(a), c = 0; c < i; c++) {
            var f = r[c]
              , d = f.value
              , v = o.value;
            f.percent = f.time / e,
            l || (s && c !== i - 1 ? zWe(d, v, a) : u && VWe(d.colorStops, v.colorStops))
        }
        if (!l && a !== fI && n && this.needsAnimate() && n.needsAnimate() && a === n.valType && !n._finished) {
            this._additiveTrack = n;
            for (var h = r[0].value, c = 0; c < i; c++)
                a === f1 ? r[c].additiveValue = r[c].value - h : a === Yp ? r[c].additiveValue = c1([], r[c].value, h, -1) : d1(a) && (r[c].additiveValue = a === nx ? c1([], r[c].value, h, -1) : qz([], r[c].value, h, -1))
        }
    }
    ,
    t.prototype.step = function(e, n) {
        if (!this._finished) {
            this._additiveTrack && this._additiveTrack._finished && (this._additiveTrack = null);
            var r = this._additiveTrack != null, a = r ? "additiveValue" : "value", i = this.valType, o = this.keyframes, l = o.length, s = this.propName, u = i === Yp, c, f = this._lastFr, d = Math.min, v, h;
            if (l === 1)
                v = h = o[0];
            else {
                if (n < 0)
                    c = 0;
                else if (n < this._lastFrP) {
                    var p = d(f + 1, l - 1);
                    for (c = p; c >= 0 && !(o[c].percent <= n); c--)
                        ;
                    c = d(c, l - 2)
                } else {
                    for (c = f; c < l && !(o[c].percent > n); c++)
                        ;
                    c = d(c - 1, l - 2)
                }
                h = o[c + 1],
                v = o[c]
            }
            if (!!(v && h)) {
                this._lastFr = c,
                this._lastFrP = n;
                var g = h.percent - v.percent
                  , m = g === 0 ? 1 : d((n - v.percent) / g, 1);
                h.easingFunc && (m = h.easingFunc(m));
                var y = r ? this._additiveValue : u ? vp : e[s];
                if ((d1(i) || u) && !y && (y = this._additiveValue = []),
                this.discrete)
                    e[s] = m < 1 ? v.rawValue : h.rawValue;
                else if (d1(i))
                    i === nx ? pP(y, v[a], h[a], m) : BWe(y, v[a], h[a], m);
                else if (Zz(i)) {
                    var b = v[a]
                      , x = h[a]
                      , C = i === cI;
                    e[s] = {
                        type: C ? "linear" : "radial",
                        x: Wl(b.x, x.x, m),
                        y: Wl(b.y, x.y, m),
                        colorStops: Le(b.colorStops, function(w, T) {
                            var P = x.colorStops[T];
                            return {
                                offset: Wl(w.offset, P.offset, m),
                                color: tx(pP([], w.color, P.color, m))
                            }
                        }),
                        global: x.global
                    },
                    C ? (e[s].x2 = Wl(b.x2, x.x2, m),
                    e[s].y2 = Wl(b.y2, x.y2, m)) : e[s].r = Wl(b.r, x.r, m)
                } else if (u)
                    pP(y, v[a], h[a], m),
                    r || (e[s] = tx(y));
                else {
                    var S = Wl(v[a], h[a], m);
                    r ? this._additiveValue = S : e[s] = S
                }
                r && this._addToTarget(e)
            }
        }
    }
    ,
    t.prototype._addToTarget = function(e) {
        var n = this.valType
          , r = this.propName
          , a = this._additiveValue;
        n === f1 ? e[r] = e[r] + a : n === Yp ? (_a(e[r], vp),
        c1(vp, vp, a, 1),
        e[r] = tx(vp)) : n === nx ? c1(e[r], e[r], a, 1) : n === Yae && qz(e[r], e[r], a, 1)
    }
    ,
    t
}()
  , WWe = function() {
    function t(e, n, r, a) {
        if (this._tracks = {},
        this._trackKeys = [],
        this._maxTime = 0,
        this._started = 0,
        this._clip = null,
        this._target = e,
        this._loop = n,
        n && a) {
            Kw("Can' use additive animation on looped animation.");
            return
        }
        this._additiveAnimators = a,
        this._allowDiscrete = r
    }
    return t.prototype.getMaxTime = function() {
        return this._maxTime
    }
    ,
    t.prototype.getDelay = function() {
        return this._delay
    }
    ,
    t.prototype.getLoop = function() {
        return this._loop
    }
    ,
    t.prototype.getTarget = function() {
        return this._target
    }
    ,
    t.prototype.changeTarget = function(e) {
        this._target = e
    }
    ,
    t.prototype.when = function(e, n, r) {
        return this.whenWithKeys(e, n, Gt(n), r)
    }
    ,
    t.prototype.whenWithKeys = function(e, n, r, a) {
        for (var i = this._tracks, o = 0; o < r.length; o++) {
            var l = r[o]
              , s = i[l];
            if (!s) {
                s = i[l] = new jWe(l);
                var u = void 0
                  , c = this._getAdditiveTrack(l);
                if (c) {
                    var f = c.keyframes
                      , d = f[f.length - 1];
                    u = d && d.value,
                    c.valType === Yp && u && (u = tx(u))
                } else
                    u = this._target[l];
                if (u == null)
                    continue;
                e > 0 && s.addKeyframe(0, Ng(u), a),
                this._trackKeys.push(l)
            }
            s.addKeyframe(e, Ng(n[l]), a)
        }
        return this._maxTime = Math.max(this._maxTime, e),
        this
    }
    ,
    t.prototype.pause = function() {
        this._clip.pause(),
        this._paused = !0
    }
    ,
    t.prototype.resume = function() {
        this._clip.resume(),
        this._paused = !1
    }
    ,
    t.prototype.isPaused = function() {
        return !!this._paused
    }
    ,
    t.prototype.duration = function(e) {
        return this._maxTime = e,
        this._force = !0,
        this
    }
    ,
    t.prototype._doneCallback = function() {
        this._setTracksFinished(),
        this._clip = null;
        var e = this._doneCbs;
        if (e)
            for (var n = e.length, r = 0; r < n; r++)
                e[r].call(this)
    }
    ,
    t.prototype._abortedCallback = function() {
        this._setTracksFinished();
        var e = this.animation
          , n = this._abortedCbs;
        if (e && e.removeClip(this._clip),
        this._clip = null,
        n)
            for (var r = 0; r < n.length; r++)
                n[r].call(this)
    }
    ,
    t.prototype._setTracksFinished = function() {
        for (var e = this._tracks, n = this._trackKeys, r = 0; r < n.length; r++)
            e[n[r]].setFinished()
    }
    ,
    t.prototype._getAdditiveTrack = function(e) {
        var n, r = this._additiveAnimators;
        if (r)
            for (var a = 0; a < r.length; a++) {
                var i = r[a].getTrack(e);
                i && (n = i)
            }
        return n
    }
    ,
    t.prototype.start = function(e) {
        if (!(this._started > 0)) {
            this._started = 1;
            for (var n = this, r = [], a = this._maxTime || 0, i = 0; i < this._trackKeys.length; i++) {
                var o = this._trackKeys[i]
                  , l = this._tracks[o]
                  , s = this._getAdditiveTrack(o)
                  , u = l.keyframes
                  , c = u.length;
                if (l.prepare(a, s),
                l.needsAnimate())
                    if (!this._allowDiscrete && l.discrete) {
                        var f = u[c - 1];
                        f && (n._target[l.propName] = f.rawValue),
                        l.setFinished()
                    } else
                        r.push(l)
            }
            if (r.length || this._force) {
                var d = new CWe({
                    life: a,
                    loop: this._loop,
                    delay: this._delay || 0,
                    onframe: function(v) {
                        n._started = 2;
                        var h = n._additiveAnimators;
                        if (h) {
                            for (var p = !1, g = 0; g < h.length; g++)
                                if (h[g]._clip) {
                                    p = !0;
                                    break
                                }
                            p || (n._additiveAnimators = null)
                        }
                        for (var g = 0; g < r.length; g++)
                            r[g].step(n._target, v);
                        var m = n._onframeCbs;
                        if (m)
                            for (var g = 0; g < m.length; g++)
                                m[g](n._target, v)
                    },
                    ondestroy: function() {
                        n._doneCallback()
                    }
                });
                this._clip = d,
                this.animation && this.animation.addClip(d),
                e && d.setEasing(e)
            } else
                this._doneCallback();
            return this
        }
    }
    ,
    t.prototype.stop = function(e) {
        if (!!this._clip) {
            var n = this._clip;
            e && n.onframe(1),
            this._abortedCallback()
        }
    }
    ,
    t.prototype.delay = function(e) {
        return this._delay = e,
        this
    }
    ,
    t.prototype.during = function(e) {
        return e && (this._onframeCbs || (this._onframeCbs = []),
        this._onframeCbs.push(e)),
        this
    }
    ,
    t.prototype.done = function(e) {
        return e && (this._doneCbs || (this._doneCbs = []),
        this._doneCbs.push(e)),
        this
    }
    ,
    t.prototype.aborted = function(e) {
        return e && (this._abortedCbs || (this._abortedCbs = []),
        this._abortedCbs.push(e)),
        this
    }
    ,
    t.prototype.getClip = function() {
        return this._clip
    }
    ,
    t.prototype.getTrack = function(e) {
        return this._tracks[e]
    }
    ,
    t.prototype.getTracks = function() {
        var e = this;
        return Le(this._trackKeys, function(n) {
            return e._tracks[n]
        })
    }
    ,
    t.prototype.stopTracks = function(e, n) {
        if (!e.length || !this._clip)
            return !0;
        for (var r = this._tracks, a = this._trackKeys, i = 0; i < e.length; i++) {
            var o = r[e[i]];
            o && !o.isFinished() && (n ? o.step(this._target, 1) : this._started === 1 && o.step(this._target, 0),
            o.setFinished())
        }
        for (var l = !0, i = 0; i < a.length; i++)
            if (!r[a[i]].isFinished()) {
                l = !1;
                break
            }
        return l && this._abortedCallback(),
        l
    }
    ,
    t.prototype.saveTo = function(e, n, r) {
        if (!!e) {
            n = n || this._trackKeys;
            for (var a = 0; a < n.length; a++) {
                var i = n[a]
                  , o = this._tracks[i];
                if (!(!o || o.isFinished())) {
                    var l = o.keyframes
                      , s = l[r ? 0 : l.length - 1];
                    s && (e[i] = Ng(s.rawValue))
                }
            }
        }
    }
    ,
    t.prototype.__changeFinalValue = function(e, n) {
        n = n || Gt(e);
        for (var r = 0; r < n.length; r++) {
            var a = n[r]
              , i = this._tracks[a];
            if (!!i) {
                var o = i.keyframes;
                if (o.length > 1) {
                    var l = o.pop();
                    i.addKeyframe(l.time, e[a]),
                    i.prepare(this._maxTime, i.getAdditiveTrack())
                }
            }
        }
    }
    ,
    t
}();
const O6 = WWe;
function nv() {
    return new Date().getTime()
}
var GWe = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this) || this;
        return r._running = !1,
        r._time = 0,
        r._pausedTime = 0,
        r._pauseStart = 0,
        r._paused = !1,
        n = n || {},
        r.stage = n.stage || {},
        r
    }
    return e.prototype.addClip = function(n) {
        n.animation && this.removeClip(n),
        this._head ? (this._tail.next = n,
        n.prev = this._tail,
        n.next = null,
        this._tail = n) : this._head = this._tail = n,
        n.animation = this
    }
    ,
    e.prototype.addAnimator = function(n) {
        n.animation = this;
        var r = n.getClip();
        r && this.addClip(r)
    }
    ,
    e.prototype.removeClip = function(n) {
        if (!!n.animation) {
            var r = n.prev
              , a = n.next;
            r ? r.next = a : this._head = a,
            a ? a.prev = r : this._tail = r,
            n.next = n.prev = n.animation = null
        }
    }
    ,
    e.prototype.removeAnimator = function(n) {
        var r = n.getClip();
        r && this.removeClip(r),
        n.animation = null
    }
    ,
    e.prototype.update = function(n) {
        for (var r = nv() - this._pausedTime, a = r - this._time, i = this._head; i; ) {
            var o = i.next
              , l = i.step(r, a);
            l && (i.ondestroy(),
            this.removeClip(i)),
            i = o
        }
        this._time = r,
        n || (this.trigger("frame", a),
        this.stage.update && this.stage.update())
    }
    ,
    e.prototype._startLoop = function() {
        var n = this;
        this._running = !0;
        function r() {
            n._running && (aI(r),
            !n._paused && n.update())
        }
        aI(r)
    }
    ,
    e.prototype.start = function() {
        this._running || (this._time = nv(),
        this._pausedTime = 0,
        this._startLoop())
    }
    ,
    e.prototype.stop = function() {
        this._running = !1
    }
    ,
    e.prototype.pause = function() {
        this._paused || (this._pauseStart = nv(),
        this._paused = !0)
    }
    ,
    e.prototype.resume = function() {
        this._paused && (this._pausedTime += nv() - this._pauseStart,
        this._paused = !1)
    }
    ,
    e.prototype.clear = function() {
        for (var n = this._head; n; ) {
            var r = n.next;
            n.prev = n.next = n.animation = null,
            n = r
        }
        this._head = this._tail = null
    }
    ,
    e.prototype.isFinished = function() {
        return this._head == null
    }
    ,
    e.prototype.animate = function(n, r) {
        r = r || {},
        this.start();
        var a = new O6(n,r.loop);
        return this.addAnimator(a),
        a
    }
    ,
    e
}(Wi);
const KWe = GWe;
var UWe = 300
  , gP = nn.domSupported
  , mP = function() {
    var t = ["click", "dblclick", "mousewheel", "wheel", "mouseout", "mouseup", "mousedown", "mousemove", "contextmenu"]
      , e = ["touchstart", "touchend", "touchmove"]
      , n = {
        pointerdown: 1,
        pointerup: 1,
        pointermove: 1,
        pointerout: 1
    }
      , r = Le(t, function(a) {
        var i = a.replace("mouse", "pointer");
        return n.hasOwnProperty(i) ? i : a
    });
    return {
        mouse: t,
        touch: e,
        pointer: r
    }
}()
  , Qz = {
    mouse: ["mousemove", "mouseup"],
    pointer: ["pointermove", "pointerup"]
}
  , Jz = !1;
function dI(t) {
    var e = t.pointerType;
    return e === "pen" || e === "touch"
}
function YWe(t) {
    t.touching = !0,
    t.touchTimer != null && (clearTimeout(t.touchTimer),
    t.touchTimer = null),
    t.touchTimer = setTimeout(function() {
        t.touching = !1,
        t.touchTimer = null
    }, 700)
}
function yP(t) {
    t && (t.zrByTouch = !0)
}
function qWe(t, e) {
    return Ti(t.dom, new XWe(t,e), !0)
}
function qae(t, e) {
    for (var n = e, r = !1; n && n.nodeType !== 9 && !(r = n.domBelongToZr || n !== e && n === t.painterRoot); )
        n = n.parentNode;
    return r
}
var XWe = function() {
    function t(e, n) {
        this.stopPropagation = nr,
        this.stopImmediatePropagation = nr,
        this.preventDefault = nr,
        this.type = n.type,
        this.target = this.currentTarget = e.dom,
        this.pointerType = n.pointerType,
        this.clientX = n.clientX,
        this.clientY = n.clientY
    }
    return t
}()
  , to = {
    mousedown: function(t) {
        t = Ti(this.dom, t),
        this.__mayPointerCapture = [t.zrX, t.zrY],
        this.trigger("mousedown", t)
    },
    mousemove: function(t) {
        t = Ti(this.dom, t);
        var e = this.__mayPointerCapture;
        e && (t.zrX !== e[0] || t.zrY !== e[1]) && this.__togglePointerCapture(!0),
        this.trigger("mousemove", t)
    },
    mouseup: function(t) {
        t = Ti(this.dom, t),
        this.__togglePointerCapture(!1),
        this.trigger("mouseup", t)
    },
    mouseout: function(t) {
        t = Ti(this.dom, t);
        var e = t.toElement || t.relatedTarget;
        qae(this, e) || (this.__pointerCapturing && (t.zrEventControl = "no_globalout"),
        this.trigger("mouseout", t))
    },
    wheel: function(t) {
        Jz = !0,
        t = Ti(this.dom, t),
        this.trigger("mousewheel", t)
    },
    mousewheel: function(t) {
        Jz || (t = Ti(this.dom, t),
        this.trigger("mousewheel", t))
    },
    touchstart: function(t) {
        t = Ti(this.dom, t),
        yP(t),
        this.__lastTouchMoment = new Date,
        this.handler.processGesture(t, "start"),
        to.mousemove.call(this, t),
        to.mousedown.call(this, t)
    },
    touchmove: function(t) {
        t = Ti(this.dom, t),
        yP(t),
        this.handler.processGesture(t, "change"),
        to.mousemove.call(this, t)
    },
    touchend: function(t) {
        t = Ti(this.dom, t),
        yP(t),
        this.handler.processGesture(t, "end"),
        to.mouseup.call(this, t),
        +new Date - +this.__lastTouchMoment < UWe && to.click.call(this, t)
    },
    pointerdown: function(t) {
        to.mousedown.call(this, t)
    },
    pointermove: function(t) {
        dI(t) || to.mousemove.call(this, t)
    },
    pointerup: function(t) {
        to.mouseup.call(this, t)
    },
    pointerout: function(t) {
        dI(t) || to.mouseout.call(this, t)
    }
};
Z(["click", "dblclick", "contextmenu"], function(t) {
    to[t] = function(e) {
        e = Ti(this.dom, e),
        this.trigger(t, e)
    }
});
var vI = {
    pointermove: function(t) {
        dI(t) || vI.mousemove.call(this, t)
    },
    pointerup: function(t) {
        vI.mouseup.call(this, t)
    },
    mousemove: function(t) {
        this.trigger("mousemove", t)
    },
    mouseup: function(t) {
        var e = this.__pointerCapturing;
        this.__togglePointerCapture(!1),
        this.trigger("mouseup", t),
        e && (t.zrEventControl = "only_globalout",
        this.trigger("mouseout", t))
    }
};
function ZWe(t, e) {
    var n = e.domHandlers;
    nn.pointerEventsSupported ? Z(mP.pointer, function(r) {
        rx(e, r, function(a) {
            n[r].call(t, a)
        })
    }) : (nn.touchEventsSupported && Z(mP.touch, function(r) {
        rx(e, r, function(a) {
            n[r].call(t, a),
            YWe(e)
        })
    }),
    Z(mP.mouse, function(r) {
        rx(e, r, function(a) {
            a = M6(a),
            e.touching || n[r].call(t, a)
        })
    }))
}
function QWe(t, e) {
    nn.pointerEventsSupported ? Z(Qz.pointer, n) : nn.touchEventsSupported || Z(Qz.mouse, n);
    function n(r) {
        function a(i) {
            i = M6(i),
            qae(t, i.target) || (i = qWe(t, i),
            e.domHandlers[r].call(t, i))
        }
        rx(e, r, a, {
            capture: !0
        })
    }
}
function rx(t, e, n, r) {
    t.mounted[e] = n,
    t.listenerOpts[e] = r,
    rI(t.domTarget, e, n, r)
}
function bP(t) {
    var e = t.mounted;
    for (var n in e)
        e.hasOwnProperty(n) && eWe(t.domTarget, n, e[n], t.listenerOpts[n]);
    t.mounted = {}
}
var eH = function() {
    function t(e, n) {
        this.mounted = {},
        this.listenerOpts = {},
        this.touching = !1,
        this.domTarget = e,
        this.domHandlers = n
    }
    return t
}()
  , JWe = function(t) {
    ge(e, t);
    function e(n, r) {
        var a = t.call(this) || this;
        return a.__pointerCapturing = !1,
        a.dom = n,
        a.painterRoot = r,
        a._localHandlerScope = new eH(n,to),
        gP && (a._globalHandlerScope = new eH(document,vI)),
        ZWe(a, a._localHandlerScope),
        a
    }
    return e.prototype.dispose = function() {
        bP(this._localHandlerScope),
        gP && bP(this._globalHandlerScope)
    }
    ,
    e.prototype.setCursor = function(n) {
        this.dom.style && (this.dom.style.cursor = n || "default")
    }
    ,
    e.prototype.__togglePointerCapture = function(n) {
        if (this.__mayPointerCapture = null,
        gP && +this.__pointerCapturing ^ +n) {
            this.__pointerCapturing = n;
            var r = this._globalHandlerScope;
            n ? QWe(this, r) : bP(r)
        }
    }
    ,
    e
}(Wi);
const eGe = JWe;
var Xae = 1;
nn.hasGlobalWindow && (Xae = Math.max(window.devicePixelRatio || window.screen && window.screen.deviceXDPI / window.screen.logicalXDPI || 1, 1));
var PS = Xae
  , hI = .4
  , pI = "#333"
  , gI = "#ccc"
  , tGe = "#eee"
  , tH = Wm
  , nH = 5e-5;
function cc(t) {
    return t > nH || t < -nH
}
var fc = []
  , xd = []
  , xP = si()
  , SP = Math.abs
  , es = function() {
    function t() {}
    return t.prototype.getLocalTransform = function(e) {
        return t.getLocalTransform(this, e)
    }
    ,
    t.prototype.setPosition = function(e) {
        this.x = e[0],
        this.y = e[1]
    }
    ,
    t.prototype.setScale = function(e) {
        this.scaleX = e[0],
        this.scaleY = e[1]
    }
    ,
    t.prototype.setSkew = function(e) {
        this.skewX = e[0],
        this.skewY = e[1]
    }
    ,
    t.prototype.setOrigin = function(e) {
        this.originX = e[0],
        this.originY = e[1]
    }
    ,
    t.prototype.needLocalTransform = function() {
        return cc(this.rotation) || cc(this.x) || cc(this.y) || cc(this.scaleX - 1) || cc(this.scaleY - 1) || cc(this.skewX) || cc(this.skewY)
    }
    ,
    t.prototype.updateTransform = function() {
        var e = this.parent && this.parent.transform
          , n = this.needLocalTransform()
          , r = this.transform;
        if (!(n || e)) {
            r && (tH(r),
            this.invTransform = null);
            return
        }
        r = r || si(),
        n ? this.getLocalTransform(r) : tH(r),
        e && (n ? fl(r, e, r) : Xw(r, e)),
        this.transform = r,
        this._resolveGlobalScaleRatio(r)
    }
    ,
    t.prototype._resolveGlobalScaleRatio = function(e) {
        var n = this.globalScaleRatio;
        if (n != null && n !== 1) {
            this.getGlobalScale(fc);
            var r = fc[0] < 0 ? -1 : 1
              , a = fc[1] < 0 ? -1 : 1
              , i = ((fc[0] - r) * n + r) / fc[0] || 0
              , o = ((fc[1] - a) * n + a) / fc[1] || 0;
            e[0] *= i,
            e[1] *= i,
            e[2] *= o,
            e[3] *= o
        }
        this.invTransform = this.invTransform || si(),
        nd(this.invTransform, e)
    }
    ,
    t.prototype.getComputedTransform = function() {
        for (var e = this, n = []; e; )
            n.push(e),
            e = e.parent;
        for (; e = n.pop(); )
            e.updateTransform();
        return this.transform
    }
    ,
    t.prototype.setLocalTransform = function(e) {
        if (!!e) {
            var n = e[0] * e[0] + e[1] * e[1]
              , r = e[2] * e[2] + e[3] * e[3]
              , a = Math.atan2(e[1], e[0])
              , i = Math.PI / 2 + a - Math.atan2(e[3], e[2]);
            r = Math.sqrt(r) * Math.cos(i),
            n = Math.sqrt(n),
            this.skewX = i,
            this.skewY = 0,
            this.rotation = -a,
            this.x = +e[4],
            this.y = +e[5],
            this.scaleX = n,
            this.scaleY = r,
            this.originX = 0,
            this.originY = 0
        }
    }
    ,
    t.prototype.decomposeTransform = function() {
        if (!!this.transform) {
            var e = this.parent
              , n = this.transform;
            e && e.transform && (fl(xd, e.invTransform, n),
            n = xd);
            var r = this.originX
              , a = this.originY;
            (r || a) && (xP[4] = r,
            xP[5] = a,
            fl(xd, n, xP),
            xd[4] -= r,
            xd[5] -= a,
            n = xd),
            this.setLocalTransform(n)
        }
    }
    ,
    t.prototype.getGlobalScale = function(e) {
        var n = this.transform;
        return e = e || [],
        n ? (e[0] = Math.sqrt(n[0] * n[0] + n[1] * n[1]),
        e[1] = Math.sqrt(n[2] * n[2] + n[3] * n[3]),
        n[0] < 0 && (e[0] = -e[0]),
        n[3] < 0 && (e[1] = -e[1]),
        e) : (e[0] = 1,
        e[1] = 1,
        e)
    }
    ,
    t.prototype.transformCoordToLocal = function(e, n) {
        var r = [e, n]
          , a = this.invTransform;
        return a && Wr(r, r, a),
        r
    }
    ,
    t.prototype.transformCoordToGlobal = function(e, n) {
        var r = [e, n]
          , a = this.transform;
        return a && Wr(r, r, a),
        r
    }
    ,
    t.prototype.getLineScale = function() {
        var e = this.transform;
        return e && SP(e[0] - 1) > 1e-10 && SP(e[3] - 1) > 1e-10 ? Math.sqrt(SP(e[0] * e[3] - e[2] * e[1])) : 1
    }
    ,
    t.prototype.copyTransform = function(e) {
        Zae(this, e)
    }
    ,
    t.getLocalTransform = function(e, n) {
        n = n || [];
        var r = e.originX || 0
          , a = e.originY || 0
          , i = e.scaleX
          , o = e.scaleY
          , l = e.anchorX
          , s = e.anchorY
          , u = e.rotation || 0
          , c = e.x
          , f = e.y
          , d = e.skewX ? Math.tan(e.skewX) : 0
          , v = e.skewY ? Math.tan(-e.skewY) : 0;
        if (r || a || l || s) {
            var h = r + l
              , p = a + s;
            n[4] = -h * i - d * p * o,
            n[5] = -p * o - v * h * i
        } else
            n[4] = n[5] = 0;
        return n[0] = i,
        n[3] = o,
        n[1] = v * i,
        n[2] = d * o,
        u && Ku(n, n, u),
        n[4] += r + c,
        n[5] += a + f,
        n
    }
    ,
    t.initDefaultProps = function() {
        var e = t.prototype;
        e.scaleX = e.scaleY = e.globalScaleRatio = 1,
        e.x = e.y = e.originX = e.originY = e.skewX = e.skewY = e.rotation = e.anchorX = e.anchorY = 0
    }(),
    t
}()
  , gl = ["x", "y", "originX", "originY", "anchorX", "anchorY", "rotation", "scaleX", "scaleY", "skewX", "skewY"];
function Zae(t, e) {
    for (var n = 0; n < gl.length; n++) {
        var r = gl[n];
        t[r] = e[r]
    }
}
var rH = {};
function oi(t, e) {
    e = e || ku;
    var n = rH[e];
    n || (n = rH[e] = new Gm(500));
    var r = n.get(t);
    return r == null && (r = _o.measureText(t, e).width,
    n.put(t, r)),
    r
}
function aH(t, e, n, r) {
    var a = oi(t, e)
      , i = Jw(e)
      , o = qp(0, a, n)
      , l = Ud(0, i, r)
      , s = new Dt(o,l,a,i);
    return s
}
function Km(t, e, n, r) {
    var a = ((t || "") + "").split(`
`)
      , i = a.length;
    if (i === 1)
        return aH(a[0], e, n, r);
    for (var o = new Dt(0,0,0,0), l = 0; l < a.length; l++) {
        var s = aH(a[l], e, n, r);
        l === 0 ? o.copy(s) : o.union(s)
    }
    return o
}
function qp(t, e, n) {
    return n === "right" ? t -= e : n === "center" && (t -= e / 2),
    t
}
function Ud(t, e, n) {
    return n === "middle" ? t -= e / 2 : n === "bottom" && (t -= e),
    t
}
function Jw(t) {
    return oi("\u56FD", t)
}
function Po(t, e) {
    return typeof t == "string" ? t.lastIndexOf("%") >= 0 ? parseFloat(t) / 100 * e : parseFloat(t) : t
}
function MS(t, e, n) {
    var r = e.position || "inside"
      , a = e.distance != null ? e.distance : 5
      , i = n.height
      , o = n.width
      , l = i / 2
      , s = n.x
      , u = n.y
      , c = "left"
      , f = "top";
    if (r instanceof Array)
        s += Po(r[0], n.width),
        u += Po(r[1], n.height),
        c = null,
        f = null;
    else
        switch (r) {
        case "left":
            s -= a,
            u += l,
            c = "right",
            f = "middle";
            break;
        case "right":
            s += a + o,
            u += l,
            f = "middle";
            break;
        case "top":
            s += o / 2,
            u -= a,
            c = "center",
            f = "bottom";
            break;
        case "bottom":
            s += o / 2,
            u += i + a,
            c = "center";
            break;
        case "inside":
            s += o / 2,
            u += l,
            c = "center",
            f = "middle";
            break;
        case "insideLeft":
            s += a,
            u += l,
            f = "middle";
            break;
        case "insideRight":
            s += o - a,
            u += l,
            c = "right",
            f = "middle";
            break;
        case "insideTop":
            s += o / 2,
            u += a,
            c = "center";
            break;
        case "insideBottom":
            s += o / 2,
            u += i - a,
            c = "center",
            f = "bottom";
            break;
        case "insideTopLeft":
            s += a,
            u += a;
            break;
        case "insideTopRight":
            s += o - a,
            u += a,
            c = "right";
            break;
        case "insideBottomLeft":
            s += a,
            u += i - a,
            f = "bottom";
            break;
        case "insideBottomRight":
            s += o - a,
            u += i - a,
            c = "right",
            f = "bottom";
            break
        }
    return t = t || {},
    t.x = s,
    t.y = u,
    t.align = c,
    t.verticalAlign = f,
    t
}
var CP = "__zr_normal__"
  , wP = gl.concat(["ignore"])
  , nGe = Hi(gl, function(t, e) {
    return t[e] = !0,
    t
}, {
    ignore: !1
})
  , Sd = {}
  , rGe = new Dt(0,0,0,0)
  , D6 = function() {
    function t(e) {
        this.id = w6(),
        this.animators = [],
        this.currentStates = [],
        this.states = {},
        this._init(e)
    }
    return t.prototype._init = function(e) {
        this.attr(e)
    }
    ,
    t.prototype.drift = function(e, n, r) {
        switch (this.draggable) {
        case "horizontal":
            n = 0;
            break;
        case "vertical":
            e = 0;
            break
        }
        var a = this.transform;
        a || (a = this.transform = [1, 0, 0, 1, 0, 0]),
        a[4] += e,
        a[5] += n,
        this.decomposeTransform(),
        this.markRedraw()
    }
    ,
    t.prototype.beforeUpdate = function() {}
    ,
    t.prototype.afterUpdate = function() {}
    ,
    t.prototype.update = function() {
        this.updateTransform(),
        this.__dirty && this.updateInnerText()
    }
    ,
    t.prototype.updateInnerText = function(e) {
        var n = this._textContent;
        if (n && (!n.ignore || e)) {
            this.textConfig || (this.textConfig = {});
            var r = this.textConfig
              , a = r.local
              , i = n.innerTransformable
              , o = void 0
              , l = void 0
              , s = !1;
            i.parent = a ? this : null;
            var u = !1;
            if (i.copyTransform(n),
            r.position != null) {
                var c = rGe;
                r.layoutRect ? c.copy(r.layoutRect) : c.copy(this.getBoundingRect()),
                a || c.applyTransform(this.transform),
                this.calculateTextPosition ? this.calculateTextPosition(Sd, r, c) : MS(Sd, r, c),
                i.x = Sd.x,
                i.y = Sd.y,
                o = Sd.align,
                l = Sd.verticalAlign;
                var f = r.origin;
                if (f && r.rotation != null) {
                    var d = void 0
                      , v = void 0;
                    f === "center" ? (d = c.width * .5,
                    v = c.height * .5) : (d = Po(f[0], c.width),
                    v = Po(f[1], c.height)),
                    u = !0,
                    i.originX = -i.x + d + (a ? 0 : c.x),
                    i.originY = -i.y + v + (a ? 0 : c.y)
                }
            }
            r.rotation != null && (i.rotation = r.rotation);
            var h = r.offset;
            h && (i.x += h[0],
            i.y += h[1],
            u || (i.originX = -h[0],
            i.originY = -h[1]));
            var p = r.inside == null ? typeof r.position == "string" && r.position.indexOf("inside") >= 0 : r.inside
              , g = this._innerTextDefaultStyle || (this._innerTextDefaultStyle = {})
              , m = void 0
              , y = void 0
              , b = void 0;
            p && this.canBeInsideText() ? (m = r.insideFill,
            y = r.insideStroke,
            (m == null || m === "auto") && (m = this.getInsideTextFill()),
            (y == null || y === "auto") && (y = this.getInsideTextStroke(m),
            b = !0)) : (m = r.outsideFill,
            y = r.outsideStroke,
            (m == null || m === "auto") && (m = this.getOutsideFill()),
            (y == null || y === "auto") && (y = this.getOutsideStroke(m),
            b = !0)),
            m = m || "#000",
            (m !== g.fill || y !== g.stroke || b !== g.autoStroke || o !== g.align || l !== g.verticalAlign) && (s = !0,
            g.fill = m,
            g.stroke = y,
            g.autoStroke = b,
            g.align = o,
            g.verticalAlign = l,
            n.setDefaultTextStyle(g)),
            n.__dirty |= ei,
            s && n.dirtyStyle(!0)
        }
    }
    ,
    t.prototype.canBeInsideText = function() {
        return !0
    }
    ,
    t.prototype.getInsideTextFill = function() {
        return "#fff"
    }
    ,
    t.prototype.getInsideTextStroke = function(e) {
        return "#000"
    }
    ,
    t.prototype.getOutsideFill = function() {
        return this.__zr && this.__zr.isDarkMode() ? gI : pI
    }
    ,
    t.prototype.getOutsideStroke = function(e) {
        var n = this.__zr && this.__zr.getBackgroundColor()
          , r = typeof n == "string" && _a(n);
        r || (r = [255, 255, 255, 1]);
        for (var a = r[3], i = this.__zr.isDarkMode(), o = 0; o < 3; o++)
            r[o] = r[o] * a + (i ? 0 : 255) * (1 - a);
        return r[3] = 1,
        go(r, "rgba")
    }
    ,
    t.prototype.traverse = function(e, n) {}
    ,
    t.prototype.attrKV = function(e, n) {
        e === "textConfig" ? this.setTextConfig(n) : e === "textContent" ? this.setTextContent(n) : e === "clipPath" ? this.setClipPath(n) : e === "extra" ? (this.extra = this.extra || {},
        Me(this.extra, n)) : this[e] = n
    }
    ,
    t.prototype.hide = function() {
        this.ignore = !0,
        this.markRedraw()
    }
    ,
    t.prototype.show = function() {
        this.ignore = !1,
        this.markRedraw()
    }
    ,
    t.prototype.attr = function(e, n) {
        if (typeof e == "string")
            this.attrKV(e, n);
        else if (st(e))
            for (var r = e, a = Gt(r), i = 0; i < a.length; i++) {
                var o = a[i];
                this.attrKV(o, e[o])
            }
        return this.markRedraw(),
        this
    }
    ,
    t.prototype.saveCurrentToNormalState = function(e) {
        this._innerSaveToNormal(e);
        for (var n = this._normalState, r = 0; r < this.animators.length; r++) {
            var a = this.animators[r]
              , i = a.__fromStateTransition;
            if (!(a.getLoop() || i && i !== CP)) {
                var o = a.targetName
                  , l = o ? n[o] : n;
                a.saveTo(l)
            }
        }
    }
    ,
    t.prototype._innerSaveToNormal = function(e) {
        var n = this._normalState;
        n || (n = this._normalState = {}),
        e.textConfig && !n.textConfig && (n.textConfig = this.textConfig),
        this._savePrimaryToNormal(e, n, wP)
    }
    ,
    t.prototype._savePrimaryToNormal = function(e, n, r) {
        for (var a = 0; a < r.length; a++) {
            var i = r[a];
            e[i] != null && !(i in n) && (n[i] = this[i])
        }
    }
    ,
    t.prototype.hasState = function() {
        return this.currentStates.length > 0
    }
    ,
    t.prototype.getState = function(e) {
        return this.states[e]
    }
    ,
    t.prototype.ensureState = function(e) {
        var n = this.states;
        return n[e] || (n[e] = {}),
        n[e]
    }
    ,
    t.prototype.clearStates = function(e) {
        this.useState(CP, !1, e)
    }
    ,
    t.prototype.useState = function(e, n, r, a) {
        var i = e === CP
          , o = this.hasState();
        if (!(!o && i)) {
            var l = this.currentStates
              , s = this.stateTransition;
            if (!(Rt(l, e) >= 0 && (n || l.length === 1))) {
                var u;
                if (this.stateProxy && !i && (u = this.stateProxy(e)),
                u || (u = this.states && this.states[e]),
                !u && !i) {
                    Kw("State " + e + " not exists.");
                    return
                }
                i || this.saveCurrentToNormalState(u);
                var c = !!(u && u.hoverLayer || a);
                c && this._toggleHoverLayerFlag(!0),
                this._applyStateObj(e, u, this._normalState, n, !r && !this.__inHover && s && s.duration > 0, s);
                var f = this._textContent
                  , d = this._textGuide;
                return f && f.useState(e, n, r, c),
                d && d.useState(e, n, r, c),
                i ? (this.currentStates = [],
                this._normalState = {}) : n ? this.currentStates.push(e) : this.currentStates = [e],
                this._updateAnimationTargets(),
                this.markRedraw(),
                !c && this.__inHover && (this._toggleHoverLayerFlag(!1),
                this.__dirty &= ~ei),
                u
            }
        }
    }
    ,
    t.prototype.useStates = function(e, n, r) {
        if (!e.length)
            this.clearStates();
        else {
            var a = []
              , i = this.currentStates
              , o = e.length
              , l = o === i.length;
            if (l) {
                for (var s = 0; s < o; s++)
                    if (e[s] !== i[s]) {
                        l = !1;
                        break
                    }
            }
            if (l)
                return;
            for (var s = 0; s < o; s++) {
                var u = e[s]
                  , c = void 0;
                this.stateProxy && (c = this.stateProxy(u, e)),
                c || (c = this.states[u]),
                c && a.push(c)
            }
            var f = a[o - 1]
              , d = !!(f && f.hoverLayer || r);
            d && this._toggleHoverLayerFlag(!0);
            var v = this._mergeStates(a)
              , h = this.stateTransition;
            this.saveCurrentToNormalState(v),
            this._applyStateObj(e.join(","), v, this._normalState, !1, !n && !this.__inHover && h && h.duration > 0, h);
            var p = this._textContent
              , g = this._textGuide;
            p && p.useStates(e, n, d),
            g && g.useStates(e, n, d),
            this._updateAnimationTargets(),
            this.currentStates = e.slice(),
            this.markRedraw(),
            !d && this.__inHover && (this._toggleHoverLayerFlag(!1),
            this.__dirty &= ~ei)
        }
    }
    ,
    t.prototype._updateAnimationTargets = function() {
        for (var e = 0; e < this.animators.length; e++) {
            var n = this.animators[e];
            n.targetName && n.changeTarget(this[n.targetName])
        }
    }
    ,
    t.prototype.removeState = function(e) {
        var n = Rt(this.currentStates, e);
        if (n >= 0) {
            var r = this.currentStates.slice();
            r.splice(n, 1),
            this.useStates(r)
        }
    }
    ,
    t.prototype.replaceState = function(e, n, r) {
        var a = this.currentStates.slice()
          , i = Rt(a, e)
          , o = Rt(a, n) >= 0;
        i >= 0 ? o ? a.splice(i, 1) : a[i] = n : r && !o && a.push(n),
        this.useStates(a)
    }
    ,
    t.prototype.toggleState = function(e, n) {
        n ? this.useState(e, !0) : this.removeState(e)
    }
    ,
    t.prototype._mergeStates = function(e) {
        for (var n = {}, r, a = 0; a < e.length; a++) {
            var i = e[a];
            Me(n, i),
            i.textConfig && (r = r || {},
            Me(r, i.textConfig))
        }
        return r && (n.textConfig = r),
        n
    }
    ,
    t.prototype._applyStateObj = function(e, n, r, a, i, o) {
        var l = !(n && a);
        n && n.textConfig ? (this.textConfig = Me({}, a ? this.textConfig : r.textConfig),
        Me(this.textConfig, n.textConfig)) : l && r.textConfig && (this.textConfig = r.textConfig);
        for (var s = {}, u = !1, c = 0; c < wP.length; c++) {
            var f = wP[c]
              , d = i && nGe[f];
            n && n[f] != null ? d ? (u = !0,
            s[f] = n[f]) : this[f] = n[f] : l && r[f] != null && (d ? (u = !0,
            s[f] = r[f]) : this[f] = r[f])
        }
        if (!i)
            for (var c = 0; c < this.animators.length; c++) {
                var v = this.animators[c]
                  , h = v.targetName;
                v.getLoop() || v.__changeFinalValue(h ? (n || r)[h] : n || r)
            }
        u && this._transitionState(e, s, o)
    }
    ,
    t.prototype._attachComponent = function(e) {
        if (!(e.__zr && !e.__hostTarget) && e !== this) {
            var n = this.__zr;
            n && e.addSelfToZr(n),
            e.__zr = n,
            e.__hostTarget = this
        }
    }
    ,
    t.prototype._detachComponent = function(e) {
        e.__zr && e.removeSelfFromZr(e.__zr),
        e.__zr = null,
        e.__hostTarget = null
    }
    ,
    t.prototype.getClipPath = function() {
        return this._clipPath
    }
    ,
    t.prototype.setClipPath = function(e) {
        this._clipPath && this._clipPath !== e && this.removeClipPath(),
        this._attachComponent(e),
        this._clipPath = e,
        this.markRedraw()
    }
    ,
    t.prototype.removeClipPath = function() {
        var e = this._clipPath;
        e && (this._detachComponent(e),
        this._clipPath = null,
        this.markRedraw())
    }
    ,
    t.prototype.getTextContent = function() {
        return this._textContent
    }
    ,
    t.prototype.setTextContent = function(e) {
        var n = this._textContent;
        n !== e && (n && n !== e && this.removeTextContent(),
        e.innerTransformable = new es,
        this._attachComponent(e),
        this._textContent = e,
        this.markRedraw())
    }
    ,
    t.prototype.setTextConfig = function(e) {
        this.textConfig || (this.textConfig = {}),
        Me(this.textConfig, e),
        this.markRedraw()
    }
    ,
    t.prototype.removeTextConfig = function() {
        this.textConfig = null,
        this.markRedraw()
    }
    ,
    t.prototype.removeTextContent = function() {
        var e = this._textContent;
        e && (e.innerTransformable = null,
        this._detachComponent(e),
        this._textContent = null,
        this._innerTextDefaultStyle = null,
        this.markRedraw())
    }
    ,
    t.prototype.getTextGuideLine = function() {
        return this._textGuide
    }
    ,
    t.prototype.setTextGuideLine = function(e) {
        this._textGuide && this._textGuide !== e && this.removeTextGuideLine(),
        this._attachComponent(e),
        this._textGuide = e,
        this.markRedraw()
    }
    ,
    t.prototype.removeTextGuideLine = function() {
        var e = this._textGuide;
        e && (this._detachComponent(e),
        this._textGuide = null,
        this.markRedraw())
    }
    ,
    t.prototype.markRedraw = function() {
        this.__dirty |= ei;
        var e = this.__zr;
        e && (this.__inHover ? e.refreshHover() : e.refresh()),
        this.__hostTarget && this.__hostTarget.markRedraw()
    }
    ,
    t.prototype.dirty = function() {
        this.markRedraw()
    }
    ,
    t.prototype._toggleHoverLayerFlag = function(e) {
        this.__inHover = e;
        var n = this._textContent
          , r = this._textGuide;
        n && (n.__inHover = e),
        r && (r.__inHover = e)
    }
    ,
    t.prototype.addSelfToZr = function(e) {
        if (this.__zr !== e) {
            this.__zr = e;
            var n = this.animators;
            if (n)
                for (var r = 0; r < n.length; r++)
                    e.animation.addAnimator(n[r]);
            this._clipPath && this._clipPath.addSelfToZr(e),
            this._textContent && this._textContent.addSelfToZr(e),
            this._textGuide && this._textGuide.addSelfToZr(e)
        }
    }
    ,
    t.prototype.removeSelfFromZr = function(e) {
        if (!!this.__zr) {
            this.__zr = null;
            var n = this.animators;
            if (n)
                for (var r = 0; r < n.length; r++)
                    e.animation.removeAnimator(n[r]);
            this._clipPath && this._clipPath.removeSelfFromZr(e),
            this._textContent && this._textContent.removeSelfFromZr(e),
            this._textGuide && this._textGuide.removeSelfFromZr(e)
        }
    }
    ,
    t.prototype.animate = function(e, n, r) {
        var a = e ? this[e] : this
          , i = new O6(a,n,r);
        return e && (i.targetName = e),
        this.addAnimator(i, e),
        i
    }
    ,
    t.prototype.addAnimator = function(e, n) {
        var r = this.__zr
          , a = this;
        e.during(function() {
            a.updateDuringAnimation(n)
        }).done(function() {
            var i = a.animators
              , o = Rt(i, e);
            o >= 0 && i.splice(o, 1)
        }),
        this.animators.push(e),
        r && r.animation.addAnimator(e),
        r && r.wakeUp()
    }
    ,
    t.prototype.updateDuringAnimation = function(e) {
        this.markRedraw()
    }
    ,
    t.prototype.stopAnimation = function(e, n) {
        for (var r = this.animators, a = r.length, i = [], o = 0; o < a; o++) {
            var l = r[o];
            !e || e === l.scope ? l.stop(n) : i.push(l)
        }
        return this.animators = i,
        this
    }
    ,
    t.prototype.animateTo = function(e, n, r) {
        _P(this, e, n, r)
    }
    ,
    t.prototype.animateFrom = function(e, n, r) {
        _P(this, e, n, r, !0)
    }
    ,
    t.prototype._transitionState = function(e, n, r, a) {
        for (var i = _P(this, n, r, a), o = 0; o < i.length; o++)
            i[o].__fromStateTransition = e
    }
    ,
    t.prototype.getBoundingRect = function() {
        return null
    }
    ,
    t.prototype.getPaintRect = function() {
        return null
    }
    ,
    t.initDefaultProps = function() {
        var e = t.prototype;
        e.type = "element",
        e.name = "",
        e.ignore = e.silent = e.isGroup = e.draggable = e.dragging = e.ignoreClip = e.__inHover = !1,
        e.__dirty = ei;
        function n(r, a, i, o) {
            Object.defineProperty(e, r, {
                get: function() {
                    if (!this[a]) {
                        var s = this[a] = [];
                        l(this, s)
                    }
                    return this[a]
                },
                set: function(s) {
                    this[i] = s[0],
                    this[o] = s[1],
                    this[a] = s,
                    l(this, s)
                }
            });
            function l(s, u) {
                Object.defineProperty(u, 0, {
                    get: function() {
                        return s[i]
                    },
                    set: function(c) {
                        s[i] = c
                    }
                }),
                Object.defineProperty(u, 1, {
                    get: function() {
                        return s[o]
                    },
                    set: function(c) {
                        s[o] = c
                    }
                })
            }
        }
        Object.defineProperty && (n("position", "_legacyPos", "x", "y"),
        n("scale", "_legacyScale", "scaleX", "scaleY"),
        n("origin", "_legacyOrigin", "originX", "originY"))
    }(),
    t
}();
ir(D6, Wi);
ir(D6, es);
function _P(t, e, n, r, a) {
    n = n || {};
    var i = [];
    Qae(t, "", t, e, n, r, i, a);
    var o = i.length
      , l = !1
      , s = n.done
      , u = n.aborted
      , c = function() {
        l = !0,
        o--,
        o <= 0 && (l ? s && s() : u && u())
    }
      , f = function() {
        o--,
        o <= 0 && (l ? s && s() : u && u())
    };
    o || s && s(),
    i.length > 0 && n.during && i[0].during(function(h, p) {
        n.during(p)
    });
    for (var d = 0; d < i.length; d++) {
        var v = i[d];
        c && v.done(c),
        f && v.aborted(f),
        n.force && v.duration(n.duration),
        v.start(n.easing)
    }
    return i
}
function TP(t, e, n) {
    for (var r = 0; r < n; r++)
        t[r] = e[r]
}
function aGe(t) {
    return Qr(t[0])
}
function iGe(t, e, n) {
    if (Qr(e[n]))
        if (Qr(t[n]) || (t[n] = []),
        ja(e[n])) {
            var r = e[n].length;
            t[n].length !== r && (t[n] = new e[n].constructor(r),
            TP(t[n], e[n], r))
        } else {
            var a = e[n]
              , i = t[n]
              , o = a.length;
            if (aGe(a))
                for (var l = a[0].length, s = 0; s < o; s++)
                    i[s] ? TP(i[s], a[s], l) : i[s] = Array.prototype.slice.call(a[s]);
            else
                TP(i, a, o);
            i.length = a.length
        }
    else
        t[n] = e[n]
}
function oGe(t, e) {
    return t === e || Qr(t) && Qr(e) && lGe(t, e)
}
function lGe(t, e) {
    var n = t.length;
    if (n !== e.length)
        return !1;
    for (var r = 0; r < n; r++)
        if (t[r] !== e[r])
            return !1;
    return !0
}
function Qae(t, e, n, r, a, i, o, l) {
    for (var s = Gt(r), u = a.duration, c = a.delay, f = a.additive, d = a.setToFinal, v = !st(i), h = t.animators, p = [], g = 0; g < s.length; g++) {
        var m = s[g]
          , y = r[m];
        if (y != null && n[m] != null && (v || i[m]))
            if (st(y) && !Qr(y) && !Hm(y)) {
                if (e) {
                    l || (n[m] = y,
                    t.updateDuringAnimation(e));
                    continue
                }
                Qae(t, m, n[m], y, a, i && i[m], o, l)
            } else
                p.push(m);
        else
            l || (n[m] = y,
            t.updateDuringAnimation(e),
            p.push(m))
    }
    var b = p.length;
    if (!f && b)
        for (var x = 0; x < h.length; x++) {
            var C = h[x];
            if (C.targetName === e) {
                var S = C.stopTracks(p);
                if (S) {
                    var w = Rt(h, C);
                    h.splice(w, 1)
                }
            }
        }
    if (a.force || (p = pn(p, function(A) {
        return !oGe(r[A], n[A])
    }),
    b = p.length),
    b > 0 || a.force && !o.length) {
        var T = void 0
          , P = void 0
          , M = void 0;
        if (l) {
            P = {},
            d && (T = {});
            for (var x = 0; x < b; x++) {
                var m = p[x];
                P[m] = n[m],
                d ? T[m] = r[m] : n[m] = r[m]
            }
        } else if (d) {
            M = {};
            for (var x = 0; x < b; x++) {
                var m = p[x];
                M[m] = Ng(n[m]),
                iGe(n, r, m)
            }
        }
        var C = new O6(n,!1,!1,f ? pn(h, function(O) {
            return O.targetName === e
        }) : null);
        C.targetName = e,
        a.scope && (C.scope = a.scope),
        d && T && C.whenWithKeys(0, T, p),
        M && C.whenWithKeys(0, M, p),
        C.whenWithKeys(u == null ? 500 : u, l ? P : r, p).delay(c || 0),
        t.addAnimator(C, e),
        o.push(C)
    }
}
const Jae = D6;
var eie = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this) || this;
        return r.isGroup = !0,
        r._children = [],
        r.attr(n),
        r
    }
    return e.prototype.childrenRef = function() {
        return this._children
    }
    ,
    e.prototype.children = function() {
        return this._children.slice()
    }
    ,
    e.prototype.childAt = function(n) {
        return this._children[n]
    }
    ,
    e.prototype.childOfName = function(n) {
        for (var r = this._children, a = 0; a < r.length; a++)
            if (r[a].name === n)
                return r[a]
    }
    ,
    e.prototype.childCount = function() {
        return this._children.length
    }
    ,
    e.prototype.add = function(n) {
        return n && n !== this && n.parent !== this && (this._children.push(n),
        this._doAdd(n)),
        this
    }
    ,
    e.prototype.addBefore = function(n, r) {
        if (n && n !== this && n.parent !== this && r && r.parent === this) {
            var a = this._children
              , i = a.indexOf(r);
            i >= 0 && (a.splice(i, 0, n),
            this._doAdd(n))
        }
        return this
    }
    ,
    e.prototype.replace = function(n, r) {
        var a = Rt(this._children, n);
        return a >= 0 && this.replaceAt(r, a),
        this
    }
    ,
    e.prototype.replaceAt = function(n, r) {
        var a = this._children
          , i = a[r];
        if (n && n !== this && n.parent !== this && n !== i) {
            a[r] = n,
            i.parent = null;
            var o = this.__zr;
            o && i.removeSelfFromZr(o),
            this._doAdd(n)
        }
        return this
    }
    ,
    e.prototype._doAdd = function(n) {
        n.parent && n.parent.remove(n),
        n.parent = this;
        var r = this.__zr;
        r && r !== n.__zr && n.addSelfToZr(r),
        r && r.refresh()
    }
    ,
    e.prototype.remove = function(n) {
        var r = this.__zr
          , a = this._children
          , i = Rt(a, n);
        return i < 0 ? this : (a.splice(i, 1),
        n.parent = null,
        r && n.removeSelfFromZr(r),
        r && r.refresh(),
        this)
    }
    ,
    e.prototype.removeAll = function() {
        for (var n = this._children, r = this.__zr, a = 0; a < n.length; a++) {
            var i = n[a];
            r && i.removeSelfFromZr(r),
            i.parent = null
        }
        return n.length = 0,
        this
    }
    ,
    e.prototype.eachChild = function(n, r) {
        for (var a = this._children, i = 0; i < a.length; i++) {
            var o = a[i];
            n.call(r, o, i)
        }
        return this
    }
    ,
    e.prototype.traverse = function(n, r) {
        for (var a = 0; a < this._children.length; a++) {
            var i = this._children[a]
              , o = n.call(r, i);
            i.isGroup && !o && i.traverse(n, r)
        }
        return this
    }
    ,
    e.prototype.addSelfToZr = function(n) {
        t.prototype.addSelfToZr.call(this, n);
        for (var r = 0; r < this._children.length; r++) {
            var a = this._children[r];
            a.addSelfToZr(n)
        }
    }
    ,
    e.prototype.removeSelfFromZr = function(n) {
        t.prototype.removeSelfFromZr.call(this, n);
        for (var r = 0; r < this._children.length; r++) {
            var a = this._children[r];
            a.removeSelfFromZr(n)
        }
    }
    ,
    e.prototype.getBoundingRect = function(n) {
        for (var r = new Dt(0,0,0,0), a = n || this._children, i = [], o = null, l = 0; l < a.length; l++) {
            var s = a[l];
            if (!(s.ignore || s.invisible)) {
                var u = s.getBoundingRect()
                  , c = s.getLocalTransform(i);
                c ? (Dt.applyTransform(r, u, c),
                o = o || r.clone(),
                o.union(r)) : (o = o || u.clone(),
                o.union(u))
            }
        }
        return o || r
    }
    ,
    e
}(Jae);
eie.prototype.type = "group";
const mt = eie;
/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/
var ax = {}
  , tf = {};
function sGe(t) {
    delete tf[t]
}
function uGe(t) {
    if (!t)
        return !1;
    if (typeof t == "string")
        return R0(t, 1) < hI;
    if (t.colorStops) {
        for (var e = t.colorStops, n = 0, r = e.length, a = 0; a < r; a++)
            n += R0(e[a].color, 1);
        return n /= r,
        n < hI
    }
    return !1
}
var cGe = function() {
    function t(e, n, r) {
        var a = this;
        this._sleepAfterStill = 10,
        this._stillFrameAccum = 0,
        this._needsRefresh = !0,
        this._needsRefreshHover = !0,
        this._darkMode = !1,
        r = r || {},
        this.dom = n,
        this.id = e;
        var i = new gWe
          , o = r.renderer || "canvas";
        ax[o] || (o = Gt(ax)[0]),
        r.useDirtyRect = r.useDirtyRect == null ? !1 : r.useDirtyRect;
        var l = new ax[o](n,i,r,e)
          , s = r.ssr || l.ssrOnly;
        this.storage = i,
        this.painter = l;
        var u = !nn.node && !nn.worker && !s ? new eGe(l.getViewportRoot(),l.root) : null, c = r.useCoarsePointer, f = c == null || c === "auto" ? nn.touchEventsSupported : !!c, d = 44, v;
        f && (v = Ot(r.pointerSize, d)),
        this.handler = new fWe(i,l,u,l.root,v),
        this.animation = new KWe({
            stage: {
                update: s ? null : function() {
                    return a._flush(!0)
                }
            }
        }),
        s || this.animation.start()
    }
    return t.prototype.add = function(e) {
        !e || (this.storage.addRoot(e),
        e.addSelfToZr(this),
        this.refresh())
    }
    ,
    t.prototype.remove = function(e) {
        !e || (this.storage.delRoot(e),
        e.removeSelfFromZr(this),
        this.refresh())
    }
    ,
    t.prototype.configLayer = function(e, n) {
        this.painter.configLayer && this.painter.configLayer(e, n),
        this.refresh()
    }
    ,
    t.prototype.setBackgroundColor = function(e) {
        this.painter.setBackgroundColor && this.painter.setBackgroundColor(e),
        this.refresh(),
        this._backgroundColor = e,
        this._darkMode = uGe(e)
    }
    ,
    t.prototype.getBackgroundColor = function() {
        return this._backgroundColor
    }
    ,
    t.prototype.setDarkMode = function(e) {
        this._darkMode = e
    }
    ,
    t.prototype.isDarkMode = function() {
        return this._darkMode
    }
    ,
    t.prototype.refreshImmediately = function(e) {
        e || this.animation.update(!0),
        this._needsRefresh = !1,
        this.painter.refresh(),
        this._needsRefresh = !1
    }
    ,
    t.prototype.refresh = function() {
        this._needsRefresh = !0,
        this.animation.start()
    }
    ,
    t.prototype.flush = function() {
        this._flush(!1)
    }
    ,
    t.prototype._flush = function(e) {
        var n, r = nv();
        this._needsRefresh && (n = !0,
        this.refreshImmediately(e)),
        this._needsRefreshHover && (n = !0,
        this.refreshHoverImmediately());
        var a = nv();
        n ? (this._stillFrameAccum = 0,
        this.trigger("rendered", {
            elapsedTime: a - r
        })) : this._sleepAfterStill > 0 && (this._stillFrameAccum++,
        this._stillFrameAccum > this._sleepAfterStill && this.animation.stop())
    }
    ,
    t.prototype.setSleepAfterStill = function(e) {
        this._sleepAfterStill = e
    }
    ,
    t.prototype.wakeUp = function() {
        this.animation.start(),
        this._stillFrameAccum = 0
    }
    ,
    t.prototype.refreshHover = function() {
        this._needsRefreshHover = !0
    }
    ,
    t.prototype.refreshHoverImmediately = function() {
        this._needsRefreshHover = !1,
        this.painter.refreshHover && this.painter.getType() === "canvas" && this.painter.refreshHover()
    }
    ,
    t.prototype.resize = function(e) {
        e = e || {},
        this.painter.resize(e.width, e.height),
        this.handler.resize()
    }
    ,
    t.prototype.clearAnimation = function() {
        this.animation.clear()
    }
    ,
    t.prototype.getWidth = function() {
        return this.painter.getWidth()
    }
    ,
    t.prototype.getHeight = function() {
        return this.painter.getHeight()
    }
    ,
    t.prototype.setCursorStyle = function(e) {
        this.handler.setCursorStyle(e)
    }
    ,
    t.prototype.findHover = function(e, n) {
        return this.handler.findHover(e, n)
    }
    ,
    t.prototype.on = function(e, n, r) {
        return this.handler.on(e, n, r),
        this
    }
    ,
    t.prototype.off = function(e, n) {
        this.handler.off(e, n)
    }
    ,
    t.prototype.trigger = function(e, n) {
        this.handler.trigger(e, n)
    }
    ,
    t.prototype.clear = function() {
        for (var e = this.storage.getRoots(), n = 0; n < e.length; n++)
            e[n]instanceof mt && e[n].removeSelfFromZr(this);
        this.storage.delAllRoots(),
        this.painter.clear()
    }
    ,
    t.prototype.dispose = function() {
        this.animation.stop(),
        this.clear(),
        this.storage.dispose(),
        this.painter.dispose(),
        this.handler.dispose(),
        this.animation = this.storage = this.painter = this.handler = null,
        sGe(this.id)
    }
    ,
    t
}();
function mI(t, e) {
    var n = new cGe(w6(),t,e);
    return tf[n.id] = n,
    n
}
function fGe(t) {
    t.dispose()
}
function dGe() {
    for (var t in tf)
        tf.hasOwnProperty(t) && tf[t].dispose();
    tf = {}
}
function vGe(t) {
    return tf[t]
}
function tie(t, e) {
    ax[t] = e
}
var hGe = "5.4.4";
const pGe = Object.freeze(Object.defineProperty({
    __proto__: null,
    init: mI,
    dispose: fGe,
    disposeAll: dGe,
    getInstance: vGe,
    registerPainter: tie,
    version: hGe
}, Symbol.toStringTag, {
    value: "Module"
}));
var iH = 1e-4
  , nie = 20;
function gGe(t) {
    return t.replace(/^\s+|\s+$/g, "")
}
function vn(t, e, n, r) {
    var a = e[0]
      , i = e[1]
      , o = n[0]
      , l = n[1]
      , s = i - a
      , u = l - o;
    if (s === 0)
        return u === 0 ? o : (o + l) / 2;
    if (r)
        if (s > 0) {
            if (t <= a)
                return o;
            if (t >= i)
                return l
        } else {
            if (t >= a)
                return o;
            if (t <= i)
                return l
        }
    else {
        if (t === a)
            return o;
        if (t === i)
            return l
    }
    return (t - a) / s * u + o
}
function He(t, e) {
    switch (t) {
    case "center":
    case "middle":
        t = "50%";
        break;
    case "left":
    case "top":
        t = "0%";
        break;
    case "right":
    case "bottom":
        t = "100%";
        break
    }
    return Ge(t) ? gGe(t).match(/%$/) ? parseFloat(t) / 100 * e : parseFloat(t) : t == null ? NaN : +t
}
function Zn(t, e, n) {
    return e == null && (e = 10),
    e = Math.min(Math.max(0, e), nie),
    t = (+t).toFixed(e),
    n ? t : +t
}
function ri(t) {
    return t.sort(function(e, n) {
        return e - n
    }),
    t
}
function so(t) {
    if (t = +t,
    isNaN(t))
        return 0;
    if (t > 1e-14) {
        for (var e = 1, n = 0; n < 15; n++,
        e *= 10)
            if (Math.round(t * e) / e === t)
                return n
    }
    return rie(t)
}
function rie(t) {
    var e = t.toString().toLowerCase()
      , n = e.indexOf("e")
      , r = n > 0 ? +e.slice(n + 1) : 0
      , a = n > 0 ? n : e.length
      , i = e.indexOf(".")
      , o = i < 0 ? 0 : a - 1 - i;
    return Math.max(0, o - r)
}
function E6(t, e) {
    var n = Math.log
      , r = Math.LN10
      , a = Math.floor(n(t[1] - t[0]) / r)
      , i = Math.round(n(Math.abs(e[1] - e[0])) / r)
      , o = Math.min(Math.max(-a + i, 0), 20);
    return isFinite(o) ? o : 20
}
function mGe(t, e, n) {
    if (!t[e])
        return 0;
    var r = aie(t, n);
    return r[e] || 0
}
function aie(t, e) {
    var n = Hi(t, function(v, h) {
        return v + (isNaN(h) ? 0 : h)
    }, 0);
    if (n === 0)
        return [];
    for (var r = Math.pow(10, e), a = Le(t, function(v) {
        return (isNaN(v) ? 0 : v) / n * r * 100
    }), i = r * 100, o = Le(a, function(v) {
        return Math.floor(v)
    }), l = Hi(o, function(v, h) {
        return v + h
    }, 0), s = Le(a, function(v, h) {
        return v - o[h]
    }); l < i; ) {
        for (var u = Number.NEGATIVE_INFINITY, c = null, f = 0, d = s.length; f < d; ++f)
            s[f] > u && (u = s[f],
            c = f);
        ++o[c],
        s[c] = 0,
        ++l
    }
    return Le(o, function(v) {
        return v / r
    })
}
function yGe(t, e) {
    var n = Math.max(so(t), so(e))
      , r = t + e;
    return n > nie ? r : Zn(r, n)
}
var yI = 9007199254740991;
function L6(t) {
    var e = Math.PI * 2;
    return (t % e + e) % e
}
function $0(t) {
    return t > -iH && t < iH
}
var bGe = /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;
function ui(t) {
    if (t instanceof Date)
        return t;
    if (Ge(t)) {
        var e = bGe.exec(t);
        if (!e)
            return new Date(NaN);
        if (e[8]) {
            var n = +e[4] || 0;
            return e[8].toUpperCase() !== "Z" && (n -= +e[8].slice(0, 3)),
            new Date(Date.UTC(+e[1], +(e[2] || 1) - 1, +e[3] || 1, n, +(e[5] || 0), +e[6] || 0, e[7] ? +e[7].substring(0, 3) : 0))
        } else
            return new Date(+e[1],+(e[2] || 1) - 1,+e[3] || 1,+e[4] || 0,+(e[5] || 0),+e[6] || 0,e[7] ? +e[7].substring(0, 3) : 0)
    } else if (t == null)
        return new Date(NaN);
    return new Date(Math.round(t))
}
function iie(t) {
    return Math.pow(10, e2(t))
}
function e2(t) {
    if (t === 0)
        return 0;
    var e = Math.floor(Math.log(t) / Math.LN10);
    return t / Math.pow(10, e) >= 10 && e++,
    e
}
function R6(t, e) {
    var n = e2(t), r = Math.pow(10, n), a = t / r, i;
    return e ? a < 1.5 ? i = 1 : a < 2.5 ? i = 2 : a < 4 ? i = 3 : a < 7 ? i = 5 : i = 10 : a < 1 ? i = 1 : a < 2 ? i = 2 : a < 3 ? i = 3 : a < 5 ? i = 5 : i = 10,
    t = i * r,
    n >= -20 ? +t.toFixed(n < 0 ? -n : 0) : t
}
function ix(t, e) {
    var n = (t.length - 1) * e + 1
      , r = Math.floor(n)
      , a = +t[r - 1]
      , i = n - r;
    return i ? a + i * (t[r] - a) : a
}
function bI(t) {
    t.sort(function(s, u) {
        return l(s, u, 0) ? -1 : 1
    });
    for (var e = -1 / 0, n = 1, r = 0; r < t.length; ) {
        for (var a = t[r].interval, i = t[r].close, o = 0; o < 2; o++)
            a[o] <= e && (a[o] = e,
            i[o] = o ? 1 : 1 - n),
            e = a[o],
            n = i[o];
        a[0] === a[1] && i[0] * i[1] !== 1 ? t.splice(r, 1) : r++
    }
    return t;
    function l(s, u, c) {
        return s.interval[c] < u.interval[c] || s.interval[c] === u.interval[c] && (s.close[c] - u.close[c] === (c ? -1 : 1) || !c && l(s, u, 1))
    }
}
function ml(t) {
    var e = parseFloat(t);
    return e == t && (e !== 0 || !Ge(t) || t.indexOf("x") <= 0) ? e : NaN
}
function N6(t) {
    return !isNaN(ml(t))
}
function oie() {
    return Math.round(Math.random() * 9)
}
function lie(t, e) {
    return e === 0 ? t : lie(e, t % e)
}
function oH(t, e) {
    return t == null ? e : e == null ? t : t * e / lie(t, e)
}
function cn(t) {
    throw new Error(t)
}
function lH(t, e, n) {
    return (e - t) * n + t
}
var sie = "series\0"
  , uie = "\0_ec_\0";
function _n(t) {
    return t instanceof Array ? t : t == null ? [] : [t]
}
function Nf(t, e, n) {
    if (t) {
        t[e] = t[e] || {},
        t.emphasis = t.emphasis || {},
        t.emphasis[e] = t.emphasis[e] || {};
        for (var r = 0, a = n.length; r < a; r++) {
            var i = n[r];
            !t.emphasis[e].hasOwnProperty(i) && t[e].hasOwnProperty(i) && (t.emphasis[e][i] = t[e][i])
        }
    }
}
var sH = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "rich", "tag", "color", "textBorderColor", "textBorderWidth", "width", "height", "lineHeight", "align", "verticalAlign", "baseline", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY", "textShadowColor", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY", "backgroundColor", "borderColor", "borderWidth", "borderRadius", "padding"];
function Th(t) {
    return st(t) && !ke(t) && !(t instanceof Date) ? t.value : t
}
function xGe(t) {
    return st(t) && !(t instanceof Array)
}
function cie(t, e, n) {
    var r = n === "normalMerge"
      , a = n === "replaceMerge"
      , i = n === "replaceAll";
    t = t || [],
    e = (e || []).slice();
    var o = Qe();
    Z(e, function(s, u) {
        if (!st(s)) {
            e[u] = null;
            return
        }
    });
    var l = SGe(t, o, n);
    return (r || a) && CGe(l, t, o, e),
    r && wGe(l, e),
    r || a ? _Ge(l, e, a) : i && TGe(l, e),
    PGe(l),
    l
}
function SGe(t, e, n) {
    var r = [];
    if (n === "replaceAll")
        return r;
    for (var a = 0; a < t.length; a++) {
        var i = t[a];
        i && i.id != null && e.set(i.id, a),
        r.push({
            existing: n === "replaceMerge" || F0(i) ? null : i,
            newOption: null,
            keyInfo: null,
            brandNew: null
        })
    }
    return r
}
function CGe(t, e, n, r) {
    Z(r, function(a, i) {
        if (!(!a || a.id == null)) {
            var o = $g(a.id)
              , l = n.get(o);
            if (l != null) {
                var s = t[l];
                la(!s.newOption, 'Duplicated option on id "' + o + '".'),
                s.newOption = a,
                s.existing = e[l],
                r[i] = null
            }
        }
    })
}
function wGe(t, e) {
    Z(e, function(n, r) {
        if (!(!n || n.name == null))
            for (var a = 0; a < t.length; a++) {
                var i = t[a].existing;
                if (!t[a].newOption && i && (i.id == null || n.id == null) && !F0(n) && !F0(i) && fie("name", i, n)) {
                    t[a].newOption = n,
                    e[r] = null;
                    return
                }
            }
    })
}
function _Ge(t, e, n) {
    Z(e, function(r) {
        if (!!r) {
            for (var a, i = 0; (a = t[i]) && (a.newOption || F0(a.existing) || a.existing && r.id != null && !fie("id", r, a.existing)); )
                i++;
            a ? (a.newOption = r,
            a.brandNew = n) : t.push({
                newOption: r,
                brandNew: n,
                existing: null,
                keyInfo: null
            }),
            i++
        }
    })
}
function TGe(t, e) {
    Z(e, function(n) {
        t.push({
            newOption: n,
            brandNew: !0,
            existing: null,
            keyInfo: null
        })
    })
}
function PGe(t) {
    var e = Qe();
    Z(t, function(n) {
        var r = n.existing;
        r && e.set(r.id, n)
    }),
    Z(t, function(n) {
        var r = n.newOption;
        la(!r || r.id == null || !e.get(r.id) || e.get(r.id) === n, "id duplicates: " + (r && r.id)),
        r && r.id != null && e.set(r.id, n),
        !n.keyInfo && (n.keyInfo = {})
    }),
    Z(t, function(n, r) {
        var a = n.existing
          , i = n.newOption
          , o = n.keyInfo;
        if (!!st(i)) {
            if (o.name = i.name != null ? $g(i.name) : a ? a.name : sie + r,
            a)
                o.id = $g(a.id);
            else if (i.id != null)
                o.id = $g(i.id);
            else {
                var l = 0;
                do
                    o.id = "\0" + o.name + "\0" + l++;
                while (e.get(o.id))
            }
            e.set(o.id, n)
        }
    })
}
function fie(t, e, n) {
    var r = _r(e[t], null)
      , a = _r(n[t], null);
    return r != null && a != null && r === a
}
function $g(t) {
    return _r(t, "")
}
function _r(t, e) {
    return t == null ? e : Ge(t) ? t : rn(t) || bS(t) ? t + "" : e
}
function $6(t) {
    var e = t.name;
    return !!(e && e.indexOf(sie))
}
function F0(t) {
    return t && t.id != null && $g(t.id).indexOf(uie) === 0
}
function MGe(t) {
    return uie + t
}
function AGe(t, e, n) {
    Z(t, function(r) {
        var a = r.newOption;
        st(a) && (r.keyInfo.mainType = e,
        r.keyInfo.subType = IGe(e, a, r.existing, n))
    })
}
function IGe(t, e, n, r) {
    var a = e.type ? e.type : n ? n.subType : r.determineSubType(t, e);
    return a
}
function kGe(t, e) {
    var n = {}
      , r = {};
    return a(t || [], n),
    a(e || [], r, n),
    [i(n), i(r)];
    function a(o, l, s) {
        for (var u = 0, c = o.length; u < c; u++) {
            var f = _r(o[u].seriesId, null);
            if (f == null)
                return;
            for (var d = _n(o[u].dataIndex), v = s && s[f], h = 0, p = d.length; h < p; h++) {
                var g = d[h];
                v && v[g] ? v[g] = null : (l[f] || (l[f] = {}))[g] = 1
            }
        }
    }
    function i(o, l) {
        var s = [];
        for (var u in o)
            if (o.hasOwnProperty(u) && o[u] != null)
                if (l)
                    s.push(+u);
                else {
                    var c = i(o[u], !0);
                    c.length && s.push({
                        seriesId: u,
                        dataIndex: c
                    })
                }
        return s
    }
}
function $f(t, e) {
    if (e.dataIndexInside != null)
        return e.dataIndexInside;
    if (e.dataIndex != null)
        return ke(e.dataIndex) ? Le(e.dataIndex, function(n) {
            return t.indexOfRawIndex(n)
        }) : t.indexOfRawIndex(e.dataIndex);
    if (e.name != null)
        return ke(e.name) ? Le(e.name, function(n) {
            return t.indexOfName(n)
        }) : t.indexOfName(e.name)
}
function an() {
    var t = "__ec_inner_" + OGe++;
    return function(e) {
        return e[t] || (e[t] = {})
    }
}
var OGe = oie();
function Fg(t, e, n) {
    var r = F6(e, n)
      , a = r.mainTypeSpecified
      , i = r.queryOptionMap
      , o = r.others
      , l = o
      , s = n ? n.defaultMainType : null;
    return !a && s && i.set(s, {}),
    i.each(function(u, c) {
        var f = Um(t, c, u, {
            useDefault: s === c,
            enableAll: n && n.enableAll != null ? n.enableAll : !0,
            enableNone: n && n.enableNone != null ? n.enableNone : !0
        });
        l[c + "Models"] = f.models,
        l[c + "Model"] = f.models[0]
    }),
    l
}
function F6(t, e) {
    var n;
    if (Ge(t)) {
        var r = {};
        r[t + "Index"] = 0,
        n = r
    } else
        n = t;
    var a = Qe()
      , i = {}
      , o = !1;
    return Z(n, function(l, s) {
        if (s === "dataIndex" || s === "dataIndexInside") {
            i[s] = l;
            return
        }
        var u = s.match(/^(\w+)(Index|Id|Name)$/) || []
          , c = u[1]
          , f = (u[2] || "").toLowerCase();
        if (!(!c || !f || e && e.includeMainTypes && Rt(e.includeMainTypes, c) < 0)) {
            o = o || !!c;
            var d = a.get(c) || a.set(c, {});
            d[f] = l
        }
    }),
    {
        mainTypeSpecified: o,
        queryOptionMap: a,
        others: i
    }
}
var mr = {
    useDefault: !0,
    enableAll: !1,
    enableNone: !1
}
  , DGe = {
    useDefault: !1,
    enableAll: !0,
    enableNone: !0
};
function Um(t, e, n, r) {
    r = r || mr;
    var a = n.index
      , i = n.id
      , o = n.name
      , l = {
        models: null,
        specified: a != null || i != null || o != null
    };
    if (!l.specified) {
        var s = void 0;
        return l.models = r.useDefault && (s = t.getComponent(e)) ? [s] : [],
        l
    }
    return a === "none" || a === !1 ? (la(r.enableNone, '`"none"` or `false` is not a valid value on index option.'),
    l.models = [],
    l) : (a === "all" && (la(r.enableAll, '`"all"` is not a valid value on index option.'),
    a = i = o = null),
    l.models = t.queryComponents({
        mainType: e,
        index: a,
        id: i,
        name: o
    }),
    l)
}
function die(t, e, n) {
    t.setAttribute ? t.setAttribute(e, n) : t[e] = n
}
function EGe(t, e) {
    return t.getAttribute ? t.getAttribute(e) : t[e]
}
function LGe(t) {
    return t === "auto" ? nn.domSupported ? "html" : "richText" : t || "html"
}
function xI(t, e) {
    var n = Qe()
      , r = [];
    return Z(t, function(a) {
        var i = e(a);
        (n.get(i) || (r.push(i),
        n.set(i, []))).push(a)
    }),
    {
        keys: r,
        buckets: n
    }
}
function vie(t, e, n, r, a) {
    var i = e == null || e === "auto";
    if (r == null)
        return r;
    if (rn(r)) {
        var o = lH(n || 0, r, a);
        return Zn(o, i ? Math.max(so(n || 0), so(r)) : e)
    } else {
        if (Ge(r))
            return a < 1 ? n : r;
        for (var l = [], s = n, u = r, c = Math.max(s ? s.length : 0, u.length), f = 0; f < c; ++f) {
            var d = t.getDimensionInfo(f);
            if (d && d.type === "ordinal")
                l[f] = (a < 1 && s ? s : u)[f];
            else {
                var v = s && s[f] ? s[f] : 0
                  , h = u[f]
                  , o = lH(v, h, a);
                l[f] = Zn(o, i ? Math.max(so(v), so(h)) : e)
            }
        }
        return l
    }
}
var RGe = "."
  , dc = "___EC__COMPONENT__CONTAINER___"
  , hie = "___EC__EXTENDED_CLASS___";
function al(t) {
    var e = {
        main: "",
        sub: ""
    };
    if (t) {
        var n = t.split(RGe);
        e.main = n[0] || "",
        e.sub = n[1] || ""
    }
    return e
}
function NGe(t) {
    la(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t), 'componentType "' + t + '" illegal')
}
function $Ge(t) {
    return !!(t && t[hie])
}
function B6(t, e) {
    t.$constructor = t,
    t.extend = function(n) {
        var r = this, a;
        return FGe(r) ? a = function(i) {
            ge(o, i);
            function o() {
                return i.apply(this, arguments) || this
            }
            return o
        }(r) : (a = function() {
            (n.$constructor || r).apply(this, arguments)
        }
        ,
        _6(a, this)),
        Me(a.prototype, n),
        a[hie] = !0,
        a.extend = this.extend,
        a.superCall = zGe,
        a.superApply = HGe,
        a.superClass = r,
        a
    }
}
function FGe(t) {
    return et(t) && /^class\s/.test(Function.prototype.toString.call(t))
}
function pie(t, e) {
    t.extend = e.extend
}
var BGe = Math.round(Math.random() * 10);
function VGe(t) {
    var e = ["__\0is_clz", BGe++].join("_");
    t.prototype[e] = !0,
    t.isInstance = function(n) {
        return !!(n && n[e])
    }
}
function zGe(t, e) {
    for (var n = [], r = 2; r < arguments.length; r++)
        n[r - 2] = arguments[r];
    return this.superClass.prototype[e].apply(t, n)
}
function HGe(t, e, n) {
    return this.superClass.prototype[e].apply(t, n)
}
function t2(t) {
    var e = {};
    t.registerClass = function(r) {
        var a = r.type || r.prototype.type;
        if (a) {
            NGe(a),
            r.prototype.type = a;
            var i = al(a);
            if (!i.sub)
                e[i.main] = r;
            else if (i.sub !== dc) {
                var o = n(i);
                o[i.sub] = r
            }
        }
        return r
    }
    ,
    t.getClass = function(r, a, i) {
        var o = e[r];
        if (o && o[dc] && (o = a ? o[a] : null),
        i && !o)
            throw new Error(a ? "Component " + r + "." + (a || "") + " is used but not imported." : r + ".type should be specified.");
        return o
    }
    ,
    t.getClassesByMainType = function(r) {
        var a = al(r)
          , i = []
          , o = e[a.main];
        return o && o[dc] ? Z(o, function(l, s) {
            s !== dc && i.push(l)
        }) : i.push(o),
        i
    }
    ,
    t.hasClass = function(r) {
        var a = al(r);
        return !!e[a.main]
    }
    ,
    t.getAllClassMainTypes = function() {
        var r = [];
        return Z(e, function(a, i) {
            r.push(i)
        }),
        r
    }
    ,
    t.hasSubTypes = function(r) {
        var a = al(r)
          , i = e[a.main];
        return i && i[dc]
    }
    ;
    function n(r) {
        var a = e[r.main];
        return (!a || !a[dc]) && (a = e[r.main] = {},
        a[dc] = !0),
        a
    }
}
function Ff(t, e) {
    for (var n = 0; n < t.length; n++)
        t[n][1] || (t[n][1] = t[n][0]);
    return e = e || !1,
    function(r, a, i) {
        for (var o = {}, l = 0; l < t.length; l++) {
            var s = t[l][1];
            if (!(a && Rt(a, s) >= 0 || i && Rt(i, s) < 0)) {
                var u = r.getShallow(s, e);
                u != null && (o[t[l][0]] = u)
            }
        }
        return o
    }
}
var jGe = [["fill", "color"], ["shadowBlur"], ["shadowOffsetX"], ["shadowOffsetY"], ["opacity"], ["shadowColor"]]
  , WGe = Ff(jGe)
  , GGe = function() {
    function t() {}
    return t.prototype.getAreaStyle = function(e, n) {
        return WGe(this, e, n)
    }
    ,
    t
}()
  , SI = new Gm(50);
function KGe(t) {
    if (typeof t == "string") {
        var e = SI.get(t);
        return e && e.image
    } else
        return t
}
function V6(t, e, n, r, a) {
    if (t)
        if (typeof t == "string") {
            if (e && e.__zrImageSrc === t || !n)
                return e;
            var i = SI.get(t)
              , o = {
                hostEl: n,
                cb: r,
                cbPayload: a
            };
            return i ? (e = i.image,
            !n2(e) && i.pending.push(o)) : (e = _o.loadImage(t, uH, uH),
            e.__zrImageSrc = t,
            SI.put(t, e.__cachedImgObj = {
                image: e,
                pending: [o]
            })),
            e
        } else
            return t;
    else
        return e
}
function uH() {
    var t = this.__cachedImgObj;
    this.onload = this.onerror = this.__cachedImgObj = null;
    for (var e = 0; e < t.pending.length; e++) {
        var n = t.pending[e]
          , r = n.cb;
        r && r(this, n.cbPayload),
        n.hostEl.dirty()
    }
    t.pending.length = 0
}
function n2(t) {
    return t && t.width && t.height
}
var PP = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
function gie(t, e, n, r, a) {
    if (!e)
        return "";
    var i = (t + "").split(`
`);
    a = mie(e, n, r, a);
    for (var o = 0, l = i.length; o < l; o++)
        i[o] = yie(i[o], a);
    return i.join(`
`)
}
function mie(t, e, n, r) {
    r = r || {};
    var a = Me({}, r);
    a.font = e,
    n = Ot(n, "..."),
    a.maxIterations = Ot(r.maxIterations, 2);
    var i = a.minChar = Ot(r.minChar, 0);
    a.cnCharWidth = oi("\u56FD", e);
    var o = a.ascCharWidth = oi("a", e);
    a.placeholder = Ot(r.placeholder, "");
    for (var l = t = Math.max(0, t - 1), s = 0; s < i && l >= o; s++)
        l -= o;
    var u = oi(n, e);
    return u > l && (n = "",
    u = 0),
    l = t - u,
    a.ellipsis = n,
    a.ellipsisWidth = u,
    a.contentWidth = l,
    a.containerWidth = t,
    a
}
function yie(t, e) {
    var n = e.containerWidth
      , r = e.font
      , a = e.contentWidth;
    if (!n)
        return "";
    var i = oi(t, r);
    if (i <= n)
        return t;
    for (var o = 0; ; o++) {
        if (i <= a || o >= e.maxIterations) {
            t += e.ellipsis;
            break
        }
        var l = o === 0 ? UGe(t, a, e.ascCharWidth, e.cnCharWidth) : i > 0 ? Math.floor(t.length * a / i) : 0;
        t = t.substr(0, l),
        i = oi(t, r)
    }
    return t === "" && (t = e.placeholder),
    t
}
function UGe(t, e, n, r) {
    for (var a = 0, i = 0, o = t.length; i < o && a < e; i++) {
        var l = t.charCodeAt(i);
        a += 0 <= l && l <= 127 ? n : r
    }
    return i
}
function YGe(t, e) {
    t != null && (t += "");
    var n = e.overflow, r = e.padding, a = e.font, i = n === "truncate", o = Jw(a), l = Ot(e.lineHeight, o), s = !!e.backgroundColor, u = e.lineOverflow === "truncate", c = e.width, f;
    c != null && (n === "break" || n === "breakAll") ? f = t ? bie(t, e.font, c, n === "breakAll", 0).lines : [] : f = t ? t.split(`
`) : [];
    var d = f.length * l
      , v = Ot(e.height, d);
    if (d > v && u) {
        var h = Math.floor(v / l);
        f = f.slice(0, h)
    }
    if (t && i && c != null)
        for (var p = mie(c, a, e.ellipsis, {
            minChar: e.truncateMinChar,
            placeholder: e.placeholder
        }), g = 0; g < f.length; g++)
            f[g] = yie(f[g], p);
    for (var m = v, y = 0, g = 0; g < f.length; g++)
        y = Math.max(oi(f[g], a), y);
    c == null && (c = y);
    var b = y;
    return r && (m += r[0] + r[2],
    b += r[1] + r[3],
    c += r[1] + r[3]),
    s && (b = c),
    {
        lines: f,
        height: v,
        outerWidth: b,
        outerHeight: m,
        lineHeight: l,
        calculatedLineHeight: o,
        contentWidth: y,
        contentHeight: d,
        width: c
    }
}
var qGe = function() {
    function t() {}
    return t
}()
  , cH = function() {
    function t(e) {
        this.tokens = [],
        e && (this.tokens = e)
    }
    return t
}()
  , XGe = function() {
    function t() {
        this.width = 0,
        this.height = 0,
        this.contentWidth = 0,
        this.contentHeight = 0,
        this.outerWidth = 0,
        this.outerHeight = 0,
        this.lines = []
    }
    return t
}();
function ZGe(t, e) {
    var n = new XGe;
    if (t != null && (t += ""),
    !t)
        return n;
    for (var r = e.width, a = e.height, i = e.overflow, o = (i === "break" || i === "breakAll") && r != null ? {
        width: r,
        accumWidth: 0,
        breakAll: i === "breakAll"
    } : null, l = PP.lastIndex = 0, s; (s = PP.exec(t)) != null; ) {
        var u = s.index;
        u > l && MP(n, t.substring(l, u), e, o),
        MP(n, s[2], e, o, s[1]),
        l = PP.lastIndex
    }
    l < t.length && MP(n, t.substring(l, t.length), e, o);
    var c = []
      , f = 0
      , d = 0
      , v = e.padding
      , h = i === "truncate"
      , p = e.lineOverflow === "truncate";
    function g(R, $, W) {
        R.width = $,
        R.lineHeight = W,
        f += W,
        d = Math.max(d, $)
    }
    e: for (var m = 0; m < n.lines.length; m++) {
        for (var y = n.lines[m], b = 0, x = 0, C = 0; C < y.tokens.length; C++) {
            var S = y.tokens[C]
              , w = S.styleName && e.rich[S.styleName] || {}
              , T = S.textPadding = w.padding
              , P = T ? T[1] + T[3] : 0
              , M = S.font = w.font || e.font;
            S.contentHeight = Jw(M);
            var A = Ot(w.height, S.contentHeight);
            if (S.innerHeight = A,
            T && (A += T[0] + T[2]),
            S.height = A,
            S.lineHeight = ho(w.lineHeight, e.lineHeight, A),
            S.align = w && w.align || e.align,
            S.verticalAlign = w && w.verticalAlign || "middle",
            p && a != null && f + S.lineHeight > a) {
                C > 0 ? (y.tokens = y.tokens.slice(0, C),
                g(y, x, b),
                n.lines = n.lines.slice(0, m + 1)) : n.lines = n.lines.slice(0, m);
                break e
            }
            var O = w.width
              , k = O == null || O === "auto";
            if (typeof O == "string" && O.charAt(O.length - 1) === "%")
                S.percentWidth = O,
                c.push(S),
                S.contentWidth = oi(S.text, M);
            else {
                if (k) {
                    var D = w.backgroundColor
                      , E = D && D.image;
                    E && (E = KGe(E),
                    n2(E) && (S.width = Math.max(S.width, E.width * A / E.height)))
                }
                var L = h && r != null ? r - x : null;
                L != null && L < S.width ? !k || L < P ? (S.text = "",
                S.width = S.contentWidth = 0) : (S.text = gie(S.text, L - P, M, e.ellipsis, {
                    minChar: e.truncateMinChar
                }),
                S.width = S.contentWidth = oi(S.text, M)) : S.contentWidth = oi(S.text, M)
            }
            S.width += P,
            x += S.width,
            w && (b = Math.max(b, S.lineHeight))
        }
        g(y, x, b)
    }
    n.outerWidth = n.width = Ot(r, d),
    n.outerHeight = n.height = Ot(a, f),
    n.contentHeight = f,
    n.contentWidth = d,
    v && (n.outerWidth += v[1] + v[3],
    n.outerHeight += v[0] + v[2]);
    for (var m = 0; m < c.length; m++) {
        var S = c[m]
          , N = S.percentWidth;
        S.width = parseInt(N, 10) / 100 * n.width
    }
    return n
}
function MP(t, e, n, r, a) {
    var i = e === "", o = a && n.rich[a] || {}, l = t.lines, s = o.font || n.font, u = !1, c, f;
    if (r) {
        var d = o.padding
          , v = d ? d[1] + d[3] : 0;
        if (o.width != null && o.width !== "auto") {
            var h = Po(o.width, r.width) + v;
            l.length > 0 && h + r.accumWidth > r.width && (c = e.split(`
`),
            u = !0),
            r.accumWidth = h
        } else {
            var p = bie(e, s, r.width, r.breakAll, r.accumWidth);
            r.accumWidth = p.accumWidth + v,
            f = p.linesWidths,
            c = p.lines
        }
    } else
        c = e.split(`
`);
    for (var g = 0; g < c.length; g++) {
        var m = c[g]
          , y = new qGe;
        if (y.styleName = a,
        y.text = m,
        y.isLineHolder = !m && !i,
        typeof o.width == "number" ? y.width = o.width : y.width = f ? f[g] : oi(m, s),
        !g && !u) {
            var b = (l[l.length - 1] || (l[0] = new cH)).tokens
              , x = b.length;
            x === 1 && b[0].isLineHolder ? b[0] = y : (m || !x || i) && b.push(y)
        } else
            l.push(new cH([y]))
    }
}
function QGe(t) {
    var e = t.charCodeAt(0);
    return e >= 32 && e <= 591 || e >= 880 && e <= 4351 || e >= 4608 && e <= 5119 || e >= 7680 && e <= 8303
}
var JGe = Hi(",&?/;] ".split(""), function(t, e) {
    return t[e] = !0,
    t
}, {});
function eKe(t) {
    return QGe(t) ? !!JGe[t] : !0
}
function bie(t, e, n, r, a) {
    for (var i = [], o = [], l = "", s = "", u = 0, c = 0, f = 0; f < t.length; f++) {
        var d = t.charAt(f);
        if (d === `
`) {
            s && (l += s,
            c += u),
            i.push(l),
            o.push(c),
            l = "",
            s = "",
            u = 0,
            c = 0;
            continue
        }
        var v = oi(d, e)
          , h = r ? !1 : !eKe(d);
        if (i.length ? c + v > n : a + c + v > n) {
            c ? (l || s) && (h ? (l || (l = s,
            s = "",
            u = 0,
            c = u),
            i.push(l),
            o.push(c - u),
            s += d,
            u += v,
            l = "",
            c = u) : (s && (l += s,
            s = "",
            u = 0),
            i.push(l),
            o.push(c),
            l = d,
            c = v)) : h ? (i.push(s),
            o.push(u),
            s = d,
            u = v) : (i.push(d),
            o.push(v));
            continue
        }
        c += v,
        h ? (s += d,
        u += v) : (s && (l += s,
        s = "",
        u = 0),
        l += d)
    }
    return !i.length && !l && (l = t,
    s = "",
    u = 0),
    s && (l += s),
    l && (i.push(l),
    o.push(c)),
    i.length === 1 && (c += a),
    {
        accumWidth: c,
        lines: i,
        linesWidths: o
    }
}
var CI = "__zr_style_" + Math.round(Math.random() * 10)
  , xf = {
    shadowBlur: 0,
    shadowOffsetX: 0,
    shadowOffsetY: 0,
    shadowColor: "#000",
    opacity: 1,
    blend: "source-over"
}
  , r2 = {
    style: {
        shadowBlur: !0,
        shadowOffsetX: !0,
        shadowOffsetY: !0,
        shadowColor: !0,
        opacity: !0
    }
};
xf[CI] = !0;
var fH = ["z", "z2", "invisible"]
  , tKe = ["invisible"]
  , nKe = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype._init = function(n) {
        for (var r = Gt(n), a = 0; a < r.length; a++) {
            var i = r[a];
            i === "style" ? this.useStyle(n[i]) : t.prototype.attrKV.call(this, i, n[i])
        }
        this.style || this.useStyle({})
    }
    ,
    e.prototype.beforeBrush = function() {}
    ,
    e.prototype.afterBrush = function() {}
    ,
    e.prototype.innerBeforeBrush = function() {}
    ,
    e.prototype.innerAfterBrush = function() {}
    ,
    e.prototype.shouldBePainted = function(n, r, a, i) {
        var o = this.transform;
        if (this.ignore || this.invisible || this.style.opacity === 0 || this.culling && rKe(this, n, r) || o && !o[0] && !o[3])
            return !1;
        if (a && this.__clipPaths) {
            for (var l = 0; l < this.__clipPaths.length; ++l)
                if (this.__clipPaths[l].isZeroArea())
                    return !1
        }
        if (i && this.parent)
            for (var s = this.parent; s; ) {
                if (s.ignore)
                    return !1;
                s = s.parent
            }
        return !0
    }
    ,
    e.prototype.contain = function(n, r) {
        return this.rectContain(n, r)
    }
    ,
    e.prototype.traverse = function(n, r) {
        n.call(r, this)
    }
    ,
    e.prototype.rectContain = function(n, r) {
        var a = this.transformCoordToLocal(n, r)
          , i = this.getBoundingRect();
        return i.contain(a[0], a[1])
    }
    ,
    e.prototype.getPaintRect = function() {
        var n = this._paintRect;
        if (!this._paintRect || this.__dirty) {
            var r = this.transform
              , a = this.getBoundingRect()
              , i = this.style
              , o = i.shadowBlur || 0
              , l = i.shadowOffsetX || 0
              , s = i.shadowOffsetY || 0;
            n = this._paintRect || (this._paintRect = new Dt(0,0,0,0)),
            r ? Dt.applyTransform(n, a, r) : n.copy(a),
            (o || l || s) && (n.width += o * 2 + Math.abs(l),
            n.height += o * 2 + Math.abs(s),
            n.x = Math.min(n.x, n.x + l - o),
            n.y = Math.min(n.y, n.y + s - o));
            var u = this.dirtyRectTolerance;
            n.isZero() || (n.x = Math.floor(n.x - u),
            n.y = Math.floor(n.y - u),
            n.width = Math.ceil(n.width + 1 + u * 2),
            n.height = Math.ceil(n.height + 1 + u * 2))
        }
        return n
    }
    ,
    e.prototype.setPrevPaintRect = function(n) {
        n ? (this._prevPaintRect = this._prevPaintRect || new Dt(0,0,0,0),
        this._prevPaintRect.copy(n)) : this._prevPaintRect = null
    }
    ,
    e.prototype.getPrevPaintRect = function() {
        return this._prevPaintRect
    }
    ,
    e.prototype.animateStyle = function(n) {
        return this.animate("style", n)
    }
    ,
    e.prototype.updateDuringAnimation = function(n) {
        n === "style" ? this.dirtyStyle() : this.markRedraw()
    }
    ,
    e.prototype.attrKV = function(n, r) {
        n !== "style" ? t.prototype.attrKV.call(this, n, r) : this.style ? this.setStyle(r) : this.useStyle(r)
    }
    ,
    e.prototype.setStyle = function(n, r) {
        return typeof n == "string" ? this.style[n] = r : Me(this.style, n),
        this.dirtyStyle(),
        this
    }
    ,
    e.prototype.dirtyStyle = function(n) {
        n || this.markRedraw(),
        this.__dirty |= Up,
        this._rect && (this._rect = null)
    }
    ,
    e.prototype.dirty = function() {
        this.dirtyStyle()
    }
    ,
    e.prototype.styleChanged = function() {
        return !!(this.__dirty & Up)
    }
    ,
    e.prototype.styleUpdated = function() {
        this.__dirty &= ~Up
    }
    ,
    e.prototype.createStyle = function(n) {
        return jm(xf, n)
    }
    ,
    e.prototype.useStyle = function(n) {
        n[CI] || (n = this.createStyle(n)),
        this.__inHover ? this.__hoverStyle = n : this.style = n,
        this.dirtyStyle()
    }
    ,
    e.prototype.isStyleObject = function(n) {
        return n[CI]
    }
    ,
    e.prototype._innerSaveToNormal = function(n) {
        t.prototype._innerSaveToNormal.call(this, n);
        var r = this._normalState;
        n.style && !r.style && (r.style = this._mergeStyle(this.createStyle(), this.style)),
        this._savePrimaryToNormal(n, r, fH)
    }
    ,
    e.prototype._applyStateObj = function(n, r, a, i, o, l) {
        t.prototype._applyStateObj.call(this, n, r, a, i, o, l);
        var s = !(r && i), u;
        if (r && r.style ? o ? i ? u = r.style : (u = this._mergeStyle(this.createStyle(), a.style),
        this._mergeStyle(u, r.style)) : (u = this._mergeStyle(this.createStyle(), i ? this.style : a.style),
        this._mergeStyle(u, r.style)) : s && (u = a.style),
        u)
            if (o) {
                var c = this.style;
                if (this.style = this.createStyle(s ? {} : c),
                s)
                    for (var f = Gt(c), d = 0; d < f.length; d++) {
                        var v = f[d];
                        v in u && (u[v] = u[v],
                        this.style[v] = c[v])
                    }
                for (var h = Gt(u), d = 0; d < h.length; d++) {
                    var v = h[d];
                    this.style[v] = this.style[v]
                }
                this._transitionState(n, {
                    style: u
                }, l, this.getAnimationStyleProps())
            } else
                this.useStyle(u);
        for (var p = this.__inHover ? tKe : fH, d = 0; d < p.length; d++) {
            var v = p[d];
            r && r[v] != null ? this[v] = r[v] : s && a[v] != null && (this[v] = a[v])
        }
    }
    ,
    e.prototype._mergeStates = function(n) {
        for (var r = t.prototype._mergeStates.call(this, n), a, i = 0; i < n.length; i++) {
            var o = n[i];
            o.style && (a = a || {},
            this._mergeStyle(a, o.style))
        }
        return a && (r.style = a),
        r
    }
    ,
    e.prototype._mergeStyle = function(n, r) {
        return Me(n, r),
        n
    }
    ,
    e.prototype.getAnimationStyleProps = function() {
        return r2
    }
    ,
    e.initDefaultProps = function() {
        var n = e.prototype;
        n.type = "displayable",
        n.invisible = !1,
        n.z = 0,
        n.z2 = 0,
        n.zlevel = 0,
        n.culling = !1,
        n.cursor = "pointer",
        n.rectHover = !1,
        n.incremental = !1,
        n._rect = null,
        n.dirtyRectTolerance = 0,
        n.__dirty = ei | Up
    }(),
    e
}(Jae)
  , AP = new Dt(0,0,0,0)
  , IP = new Dt(0,0,0,0);
function rKe(t, e, n) {
    return AP.copy(t.getBoundingRect()),
    t.transform && AP.applyTransform(t.transform),
    IP.width = e,
    IP.height = n,
    !AP.intersect(IP)
}
const ji = nKe;
var $a = Math.min
  , Fa = Math.max
  , kP = Math.sin
  , OP = Math.cos
  , vc = Math.PI * 2
  , v1 = Gu()
  , h1 = Gu()
  , p1 = Gu();
function a2(t, e, n) {
    if (t.length !== 0) {
        for (var r = t[0], a = r[0], i = r[0], o = r[1], l = r[1], s = 1; s < t.length; s++)
            r = t[s],
            a = $a(a, r[0]),
            i = Fa(i, r[0]),
            o = $a(o, r[1]),
            l = Fa(l, r[1]);
        e[0] = a,
        e[1] = o,
        n[0] = i,
        n[1] = l
    }
}
function dH(t, e, n, r, a, i) {
    a[0] = $a(t, n),
    a[1] = $a(e, r),
    i[0] = Fa(t, n),
    i[1] = Fa(e, r)
}
var vH = []
  , hH = [];
function aKe(t, e, n, r, a, i, o, l, s, u) {
    var c = Nae
      , f = Ar
      , d = c(t, n, a, o, vH);
    s[0] = 1 / 0,
    s[1] = 1 / 0,
    u[0] = -1 / 0,
    u[1] = -1 / 0;
    for (var v = 0; v < d; v++) {
        var h = f(t, n, a, o, vH[v]);
        s[0] = $a(h, s[0]),
        u[0] = Fa(h, u[0])
    }
    d = c(e, r, i, l, hH);
    for (var v = 0; v < d; v++) {
        var p = f(e, r, i, l, hH[v]);
        s[1] = $a(p, s[1]),
        u[1] = Fa(p, u[1])
    }
    s[0] = $a(t, s[0]),
    u[0] = Fa(t, u[0]),
    s[0] = $a(o, s[0]),
    u[0] = Fa(o, u[0]),
    s[1] = $a(e, s[1]),
    u[1] = Fa(e, u[1]),
    s[1] = $a(l, s[1]),
    u[1] = Fa(l, u[1])
}
function iKe(t, e, n, r, a, i, o, l) {
    var s = Fae
      , u = Br
      , c = Fa($a(s(t, n, a), 1), 0)
      , f = Fa($a(s(e, r, i), 1), 0)
      , d = u(t, n, a, c)
      , v = u(e, r, i, f);
    o[0] = $a(t, a, d),
    o[1] = $a(e, i, v),
    l[0] = Fa(t, a, d),
    l[1] = Fa(e, i, v)
}
function oKe(t, e, n, r, a, i, o, l, s) {
    var u = Ql
      , c = Jl
      , f = Math.abs(a - i);
    if (f % vc < 1e-4 && f > 1e-4) {
        l[0] = t - n,
        l[1] = e - r,
        s[0] = t + n,
        s[1] = e + r;
        return
    }
    if (v1[0] = OP(a) * n + t,
    v1[1] = kP(a) * r + e,
    h1[0] = OP(i) * n + t,
    h1[1] = kP(i) * r + e,
    u(l, v1, h1),
    c(s, v1, h1),
    a = a % vc,
    a < 0 && (a = a + vc),
    i = i % vc,
    i < 0 && (i = i + vc),
    a > i && !o ? i += vc : a < i && o && (a += vc),
    o) {
        var d = i;
        i = a,
        a = d
    }
    for (var v = 0; v < i; v += Math.PI / 2)
        v > a && (p1[0] = OP(v) * n + t,
        p1[1] = kP(v) * r + e,
        u(l, p1, l),
        c(s, p1, s))
}
var An = {
    M: 1,
    L: 2,
    C: 3,
    Q: 4,
    A: 5,
    Z: 6,
    R: 7
}
  , hc = []
  , pc = []
  , Bo = []
  , Ds = []
  , Vo = []
  , zo = []
  , DP = Math.min
  , EP = Math.max
  , gc = Math.cos
  , mc = Math.sin
  , Nl = Math.abs
  , wI = Math.PI
  , Ws = wI * 2
  , LP = typeof Float32Array != "undefined"
  , hp = [];
function RP(t) {
    var e = Math.round(t / wI * 1e8) / 1e8;
    return e % 2 * wI
}
function xie(t, e) {
    var n = RP(t[0]);
    n < 0 && (n += Ws);
    var r = n - t[0]
      , a = t[1];
    a += r,
    !e && a - n >= Ws ? a = n + Ws : e && n - a >= Ws ? a = n - Ws : !e && n > a ? a = n + (Ws - RP(n - a)) : e && n < a && (a = n - (Ws - RP(a - n))),
    t[0] = n,
    t[1] = a
}
var lKe = function() {
    function t(e) {
        this.dpr = 1,
        this._xi = 0,
        this._yi = 0,
        this._x0 = 0,
        this._y0 = 0,
        this._len = 0,
        e && (this._saveData = !1),
        this._saveData && (this.data = [])
    }
    return t.prototype.increaseVersion = function() {
        this._version++
    }
    ,
    t.prototype.getVersion = function() {
        return this._version
    }
    ,
    t.prototype.setScale = function(e, n, r) {
        r = r || 0,
        r > 0 && (this._ux = Nl(r / PS / e) || 0,
        this._uy = Nl(r / PS / n) || 0)
    }
    ,
    t.prototype.setDPR = function(e) {
        this.dpr = e
    }
    ,
    t.prototype.setContext = function(e) {
        this._ctx = e
    }
    ,
    t.prototype.getContext = function() {
        return this._ctx
    }
    ,
    t.prototype.beginPath = function() {
        return this._ctx && this._ctx.beginPath(),
        this.reset(),
        this
    }
    ,
    t.prototype.reset = function() {
        this._saveData && (this._len = 0),
        this._pathSegLen && (this._pathSegLen = null,
        this._pathLen = 0),
        this._version++
    }
    ,
    t.prototype.moveTo = function(e, n) {
        return this._drawPendingPt(),
        this.addData(An.M, e, n),
        this._ctx && this._ctx.moveTo(e, n),
        this._x0 = e,
        this._y0 = n,
        this._xi = e,
        this._yi = n,
        this
    }
    ,
    t.prototype.lineTo = function(e, n) {
        var r = Nl(e - this._xi)
          , a = Nl(n - this._yi)
          , i = r > this._ux || a > this._uy;
        if (this.addData(An.L, e, n),
        this._ctx && i && this._ctx.lineTo(e, n),
        i)
            this._xi = e,
            this._yi = n,
            this._pendingPtDist = 0;
        else {
            var o = r * r + a * a;
            o > this._pendingPtDist && (this._pendingPtX = e,
            this._pendingPtY = n,
            this._pendingPtDist = o)
        }
        return this
    }
    ,
    t.prototype.bezierCurveTo = function(e, n, r, a, i, o) {
        return this._drawPendingPt(),
        this.addData(An.C, e, n, r, a, i, o),
        this._ctx && this._ctx.bezierCurveTo(e, n, r, a, i, o),
        this._xi = i,
        this._yi = o,
        this
    }
    ,
    t.prototype.quadraticCurveTo = function(e, n, r, a) {
        return this._drawPendingPt(),
        this.addData(An.Q, e, n, r, a),
        this._ctx && this._ctx.quadraticCurveTo(e, n, r, a),
        this._xi = r,
        this._yi = a,
        this
    }
    ,
    t.prototype.arc = function(e, n, r, a, i, o) {
        this._drawPendingPt(),
        hp[0] = a,
        hp[1] = i,
        xie(hp, o),
        a = hp[0],
        i = hp[1];
        var l = i - a;
        return this.addData(An.A, e, n, r, r, a, l, 0, o ? 0 : 1),
        this._ctx && this._ctx.arc(e, n, r, a, i, o),
        this._xi = gc(i) * r + e,
        this._yi = mc(i) * r + n,
        this
    }
    ,
    t.prototype.arcTo = function(e, n, r, a, i) {
        return this._drawPendingPt(),
        this._ctx && this._ctx.arcTo(e, n, r, a, i),
        this
    }
    ,
    t.prototype.rect = function(e, n, r, a) {
        return this._drawPendingPt(),
        this._ctx && this._ctx.rect(e, n, r, a),
        this.addData(An.R, e, n, r, a),
        this
    }
    ,
    t.prototype.closePath = function() {
        this._drawPendingPt(),
        this.addData(An.Z);
        var e = this._ctx
          , n = this._x0
          , r = this._y0;
        return e && e.closePath(),
        this._xi = n,
        this._yi = r,
        this
    }
    ,
    t.prototype.fill = function(e) {
        e && e.fill(),
        this.toStatic()
    }
    ,
    t.prototype.stroke = function(e) {
        e && e.stroke(),
        this.toStatic()
    }
    ,
    t.prototype.len = function() {
        return this._len
    }
    ,
    t.prototype.setData = function(e) {
        var n = e.length;
        !(this.data && this.data.length === n) && LP && (this.data = new Float32Array(n));
        for (var r = 0; r < n; r++)
            this.data[r] = e[r];
        this._len = n
    }
    ,
    t.prototype.appendPath = function(e) {
        e instanceof Array || (e = [e]);
        for (var n = e.length, r = 0, a = this._len, i = 0; i < n; i++)
            r += e[i].len();
        LP && this.data instanceof Float32Array && (this.data = new Float32Array(a + r));
        for (var i = 0; i < n; i++)
            for (var o = e[i].data, l = 0; l < o.length; l++)
                this.data[a++] = o[l];
        this._len = a
    }
    ,
    t.prototype.addData = function(e, n, r, a, i, o, l, s, u) {
        if (!!this._saveData) {
            var c = this.data;
            this._len + arguments.length > c.length && (this._expandData(),
            c = this.data);
            for (var f = 0; f < arguments.length; f++)
                c[this._len++] = arguments[f]
        }
    }
    ,
    t.prototype._drawPendingPt = function() {
        this._pendingPtDist > 0 && (this._ctx && this._ctx.lineTo(this._pendingPtX, this._pendingPtY),
        this._pendingPtDist = 0)
    }
    ,
    t.prototype._expandData = function() {
        if (!(this.data instanceof Array)) {
            for (var e = [], n = 0; n < this._len; n++)
                e[n] = this.data[n];
            this.data = e
        }
    }
    ,
    t.prototype.toStatic = function() {
        if (!!this._saveData) {
            this._drawPendingPt();
            var e = this.data;
            e instanceof Array && (e.length = this._len,
            LP && this._len > 11 && (this.data = new Float32Array(e)))
        }
    }
    ,
    t.prototype.getBoundingRect = function() {
        Bo[0] = Bo[1] = Vo[0] = Vo[1] = Number.MAX_VALUE,
        Ds[0] = Ds[1] = zo[0] = zo[1] = -Number.MAX_VALUE;
        var e = this.data, n = 0, r = 0, a = 0, i = 0, o;
        for (o = 0; o < this._len; ) {
            var l = e[o++]
              , s = o === 1;
            switch (s && (n = e[o],
            r = e[o + 1],
            a = n,
            i = r),
            l) {
            case An.M:
                n = a = e[o++],
                r = i = e[o++],
                Vo[0] = a,
                Vo[1] = i,
                zo[0] = a,
                zo[1] = i;
                break;
            case An.L:
                dH(n, r, e[o], e[o + 1], Vo, zo),
                n = e[o++],
                r = e[o++];
                break;
            case An.C:
                aKe(n, r, e[o++], e[o++], e[o++], e[o++], e[o], e[o + 1], Vo, zo),
                n = e[o++],
                r = e[o++];
                break;
            case An.Q:
                iKe(n, r, e[o++], e[o++], e[o], e[o + 1], Vo, zo),
                n = e[o++],
                r = e[o++];
                break;
            case An.A:
                var u = e[o++]
                  , c = e[o++]
                  , f = e[o++]
                  , d = e[o++]
                  , v = e[o++]
                  , h = e[o++] + v;
                o += 1;
                var p = !e[o++];
                s && (a = gc(v) * f + u,
                i = mc(v) * d + c),
                oKe(u, c, f, d, v, h, p, Vo, zo),
                n = gc(h) * f + u,
                r = mc(h) * d + c;
                break;
            case An.R:
                a = n = e[o++],
                i = r = e[o++];
                var g = e[o++]
                  , m = e[o++];
                dH(a, i, a + g, i + m, Vo, zo);
                break;
            case An.Z:
                n = a,
                r = i;
                break
            }
            Ql(Bo, Bo, Vo),
            Jl(Ds, Ds, zo)
        }
        return o === 0 && (Bo[0] = Bo[1] = Ds[0] = Ds[1] = 0),
        new Dt(Bo[0],Bo[1],Ds[0] - Bo[0],Ds[1] - Bo[1])
    }
    ,
    t.prototype._calculateLength = function() {
        var e = this.data
          , n = this._len
          , r = this._ux
          , a = this._uy
          , i = 0
          , o = 0
          , l = 0
          , s = 0;
        this._pathSegLen || (this._pathSegLen = []);
        for (var u = this._pathSegLen, c = 0, f = 0, d = 0; d < n; ) {
            var v = e[d++]
              , h = d === 1;
            h && (i = e[d],
            o = e[d + 1],
            l = i,
            s = o);
            var p = -1;
            switch (v) {
            case An.M:
                i = l = e[d++],
                o = s = e[d++];
                break;
            case An.L:
                {
                    var g = e[d++]
                      , m = e[d++]
                      , y = g - i
                      , b = m - o;
                    (Nl(y) > r || Nl(b) > a || d === n - 1) && (p = Math.sqrt(y * y + b * b),
                    i = g,
                    o = m);
                    break
                }
            case An.C:
                {
                    var x = e[d++]
                      , C = e[d++]
                      , g = e[d++]
                      , m = e[d++]
                      , S = e[d++]
                      , w = e[d++];
                    p = mWe(i, o, x, C, g, m, S, w, 10),
                    i = S,
                    o = w;
                    break
                }
            case An.Q:
                {
                    var x = e[d++]
                      , C = e[d++]
                      , g = e[d++]
                      , m = e[d++];
                    p = bWe(i, o, x, C, g, m, 10),
                    i = g,
                    o = m;
                    break
                }
            case An.A:
                var T = e[d++]
                  , P = e[d++]
                  , M = e[d++]
                  , A = e[d++]
                  , O = e[d++]
                  , k = e[d++]
                  , D = k + O;
                d += 1,
                e[d++],
                h && (l = gc(O) * M + T,
                s = mc(O) * A + P),
                p = EP(M, A) * DP(Ws, Math.abs(k)),
                i = gc(D) * M + T,
                o = mc(D) * A + P;
                break;
            case An.R:
                {
                    l = i = e[d++],
                    s = o = e[d++];
                    var E = e[d++]
                      , L = e[d++];
                    p = E * 2 + L * 2;
                    break
                }
            case An.Z:
                {
                    var y = l - i
                      , b = s - o;
                    p = Math.sqrt(y * y + b * b),
                    i = l,
                    o = s;
                    break
                }
            }
            p >= 0 && (u[f++] = p,
            c += p)
        }
        return this._pathLen = c,
        c
    }
    ,
    t.prototype.rebuildPath = function(e, n) {
        var r = this.data, a = this._ux, i = this._uy, o = this._len, l, s, u, c, f, d, v = n < 1, h, p, g = 0, m = 0, y, b = 0, x, C;
        if (v && (this._pathSegLen || this._calculateLength(),
        h = this._pathSegLen,
        p = this._pathLen,
        y = n * p,
        !y))
            return;
        e: for (var S = 0; S < o; ) {
            var w = r[S++]
              , T = S === 1;
            switch (T && (u = r[S],
            c = r[S + 1],
            l = u,
            s = c),
            w !== An.L && b > 0 && (e.lineTo(x, C),
            b = 0),
            w) {
            case An.M:
                l = u = r[S++],
                s = c = r[S++],
                e.moveTo(u, c);
                break;
            case An.L:
                {
                    f = r[S++],
                    d = r[S++];
                    var P = Nl(f - u)
                      , M = Nl(d - c);
                    if (P > a || M > i) {
                        if (v) {
                            var A = h[m++];
                            if (g + A > y) {
                                var O = (y - g) / A;
                                e.lineTo(u * (1 - O) + f * O, c * (1 - O) + d * O);
                                break e
                            }
                            g += A
                        }
                        e.lineTo(f, d),
                        u = f,
                        c = d,
                        b = 0
                    } else {
                        var k = P * P + M * M;
                        k > b && (x = f,
                        C = d,
                        b = k)
                    }
                    break
                }
            case An.C:
                {
                    var D = r[S++]
                      , E = r[S++]
                      , L = r[S++]
                      , N = r[S++]
                      , R = r[S++]
                      , $ = r[S++];
                    if (v) {
                        var A = h[m++];
                        if (g + A > y) {
                            var O = (y - g) / A;
                            Ou(u, D, L, R, O, hc),
                            Ou(c, E, N, $, O, pc),
                            e.bezierCurveTo(hc[1], pc[1], hc[2], pc[2], hc[3], pc[3]);
                            break e
                        }
                        g += A
                    }
                    e.bezierCurveTo(D, E, L, N, R, $),
                    u = R,
                    c = $;
                    break
                }
            case An.Q:
                {
                    var D = r[S++]
                      , E = r[S++]
                      , L = r[S++]
                      , N = r[S++];
                    if (v) {
                        var A = h[m++];
                        if (g + A > y) {
                            var O = (y - g) / A;
                            D0(u, D, L, O, hc),
                            D0(c, E, N, O, pc),
                            e.quadraticCurveTo(hc[1], pc[1], hc[2], pc[2]);
                            break e
                        }
                        g += A
                    }
                    e.quadraticCurveTo(D, E, L, N),
                    u = L,
                    c = N;
                    break
                }
            case An.A:
                var W = r[S++]
                  , B = r[S++]
                  , G = r[S++]
                  , K = r[S++]
                  , V = r[S++]
                  , U = r[S++]
                  , X = r[S++]
                  , Y = !r[S++]
                  , te = G > K ? G : K
                  , ne = Nl(G - K) > .001
                  , ie = V + U
                  , ae = !1;
                if (v) {
                    var A = h[m++];
                    g + A > y && (ie = V + U * (y - g) / A,
                    ae = !0),
                    g += A
                }
                if (ne && e.ellipse ? e.ellipse(W, B, G, K, X, V, ie, Y) : e.arc(W, B, te, V, ie, Y),
                ae)
                    break e;
                T && (l = gc(V) * G + W,
                s = mc(V) * K + B),
                u = gc(ie) * G + W,
                c = mc(ie) * K + B;
                break;
            case An.R:
                l = u = r[S],
                s = c = r[S + 1],
                f = r[S++],
                d = r[S++];
                var q = r[S++]
                  , F = r[S++];
                if (v) {
                    var A = h[m++];
                    if (g + A > y) {
                        var H = y - g;
                        e.moveTo(f, d),
                        e.lineTo(f + DP(H, q), d),
                        H -= q,
                        H > 0 && e.lineTo(f + q, d + DP(H, F)),
                        H -= F,
                        H > 0 && e.lineTo(f + EP(q - H, 0), d + F),
                        H -= q,
                        H > 0 && e.lineTo(f, d + EP(F - H, 0));
                        break e
                    }
                    g += A
                }
                e.rect(f, d, q, F);
                break;
            case An.Z:
                if (v) {
                    var A = h[m++];
                    if (g + A > y) {
                        var O = (y - g) / A;
                        e.lineTo(u * (1 - O) + l * O, c * (1 - O) + s * O);
                        break e
                    }
                    g += A
                }
                e.closePath(),
                u = l,
                c = s
            }
        }
    }
    ,
    t.prototype.clone = function() {
        var e = new t
          , n = this.data;
        return e.data = n.slice ? n.slice() : Array.prototype.slice.call(n),
        e._len = this._len,
        e
    }
    ,
    t.CMD = An,
    t.initDefaultProps = function() {
        var e = t.prototype;
        e._saveData = !0,
        e._ux = 0,
        e._uy = 0,
        e._pendingPtDist = 0,
        e._version = 0
    }(),
    t
}();
const yl = lKe;
function qs(t, e, n, r, a, i, o) {
    if (a === 0)
        return !1;
    var l = a
      , s = 0
      , u = t;
    if (o > e + l && o > r + l || o < e - l && o < r - l || i > t + l && i > n + l || i < t - l && i < n - l)
        return !1;
    if (t !== n)
        s = (e - r) / (t - n),
        u = (t * r - n * e) / (t - n);
    else
        return Math.abs(i - t) <= l / 2;
    var c = s * i - o + u
      , f = c * c / (s * s + 1);
    return f <= l / 2 * l / 2
}
function sKe(t, e, n, r, a, i, o, l, s, u, c) {
    if (s === 0)
        return !1;
    var f = s;
    if (c > e + f && c > r + f && c > i + f && c > l + f || c < e - f && c < r - f && c < i - f && c < l - f || u > t + f && u > n + f && u > a + f && u > o + f || u < t - f && u < n - f && u < a - f && u < o - f)
        return !1;
    var d = $ae(t, e, n, r, a, i, o, l, u, c, null);
    return d <= f / 2
}
function Sie(t, e, n, r, a, i, o, l, s) {
    if (o === 0)
        return !1;
    var u = o;
    if (s > e + u && s > r + u && s > i + u || s < e - u && s < r - u && s < i - u || l > t + u && l > n + u && l > a + u || l < t - u && l < n - u && l < a - u)
        return !1;
    var c = Bae(t, e, n, r, a, i, l, s, null);
    return c <= u / 2
}
var pH = Math.PI * 2;
function uo(t) {
    return t %= pH,
    t < 0 && (t += pH),
    t
}
var pp = Math.PI * 2;
function uKe(t, e, n, r, a, i, o, l, s) {
    if (o === 0)
        return !1;
    var u = o;
    l -= t,
    s -= e;
    var c = Math.sqrt(l * l + s * s);
    if (c - u > n || c + u < n)
        return !1;
    if (Math.abs(r - a) % pp < 1e-4)
        return !0;
    if (i) {
        var f = r;
        r = uo(a),
        a = uo(f)
    } else
        r = uo(r),
        a = uo(a);
    r > a && (a += pp);
    var d = Math.atan2(s, l);
    return d < 0 && (d += pp),
    d >= r && d <= a || d + pp >= r && d + pp <= a
}
function Gl(t, e, n, r, a, i) {
    if (i > e && i > r || i < e && i < r || r === e)
        return 0;
    var o = (i - e) / (r - e)
      , l = r < e ? 1 : -1;
    (o === 1 || o === 0) && (l = r < e ? .5 : -.5);
    var s = o * (n - t) + t;
    return s === a ? 1 / 0 : s > a ? l : 0
}
var Es = yl.CMD
  , yc = Math.PI * 2
  , cKe = 1e-4;
function fKe(t, e) {
    return Math.abs(t - e) < cKe
}
var ma = [-1, -1, -1]
  , Mi = [-1, -1];
function dKe() {
    var t = Mi[0];
    Mi[0] = Mi[1],
    Mi[1] = t
}
function vKe(t, e, n, r, a, i, o, l, s, u) {
    if (u > e && u > r && u > i && u > l || u < e && u < r && u < i && u < l)
        return 0;
    var c = wS(e, r, i, l, u, ma);
    if (c === 0)
        return 0;
    for (var f = 0, d = -1, v = void 0, h = void 0, p = 0; p < c; p++) {
        var g = ma[p]
          , m = g === 0 || g === 1 ? .5 : 1
          , y = Ar(t, n, a, o, g);
        y < s || (d < 0 && (d = Nae(e, r, i, l, Mi),
        Mi[1] < Mi[0] && d > 1 && dKe(),
        v = Ar(e, r, i, l, Mi[0]),
        d > 1 && (h = Ar(e, r, i, l, Mi[1]))),
        d === 2 ? g < Mi[0] ? f += v < e ? m : -m : g < Mi[1] ? f += h < v ? m : -m : f += l < h ? m : -m : g < Mi[0] ? f += v < e ? m : -m : f += l < v ? m : -m)
    }
    return f
}
function hKe(t, e, n, r, a, i, o, l) {
    if (l > e && l > r && l > i || l < e && l < r && l < i)
        return 0;
    var s = yWe(e, r, i, l, ma);
    if (s === 0)
        return 0;
    var u = Fae(e, r, i);
    if (u >= 0 && u <= 1) {
        for (var c = 0, f = Br(e, r, i, u), d = 0; d < s; d++) {
            var v = ma[d] === 0 || ma[d] === 1 ? .5 : 1
              , h = Br(t, n, a, ma[d]);
            h < o || (ma[d] < u ? c += f < e ? v : -v : c += i < f ? v : -v)
        }
        return c
    } else {
        var v = ma[0] === 0 || ma[0] === 1 ? .5 : 1
          , h = Br(t, n, a, ma[0]);
        return h < o ? 0 : i < e ? v : -v
    }
}
function pKe(t, e, n, r, a, i, o, l) {
    if (l -= e,
    l > n || l < -n)
        return 0;
    var s = Math.sqrt(n * n - l * l);
    ma[0] = -s,
    ma[1] = s;
    var u = Math.abs(r - a);
    if (u < 1e-4)
        return 0;
    if (u >= yc - 1e-4) {
        r = 0,
        a = yc;
        var c = i ? 1 : -1;
        return o >= ma[0] + t && o <= ma[1] + t ? c : 0
    }
    if (r > a) {
        var f = r;
        r = a,
        a = f
    }
    r < 0 && (r += yc,
    a += yc);
    for (var d = 0, v = 0; v < 2; v++) {
        var h = ma[v];
        if (h + t > o) {
            var p = Math.atan2(l, h)
              , c = i ? 1 : -1;
            p < 0 && (p = yc + p),
            (p >= r && p <= a || p + yc >= r && p + yc <= a) && (p > Math.PI / 2 && p < Math.PI * 1.5 && (c = -c),
            d += c)
        }
    }
    return d
}
function Cie(t, e, n, r, a) {
    for (var i = t.data, o = t.len(), l = 0, s = 0, u = 0, c = 0, f = 0, d, v, h = 0; h < o; ) {
        var p = i[h++]
          , g = h === 1;
        switch (p === Es.M && h > 1 && (n || (l += Gl(s, u, c, f, r, a))),
        g && (s = i[h],
        u = i[h + 1],
        c = s,
        f = u),
        p) {
        case Es.M:
            c = i[h++],
            f = i[h++],
            s = c,
            u = f;
            break;
        case Es.L:
            if (n) {
                if (qs(s, u, i[h], i[h + 1], e, r, a))
                    return !0
            } else
                l += Gl(s, u, i[h], i[h + 1], r, a) || 0;
            s = i[h++],
            u = i[h++];
            break;
        case Es.C:
            if (n) {
                if (sKe(s, u, i[h++], i[h++], i[h++], i[h++], i[h], i[h + 1], e, r, a))
                    return !0
            } else
                l += vKe(s, u, i[h++], i[h++], i[h++], i[h++], i[h], i[h + 1], r, a) || 0;
            s = i[h++],
            u = i[h++];
            break;
        case Es.Q:
            if (n) {
                if (Sie(s, u, i[h++], i[h++], i[h], i[h + 1], e, r, a))
                    return !0
            } else
                l += hKe(s, u, i[h++], i[h++], i[h], i[h + 1], r, a) || 0;
            s = i[h++],
            u = i[h++];
            break;
        case Es.A:
            var m = i[h++]
              , y = i[h++]
              , b = i[h++]
              , x = i[h++]
              , C = i[h++]
              , S = i[h++];
            h += 1;
            var w = !!(1 - i[h++]);
            d = Math.cos(C) * b + m,
            v = Math.sin(C) * x + y,
            g ? (c = d,
            f = v) : l += Gl(s, u, d, v, r, a);
            var T = (r - m) * x / b + m;
            if (n) {
                if (uKe(m, y, x, C, C + S, w, e, T, a))
                    return !0
            } else
                l += pKe(m, y, x, C, C + S, w, T, a);
            s = Math.cos(C + S) * b + m,
            u = Math.sin(C + S) * x + y;
            break;
        case Es.R:
            c = s = i[h++],
            f = u = i[h++];
            var P = i[h++]
              , M = i[h++];
            if (d = c + P,
            v = f + M,
            n) {
                if (qs(c, f, d, f, e, r, a) || qs(d, f, d, v, e, r, a) || qs(d, v, c, v, e, r, a) || qs(c, v, c, f, e, r, a))
                    return !0
            } else
                l += Gl(d, f, d, v, r, a),
                l += Gl(c, v, c, f, r, a);
            break;
        case Es.Z:
            if (n) {
                if (qs(s, u, c, f, e, r, a))
                    return !0
            } else
                l += Gl(s, u, c, f, r, a);
            s = c,
            u = f;
            break
        }
    }
    return !n && !fKe(u, f) && (l += Gl(s, u, c, f, r, a) || 0),
    l !== 0
}
function gKe(t, e, n) {
    return Cie(t, 0, !1, e, n)
}
function mKe(t, e, n, r) {
    return Cie(t, e, !0, n, r)
}
var AS = ot({
    fill: "#000",
    stroke: null,
    strokePercent: 1,
    fillOpacity: 1,
    strokeOpacity: 1,
    lineDashOffset: 0,
    lineWidth: 1,
    lineCap: "butt",
    miterLimit: 10,
    strokeNoScale: !1,
    strokeFirst: !1
}, xf)
  , yKe = {
    style: ot({
        fill: !0,
        stroke: !0,
        strokePercent: !0,
        fillOpacity: !0,
        strokeOpacity: !0,
        lineDashOffset: !0,
        lineWidth: !0,
        miterLimit: !0
    }, r2.style)
}
  , NP = gl.concat(["invisible", "culling", "z", "z2", "zlevel", "parent"])
  , bKe = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.update = function() {
        var n = this;
        t.prototype.update.call(this);
        var r = this.style;
        if (r.decal) {
            var a = this._decalEl = this._decalEl || new e;
            a.buildPath === e.prototype.buildPath && (a.buildPath = function(s) {
                n.buildPath(s, n.shape)
            }
            ),
            a.silent = !0;
            var i = a.style;
            for (var o in r)
                i[o] !== r[o] && (i[o] = r[o]);
            i.fill = r.fill ? r.decal : null,
            i.decal = null,
            i.shadowColor = null,
            r.strokeFirst && (i.stroke = null);
            for (var l = 0; l < NP.length; ++l)
                a[NP[l]] = this[NP[l]];
            a.__dirty |= ei
        } else
            this._decalEl && (this._decalEl = null)
    }
    ,
    e.prototype.getDecalElement = function() {
        return this._decalEl
    }
    ,
    e.prototype._init = function(n) {
        var r = Gt(n);
        this.shape = this.getDefaultShape();
        var a = this.getDefaultStyle();
        a && this.useStyle(a);
        for (var i = 0; i < r.length; i++) {
            var o = r[i]
              , l = n[o];
            o === "style" ? this.style ? Me(this.style, l) : this.useStyle(l) : o === "shape" ? Me(this.shape, l) : t.prototype.attrKV.call(this, o, l)
        }
        this.style || this.useStyle({})
    }
    ,
    e.prototype.getDefaultStyle = function() {
        return null
    }
    ,
    e.prototype.getDefaultShape = function() {
        return {}
    }
    ,
    e.prototype.canBeInsideText = function() {
        return this.hasFill()
    }
    ,
    e.prototype.getInsideTextFill = function() {
        var n = this.style.fill;
        if (n !== "none") {
            if (Ge(n)) {
                var r = R0(n, 0);
                return r > .5 ? pI : r > .2 ? tGe : gI
            } else if (n)
                return gI
        }
        return pI
    }
    ,
    e.prototype.getInsideTextStroke = function(n) {
        var r = this.style.fill;
        if (Ge(r)) {
            var a = this.__zr
              , i = !!(a && a.isDarkMode())
              , o = R0(n, 0) < hI;
            if (i === o)
                return r
        }
    }
    ,
    e.prototype.buildPath = function(n, r, a) {}
    ,
    e.prototype.pathUpdated = function() {
        this.__dirty &= ~Kd
    }
    ,
    e.prototype.getUpdatedPathProxy = function(n) {
        return !this.path && this.createPathProxy(),
        this.path.beginPath(),
        this.buildPath(this.path, this.shape, n),
        this.path
    }
    ,
    e.prototype.createPathProxy = function() {
        this.path = new yl(!1)
    }
    ,
    e.prototype.hasStroke = function() {
        var n = this.style
          , r = n.stroke;
        return !(r == null || r === "none" || !(n.lineWidth > 0))
    }
    ,
    e.prototype.hasFill = function() {
        var n = this.style
          , r = n.fill;
        return r != null && r !== "none"
    }
    ,
    e.prototype.getBoundingRect = function() {
        var n = this._rect
          , r = this.style
          , a = !n;
        if (a) {
            var i = !1;
            this.path || (i = !0,
            this.createPathProxy());
            var o = this.path;
            (i || this.__dirty & Kd) && (o.beginPath(),
            this.buildPath(o, this.shape, !1),
            this.pathUpdated()),
            n = o.getBoundingRect()
        }
        if (this._rect = n,
        this.hasStroke() && this.path && this.path.len() > 0) {
            var l = this._rectStroke || (this._rectStroke = n.clone());
            if (this.__dirty || a) {
                l.copy(n);
                var s = r.strokeNoScale ? this.getLineScale() : 1
                  , u = r.lineWidth;
                if (!this.hasFill()) {
                    var c = this.strokeContainThreshold;
                    u = Math.max(u, c == null ? 4 : c)
                }
                s > 1e-10 && (l.width += u / s,
                l.height += u / s,
                l.x -= u / s / 2,
                l.y -= u / s / 2)
            }
            return l
        }
        return n
    }
    ,
    e.prototype.contain = function(n, r) {
        var a = this.transformCoordToLocal(n, r)
          , i = this.getBoundingRect()
          , o = this.style;
        if (n = a[0],
        r = a[1],
        i.contain(n, r)) {
            var l = this.path;
            if (this.hasStroke()) {
                var s = o.lineWidth
                  , u = o.strokeNoScale ? this.getLineScale() : 1;
                if (u > 1e-10 && (this.hasFill() || (s = Math.max(s, this.strokeContainThreshold)),
                mKe(l, s / u, n, r)))
                    return !0
            }
            if (this.hasFill())
                return gKe(l, n, r)
        }
        return !1
    }
    ,
    e.prototype.dirtyShape = function() {
        this.__dirty |= Kd,
        this._rect && (this._rect = null),
        this._decalEl && this._decalEl.dirtyShape(),
        this.markRedraw()
    }
    ,
    e.prototype.dirty = function() {
        this.dirtyStyle(),
        this.dirtyShape()
    }
    ,
    e.prototype.animateShape = function(n) {
        return this.animate("shape", n)
    }
    ,
    e.prototype.updateDuringAnimation = function(n) {
        n === "style" ? this.dirtyStyle() : n === "shape" ? this.dirtyShape() : this.markRedraw()
    }
    ,
    e.prototype.attrKV = function(n, r) {
        n === "shape" ? this.setShape(r) : t.prototype.attrKV.call(this, n, r)
    }
    ,
    e.prototype.setShape = function(n, r) {
        var a = this.shape;
        return a || (a = this.shape = {}),
        typeof n == "string" ? a[n] = r : Me(a, n),
        this.dirtyShape(),
        this
    }
    ,
    e.prototype.shapeChanged = function() {
        return !!(this.__dirty & Kd)
    }
    ,
    e.prototype.createStyle = function(n) {
        return jm(AS, n)
    }
    ,
    e.prototype._innerSaveToNormal = function(n) {
        t.prototype._innerSaveToNormal.call(this, n);
        var r = this._normalState;
        n.shape && !r.shape && (r.shape = Me({}, this.shape))
    }
    ,
    e.prototype._applyStateObj = function(n, r, a, i, o, l) {
        t.prototype._applyStateObj.call(this, n, r, a, i, o, l);
        var s = !(r && i), u;
        if (r && r.shape ? o ? i ? u = r.shape : (u = Me({}, a.shape),
        Me(u, r.shape)) : (u = Me({}, i ? this.shape : a.shape),
        Me(u, r.shape)) : s && (u = a.shape),
        u)
            if (o) {
                this.shape = Me({}, this.shape);
                for (var c = {}, f = Gt(u), d = 0; d < f.length; d++) {
                    var v = f[d];
                    typeof u[v] == "object" ? this.shape[v] = u[v] : c[v] = u[v]
                }
                this._transitionState(n, {
                    shape: c
                }, l)
            } else
                this.shape = u,
                this.dirtyShape()
    }
    ,
    e.prototype._mergeStates = function(n) {
        for (var r = t.prototype._mergeStates.call(this, n), a, i = 0; i < n.length; i++) {
            var o = n[i];
            o.shape && (a = a || {},
            this._mergeStyle(a, o.shape))
        }
        return a && (r.shape = a),
        r
    }
    ,
    e.prototype.getAnimationStyleProps = function() {
        return yKe
    }
    ,
    e.prototype.isZeroArea = function() {
        return !1
    }
    ,
    e.extend = function(n) {
        var r = function(i) {
            ge(o, i);
            function o(l) {
                var s = i.call(this, l) || this;
                return n.init && n.init.call(s, l),
                s
            }
            return o.prototype.getDefaultStyle = function() {
                return ut(n.style)
            }
            ,
            o.prototype.getDefaultShape = function() {
                return ut(n.shape)
            }
            ,
            o
        }(e);
        for (var a in n)
            typeof n[a] == "function" && (r.prototype[a] = n[a]);
        return r
    }
    ,
    e.initDefaultProps = function() {
        var n = e.prototype;
        n.type = "path",
        n.strokeContainThreshold = 5,
        n.segmentIgnoreThreshold = 0,
        n.subPixelOptimize = !1,
        n.autoBatch = !1,
        n.__dirty = ei | Up | Kd
    }(),
    e
}(ji);
const jt = bKe;
var xKe = ot({
    strokeFirst: !0,
    font: ku,
    x: 0,
    y: 0,
    textAlign: "left",
    textBaseline: "top",
    miterLimit: 2
}, AS)
  , wie = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.hasStroke = function() {
        var n = this.style
          , r = n.stroke;
        return r != null && r !== "none" && n.lineWidth > 0
    }
    ,
    e.prototype.hasFill = function() {
        var n = this.style
          , r = n.fill;
        return r != null && r !== "none"
    }
    ,
    e.prototype.createStyle = function(n) {
        return jm(xKe, n)
    }
    ,
    e.prototype.setBoundingRect = function(n) {
        this._rect = n
    }
    ,
    e.prototype.getBoundingRect = function() {
        var n = this.style;
        if (!this._rect) {
            var r = n.text;
            r != null ? r += "" : r = "";
            var a = Km(r, n.font, n.textAlign, n.textBaseline);
            if (a.x += n.x || 0,
            a.y += n.y || 0,
            this.hasStroke()) {
                var i = n.lineWidth;
                a.x -= i / 2,
                a.y -= i / 2,
                a.width += i,
                a.height += i
            }
            this._rect = a
        }
        return this._rect
    }
    ,
    e.initDefaultProps = function() {
        var n = e.prototype;
        n.dirtyRectTolerance = 10
    }(),
    e
}(ji);
wie.prototype.type = "tspan";
const B0 = wie;
var SKe = ot({
    x: 0,
    y: 0
}, xf)
  , CKe = {
    style: ot({
        x: !0,
        y: !0,
        width: !0,
        height: !0,
        sx: !0,
        sy: !0,
        sWidth: !0,
        sHeight: !0
    }, r2.style)
};
function wKe(t) {
    return !!(t && typeof t != "string" && t.width && t.height)
}
var _ie = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.createStyle = function(n) {
        return jm(SKe, n)
    }
    ,
    e.prototype._getSize = function(n) {
        var r = this.style
          , a = r[n];
        if (a != null)
            return a;
        var i = wKe(r.image) ? r.image : this.__image;
        if (!i)
            return 0;
        var o = n === "width" ? "height" : "width"
          , l = r[o];
        return l == null ? i[n] : i[n] / i[o] * l
    }
    ,
    e.prototype.getWidth = function() {
        return this._getSize("width")
    }
    ,
    e.prototype.getHeight = function() {
        return this._getSize("height")
    }
    ,
    e.prototype.getAnimationStyleProps = function() {
        return CKe
    }
    ,
    e.prototype.getBoundingRect = function() {
        var n = this.style;
        return this._rect || (this._rect = new Dt(n.x || 0,n.y || 0,this.getWidth(),this.getHeight())),
        this._rect
    }
    ,
    e
}(ji);
_ie.prototype.type = "image";
const Kr = _ie;
function _Ke(t, e) {
    var n = e.x, r = e.y, a = e.width, i = e.height, o = e.r, l, s, u, c;
    a < 0 && (n = n + a,
    a = -a),
    i < 0 && (r = r + i,
    i = -i),
    typeof o == "number" ? l = s = u = c = o : o instanceof Array ? o.length === 1 ? l = s = u = c = o[0] : o.length === 2 ? (l = u = o[0],
    s = c = o[1]) : o.length === 3 ? (l = o[0],
    s = c = o[1],
    u = o[2]) : (l = o[0],
    s = o[1],
    u = o[2],
    c = o[3]) : l = s = u = c = 0;
    var f;
    l + s > a && (f = l + s,
    l *= a / f,
    s *= a / f),
    u + c > a && (f = u + c,
    u *= a / f,
    c *= a / f),
    s + u > i && (f = s + u,
    s *= i / f,
    u *= i / f),
    l + c > i && (f = l + c,
    l *= i / f,
    c *= i / f),
    t.moveTo(n + l, r),
    t.lineTo(n + a - s, r),
    s !== 0 && t.arc(n + a - s, r + s, s, -Math.PI / 2, 0),
    t.lineTo(n + a, r + i - u),
    u !== 0 && t.arc(n + a - u, r + i - u, u, 0, Math.PI / 2),
    t.lineTo(n + c, r + i),
    c !== 0 && t.arc(n + c, r + i - c, c, Math.PI / 2, Math.PI),
    t.lineTo(n, r + l),
    l !== 0 && t.arc(n + l, r + l, l, Math.PI, Math.PI * 1.5)
}
var rv = Math.round;
function Tie(t, e, n) {
    if (!!e) {
        var r = e.x1
          , a = e.x2
          , i = e.y1
          , o = e.y2;
        t.x1 = r,
        t.x2 = a,
        t.y1 = i,
        t.y2 = o;
        var l = n && n.lineWidth;
        return l && (rv(r * 2) === rv(a * 2) && (t.x1 = t.x2 = nf(r, l, !0)),
        rv(i * 2) === rv(o * 2) && (t.y1 = t.y2 = nf(i, l, !0))),
        t
    }
}
function Pie(t, e, n) {
    if (!!e) {
        var r = e.x
          , a = e.y
          , i = e.width
          , o = e.height;
        t.x = r,
        t.y = a,
        t.width = i,
        t.height = o;
        var l = n && n.lineWidth;
        return l && (t.x = nf(r, l, !0),
        t.y = nf(a, l, !0),
        t.width = Math.max(nf(r + i, l, !1) - t.x, i === 0 ? 0 : 1),
        t.height = Math.max(nf(a + o, l, !1) - t.y, o === 0 ? 0 : 1)),
        t
    }
}
function nf(t, e, n) {
    if (!e)
        return t;
    var r = rv(t * 2);
    return (r + rv(e)) % 2 === 0 ? r / 2 : (r + (n ? 1 : -1)) / 2
}
var TKe = function() {
    function t() {
        this.x = 0,
        this.y = 0,
        this.width = 0,
        this.height = 0
    }
    return t
}()
  , PKe = {}
  , Mie = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultShape = function() {
        return new TKe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a, i, o, l;
        if (this.subPixelOptimize) {
            var s = Pie(PKe, r, this.style);
            a = s.x,
            i = s.y,
            o = s.width,
            l = s.height,
            s.r = r.r,
            r = s
        } else
            a = r.x,
            i = r.y,
            o = r.width,
            l = r.height;
        r.r ? _Ke(n, r) : n.rect(a, i, o, l)
    }
    ,
    e.prototype.isZeroArea = function() {
        return !this.shape.width || !this.shape.height
    }
    ,
    e
}(jt);
Mie.prototype.type = "rect";
const tn = Mie;
var gH = {
    fill: "#000"
}
  , mH = 2
  , MKe = {
    style: ot({
        fill: !0,
        stroke: !0,
        fillOpacity: !0,
        strokeOpacity: !0,
        lineWidth: !0,
        fontSize: !0,
        lineHeight: !0,
        width: !0,
        height: !0,
        textShadowColor: !0,
        textShadowBlur: !0,
        textShadowOffsetX: !0,
        textShadowOffsetY: !0,
        backgroundColor: !0,
        padding: !0,
        borderColor: !0,
        borderWidth: !0,
        borderRadius: !0
    }, r2.style)
}
  , Aie = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this) || this;
        return r.type = "text",
        r._children = [],
        r._defaultStyle = gH,
        r.attr(n),
        r
    }
    return e.prototype.childrenRef = function() {
        return this._children
    }
    ,
    e.prototype.update = function() {
        t.prototype.update.call(this),
        this.styleChanged() && this._updateSubTexts();
        for (var n = 0; n < this._children.length; n++) {
            var r = this._children[n];
            r.zlevel = this.zlevel,
            r.z = this.z,
            r.z2 = this.z2,
            r.culling = this.culling,
            r.cursor = this.cursor,
            r.invisible = this.invisible
        }
    }
    ,
    e.prototype.updateTransform = function() {
        var n = this.innerTransformable;
        n ? (n.updateTransform(),
        n.transform && (this.transform = n.transform)) : t.prototype.updateTransform.call(this)
    }
    ,
    e.prototype.getLocalTransform = function(n) {
        var r = this.innerTransformable;
        return r ? r.getLocalTransform(n) : t.prototype.getLocalTransform.call(this, n)
    }
    ,
    e.prototype.getComputedTransform = function() {
        return this.__hostTarget && (this.__hostTarget.getComputedTransform(),
        this.__hostTarget.updateInnerText(!0)),
        t.prototype.getComputedTransform.call(this)
    }
    ,
    e.prototype._updateSubTexts = function() {
        this._childCursor = 0,
        kKe(this.style),
        this.style.rich ? this._updateRichTexts() : this._updatePlainTexts(),
        this._children.length = this._childCursor,
        this.styleUpdated()
    }
    ,
    e.prototype.addSelfToZr = function(n) {
        t.prototype.addSelfToZr.call(this, n);
        for (var r = 0; r < this._children.length; r++)
            this._children[r].__zr = n
    }
    ,
    e.prototype.removeSelfFromZr = function(n) {
        t.prototype.removeSelfFromZr.call(this, n);
        for (var r = 0; r < this._children.length; r++)
            this._children[r].__zr = null
    }
    ,
    e.prototype.getBoundingRect = function() {
        if (this.styleChanged() && this._updateSubTexts(),
        !this._rect) {
            for (var n = new Dt(0,0,0,0), r = this._children, a = [], i = null, o = 0; o < r.length; o++) {
                var l = r[o]
                  , s = l.getBoundingRect()
                  , u = l.getLocalTransform(a);
                u ? (n.copy(s),
                n.applyTransform(u),
                i = i || n.clone(),
                i.union(n)) : (i = i || s.clone(),
                i.union(s))
            }
            this._rect = i || n
        }
        return this._rect
    }
    ,
    e.prototype.setDefaultTextStyle = function(n) {
        this._defaultStyle = n || gH
    }
    ,
    e.prototype.setTextContent = function(n) {}
    ,
    e.prototype._mergeStyle = function(n, r) {
        if (!r)
            return n;
        var a = r.rich
          , i = n.rich || a && {};
        return Me(n, r),
        a && i ? (this._mergeRich(i, a),
        n.rich = i) : i && (n.rich = i),
        n
    }
    ,
    e.prototype._mergeRich = function(n, r) {
        for (var a = Gt(r), i = 0; i < a.length; i++) {
            var o = a[i];
            n[o] = n[o] || {},
            Me(n[o], r[o])
        }
    }
    ,
    e.prototype.getAnimationStyleProps = function() {
        return MKe
    }
    ,
    e.prototype._getOrCreateChild = function(n) {
        var r = this._children[this._childCursor];
        return (!r || !(r instanceof n)) && (r = new n),
        this._children[this._childCursor++] = r,
        r.__zr = this.__zr,
        r.parent = this,
        r
    }
    ,
    e.prototype._updatePlainTexts = function() {
        var n = this.style
          , r = n.font || ku
          , a = n.padding
          , i = _H(n)
          , o = YGe(i, n)
          , l = $P(n)
          , s = !!n.backgroundColor
          , u = o.outerHeight
          , c = o.outerWidth
          , f = o.contentWidth
          , d = o.lines
          , v = o.lineHeight
          , h = this._defaultStyle
          , p = n.x || 0
          , g = n.y || 0
          , m = n.align || h.align || "left"
          , y = n.verticalAlign || h.verticalAlign || "top"
          , b = p
          , x = Ud(g, o.contentHeight, y);
        if (l || a) {
            var C = qp(p, c, m)
              , S = Ud(g, u, y);
            l && this._renderBackground(n, n, C, S, c, u)
        }
        x += v / 2,
        a && (b = wH(p, m, a),
        y === "top" ? x += a[0] : y === "bottom" && (x -= a[2]));
        for (var w = 0, T = !1, P = CH("fill"in n ? n.fill : (T = !0,
        h.fill)), M = SH("stroke"in n ? n.stroke : !s && (!h.autoStroke || T) ? (w = mH,
        h.stroke) : null), A = n.textShadowBlur > 0, O = n.width != null && (n.overflow === "truncate" || n.overflow === "break" || n.overflow === "breakAll"), k = o.calculatedLineHeight, D = 0; D < d.length; D++) {
            var E = this._getOrCreateChild(B0)
              , L = E.createStyle();
            E.useStyle(L),
            L.text = d[D],
            L.x = b,
            L.y = x,
            m && (L.textAlign = m),
            L.textBaseline = "middle",
            L.opacity = n.opacity,
            L.strokeFirst = !0,
            A && (L.shadowBlur = n.textShadowBlur || 0,
            L.shadowColor = n.textShadowColor || "transparent",
            L.shadowOffsetX = n.textShadowOffsetX || 0,
            L.shadowOffsetY = n.textShadowOffsetY || 0),
            L.stroke = M,
            L.fill = P,
            M && (L.lineWidth = n.lineWidth || w,
            L.lineDash = n.lineDash,
            L.lineDashOffset = n.lineDashOffset || 0),
            L.font = r,
            bH(L, n),
            x += v,
            O && E.setBoundingRect(new Dt(qp(L.x, n.width, L.textAlign),Ud(L.y, k, L.textBaseline),f,k))
        }
    }
    ,
    e.prototype._updateRichTexts = function() {
        var n = this.style
          , r = _H(n)
          , a = ZGe(r, n)
          , i = a.width
          , o = a.outerWidth
          , l = a.outerHeight
          , s = n.padding
          , u = n.x || 0
          , c = n.y || 0
          , f = this._defaultStyle
          , d = n.align || f.align
          , v = n.verticalAlign || f.verticalAlign
          , h = qp(u, o, d)
          , p = Ud(c, l, v)
          , g = h
          , m = p;
        s && (g += s[3],
        m += s[0]);
        var y = g + i;
        $P(n) && this._renderBackground(n, n, h, p, o, l);
        for (var b = !!n.backgroundColor, x = 0; x < a.lines.length; x++) {
            for (var C = a.lines[x], S = C.tokens, w = S.length, T = C.lineHeight, P = C.width, M = 0, A = g, O = y, k = w - 1, D = void 0; M < w && (D = S[M],
            !D.align || D.align === "left"); )
                this._placeToken(D, n, T, m, A, "left", b),
                P -= D.width,
                A += D.width,
                M++;
            for (; k >= 0 && (D = S[k],
            D.align === "right"); )
                this._placeToken(D, n, T, m, O, "right", b),
                P -= D.width,
                O -= D.width,
                k--;
            for (A += (i - (A - g) - (y - O) - P) / 2; M <= k; )
                D = S[M],
                this._placeToken(D, n, T, m, A + D.width / 2, "center", b),
                A += D.width,
                M++;
            m += T
        }
    }
    ,
    e.prototype._placeToken = function(n, r, a, i, o, l, s) {
        var u = r.rich[n.styleName] || {};
        u.text = n.text;
        var c = n.verticalAlign
          , f = i + a / 2;
        c === "top" ? f = i + n.height / 2 : c === "bottom" && (f = i + a - n.height / 2);
        var d = !n.isLineHolder && $P(u);
        d && this._renderBackground(u, r, l === "right" ? o - n.width : l === "center" ? o - n.width / 2 : o, f - n.height / 2, n.width, n.height);
        var v = !!u.backgroundColor
          , h = n.textPadding;
        h && (o = wH(o, l, h),
        f -= n.height / 2 - h[0] - n.innerHeight / 2);
        var p = this._getOrCreateChild(B0)
          , g = p.createStyle();
        p.useStyle(g);
        var m = this._defaultStyle
          , y = !1
          , b = 0
          , x = CH("fill"in u ? u.fill : "fill"in r ? r.fill : (y = !0,
        m.fill))
          , C = SH("stroke"in u ? u.stroke : "stroke"in r ? r.stroke : !v && !s && (!m.autoStroke || y) ? (b = mH,
        m.stroke) : null)
          , S = u.textShadowBlur > 0 || r.textShadowBlur > 0;
        g.text = n.text,
        g.x = o,
        g.y = f,
        S && (g.shadowBlur = u.textShadowBlur || r.textShadowBlur || 0,
        g.shadowColor = u.textShadowColor || r.textShadowColor || "transparent",
        g.shadowOffsetX = u.textShadowOffsetX || r.textShadowOffsetX || 0,
        g.shadowOffsetY = u.textShadowOffsetY || r.textShadowOffsetY || 0),
        g.textAlign = l,
        g.textBaseline = "middle",
        g.font = n.font || ku,
        g.opacity = ho(u.opacity, r.opacity, 1),
        bH(g, u),
        C && (g.lineWidth = ho(u.lineWidth, r.lineWidth, b),
        g.lineDash = Ot(u.lineDash, r.lineDash),
        g.lineDashOffset = r.lineDashOffset || 0,
        g.stroke = C),
        x && (g.fill = x);
        var w = n.contentWidth
          , T = n.contentHeight;
        p.setBoundingRect(new Dt(qp(g.x, w, g.textAlign),Ud(g.y, T, g.textBaseline),w,T))
    }
    ,
    e.prototype._renderBackground = function(n, r, a, i, o, l) {
        var s = n.backgroundColor, u = n.borderWidth, c = n.borderColor, f = s && s.image, d = s && !f, v = n.borderRadius, h = this, p, g;
        if (d || n.lineHeight || u && c) {
            p = this._getOrCreateChild(tn),
            p.useStyle(p.createStyle()),
            p.style.fill = null;
            var m = p.shape;
            m.x = a,
            m.y = i,
            m.width = o,
            m.height = l,
            m.r = v,
            p.dirtyShape()
        }
        if (d) {
            var y = p.style;
            y.fill = s || null,
            y.fillOpacity = Ot(n.fillOpacity, 1)
        } else if (f) {
            g = this._getOrCreateChild(Kr),
            g.onload = function() {
                h.dirtyStyle()
            }
            ;
            var b = g.style;
            b.image = s.image,
            b.x = a,
            b.y = i,
            b.width = o,
            b.height = l
        }
        if (u && c) {
            var y = p.style;
            y.lineWidth = u,
            y.stroke = c,
            y.strokeOpacity = Ot(n.strokeOpacity, 1),
            y.lineDash = n.borderDash,
            y.lineDashOffset = n.borderDashOffset || 0,
            p.strokeContainThreshold = 0,
            p.hasFill() && p.hasStroke() && (y.strokeFirst = !0,
            y.lineWidth *= 2)
        }
        var x = (p || g).style;
        x.shadowBlur = n.shadowBlur || 0,
        x.shadowColor = n.shadowColor || "transparent",
        x.shadowOffsetX = n.shadowOffsetX || 0,
        x.shadowOffsetY = n.shadowOffsetY || 0,
        x.opacity = ho(n.opacity, r.opacity, 1)
    }
    ,
    e.makeFont = function(n) {
        var r = "";
        return kie(n) && (r = [n.fontStyle, n.fontWeight, Iie(n.fontSize), n.fontFamily || "sans-serif"].join(" ")),
        r && Di(r) || n.textFont || n.font
    }
    ,
    e
}(ji)
  , AKe = {
    left: !0,
    right: 1,
    center: 1
}
  , IKe = {
    top: 1,
    bottom: 1,
    middle: 1
}
  , yH = ["fontStyle", "fontWeight", "fontSize", "fontFamily"];
function Iie(t) {
    return typeof t == "string" && (t.indexOf("px") !== -1 || t.indexOf("rem") !== -1 || t.indexOf("em") !== -1) ? t : isNaN(+t) ? x6 + "px" : t + "px"
}
function bH(t, e) {
    for (var n = 0; n < yH.length; n++) {
        var r = yH[n]
          , a = e[r];
        a != null && (t[r] = a)
    }
}
function kie(t) {
    return t.fontSize != null || t.fontFamily || t.fontWeight
}
function kKe(t) {
    return xH(t),
    Z(t.rich, xH),
    t
}
function xH(t) {
    if (t) {
        t.font = Aie.makeFont(t);
        var e = t.align;
        e === "middle" && (e = "center"),
        t.align = e == null || AKe[e] ? e : "left";
        var n = t.verticalAlign;
        n === "center" && (n = "middle"),
        t.verticalAlign = n == null || IKe[n] ? n : "top";
        var r = t.padding;
        r && (t.padding = qw(t.padding))
    }
}
function SH(t, e) {
    return t == null || e <= 0 || t === "transparent" || t === "none" ? null : t.image || t.colorStops ? "#000" : t
}
function CH(t) {
    return t == null || t === "none" ? null : t.image || t.colorStops ? "#000" : t
}
function wH(t, e, n) {
    return e === "right" ? t - n[1] : e === "center" ? t + n[3] / 2 - n[1] / 2 : t + n[3]
}
function _H(t) {
    var e = t.text;
    return e != null && (e += ""),
    e
}
function $P(t) {
    return !!(t.backgroundColor || t.lineHeight || t.borderWidth && t.borderColor)
}
const Jt = Aie;
var Ct = an()
  , _I = function(t, e, n, r) {
    if (r) {
        var a = Ct(r);
        a.dataIndex = n,
        a.dataType = e,
        a.seriesIndex = t,
        r.type === "group" && r.traverse(function(i) {
            var o = Ct(i);
            o.seriesIndex = t,
            o.dataIndex = n,
            o.dataType = e
        })
    }
}
  , TH = 1
  , PH = {}
  , Oie = an()
  , z6 = an()
  , H6 = 0
  , Ym = 1
  , i2 = 2
  , Ta = ["emphasis", "blur", "select"]
  , V0 = ["normal", "emphasis", "blur", "select"]
  , Ph = 10
  , OKe = 9
  , Sf = "highlight"
  , ox = "downplay"
  , Bg = "select"
  , lx = "unselect"
  , Vg = "toggleSelect";
function Cd(t) {
    return t != null && t !== "none"
}
var MH = new Gm(100);
function AH(t) {
    if (Ge(t)) {
        var e = MH.get(t);
        return e || (e = _S(t, -.1),
        MH.put(t, e)),
        e
    } else if (Hm(t)) {
        var n = Me({}, t);
        return n.colorStops = Le(t.colorStops, function(r) {
            return {
                offset: r.offset,
                color: _S(r.color, -.1)
            }
        }),
        n
    }
    return t
}
function o2(t, e, n) {
    t.onHoverStateChange && (t.hoverState || 0) !== n && t.onHoverStateChange(e),
    t.hoverState = n
}
function Die(t) {
    o2(t, "emphasis", i2)
}
function Eie(t) {
    t.hoverState === i2 && o2(t, "normal", H6)
}
function j6(t) {
    o2(t, "blur", Ym)
}
function Lie(t) {
    t.hoverState === Ym && o2(t, "normal", H6)
}
function DKe(t) {
    t.selected = !0
}
function EKe(t) {
    t.selected = !1
}
function IH(t, e, n) {
    e(t, n)
}
function Ss(t, e, n) {
    IH(t, e, n),
    t.isGroup && t.traverse(function(r) {
        IH(r, e, n)
    })
}
function IS(t, e) {
    switch (e) {
    case "emphasis":
        t.hoverState = i2;
        break;
    case "normal":
        t.hoverState = H6;
        break;
    case "blur":
        t.hoverState = Ym;
        break;
    case "select":
        t.selected = !0
    }
}
function LKe(t, e, n, r) {
    for (var a = t.style, i = {}, o = 0; o < e.length; o++) {
        var l = e[o]
          , s = a[l];
        i[l] = s == null ? r && r[l] : s
    }
    for (var o = 0; o < t.animators.length; o++) {
        var u = t.animators[o];
        u.__fromStateTransition && u.__fromStateTransition.indexOf(n) < 0 && u.targetName === "style" && u.saveTo(i, e)
    }
    return i
}
function RKe(t, e, n, r) {
    var a = n && Rt(n, "select") >= 0
      , i = !1;
    if (t instanceof jt) {
        var o = Oie(t)
          , l = a && o.selectFill || o.normalFill
          , s = a && o.selectStroke || o.normalStroke;
        if (Cd(l) || Cd(s)) {
            r = r || {};
            var u = r.style || {};
            u.fill === "inherit" ? (i = !0,
            r = Me({}, r),
            u = Me({}, u),
            u.fill = l) : !Cd(u.fill) && Cd(l) ? (i = !0,
            r = Me({}, r),
            u = Me({}, u),
            u.fill = AH(l)) : !Cd(u.stroke) && Cd(s) && (i || (r = Me({}, r),
            u = Me({}, u)),
            u.stroke = AH(s)),
            r.style = u
        }
    }
    if (r && r.z2 == null) {
        i || (r = Me({}, r));
        var c = t.z2EmphasisLift;
        r.z2 = t.z2 + (c != null ? c : Ph)
    }
    return r
}
function NKe(t, e, n) {
    if (n && n.z2 == null) {
        n = Me({}, n);
        var r = t.z2SelectLift;
        n.z2 = t.z2 + (r != null ? r : OKe)
    }
    return n
}
function $Ke(t, e, n) {
    var r = Rt(t.currentStates, e) >= 0
      , a = t.style.opacity
      , i = r ? null : LKe(t, ["opacity"], e, {
        opacity: 1
    });
    n = n || {};
    var o = n.style || {};
    return o.opacity == null && (n = Me({}, n),
    o = Me({
        opacity: r ? a : i.opacity * .1
    }, o),
    n.style = o),
    n
}
function FP(t, e) {
    var n = this.states[t];
    if (this.style) {
        if (t === "emphasis")
            return RKe(this, t, e, n);
        if (t === "blur")
            return $Ke(this, t, n);
        if (t === "select")
            return NKe(this, t, n)
    }
    return n
}
function Bf(t) {
    t.stateProxy = FP;
    var e = t.getTextContent()
      , n = t.getTextGuideLine();
    e && (e.stateProxy = FP),
    n && (n.stateProxy = FP)
}
function kH(t, e) {
    !Fie(t, e) && !t.__highByOuter && Ss(t, Die)
}
function OH(t, e) {
    !Fie(t, e) && !t.__highByOuter && Ss(t, Eie)
}
function us(t, e) {
    t.__highByOuter |= 1 << (e || 0),
    Ss(t, Die)
}
function cs(t, e) {
    !(t.__highByOuter &= ~(1 << (e || 0))) && Ss(t, Eie)
}
function Rie(t) {
    Ss(t, j6)
}
function W6(t) {
    Ss(t, Lie)
}
function Nie(t) {
    Ss(t, DKe)
}
function $ie(t) {
    Ss(t, EKe)
}
function Fie(t, e) {
    return t.__highDownSilentOnTouch && e.zrByTouch
}
function Bie(t) {
    var e = t.getModel()
      , n = []
      , r = [];
    e.eachComponent(function(a, i) {
        var o = z6(i)
          , l = a === "series"
          , s = l ? t.getViewOfSeriesModel(i) : t.getViewOfComponentModel(i);
        !l && r.push(s),
        o.isBlured && (s.group.traverse(function(u) {
            Lie(u)
        }),
        l && n.push(i)),
        o.isBlured = !1
    }),
    Z(r, function(a) {
        a && a.toggleBlurSeries && a.toggleBlurSeries(n, !1, e)
    })
}
function TI(t, e, n, r) {
    var a = r.getModel();
    n = n || "coordinateSystem";
    function i(u, c) {
        for (var f = 0; f < c.length; f++) {
            var d = u.getItemGraphicEl(c[f]);
            d && W6(d)
        }
    }
    if (t != null && !(!e || e === "none")) {
        var o = a.getSeriesByIndex(t)
          , l = o.coordinateSystem;
        l && l.master && (l = l.master);
        var s = [];
        a.eachSeries(function(u) {
            var c = o === u
              , f = u.coordinateSystem;
            f && f.master && (f = f.master);
            var d = f && l ? f === l : c;
            if (!(n === "series" && !c || n === "coordinateSystem" && !d || e === "series" && c)) {
                var v = r.getViewOfSeriesModel(u);
                if (v.group.traverse(function(g) {
                    g.__highByOuter && c && e === "self" || j6(g)
                }),
                Qr(e))
                    i(u.getData(), e);
                else if (st(e))
                    for (var h = Gt(e), p = 0; p < h.length; p++)
                        i(u.getData(h[p]), e[h[p]]);
                s.push(u),
                z6(u).isBlured = !0
            }
        }),
        a.eachComponent(function(u, c) {
            if (u !== "series") {
                var f = r.getViewOfComponentModel(c);
                f && f.toggleBlurSeries && f.toggleBlurSeries(s, !0, a)
            }
        })
    }
}
function PI(t, e, n) {
    if (!(t == null || e == null)) {
        var r = n.getModel().getComponent(t, e);
        if (!!r) {
            z6(r).isBlured = !0;
            var a = n.getViewOfComponentModel(r);
            !a || !a.focusBlurEnabled || a.group.traverse(function(i) {
                j6(i)
            })
        }
    }
}
function FKe(t, e, n) {
    var r = t.seriesIndex
      , a = t.getData(e.dataType);
    if (!!a) {
        var i = $f(a, e);
        i = (ke(i) ? i[0] : i) || 0;
        var o = a.getItemGraphicEl(i);
        if (!o)
            for (var l = a.count(), s = 0; !o && s < l; )
                o = a.getItemGraphicEl(s++);
        if (o) {
            var u = Ct(o);
            TI(r, u.focus, u.blurScope, n)
        } else {
            var c = t.get(["emphasis", "focus"])
              , f = t.get(["emphasis", "blurScope"]);
            c != null && TI(r, c, f, n)
        }
    }
}
function G6(t, e, n, r) {
    var a = {
        focusSelf: !1,
        dispatchers: null
    };
    if (t == null || t === "series" || e == null || n == null)
        return a;
    var i = r.getModel().getComponent(t, e);
    if (!i)
        return a;
    var o = r.getViewOfComponentModel(i);
    if (!o || !o.findHighDownDispatchers)
        return a;
    for (var l = o.findHighDownDispatchers(n), s, u = 0; u < l.length; u++)
        if (Ct(l[u]).focus === "self") {
            s = !0;
            break
        }
    return {
        focusSelf: s,
        dispatchers: l
    }
}
function BKe(t, e, n) {
    var r = Ct(t)
      , a = G6(r.componentMainType, r.componentIndex, r.componentHighDownName, n)
      , i = a.dispatchers
      , o = a.focusSelf;
    i ? (o && PI(r.componentMainType, r.componentIndex, n),
    Z(i, function(l) {
        return kH(l, e)
    })) : (TI(r.seriesIndex, r.focus, r.blurScope, n),
    r.focus === "self" && PI(r.componentMainType, r.componentIndex, n),
    kH(t, e))
}
function VKe(t, e, n) {
    Bie(n);
    var r = Ct(t)
      , a = G6(r.componentMainType, r.componentIndex, r.componentHighDownName, n).dispatchers;
    a ? Z(a, function(i) {
        return OH(i, e)
    }) : OH(t, e)
}
function zKe(t, e, n) {
    if (!!AI(e)) {
        var r = e.dataType
          , a = t.getData(r)
          , i = $f(a, e);
        ke(i) || (i = [i]),
        t[e.type === Vg ? "toggleSelect" : e.type === Bg ? "select" : "unselect"](i, r)
    }
}
function DH(t) {
    var e = t.getAllData();
    Z(e, function(n) {
        var r = n.data
          , a = n.type;
        r.eachItemGraphicEl(function(i, o) {
            t.isSelected(o, a) ? Nie(i) : $ie(i)
        })
    })
}
function HKe(t) {
    var e = [];
    return t.eachSeries(function(n) {
        var r = n.getAllData();
        Z(r, function(a) {
            a.data;
            var i = a.type
              , o = n.getSelectedDataIndices();
            if (o.length > 0) {
                var l = {
                    dataIndex: o,
                    seriesIndex: n.seriesIndex
                };
                i != null && (l.dataType = i),
                e.push(l)
            }
        })
    }),
    e
}
function xu(t, e, n) {
    rf(t, !0),
    Ss(t, Bf),
    MI(t, e, n)
}
function jKe(t) {
    rf(t, !1)
}
function Qn(t, e, n, r) {
    r ? jKe(t) : xu(t, e, n)
}
function MI(t, e, n) {
    var r = Ct(t);
    e != null ? (r.focus = e,
    r.blurScope = n) : r.focus && (r.focus = null)
}
var EH = ["emphasis", "blur", "select"]
  , WKe = {
    itemStyle: "getItemStyle",
    lineStyle: "getLineStyle",
    areaStyle: "getAreaStyle"
};
function Jr(t, e, n, r) {
    n = n || "itemStyle";
    for (var a = 0; a < EH.length; a++) {
        var i = EH[a]
          , o = e.getModel([i, n])
          , l = t.ensureState(i);
        l.style = r ? r(o) : o[WKe[n]]()
    }
}
function rf(t, e) {
    var n = e === !1
      , r = t;
    t.highDownSilentOnTouch && (r.__highDownSilentOnTouch = t.highDownSilentOnTouch),
    (!n || r.__highDownDispatcher) && (r.__highByOuter = r.__highByOuter || 0,
    r.__highDownDispatcher = !n)
}
function z0(t) {
    return !!(t && t.__highDownDispatcher)
}
function GKe(t, e, n) {
    var r = Ct(t);
    r.componentMainType = e.mainType,
    r.componentIndex = e.componentIndex,
    r.componentHighDownName = n
}
function KKe(t) {
    var e = PH[t];
    return e == null && TH <= 32 && (e = PH[t] = TH++),
    e
}
function AI(t) {
    var e = t.type;
    return e === Bg || e === lx || e === Vg
}
function LH(t) {
    var e = t.type;
    return e === Sf || e === ox
}
function UKe(t) {
    var e = Oie(t);
    e.normalFill = t.style.fill,
    e.normalStroke = t.style.stroke;
    var n = t.states.select || {};
    e.selectFill = n.style && n.style.fill || null,
    e.selectStroke = n.style && n.style.stroke || null
}
var wd = yl.CMD
  , YKe = [[], [], []]
  , RH = Math.sqrt
  , qKe = Math.atan2;
function Vie(t, e) {
    if (!!e) {
        var n = t.data, r = t.len(), a, i, o, l, s, u, c = wd.M, f = wd.C, d = wd.L, v = wd.R, h = wd.A, p = wd.Q;
        for (o = 0,
        l = 0; o < r; ) {
            switch (a = n[o++],
            l = o,
            i = 0,
            a) {
            case c:
                i = 1;
                break;
            case d:
                i = 1;
                break;
            case f:
                i = 3;
                break;
            case p:
                i = 2;
                break;
            case h:
                var g = e[4]
                  , m = e[5]
                  , y = RH(e[0] * e[0] + e[1] * e[1])
                  , b = RH(e[2] * e[2] + e[3] * e[3])
                  , x = qKe(-e[1] / b, e[0] / y);
                n[o] *= y,
                n[o++] += g,
                n[o] *= b,
                n[o++] += m,
                n[o++] *= y,
                n[o++] *= b,
                n[o++] += x,
                n[o++] += x,
                o += 2,
                l = o;
                break;
            case v:
                u[0] = n[o++],
                u[1] = n[o++],
                Wr(u, u, e),
                n[l++] = u[0],
                n[l++] = u[1],
                u[0] += n[o++],
                u[1] += n[o++],
                Wr(u, u, e),
                n[l++] = u[0],
                n[l++] = u[1]
            }
            for (s = 0; s < i; s++) {
                var C = YKe[s];
                C[0] = n[o++],
                C[1] = n[o++],
                Wr(C, C, e),
                n[l++] = C[0],
                n[l++] = C[1]
            }
        }
        t.increaseVersion()
    }
}
var BP = Math.sqrt
  , g1 = Math.sin
  , m1 = Math.cos
  , gp = Math.PI;
function NH(t) {
    return Math.sqrt(t[0] * t[0] + t[1] * t[1])
}
function II(t, e) {
    return (t[0] * e[0] + t[1] * e[1]) / (NH(t) * NH(e))
}
function $H(t, e) {
    return (t[0] * e[1] < t[1] * e[0] ? -1 : 1) * Math.acos(II(t, e))
}
function FH(t, e, n, r, a, i, o, l, s, u, c) {
    var f = s * (gp / 180)
      , d = m1(f) * (t - n) / 2 + g1(f) * (e - r) / 2
      , v = -1 * g1(f) * (t - n) / 2 + m1(f) * (e - r) / 2
      , h = d * d / (o * o) + v * v / (l * l);
    h > 1 && (o *= BP(h),
    l *= BP(h));
    var p = (a === i ? -1 : 1) * BP((o * o * (l * l) - o * o * (v * v) - l * l * (d * d)) / (o * o * (v * v) + l * l * (d * d))) || 0
      , g = p * o * v / l
      , m = p * -l * d / o
      , y = (t + n) / 2 + m1(f) * g - g1(f) * m
      , b = (e + r) / 2 + g1(f) * g + m1(f) * m
      , x = $H([1, 0], [(d - g) / o, (v - m) / l])
      , C = [(d - g) / o, (v - m) / l]
      , S = [(-1 * d - g) / o, (-1 * v - m) / l]
      , w = $H(C, S);
    if (II(C, S) <= -1 && (w = gp),
    II(C, S) >= 1 && (w = 0),
    w < 0) {
        var T = Math.round(w / gp * 1e6) / 1e6;
        w = gp * 2 + T % 2 * gp
    }
    c.addData(u, y, b, o, l, x, w, f, i)
}
var XKe = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig
  , ZKe = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
function QKe(t) {
    var e = new yl;
    if (!t)
        return e;
    var n = 0, r = 0, a = n, i = r, o, l = yl.CMD, s = t.match(XKe);
    if (!s)
        return e;
    for (var u = 0; u < s.length; u++) {
        for (var c = s[u], f = c.charAt(0), d = void 0, v = c.match(ZKe) || [], h = v.length, p = 0; p < h; p++)
            v[p] = parseFloat(v[p]);
        for (var g = 0; g < h; ) {
            var m = void 0
              , y = void 0
              , b = void 0
              , x = void 0
              , C = void 0
              , S = void 0
              , w = void 0
              , T = n
              , P = r
              , M = void 0
              , A = void 0;
            switch (f) {
            case "l":
                n += v[g++],
                r += v[g++],
                d = l.L,
                e.addData(d, n, r);
                break;
            case "L":
                n = v[g++],
                r = v[g++],
                d = l.L,
                e.addData(d, n, r);
                break;
            case "m":
                n += v[g++],
                r += v[g++],
                d = l.M,
                e.addData(d, n, r),
                a = n,
                i = r,
                f = "l";
                break;
            case "M":
                n = v[g++],
                r = v[g++],
                d = l.M,
                e.addData(d, n, r),
                a = n,
                i = r,
                f = "L";
                break;
            case "h":
                n += v[g++],
                d = l.L,
                e.addData(d, n, r);
                break;
            case "H":
                n = v[g++],
                d = l.L,
                e.addData(d, n, r);
                break;
            case "v":
                r += v[g++],
                d = l.L,
                e.addData(d, n, r);
                break;
            case "V":
                r = v[g++],
                d = l.L,
                e.addData(d, n, r);
                break;
            case "C":
                d = l.C,
                e.addData(d, v[g++], v[g++], v[g++], v[g++], v[g++], v[g++]),
                n = v[g - 2],
                r = v[g - 1];
                break;
            case "c":
                d = l.C,
                e.addData(d, v[g++] + n, v[g++] + r, v[g++] + n, v[g++] + r, v[g++] + n, v[g++] + r),
                n += v[g - 2],
                r += v[g - 1];
                break;
            case "S":
                m = n,
                y = r,
                M = e.len(),
                A = e.data,
                o === l.C && (m += n - A[M - 4],
                y += r - A[M - 3]),
                d = l.C,
                T = v[g++],
                P = v[g++],
                n = v[g++],
                r = v[g++],
                e.addData(d, m, y, T, P, n, r);
                break;
            case "s":
                m = n,
                y = r,
                M = e.len(),
                A = e.data,
                o === l.C && (m += n - A[M - 4],
                y += r - A[M - 3]),
                d = l.C,
                T = n + v[g++],
                P = r + v[g++],
                n += v[g++],
                r += v[g++],
                e.addData(d, m, y, T, P, n, r);
                break;
            case "Q":
                T = v[g++],
                P = v[g++],
                n = v[g++],
                r = v[g++],
                d = l.Q,
                e.addData(d, T, P, n, r);
                break;
            case "q":
                T = v[g++] + n,
                P = v[g++] + r,
                n += v[g++],
                r += v[g++],
                d = l.Q,
                e.addData(d, T, P, n, r);
                break;
            case "T":
                m = n,
                y = r,
                M = e.len(),
                A = e.data,
                o === l.Q && (m += n - A[M - 4],
                y += r - A[M - 3]),
                n = v[g++],
                r = v[g++],
                d = l.Q,
                e.addData(d, m, y, n, r);
                break;
            case "t":
                m = n,
                y = r,
                M = e.len(),
                A = e.data,
                o === l.Q && (m += n - A[M - 4],
                y += r - A[M - 3]),
                n += v[g++],
                r += v[g++],
                d = l.Q,
                e.addData(d, m, y, n, r);
                break;
            case "A":
                b = v[g++],
                x = v[g++],
                C = v[g++],
                S = v[g++],
                w = v[g++],
                T = n,
                P = r,
                n = v[g++],
                r = v[g++],
                d = l.A,
                FH(T, P, n, r, S, w, b, x, C, d, e);
                break;
            case "a":
                b = v[g++],
                x = v[g++],
                C = v[g++],
                S = v[g++],
                w = v[g++],
                T = n,
                P = r,
                n += v[g++],
                r += v[g++],
                d = l.A,
                FH(T, P, n, r, S, w, b, x, C, d, e);
                break
            }
        }
        (f === "z" || f === "Z") && (d = l.Z,
        e.addData(d),
        n = a,
        r = i),
        o = d
    }
    return e.toStatic(),
    e
}
var zie = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.applyTransform = function(n) {}
    ,
    e
}(jt);
function Hie(t) {
    return t.setData != null
}
function jie(t, e) {
    var n = QKe(t)
      , r = Me({}, e);
    return r.buildPath = function(a) {
        if (Hie(a)) {
            a.setData(n.data);
            var i = a.getContext();
            i && a.rebuildPath(i, 1)
        } else {
            var i = a;
            n.rebuildPath(i, 1)
        }
    }
    ,
    r.applyTransform = function(a) {
        Vie(n, a),
        this.dirtyShape()
    }
    ,
    r
}
function Wie(t, e) {
    return new zie(jie(t, e))
}
function JKe(t, e) {
    var n = jie(t, e)
      , r = function(a) {
        ge(i, a);
        function i(o) {
            var l = a.call(this, o) || this;
            return l.applyTransform = n.applyTransform,
            l.buildPath = n.buildPath,
            l
        }
        return i
    }(zie);
    return r
}
function eUe(t, e) {
    for (var n = [], r = t.length, a = 0; a < r; a++) {
        var i = t[a];
        n.push(i.getUpdatedPathProxy(!0))
    }
    var o = new jt(e);
    return o.createPathProxy(),
    o.buildPath = function(l) {
        if (Hie(l)) {
            l.appendPath(n);
            var s = l.getContext();
            s && l.rebuildPath(s, 1)
        }
    }
    ,
    o
}
function K6(t, e) {
    e = e || {};
    var n = new jt;
    return t.shape && n.setShape(t.shape),
    n.setStyle(t.style),
    e.bakeTransform ? Vie(n.path, t.getComputedTransform()) : e.toLocal ? n.setLocalTransform(t.getComputedTransform()) : n.copyTransform(t),
    n.buildPath = t.buildPath,
    n.applyTransform = n.applyTransform,
    n.z = t.z,
    n.z2 = t.z2,
    n.zlevel = t.zlevel,
    n
}
var tUe = function() {
    function t() {
        this.cx = 0,
        this.cy = 0,
        this.r = 0
    }
    return t
}()
  , Gie = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultShape = function() {
        return new tUe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        n.moveTo(r.cx + r.r, r.cy),
        n.arc(r.cx, r.cy, r.r, 0, Math.PI * 2)
    }
    ,
    e
}(jt);
Gie.prototype.type = "circle";
const Mo = Gie;
var nUe = function() {
    function t() {
        this.cx = 0,
        this.cy = 0,
        this.rx = 0,
        this.ry = 0
    }
    return t
}()
  , Kie = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultShape = function() {
        return new nUe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = .5522848
          , i = r.cx
          , o = r.cy
          , l = r.rx
          , s = r.ry
          , u = l * a
          , c = s * a;
        n.moveTo(i - l, o),
        n.bezierCurveTo(i - l, o - c, i - u, o - s, i, o - s),
        n.bezierCurveTo(i + u, o - s, i + l, o - c, i + l, o),
        n.bezierCurveTo(i + l, o + c, i + u, o + s, i, o + s),
        n.bezierCurveTo(i - u, o + s, i - l, o + c, i - l, o),
        n.closePath()
    }
    ,
    e
}(jt);
Kie.prototype.type = "ellipse";
const l2 = Kie;
var Uie = Math.PI
  , VP = Uie * 2
  , bc = Math.sin
  , _d = Math.cos
  , rUe = Math.acos
  , ta = Math.atan2
  , BH = Math.abs
  , zg = Math.sqrt
  , Xp = Math.max
  , Ho = Math.min
  , eo = 1e-4;
function aUe(t, e, n, r, a, i, o, l) {
    var s = n - t
      , u = r - e
      , c = o - a
      , f = l - i
      , d = f * s - c * u;
    if (!(d * d < eo))
        return d = (c * (e - i) - f * (t - a)) / d,
        [t + d * s, e + d * u]
}
function y1(t, e, n, r, a, i, o) {
    var l = t - n
      , s = e - r
      , u = (o ? i : -i) / zg(l * l + s * s)
      , c = u * s
      , f = -u * l
      , d = t + c
      , v = e + f
      , h = n + c
      , p = r + f
      , g = (d + h) / 2
      , m = (v + p) / 2
      , y = h - d
      , b = p - v
      , x = y * y + b * b
      , C = a - i
      , S = d * p - h * v
      , w = (b < 0 ? -1 : 1) * zg(Xp(0, C * C * x - S * S))
      , T = (S * b - y * w) / x
      , P = (-S * y - b * w) / x
      , M = (S * b + y * w) / x
      , A = (-S * y + b * w) / x
      , O = T - g
      , k = P - m
      , D = M - g
      , E = A - m;
    return O * O + k * k > D * D + E * E && (T = M,
    P = A),
    {
        cx: T,
        cy: P,
        x0: -c,
        y0: -f,
        x1: T * (a / C - 1),
        y1: P * (a / C - 1)
    }
}
function iUe(t) {
    var e;
    if (ke(t)) {
        var n = t.length;
        if (!n)
            return t;
        n === 1 ? e = [t[0], t[0], 0, 0] : n === 2 ? e = [t[0], t[0], t[1], t[1]] : n === 3 ? e = t.concat(t[2]) : e = t
    } else
        e = [t, t, t, t];
    return e
}
function oUe(t, e) {
    var n, r = Xp(e.r, 0), a = Xp(e.r0 || 0, 0), i = r > 0, o = a > 0;
    if (!(!i && !o)) {
        if (i || (r = a,
        a = 0),
        a > r) {
            var l = r;
            r = a,
            a = l
        }
        var s = e.startAngle
          , u = e.endAngle;
        if (!(isNaN(s) || isNaN(u))) {
            var c = e.cx
              , f = e.cy
              , d = !!e.clockwise
              , v = BH(u - s)
              , h = v > VP && v % VP;
            if (h > eo && (v = h),
            !(r > eo))
                t.moveTo(c, f);
            else if (v > VP - eo)
                t.moveTo(c + r * _d(s), f + r * bc(s)),
                t.arc(c, f, r, s, u, !d),
                a > eo && (t.moveTo(c + a * _d(u), f + a * bc(u)),
                t.arc(c, f, a, u, s, d));
            else {
                var p = void 0
                  , g = void 0
                  , m = void 0
                  , y = void 0
                  , b = void 0
                  , x = void 0
                  , C = void 0
                  , S = void 0
                  , w = void 0
                  , T = void 0
                  , P = void 0
                  , M = void 0
                  , A = void 0
                  , O = void 0
                  , k = void 0
                  , D = void 0
                  , E = r * _d(s)
                  , L = r * bc(s)
                  , N = a * _d(u)
                  , R = a * bc(u)
                  , $ = v > eo;
                if ($) {
                    var W = e.cornerRadius;
                    W && (n = iUe(W),
                    p = n[0],
                    g = n[1],
                    m = n[2],
                    y = n[3]);
                    var B = BH(r - a) / 2;
                    if (b = Ho(B, m),
                    x = Ho(B, y),
                    C = Ho(B, p),
                    S = Ho(B, g),
                    P = w = Xp(b, x),
                    M = T = Xp(C, S),
                    (w > eo || T > eo) && (A = r * _d(u),
                    O = r * bc(u),
                    k = a * _d(s),
                    D = a * bc(s),
                    v < Uie)) {
                        var G = aUe(E, L, k, D, A, O, N, R);
                        if (G) {
                            var K = E - G[0]
                              , V = L - G[1]
                              , U = A - G[0]
                              , X = O - G[1]
                              , Y = 1 / bc(rUe((K * U + V * X) / (zg(K * K + V * V) * zg(U * U + X * X))) / 2)
                              , te = zg(G[0] * G[0] + G[1] * G[1]);
                            P = Ho(w, (r - te) / (Y + 1)),
                            M = Ho(T, (a - te) / (Y - 1))
                        }
                    }
                }
                if (!$)
                    t.moveTo(c + E, f + L);
                else if (P > eo) {
                    var ne = Ho(m, P)
                      , ie = Ho(y, P)
                      , ae = y1(k, D, E, L, r, ne, d)
                      , q = y1(A, O, N, R, r, ie, d);
                    t.moveTo(c + ae.cx + ae.x0, f + ae.cy + ae.y0),
                    P < w && ne === ie ? t.arc(c + ae.cx, f + ae.cy, P, ta(ae.y0, ae.x0), ta(q.y0, q.x0), !d) : (ne > 0 && t.arc(c + ae.cx, f + ae.cy, ne, ta(ae.y0, ae.x0), ta(ae.y1, ae.x1), !d),
                    t.arc(c, f, r, ta(ae.cy + ae.y1, ae.cx + ae.x1), ta(q.cy + q.y1, q.cx + q.x1), !d),
                    ie > 0 && t.arc(c + q.cx, f + q.cy, ie, ta(q.y1, q.x1), ta(q.y0, q.x0), !d))
                } else
                    t.moveTo(c + E, f + L),
                    t.arc(c, f, r, s, u, !d);
                if (!(a > eo) || !$)
                    t.lineTo(c + N, f + R);
                else if (M > eo) {
                    var ne = Ho(p, M)
                      , ie = Ho(g, M)
                      , ae = y1(N, R, A, O, a, -ie, d)
                      , q = y1(E, L, k, D, a, -ne, d);
                    t.lineTo(c + ae.cx + ae.x0, f + ae.cy + ae.y0),
                    M < T && ne === ie ? t.arc(c + ae.cx, f + ae.cy, M, ta(ae.y0, ae.x0), ta(q.y0, q.x0), !d) : (ie > 0 && t.arc(c + ae.cx, f + ae.cy, ie, ta(ae.y0, ae.x0), ta(ae.y1, ae.x1), !d),
                    t.arc(c, f, a, ta(ae.cy + ae.y1, ae.cx + ae.x1), ta(q.cy + q.y1, q.cx + q.x1), d),
                    ne > 0 && t.arc(c + q.cx, f + q.cy, ne, ta(q.y1, q.x1), ta(q.y0, q.x0), !d))
                } else
                    t.lineTo(c + N, f + R),
                    t.arc(c, f, a, u, s, d)
            }
            t.closePath()
        }
    }
}
var lUe = function() {
    function t() {
        this.cx = 0,
        this.cy = 0,
        this.r0 = 0,
        this.r = 0,
        this.startAngle = 0,
        this.endAngle = Math.PI * 2,
        this.clockwise = !0,
        this.cornerRadius = 0
    }
    return t
}()
  , Yie = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultShape = function() {
        return new lUe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        oUe(n, r)
    }
    ,
    e.prototype.isZeroArea = function() {
        return this.shape.startAngle === this.shape.endAngle || this.shape.r === this.shape.r0
    }
    ,
    e
}(jt);
Yie.prototype.type = "sector";
const Pa = Yie;
var sUe = function() {
    function t() {
        this.cx = 0,
        this.cy = 0,
        this.r = 0,
        this.r0 = 0
    }
    return t
}()
  , qie = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultShape = function() {
        return new sUe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.cx
          , i = r.cy
          , o = Math.PI * 2;
        n.moveTo(a + r.r, i),
        n.arc(a, i, r.r, 0, o, !1),
        n.moveTo(a + r.r0, i),
        n.arc(a, i, r.r0, 0, o, !0)
    }
    ,
    e
}(jt);
qie.prototype.type = "ring";
const qm = qie;
function uUe(t, e, n, r) {
    var a = [], i = [], o = [], l = [], s, u, c, f;
    if (r) {
        c = [1 / 0, 1 / 0],
        f = [-1 / 0, -1 / 0];
        for (var d = 0, v = t.length; d < v; d++)
            Ql(c, c, t[d]),
            Jl(f, f, t[d]);
        Ql(c, c, r[0]),
        Jl(f, f, r[1])
    }
    for (var d = 0, v = t.length; d < v; d++) {
        var h = t[d];
        if (n)
            s = t[d ? d - 1 : v - 1],
            u = t[(d + 1) % v];
        else if (d === 0 || d === v - 1) {
            a.push(cl(t[d]));
            continue
        } else
            s = t[d - 1],
            u = t[d + 1];
        au(i, u, s),
        Eg(i, i, e);
        var p = SS(h, s)
          , g = SS(h, u)
          , m = p + g;
        m !== 0 && (p /= m,
        g /= m),
        Eg(o, i, -p),
        Eg(l, i, g);
        var y = JA([], h, o)
          , b = JA([], h, l);
        r && (Jl(y, y, c),
        Ql(y, y, f),
        Jl(b, b, c),
        Ql(b, b, f)),
        a.push(y),
        a.push(b)
    }
    return n && a.push(a.shift()),
    a
}
function Xie(t, e, n) {
    var r = e.smooth
      , a = e.points;
    if (a && a.length >= 2) {
        if (r) {
            var i = uUe(a, r, n, e.smoothConstraint);
            t.moveTo(a[0][0], a[0][1]);
            for (var o = a.length, l = 0; l < (n ? o : o - 1); l++) {
                var s = i[l * 2]
                  , u = i[l * 2 + 1]
                  , c = a[(l + 1) % o];
                t.bezierCurveTo(s[0], s[1], u[0], u[1], c[0], c[1])
            }
        } else {
            t.moveTo(a[0][0], a[0][1]);
            for (var l = 1, f = a.length; l < f; l++)
                t.lineTo(a[l][0], a[l][1])
        }
        n && t.closePath()
    }
}
var cUe = function() {
    function t() {
        this.points = null,
        this.smooth = 0,
        this.smoothConstraint = null
    }
    return t
}()
  , Zie = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultShape = function() {
        return new cUe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        Xie(n, r, !0)
    }
    ,
    e
}(jt);
Zie.prototype.type = "polygon";
const Ma = Zie;
var fUe = function() {
    function t() {
        this.points = null,
        this.percent = 1,
        this.smooth = 0,
        this.smoothConstraint = null
    }
    return t
}()
  , Qie = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultStyle = function() {
        return {
            stroke: "#000",
            fill: null
        }
    }
    ,
    e.prototype.getDefaultShape = function() {
        return new fUe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        Xie(n, r, !1)
    }
    ,
    e
}(jt);
Qie.prototype.type = "polyline";
const Aa = Qie;
var dUe = {}
  , vUe = function() {
    function t() {
        this.x1 = 0,
        this.y1 = 0,
        this.x2 = 0,
        this.y2 = 0,
        this.percent = 1
    }
    return t
}()
  , Jie = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultStyle = function() {
        return {
            stroke: "#000",
            fill: null
        }
    }
    ,
    e.prototype.getDefaultShape = function() {
        return new vUe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a, i, o, l;
        if (this.subPixelOptimize) {
            var s = Tie(dUe, r, this.style);
            a = s.x1,
            i = s.y1,
            o = s.x2,
            l = s.y2
        } else
            a = r.x1,
            i = r.y1,
            o = r.x2,
            l = r.y2;
        var u = r.percent;
        u !== 0 && (n.moveTo(a, i),
        u < 1 && (o = a * (1 - u) + o * u,
        l = i * (1 - u) + l * u),
        n.lineTo(o, l))
    }
    ,
    e.prototype.pointAt = function(n) {
        var r = this.shape;
        return [r.x1 * (1 - n) + r.x2 * n, r.y1 * (1 - n) + r.y2 * n]
    }
    ,
    e
}(jt);
Jie.prototype.type = "line";
const Or = Jie;
var Da = []
  , hUe = function() {
    function t() {
        this.x1 = 0,
        this.y1 = 0,
        this.x2 = 0,
        this.y2 = 0,
        this.cpx1 = 0,
        this.cpy1 = 0,
        this.percent = 1
    }
    return t
}();
function VH(t, e, n) {
    var r = t.cpx2
      , a = t.cpy2;
    return r != null || a != null ? [(n ? Kz : Ar)(t.x1, t.cpx1, t.cpx2, t.x2, e), (n ? Kz : Ar)(t.y1, t.cpy1, t.cpy2, t.y2, e)] : [(n ? iI : Br)(t.x1, t.cpx1, t.x2, e), (n ? iI : Br)(t.y1, t.cpy1, t.y2, e)]
}
var eoe = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultStyle = function() {
        return {
            stroke: "#000",
            fill: null
        }
    }
    ,
    e.prototype.getDefaultShape = function() {
        return new hUe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.x1
          , i = r.y1
          , o = r.x2
          , l = r.y2
          , s = r.cpx1
          , u = r.cpy1
          , c = r.cpx2
          , f = r.cpy2
          , d = r.percent;
        d !== 0 && (n.moveTo(a, i),
        c == null || f == null ? (d < 1 && (D0(a, s, o, d, Da),
        s = Da[1],
        o = Da[2],
        D0(i, u, l, d, Da),
        u = Da[1],
        l = Da[2]),
        n.quadraticCurveTo(s, u, o, l)) : (d < 1 && (Ou(a, s, c, o, d, Da),
        s = Da[1],
        c = Da[2],
        o = Da[3],
        Ou(i, u, f, l, d, Da),
        u = Da[1],
        f = Da[2],
        l = Da[3]),
        n.bezierCurveTo(s, u, c, f, o, l)))
    }
    ,
    e.prototype.pointAt = function(n) {
        return VH(this.shape, n, !1)
    }
    ,
    e.prototype.tangentAt = function(n) {
        var r = VH(this.shape, n, !0);
        return td(r, r)
    }
    ,
    e
}(jt);
eoe.prototype.type = "bezier-curve";
const Xm = eoe;
var pUe = function() {
    function t() {
        this.cx = 0,
        this.cy = 0,
        this.r = 0,
        this.startAngle = 0,
        this.endAngle = Math.PI * 2,
        this.clockwise = !0
    }
    return t
}()
  , toe = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultStyle = function() {
        return {
            stroke: "#000",
            fill: null
        }
    }
    ,
    e.prototype.getDefaultShape = function() {
        return new pUe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.cx
          , i = r.cy
          , o = Math.max(r.r, 0)
          , l = r.startAngle
          , s = r.endAngle
          , u = r.clockwise
          , c = Math.cos(l)
          , f = Math.sin(l);
        n.moveTo(c * o + a, f * o + i),
        n.arc(a, i, o, l, s, !u)
    }
    ,
    e
}(jt);
toe.prototype.type = "arc";
const s2 = toe;
var gUe = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = "compound",
        n
    }
    return e.prototype._updatePathDirty = function() {
        for (var n = this.shape.paths, r = this.shapeChanged(), a = 0; a < n.length; a++)
            r = r || n[a].shapeChanged();
        r && this.dirtyShape()
    }
    ,
    e.prototype.beforeBrush = function() {
        this._updatePathDirty();
        for (var n = this.shape.paths || [], r = this.getGlobalScale(), a = 0; a < n.length; a++)
            n[a].path || n[a].createPathProxy(),
            n[a].path.setScale(r[0], r[1], n[a].segmentIgnoreThreshold)
    }
    ,
    e.prototype.buildPath = function(n, r) {
        for (var a = r.paths || [], i = 0; i < a.length; i++)
            a[i].buildPath(n, a[i].shape, !0)
    }
    ,
    e.prototype.afterBrush = function() {
        for (var n = this.shape.paths || [], r = 0; r < n.length; r++)
            n[r].pathUpdated()
    }
    ,
    e.prototype.getBoundingRect = function() {
        return this._updatePathDirty.call(this),
        jt.prototype.getBoundingRect.call(this)
    }
    ,
    e
}(jt);
const u2 = gUe;
var mUe = function() {
    function t(e) {
        this.colorStops = e || []
    }
    return t.prototype.addColorStop = function(e, n) {
        this.colorStops.push({
            offset: e,
            color: n
        })
    }
    ,
    t
}();
const noe = mUe;
var yUe = function(t) {
    ge(e, t);
    function e(n, r, a, i, o, l) {
        var s = t.call(this, o) || this;
        return s.x = n == null ? 0 : n,
        s.y = r == null ? 0 : r,
        s.x2 = a == null ? 1 : a,
        s.y2 = i == null ? 0 : i,
        s.type = "linear",
        s.global = l || !1,
        s
    }
    return e
}(noe);
const Mh = yUe;
var bUe = function(t) {
    ge(e, t);
    function e(n, r, a, i, o) {
        var l = t.call(this, i) || this;
        return l.x = n == null ? .5 : n,
        l.y = r == null ? .5 : r,
        l.r = a == null ? .5 : a,
        l.type = "radial",
        l.global = o || !1,
        l
    }
    return e
}(noe);
const U6 = bUe;
var xc = [0, 0]
  , Sc = [0, 0]
  , b1 = new kt
  , x1 = new kt
  , xUe = function() {
    function t(e, n) {
        this._corners = [],
        this._axes = [],
        this._origin = [0, 0];
        for (var r = 0; r < 4; r++)
            this._corners[r] = new kt;
        for (var r = 0; r < 2; r++)
            this._axes[r] = new kt;
        e && this.fromBoundingRect(e, n)
    }
    return t.prototype.fromBoundingRect = function(e, n) {
        var r = this._corners
          , a = this._axes
          , i = e.x
          , o = e.y
          , l = i + e.width
          , s = o + e.height;
        if (r[0].set(i, o),
        r[1].set(l, o),
        r[2].set(l, s),
        r[3].set(i, s),
        n)
            for (var u = 0; u < 4; u++)
                r[u].transform(n);
        kt.sub(a[0], r[1], r[0]),
        kt.sub(a[1], r[3], r[0]),
        a[0].normalize(),
        a[1].normalize();
        for (var u = 0; u < 2; u++)
            this._origin[u] = a[u].dot(r[0])
    }
    ,
    t.prototype.intersect = function(e, n) {
        var r = !0
          , a = !n;
        return b1.set(1 / 0, 1 / 0),
        x1.set(0, 0),
        !this._intersectCheckOneSide(this, e, b1, x1, a, 1) && (r = !1,
        a) || !this._intersectCheckOneSide(e, this, b1, x1, a, -1) && (r = !1,
        a) || a || kt.copy(n, r ? b1 : x1),
        r
    }
    ,
    t.prototype._intersectCheckOneSide = function(e, n, r, a, i, o) {
        for (var l = !0, s = 0; s < 2; s++) {
            var u = this._axes[s];
            if (this._getProjMinMaxOnAxis(s, e._corners, xc),
            this._getProjMinMaxOnAxis(s, n._corners, Sc),
            xc[1] < Sc[0] || xc[0] > Sc[1]) {
                if (l = !1,
                i)
                    return l;
                var c = Math.abs(Sc[0] - xc[1])
                  , f = Math.abs(xc[0] - Sc[1]);
                Math.min(c, f) > a.len() && (c < f ? kt.scale(a, u, -c * o) : kt.scale(a, u, f * o))
            } else if (r) {
                var c = Math.abs(Sc[0] - xc[1])
                  , f = Math.abs(xc[0] - Sc[1]);
                Math.min(c, f) < r.len() && (c < f ? kt.scale(r, u, c * o) : kt.scale(r, u, -f * o))
            }
        }
        return l
    }
    ,
    t.prototype._getProjMinMaxOnAxis = function(e, n, r) {
        for (var a = this._axes[e], i = this._origin, o = n[0].dot(a) + i[e], l = o, s = o, u = 1; u < n.length; u++) {
            var c = n[u].dot(a) + i[e];
            l = Math.min(c, l),
            s = Math.max(c, s)
        }
        r[0] = l,
        r[1] = s
    }
    ,
    t
}();
const kS = xUe;
var SUe = []
  , CUe = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.notClear = !0,
        n.incremental = !0,
        n._displayables = [],
        n._temporaryDisplayables = [],
        n._cursor = 0,
        n
    }
    return e.prototype.traverse = function(n, r) {
        n.call(r, this)
    }
    ,
    e.prototype.useStyle = function() {
        this.style = {}
    }
    ,
    e.prototype.getCursor = function() {
        return this._cursor
    }
    ,
    e.prototype.innerAfterBrush = function() {
        this._cursor = this._displayables.length
    }
    ,
    e.prototype.clearDisplaybles = function() {
        this._displayables = [],
        this._temporaryDisplayables = [],
        this._cursor = 0,
        this.markRedraw(),
        this.notClear = !1
    }
    ,
    e.prototype.clearTemporalDisplayables = function() {
        this._temporaryDisplayables = []
    }
    ,
    e.prototype.addDisplayable = function(n, r) {
        r ? this._temporaryDisplayables.push(n) : this._displayables.push(n),
        this.markRedraw()
    }
    ,
    e.prototype.addDisplayables = function(n, r) {
        r = r || !1;
        for (var a = 0; a < n.length; a++)
            this.addDisplayable(n[a], r)
    }
    ,
    e.prototype.getDisplayables = function() {
        return this._displayables
    }
    ,
    e.prototype.getTemporalDisplayables = function() {
        return this._temporaryDisplayables
    }
    ,
    e.prototype.eachPendingDisplayable = function(n) {
        for (var r = this._cursor; r < this._displayables.length; r++)
            n && n(this._displayables[r]);
        for (var r = 0; r < this._temporaryDisplayables.length; r++)
            n && n(this._temporaryDisplayables[r])
    }
    ,
    e.prototype.update = function() {
        this.updateTransform();
        for (var n = this._cursor; n < this._displayables.length; n++) {
            var r = this._displayables[n];
            r.parent = this,
            r.update(),
            r.parent = null
        }
        for (var n = 0; n < this._temporaryDisplayables.length; n++) {
            var r = this._temporaryDisplayables[n];
            r.parent = this,
            r.update(),
            r.parent = null
        }
    }
    ,
    e.prototype.getBoundingRect = function() {
        if (!this._rect) {
            for (var n = new Dt(1 / 0,1 / 0,-1 / 0,-1 / 0), r = 0; r < this._displayables.length; r++) {
                var a = this._displayables[r]
                  , i = a.getBoundingRect().clone();
                a.needLocalTransform() && i.applyTransform(a.getLocalTransform(SUe)),
                n.union(i)
            }
            this._rect = n
        }
        return this._rect
    }
    ,
    e.prototype.contain = function(n, r) {
        var a = this.transformCoordToLocal(n, r)
          , i = this.getBoundingRect();
        if (i.contain(a[0], a[1]))
            for (var o = 0; o < this._displayables.length; o++) {
                var l = this._displayables[o];
                if (l.contain(n, r))
                    return !0
            }
        return !1
    }
    ,
    e
}(ji);
const roe = CUe;
var aoe = an();
function Ah(t, e, n, r, a) {
    var i;
    if (e && e.ecModel) {
        var o = e.ecModel.getUpdatePayload();
        i = o && o.animation
    }
    var l = e && e.isAnimationEnabled()
      , s = t === "update";
    if (l) {
        var u = void 0
          , c = void 0
          , f = void 0;
        r ? (u = Ot(r.duration, 200),
        c = Ot(r.easing, "cubicOut"),
        f = 0) : (u = e.getShallow(s ? "animationDurationUpdate" : "animationDuration"),
        c = e.getShallow(s ? "animationEasingUpdate" : "animationEasing"),
        f = e.getShallow(s ? "animationDelayUpdate" : "animationDelay")),
        i && (i.duration != null && (u = i.duration),
        i.easing != null && (c = i.easing),
        i.delay != null && (f = i.delay)),
        et(f) && (f = f(n, a)),
        et(u) && (u = u(n));
        var d = {
            duration: u || 0,
            delay: f,
            easing: c
        };
        return d
    } else
        return null
}
function Y6(t, e, n, r, a, i, o) {
    var l = !1, s;
    et(a) ? (o = i,
    i = a,
    a = null) : st(a) && (i = a.cb,
    o = a.during,
    l = a.isFrom,
    s = a.removeOpt,
    a = a.dataIndex);
    var u = t === "leave";
    u || e.stopAnimation("leave");
    var c = Ah(t, r, a, u ? s || {} : null, r && r.getAnimationDelayParams ? r.getAnimationDelayParams(e, a) : null);
    if (c && c.duration > 0) {
        var f = c.duration
          , d = c.delay
          , v = c.easing
          , h = {
            duration: f,
            delay: d || 0,
            easing: v,
            done: i,
            force: !!i || !!o,
            setToFinal: !u,
            scope: t,
            during: o
        };
        l ? e.animateFrom(n, h) : e.animateTo(n, h)
    } else
        e.stopAnimation(),
        !l && e.attr(n),
        o && o(1),
        i && i()
}
function ln(t, e, n, r, a, i) {
    Y6("update", t, e, n, r, a, i)
}
function $n(t, e, n, r, a, i) {
    Y6("enter", t, e, n, r, a, i)
}
function Cv(t) {
    if (!t.__zr)
        return !0;
    for (var e = 0; e < t.animators.length; e++) {
        var n = t.animators[e];
        if (n.scope === "leave")
            return !0
    }
    return !1
}
function Du(t, e, n, r, a, i) {
    Cv(t) || Y6("leave", t, e, n, r, a, i)
}
function zH(t, e, n, r) {
    t.removeTextContent(),
    t.removeTextGuideLine(),
    Du(t, {
        style: {
            opacity: 0
        }
    }, e, n, r)
}
function H0(t, e, n) {
    function r() {
        t.parent && t.parent.remove(t)
    }
    t.isGroup ? t.traverse(function(a) {
        a.isGroup || zH(a, e, n, r)
    }) : zH(t, e, n, r)
}
function Ao(t) {
    aoe(t).oldStyle = t.style
}
function wUe(t) {
    return aoe(t).oldStyle
}
var OS = Math.max
  , DS = Math.min
  , kI = {};
function ioe(t) {
    return jt.extend(t)
}
var _Ue = JKe;
function ooe(t, e) {
    return _Ue(t, e)
}
function Gi(t, e) {
    kI[t] = e
}
function c2(t) {
    if (kI.hasOwnProperty(t))
        return kI[t]
}
function Zm(t, e, n, r) {
    var a = Wie(t, e);
    return n && (r === "center" && (n = loe(n, a.getBoundingRect())),
    X6(a, n)),
    a
}
function q6(t, e, n) {
    var r = new Kr({
        style: {
            image: t,
            x: e.x,
            y: e.y,
            width: e.width,
            height: e.height
        },
        onload: function(a) {
            if (n === "center") {
                var i = {
                    width: a.width,
                    height: a.height
                };
                r.setStyle(loe(e, i))
            }
        }
    });
    return r
}
function loe(t, e) {
    var n = e.width / e.height, r = t.height * n, a;
    r <= t.width ? a = t.height : (r = t.width,
    a = r / n);
    var i = t.x + t.width / 2
      , o = t.y + t.height / 2;
    return {
        x: i - r / 2,
        y: o - a / 2,
        width: r,
        height: a
    }
}
var ti = eUe;
function X6(t, e) {
    if (!!t.applyTransform) {
        var n = t.getBoundingRect()
          , r = n.calculateTransform(e);
        t.applyTransform(r)
    }
}
function Zv(t, e) {
    return Tie(t, t, {
        lineWidth: e
    }),
    t
}
function TUe(t) {
    return Pie(t.shape, t.shape, t.style),
    t
}
var sx = nf;
function Su(t, e) {
    for (var n = Wm([]); t && t !== e; )
        fl(n, t.getLocalTransform(), n),
        t = t.parent;
    return n
}
function mo(t, e, n) {
    return e && !Qr(e) && (e = es.getLocalTransform(e)),
    n && (e = nd([], e)),
    Wr([], t, e)
}
function f2(t, e, n) {
    var r = e[4] === 0 || e[5] === 0 || e[0] === 0 ? 1 : Math.abs(2 * e[4] / e[0])
      , a = e[4] === 0 || e[5] === 0 || e[2] === 0 ? 1 : Math.abs(2 * e[4] / e[2])
      , i = [t === "left" ? -r : t === "right" ? r : 0, t === "top" ? -a : t === "bottom" ? a : 0];
    return i = mo(i, e, n),
    Math.abs(i[0]) > Math.abs(i[1]) ? i[0] > 0 ? "right" : "left" : i[1] > 0 ? "bottom" : "top"
}
function HH(t) {
    return !t.isGroup
}
function PUe(t) {
    return t.shape != null
}
function Qm(t, e, n) {
    if (!t || !e)
        return;
    function r(o) {
        var l = {};
        return o.traverse(function(s) {
            HH(s) && s.anid && (l[s.anid] = s)
        }),
        l
    }
    function a(o) {
        var l = {
            x: o.x,
            y: o.y,
            rotation: o.rotation
        };
        return PUe(o) && (l.shape = Me({}, o.shape)),
        l
    }
    var i = r(t);
    e.traverse(function(o) {
        if (HH(o) && o.anid) {
            var l = i[o.anid];
            if (l) {
                var s = a(o);
                o.attr(a(l)),
                ln(o, s, n, Ct(o).dataIndex)
            }
        }
    })
}
function Z6(t, e) {
    return Le(t, function(n) {
        var r = n[0];
        r = OS(r, e.x),
        r = DS(r, e.x + e.width);
        var a = n[1];
        return a = OS(a, e.y),
        a = DS(a, e.y + e.height),
        [r, a]
    })
}
function soe(t, e) {
    var n = OS(t.x, e.x)
      , r = DS(t.x + t.width, e.x + e.width)
      , a = OS(t.y, e.y)
      , i = DS(t.y + t.height, e.y + e.height);
    if (r >= n && i >= a)
        return {
            x: n,
            y: a,
            width: r - n,
            height: i - a
        }
}
function Ih(t, e, n) {
    var r = Me({
        rectHover: !0
    }, e)
      , a = r.style = {
        strokeNoScale: !0
    };
    if (n = n || {
        x: -1,
        y: -1,
        width: 2,
        height: 2
    },
    t)
        return t.indexOf("image://") === 0 ? (a.image = t.slice(8),
        ot(a, n),
        new Kr(r)) : Zm(t.replace("path://", ""), r, n, "center")
}
function Zp(t, e, n, r, a) {
    for (var i = 0, o = a[a.length - 1]; i < a.length; i++) {
        var l = a[i];
        if (uoe(t, e, n, r, l[0], l[1], o[0], o[1]))
            return !0;
        o = l
    }
}
function uoe(t, e, n, r, a, i, o, l) {
    var s = n - t
      , u = r - e
      , c = o - a
      , f = l - i
      , d = zP(c, f, s, u);
    if (MUe(d))
        return !1;
    var v = t - a
      , h = e - i
      , p = zP(v, h, s, u) / d;
    if (p < 0 || p > 1)
        return !1;
    var g = zP(v, h, c, f) / d;
    return !(g < 0 || g > 1)
}
function zP(t, e, n, r) {
    return t * r - n * e
}
function MUe(t) {
    return t <= 1e-6 && t >= -1e-6
}
function kh(t) {
    var e = t.itemTooltipOption
      , n = t.componentModel
      , r = t.itemName
      , a = Ge(e) ? {
        formatter: e
    } : e
      , i = n.mainType
      , o = n.componentIndex
      , l = {
        componentType: i,
        name: r,
        $vars: ["name"]
    };
    l[i + "Index"] = o;
    var s = t.formatterParamsExtra;
    s && Z(Gt(s), function(c) {
        Ze(l, c) || (l[c] = s[c],
        l.$vars.push(c))
    });
    var u = Ct(t.el);
    u.componentMainType = i,
    u.componentIndex = o,
    u.tooltipConfig = {
        name: r,
        option: ot({
            content: r,
            formatterParams: l
        }, a)
    }
}
function jH(t, e) {
    var n;
    t.isGroup && (n = e(t)),
    n || t.traverse(e)
}
function Uu(t, e) {
    if (t)
        if (ke(t))
            for (var n = 0; n < t.length; n++)
                jH(t[n], e);
        else
            jH(t, e)
}
Gi("circle", Mo);
Gi("ellipse", l2);
Gi("sector", Pa);
Gi("ring", qm);
Gi("polygon", Ma);
Gi("polyline", Aa);
Gi("rect", tn);
Gi("line", Or);
Gi("bezierCurve", Xm);
Gi("arc", s2);
const Jm = Object.freeze(Object.defineProperty({
    __proto__: null,
    updateProps: ln,
    initProps: $n,
    removeElement: Du,
    removeElementWithFadeOut: H0,
    isElementRemoved: Cv,
    extendShape: ioe,
    extendPath: ooe,
    registerShape: Gi,
    getShapeClass: c2,
    makePath: Zm,
    makeImage: q6,
    mergePath: ti,
    resizePath: X6,
    subPixelOptimizeLine: Zv,
    subPixelOptimizeRect: TUe,
    subPixelOptimize: sx,
    getTransform: Su,
    applyTransform: mo,
    transformDirection: f2,
    groupTransition: Qm,
    clipPointsByRect: Z6,
    clipRectByRect: soe,
    createIcon: Ih,
    linePolygonIntersect: Zp,
    lineLineIntersect: uoe,
    setTooltipConfig: kh,
    traverseElements: Uu,
    Group: mt,
    Image: Kr,
    Text: Jt,
    Circle: Mo,
    Ellipse: l2,
    Sector: Pa,
    Ring: qm,
    Polygon: Ma,
    Polyline: Aa,
    Rect: tn,
    Line: Or,
    BezierCurve: Xm,
    Arc: s2,
    IncrementalDisplayable: roe,
    CompoundPath: u2,
    LinearGradient: Mh,
    RadialGradient: U6,
    BoundingRect: Dt,
    OrientedBoundingRect: kS,
    Point: kt,
    Path: jt
}, Symbol.toStringTag, {
    value: "Module"
}));
var d2 = {};
function coe(t, e) {
    for (var n = 0; n < Ta.length; n++) {
        var r = Ta[n]
          , a = e[r]
          , i = t.ensureState(r);
        i.style = i.style || {},
        i.style.text = a
    }
    var o = t.currentStates.slice();
    t.clearStates(!0),
    t.setStyle({
        text: e.normal
    }),
    t.useStates(o, !0)
}
function OI(t, e, n) {
    var r = t.labelFetcher, a = t.labelDataIndex, i = t.labelDimIndex, o = e.normal, l;
    r && (l = r.getFormattedLabel(a, "normal", null, i, o && o.get("formatter"), n != null ? {
        interpolatedValue: n
    } : null)),
    l == null && (l = et(t.defaultText) ? t.defaultText(a, t, n) : t.defaultText);
    for (var s = {
        normal: l
    }, u = 0; u < Ta.length; u++) {
        var c = Ta[u]
          , f = e[c];
        s[c] = Ot(r ? r.getFormattedLabel(a, c, null, i, f && f.get("formatter")) : null, l)
    }
    return s
}
function ea(t, e, n, r) {
    n = n || d2;
    for (var a = t instanceof Jt, i = !1, o = 0; o < V0.length; o++) {
        var l = e[V0[o]];
        if (l && l.getShallow("show")) {
            i = !0;
            break
        }
    }
    var s = a ? t : t.getTextContent();
    if (i) {
        a || (s || (s = new Jt,
        t.setTextContent(s)),
        t.stateProxy && (s.stateProxy = t.stateProxy));
        var u = OI(n, e)
          , c = e.normal
          , f = !!c.getShallow("show")
          , d = In(c, r && r.normal, n, !1, !a);
        d.text = u.normal,
        a || t.setTextConfig(ES(c, n, !1));
        for (var o = 0; o < Ta.length; o++) {
            var v = Ta[o]
              , l = e[v];
            if (l) {
                var h = s.ensureState(v)
                  , p = !!Ot(l.getShallow("show"), f);
                if (p !== f && (h.ignore = !p),
                h.style = In(l, r && r[v], n, !0, !a),
                h.style.text = u[v],
                !a) {
                    var g = t.ensureState(v);
                    g.textConfig = ES(l, n, !0)
                }
            }
        }
        s.silent = !!c.getShallow("silent"),
        s.style.x != null && (d.x = s.style.x),
        s.style.y != null && (d.y = s.style.y),
        s.ignore = !f,
        s.useStyle(d),
        s.dirty(),
        n.enableTextSetter && (Oh(s).setLabelText = function(m) {
            var y = OI(n, e, m);
            coe(s, y)
        }
        )
    } else
        s && (s.ignore = !0);
    t.dirty()
}
function Nr(t, e) {
    e = e || "label";
    for (var n = {
        normal: t.getModel(e)
    }, r = 0; r < Ta.length; r++) {
        var a = Ta[r];
        n[a] = t.getModel([a, e])
    }
    return n
}
function In(t, e, n, r, a) {
    var i = {};
    return AUe(i, t, n, r, a),
    e && Me(i, e),
    i
}
function ES(t, e, n) {
    e = e || {};
    var r = {}, a, i = t.getShallow("rotate"), o = Ot(t.getShallow("distance"), n ? null : 5), l = t.getShallow("offset");
    return a = t.getShallow("position") || (n ? null : "inside"),
    a === "outside" && (a = e.defaultOutsidePosition || "top"),
    a != null && (r.position = a),
    l != null && (r.offset = l),
    i != null && (i *= Math.PI / 180,
    r.rotation = i),
    o != null && (r.distance = o),
    r.outsideFill = t.get("color") === "inherit" ? e.inheritColor || null : "auto",
    r
}
function AUe(t, e, n, r, a) {
    n = n || d2;
    var i = e.ecModel, o = i && i.option.textStyle, l = IUe(e), s;
    if (l) {
        s = {};
        for (var u in l)
            if (l.hasOwnProperty(u)) {
                var c = e.getModel(["rich", u]);
                UH(s[u] = {}, c, o, n, r, a, !1, !0)
            }
    }
    s && (t.rich = s);
    var f = e.get("overflow");
    f && (t.overflow = f);
    var d = e.get("minMargin");
    d != null && (t.margin = d),
    UH(t, e, o, n, r, a, !0, !1)
}
function IUe(t) {
    for (var e; t && t !== t.ecModel; ) {
        var n = (t.option || d2).rich;
        if (n) {
            e = e || {};
            for (var r = Gt(n), a = 0; a < r.length; a++) {
                var i = r[a];
                e[i] = 1
            }
        }
        t = t.parentModel
    }
    return e
}
var WH = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "textShadowColor", "textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"]
  , GH = ["align", "lineHeight", "width", "height", "tag", "verticalAlign", "ellipsis"]
  , KH = ["padding", "borderWidth", "borderRadius", "borderDashOffset", "backgroundColor", "borderColor", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"];
function UH(t, e, n, r, a, i, o, l) {
    n = !a && n || d2;
    var s = r && r.inheritColor
      , u = e.getShallow("color")
      , c = e.getShallow("textBorderColor")
      , f = Ot(e.getShallow("opacity"), n.opacity);
    (u === "inherit" || u === "auto") && (s ? u = s : u = null),
    (c === "inherit" || c === "auto") && (s ? c = s : c = null),
    i || (u = u || n.color,
    c = c || n.textBorderColor),
    u != null && (t.fill = u),
    c != null && (t.stroke = c);
    var d = Ot(e.getShallow("textBorderWidth"), n.textBorderWidth);
    d != null && (t.lineWidth = d);
    var v = Ot(e.getShallow("textBorderType"), n.textBorderType);
    v != null && (t.lineDash = v);
    var h = Ot(e.getShallow("textBorderDashOffset"), n.textBorderDashOffset);
    h != null && (t.lineDashOffset = h),
    !a && f == null && !l && (f = r && r.defaultOpacity),
    f != null && (t.opacity = f),
    !a && !i && t.fill == null && r.inheritColor && (t.fill = r.inheritColor);
    for (var p = 0; p < WH.length; p++) {
        var g = WH[p]
          , m = Ot(e.getShallow(g), n[g]);
        m != null && (t[g] = m)
    }
    for (var p = 0; p < GH.length; p++) {
        var g = GH[p]
          , m = e.getShallow(g);
        m != null && (t[g] = m)
    }
    if (t.verticalAlign == null) {
        var y = e.getShallow("baseline");
        y != null && (t.verticalAlign = y)
    }
    if (!o || !r.disableBox) {
        for (var p = 0; p < KH.length; p++) {
            var g = KH[p]
              , m = e.getShallow(g);
            m != null && (t[g] = m)
        }
        var b = e.getShallow("borderType");
        b != null && (t.borderDash = b),
        (t.backgroundColor === "auto" || t.backgroundColor === "inherit") && s && (t.backgroundColor = s),
        (t.borderColor === "auto" || t.borderColor === "inherit") && s && (t.borderColor = s)
    }
}
function foe(t, e) {
    var n = e && e.getModel("textStyle");
    return Di([t.fontStyle || n && n.getShallow("fontStyle") || "", t.fontWeight || n && n.getShallow("fontWeight") || "", (t.fontSize || n && n.getShallow("fontSize") || 12) + "px", t.fontFamily || n && n.getShallow("fontFamily") || "sans-serif"].join(" "))
}
var Oh = an();
function doe(t, e, n, r) {
    if (!!t) {
        var a = Oh(t);
        a.prevValue = a.value,
        a.value = n;
        var i = e.normal;
        a.valueAnimation = i.get("valueAnimation"),
        a.valueAnimation && (a.precision = i.get("precision"),
        a.defaultInterpolatedText = r,
        a.statesModels = e)
    }
}
function voe(t, e, n, r, a) {
    var i = Oh(t);
    if (!i.valueAnimation || i.prevValue === i.value)
        return;
    var o = i.defaultInterpolatedText
      , l = Ot(i.interpolatedValue, i.prevValue)
      , s = i.value;
    function u(c) {
        var f = vie(n, i.precision, l, s, c);
        i.interpolatedValue = c === 1 ? null : f;
        var d = OI({
            labelDataIndex: e,
            labelFetcher: a,
            defaultText: o ? o(f) : f + ""
        }, i.statesModels, f);
        coe(t, d)
    }
    t.percent = 0,
    (i.prevValue == null ? $n : ln)(t, {
        percent: 1
    }, r, e, null, u)
}
var kUe = ["textStyle", "color"]
  , HP = ["fontStyle", "fontWeight", "fontSize", "fontFamily", "padding", "lineHeight", "rich", "width", "height", "overflow"]
  , jP = new Jt
  , OUe = function() {
    function t() {}
    return t.prototype.getTextColor = function(e) {
        var n = this.ecModel;
        return this.getShallow("color") || (!e && n ? n.get(kUe) : null)
    }
    ,
    t.prototype.getFont = function() {
        return foe({
            fontStyle: this.getShallow("fontStyle"),
            fontWeight: this.getShallow("fontWeight"),
            fontSize: this.getShallow("fontSize"),
            fontFamily: this.getShallow("fontFamily")
        }, this.ecModel)
    }
    ,
    t.prototype.getTextRect = function(e) {
        for (var n = {
            text: e,
            verticalAlign: this.getShallow("verticalAlign") || this.getShallow("baseline")
        }, r = 0; r < HP.length; r++)
            n[HP[r]] = this.getShallow(HP[r]);
        return jP.useStyle(n),
        jP.update(),
        jP.getBoundingRect()
    }
    ,
    t
}();
const DUe = OUe;
var hoe = [["lineWidth", "width"], ["stroke", "color"], ["opacity"], ["shadowBlur"], ["shadowOffsetX"], ["shadowOffsetY"], ["shadowColor"], ["lineDash", "type"], ["lineDashOffset", "dashOffset"], ["lineCap", "cap"], ["lineJoin", "join"], ["miterLimit"]]
  , EUe = Ff(hoe)
  , LUe = function() {
    function t() {}
    return t.prototype.getLineStyle = function(e) {
        return EUe(this, e)
    }
    ,
    t
}()
  , poe = [["fill", "color"], ["stroke", "borderColor"], ["lineWidth", "borderWidth"], ["opacity"], ["shadowBlur"], ["shadowOffsetX"], ["shadowOffsetY"], ["shadowColor"], ["lineDash", "borderType"], ["lineDashOffset", "borderDashOffset"], ["lineCap", "borderCap"], ["lineJoin", "borderJoin"], ["miterLimit", "borderMiterLimit"]]
  , RUe = Ff(poe)
  , NUe = function() {
    function t() {}
    return t.prototype.getItemStyle = function(e, n) {
        return RUe(this, e, n)
    }
    ,
    t
}()
  , rd = function() {
    function t(e, n, r) {
        this.parentModel = n,
        this.ecModel = r,
        this.option = e
    }
    return t.prototype.init = function(e, n, r) {}
    ,
    t.prototype.mergeOption = function(e, n) {
        At(this.option, e, !0)
    }
    ,
    t.prototype.get = function(e, n) {
        return e == null ? this.option : this._doGet(this.parsePath(e), !n && this.parentModel)
    }
    ,
    t.prototype.getShallow = function(e, n) {
        var r = this.option
          , a = r == null ? r : r[e];
        if (a == null && !n) {
            var i = this.parentModel;
            i && (a = i.getShallow(e))
        }
        return a
    }
    ,
    t.prototype.getModel = function(e, n) {
        var r = e != null
          , a = r ? this.parsePath(e) : null
          , i = r ? this._doGet(a) : this.option;
        return n = n || this.parentModel && this.parentModel.getModel(this.resolveParentPath(a)),
        new t(i,n,this.ecModel)
    }
    ,
    t.prototype.isEmpty = function() {
        return this.option == null
    }
    ,
    t.prototype.restoreData = function() {}
    ,
    t.prototype.clone = function() {
        var e = this.constructor;
        return new e(ut(this.option))
    }
    ,
    t.prototype.parsePath = function(e) {
        return typeof e == "string" ? e.split(".") : e
    }
    ,
    t.prototype.resolveParentPath = function(e) {
        return e
    }
    ,
    t.prototype.isAnimationEnabled = function() {
        if (!nn.node && this.option) {
            if (this.option.animation != null)
                return !!this.option.animation;
            if (this.parentModel)
                return this.parentModel.isAnimationEnabled()
        }
    }
    ,
    t.prototype._doGet = function(e, n) {
        var r = this.option;
        if (!e)
            return r;
        for (var a = 0; a < e.length && !(!!e[a] && (r = r && typeof r == "object" ? r[e[a]] : null,
        r == null)); a++)
            ;
        return r == null && n && (r = n._doGet(this.resolveParentPath(e), n.parentModel)),
        r
    }
    ,
    t
}();
B6(rd);
VGe(rd);
ir(rd, LUe);
ir(rd, NUe);
ir(rd, GGe);
ir(rd, DUe);
const wn = rd;
var $Ue = Math.round(Math.random() * 10);
function Dh(t) {
    return [t || "", $Ue++].join("_")
}
function FUe(t) {
    var e = {};
    t.registerSubTypeDefaulter = function(n, r) {
        var a = al(n);
        e[a.main] = r
    }
    ,
    t.determineSubType = function(n, r) {
        var a = r.type;
        if (!a) {
            var i = al(n).main;
            t.hasSubTypes(n) && e[i] && (a = e[i](r))
        }
        return a
    }
}
function BUe(t, e) {
    t.topologicalTravel = function(i, o, l, s) {
        if (!i.length)
            return;
        var u = n(o)
          , c = u.graph
          , f = u.noEntryList
          , d = {};
        for (Z(i, function(y) {
            d[y] = !0
        }); f.length; ) {
            var v = f.pop()
              , h = c[v]
              , p = !!d[v];
            p && (l.call(s, v, h.originalDeps.slice()),
            delete d[v]),
            Z(h.successor, p ? m : g)
        }
        Z(d, function() {
            var y = "";
            throw new Error(y)
        });
        function g(y) {
            c[y].entryCount--,
            c[y].entryCount === 0 && f.push(y)
        }
        function m(y) {
            d[y] = !0,
            g(y)
        }
    }
    ;
    function n(i) {
        var o = {}
          , l = [];
        return Z(i, function(s) {
            var u = r(o, s)
              , c = u.originalDeps = e(s)
              , f = a(c, i);
            u.entryCount = f.length,
            u.entryCount === 0 && l.push(s),
            Z(f, function(d) {
                Rt(u.predecessor, d) < 0 && u.predecessor.push(d);
                var v = r(o, d);
                Rt(v.successor, d) < 0 && v.successor.push(s)
            })
        }),
        {
            graph: o,
            noEntryList: l
        }
    }
    function r(i, o) {
        return i[o] || (i[o] = {
            predecessor: [],
            successor: []
        }),
        i[o]
    }
    function a(i, o) {
        var l = [];
        return Z(i, function(s) {
            Rt(o, s) >= 0 && l.push(s)
        }),
        l
    }
}
function Yu(t, e) {
    return At(At({}, t, !0), e, !0)
}
const VUe = {
    time: {
        month: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
        monthAbbr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
        dayOfWeek: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
        dayOfWeekAbbr: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
    },
    legend: {
        selector: {
            all: "All",
            inverse: "Inv"
        }
    },
    toolbox: {
        brush: {
            title: {
                rect: "Box Select",
                polygon: "Lasso Select",
                lineX: "Horizontally Select",
                lineY: "Vertically Select",
                keep: "Keep Selections",
                clear: "Clear Selections"
            }
        },
        dataView: {
            title: "Data View",
            lang: ["Data View", "Close", "Refresh"]
        },
        dataZoom: {
            title: {
                zoom: "Zoom",
                back: "Zoom Reset"
            }
        },
        magicType: {
            title: {
                line: "Switch to Line Chart",
                bar: "Switch to Bar Chart",
                stack: "Stack",
                tiled: "Tile"
            }
        },
        restore: {
            title: "Restore"
        },
        saveAsImage: {
            title: "Save as Image",
            lang: ["Right Click to Save Image"]
        }
    },
    series: {
        typeNames: {
            pie: "Pie chart",
            bar: "Bar chart",
            line: "Line chart",
            scatter: "Scatter plot",
            effectScatter: "Ripple scatter plot",
            radar: "Radar chart",
            tree: "Tree",
            treemap: "Treemap",
            boxplot: "Boxplot",
            candlestick: "Candlestick",
            k: "K line chart",
            heatmap: "Heat map",
            map: "Map",
            parallel: "Parallel coordinate map",
            lines: "Line graph",
            graph: "Relationship graph",
            sankey: "Sankey diagram",
            funnel: "Funnel chart",
            gauge: "Gauge",
            pictorialBar: "Pictorial bar",
            themeRiver: "Theme River Map",
            sunburst: "Sunburst"
        }
    },
    aria: {
        general: {
            withTitle: 'This is a chart about "{title}"',
            withoutTitle: "This is a chart"
        },
        series: {
            single: {
                prefix: "",
                withName: " with type {seriesType} named {seriesName}.",
                withoutName: " with type {seriesType}."
            },
            multiple: {
                prefix: ". It consists of {seriesCount} series count.",
                withName: " The {seriesId} series is a {seriesType} representing {seriesName}.",
                withoutName: " The {seriesId} series is a {seriesType}.",
                separator: {
                    middle: "",
                    end: ""
                }
            }
        },
        data: {
            allData: "The data is as follows: ",
            partialData: "The first {displayCnt} items are: ",
            withName: "the data for {name} is {value}",
            withoutName: "{value}",
            separator: {
                middle: ", ",
                end: ". "
            }
        }
    }
}
  , zUe = {
    time: {
        month: ["\u4E00\u6708", "\u4E8C\u6708", "\u4E09\u6708", "\u56DB\u6708", "\u4E94\u6708", "\u516D\u6708", "\u4E03\u6708", "\u516B\u6708", "\u4E5D\u6708", "\u5341\u6708", "\u5341\u4E00\u6708", "\u5341\u4E8C\u6708"],
        monthAbbr: ["1\u6708", "2\u6708", "3\u6708", "4\u6708", "5\u6708", "6\u6708", "7\u6708", "8\u6708", "9\u6708", "10\u6708", "11\u6708", "12\u6708"],
        dayOfWeek: ["\u661F\u671F\u65E5", "\u661F\u671F\u4E00", "\u661F\u671F\u4E8C", "\u661F\u671F\u4E09", "\u661F\u671F\u56DB", "\u661F\u671F\u4E94", "\u661F\u671F\u516D"],
        dayOfWeekAbbr: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"]
    },
    legend: {
        selector: {
            all: "\u5168\u9009",
            inverse: "\u53CD\u9009"
        }
    },
    toolbox: {
        brush: {
            title: {
                rect: "\u77E9\u5F62\u9009\u62E9",
                polygon: "\u5708\u9009",
                lineX: "\u6A2A\u5411\u9009\u62E9",
                lineY: "\u7EB5\u5411\u9009\u62E9",
                keep: "\u4FDD\u6301\u9009\u62E9",
                clear: "\u6E05\u9664\u9009\u62E9"
            }
        },
        dataView: {
            title: "\u6570\u636E\u89C6\u56FE",
            lang: ["\u6570\u636E\u89C6\u56FE", "\u5173\u95ED", "\u5237\u65B0"]
        },
        dataZoom: {
            title: {
                zoom: "\u533A\u57DF\u7F29\u653E",
                back: "\u533A\u57DF\u7F29\u653E\u8FD8\u539F"
            }
        },
        magicType: {
            title: {
                line: "\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",
                bar: "\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",
                stack: "\u5207\u6362\u4E3A\u5806\u53E0",
                tiled: "\u5207\u6362\u4E3A\u5E73\u94FA"
            }
        },
        restore: {
            title: "\u8FD8\u539F"
        },
        saveAsImage: {
            title: "\u4FDD\u5B58\u4E3A\u56FE\u7247",
            lang: ["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]
        }
    },
    series: {
        typeNames: {
            pie: "\u997C\u56FE",
            bar: "\u67F1\u72B6\u56FE",
            line: "\u6298\u7EBF\u56FE",
            scatter: "\u6563\u70B9\u56FE",
            effectScatter: "\u6D9F\u6F2A\u6563\u70B9\u56FE",
            radar: "\u96F7\u8FBE\u56FE",
            tree: "\u6811\u56FE",
            treemap: "\u77E9\u5F62\u6811\u56FE",
            boxplot: "\u7BB1\u578B\u56FE",
            candlestick: "K\u7EBF\u56FE",
            k: "K\u7EBF\u56FE",
            heatmap: "\u70ED\u529B\u56FE",
            map: "\u5730\u56FE",
            parallel: "\u5E73\u884C\u5750\u6807\u56FE",
            lines: "\u7EBF\u56FE",
            graph: "\u5173\u7CFB\u56FE",
            sankey: "\u6851\u57FA\u56FE",
            funnel: "\u6F0F\u6597\u56FE",
            gauge: "\u4EEA\u8868\u76D8\u56FE",
            pictorialBar: "\u8C61\u5F62\u67F1\u56FE",
            themeRiver: "\u4E3B\u9898\u6CB3\u6D41\u56FE",
            sunburst: "\u65ED\u65E5\u56FE"
        }
    },
    aria: {
        general: {
            withTitle: "\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",
            withoutTitle: "\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"
        },
        series: {
            single: {
                prefix: "",
                withName: "\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",
                withoutName: "\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"
            },
            multiple: {
                prefix: "\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",
                withName: "\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",
                withoutName: "\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",
                separator: {
                    middle: "\uFF1B",
                    end: "\u3002"
                }
            }
        },
        data: {
            allData: "\u5176\u6570\u636E\u662F\u2014\u2014",
            partialData: "\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",
            withName: "{name}\u7684\u6570\u636E\u662F{value}",
            withoutName: "{value}",
            separator: {
                middle: "\uFF0C",
                end: ""
            }
        }
    }
};
var LS = "ZH"
  , Q6 = "EN"
  , j0 = Q6
  , ux = {}
  , J6 = {}
  , goe = nn.domSupported ? function() {
    var t = (document.documentElement.lang || navigator.language || navigator.browserLanguage).toUpperCase();
    return t.indexOf(LS) > -1 ? LS : j0
}() : j0;
function e5(t, e) {
    t = t.toUpperCase(),
    J6[t] = new wn(e),
    ux[t] = e
}
function HUe(t) {
    if (Ge(t)) {
        var e = ux[t.toUpperCase()] || {};
        return t === LS || t === Q6 ? ut(e) : At(ut(e), ut(ux[j0]), !1)
    } else
        return At(ut(t), ut(ux[j0]), !1)
}
function DI(t) {
    return J6[t]
}
function jUe() {
    return J6[j0]
}
e5(Q6, VUe);
e5(LS, zUe);
var t5 = 1e3
  , n5 = t5 * 60
  , Hg = n5 * 60
  , Oi = Hg * 24
  , YH = Oi * 365
  , Qp = {
    year: "{yyyy}",
    month: "{MMM}",
    day: "{d}",
    hour: "{HH}:{mm}",
    minute: "{HH}:{mm}",
    second: "{HH}:{mm}:{ss}",
    millisecond: "{HH}:{mm}:{ss} {SSS}",
    none: "{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"
}
  , S1 = "{yyyy}-{MM}-{dd}"
  , qH = {
    year: "{yyyy}",
    month: "{yyyy}-{MM}",
    day: S1,
    hour: S1 + " " + Qp.hour,
    minute: S1 + " " + Qp.minute,
    second: S1 + " " + Qp.second,
    millisecond: Qp.none
}
  , WP = ["year", "month", "day", "hour", "minute", "second", "millisecond"]
  , moe = ["year", "half-year", "quarter", "month", "week", "half-week", "day", "half-day", "quarter-day", "hour", "minute", "second", "millisecond"];
function ya(t, e) {
    return t += "",
    "0000".substr(0, e - t.length) + t
}
function wv(t) {
    switch (t) {
    case "half-year":
    case "quarter":
        return "month";
    case "week":
    case "half-week":
        return "day";
    case "half-day":
    case "quarter-day":
        return "hour";
    default:
        return t
    }
}
function WUe(t) {
    return t === wv(t)
}
function GUe(t) {
    switch (t) {
    case "year":
    case "month":
        return "day";
    case "millisecond":
        return "millisecond";
    default:
        return "second"
    }
}
function ey(t, e, n, r) {
    var a = ui(t)
      , i = a[r5(n)]()
      , o = a[_v(n)]() + 1
      , l = Math.floor((o - 1) / 3) + 1
      , s = a[v2(n)]()
      , u = a["get" + (n ? "UTC" : "") + "Day"]()
      , c = a[W0(n)]()
      , f = (c - 1) % 12 + 1
      , d = a[h2(n)]()
      , v = a[p2(n)]()
      , h = a[g2(n)]()
      , p = r instanceof wn ? r : DI(r || goe) || jUe()
      , g = p.getModel("time")
      , m = g.get("month")
      , y = g.get("monthAbbr")
      , b = g.get("dayOfWeek")
      , x = g.get("dayOfWeekAbbr");
    return (e || "").replace(/{yyyy}/g, i + "").replace(/{yy}/g, ya(i % 100 + "", 2)).replace(/{Q}/g, l + "").replace(/{MMMM}/g, m[o - 1]).replace(/{MMM}/g, y[o - 1]).replace(/{MM}/g, ya(o, 2)).replace(/{M}/g, o + "").replace(/{dd}/g, ya(s, 2)).replace(/{d}/g, s + "").replace(/{eeee}/g, b[u]).replace(/{ee}/g, x[u]).replace(/{e}/g, u + "").replace(/{HH}/g, ya(c, 2)).replace(/{H}/g, c + "").replace(/{hh}/g, ya(f + "", 2)).replace(/{h}/g, f + "").replace(/{mm}/g, ya(d, 2)).replace(/{m}/g, d + "").replace(/{ss}/g, ya(v, 2)).replace(/{s}/g, v + "").replace(/{SSS}/g, ya(h, 3)).replace(/{S}/g, h + "")
}
function KUe(t, e, n, r, a) {
    var i = null;
    if (Ge(n))
        i = n;
    else if (et(n))
        i = n(t.value, e, {
            level: t.level
        });
    else {
        var o = Me({}, Qp);
        if (t.level > 0)
            for (var l = 0; l < WP.length; ++l)
                o[WP[l]] = "{primary|" + o[WP[l]] + "}";
        var s = n ? n.inherit === !1 ? n : ot(n, o) : o
          , u = yoe(t.value, a);
        if (s[u])
            i = s[u];
        else if (s.inherit) {
            for (var c = moe.indexOf(u), l = c - 1; l >= 0; --l)
                if (s[u]) {
                    i = s[u];
                    break
                }
            i = i || o.none
        }
        if (ke(i)) {
            var f = t.level == null ? 0 : t.level >= 0 ? t.level : i.length + t.level;
            f = Math.min(f, i.length - 1),
            i = i[f]
        }
    }
    return ey(new Date(t.value), i, a, r)
}
function yoe(t, e) {
    var n = ui(t)
      , r = n[_v(e)]() + 1
      , a = n[v2(e)]()
      , i = n[W0(e)]()
      , o = n[h2(e)]()
      , l = n[p2(e)]()
      , s = n[g2(e)]()
      , u = s === 0
      , c = u && l === 0
      , f = c && o === 0
      , d = f && i === 0
      , v = d && a === 1
      , h = v && r === 1;
    return h ? "year" : v ? "month" : d ? "day" : f ? "hour" : c ? "minute" : u ? "second" : "millisecond"
}
function XH(t, e, n) {
    var r = rn(t) ? ui(t) : t;
    switch (e = e || yoe(t, n),
    e) {
    case "year":
        return r[r5(n)]();
    case "half-year":
        return r[_v(n)]() >= 6 ? 1 : 0;
    case "quarter":
        return Math.floor((r[_v(n)]() + 1) / 4);
    case "month":
        return r[_v(n)]();
    case "day":
        return r[v2(n)]();
    case "half-day":
        return r[W0(n)]() / 24;
    case "hour":
        return r[W0(n)]();
    case "minute":
        return r[h2(n)]();
    case "second":
        return r[p2(n)]();
    case "millisecond":
        return r[g2(n)]()
    }
}
function r5(t) {
    return t ? "getUTCFullYear" : "getFullYear"
}
function _v(t) {
    return t ? "getUTCMonth" : "getMonth"
}
function v2(t) {
    return t ? "getUTCDate" : "getDate"
}
function W0(t) {
    return t ? "getUTCHours" : "getHours"
}
function h2(t) {
    return t ? "getUTCMinutes" : "getMinutes"
}
function p2(t) {
    return t ? "getUTCSeconds" : "getSeconds"
}
function g2(t) {
    return t ? "getUTCMilliseconds" : "getMilliseconds"
}
function UUe(t) {
    return t ? "setUTCFullYear" : "setFullYear"
}
function boe(t) {
    return t ? "setUTCMonth" : "setMonth"
}
function xoe(t) {
    return t ? "setUTCDate" : "setDate"
}
function Soe(t) {
    return t ? "setUTCHours" : "setHours"
}
function Coe(t) {
    return t ? "setUTCMinutes" : "setMinutes"
}
function woe(t) {
    return t ? "setUTCSeconds" : "setSeconds"
}
function _oe(t) {
    return t ? "setUTCMilliseconds" : "setMilliseconds"
}
function YUe(t, e, n, r, a, i, o, l) {
    var s = new Jt({
        style: {
            text: t,
            font: e,
            align: n,
            verticalAlign: r,
            padding: a,
            rich: i,
            overflow: o ? "truncate" : null,
            lineHeight: l
        }
    });
    return s.getBoundingRect()
}
function a5(t) {
    if (!N6(t))
        return Ge(t) ? t : "-";
    var e = (t + "").split(".");
    return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, "$1,") + (e.length > 1 ? "." + e[1] : "")
}
function i5(t, e) {
    return t = (t || "").toLowerCase().replace(/-(.)/g, function(n, r) {
        return r.toUpperCase()
    }),
    e && t && (t = t.charAt(0).toUpperCase() + t.slice(1)),
    t
}
var ad = qw;
function EI(t, e, n) {
    var r = "{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";
    function a(c) {
        return c && Di(c) ? c : "-"
    }
    function i(c) {
        return !!(c != null && !isNaN(c) && isFinite(c))
    }
    var o = e === "time"
      , l = t instanceof Date;
    if (o || l) {
        var s = o ? ui(t) : t;
        if (isNaN(+s)) {
            if (l)
                return "-"
        } else
            return ey(s, r, n)
    }
    if (e === "ordinal")
        return bS(t) ? a(t) : rn(t) && i(t) ? t + "" : "-";
    var u = ml(t);
    return i(u) ? a5(u) : bS(t) ? a(t) : typeof t == "boolean" ? t + "" : "-"
}
var ZH = ["a", "b", "c", "d", "e", "f", "g"]
  , GP = function(t, e) {
    return "{" + t + (e == null ? "" : e) + "}"
};
function o5(t, e, n) {
    ke(e) || (e = [e]);
    var r = e.length;
    if (!r)
        return "";
    for (var a = e[0].$vars || [], i = 0; i < a.length; i++) {
        var o = ZH[i];
        t = t.replace(GP(o), GP(o, 0))
    }
    for (var l = 0; l < r; l++)
        for (var s = 0; s < a.length; s++) {
            var u = e[l][a[s]];
            t = t.replace(GP(ZH[s], l), n ? Sa(u) : u)
        }
    return t
}
function qUe(t, e, n) {
    return Z(e, function(r, a) {
        t = t.replace("{" + a + "}", n ? Sa(r) : r)
    }),
    t
}
function Toe(t, e) {
    var n = Ge(t) ? {
        color: t,
        extraCssText: e
    } : t || {}
      , r = n.color
      , a = n.type;
    e = n.extraCssText;
    var i = n.renderMode || "html";
    if (!r)
        return "";
    if (i === "html")
        return a === "subItem" ? '<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:' + Sa(r) + ";" + (e || "") + '"></span>' : '<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:' + Sa(r) + ";" + (e || "") + '"></span>';
    var o = n.markerId || "markerX";
    return {
        renderMode: i,
        content: "{" + o + "|}  ",
        style: a === "subItem" ? {
            width: 4,
            height: 4,
            borderRadius: 2,
            backgroundColor: r
        } : {
            width: 10,
            height: 10,
            borderRadius: 5,
            backgroundColor: r
        }
    }
}
function XUe(t, e, n) {
    (t === "week" || t === "month" || t === "quarter" || t === "half-year" || t === "year") && (t = `MM-dd
yyyy`);
    var r = ui(e)
      , a = n ? "getUTC" : "get"
      , i = r[a + "FullYear"]()
      , o = r[a + "Month"]() + 1
      , l = r[a + "Date"]()
      , s = r[a + "Hours"]()
      , u = r[a + "Minutes"]()
      , c = r[a + "Seconds"]()
      , f = r[a + "Milliseconds"]();
    return t = t.replace("MM", ya(o, 2)).replace("M", o).replace("yyyy", i).replace("yy", ya(i % 100 + "", 2)).replace("dd", ya(l, 2)).replace("d", l).replace("hh", ya(s, 2)).replace("h", s).replace("mm", ya(u, 2)).replace("m", u).replace("ss", ya(c, 2)).replace("s", c).replace("SSS", ya(f, 3)),
    t
}
function ZUe(t) {
    return t && t.charAt(0).toUpperCase() + t.substr(1)
}
function Vf(t, e) {
    return e = e || "transparent",
    Ge(t) ? t : st(t) && t.colorStops && (t.colorStops[0] || {}).color || e
}
function RS(t, e) {
    if (e === "_blank" || e === "blank") {
        var n = window.open();
        n.opener = null,
        n.location.href = t
    } else
        window.open(t, e)
}
var cx = Z
  , Poe = ["left", "right", "top", "bottom", "width", "height"]
  , af = [["width", "left", "right"], ["height", "top", "bottom"]];
function l5(t, e, n, r, a) {
    var i = 0
      , o = 0;
    r == null && (r = 1 / 0),
    a == null && (a = 1 / 0);
    var l = 0;
    e.eachChild(function(s, u) {
        var c = s.getBoundingRect(), f = e.childAt(u + 1), d = f && f.getBoundingRect(), v, h;
        if (t === "horizontal") {
            var p = c.width + (d ? -d.x + c.x : 0);
            v = i + p,
            v > r || s.newline ? (i = 0,
            v = p,
            o += l + n,
            l = c.height) : l = Math.max(l, c.height)
        } else {
            var g = c.height + (d ? -d.y + c.y : 0);
            h = o + g,
            h > a || s.newline ? (i += l + n,
            o = 0,
            h = g,
            l = c.width) : l = Math.max(l, c.width)
        }
        s.newline || (s.x = i,
        s.y = o,
        s.markRedraw(),
        t === "horizontal" ? i = v + n : o = h + n)
    })
}
var Cf = l5;
St(l5, "vertical");
St(l5, "horizontal");
function QUe(t, e, n) {
    var r = e.width
      , a = e.height
      , i = He(t.left, r)
      , o = He(t.top, a)
      , l = He(t.right, r)
      , s = He(t.bottom, a);
    return (isNaN(i) || isNaN(parseFloat(t.left))) && (i = 0),
    (isNaN(l) || isNaN(parseFloat(t.right))) && (l = r),
    (isNaN(o) || isNaN(parseFloat(t.top))) && (o = 0),
    (isNaN(s) || isNaN(parseFloat(t.bottom))) && (s = a),
    n = ad(n || 0),
    {
        width: Math.max(l - i - n[1] - n[3], 0),
        height: Math.max(s - o - n[0] - n[2], 0)
    }
}
function xr(t, e, n) {
    n = ad(n || 0);
    var r = e.width
      , a = e.height
      , i = He(t.left, r)
      , o = He(t.top, a)
      , l = He(t.right, r)
      , s = He(t.bottom, a)
      , u = He(t.width, r)
      , c = He(t.height, a)
      , f = n[2] + n[0]
      , d = n[1] + n[3]
      , v = t.aspect;
    switch (isNaN(u) && (u = r - l - d - i),
    isNaN(c) && (c = a - s - f - o),
    v != null && (isNaN(u) && isNaN(c) && (v > r / a ? u = r * .8 : c = a * .8),
    isNaN(u) && (u = v * c),
    isNaN(c) && (c = u / v)),
    isNaN(i) && (i = r - l - u - d),
    isNaN(o) && (o = a - s - c - f),
    t.left || t.right) {
    case "center":
        i = r / 2 - u / 2 - n[3];
        break;
    case "right":
        i = r - u - d;
        break
    }
    switch (t.top || t.bottom) {
    case "middle":
    case "center":
        o = a / 2 - c / 2 - n[0];
        break;
    case "bottom":
        o = a - c - f;
        break
    }
    i = i || 0,
    o = o || 0,
    isNaN(u) && (u = r - d - i - (l || 0)),
    isNaN(c) && (c = a - f - o - (s || 0));
    var h = new Dt(i + n[3],o + n[0],u,c);
    return h.margin = n,
    h
}
function m2(t, e, n, r, a, i) {
    var o = !a || !a.hv || a.hv[0]
      , l = !a || !a.hv || a.hv[1]
      , s = a && a.boundingMode || "all";
    if (i = i || t,
    i.x = t.x,
    i.y = t.y,
    !o && !l)
        return !1;
    var u;
    if (s === "raw")
        u = t.type === "group" ? new Dt(0,0,+e.width || 0,+e.height || 0) : t.getBoundingRect();
    else if (u = t.getBoundingRect(),
    t.needLocalTransform()) {
        var c = t.getLocalTransform();
        u = u.clone(),
        u.applyTransform(c)
    }
    var f = xr(ot({
        width: u.width,
        height: u.height
    }, e), n, r)
      , d = o ? f.x - u.x : 0
      , v = l ? f.y - u.y : 0;
    return s === "raw" ? (i.x = d,
    i.y = v) : (i.x += d,
    i.y += v),
    i === t && t.markRedraw(),
    !0
}
function JUe(t, e) {
    return t[af[e][0]] != null || t[af[e][1]] != null && t[af[e][2]] != null
}
function G0(t) {
    var e = t.layoutMode || t.constructor.layoutMode;
    return st(e) ? e : e ? {
        type: e
    } : null
}
function Eu(t, e, n) {
    var r = n && n.ignoreSize;
    !ke(r) && (r = [r, r]);
    var a = o(af[0], 0)
      , i = o(af[1], 1);
    u(af[0], t, a),
    u(af[1], t, i);
    function o(c, f) {
        var d = {}
          , v = 0
          , h = {}
          , p = 0
          , g = 2;
        if (cx(c, function(b) {
            h[b] = t[b]
        }),
        cx(c, function(b) {
            l(e, b) && (d[b] = h[b] = e[b]),
            s(d, b) && v++,
            s(h, b) && p++
        }),
        r[f])
            return s(e, c[1]) ? h[c[2]] = null : s(e, c[2]) && (h[c[1]] = null),
            h;
        if (p === g || !v)
            return h;
        if (v >= g)
            return d;
        for (var m = 0; m < c.length; m++) {
            var y = c[m];
            if (!l(d, y) && l(t, y)) {
                d[y] = t[y];
                break
            }
        }
        return d
    }
    function l(c, f) {
        return c.hasOwnProperty(f)
    }
    function s(c, f) {
        return c[f] != null && c[f] !== "auto"
    }
    function u(c, f, d) {
        cx(c, function(v) {
            f[v] = d[v]
        })
    }
}
function Eh(t) {
    return Moe({}, t)
}
function Moe(t, e) {
    return e && t && cx(Poe, function(n) {
        e.hasOwnProperty(n) && (t[n] = e[n])
    }),
    t
}
var eYe = an()
  , Lh = function(t) {
    ge(e, t);
    function e(n, r, a) {
        var i = t.call(this, n, r, a) || this;
        return i.uid = Dh("ec_cpt_model"),
        i
    }
    return e.prototype.init = function(n, r, a) {
        this.mergeDefaultAndTheme(n, a)
    }
    ,
    e.prototype.mergeDefaultAndTheme = function(n, r) {
        var a = G0(this)
          , i = a ? Eh(n) : {}
          , o = r.getTheme();
        At(n, o.get(this.mainType)),
        At(n, this.getDefaultOption()),
        a && Eu(n, i, a)
    }
    ,
    e.prototype.mergeOption = function(n, r) {
        At(this.option, n, !0);
        var a = G0(this);
        a && Eu(this.option, n, a)
    }
    ,
    e.prototype.optionUpdated = function(n, r) {}
    ,
    e.prototype.getDefaultOption = function() {
        var n = this.constructor;
        if (!$Ge(n))
            return n.defaultOption;
        var r = eYe(this);
        if (!r.defaultOption) {
            for (var a = [], i = n; i; ) {
                var o = i.prototype.defaultOption;
                o && a.push(o),
                i = i.superClass
            }
            for (var l = {}, s = a.length - 1; s >= 0; s--)
                l = At(l, a[s], !0);
            r.defaultOption = l
        }
        return r.defaultOption
    }
    ,
    e.prototype.getReferringComponents = function(n, r) {
        var a = n + "Index"
          , i = n + "Id";
        return Um(this.ecModel, n, {
            index: this.get(a, !0),
            id: this.get(i, !0)
        }, r)
    }
    ,
    e.prototype.getBoxLayoutParams = function() {
        var n = this;
        return {
            left: n.get("left"),
            top: n.get("top"),
            right: n.get("right"),
            bottom: n.get("bottom"),
            width: n.get("width"),
            height: n.get("height")
        }
    }
    ,
    e.prototype.getZLevelKey = function() {
        return ""
    }
    ,
    e.prototype.setZLevel = function(n) {
        this.option.zlevel = n
    }
    ,
    e.protoInitialize = function() {
        var n = e.prototype;
        n.type = "component",
        n.id = "",
        n.name = "",
        n.mainType = "",
        n.subType = "",
        n.componentIndex = 0
    }(),
    e
}(wn);
pie(Lh, wn);
t2(Lh);
FUe(Lh);
BUe(Lh, tYe);
function tYe(t) {
    var e = [];
    return Z(Lh.getClassesByMainType(t), function(n) {
        e = e.concat(n.dependencies || n.prototype.dependencies || [])
    }),
    e = Le(e, function(n) {
        return al(n).main
    }),
    t !== "dataset" && Rt(e, "dataset") <= 0 && e.unshift("dataset"),
    e
}
const qt = Lh;
var Aoe = "";
typeof navigator != "undefined" && (Aoe = navigator.platform || "");
var Td = "rgba(0, 0, 0, 0.2)";
const nYe = {
    darkMode: "auto",
    colorBy: "series",
    color: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
    gradientColor: ["#f6efa6", "#d88273", "#bf444c"],
    aria: {
        decal: {
            decals: [{
                color: Td,
                dashArrayX: [1, 0],
                dashArrayY: [2, 5],
                symbolSize: 1,
                rotation: Math.PI / 6
            }, {
                color: Td,
                symbol: "circle",
                dashArrayX: [[8, 8], [0, 8, 8, 0]],
                dashArrayY: [6, 0],
                symbolSize: .8
            }, {
                color: Td,
                dashArrayX: [1, 0],
                dashArrayY: [4, 3],
                rotation: -Math.PI / 4
            }, {
                color: Td,
                dashArrayX: [[6, 6], [0, 6, 6, 0]],
                dashArrayY: [6, 0]
            }, {
                color: Td,
                dashArrayX: [[1, 0], [1, 6]],
                dashArrayY: [1, 0, 6, 0],
                rotation: Math.PI / 4
            }, {
                color: Td,
                symbol: "triangle",
                dashArrayX: [[9, 9], [0, 9, 9, 0]],
                dashArrayY: [7, 2],
                symbolSize: .75
            }]
        }
    },
    textStyle: {
        fontFamily: Aoe.match(/^Win/) ? "Microsoft YaHei" : "sans-serif",
        fontSize: 12,
        fontStyle: "normal",
        fontWeight: "normal"
    },
    blendMode: null,
    stateAnimation: {
        duration: 300,
        easing: "cubicOut"
    },
    animation: "auto",
    animationDuration: 1e3,
    animationDurationUpdate: 500,
    animationEasing: "cubicInOut",
    animationEasingUpdate: "cubicInOut",
    animationThreshold: 2e3,
    progressiveThreshold: 3e3,
    progressive: 400,
    hoverLayerThreshold: 3e3,
    useUTC: !1
};
var Ioe = Qe(["tooltip", "label", "itemName", "itemId", "itemGroupId", "seriesName"])
  , Ki = "original"
  , sa = "arrayRows"
  , Ui = "objectRows"
  , Tl = "keyedColumns"
  , Cu = "typedArray"
  , koe = "unknown"
  , dl = "column"
  , Rh = "row"
  , Ur = {
    Must: 1,
    Might: 2,
    Not: 3
}
  , Ooe = an();
function rYe(t) {
    Ooe(t).datasetMap = Qe()
}
function Doe(t, e, n) {
    var r = {}
      , a = u5(e);
    if (!a || !t)
        return r;
    var i = [], o = [], l = e.ecModel, s = Ooe(l).datasetMap, u = a.uid + "_" + n.seriesLayoutBy, c, f;
    t = t.slice(),
    Z(t, function(p, g) {
        var m = st(p) ? p : t[g] = {
            name: p
        };
        m.type === "ordinal" && c == null && (c = g,
        f = h(m)),
        r[m.name] = []
    });
    var d = s.get(u) || s.set(u, {
        categoryWayDim: f,
        valueWayDim: 0
    });
    Z(t, function(p, g) {
        var m = p.name
          , y = h(p);
        if (c == null) {
            var b = d.valueWayDim;
            v(r[m], b, y),
            v(o, b, y),
            d.valueWayDim += y
        } else if (c === g)
            v(r[m], 0, y),
            v(i, 0, y);
        else {
            var b = d.categoryWayDim;
            v(r[m], b, y),
            v(o, b, y),
            d.categoryWayDim += y
        }
    });
    function v(p, g, m) {
        for (var y = 0; y < m; y++)
            p.push(g + y)
    }
    function h(p) {
        var g = p.dimsDef;
        return g ? g.length : 1
    }
    return i.length && (r.itemName = i),
    o.length && (r.seriesName = o),
    r
}
function s5(t, e, n) {
    var r = {}
      , a = u5(t);
    if (!a)
        return r;
    var i = e.sourceFormat, o = e.dimensionsDefine, l;
    (i === Ui || i === Tl) && Z(o, function(c, f) {
        (st(c) ? c.name : c) === "name" && (l = f)
    });
    var s = function() {
        for (var c = {}, f = {}, d = [], v = 0, h = Math.min(5, n); v < h; v++) {
            var p = Loe(e.data, i, e.seriesLayoutBy, o, e.startIndex, v);
            d.push(p);
            var g = p === Ur.Not;
            if (g && c.v == null && v !== l && (c.v = v),
            (c.n == null || c.n === c.v || !g && d[c.n] === Ur.Not) && (c.n = v),
            m(c) && d[c.n] !== Ur.Not)
                return c;
            g || (p === Ur.Might && f.v == null && v !== l && (f.v = v),
            (f.n == null || f.n === f.v) && (f.n = v))
        }
        function m(y) {
            return y.v != null && y.n != null
        }
        return m(c) ? c : m(f) ? f : null
    }();
    if (s) {
        r.value = [s.v];
        var u = l != null ? l : s.n;
        r.itemName = [u],
        r.seriesName = [u]
    }
    return r
}
function u5(t) {
    var e = t.get("data", !0);
    if (!e)
        return Um(t.ecModel, "dataset", {
            index: t.get("datasetIndex", !0),
            id: t.get("datasetId", !0)
        }, mr).models[0]
}
function aYe(t) {
    return !t.get("transform", !0) && !t.get("fromTransformResult", !0) ? [] : Um(t.ecModel, "dataset", {
        index: t.get("fromDatasetIndex", !0),
        id: t.get("fromDatasetId", !0)
    }, mr).models
}
function Eoe(t, e) {
    return Loe(t.data, t.sourceFormat, t.seriesLayoutBy, t.dimensionsDefine, t.startIndex, e)
}
function Loe(t, e, n, r, a, i) {
    var o, l = 5;
    if (ja(t))
        return Ur.Not;
    var s, u;
    if (r) {
        var c = r[i];
        st(c) ? (s = c.name,
        u = c.type) : Ge(c) && (s = c)
    }
    if (u != null)
        return u === "ordinal" ? Ur.Must : Ur.Not;
    if (e === sa) {
        var f = t;
        if (n === Rh) {
            for (var d = f[i], v = 0; v < (d || []).length && v < l; v++)
                if ((o = x(d[a + v])) != null)
                    return o
        } else
            for (var v = 0; v < f.length && v < l; v++) {
                var h = f[a + v];
                if (h && (o = x(h[i])) != null)
                    return o
            }
    } else if (e === Ui) {
        var p = t;
        if (!s)
            return Ur.Not;
        for (var v = 0; v < p.length && v < l; v++) {
            var g = p[v];
            if (g && (o = x(g[s])) != null)
                return o
        }
    } else if (e === Tl) {
        var m = t;
        if (!s)
            return Ur.Not;
        var d = m[s];
        if (!d || ja(d))
            return Ur.Not;
        for (var v = 0; v < d.length && v < l; v++)
            if ((o = x(d[v])) != null)
                return o
    } else if (e === Ki)
        for (var y = t, v = 0; v < y.length && v < l; v++) {
            var g = y[v]
              , b = Th(g);
            if (!ke(b))
                return Ur.Not;
            if ((o = x(b[i])) != null)
                return o
        }
    function x(C) {
        var S = Ge(C);
        if (C != null && isFinite(C) && C !== "")
            return S ? Ur.Might : Ur.Not;
        if (S && C !== "-")
            return Ur.Must
    }
    return Ur.Not
}
var LI = Qe();
function iYe(t, e) {
    la(LI.get(t) == null && e),
    LI.set(t, e)
}
function oYe(t, e, n) {
    var r = LI.get(e);
    if (!r)
        return n;
    var a = r(t);
    return a ? n.concat(a) : n
}
var QH = an()
  , lYe = an()
  , c5 = function() {
    function t() {}
    return t.prototype.getColorFromPalette = function(e, n, r) {
        var a = _n(this.get("color", !0))
          , i = this.get("colorLayer", !0);
        return Roe(this, QH, a, i, e, n, r)
    }
    ,
    t.prototype.clearColorPalette = function() {
        uYe(this, QH)
    }
    ,
    t
}();
function RI(t, e, n, r) {
    var a = _n(t.get(["aria", "decal", "decals"]));
    return Roe(t, lYe, a, null, e, n, r)
}
function sYe(t, e) {
    for (var n = t.length, r = 0; r < n; r++)
        if (t[r].length > e)
            return t[r];
    return t[n - 1]
}
function Roe(t, e, n, r, a, i, o) {
    i = i || t;
    var l = e(i)
      , s = l.paletteIdx || 0
      , u = l.paletteNameMap = l.paletteNameMap || {};
    if (u.hasOwnProperty(a))
        return u[a];
    var c = o == null || !r ? n : sYe(r, o);
    if (c = c || n,
    !(!c || !c.length)) {
        var f = c[s];
        return a && (u[a] = f),
        l.paletteIdx = (s + 1) % c.length,
        f
    }
}
function uYe(t, e) {
    e(t).paletteIdx = 0,
    e(t).paletteNameMap = {}
}
var C1, mp, JH, ej = "\0_ec_inner", cYe = 1, Noe = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.init = function(n, r, a, i, o, l) {
        i = i || {},
        this.option = null,
        this._theme = new wn(i),
        this._locale = new wn(o),
        this._optionManager = l
    }
    ,
    e.prototype.setOption = function(n, r, a) {
        var i = rj(r);
        this._optionManager.setOption(n, a, i),
        this._resetOption(null, i)
    }
    ,
    e.prototype.resetOption = function(n, r) {
        return this._resetOption(n, rj(r))
    }
    ,
    e.prototype._resetOption = function(n, r) {
        var a = !1
          , i = this._optionManager;
        if (!n || n === "recreate") {
            var o = i.mountOption(n === "recreate");
            !this.option || n === "recreate" ? JH(this, o) : (this.restoreData(),
            this._mergeOption(o, r)),
            a = !0
        }
        if ((n === "timeline" || n === "media") && this.restoreData(),
        !n || n === "recreate" || n === "timeline") {
            var l = i.getTimelineOption(this);
            l && (a = !0,
            this._mergeOption(l, r))
        }
        if (!n || n === "recreate" || n === "media") {
            var s = i.getMediaOption(this);
            s.length && Z(s, function(u) {
                a = !0,
                this._mergeOption(u, r)
            }, this)
        }
        return a
    }
    ,
    e.prototype.mergeOption = function(n) {
        this._mergeOption(n, null)
    }
    ,
    e.prototype._mergeOption = function(n, r) {
        var a = this.option
          , i = this._componentsMap
          , o = this._componentsCount
          , l = []
          , s = Qe()
          , u = r && r.replaceMergeMainTypeMap;
        rYe(this),
        Z(n, function(f, d) {
            f != null && (qt.hasClass(d) ? d && (l.push(d),
            s.set(d, !0)) : a[d] = a[d] == null ? ut(f) : At(a[d], f, !0))
        }),
        u && u.each(function(f, d) {
            qt.hasClass(d) && !s.get(d) && (l.push(d),
            s.set(d, !0))
        }),
        qt.topologicalTravel(l, qt.getAllClassMainTypes(), c, this);
        function c(f) {
            var d = oYe(this, f, _n(n[f]))
              , v = i.get(f)
              , h = v ? u && u.get(f) ? "replaceMerge" : "normalMerge" : "replaceAll"
              , p = cie(v, d, h);
            AGe(p, f, qt),
            a[f] = null,
            i.set(f, null),
            o.set(f, 0);
            var g = [], m = [], y = 0, b;
            Z(p, function(x, C) {
                var S = x.existing
                  , w = x.newOption;
                if (!w)
                    S && (S.mergeOption({}, this),
                    S.optionUpdated({}, !1));
                else {
                    var T = f === "series"
                      , P = qt.getClass(f, x.keyInfo.subType, !T);
                    if (!P)
                        return;
                    if (f === "tooltip") {
                        if (b)
                            return;
                        b = !0
                    }
                    if (S && S.constructor === P)
                        S.name = x.keyInfo.name,
                        S.mergeOption(w, this),
                        S.optionUpdated(w, !1);
                    else {
                        var M = Me({
                            componentIndex: C
                        }, x.keyInfo);
                        S = new P(w,this,this,M),
                        Me(S, M),
                        x.brandNew && (S.__requireNewView = !0),
                        S.init(w, this, this),
                        S.optionUpdated(null, !0)
                    }
                }
                S ? (g.push(S.option),
                m.push(S),
                y++) : (g.push(void 0),
                m.push(void 0))
            }, this),
            a[f] = g,
            i.set(f, m),
            o.set(f, y),
            f === "series" && C1(this)
        }
        this._seriesIndices || C1(this)
    }
    ,
    e.prototype.getOption = function() {
        var n = ut(this.option);
        return Z(n, function(r, a) {
            if (qt.hasClass(a)) {
                for (var i = _n(r), o = i.length, l = !1, s = o - 1; s >= 0; s--)
                    i[s] && !F0(i[s]) ? l = !0 : (i[s] = null,
                    !l && o--);
                i.length = o,
                n[a] = i
            }
        }),
        delete n[ej],
        n
    }
    ,
    e.prototype.getTheme = function() {
        return this._theme
    }
    ,
    e.prototype.getLocaleModel = function() {
        return this._locale
    }
    ,
    e.prototype.setUpdatePayload = function(n) {
        this._payload = n
    }
    ,
    e.prototype.getUpdatePayload = function() {
        return this._payload
    }
    ,
    e.prototype.getComponent = function(n, r) {
        var a = this._componentsMap.get(n);
        if (a) {
            var i = a[r || 0];
            if (i)
                return i;
            if (r == null) {
                for (var o = 0; o < a.length; o++)
                    if (a[o])
                        return a[o]
            }
        }
    }
    ,
    e.prototype.queryComponents = function(n) {
        var r = n.mainType;
        if (!r)
            return [];
        var a = n.index
          , i = n.id
          , o = n.name
          , l = this._componentsMap.get(r);
        if (!l || !l.length)
            return [];
        var s;
        return a != null ? (s = [],
        Z(_n(a), function(u) {
            l[u] && s.push(l[u])
        })) : i != null ? s = tj("id", i, l) : o != null ? s = tj("name", o, l) : s = pn(l, function(u) {
            return !!u
        }),
        nj(s, n)
    }
    ,
    e.prototype.findComponents = function(n) {
        var r = n.query
          , a = n.mainType
          , i = l(r)
          , o = i ? this.queryComponents(i) : pn(this._componentsMap.get(a), function(u) {
            return !!u
        });
        return s(nj(o, n));
        function l(u) {
            var c = a + "Index"
              , f = a + "Id"
              , d = a + "Name";
            return u && (u[c] != null || u[f] != null || u[d] != null) ? {
                mainType: a,
                index: u[c],
                id: u[f],
                name: u[d]
            } : null
        }
        function s(u) {
            return n.filter ? pn(u, n.filter) : u
        }
    }
    ,
    e.prototype.eachComponent = function(n, r, a) {
        var i = this._componentsMap;
        if (et(n)) {
            var o = r
              , l = n;
            i.each(function(f, d) {
                for (var v = 0; f && v < f.length; v++) {
                    var h = f[v];
                    h && l.call(o, d, h, h.componentIndex)
                }
            })
        } else
            for (var s = Ge(n) ? i.get(n) : st(n) ? this.findComponents(n) : null, u = 0; s && u < s.length; u++) {
                var c = s[u];
                c && r.call(a, c, c.componentIndex)
            }
    }
    ,
    e.prototype.getSeriesByName = function(n) {
        var r = _r(n, null);
        return pn(this._componentsMap.get("series"), function(a) {
            return !!a && r != null && a.name === r
        })
    }
    ,
    e.prototype.getSeriesByIndex = function(n) {
        return this._componentsMap.get("series")[n]
    }
    ,
    e.prototype.getSeriesByType = function(n) {
        return pn(this._componentsMap.get("series"), function(r) {
            return !!r && r.subType === n
        })
    }
    ,
    e.prototype.getSeries = function() {
        return pn(this._componentsMap.get("series"), function(n) {
            return !!n
        })
    }
    ,
    e.prototype.getSeriesCount = function() {
        return this._componentsCount.get("series")
    }
    ,
    e.prototype.eachSeries = function(n, r) {
        mp(this),
        Z(this._seriesIndices, function(a) {
            var i = this._componentsMap.get("series")[a];
            n.call(r, i, a)
        }, this)
    }
    ,
    e.prototype.eachRawSeries = function(n, r) {
        Z(this._componentsMap.get("series"), function(a) {
            a && n.call(r, a, a.componentIndex)
        })
    }
    ,
    e.prototype.eachSeriesByType = function(n, r, a) {
        mp(this),
        Z(this._seriesIndices, function(i) {
            var o = this._componentsMap.get("series")[i];
            o.subType === n && r.call(a, o, i)
        }, this)
    }
    ,
    e.prototype.eachRawSeriesByType = function(n, r, a) {
        return Z(this.getSeriesByType(n), r, a)
    }
    ,
    e.prototype.isSeriesFiltered = function(n) {
        return mp(this),
        this._seriesIndicesMap.get(n.componentIndex) == null
    }
    ,
    e.prototype.getCurrentSeriesIndices = function() {
        return (this._seriesIndices || []).slice()
    }
    ,
    e.prototype.filterSeries = function(n, r) {
        mp(this);
        var a = [];
        Z(this._seriesIndices, function(i) {
            var o = this._componentsMap.get("series")[i];
            n.call(r, o, i) && a.push(i)
        }, this),
        this._seriesIndices = a,
        this._seriesIndicesMap = Qe(a)
    }
    ,
    e.prototype.restoreData = function(n) {
        C1(this);
        var r = this._componentsMap
          , a = [];
        r.each(function(i, o) {
            qt.hasClass(o) && a.push(o)
        }),
        qt.topologicalTravel(a, qt.getAllClassMainTypes(), function(i) {
            Z(r.get(i), function(o) {
                o && (i !== "series" || !fYe(o, n)) && o.restoreData()
            })
        })
    }
    ,
    e.internalField = function() {
        C1 = function(n) {
            var r = n._seriesIndices = [];
            Z(n._componentsMap.get("series"), function(a) {
                a && r.push(a.componentIndex)
            }),
            n._seriesIndicesMap = Qe(r)
        }
        ,
        mp = function(n) {}
        ,
        JH = function(n, r) {
            n.option = {},
            n.option[ej] = cYe,
            n._componentsMap = Qe({
                series: []
            }),
            n._componentsCount = Qe();
            var a = r.aria;
            st(a) && a.enabled == null && (a.enabled = !0),
            dYe(r, n._theme.option),
            At(r, nYe, !1),
            n._mergeOption(r, null)
        }
    }(),
    e
}(wn);
function fYe(t, e) {
    if (e) {
        var n = e.seriesIndex
          , r = e.seriesId
          , a = e.seriesName;
        return n != null && t.componentIndex !== n || r != null && t.id !== r || a != null && t.name !== a
    }
}
function dYe(t, e) {
    var n = t.color && !t.colorLayer;
    Z(e, function(r, a) {
        a === "colorLayer" && n || qt.hasClass(a) || (typeof r == "object" ? t[a] = t[a] ? At(t[a], r, !1) : ut(r) : t[a] == null && (t[a] = r))
    })
}
function tj(t, e, n) {
    if (ke(e)) {
        var r = Qe();
        return Z(e, function(i) {
            if (i != null) {
                var o = _r(i, null);
                o != null && r.set(i, !0)
            }
        }),
        pn(n, function(i) {
            return i && r.get(i[t])
        })
    } else {
        var a = _r(e, null);
        return pn(n, function(i) {
            return i && a != null && i[t] === a
        })
    }
}
function nj(t, e) {
    return e.hasOwnProperty("subType") ? pn(t, function(n) {
        return n && n.subType === e.subType
    }) : t
}
function rj(t) {
    var e = Qe();
    return t && Z(_n(t.replaceMerge), function(n) {
        e.set(n, !0)
    }),
    {
        replaceMergeMainTypeMap: e
    }
}
ir(Noe, c5);
const $oe = Noe;
var vYe = ["getDom", "getZr", "getWidth", "getHeight", "getDevicePixelRatio", "dispatchAction", "isSSR", "isDisposed", "on", "off", "getDataURL", "getConnectedDataURL", "getOption", "getId", "updateLabelLayout"]
  , hYe = function() {
    function t(e) {
        Z(vYe, function(n) {
            this[n] = qe(e[n], e)
        }, this)
    }
    return t
}();
const Foe = hYe;
var KP = {}
  , pYe = function() {
    function t() {
        this._coordinateSystems = []
    }
    return t.prototype.create = function(e, n) {
        var r = [];
        Z(KP, function(a, i) {
            var o = a.create(e, n);
            r = r.concat(o || [])
        }),
        this._coordinateSystems = r
    }
    ,
    t.prototype.update = function(e, n) {
        Z(this._coordinateSystems, function(r) {
            r.update && r.update(e, n)
        })
    }
    ,
    t.prototype.getCoordinateSystems = function() {
        return this._coordinateSystems.slice()
    }
    ,
    t.register = function(e, n) {
        KP[e] = n
    }
    ,
    t.get = function(e) {
        return KP[e]
    }
    ,
    t
}();
const Nh = pYe;
var gYe = /^(min|max)?(.+)$/
  , mYe = function() {
    function t(e) {
        this._timelineOptions = [],
        this._mediaList = [],
        this._currentMediaIndices = [],
        this._api = e
    }
    return t.prototype.setOption = function(e, n, r) {
        e && (Z(_n(e.series), function(o) {
            o && o.data && ja(o.data) && I0(o.data)
        }),
        Z(_n(e.dataset), function(o) {
            o && o.source && ja(o.source) && I0(o.source)
        })),
        e = ut(e);
        var a = this._optionBackup
          , i = yYe(e, n, !a);
        this._newBaseOption = i.baseOption,
        a ? (i.timelineOptions.length && (a.timelineOptions = i.timelineOptions),
        i.mediaList.length && (a.mediaList = i.mediaList),
        i.mediaDefault && (a.mediaDefault = i.mediaDefault)) : this._optionBackup = i
    }
    ,
    t.prototype.mountOption = function(e) {
        var n = this._optionBackup;
        return this._timelineOptions = n.timelineOptions,
        this._mediaList = n.mediaList,
        this._mediaDefault = n.mediaDefault,
        this._currentMediaIndices = [],
        ut(e ? n.baseOption : this._newBaseOption)
    }
    ,
    t.prototype.getTimelineOption = function(e) {
        var n, r = this._timelineOptions;
        if (r.length) {
            var a = e.getComponent("timeline");
            a && (n = ut(r[a.getCurrentIndex()]))
        }
        return n
    }
    ,
    t.prototype.getMediaOption = function(e) {
        var n = this._api.getWidth()
          , r = this._api.getHeight()
          , a = this._mediaList
          , i = this._mediaDefault
          , o = []
          , l = [];
        if (!a.length && !i)
            return l;
        for (var s = 0, u = a.length; s < u; s++)
            bYe(a[s].query, n, r) && o.push(s);
        return !o.length && i && (o = [-1]),
        o.length && !SYe(o, this._currentMediaIndices) && (l = Le(o, function(c) {
            return ut(c === -1 ? i.option : a[c].option)
        })),
        this._currentMediaIndices = o,
        l
    }
    ,
    t
}();
function yYe(t, e, n) {
    var r = [], a, i, o = t.baseOption, l = t.timeline, s = t.options, u = t.media, c = !!t.media, f = !!(s || l || o && o.timeline);
    o ? (i = o,
    i.timeline || (i.timeline = l)) : ((f || c) && (t.options = t.media = null),
    i = t),
    c && ke(u) && Z(u, function(v) {
        v && v.option && (v.query ? r.push(v) : a || (a = v))
    }),
    d(i),
    Z(s, function(v) {
        return d(v)
    }),
    Z(r, function(v) {
        return d(v.option)
    });
    function d(v) {
        Z(e, function(h) {
            h(v, n)
        })
    }
    return {
        baseOption: i,
        timelineOptions: s || [],
        mediaDefault: a,
        mediaList: r
    }
}
function bYe(t, e, n) {
    var r = {
        width: e,
        height: n,
        aspectratio: e / n
    }
      , a = !0;
    return Z(t, function(i, o) {
        var l = o.match(gYe);
        if (!(!l || !l[1] || !l[2])) {
            var s = l[1]
              , u = l[2].toLowerCase();
            xYe(r[u], i, s) || (a = !1)
        }
    }),
    a
}
function xYe(t, e, n) {
    return n === "min" ? t >= e : n === "max" ? t <= e : t === e
}
function SYe(t, e) {
    return t.join(",") === e.join(",")
}
const CYe = mYe;
var Xi = Z
  , K0 = st
  , aj = ["areaStyle", "lineStyle", "nodeStyle", "linkStyle", "chordStyle", "label", "labelLine"];
function UP(t) {
    var e = t && t.itemStyle;
    if (!!e)
        for (var n = 0, r = aj.length; n < r; n++) {
            var a = aj[n]
              , i = e.normal
              , o = e.emphasis;
            i && i[a] && (t[a] = t[a] || {},
            t[a].normal ? At(t[a].normal, i[a]) : t[a].normal = i[a],
            i[a] = null),
            o && o[a] && (t[a] = t[a] || {},
            t[a].emphasis ? At(t[a].emphasis, o[a]) : t[a].emphasis = o[a],
            o[a] = null)
        }
}
function aa(t, e, n) {
    if (t && t[e] && (t[e].normal || t[e].emphasis)) {
        var r = t[e].normal
          , a = t[e].emphasis;
        r && (n ? (t[e].normal = t[e].emphasis = null,
        ot(t[e], r)) : t[e] = r),
        a && (t.emphasis = t.emphasis || {},
        t.emphasis[e] = a,
        a.focus && (t.emphasis.focus = a.focus),
        a.blurScope && (t.emphasis.blurScope = a.blurScope))
    }
}
function Jp(t) {
    aa(t, "itemStyle"),
    aa(t, "lineStyle"),
    aa(t, "areaStyle"),
    aa(t, "label"),
    aa(t, "labelLine"),
    aa(t, "upperLabel"),
    aa(t, "edgeLabel")
}
function hr(t, e) {
    var n = K0(t) && t[e]
      , r = K0(n) && n.textStyle;
    if (r)
        for (var a = 0, i = sH.length; a < i; a++) {
            var o = sH[a];
            r.hasOwnProperty(o) && (n[o] = r[o])
        }
}
function Pi(t) {
    t && (Jp(t),
    hr(t, "label"),
    t.emphasis && hr(t.emphasis, "label"))
}
function wYe(t) {
    if (!!K0(t)) {
        UP(t),
        Jp(t),
        hr(t, "label"),
        hr(t, "upperLabel"),
        hr(t, "edgeLabel"),
        t.emphasis && (hr(t.emphasis, "label"),
        hr(t.emphasis, "upperLabel"),
        hr(t.emphasis, "edgeLabel"));
        var e = t.markPoint;
        e && (UP(e),
        Pi(e));
        var n = t.markLine;
        n && (UP(n),
        Pi(n));
        var r = t.markArea;
        r && Pi(r);
        var a = t.data;
        if (t.type === "graph") {
            a = a || t.nodes;
            var i = t.links || t.edges;
            if (i && !ja(i))
                for (var o = 0; o < i.length; o++)
                    Pi(i[o]);
            Z(t.categories, function(u) {
                Jp(u)
            })
        }
        if (a && !ja(a))
            for (var o = 0; o < a.length; o++)
                Pi(a[o]);
        if (e = t.markPoint,
        e && e.data)
            for (var l = e.data, o = 0; o < l.length; o++)
                Pi(l[o]);
        if (n = t.markLine,
        n && n.data)
            for (var s = n.data, o = 0; o < s.length; o++)
                ke(s[o]) ? (Pi(s[o][0]),
                Pi(s[o][1])) : Pi(s[o]);
        t.type === "gauge" ? (hr(t, "axisLabel"),
        hr(t, "title"),
        hr(t, "detail")) : t.type === "treemap" ? (aa(t.breadcrumb, "itemStyle"),
        Z(t.levels, function(u) {
            Jp(u)
        })) : t.type === "tree" && Jp(t.leaves)
    }
}
function $l(t) {
    return ke(t) ? t : t ? [t] : []
}
function ij(t) {
    return (ke(t) ? t[0] : t) || {}
}
function _Ye(t, e) {
    Xi($l(t.series), function(r) {
        K0(r) && wYe(r)
    });
    var n = ["xAxis", "yAxis", "radiusAxis", "angleAxis", "singleAxis", "parallelAxis", "radar"];
    e && n.push("valueAxis", "categoryAxis", "logAxis", "timeAxis"),
    Xi(n, function(r) {
        Xi($l(t[r]), function(a) {
            a && (hr(a, "axisLabel"),
            hr(a.axisPointer, "label"))
        })
    }),
    Xi($l(t.parallel), function(r) {
        var a = r && r.parallelAxisDefault;
        hr(a, "axisLabel"),
        hr(a && a.axisPointer, "label")
    }),
    Xi($l(t.calendar), function(r) {
        aa(r, "itemStyle"),
        hr(r, "dayLabel"),
        hr(r, "monthLabel"),
        hr(r, "yearLabel")
    }),
    Xi($l(t.radar), function(r) {
        hr(r, "name"),
        r.name && r.axisName == null && (r.axisName = r.name,
        delete r.name),
        r.nameGap != null && r.axisNameGap == null && (r.axisNameGap = r.nameGap,
        delete r.nameGap)
    }),
    Xi($l(t.geo), function(r) {
        K0(r) && (Pi(r),
        Xi($l(r.regions), function(a) {
            Pi(a)
        }))
    }),
    Xi($l(t.timeline), function(r) {
        Pi(r),
        aa(r, "label"),
        aa(r, "itemStyle"),
        aa(r, "controlStyle", !0);
        var a = r.data;
        ke(a) && Z(a, function(i) {
            st(i) && (aa(i, "label"),
            aa(i, "itemStyle"))
        })
    }),
    Xi($l(t.toolbox), function(r) {
        aa(r, "iconStyle"),
        Xi(r.feature, function(a) {
            aa(a, "iconStyle")
        })
    }),
    hr(ij(t.axisPointer), "label"),
    hr(ij(t.tooltip).axisPointer, "label")
}
function TYe(t, e) {
    for (var n = e.split(","), r = t, a = 0; a < n.length && (r = r && r[n[a]],
    r != null); a++)
        ;
    return r
}
function PYe(t, e, n, r) {
    for (var a = e.split(","), i = t, o, l = 0; l < a.length - 1; l++)
        o = a[l],
        i[o] == null && (i[o] = {}),
        i = i[o];
    (r || i[a[l]] == null) && (i[a[l]] = n)
}
function oj(t) {
    t && Z(MYe, function(e) {
        e[0]in t && !(e[1]in t) && (t[e[1]] = t[e[0]])
    })
}
var MYe = [["x", "left"], ["y", "top"], ["x2", "right"], ["y2", "bottom"]]
  , AYe = ["grid", "geo", "parallel", "legend", "toolbox", "title", "visualMap", "dataZoom", "timeline"]
  , YP = [["borderRadius", "barBorderRadius"], ["borderColor", "barBorderColor"], ["borderWidth", "barBorderWidth"]];
function yp(t) {
    var e = t && t.itemStyle;
    if (e)
        for (var n = 0; n < YP.length; n++) {
            var r = YP[n][1]
              , a = YP[n][0];
            e[r] != null && (e[a] = e[r])
        }
}
function lj(t) {
    !t || t.alignTo === "edge" && t.margin != null && t.edgeDistance == null && (t.edgeDistance = t.margin)
}
function sj(t) {
    !t || t.downplay && !t.blur && (t.blur = t.downplay)
}
function IYe(t) {
    !t || t.focusNodeAdjacency != null && (t.emphasis = t.emphasis || {},
    t.emphasis.focus == null && (t.emphasis.focus = "adjacency"))
}
function Boe(t, e) {
    if (t)
        for (var n = 0; n < t.length; n++)
            e(t[n]),
            t[n] && Boe(t[n].children, e)
}
function Voe(t, e) {
    _Ye(t, e),
    t.series = _n(t.series),
    Z(t.series, function(n) {
        if (!!st(n)) {
            var r = n.type;
            if (r === "line")
                n.clipOverflow != null && (n.clip = n.clipOverflow);
            else if (r === "pie" || r === "gauge") {
                n.clockWise != null && (n.clockwise = n.clockWise),
                lj(n.label);
                var a = n.data;
                if (a && !ja(a))
                    for (var i = 0; i < a.length; i++)
                        lj(a[i]);
                n.hoverOffset != null && (n.emphasis = n.emphasis || {},
                (n.emphasis.scaleSize = null) && (n.emphasis.scaleSize = n.hoverOffset))
            } else if (r === "gauge") {
                var o = TYe(n, "pointer.color");
                o != null && PYe(n, "itemStyle.color", o)
            } else if (r === "bar") {
                yp(n),
                yp(n.backgroundStyle),
                yp(n.emphasis);
                var a = n.data;
                if (a && !ja(a))
                    for (var i = 0; i < a.length; i++)
                        typeof a[i] == "object" && (yp(a[i]),
                        yp(a[i] && a[i].emphasis))
            } else if (r === "sunburst") {
                var l = n.highlightPolicy;
                l && (n.emphasis = n.emphasis || {},
                n.emphasis.focus || (n.emphasis.focus = l)),
                sj(n),
                Boe(n.data, sj)
            } else
                r === "graph" || r === "sankey" ? IYe(n) : r === "map" && (n.mapType && !n.map && (n.map = n.mapType),
                n.mapLocation && ot(n, n.mapLocation));
            n.hoverAnimation != null && (n.emphasis = n.emphasis || {},
            n.emphasis && n.emphasis.scale == null && (n.emphasis.scale = n.hoverAnimation)),
            oj(n)
        }
    }),
    t.dataRange && (t.visualMap = t.dataRange),
    Z(AYe, function(n) {
        var r = t[n];
        r && (ke(r) || (r = [r]),
        Z(r, function(a) {
            oj(a)
        }))
    })
}
function kYe(t) {
    var e = Qe();
    t.eachSeries(function(n) {
        var r = n.get("stack");
        if (r) {
            var a = e.get(r) || e.set(r, [])
              , i = n.getData()
              , o = {
                stackResultDimension: i.getCalculationInfo("stackResultDimension"),
                stackedOverDimension: i.getCalculationInfo("stackedOverDimension"),
                stackedDimension: i.getCalculationInfo("stackedDimension"),
                stackedByDimension: i.getCalculationInfo("stackedByDimension"),
                isStackedByIndex: i.getCalculationInfo("isStackedByIndex"),
                data: i,
                seriesModel: n
            };
            if (!o.stackedDimension || !(o.isStackedByIndex || o.stackedByDimension))
                return;
            a.length && i.setCalculationInfo("stackedOnSeries", a[a.length - 1].seriesModel),
            a.push(o)
        }
    }),
    e.each(OYe)
}
function OYe(t) {
    Z(t, function(e, n) {
        var r = []
          , a = [NaN, NaN]
          , i = [e.stackResultDimension, e.stackedOverDimension]
          , o = e.data
          , l = e.isStackedByIndex
          , s = e.seriesModel.get("stackStrategy") || "samesign";
        o.modify(i, function(u, c, f) {
            var d = o.get(e.stackedDimension, f);
            if (isNaN(d))
                return a;
            var v, h;
            l ? h = o.getRawIndex(f) : v = o.get(e.stackedByDimension, f);
            for (var p = NaN, g = n - 1; g >= 0; g--) {
                var m = t[g];
                if (l || (h = m.data.rawIndexOf(m.stackedByDimension, v)),
                h >= 0) {
                    var y = m.data.getByRawIndex(m.stackResultDimension, h);
                    if (s === "all" || s === "positive" && y > 0 || s === "negative" && y < 0 || s === "samesign" && d >= 0 && y > 0 || s === "samesign" && d <= 0 && y < 0) {
                        d = yGe(d, y),
                        p = y;
                        break
                    }
                }
            }
            return r[0] = d,
            r[1] = p,
            r
        })
    })
}
var y2 = function() {
    function t(e) {
        this.data = e.data || (e.sourceFormat === Tl ? {} : []),
        this.sourceFormat = e.sourceFormat || koe,
        this.seriesLayoutBy = e.seriesLayoutBy || dl,
        this.startIndex = e.startIndex || 0,
        this.dimensionsDetectedCount = e.dimensionsDetectedCount,
        this.metaRawOption = e.metaRawOption;
        var n = this.dimensionsDefine = e.dimensionsDefine;
        if (n)
            for (var r = 0; r < n.length; r++) {
                var a = n[r];
                a.type == null && Eoe(this, r) === Ur.Must && (a.type = "ordinal")
            }
    }
    return t
}();
function f5(t) {
    return t instanceof y2
}
function NI(t, e, n) {
    n = n || zoe(t);
    var r = e.seriesLayoutBy
      , a = EYe(t, n, r, e.sourceHeader, e.dimensions)
      , i = new y2({
        data: t,
        sourceFormat: n,
        seriesLayoutBy: r,
        dimensionsDefine: a.dimensionsDefine,
        startIndex: a.startIndex,
        dimensionsDetectedCount: a.dimensionsDetectedCount,
        metaRawOption: ut(e)
    });
    return i
}
function d5(t) {
    return new y2({
        data: t,
        sourceFormat: ja(t) ? Cu : Ki
    })
}
function DYe(t) {
    return new y2({
        data: t.data,
        sourceFormat: t.sourceFormat,
        seriesLayoutBy: t.seriesLayoutBy,
        dimensionsDefine: ut(t.dimensionsDefine),
        startIndex: t.startIndex,
        dimensionsDetectedCount: t.dimensionsDetectedCount
    })
}
function zoe(t) {
    var e = koe;
    if (ja(t))
        e = Cu;
    else if (ke(t)) {
        t.length === 0 && (e = sa);
        for (var n = 0, r = t.length; n < r; n++) {
            var a = t[n];
            if (a != null) {
                if (ke(a)) {
                    e = sa;
                    break
                } else if (st(a)) {
                    e = Ui;
                    break
                }
            }
        }
    } else if (st(t)) {
        for (var i in t)
            if (Ze(t, i) && Qr(t[i])) {
                e = Tl;
                break
            }
    }
    return e
}
function EYe(t, e, n, r, a) {
    var i, o;
    if (!t)
        return {
            dimensionsDefine: uj(a),
            startIndex: o,
            dimensionsDetectedCount: i
        };
    if (e === sa) {
        var l = t;
        r === "auto" || r == null ? cj(function(u) {
            u != null && u !== "-" && (Ge(u) ? o == null && (o = 1) : o = 0)
        }, n, l, 10) : o = rn(r) ? r : r ? 1 : 0,
        !a && o === 1 && (a = [],
        cj(function(u, c) {
            a[c] = u != null ? u + "" : ""
        }, n, l, 1 / 0)),
        i = a ? a.length : n === Rh ? l.length : l[0] ? l[0].length : null
    } else if (e === Ui)
        a || (a = LYe(t));
    else if (e === Tl)
        a || (a = [],
        Z(t, function(u, c) {
            a.push(c)
        }));
    else if (e === Ki) {
        var s = Th(t[0]);
        i = ke(s) && s.length || 1
    }
    return {
        startIndex: o,
        dimensionsDefine: uj(a),
        dimensionsDetectedCount: i
    }
}
function LYe(t) {
    for (var e = 0, n; e < t.length && !(n = t[e++]); )
        ;
    if (n)
        return Gt(n)
}
function uj(t) {
    if (!!t) {
        var e = Qe();
        return Le(t, function(n, r) {
            n = st(n) ? n : {
                name: n
            };
            var a = {
                name: n.name,
                displayName: n.displayName,
                type: n.type
            };
            if (a.name == null)
                return a;
            a.name += "",
            a.displayName == null && (a.displayName = a.name);
            var i = e.get(a.name);
            return i ? a.name += "-" + i.count++ : e.set(a.name, {
                count: 1
            }),
            a
        })
    }
}
function cj(t, e, n, r) {
    if (e === Rh)
        for (var a = 0; a < n.length && a < r; a++)
            t(n[a] ? n[a][0] : null, a);
    else
        for (var i = n[0] || [], a = 0; a < i.length && a < r; a++)
            t(i[a], a)
}
function Hoe(t) {
    var e = t.sourceFormat;
    return e === Ui || e === Tl
}
var Cc, wc, _c, fj, dj, joe = function() {
    function t(e, n) {
        var r = f5(e) ? e : d5(e);
        this._source = r;
        var a = this._data = r.data;
        r.sourceFormat === Cu && (this._offset = 0,
        this._dimSize = n,
        this._data = a),
        dj(this, a, r)
    }
    return t.prototype.getSource = function() {
        return this._source
    }
    ,
    t.prototype.count = function() {
        return 0
    }
    ,
    t.prototype.getItem = function(e, n) {}
    ,
    t.prototype.appendData = function(e) {}
    ,
    t.prototype.clean = function() {}
    ,
    t.protoInitialize = function() {
        var e = t.prototype;
        e.pure = !1,
        e.persistent = !0
    }(),
    t.internalField = function() {
        var e;
        dj = function(o, l, s) {
            var u = s.sourceFormat
              , c = s.seriesLayoutBy
              , f = s.startIndex
              , d = s.dimensionsDefine
              , v = fj[v5(u, c)];
            if (Me(o, v),
            u === Cu)
                o.getItem = n,
                o.count = a,
                o.fillStorage = r;
            else {
                var h = Woe(u, c);
                o.getItem = qe(h, null, l, f, d);
                var p = Goe(u, c);
                o.count = qe(p, null, l, f, d)
            }
        }
        ;
        var n = function(o, l) {
            o = o - this._offset,
            l = l || [];
            for (var s = this._data, u = this._dimSize, c = u * o, f = 0; f < u; f++)
                l[f] = s[c + f];
            return l
        }
          , r = function(o, l, s, u) {
            for (var c = this._data, f = this._dimSize, d = 0; d < f; d++) {
                for (var v = u[d], h = v[0] == null ? 1 / 0 : v[0], p = v[1] == null ? -1 / 0 : v[1], g = l - o, m = s[d], y = 0; y < g; y++) {
                    var b = c[y * f + d];
                    m[o + y] = b,
                    b < h && (h = b),
                    b > p && (p = b)
                }
                v[0] = h,
                v[1] = p
            }
        }
          , a = function() {
            return this._data ? this._data.length / this._dimSize : 0
        };
        fj = (e = {},
        e[sa + "_" + dl] = {
            pure: !0,
            appendData: i
        },
        e[sa + "_" + Rh] = {
            pure: !0,
            appendData: function() {
                throw new Error('Do not support appendData when set seriesLayoutBy: "row".')
            }
        },
        e[Ui] = {
            pure: !0,
            appendData: i
        },
        e[Tl] = {
            pure: !0,
            appendData: function(o) {
                var l = this._data;
                Z(o, function(s, u) {
                    for (var c = l[u] || (l[u] = []), f = 0; f < (s || []).length; f++)
                        c.push(s[f])
                })
            }
        },
        e[Ki] = {
            appendData: i
        },
        e[Cu] = {
            persistent: !1,
            pure: !0,
            appendData: function(o) {
                this._data = o
            },
            clean: function() {
                this._offset += this.count(),
                this._data = null
            }
        },
        e);
        function i(o) {
            for (var l = 0; l < o.length; l++)
                this._data.push(o[l])
        }
    }(),
    t
}(), vj = function(t, e, n, r) {
    return t[r]
}, RYe = (Cc = {},
Cc[sa + "_" + dl] = function(t, e, n, r) {
    return t[r + e]
}
,
Cc[sa + "_" + Rh] = function(t, e, n, r, a) {
    r += e;
    for (var i = a || [], o = t, l = 0; l < o.length; l++) {
        var s = o[l];
        i[l] = s ? s[r] : null
    }
    return i
}
,
Cc[Ui] = vj,
Cc[Tl] = function(t, e, n, r, a) {
    for (var i = a || [], o = 0; o < n.length; o++) {
        var l = n[o].name
          , s = t[l];
        i[o] = s ? s[r] : null
    }
    return i
}
,
Cc[Ki] = vj,
Cc);
function Woe(t, e) {
    var n = RYe[v5(t, e)];
    return n
}
var hj = function(t, e, n) {
    return t.length
}
  , NYe = (wc = {},
wc[sa + "_" + dl] = function(t, e, n) {
    return Math.max(0, t.length - e)
}
,
wc[sa + "_" + Rh] = function(t, e, n) {
    var r = t[0];
    return r ? Math.max(0, r.length - e) : 0
}
,
wc[Ui] = hj,
wc[Tl] = function(t, e, n) {
    var r = n[0].name
      , a = t[r];
    return a ? a.length : 0
}
,
wc[Ki] = hj,
wc);
function Goe(t, e) {
    var n = NYe[v5(t, e)];
    return n
}
var qP = function(t, e, n) {
    return t[e]
}
  , $Ye = (_c = {},
_c[sa] = qP,
_c[Ui] = function(t, e, n) {
    return t[n]
}
,
_c[Tl] = qP,
_c[Ki] = function(t, e, n) {
    var r = Th(t);
    return r instanceof Array ? r[e] : r
}
,
_c[Cu] = qP,
_c);
function Koe(t) {
    var e = $Ye[t];
    return e
}
function v5(t, e) {
    return t === sa ? t + "_" + e : t
}
function Qv(t, e, n) {
    if (!!t) {
        var r = t.getRawDataItem(e);
        if (r != null) {
            var a = t.getStore()
              , i = a.getSource().sourceFormat;
            if (n != null) {
                var o = t.getDimensionIndex(n)
                  , l = a.getDimensionProperty(o);
                return Koe(i)(r, o, l)
            } else {
                var s = r;
                return i === Ki && (s = Th(r)),
                s
            }
        }
    }
}
var FYe = /\{@(.+?)\}/g
  , h5 = function() {
    function t() {}
    return t.prototype.getDataParams = function(e, n) {
        var r = this.getData(n)
          , a = this.getRawValue(e, n)
          , i = r.getRawIndex(e)
          , o = r.getName(e)
          , l = r.getRawDataItem(e)
          , s = r.getItemVisual(e, "style")
          , u = s && s[r.getItemVisual(e, "drawType") || "fill"]
          , c = s && s.stroke
          , f = this.mainType
          , d = f === "series"
          , v = r.userOutput && r.userOutput.get();
        return {
            componentType: f,
            componentSubType: this.subType,
            componentIndex: this.componentIndex,
            seriesType: d ? this.subType : null,
            seriesIndex: this.seriesIndex,
            seriesId: d ? this.id : null,
            seriesName: d ? this.name : null,
            name: o,
            dataIndex: i,
            data: l,
            dataType: n,
            value: a,
            color: u,
            borderColor: c,
            dimensionNames: v ? v.fullDimensions : null,
            encode: v ? v.encode : null,
            $vars: ["seriesName", "name", "value"]
        }
    }
    ,
    t.prototype.getFormattedLabel = function(e, n, r, a, i, o) {
        n = n || "normal";
        var l = this.getData(r)
          , s = this.getDataParams(e, r);
        if (o && (s.value = o.interpolatedValue),
        a != null && ke(s.value) && (s.value = s.value[a]),
        !i) {
            var u = l.getItemModel(e);
            i = u.get(n === "normal" ? ["label", "formatter"] : [n, "label", "formatter"])
        }
        if (et(i))
            return s.status = n,
            s.dimensionIndex = a,
            i(s);
        if (Ge(i)) {
            var c = o5(i, s);
            return c.replace(FYe, function(f, d) {
                var v = d.length
                  , h = d;
                h.charAt(0) === "[" && h.charAt(v - 1) === "]" && (h = +h.slice(1, v - 1));
                var p = Qv(l, e, h);
                if (o && ke(o.interpolatedValue)) {
                    var g = l.getDimensionIndex(h);
                    g >= 0 && (p = o.interpolatedValue[g])
                }
                return p != null ? p + "" : ""
            })
        }
    }
    ,
    t.prototype.getRawValue = function(e, n) {
        return Qv(this.getData(n), e)
    }
    ,
    t.prototype.formatTooltip = function(e, n, r) {}
    ,
    t
}();
function pj(t) {
    var e, n;
    return st(t) ? t.type && (n = t) : e = t,
    {
        text: e,
        frag: n
    }
}
function jg(t) {
    return new BYe(t)
}
var BYe = function() {
    function t(e) {
        e = e || {},
        this._reset = e.reset,
        this._plan = e.plan,
        this._count = e.count,
        this._onDirty = e.onDirty,
        this._dirty = !0
    }
    return t.prototype.perform = function(e) {
        var n = this._upstream
          , r = e && e.skip;
        if (this._dirty && n) {
            var a = this.context;
            a.data = a.outputData = n.context.outputData
        }
        this.__pipeline && (this.__pipeline.currentTask = this);
        var i;
        this._plan && !r && (i = this._plan(this.context));
        var o = c(this._modBy)
          , l = this._modDataCount || 0
          , s = c(e && e.modBy)
          , u = e && e.modDataCount || 0;
        (o !== s || l !== u) && (i = "reset");
        function c(y) {
            return !(y >= 1) && (y = 1),
            y
        }
        var f;
        (this._dirty || i === "reset") && (this._dirty = !1,
        f = this._doReset(r)),
        this._modBy = s,
        this._modDataCount = u;
        var d = e && e.step;
        if (n ? this._dueEnd = n._outputDueEnd : this._dueEnd = this._count ? this._count(this.context) : 1 / 0,
        this._progress) {
            var v = this._dueIndex
              , h = Math.min(d != null ? this._dueIndex + d : 1 / 0, this._dueEnd);
            if (!r && (f || v < h)) {
                var p = this._progress;
                if (ke(p))
                    for (var g = 0; g < p.length; g++)
                        this._doProgress(p[g], v, h, s, u);
                else
                    this._doProgress(p, v, h, s, u)
            }
            this._dueIndex = h;
            var m = this._settedOutputEnd != null ? this._settedOutputEnd : h;
            this._outputDueEnd = m
        } else
            this._dueIndex = this._outputDueEnd = this._settedOutputEnd != null ? this._settedOutputEnd : this._dueEnd;
        return this.unfinished()
    }
    ,
    t.prototype.dirty = function() {
        this._dirty = !0,
        this._onDirty && this._onDirty(this.context)
    }
    ,
    t.prototype._doProgress = function(e, n, r, a, i) {
        gj.reset(n, r, a, i),
        this._callingProgress = e,
        this._callingProgress({
            start: n,
            end: r,
            count: r - n,
            next: gj.next
        }, this.context)
    }
    ,
    t.prototype._doReset = function(e) {
        this._dueIndex = this._outputDueEnd = this._dueEnd = 0,
        this._settedOutputEnd = null;
        var n, r;
        !e && this._reset && (n = this._reset(this.context),
        n && n.progress && (r = n.forceFirstProgress,
        n = n.progress),
        ke(n) && !n.length && (n = null)),
        this._progress = n,
        this._modBy = this._modDataCount = null;
        var a = this._downstream;
        return a && a.dirty(),
        r
    }
    ,
    t.prototype.unfinished = function() {
        return this._progress && this._dueIndex < this._dueEnd
    }
    ,
    t.prototype.pipe = function(e) {
        (this._downstream !== e || this._dirty) && (this._downstream = e,
        e._upstream = this,
        e.dirty())
    }
    ,
    t.prototype.dispose = function() {
        this._disposed || (this._upstream && (this._upstream._downstream = null),
        this._downstream && (this._downstream._upstream = null),
        this._dirty = !1,
        this._disposed = !0)
    }
    ,
    t.prototype.getUpstream = function() {
        return this._upstream
    }
    ,
    t.prototype.getDownstream = function() {
        return this._downstream
    }
    ,
    t.prototype.setOutputEnd = function(e) {
        this._outputDueEnd = this._settedOutputEnd = e
    }
    ,
    t
}()
  , gj = function() {
    var t, e, n, r, a, i = {
        reset: function(s, u, c, f) {
            e = s,
            t = u,
            n = c,
            r = f,
            a = Math.ceil(r / n),
            i.next = n > 1 && r > 0 ? l : o
        }
    };
    return i;
    function o() {
        return e < t ? e++ : null
    }
    function l() {
        var s = e % a * n + Math.ceil(e / a)
          , u = e >= t ? null : s < r ? s : e;
        return e++,
        u
    }
}();
function wu(t, e) {
    var n = e && e.type;
    return n === "ordinal" ? t : (n === "time" && !rn(t) && t != null && t !== "-" && (t = +ui(t)),
    t == null || t === "" ? NaN : +t)
}
var VYe = Qe({
    number: function(t) {
        return parseFloat(t)
    },
    time: function(t) {
        return +ui(t)
    },
    trim: function(t) {
        return Ge(t) ? Di(t) : t
    }
});
function Uoe(t) {
    return VYe.get(t)
}
var Yoe = {
    lt: function(t, e) {
        return t < e
    },
    lte: function(t, e) {
        return t <= e
    },
    gt: function(t, e) {
        return t > e
    },
    gte: function(t, e) {
        return t >= e
    }
}
  , zYe = function() {
    function t(e, n) {
        if (!rn(n)) {
            var r = "";
            cn(r)
        }
        this._opFn = Yoe[e],
        this._rvalFloat = ml(n)
    }
    return t.prototype.evaluate = function(e) {
        return rn(e) ? this._opFn(e, this._rvalFloat) : this._opFn(ml(e), this._rvalFloat)
    }
    ,
    t
}()
  , qoe = function() {
    function t(e, n) {
        var r = e === "desc";
        this._resultLT = r ? 1 : -1,
        n == null && (n = r ? "min" : "max"),
        this._incomparable = n === "min" ? -1 / 0 : 1 / 0
    }
    return t.prototype.evaluate = function(e, n) {
        var r = rn(e) ? e : ml(e)
          , a = rn(n) ? n : ml(n)
          , i = isNaN(r)
          , o = isNaN(a);
        if (i && (r = this._incomparable),
        o && (a = this._incomparable),
        i && o) {
            var l = Ge(e)
              , s = Ge(n);
            l && (r = s ? e : 0),
            s && (a = l ? n : 0)
        }
        return r < a ? this._resultLT : r > a ? -this._resultLT : 0
    }
    ,
    t
}()
  , HYe = function() {
    function t(e, n) {
        this._rval = n,
        this._isEQ = e,
        this._rvalTypeof = typeof n,
        this._rvalFloat = ml(n)
    }
    return t.prototype.evaluate = function(e) {
        var n = e === this._rval;
        if (!n) {
            var r = typeof e;
            r !== this._rvalTypeof && (r === "number" || this._rvalTypeof === "number") && (n = ml(e) === this._rvalFloat)
        }
        return this._isEQ ? n : !n
    }
    ,
    t
}();
function jYe(t, e) {
    return t === "eq" || t === "ne" ? new HYe(t === "eq",e) : Ze(Yoe, t) ? new zYe(t,e) : null
}
var WYe = function() {
    function t() {}
    return t.prototype.getRawData = function() {
        throw new Error("not supported")
    }
    ,
    t.prototype.getRawDataItem = function(e) {
        throw new Error("not supported")
    }
    ,
    t.prototype.cloneRawData = function() {}
    ,
    t.prototype.getDimensionInfo = function(e) {}
    ,
    t.prototype.cloneAllDimensionInfo = function() {}
    ,
    t.prototype.count = function() {}
    ,
    t.prototype.retrieveValue = function(e, n) {}
    ,
    t.prototype.retrieveValueFromItem = function(e, n) {}
    ,
    t.prototype.convertValue = function(e, n) {
        return wu(e, n)
    }
    ,
    t
}();
function GYe(t, e) {
    var n = new WYe
      , r = t.data
      , a = n.sourceFormat = t.sourceFormat
      , i = t.startIndex
      , o = "";
    t.seriesLayoutBy !== dl && cn(o);
    var l = []
      , s = {}
      , u = t.dimensionsDefine;
    if (u)
        Z(u, function(p, g) {
            var m = p.name
              , y = {
                index: g,
                name: m,
                displayName: p.displayName
            };
            if (l.push(y),
            m != null) {
                var b = "";
                Ze(s, m) && cn(b),
                s[m] = y
            }
        });
    else
        for (var c = 0; c < t.dimensionsDetectedCount; c++)
            l.push({
                index: c
            });
    var f = Woe(a, dl);
    e.__isBuiltIn && (n.getRawDataItem = function(p) {
        return f(r, i, l, p)
    }
    ,
    n.getRawData = qe(KYe, null, t)),
    n.cloneRawData = qe(UYe, null, t);
    var d = Goe(a, dl);
    n.count = qe(d, null, r, i, l);
    var v = Koe(a);
    n.retrieveValue = function(p, g) {
        var m = f(r, i, l, p);
        return h(m, g)
    }
    ;
    var h = n.retrieveValueFromItem = function(p, g) {
        if (p != null) {
            var m = l[g];
            if (m)
                return v(p, g, m.name)
        }
    }
    ;
    return n.getDimensionInfo = qe(YYe, null, l, s),
    n.cloneAllDimensionInfo = qe(qYe, null, l),
    n
}
function KYe(t) {
    var e = t.sourceFormat;
    if (!p5(e)) {
        var n = "";
        cn(n)
    }
    return t.data
}
function UYe(t) {
    var e = t.sourceFormat
      , n = t.data;
    if (!p5(e)) {
        var r = "";
        cn(r)
    }
    if (e === sa) {
        for (var a = [], i = 0, o = n.length; i < o; i++)
            a.push(n[i].slice());
        return a
    } else if (e === Ui) {
        for (var a = [], i = 0, o = n.length; i < o; i++)
            a.push(Me({}, n[i]));
        return a
    }
}
function YYe(t, e, n) {
    if (n != null) {
        if (rn(n) || !isNaN(n) && !Ze(e, n))
            return t[n];
        if (Ze(e, n))
            return e[n]
    }
}
function qYe(t) {
    return ut(t)
}
var Xoe = Qe();
function XYe(t) {
    t = ut(t);
    var e = t.type
      , n = "";
    e || cn(n);
    var r = e.split(":");
    r.length !== 2 && cn(n);
    var a = !1;
    r[0] === "echarts" && (e = r[1],
    a = !0),
    t.__isBuiltIn = a,
    Xoe.set(e, t)
}
function ZYe(t, e, n) {
    var r = _n(t)
      , a = r.length
      , i = "";
    a || cn(i);
    for (var o = 0, l = a; o < l; o++) {
        var s = r[o];
        e = QYe(s, e),
        o !== l - 1 && (e.length = Math.max(e.length, 1))
    }
    return e
}
function QYe(t, e, n, r) {
    var a = "";
    e.length || cn(a),
    st(t) || cn(a);
    var i = t.type
      , o = Xoe.get(i);
    o || cn(a);
    var l = Le(e, function(u) {
        return GYe(u, o)
    })
      , s = _n(o.transform({
        upstream: l[0],
        upstreamList: l,
        config: ut(t.config)
    }));
    return Le(s, function(u, c) {
        var f = "";
        st(u) || cn(f),
        u.data || cn(f);
        var d = zoe(u.data);
        p5(d) || cn(f);
        var v, h = e[0];
        if (h && c === 0 && !u.dimensions) {
            var p = h.startIndex;
            p && (u.data = h.data.slice(0, p).concat(u.data)),
            v = {
                seriesLayoutBy: dl,
                sourceHeader: p,
                dimensions: h.metaRawOption.dimensions
            }
        } else
            v = {
                seriesLayoutBy: dl,
                sourceHeader: 0,
                dimensions: u.dimensions
            };
        return NI(u.data, v, null)
    })
}
function p5(t) {
    return t === sa || t === Ui
}
var b2 = "undefined", JYe = typeof Uint32Array === b2 ? Array : Uint32Array, eqe = typeof Uint16Array === b2 ? Array : Uint16Array, Zoe = typeof Int32Array === b2 ? Array : Int32Array, mj = typeof Float64Array === b2 ? Array : Float64Array, Qoe = {
    float: mj,
    int: Zoe,
    ordinal: Array,
    number: Array,
    time: mj
}, XP;
function bp(t) {
    return t > 65535 ? JYe : eqe
}
function Pd() {
    return [1 / 0, -1 / 0]
}
function tqe(t) {
    var e = t.constructor;
    return e === Array ? t.slice() : new e(t)
}
function yj(t, e, n, r, a) {
    var i = Qoe[n || "float"];
    if (a) {
        var o = t[e]
          , l = o && o.length;
        if (l !== r) {
            for (var s = new i(r), u = 0; u < l; u++)
                s[u] = o[u];
            t[e] = s
        }
    } else
        t[e] = new i(r)
}
var $I = function() {
    function t() {
        this._chunks = [],
        this._rawExtent = [],
        this._extent = [],
        this._count = 0,
        this._rawCount = 0,
        this._calcDimNameToIdx = Qe()
    }
    return t.prototype.initData = function(e, n, r) {
        this._provider = e,
        this._chunks = [],
        this._indices = null,
        this.getRawIndex = this._getRawIdxIdentity;
        var a = e.getSource()
          , i = this.defaultDimValueGetter = XP[a.sourceFormat];
        this._dimValueGetter = r || i,
        this._rawExtent = [],
        Hoe(a),
        this._dimensions = Le(n, function(o) {
            return {
                type: o.type,
                property: o.property
            }
        }),
        this._initDataFromProvider(0, e.count())
    }
    ,
    t.prototype.getProvider = function() {
        return this._provider
    }
    ,
    t.prototype.getSource = function() {
        return this._provider.getSource()
    }
    ,
    t.prototype.ensureCalculationDimension = function(e, n) {
        var r = this._calcDimNameToIdx
          , a = this._dimensions
          , i = r.get(e);
        if (i != null) {
            if (a[i].type === n)
                return i
        } else
            i = a.length;
        return a[i] = {
            type: n
        },
        r.set(e, i),
        this._chunks[i] = new Qoe[n || "float"](this._rawCount),
        this._rawExtent[i] = Pd(),
        i
    }
    ,
    t.prototype.collectOrdinalMeta = function(e, n) {
        var r = this._chunks[e]
          , a = this._dimensions[e]
          , i = this._rawExtent
          , o = a.ordinalOffset || 0
          , l = r.length;
        o === 0 && (i[e] = Pd());
        for (var s = i[e], u = o; u < l; u++) {
            var c = r[u] = n.parseAndCollect(r[u]);
            isNaN(c) || (s[0] = Math.min(c, s[0]),
            s[1] = Math.max(c, s[1]))
        }
        a.ordinalMeta = n,
        a.ordinalOffset = l,
        a.type = "ordinal"
    }
    ,
    t.prototype.getOrdinalMeta = function(e) {
        var n = this._dimensions[e]
          , r = n.ordinalMeta;
        return r
    }
    ,
    t.prototype.getDimensionProperty = function(e) {
        var n = this._dimensions[e];
        return n && n.property
    }
    ,
    t.prototype.appendData = function(e) {
        var n = this._provider
          , r = this.count();
        n.appendData(e);
        var a = n.count();
        return n.persistent || (a += r),
        r < a && this._initDataFromProvider(r, a, !0),
        [r, a]
    }
    ,
    t.prototype.appendValues = function(e, n) {
        for (var r = this._chunks, a = this._dimensions, i = a.length, o = this._rawExtent, l = this.count(), s = l + Math.max(e.length, n || 0), u = 0; u < i; u++) {
            var c = a[u];
            yj(r, u, c.type, s, !0)
        }
        for (var f = [], d = l; d < s; d++)
            for (var v = d - l, h = 0; h < i; h++) {
                var c = a[h]
                  , p = XP.arrayRows.call(this, e[v] || f, c.property, v, h);
                r[h][d] = p;
                var g = o[h];
                p < g[0] && (g[0] = p),
                p > g[1] && (g[1] = p)
            }
        return this._rawCount = this._count = s,
        {
            start: l,
            end: s
        }
    }
    ,
    t.prototype._initDataFromProvider = function(e, n, r) {
        for (var a = this._provider, i = this._chunks, o = this._dimensions, l = o.length, s = this._rawExtent, u = Le(o, function(y) {
            return y.property
        }), c = 0; c < l; c++) {
            var f = o[c];
            s[c] || (s[c] = Pd()),
            yj(i, c, f.type, n, r)
        }
        if (a.fillStorage)
            a.fillStorage(e, n, i, s);
        else
            for (var d = [], v = e; v < n; v++) {
                d = a.getItem(v, d);
                for (var h = 0; h < l; h++) {
                    var p = i[h]
                      , g = this._dimValueGetter(d, u[h], v, h);
                    p[v] = g;
                    var m = s[h];
                    g < m[0] && (m[0] = g),
                    g > m[1] && (m[1] = g)
                }
            }
        !a.persistent && a.clean && a.clean(),
        this._rawCount = this._count = n,
        this._extent = []
    }
    ,
    t.prototype.count = function() {
        return this._count
    }
    ,
    t.prototype.get = function(e, n) {
        if (!(n >= 0 && n < this._count))
            return NaN;
        var r = this._chunks[e];
        return r ? r[this.getRawIndex(n)] : NaN
    }
    ,
    t.prototype.getValues = function(e, n) {
        var r = []
          , a = [];
        if (n == null) {
            n = e,
            e = [];
            for (var i = 0; i < this._dimensions.length; i++)
                a.push(i)
        } else
            a = e;
        for (var i = 0, o = a.length; i < o; i++)
            r.push(this.get(a[i], n));
        return r
    }
    ,
    t.prototype.getByRawIndex = function(e, n) {
        if (!(n >= 0 && n < this._rawCount))
            return NaN;
        var r = this._chunks[e];
        return r ? r[n] : NaN
    }
    ,
    t.prototype.getSum = function(e) {
        var n = this._chunks[e]
          , r = 0;
        if (n)
            for (var a = 0, i = this.count(); a < i; a++) {
                var o = this.get(e, a);
                isNaN(o) || (r += o)
            }
        return r
    }
    ,
    t.prototype.getMedian = function(e) {
        var n = [];
        this.each([e], function(i) {
            isNaN(i) || n.push(i)
        });
        var r = n.sort(function(i, o) {
            return i - o
        })
          , a = this.count();
        return a === 0 ? 0 : a % 2 === 1 ? r[(a - 1) / 2] : (r[a / 2] + r[a / 2 - 1]) / 2
    }
    ,
    t.prototype.indexOfRawIndex = function(e) {
        if (e >= this._rawCount || e < 0)
            return -1;
        if (!this._indices)
            return e;
        var n = this._indices
          , r = n[e];
        if (r != null && r < this._count && r === e)
            return e;
        for (var a = 0, i = this._count - 1; a <= i; ) {
            var o = (a + i) / 2 | 0;
            if (n[o] < e)
                a = o + 1;
            else if (n[o] > e)
                i = o - 1;
            else
                return o
        }
        return -1
    }
    ,
    t.prototype.indicesOfNearest = function(e, n, r) {
        var a = this._chunks
          , i = a[e]
          , o = [];
        if (!i)
            return o;
        r == null && (r = 1 / 0);
        for (var l = 1 / 0, s = -1, u = 0, c = 0, f = this.count(); c < f; c++) {
            var d = this.getRawIndex(c)
              , v = n - i[d]
              , h = Math.abs(v);
            h <= r && ((h < l || h === l && v >= 0 && s < 0) && (l = h,
            s = v,
            u = 0),
            v === s && (o[u++] = c))
        }
        return o.length = u,
        o
    }
    ,
    t.prototype.getIndices = function() {
        var e, n = this._indices;
        if (n) {
            var r = n.constructor
              , a = this._count;
            if (r === Array) {
                e = new r(a);
                for (var i = 0; i < a; i++)
                    e[i] = n[i]
            } else
                e = new r(n.buffer,0,a)
        } else {
            var r = bp(this._rawCount);
            e = new r(this.count());
            for (var i = 0; i < e.length; i++)
                e[i] = i
        }
        return e
    }
    ,
    t.prototype.filter = function(e, n) {
        if (!this._count)
            return this;
        for (var r = this.clone(), a = r.count(), i = bp(r._rawCount), o = new i(a), l = [], s = e.length, u = 0, c = e[0], f = r._chunks, d = 0; d < a; d++) {
            var v = void 0
              , h = r.getRawIndex(d);
            if (s === 0)
                v = n(d);
            else if (s === 1) {
                var p = f[c][h];
                v = n(p, d)
            } else {
                for (var g = 0; g < s; g++)
                    l[g] = f[e[g]][h];
                l[g] = d,
                v = n.apply(null, l)
            }
            v && (o[u++] = h)
        }
        return u < a && (r._indices = o),
        r._count = u,
        r._extent = [],
        r._updateGetRawIdx(),
        r
    }
    ,
    t.prototype.selectRange = function(e) {
        var n = this.clone()
          , r = n._count;
        if (!r)
            return this;
        var a = Gt(e)
          , i = a.length;
        if (!i)
            return this;
        var o = n.count()
          , l = bp(n._rawCount)
          , s = new l(o)
          , u = 0
          , c = a[0]
          , f = e[c][0]
          , d = e[c][1]
          , v = n._chunks
          , h = !1;
        if (!n._indices) {
            var p = 0;
            if (i === 1) {
                for (var g = v[a[0]], m = 0; m < r; m++) {
                    var y = g[m];
                    (y >= f && y <= d || isNaN(y)) && (s[u++] = p),
                    p++
                }
                h = !0
            } else if (i === 2) {
                for (var g = v[a[0]], b = v[a[1]], x = e[a[1]][0], C = e[a[1]][1], m = 0; m < r; m++) {
                    var y = g[m]
                      , S = b[m];
                    (y >= f && y <= d || isNaN(y)) && (S >= x && S <= C || isNaN(S)) && (s[u++] = p),
                    p++
                }
                h = !0
            }
        }
        if (!h)
            if (i === 1)
                for (var m = 0; m < o; m++) {
                    var w = n.getRawIndex(m)
                      , y = v[a[0]][w];
                    (y >= f && y <= d || isNaN(y)) && (s[u++] = w)
                }
            else
                for (var m = 0; m < o; m++) {
                    for (var T = !0, w = n.getRawIndex(m), P = 0; P < i; P++) {
                        var M = a[P]
                          , y = v[M][w];
                        (y < e[M][0] || y > e[M][1]) && (T = !1)
                    }
                    T && (s[u++] = n.getRawIndex(m))
                }
        return u < o && (n._indices = s),
        n._count = u,
        n._extent = [],
        n._updateGetRawIdx(),
        n
    }
    ,
    t.prototype.map = function(e, n) {
        var r = this.clone(e);
        return this._updateDims(r, e, n),
        r
    }
    ,
    t.prototype.modify = function(e, n) {
        this._updateDims(this, e, n)
    }
    ,
    t.prototype._updateDims = function(e, n, r) {
        for (var a = e._chunks, i = [], o = n.length, l = e.count(), s = [], u = e._rawExtent, c = 0; c < n.length; c++)
            u[n[c]] = Pd();
        for (var f = 0; f < l; f++) {
            for (var d = e.getRawIndex(f), v = 0; v < o; v++)
                s[v] = a[n[v]][d];
            s[o] = f;
            var h = r && r.apply(null, s);
            if (h != null) {
                typeof h != "object" && (i[0] = h,
                h = i);
                for (var c = 0; c < h.length; c++) {
                    var p = n[c]
                      , g = h[c]
                      , m = u[p]
                      , y = a[p];
                    y && (y[d] = g),
                    g < m[0] && (m[0] = g),
                    g > m[1] && (m[1] = g)
                }
            }
        }
    }
    ,
    t.prototype.lttbDownSample = function(e, n) {
        var r = this.clone([e], !0), a = r._chunks, i = a[e], o = this.count(), l = 0, s = Math.floor(1 / n), u = this.getRawIndex(0), c, f, d, v = new (bp(this._rawCount))(Math.min((Math.ceil(o / s) + 2) * 2, o));
        v[l++] = u;
        for (var h = 1; h < o - 1; h += s) {
            for (var p = Math.min(h + s, o - 1), g = Math.min(h + s * 2, o), m = (g + p) / 2, y = 0, b = p; b < g; b++) {
                var x = this.getRawIndex(b)
                  , C = i[x];
                isNaN(C) || (y += C)
            }
            y /= g - p;
            var S = h
              , w = Math.min(h + s, o)
              , T = h - 1
              , P = i[u];
            c = -1,
            d = S;
            for (var M = -1, A = 0, b = S; b < w; b++) {
                var x = this.getRawIndex(b)
                  , C = i[x];
                if (isNaN(C)) {
                    A++,
                    M < 0 && (M = x);
                    continue
                }
                f = Math.abs((T - m) * (C - P) - (T - b) * (y - P)),
                f > c && (c = f,
                d = x)
            }
            A > 0 && A < w - S && (v[l++] = Math.min(M, d),
            d = Math.max(M, d)),
            v[l++] = d,
            u = d
        }
        return v[l++] = this.getRawIndex(o - 1),
        r._count = l,
        r._indices = v,
        r.getRawIndex = this._getRawIdx,
        r
    }
    ,
    t.prototype.downSample = function(e, n, r, a) {
        for (var i = this.clone([e], !0), o = i._chunks, l = [], s = Math.floor(1 / n), u = o[e], c = this.count(), f = i._rawExtent[e] = Pd(), d = new (bp(this._rawCount))(Math.ceil(c / s)), v = 0, h = 0; h < c; h += s) {
            s > c - h && (s = c - h,
            l.length = s);
            for (var p = 0; p < s; p++) {
                var g = this.getRawIndex(h + p);
                l[p] = u[g]
            }
            var m = r(l)
              , y = this.getRawIndex(Math.min(h + a(l, m) || 0, c - 1));
            u[y] = m,
            m < f[0] && (f[0] = m),
            m > f[1] && (f[1] = m),
            d[v++] = y
        }
        return i._count = v,
        i._indices = d,
        i._updateGetRawIdx(),
        i
    }
    ,
    t.prototype.each = function(e, n) {
        if (!!this._count)
            for (var r = e.length, a = this._chunks, i = 0, o = this.count(); i < o; i++) {
                var l = this.getRawIndex(i);
                switch (r) {
                case 0:
                    n(i);
                    break;
                case 1:
                    n(a[e[0]][l], i);
                    break;
                case 2:
                    n(a[e[0]][l], a[e[1]][l], i);
                    break;
                default:
                    for (var s = 0, u = []; s < r; s++)
                        u[s] = a[e[s]][l];
                    u[s] = i,
                    n.apply(null, u)
                }
            }
    }
    ,
    t.prototype.getDataExtent = function(e) {
        var n = this._chunks[e]
          , r = Pd();
        if (!n)
            return r;
        var a = this.count(), i = !this._indices, o;
        if (i)
            return this._rawExtent[e].slice();
        if (o = this._extent[e],
        o)
            return o.slice();
        o = r;
        for (var l = o[0], s = o[1], u = 0; u < a; u++) {
            var c = this.getRawIndex(u)
              , f = n[c];
            f < l && (l = f),
            f > s && (s = f)
        }
        return o = [l, s],
        this._extent[e] = o,
        o
    }
    ,
    t.prototype.getRawDataItem = function(e) {
        var n = this.getRawIndex(e);
        if (this._provider.persistent)
            return this._provider.getItem(n);
        for (var r = [], a = this._chunks, i = 0; i < a.length; i++)
            r.push(a[i][n]);
        return r
    }
    ,
    t.prototype.clone = function(e, n) {
        var r = new t
          , a = this._chunks
          , i = e && Hi(e, function(l, s) {
            return l[s] = !0,
            l
        }, {});
        if (i)
            for (var o = 0; o < a.length; o++)
                r._chunks[o] = i[o] ? tqe(a[o]) : a[o];
        else
            r._chunks = a;
        return this._copyCommonProps(r),
        n || (r._indices = this._cloneIndices()),
        r._updateGetRawIdx(),
        r
    }
    ,
    t.prototype._copyCommonProps = function(e) {
        e._count = this._count,
        e._rawCount = this._rawCount,
        e._provider = this._provider,
        e._dimensions = this._dimensions,
        e._extent = ut(this._extent),
        e._rawExtent = ut(this._rawExtent)
    }
    ,
    t.prototype._cloneIndices = function() {
        if (this._indices) {
            var e = this._indices.constructor
              , n = void 0;
            if (e === Array) {
                var r = this._indices.length;
                n = new e(r);
                for (var a = 0; a < r; a++)
                    n[a] = this._indices[a]
            } else
                n = new e(this._indices);
            return n
        }
        return null
    }
    ,
    t.prototype._getRawIdxIdentity = function(e) {
        return e
    }
    ,
    t.prototype._getRawIdx = function(e) {
        return e < this._count && e >= 0 ? this._indices[e] : -1
    }
    ,
    t.prototype._updateGetRawIdx = function() {
        this.getRawIndex = this._indices ? this._getRawIdx : this._getRawIdxIdentity
    }
    ,
    t.internalField = function() {
        function e(n, r, a, i) {
            return wu(n[i], this._dimensions[i])
        }
        XP = {
            arrayRows: e,
            objectRows: function(n, r, a, i) {
                return wu(n[r], this._dimensions[i])
            },
            keyedColumns: e,
            original: function(n, r, a, i) {
                var o = n && (n.value == null ? n : n.value);
                return wu(o instanceof Array ? o[i] : o, this._dimensions[i])
            },
            typedArray: function(n, r, a, i) {
                return n[i]
            }
        }
    }(),
    t
}()
  , Joe = function() {
    function t(e) {
        this._sourceList = [],
        this._storeList = [],
        this._upstreamSignList = [],
        this._versionSignBase = 0,
        this._dirty = !0,
        this._sourceHost = e
    }
    return t.prototype.dirty = function() {
        this._setLocalSource([], []),
        this._storeList = [],
        this._dirty = !0
    }
    ,
    t.prototype._setLocalSource = function(e, n) {
        this._sourceList = e,
        this._upstreamSignList = n,
        this._versionSignBase++,
        this._versionSignBase > 9e10 && (this._versionSignBase = 0)
    }
    ,
    t.prototype._getVersionSign = function() {
        return this._sourceHost.uid + "_" + this._versionSignBase
    }
    ,
    t.prototype.prepareSource = function() {
        this._isDirty() && (this._createSource(),
        this._dirty = !1)
    }
    ,
    t.prototype._createSource = function() {
        this._setLocalSource([], []);
        var e = this._sourceHost, n = this._getUpstreamSourceManagers(), r = !!n.length, a, i;
        if (w1(e)) {
            var o = e
              , l = void 0
              , s = void 0
              , u = void 0;
            if (r) {
                var c = n[0];
                c.prepareSource(),
                u = c.getSource(),
                l = u.data,
                s = u.sourceFormat,
                i = [c._getVersionSign()]
            } else
                l = o.get("data", !0),
                s = ja(l) ? Cu : Ki,
                i = [];
            var f = this._getSourceMetaRawOption() || {}
              , d = u && u.metaRawOption || {}
              , v = Ot(f.seriesLayoutBy, d.seriesLayoutBy) || null
              , h = Ot(f.sourceHeader, d.sourceHeader)
              , p = Ot(f.dimensions, d.dimensions)
              , g = v !== d.seriesLayoutBy || !!h != !!d.sourceHeader || p;
            a = g ? [NI(l, {
                seriesLayoutBy: v,
                sourceHeader: h,
                dimensions: p
            }, s)] : []
        } else {
            var m = e;
            if (r) {
                var y = this._applyTransform(n);
                a = y.sourceList,
                i = y.upstreamSignList
            } else {
                var b = m.get("source", !0);
                a = [NI(b, this._getSourceMetaRawOption(), null)],
                i = []
            }
        }
        this._setLocalSource(a, i)
    }
    ,
    t.prototype._applyTransform = function(e) {
        var n = this._sourceHost
          , r = n.get("transform", !0)
          , a = n.get("fromTransformResult", !0);
        if (a != null) {
            var i = "";
            e.length !== 1 && xj(i)
        }
        var o, l = [], s = [];
        return Z(e, function(u) {
            u.prepareSource();
            var c = u.getSource(a || 0)
              , f = "";
            a != null && !c && xj(f),
            l.push(c),
            s.push(u._getVersionSign())
        }),
        r ? o = ZYe(r, l, {
            datasetIndex: n.componentIndex
        }) : a != null && (o = [DYe(l[0])]),
        {
            sourceList: o,
            upstreamSignList: s
        }
    }
    ,
    t.prototype._isDirty = function() {
        if (this._dirty)
            return !0;
        for (var e = this._getUpstreamSourceManagers(), n = 0; n < e.length; n++) {
            var r = e[n];
            if (r._isDirty() || this._upstreamSignList[n] !== r._getVersionSign())
                return !0
        }
    }
    ,
    t.prototype.getSource = function(e) {
        e = e || 0;
        var n = this._sourceList[e];
        if (!n) {
            var r = this._getUpstreamSourceManagers();
            return r[0] && r[0].getSource(e)
        }
        return n
    }
    ,
    t.prototype.getSharedDataStore = function(e) {
        var n = e.makeStoreSchema();
        return this._innerGetDataStore(n.dimensions, e.source, n.hash)
    }
    ,
    t.prototype._innerGetDataStore = function(e, n, r) {
        var a = 0
          , i = this._storeList
          , o = i[a];
        o || (o = i[a] = {});
        var l = o[r];
        if (!l) {
            var s = this._getUpstreamSourceManagers()[0];
            w1(this._sourceHost) && s ? l = s._innerGetDataStore(e, n, r) : (l = new $I,
            l.initData(new joe(n,e.length), e)),
            o[r] = l
        }
        return l
    }
    ,
    t.prototype._getUpstreamSourceManagers = function() {
        var e = this._sourceHost;
        if (w1(e)) {
            var n = u5(e);
            return n ? [n.getSourceManager()] : []
        } else
            return Le(aYe(e), function(r) {
                return r.getSourceManager()
            })
    }
    ,
    t.prototype._getSourceMetaRawOption = function() {
        var e = this._sourceHost, n, r, a;
        if (w1(e))
            n = e.get("seriesLayoutBy", !0),
            r = e.get("sourceHeader", !0),
            a = e.get("dimensions", !0);
        else if (!this._getUpstreamSourceManagers().length) {
            var i = e;
            n = i.get("seriesLayoutBy", !0),
            r = i.get("sourceHeader", !0),
            a = i.get("dimensions", !0)
        }
        return {
            seriesLayoutBy: n,
            sourceHeader: r,
            dimensions: a
        }
    }
    ,
    t
}();
function bj(t) {
    var e = t.option.transform;
    e && I0(t.option.transform)
}
function w1(t) {
    return t.mainType === "series"
}
function xj(t) {
    throw new Error(t)
}
var ele = "line-height:1";
function tle(t, e) {
    var n = t.color || "#6e7079"
      , r = t.fontSize || 12
      , a = t.fontWeight || "400"
      , i = t.color || "#464646"
      , o = t.fontSize || 14
      , l = t.fontWeight || "900";
    return e === "html" ? {
        nameStyle: "font-size:" + Sa(r + "") + "px;color:" + Sa(n) + ";font-weight:" + Sa(a + ""),
        valueStyle: "font-size:" + Sa(o + "") + "px;color:" + Sa(i) + ";font-weight:" + Sa(l + "")
    } : {
        nameStyle: {
            fontSize: r,
            fill: n,
            fontWeight: a
        },
        valueStyle: {
            fontSize: o,
            fill: i,
            fontWeight: l
        }
    }
}
var nqe = [0, 10, 20, 30]
  , rqe = ["", `
`, `

`, `


`];
function $r(t, e) {
    return e.type = t,
    e
}
function FI(t) {
    return t.type === "section"
}
function nle(t) {
    return FI(t) ? aqe : iqe
}
function rle(t) {
    if (FI(t)) {
        var e = 0
          , n = t.blocks.length
          , r = n > 1 || n > 0 && !t.noHeader;
        return Z(t.blocks, function(a) {
            var i = rle(a);
            i >= e && (e = i + +(r && (!i || FI(a) && !a.noHeader)))
        }),
        e
    }
    return 0
}
function aqe(t, e, n, r) {
    var a = e.noHeader
      , i = oqe(rle(e))
      , o = []
      , l = e.blocks || [];
    la(!l || ke(l)),
    l = l || [];
    var s = t.orderMode;
    if (e.sortBlocks && s) {
        l = l.slice();
        var u = {
            valueAsc: "asc",
            valueDesc: "desc"
        };
        if (Ze(u, s)) {
            var c = new qoe(u[s],null);
            l.sort(function(h, p) {
                return c.evaluate(h.sortParam, p.sortParam)
            })
        } else
            s === "seriesDesc" && l.reverse()
    }
    Z(l, function(h, p) {
        var g = e.valueFormatter
          , m = nle(h)(g ? Me(Me({}, t), {
            valueFormatter: g
        }) : t, h, p > 0 ? i.html : 0, r);
        m != null && o.push(m)
    });
    var f = t.renderMode === "richText" ? o.join(i.richText) : BI(o.join(""), a ? n : i.html);
    if (a)
        return f;
    var d = EI(e.header, "ordinal", t.useUTC)
      , v = tle(r, t.renderMode).nameStyle;
    return t.renderMode === "richText" ? ale(t, d, v) + i.richText + f : BI('<div style="' + v + ";" + ele + ';">' + Sa(d) + "</div>" + f, n)
}
function iqe(t, e, n, r) {
    var a = t.renderMode
      , i = e.noName
      , o = e.noValue
      , l = !e.markerType
      , s = e.name
      , u = t.useUTC
      , c = e.valueFormatter || t.valueFormatter || function(x) {
        return x = ke(x) ? x : [x],
        Le(x, function(C, S) {
            return EI(C, ke(v) ? v[S] : v, u)
        })
    }
    ;
    if (!(i && o)) {
        var f = l ? "" : t.markupStyleCreator.makeTooltipMarker(e.markerType, e.markerColor || "#333", a)
          , d = i ? "" : EI(s, "ordinal", u)
          , v = e.valueType
          , h = o ? [] : c(e.value)
          , p = !l || !i
          , g = !l && i
          , m = tle(r, a)
          , y = m.nameStyle
          , b = m.valueStyle;
        return a === "richText" ? (l ? "" : f) + (i ? "" : ale(t, d, y)) + (o ? "" : uqe(t, h, p, g, b)) : BI((l ? "" : f) + (i ? "" : lqe(d, !l, y)) + (o ? "" : sqe(h, p, g, b)), n)
    }
}
function Sj(t, e, n, r, a, i) {
    if (!!t) {
        var o = nle(t)
          , l = {
            useUTC: a,
            renderMode: n,
            orderMode: r,
            markupStyleCreator: e,
            valueFormatter: t.valueFormatter
        };
        return o(l, t, 0, i)
    }
}
function oqe(t) {
    return {
        html: nqe[t],
        richText: rqe[t]
    }
}
function BI(t, e) {
    var n = '<div style="clear:both"></div>'
      , r = "margin: " + e + "px 0 0";
    return '<div style="' + r + ";" + ele + ';">' + t + n + "</div>"
}
function lqe(t, e, n) {
    var r = e ? "margin-left:2px" : "";
    return '<span style="' + n + ";" + r + '">' + Sa(t) + "</span>"
}
function sqe(t, e, n, r) {
    var a = n ? "10px" : "20px"
      , i = e ? "float:right;margin-left:" + a : "";
    return t = ke(t) ? t : [t],
    '<span style="' + i + ";" + r + '">' + Le(t, function(o) {
        return Sa(o)
    }).join("&nbsp;&nbsp;") + "</span>"
}
function ale(t, e, n) {
    return t.markupStyleCreator.wrapRichTextStyle(e, n)
}
function uqe(t, e, n, r, a) {
    var i = [a]
      , o = r ? 10 : 20;
    return n && i.push({
        padding: [0, 0, 0, o],
        align: "right"
    }),
    t.markupStyleCreator.wrapRichTextStyle(ke(e) ? e.join("  ") : e, i)
}
function ile(t, e) {
    var n = t.getData().getItemVisual(e, "style")
      , r = n[t.visualDrawType];
    return Vf(r)
}
function ole(t, e) {
    var n = t.get("padding");
    return n != null ? n : e === "richText" ? [8, 10] : 10
}
var ZP = function() {
    function t() {
        this.richTextStyles = {},
        this._nextStyleNameId = oie()
    }
    return t.prototype._generateStyleName = function() {
        return "__EC_aUTo_" + this._nextStyleNameId++
    }
    ,
    t.prototype.makeTooltipMarker = function(e, n, r) {
        var a = r === "richText" ? this._generateStyleName() : null
          , i = Toe({
            color: n,
            type: e,
            renderMode: r,
            markerId: a
        });
        return Ge(i) ? i : (this.richTextStyles[a] = i.style,
        i.content)
    }
    ,
    t.prototype.wrapRichTextStyle = function(e, n) {
        var r = {};
        ke(n) ? Z(n, function(i) {
            return Me(r, i)
        }) : Me(r, n);
        var a = this._generateStyleName();
        return this.richTextStyles[a] = r,
        "{" + a + "|" + e + "}"
    }
    ,
    t
}();
function lle(t) {
    var e = t.series, n = t.dataIndex, r = t.multipleSeries, a = e.getData(), i = a.mapDimensionsAll("defaultedTooltip"), o = i.length, l = e.getRawValue(n), s = ke(l), u = ile(e, n), c, f, d, v;
    if (o > 1 || s && !o) {
        var h = cqe(l, e, n, i, u);
        c = h.inlineValues,
        f = h.inlineValueTypes,
        d = h.blocks,
        v = h.inlineValues[0]
    } else if (o) {
        var p = a.getDimensionInfo(i[0]);
        v = c = Qv(a, n, i[0]),
        f = p.type
    } else
        v = c = s ? l[0] : l;
    var g = $6(e)
      , m = g && e.name || ""
      , y = a.getName(n)
      , b = r ? m : y;
    return $r("section", {
        header: m,
        noHeader: r || !g,
        sortParam: v,
        blocks: [$r("nameValue", {
            markerType: "item",
            markerColor: u,
            name: b,
            noName: !Di(b),
            value: c,
            valueType: f
        })].concat(d || [])
    })
}
function cqe(t, e, n, r, a) {
    var i = e.getData()
      , o = Hi(t, function(f, d, v) {
        var h = i.getDimensionInfo(v);
        return f = f || h && h.tooltip !== !1 && h.displayName != null
    }, !1)
      , l = []
      , s = []
      , u = [];
    r.length ? Z(r, function(f) {
        c(Qv(i, n, f), f)
    }) : Z(t, c);
    function c(f, d) {
        var v = i.getDimensionInfo(d);
        !v || v.otherDims.tooltip === !1 || (o ? u.push($r("nameValue", {
            markerType: "subItem",
            markerColor: a,
            name: v.displayName,
            value: f,
            valueType: v.type
        })) : (l.push(f),
        s.push(v.type)))
    }
    return {
        inlineValues: l,
        inlineValueTypes: s,
        blocks: u
    }
}
var Ls = an();
function _1(t, e) {
    return t.getName(e) || t.getId(e)
}
var fx = "__universalTransitionEnabled"
  , x2 = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n._selectedDataIndicesMap = {},
        n
    }
    return e.prototype.init = function(n, r, a) {
        this.seriesIndex = this.componentIndex,
        this.dataTask = jg({
            count: dqe,
            reset: vqe
        }),
        this.dataTask.context = {
            model: this
        },
        this.mergeDefaultAndTheme(n, a);
        var i = Ls(this).sourceManager = new Joe(this);
        i.prepareSource();
        var o = this.getInitialData(n, a);
        wj(o, this),
        this.dataTask.context.data = o,
        Ls(this).dataBeforeProcessed = o,
        Cj(this),
        this._initSelectedMapFromData(o)
    }
    ,
    e.prototype.mergeDefaultAndTheme = function(n, r) {
        var a = G0(this)
          , i = a ? Eh(n) : {}
          , o = this.subType;
        qt.hasClass(o) && (o += "Series"),
        At(n, r.getTheme().get(this.subType)),
        At(n, this.getDefaultOption()),
        Nf(n, "label", ["show"]),
        this.fillDataTextStyle(n.data),
        a && Eu(n, i, a)
    }
    ,
    e.prototype.mergeOption = function(n, r) {
        n = At(this.option, n, !0),
        this.fillDataTextStyle(n.data);
        var a = G0(this);
        a && Eu(this.option, n, a);
        var i = Ls(this).sourceManager;
        i.dirty(),
        i.prepareSource();
        var o = this.getInitialData(n, r);
        wj(o, this),
        this.dataTask.dirty(),
        this.dataTask.context.data = o,
        Ls(this).dataBeforeProcessed = o,
        Cj(this),
        this._initSelectedMapFromData(o)
    }
    ,
    e.prototype.fillDataTextStyle = function(n) {
        if (n && !ja(n))
            for (var r = ["show"], a = 0; a < n.length; a++)
                n[a] && n[a].label && Nf(n[a], "label", r)
    }
    ,
    e.prototype.getInitialData = function(n, r) {}
    ,
    e.prototype.appendData = function(n) {
        var r = this.getRawData();
        r.appendData(n.data)
    }
    ,
    e.prototype.getData = function(n) {
        var r = VI(this);
        if (r) {
            var a = r.context.data;
            return n == null ? a : a.getLinkedData(n)
        } else
            return Ls(this).data
    }
    ,
    e.prototype.getAllData = function() {
        var n = this.getData();
        return n && n.getLinkedDataAll ? n.getLinkedDataAll() : [{
            data: n
        }]
    }
    ,
    e.prototype.setData = function(n) {
        var r = VI(this);
        if (r) {
            var a = r.context;
            a.outputData = n,
            r !== this.dataTask && (a.data = n)
        }
        Ls(this).data = n
    }
    ,
    e.prototype.getEncode = function() {
        var n = this.get("encode", !0);
        if (n)
            return Qe(n)
    }
    ,
    e.prototype.getSourceManager = function() {
        return Ls(this).sourceManager
    }
    ,
    e.prototype.getSource = function() {
        return this.getSourceManager().getSource()
    }
    ,
    e.prototype.getRawData = function() {
        return Ls(this).dataBeforeProcessed
    }
    ,
    e.prototype.getColorBy = function() {
        var n = this.get("colorBy");
        return n || "series"
    }
    ,
    e.prototype.isColorBySeries = function() {
        return this.getColorBy() === "series"
    }
    ,
    e.prototype.getBaseAxis = function() {
        var n = this.coordinateSystem;
        return n && n.getBaseAxis && n.getBaseAxis()
    }
    ,
    e.prototype.formatTooltip = function(n, r, a) {
        return lle({
            series: this,
            dataIndex: n,
            multipleSeries: r
        })
    }
    ,
    e.prototype.isAnimationEnabled = function() {
        var n = this.ecModel;
        if (nn.node && !(n && n.ssr))
            return !1;
        var r = this.getShallow("animation");
        return r && this.getData().count() > this.getShallow("animationThreshold") && (r = !1),
        !!r
    }
    ,
    e.prototype.restoreData = function() {
        this.dataTask.dirty()
    }
    ,
    e.prototype.getColorFromPalette = function(n, r, a) {
        var i = this.ecModel
          , o = c5.prototype.getColorFromPalette.call(this, n, r, a);
        return o || (o = i.getColorFromPalette(n, r, a)),
        o
    }
    ,
    e.prototype.coordDimToDataDim = function(n) {
        return this.getRawData().mapDimensionsAll(n)
    }
    ,
    e.prototype.getProgressive = function() {
        return this.get("progressive")
    }
    ,
    e.prototype.getProgressiveThreshold = function() {
        return this.get("progressiveThreshold")
    }
    ,
    e.prototype.select = function(n, r) {
        this._innerSelect(this.getData(r), n)
    }
    ,
    e.prototype.unselect = function(n, r) {
        var a = this.option.selectedMap;
        if (!!a) {
            var i = this.option.selectedMode
              , o = this.getData(r);
            if (i === "series" || a === "all") {
                this.option.selectedMap = {},
                this._selectedDataIndicesMap = {};
                return
            }
            for (var l = 0; l < n.length; l++) {
                var s = n[l]
                  , u = _1(o, s);
                a[u] = !1,
                this._selectedDataIndicesMap[u] = -1
            }
        }
    }
    ,
    e.prototype.toggleSelect = function(n, r) {
        for (var a = [], i = 0; i < n.length; i++)
            a[0] = n[i],
            this.isSelected(n[i], r) ? this.unselect(a, r) : this.select(a, r)
    }
    ,
    e.prototype.getSelectedDataIndices = function() {
        if (this.option.selectedMap === "all")
            return [].slice.call(this.getData().getIndices());
        for (var n = this._selectedDataIndicesMap, r = Gt(n), a = [], i = 0; i < r.length; i++) {
            var o = n[r[i]];
            o >= 0 && a.push(o)
        }
        return a
    }
    ,
    e.prototype.isSelected = function(n, r) {
        var a = this.option.selectedMap;
        if (!a)
            return !1;
        var i = this.getData(r);
        return (a === "all" || a[_1(i, n)]) && !i.getItemModel(n).get(["select", "disabled"])
    }
    ,
    e.prototype.isUniversalTransitionEnabled = function() {
        if (this[fx])
            return !0;
        var n = this.option.universalTransition;
        return n ? n === !0 ? !0 : n && n.enabled : !1
    }
    ,
    e.prototype._innerSelect = function(n, r) {
        var a, i, o = this.option, l = o.selectedMode, s = r.length;
        if (!(!l || !s)) {
            if (l === "series")
                o.selectedMap = "all";
            else if (l === "multiple") {
                st(o.selectedMap) || (o.selectedMap = {});
                for (var u = o.selectedMap, c = 0; c < s; c++) {
                    var f = r[c]
                      , d = _1(n, f);
                    u[d] = !0,
                    this._selectedDataIndicesMap[d] = n.getRawIndex(f)
                }
            } else if (l === "single" || l === !0) {
                var v = r[s - 1]
                  , d = _1(n, v);
                o.selectedMap = (a = {},
                a[d] = !0,
                a),
                this._selectedDataIndicesMap = (i = {},
                i[d] = n.getRawIndex(v),
                i)
            }
        }
    }
    ,
    e.prototype._initSelectedMapFromData = function(n) {
        if (!this.option.selectedMap) {
            var r = [];
            n.hasItemOption && n.each(function(a) {
                var i = n.getRawDataItem(a);
                i && i.selected && r.push(a)
            }),
            r.length > 0 && this._innerSelect(n, r)
        }
    }
    ,
    e.registerClass = function(n) {
        return qt.registerClass(n)
    }
    ,
    e.protoInitialize = function() {
        var n = e.prototype;
        n.type = "series.__base__",
        n.seriesIndex = 0,
        n.ignoreStyleOnData = !1,
        n.hasSymbolVisual = !1,
        n.defaultSymbol = "circle",
        n.visualStyleAccessPath = "itemStyle",
        n.visualDrawType = "fill"
    }(),
    e
}(qt);
ir(x2, h5);
ir(x2, c5);
pie(x2, qt);
function Cj(t) {
    var e = t.name;
    $6(t) || (t.name = fqe(t) || e)
}
function fqe(t) {
    var e = t.getRawData()
      , n = e.mapDimensionsAll("seriesName")
      , r = [];
    return Z(n, function(a) {
        var i = e.getDimensionInfo(a);
        i.displayName && r.push(i.displayName)
    }),
    r.join(" ")
}
function dqe(t) {
    return t.model.getRawData().count()
}
function vqe(t) {
    var e = t.model;
    return e.setData(e.getRawData().cloneShallow()),
    hqe
}
function hqe(t, e) {
    e.outputData && t.end > e.outputData.count() && e.model.getRawData().cloneShallow(e.outputData)
}
function wj(t, e) {
    Z(k0(t.CHANGABLE_METHODS, t.DOWNSAMPLE_METHODS), function(n) {
        t.wrapMethod(n, St(pqe, e))
    })
}
function pqe(t, e) {
    var n = VI(t);
    return n && n.setOutputEnd((e || this).count()),
    e
}
function VI(t) {
    var e = (t.ecModel || {}).scheduler
      , n = e && e.getPipeline(t.uid);
    if (n) {
        var r = n.currentTask;
        if (r) {
            var a = r.agentStubMap;
            a && (r = a.get(t.uid))
        }
        return r
    }
}
const En = x2;
var g5 = function() {
    function t() {
        this.group = new mt,
        this.uid = Dh("viewComponent")
    }
    return t.prototype.init = function(e, n) {}
    ,
    t.prototype.render = function(e, n, r, a) {}
    ,
    t.prototype.dispose = function(e, n) {}
    ,
    t.prototype.updateView = function(e, n, r, a) {}
    ,
    t.prototype.updateLayout = function(e, n, r, a) {}
    ,
    t.prototype.updateVisual = function(e, n, r, a) {}
    ,
    t.prototype.toggleBlurSeries = function(e, n, r) {}
    ,
    t.prototype.eachRendered = function(e) {
        var n = this.group;
        n && n.traverse(e)
    }
    ,
    t
}();
B6(g5);
t2(g5);
const Bn = g5;
function $h() {
    var t = an();
    return function(e) {
        var n = t(e)
          , r = e.pipelineContext
          , a = !!n.large
          , i = !!n.progressiveRender
          , o = n.large = !!(r && r.large)
          , l = n.progressiveRender = !!(r && r.progressiveRender);
        return (a !== o || i !== l) && "reset"
    }
}
var sle = an()
  , gqe = $h()
  , m5 = function() {
    function t() {
        this.group = new mt,
        this.uid = Dh("viewChart"),
        this.renderTask = jg({
            plan: mqe,
            reset: yqe
        }),
        this.renderTask.context = {
            view: this
        }
    }
    return t.prototype.init = function(e, n) {}
    ,
    t.prototype.render = function(e, n, r, a) {}
    ,
    t.prototype.highlight = function(e, n, r, a) {
        var i = e.getData(a && a.dataType);
        !i || Tj(i, a, "emphasis")
    }
    ,
    t.prototype.downplay = function(e, n, r, a) {
        var i = e.getData(a && a.dataType);
        !i || Tj(i, a, "normal")
    }
    ,
    t.prototype.remove = function(e, n) {
        this.group.removeAll()
    }
    ,
    t.prototype.dispose = function(e, n) {}
    ,
    t.prototype.updateView = function(e, n, r, a) {
        this.render(e, n, r, a)
    }
    ,
    t.prototype.updateLayout = function(e, n, r, a) {
        this.render(e, n, r, a)
    }
    ,
    t.prototype.updateVisual = function(e, n, r, a) {
        this.render(e, n, r, a)
    }
    ,
    t.prototype.eachRendered = function(e) {
        Uu(this.group, e)
    }
    ,
    t.markUpdateMethod = function(e, n) {
        sle(e).updateMethod = n
    }
    ,
    t.protoInitialize = function() {
        var e = t.prototype;
        e.type = "chart"
    }(),
    t
}();
function _j(t, e, n) {
    t && z0(t) && (e === "emphasis" ? us : cs)(t, n)
}
function Tj(t, e, n) {
    var r = $f(t, e)
      , a = e && e.highlightKey != null ? KKe(e.highlightKey) : null;
    r != null ? Z(_n(r), function(i) {
        _j(t.getItemGraphicEl(i), n, a)
    }) : t.eachItemGraphicEl(function(i) {
        _j(i, n, a)
    })
}
B6(m5);
t2(m5);
function mqe(t) {
    return gqe(t.model)
}
function yqe(t) {
    var e = t.model
      , n = t.ecModel
      , r = t.api
      , a = t.payload
      , i = e.pipelineContext.progressiveRender
      , o = t.view
      , l = a && sle(a).updateMethod
      , s = i ? "incrementalPrepareRender" : l && o[l] ? l : "render";
    return s !== "render" && o[s](e, n, r, a),
    bqe[s]
}
var bqe = {
    incrementalPrepareRender: {
        progress: function(t, e) {
            e.view.incrementalRender(t, e.model, e.ecModel, e.api, e.payload)
        }
    },
    render: {
        forceFirstProgress: !0,
        progress: function(t, e) {
            e.view.render(e.model, e.ecModel, e.api, e.payload)
        }
    }
};
const Tn = m5;
var NS = "\0__throttleOriginMethod"
  , Pj = "\0__throttleRate"
  , Mj = "\0__throttleType";
function S2(t, e, n) {
    var r, a = 0, i = 0, o = null, l, s, u, c;
    e = e || 0;
    function f() {
        i = new Date().getTime(),
        o = null,
        t.apply(s, u || [])
    }
    var d = function() {
        for (var v = [], h = 0; h < arguments.length; h++)
            v[h] = arguments[h];
        r = new Date().getTime(),
        s = this,
        u = v;
        var p = c || e
          , g = c || n;
        c = null,
        l = r - (g ? a : i) - p,
        clearTimeout(o),
        g ? o = setTimeout(f, p) : l >= 0 ? f() : o = setTimeout(f, -l),
        a = r
    };
    return d.clear = function() {
        o && (clearTimeout(o),
        o = null)
    }
    ,
    d.debounceNextCall = function(v) {
        c = v
    }
    ,
    d
}
function Fh(t, e, n, r) {
    var a = t[e];
    if (!!a) {
        var i = a[NS] || a
          , o = a[Mj]
          , l = a[Pj];
        if (l !== n || o !== r) {
            if (n == null || !r)
                return t[e] = i;
            a = t[e] = S2(i, n, r === "debounce"),
            a[NS] = i,
            a[Mj] = r,
            a[Pj] = n
        }
        return a
    }
}
function U0(t, e) {
    var n = t[e];
    n && n[NS] && (n.clear && n.clear(),
    t[e] = n[NS])
}
var Aj = an()
  , Ij = {
    itemStyle: Ff(poe, !0),
    lineStyle: Ff(hoe, !0)
}
  , xqe = {
    lineStyle: "stroke",
    itemStyle: "fill"
};
function ule(t, e) {
    var n = t.visualStyleMapper || Ij[e];
    return n || Ij.itemStyle
}
function cle(t, e) {
    var n = t.visualDrawType || xqe[e];
    return n || "fill"
}
var Sqe = {
    createOnAllSeries: !0,
    performRawSeries: !0,
    reset: function(t, e) {
        var n = t.getData()
          , r = t.visualStyleAccessPath || "itemStyle"
          , a = t.getModel(r)
          , i = ule(t, r)
          , o = i(a)
          , l = a.getShallow("decal");
        l && (n.setVisual("decal", l),
        l.dirty = !0);
        var s = cle(t, r)
          , u = o[s]
          , c = et(u) ? u : null
          , f = o.fill === "auto" || o.stroke === "auto";
        if (!o[s] || c || f) {
            var d = t.getColorFromPalette(t.name, null, e.getSeriesCount());
            o[s] || (o[s] = d,
            n.setVisual("colorFromPalette", !0)),
            o.fill = o.fill === "auto" || et(o.fill) ? d : o.fill,
            o.stroke = o.stroke === "auto" || et(o.stroke) ? d : o.stroke
        }
        if (n.setVisual("style", o),
        n.setVisual("drawType", s),
        !e.isSeriesFiltered(t) && c)
            return n.setVisual("colorFromPalette", !1),
            {
                dataEach: function(v, h) {
                    var p = t.getDataParams(h)
                      , g = Me({}, o);
                    g[s] = c(p),
                    v.setItemVisual(h, "style", g)
                }
            }
    }
}
  , xp = new wn
  , Cqe = {
    createOnAllSeries: !0,
    performRawSeries: !0,
    reset: function(t, e) {
        if (!(t.ignoreStyleOnData || e.isSeriesFiltered(t))) {
            var n = t.getData()
              , r = t.visualStyleAccessPath || "itemStyle"
              , a = ule(t, r)
              , i = n.getVisual("drawType");
            return {
                dataEach: n.hasItemOption ? function(o, l) {
                    var s = o.getRawDataItem(l);
                    if (s && s[r]) {
                        xp.option = s[r];
                        var u = a(xp)
                          , c = o.ensureUniqueItemVisual(l, "style");
                        Me(c, u),
                        xp.option.decal && (o.setItemVisual(l, "decal", xp.option.decal),
                        xp.option.decal.dirty = !0),
                        i in u && o.setItemVisual(l, "colorFromPalette", !1)
                    }
                }
                : null
            }
        }
    }
}
  , wqe = {
    performRawSeries: !0,
    overallReset: function(t) {
        var e = Qe();
        t.eachSeries(function(n) {
            var r = n.getColorBy();
            if (!n.isColorBySeries()) {
                var a = n.type + "-" + r
                  , i = e.get(a);
                i || (i = {},
                e.set(a, i)),
                Aj(n).scope = i
            }
        }),
        t.eachSeries(function(n) {
            if (!(n.isColorBySeries() || t.isSeriesFiltered(n))) {
                var r = n.getRawData()
                  , a = {}
                  , i = n.getData()
                  , o = Aj(n).scope
                  , l = n.visualStyleAccessPath || "itemStyle"
                  , s = cle(n, l);
                i.each(function(u) {
                    var c = i.getRawIndex(u);
                    a[c] = u
                }),
                r.each(function(u) {
                    var c = a[u]
                      , f = i.getItemVisual(c, "colorFromPalette");
                    if (f) {
                        var d = i.ensureUniqueItemVisual(c, "style")
                          , v = r.getName(u) || u + ""
                          , h = r.count();
                        d[s] = n.getColorFromPalette(v, o, h)
                    }
                })
            }
        })
    }
}
  , T1 = Math.PI;
function _qe(t, e) {
    e = e || {},
    ot(e, {
        text: "loading",
        textColor: "#000",
        fontSize: 12,
        fontWeight: "normal",
        fontStyle: "normal",
        fontFamily: "sans-serif",
        maskColor: "rgba(255, 255, 255, 0.8)",
        showSpinner: !0,
        color: "#5470c6",
        spinnerRadius: 10,
        lineWidth: 5,
        zlevel: 0
    });
    var n = new mt
      , r = new tn({
        style: {
            fill: e.maskColor
        },
        zlevel: e.zlevel,
        z: 1e4
    });
    n.add(r);
    var a = new Jt({
        style: {
            text: e.text,
            fill: e.textColor,
            fontSize: e.fontSize,
            fontWeight: e.fontWeight,
            fontStyle: e.fontStyle,
            fontFamily: e.fontFamily
        },
        zlevel: e.zlevel,
        z: 10001
    })
      , i = new tn({
        style: {
            fill: "none"
        },
        textContent: a,
        textConfig: {
            position: "right",
            distance: 10
        },
        zlevel: e.zlevel,
        z: 10001
    });
    n.add(i);
    var o;
    return e.showSpinner && (o = new s2({
        shape: {
            startAngle: -T1 / 2,
            endAngle: -T1 / 2 + .1,
            r: e.spinnerRadius
        },
        style: {
            stroke: e.color,
            lineCap: "round",
            lineWidth: e.lineWidth
        },
        zlevel: e.zlevel,
        z: 10001
    }),
    o.animateShape(!0).when(1e3, {
        endAngle: T1 * 3 / 2
    }).start("circularInOut"),
    o.animateShape(!0).when(1e3, {
        startAngle: T1 * 3 / 2
    }).delay(300).start("circularInOut"),
    n.add(o)),
    n.resize = function() {
        var l = a.getBoundingRect().width
          , s = e.showSpinner ? e.spinnerRadius : 0
          , u = (t.getWidth() - s * 2 - (e.showSpinner && l ? 10 : 0) - l) / 2 - (e.showSpinner && l ? 0 : 5 + l / 2) + (e.showSpinner ? 0 : l / 2) + (l ? 0 : s)
          , c = t.getHeight() / 2;
        e.showSpinner && o.setShape({
            cx: u,
            cy: c
        }),
        i.setShape({
            x: u - s,
            y: c - s,
            width: s * 2,
            height: s * 2
        }),
        r.setShape({
            x: 0,
            y: 0,
            width: t.getWidth(),
            height: t.getHeight()
        })
    }
    ,
    n.resize(),
    n
}
var Tqe = function() {
    function t(e, n, r, a) {
        this._stageTaskMap = Qe(),
        this.ecInstance = e,
        this.api = n,
        r = this._dataProcessorHandlers = r.slice(),
        a = this._visualHandlers = a.slice(),
        this._allHandlers = r.concat(a)
    }
    return t.prototype.restoreData = function(e, n) {
        e.restoreData(n),
        this._stageTaskMap.each(function(r) {
            var a = r.overallTask;
            a && a.dirty()
        })
    }
    ,
    t.prototype.getPerformArgs = function(e, n) {
        if (!!e.__pipeline) {
            var r = this._pipelineMap.get(e.__pipeline.id)
              , a = r.context
              , i = !n && r.progressiveEnabled && (!a || a.progressiveRender) && e.__idxInPipeline > r.blockIndex
              , o = i ? r.step : null
              , l = a && a.modDataCount
              , s = l != null ? Math.ceil(l / o) : null;
            return {
                step: o,
                modBy: s,
                modDataCount: l
            }
        }
    }
    ,
    t.prototype.getPipeline = function(e) {
        return this._pipelineMap.get(e)
    }
    ,
    t.prototype.updateStreamModes = function(e, n) {
        var r = this._pipelineMap.get(e.uid)
          , a = e.getData()
          , i = a.count()
          , o = r.progressiveEnabled && n.incrementalPrepareRender && i >= r.threshold
          , l = e.get("large") && i >= e.get("largeThreshold")
          , s = e.get("progressiveChunkMode") === "mod" ? i : null;
        e.pipelineContext = r.context = {
            progressiveRender: o,
            modDataCount: s,
            large: l
        }
    }
    ,
    t.prototype.restorePipelines = function(e) {
        var n = this
          , r = n._pipelineMap = Qe();
        e.eachSeries(function(a) {
            var i = a.getProgressive()
              , o = a.uid;
            r.set(o, {
                id: o,
                head: null,
                tail: null,
                threshold: a.getProgressiveThreshold(),
                progressiveEnabled: i && !(a.preventIncremental && a.preventIncremental()),
                blockIndex: -1,
                step: Math.round(i || 700),
                count: 0
            }),
            n._pipe(a, a.dataTask)
        })
    }
    ,
    t.prototype.prepareStageTasks = function() {
        var e = this._stageTaskMap
          , n = this.api.getModel()
          , r = this.api;
        Z(this._allHandlers, function(a) {
            var i = e.get(a.uid) || e.set(a.uid, {})
              , o = "";
            la(!(a.reset && a.overallReset), o),
            a.reset && this._createSeriesStageTask(a, i, n, r),
            a.overallReset && this._createOverallStageTask(a, i, n, r)
        }, this)
    }
    ,
    t.prototype.prepareView = function(e, n, r, a) {
        var i = e.renderTask
          , o = i.context;
        o.model = n,
        o.ecModel = r,
        o.api = a,
        i.__block = !e.incrementalPrepareRender,
        this._pipe(n, i)
    }
    ,
    t.prototype.performDataProcessorTasks = function(e, n) {
        this._performStageTasks(this._dataProcessorHandlers, e, n, {
            block: !0
        })
    }
    ,
    t.prototype.performVisualTasks = function(e, n, r) {
        this._performStageTasks(this._visualHandlers, e, n, r)
    }
    ,
    t.prototype._performStageTasks = function(e, n, r, a) {
        a = a || {};
        var i = !1
          , o = this;
        Z(e, function(s, u) {
            if (!(a.visualType && a.visualType !== s.visualType)) {
                var c = o._stageTaskMap.get(s.uid)
                  , f = c.seriesTaskMap
                  , d = c.overallTask;
                if (d) {
                    var v, h = d.agentStubMap;
                    h.each(function(g) {
                        l(a, g) && (g.dirty(),
                        v = !0)
                    }),
                    v && d.dirty(),
                    o.updatePayload(d, r);
                    var p = o.getPerformArgs(d, a.block);
                    h.each(function(g) {
                        g.perform(p)
                    }),
                    d.perform(p) && (i = !0)
                } else
                    f && f.each(function(g, m) {
                        l(a, g) && g.dirty();
                        var y = o.getPerformArgs(g, a.block);
                        y.skip = !s.performRawSeries && n.isSeriesFiltered(g.context.model),
                        o.updatePayload(g, r),
                        g.perform(y) && (i = !0)
                    })
            }
        });
        function l(s, u) {
            return s.setDirty && (!s.dirtyMap || s.dirtyMap.get(u.__pipeline.id))
        }
        this.unfinished = i || this.unfinished
    }
    ,
    t.prototype.performSeriesTasks = function(e) {
        var n;
        e.eachSeries(function(r) {
            n = r.dataTask.perform() || n
        }),
        this.unfinished = n || this.unfinished
    }
    ,
    t.prototype.plan = function() {
        this._pipelineMap.each(function(e) {
            var n = e.tail;
            do {
                if (n.__block) {
                    e.blockIndex = n.__idxInPipeline;
                    break
                }
                n = n.getUpstream()
            } while (n)
        })
    }
    ,
    t.prototype.updatePayload = function(e, n) {
        n !== "remain" && (e.context.payload = n)
    }
    ,
    t.prototype._createSeriesStageTask = function(e, n, r, a) {
        var i = this
          , o = n.seriesTaskMap
          , l = n.seriesTaskMap = Qe()
          , s = e.seriesType
          , u = e.getTargetSeries;
        e.createOnAllSeries ? r.eachRawSeries(c) : s ? r.eachRawSeriesByType(s, c) : u && u(r, a).each(c);
        function c(f) {
            var d = f.uid
              , v = l.set(d, o && o.get(d) || jg({
                plan: kqe,
                reset: Oqe,
                count: Eqe
            }));
            v.context = {
                model: f,
                ecModel: r,
                api: a,
                useClearVisual: e.isVisual && !e.isLayout,
                plan: e.plan,
                reset: e.reset,
                scheduler: i
            },
            i._pipe(f, v)
        }
    }
    ,
    t.prototype._createOverallStageTask = function(e, n, r, a) {
        var i = this
          , o = n.overallTask = n.overallTask || jg({
            reset: Pqe
        });
        o.context = {
            ecModel: r,
            api: a,
            overallReset: e.overallReset,
            scheduler: i
        };
        var l = o.agentStubMap
          , s = o.agentStubMap = Qe()
          , u = e.seriesType
          , c = e.getTargetSeries
          , f = !0
          , d = !1
          , v = "";
        la(!e.createOnAllSeries, v),
        u ? r.eachRawSeriesByType(u, h) : c ? c(r, a).each(h) : (f = !1,
        Z(r.getSeries(), h));
        function h(p) {
            var g = p.uid
              , m = s.set(g, l && l.get(g) || (d = !0,
            jg({
                reset: Mqe,
                onDirty: Iqe
            })));
            m.context = {
                model: p,
                overallProgress: f
            },
            m.agent = o,
            m.__block = f,
            i._pipe(p, m)
        }
        d && o.dirty()
    }
    ,
    t.prototype._pipe = function(e, n) {
        var r = e.uid
          , a = this._pipelineMap.get(r);
        !a.head && (a.head = n),
        a.tail && a.tail.pipe(n),
        a.tail = n,
        n.__idxInPipeline = a.count++,
        n.__pipeline = a
    }
    ,
    t.wrapStageHandler = function(e, n) {
        return et(e) && (e = {
            overallReset: e,
            seriesType: Lqe(e)
        }),
        e.uid = Dh("stageHandler"),
        n && (e.visualType = n),
        e
    }
    ,
    t
}();
function Pqe(t) {
    t.overallReset(t.ecModel, t.api, t.payload)
}
function Mqe(t) {
    return t.overallProgress && Aqe
}
function Aqe() {
    this.agent.dirty(),
    this.getDownstream().dirty()
}
function Iqe() {
    this.agent && this.agent.dirty()
}
function kqe(t) {
    return t.plan ? t.plan(t.model, t.ecModel, t.api, t.payload) : null
}
function Oqe(t) {
    t.useClearVisual && t.data.clearAllVisual();
    var e = t.resetDefines = _n(t.reset(t.model, t.ecModel, t.api, t.payload));
    return e.length > 1 ? Le(e, function(n, r) {
        return fle(r)
    }) : Dqe
}
var Dqe = fle(0);
function fle(t) {
    return function(e, n) {
        var r = n.data
          , a = n.resetDefines[t];
        if (a && a.dataEach)
            for (var i = e.start; i < e.end; i++)
                a.dataEach(r, i);
        else
            a && a.progress && a.progress(e, r)
    }
}
function Eqe(t) {
    return t.data.count()
}
function Lqe(t) {
    $S = null;
    try {
        t(Y0, dle)
    } catch (e) {}
    return $S
}
var Y0 = {}, dle = {}, $S;
vle(Y0, $oe);
vle(dle, Foe);
Y0.eachSeriesByType = Y0.eachRawSeriesByType = function(t) {
    $S = t
}
;
Y0.eachComponent = function(t) {
    t.mainType === "series" && t.subType && ($S = t.subType)
}
;
function vle(t, e) {
    for (var n in e.prototype)
        t[n] = nr
}
const hle = Tqe;
var kj = ["#37A2DA", "#32C5E9", "#67E0E3", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#E062AE", "#E690D1", "#e7bcf3", "#9d96f5", "#8378EA", "#96BFFF"];
const Rqe = {
    color: kj,
    colorLayer: [["#37A2DA", "#ffd85c", "#fd7b5f"], ["#37A2DA", "#67E0E3", "#FFDB5C", "#ff9f7f", "#E062AE", "#9d96f5"], ["#37A2DA", "#32C5E9", "#9FE6B8", "#FFDB5C", "#ff9f7f", "#fb7293", "#e7bcf3", "#8378EA", "#96BFFF"], kj]
};
var ha = "#B9B8CE"
  , Oj = "#100C2A"
  , P1 = function() {
    return {
        axisLine: {
            lineStyle: {
                color: ha
            }
        },
        splitLine: {
            lineStyle: {
                color: "#484753"
            }
        },
        splitArea: {
            areaStyle: {
                color: ["rgba(255,255,255,0.02)", "rgba(255,255,255,0.05)"]
            }
        },
        minorSplitLine: {
            lineStyle: {
                color: "#20203B"
            }
        }
    }
}
  , Dj = ["#4992ff", "#7cffb2", "#fddd60", "#ff6e76", "#58d9f9", "#05c091", "#ff8a45", "#8d48e3", "#dd79ff"]
  , ple = {
    darkMode: !0,
    color: Dj,
    backgroundColor: Oj,
    axisPointer: {
        lineStyle: {
            color: "#817f91"
        },
        crossStyle: {
            color: "#817f91"
        },
        label: {
            color: "#fff"
        }
    },
    legend: {
        textStyle: {
            color: ha
        }
    },
    textStyle: {
        color: ha
    },
    title: {
        textStyle: {
            color: "#EEF1FA"
        },
        subtextStyle: {
            color: "#B9B8CE"
        }
    },
    toolbox: {
        iconStyle: {
            borderColor: ha
        }
    },
    dataZoom: {
        borderColor: "#71708A",
        textStyle: {
            color: ha
        },
        brushStyle: {
            color: "rgba(135,163,206,0.3)"
        },
        handleStyle: {
            color: "#353450",
            borderColor: "#C5CBE3"
        },
        moveHandleStyle: {
            color: "#B0B6C3",
            opacity: .3
        },
        fillerColor: "rgba(135,163,206,0.2)",
        emphasis: {
            handleStyle: {
                borderColor: "#91B7F2",
                color: "#4D587D"
            },
            moveHandleStyle: {
                color: "#636D9A",
                opacity: .7
            }
        },
        dataBackground: {
            lineStyle: {
                color: "#71708A",
                width: 1
            },
            areaStyle: {
                color: "#71708A"
            }
        },
        selectedDataBackground: {
            lineStyle: {
                color: "#87A3CE"
            },
            areaStyle: {
                color: "#87A3CE"
            }
        }
    },
    visualMap: {
        textStyle: {
            color: ha
        }
    },
    timeline: {
        lineStyle: {
            color: ha
        },
        label: {
            color: ha
        },
        controlStyle: {
            color: ha,
            borderColor: ha
        }
    },
    calendar: {
        itemStyle: {
            color: Oj
        },
        dayLabel: {
            color: ha
        },
        monthLabel: {
            color: ha
        },
        yearLabel: {
            color: ha
        }
    },
    timeAxis: P1(),
    logAxis: P1(),
    valueAxis: P1(),
    categoryAxis: P1(),
    line: {
        symbol: "circle"
    },
    graph: {
        color: Dj
    },
    gauge: {
        title: {
            color: ha
        },
        axisLine: {
            lineStyle: {
                color: [[1, "rgba(207,212,219,0.2)"]]
            }
        },
        axisLabel: {
            color: ha
        },
        detail: {
            color: "#EEF1FA"
        }
    },
    candlestick: {
        itemStyle: {
            color: "#f64e56",
            color0: "#54ea92",
            borderColor: "#f64e56",
            borderColor0: "#54ea92"
        }
    }
};
ple.categoryAxis.splitLine.show = !1;
const Nqe = ple;
var $qe = function() {
    function t() {}
    return t.prototype.normalizeQuery = function(e) {
        var n = {}
          , r = {}
          , a = {};
        if (Ge(e)) {
            var i = al(e);
            n.mainType = i.main || null,
            n.subType = i.sub || null
        } else {
            var o = ["Index", "Name", "Id"]
              , l = {
                name: 1,
                dataIndex: 1,
                dataType: 1
            };
            Z(e, function(s, u) {
                for (var c = !1, f = 0; f < o.length; f++) {
                    var d = o[f]
                      , v = u.lastIndexOf(d);
                    if (v > 0 && v === u.length - d.length) {
                        var h = u.slice(0, v);
                        h !== "data" && (n.mainType = h,
                        n[d.toLowerCase()] = s,
                        c = !0)
                    }
                }
                l.hasOwnProperty(u) && (r[u] = s,
                c = !0),
                c || (a[u] = s)
            })
        }
        return {
            cptQuery: n,
            dataQuery: r,
            otherQuery: a
        }
    }
    ,
    t.prototype.filter = function(e, n) {
        var r = this.eventInfo;
        if (!r)
            return !0;
        var a = r.targetEl
          , i = r.packedEvent
          , o = r.model
          , l = r.view;
        if (!o || !l)
            return !0;
        var s = n.cptQuery
          , u = n.dataQuery;
        return c(s, o, "mainType") && c(s, o, "subType") && c(s, o, "index", "componentIndex") && c(s, o, "name") && c(s, o, "id") && c(u, i, "name") && c(u, i, "dataIndex") && c(u, i, "dataType") && (!l.filterForExposedEvent || l.filterForExposedEvent(e, n.otherQuery, a, i));
        function c(f, d, v, h) {
            return f[v] == null || d[h || v] === f[v]
        }
    }
    ,
    t.prototype.afterTrigger = function() {
        this.eventInfo = null
    }
    ,
    t
}()
  , zI = ["symbol", "symbolSize", "symbolRotate", "symbolOffset"]
  , Ej = zI.concat(["symbolKeepAspect"])
  , Fqe = {
    createOnAllSeries: !0,
    performRawSeries: !0,
    reset: function(t, e) {
        var n = t.getData();
        if (t.legendIcon && n.setVisual("legendIcon", t.legendIcon),
        !t.hasSymbolVisual)
            return;
        for (var r = {}, a = {}, i = !1, o = 0; o < zI.length; o++) {
            var l = zI[o]
              , s = t.get(l);
            et(s) ? (i = !0,
            a[l] = s) : r[l] = s
        }
        if (r.symbol = r.symbol || t.defaultSymbol,
        n.setVisual(Me({
            legendIcon: t.legendIcon || r.symbol,
            symbolKeepAspect: t.get("symbolKeepAspect")
        }, r)),
        e.isSeriesFiltered(t))
            return;
        var u = Gt(a);
        function c(f, d) {
            for (var v = t.getRawValue(d), h = t.getDataParams(d), p = 0; p < u.length; p++) {
                var g = u[p];
                f.setItemVisual(d, g, a[g](v, h))
            }
        }
        return {
            dataEach: i ? c : null
        }
    }
}
  , Bqe = {
    createOnAllSeries: !0,
    performRawSeries: !0,
    reset: function(t, e) {
        if (!t.hasSymbolVisual || e.isSeriesFiltered(t))
            return;
        var n = t.getData();
        function r(a, i) {
            for (var o = a.getItemModel(i), l = 0; l < Ej.length; l++) {
                var s = Ej[l]
                  , u = o.getShallow(s, !0);
                u != null && a.setItemVisual(i, s, u)
            }
        }
        return {
            dataEach: n.hasItemOption ? r : null
        }
    }
};
function y5(t, e, n) {
    switch (n) {
    case "color":
        var r = t.getItemVisual(e, "style");
        return r[t.getVisual("drawType")];
    case "opacity":
        return t.getItemVisual(e, "style").opacity;
    case "symbol":
    case "symbolSize":
    case "liftZ":
        return t.getItemVisual(e, n)
    }
}
function ty(t, e) {
    switch (e) {
    case "color":
        var n = t.getVisual("style");
        return n[t.getVisual("drawType")];
    case "opacity":
        return t.getVisual("style").opacity;
    case "symbol":
    case "symbolSize":
    case "liftZ":
        return t.getVisual(e)
    }
}
function gle(t, e, n, r) {
    switch (n) {
    case "color":
        var a = t.ensureUniqueItemVisual(e, "style");
        a[t.getVisual("drawType")] = r,
        t.setItemVisual(e, "colorFromPalette", !1);
        break;
    case "opacity":
        t.ensureUniqueItemVisual(e, "style").opacity = r;
        break;
    case "symbol":
    case "symbolSize":
    case "liftZ":
        t.setItemVisual(e, n, r);
        break
    }
}
function mle(t, e) {
    function n(r, a) {
        var i = [];
        return r.eachComponent({
            mainType: "series",
            subType: t,
            query: a
        }, function(o) {
            i.push(o.seriesIndex)
        }),
        i
    }
    Z([[t + "ToggleSelect", "toggleSelect"], [t + "Select", "select"], [t + "UnSelect", "unselect"]], function(r) {
        e(r[0], function(a, i, o) {
            a = Me({}, a),
            o.dispatchAction(Me(a, {
                type: r[1],
                seriesIndex: n(i, a)
            }))
        })
    })
}
function Md(t, e, n, r, a) {
    var i = t + e;
    n.isSilent(i) || r.eachComponent({
        mainType: "series",
        subType: "pie"
    }, function(o) {
        for (var l = o.seriesIndex, s = o.option.selectedMap, u = a.selected, c = 0; c < u.length; c++)
            if (u[c].seriesIndex === l) {
                var f = o.getData()
                  , d = $f(f, a.fromActionPayload);
                n.trigger(i, {
                    type: i,
                    seriesId: o.id,
                    name: ke(d) ? f.getName(d[0]) : f.getName(d),
                    selected: Ge(s) ? s : Me({}, s)
                })
            }
    })
}
function Vqe(t, e, n) {
    t.on("selectchanged", function(r) {
        var a = n.getModel();
        r.isFromClick ? (Md("map", "selectchanged", e, a, r),
        Md("pie", "selectchanged", e, a, r)) : r.fromAction === "select" ? (Md("map", "selected", e, a, r),
        Md("pie", "selected", e, a, r)) : r.fromAction === "unselect" && (Md("map", "unselected", e, a, r),
        Md("pie", "unselected", e, a, r))
    })
}
function of(t, e, n) {
    for (var r; t && !(e(t) && (r = t,
    n)); )
        t = t.__hostTarget || t.parent;
    return r
}
var zqe = Math.round(Math.random() * 9)
  , Hqe = typeof Object.defineProperty == "function"
  , jqe = function() {
    function t() {
        this._id = "__ec_inner_" + zqe++
    }
    return t.prototype.get = function(e) {
        return this._guard(e)[this._id]
    }
    ,
    t.prototype.set = function(e, n) {
        var r = this._guard(e);
        return Hqe ? Object.defineProperty(r, this._id, {
            value: n,
            enumerable: !1,
            configurable: !0
        }) : r[this._id] = n,
        this
    }
    ,
    t.prototype.delete = function(e) {
        return this.has(e) ? (delete this._guard(e)[this._id],
        !0) : !1
    }
    ,
    t.prototype.has = function(e) {
        return !!this._guard(e)[this._id]
    }
    ,
    t.prototype._guard = function(e) {
        if (e !== Object(e))
            throw TypeError("Value of WeakMap is not a non-null object.");
        return e
    }
    ,
    t
}();
const Wqe = jqe;
var Gqe = jt.extend({
    type: "triangle",
    shape: {
        cx: 0,
        cy: 0,
        width: 0,
        height: 0
    },
    buildPath: function(t, e) {
        var n = e.cx
          , r = e.cy
          , a = e.width / 2
          , i = e.height / 2;
        t.moveTo(n, r - i),
        t.lineTo(n + a, r + i),
        t.lineTo(n - a, r + i),
        t.closePath()
    }
})
  , Kqe = jt.extend({
    type: "diamond",
    shape: {
        cx: 0,
        cy: 0,
        width: 0,
        height: 0
    },
    buildPath: function(t, e) {
        var n = e.cx
          , r = e.cy
          , a = e.width / 2
          , i = e.height / 2;
        t.moveTo(n, r - i),
        t.lineTo(n + a, r),
        t.lineTo(n, r + i),
        t.lineTo(n - a, r),
        t.closePath()
    }
})
  , Uqe = jt.extend({
    type: "pin",
    shape: {
        x: 0,
        y: 0,
        width: 0,
        height: 0
    },
    buildPath: function(t, e) {
        var n = e.x
          , r = e.y
          , a = e.width / 5 * 3
          , i = Math.max(a, e.height)
          , o = a / 2
          , l = o * o / (i - o)
          , s = r - i + o + l
          , u = Math.asin(l / o)
          , c = Math.cos(u) * o
          , f = Math.sin(u)
          , d = Math.cos(u)
          , v = o * .6
          , h = o * .7;
        t.moveTo(n - c, s + l),
        t.arc(n, s, o, Math.PI - u, Math.PI * 2 + u),
        t.bezierCurveTo(n + c - f * v, s + l + d * v, n, r - h, n, r),
        t.bezierCurveTo(n, r - h, n - c + f * v, s + l + d * v, n - c, s + l),
        t.closePath()
    }
})
  , Yqe = jt.extend({
    type: "arrow",
    shape: {
        x: 0,
        y: 0,
        width: 0,
        height: 0
    },
    buildPath: function(t, e) {
        var n = e.height
          , r = e.width
          , a = e.x
          , i = e.y
          , o = r / 3 * 2;
        t.moveTo(a, i),
        t.lineTo(a + o, i + n),
        t.lineTo(a, i + n / 4 * 3),
        t.lineTo(a - o, i + n),
        t.lineTo(a, i),
        t.closePath()
    }
})
  , qqe = {
    line: Or,
    rect: tn,
    roundRect: tn,
    square: tn,
    circle: Mo,
    diamond: Kqe,
    pin: Uqe,
    arrow: Yqe,
    triangle: Gqe
}
  , Xqe = {
    line: function(t, e, n, r, a) {
        a.x1 = t,
        a.y1 = e + r / 2,
        a.x2 = t + n,
        a.y2 = e + r / 2
    },
    rect: function(t, e, n, r, a) {
        a.x = t,
        a.y = e,
        a.width = n,
        a.height = r
    },
    roundRect: function(t, e, n, r, a) {
        a.x = t,
        a.y = e,
        a.width = n,
        a.height = r,
        a.r = Math.min(n, r) / 4
    },
    square: function(t, e, n, r, a) {
        var i = Math.min(n, r);
        a.x = t,
        a.y = e,
        a.width = i,
        a.height = i
    },
    circle: function(t, e, n, r, a) {
        a.cx = t + n / 2,
        a.cy = e + r / 2,
        a.r = Math.min(n, r) / 2
    },
    diamond: function(t, e, n, r, a) {
        a.cx = t + n / 2,
        a.cy = e + r / 2,
        a.width = n,
        a.height = r
    },
    pin: function(t, e, n, r, a) {
        a.x = t + n / 2,
        a.y = e + r / 2,
        a.width = n,
        a.height = r
    },
    arrow: function(t, e, n, r, a) {
        a.x = t + n / 2,
        a.y = e + r / 2,
        a.width = n,
        a.height = r
    },
    triangle: function(t, e, n, r, a) {
        a.cx = t + n / 2,
        a.cy = e + r / 2,
        a.width = n,
        a.height = r
    }
}
  , FS = {};
Z(qqe, function(t, e) {
    FS[e] = new t
});
var Zqe = jt.extend({
    type: "symbol",
    shape: {
        symbolType: "",
        x: 0,
        y: 0,
        width: 0,
        height: 0
    },
    calculateTextPosition: function(t, e, n) {
        var r = MS(t, e, n)
          , a = this.shape;
        return a && a.symbolType === "pin" && e.position === "inside" && (r.y = n.y + n.height * .4),
        r
    },
    buildPath: function(t, e, n) {
        var r = e.symbolType;
        if (r !== "none") {
            var a = FS[r];
            a || (r = "rect",
            a = FS[r]),
            Xqe[r](e.x, e.y, e.width, e.height, a.shape),
            a.buildPath(t, a.shape, n)
        }
    }
});
function Qqe(t, e) {
    if (this.type !== "image") {
        var n = this.style;
        this.__isEmptyBrush ? (n.stroke = t,
        n.fill = e || "#fff",
        n.lineWidth = 2) : this.shape.symbolType === "line" ? n.stroke = t : n.fill = t,
        this.markRedraw()
    }
}
function fr(t, e, n, r, a, i, o) {
    var l = t.indexOf("empty") === 0;
    l && (t = t.substr(5, 1).toLowerCase() + t.substr(6));
    var s;
    return t.indexOf("image://") === 0 ? s = q6(t.slice(8), new Dt(e,n,r,a), o ? "center" : "cover") : t.indexOf("path://") === 0 ? s = Zm(t.slice(7), {}, new Dt(e,n,r,a), o ? "center" : "cover") : s = new Zqe({
        shape: {
            symbolType: t,
            x: e,
            y: n,
            width: r,
            height: a
        }
    }),
    s.__isEmptyBrush = l,
    s.setColor = Qqe,
    i && s.setColor(i),
    s
}
function Bh(t) {
    return ke(t) || (t = [+t, +t]),
    [t[0] || 0, t[1] || 0]
}
function id(t, e) {
    if (t != null)
        return ke(t) || (t = [t, t]),
        [He(t[0], e[0]) || 0, He(Ot(t[1], t[0]), e[1]) || 0]
}
function lf(t) {
    return isFinite(t)
}
function Jqe(t, e, n) {
    var r = e.x == null ? 0 : e.x
      , a = e.x2 == null ? 1 : e.x2
      , i = e.y == null ? 0 : e.y
      , o = e.y2 == null ? 0 : e.y2;
    e.global || (r = r * n.width + n.x,
    a = a * n.width + n.x,
    i = i * n.height + n.y,
    o = o * n.height + n.y),
    r = lf(r) ? r : 0,
    a = lf(a) ? a : 1,
    i = lf(i) ? i : 0,
    o = lf(o) ? o : 0;
    var l = t.createLinearGradient(r, i, a, o);
    return l
}
function eXe(t, e, n) {
    var r = n.width
      , a = n.height
      , i = Math.min(r, a)
      , o = e.x == null ? .5 : e.x
      , l = e.y == null ? .5 : e.y
      , s = e.r == null ? .5 : e.r;
    e.global || (o = o * r + n.x,
    l = l * a + n.y,
    s = s * i),
    o = lf(o) ? o : .5,
    l = lf(l) ? l : .5,
    s = s >= 0 && lf(s) ? s : .5;
    var u = t.createRadialGradient(o, l, 0, o, l, s);
    return u
}
function HI(t, e, n) {
    for (var r = e.type === "radial" ? eXe(t, e, n) : Jqe(t, e, n), a = e.colorStops, i = 0; i < a.length; i++)
        r.addColorStop(a[i].offset, a[i].color);
    return r
}
function tXe(t, e) {
    if (t === e || !t && !e)
        return !1;
    if (!t || !e || t.length !== e.length)
        return !0;
    for (var n = 0; n < t.length; n++)
        if (t[n] !== e[n])
            return !0;
    return !1
}
function M1(t) {
    return parseInt(t, 10)
}
function av(t, e, n) {
    var r = ["width", "height"][e]
      , a = ["clientWidth", "clientHeight"][e]
      , i = ["paddingLeft", "paddingTop"][e]
      , o = ["paddingRight", "paddingBottom"][e];
    if (n[r] != null && n[r] !== "auto")
        return parseFloat(n[r]);
    var l = document.defaultView.getComputedStyle(t);
    return (t[a] || M1(l[r]) || M1(t.style[r])) - (M1(l[i]) || 0) - (M1(l[o]) || 0) | 0
}
function nXe(t, e) {
    return !t || t === "solid" || !(e > 0) ? null : t === "dashed" ? [4 * e, 2 * e] : t === "dotted" ? [e] : rn(t) ? [t] : ke(t) ? t : null
}
function b5(t) {
    var e = t.style
      , n = e.lineDash && e.lineWidth > 0 && nXe(e.lineDash, e.lineWidth)
      , r = e.lineDashOffset;
    if (n) {
        var a = e.strokeNoScale && t.getLineScale ? t.getLineScale() : 1;
        a && a !== 1 && (n = Le(n, function(i) {
            return i / a
        }),
        r /= a)
    }
    return [n, r]
}
var rXe = new yl(!0);
function BS(t) {
    var e = t.stroke;
    return !(e == null || e === "none" || !(t.lineWidth > 0))
}
function Lj(t) {
    return typeof t == "string" && t !== "none"
}
function VS(t) {
    var e = t.fill;
    return e != null && e !== "none"
}
function Rj(t, e) {
    if (e.fillOpacity != null && e.fillOpacity !== 1) {
        var n = t.globalAlpha;
        t.globalAlpha = e.fillOpacity * e.opacity,
        t.fill(),
        t.globalAlpha = n
    } else
        t.fill()
}
function Nj(t, e) {
    if (e.strokeOpacity != null && e.strokeOpacity !== 1) {
        var n = t.globalAlpha;
        t.globalAlpha = e.strokeOpacity * e.opacity,
        t.stroke(),
        t.globalAlpha = n
    } else
        t.stroke()
}
function jI(t, e, n) {
    var r = V6(e.image, e.__image, n);
    if (n2(r)) {
        var a = t.createPattern(r, e.repeat || "repeat");
        if (typeof DOMMatrix == "function" && a && a.setTransform) {
            var i = new DOMMatrix;
            i.translateSelf(e.x || 0, e.y || 0),
            i.rotateSelf(0, 0, (e.rotation || 0) * Dg),
            i.scaleSelf(e.scaleX || 1, e.scaleY || 1),
            a.setTransform(i)
        }
        return a
    }
}
function aXe(t, e, n, r) {
    var a, i = BS(n), o = VS(n), l = n.strokePercent, s = l < 1, u = !e.path;
    (!e.silent || s) && u && e.createPathProxy();
    var c = e.path || rXe
      , f = e.__dirty;
    if (!r) {
        var d = n.fill
          , v = n.stroke
          , h = o && !!d.colorStops
          , p = i && !!v.colorStops
          , g = o && !!d.image
          , m = i && !!v.image
          , y = void 0
          , b = void 0
          , x = void 0
          , C = void 0
          , S = void 0;
        (h || p) && (S = e.getBoundingRect()),
        h && (y = f ? HI(t, d, S) : e.__canvasFillGradient,
        e.__canvasFillGradient = y),
        p && (b = f ? HI(t, v, S) : e.__canvasStrokeGradient,
        e.__canvasStrokeGradient = b),
        g && (x = f || !e.__canvasFillPattern ? jI(t, d, e) : e.__canvasFillPattern,
        e.__canvasFillPattern = x),
        m && (C = f || !e.__canvasStrokePattern ? jI(t, v, e) : e.__canvasStrokePattern,
        e.__canvasStrokePattern = x),
        h ? t.fillStyle = y : g && (x ? t.fillStyle = x : o = !1),
        p ? t.strokeStyle = b : m && (C ? t.strokeStyle = C : i = !1)
    }
    var w = e.getGlobalScale();
    c.setScale(w[0], w[1], e.segmentIgnoreThreshold);
    var T, P;
    t.setLineDash && n.lineDash && (a = b5(e),
    T = a[0],
    P = a[1]);
    var M = !0;
    (u || f & Kd) && (c.setDPR(t.dpr),
    s ? c.setContext(null) : (c.setContext(t),
    M = !1),
    c.reset(),
    e.buildPath(c, e.shape, r),
    c.toStatic(),
    e.pathUpdated()),
    M && c.rebuildPath(t, s ? l : 1),
    T && (t.setLineDash(T),
    t.lineDashOffset = P),
    r || (n.strokeFirst ? (i && Nj(t, n),
    o && Rj(t, n)) : (o && Rj(t, n),
    i && Nj(t, n))),
    T && t.setLineDash([])
}
function iXe(t, e, n) {
    var r = e.__image = V6(n.image, e.__image, e, e.onload);
    if (!(!r || !n2(r))) {
        var a = n.x || 0
          , i = n.y || 0
          , o = e.getWidth()
          , l = e.getHeight()
          , s = r.width / r.height;
        if (o == null && l != null ? o = l * s : l == null && o != null ? l = o / s : o == null && l == null && (o = r.width,
        l = r.height),
        n.sWidth && n.sHeight) {
            var u = n.sx || 0
              , c = n.sy || 0;
            t.drawImage(r, u, c, n.sWidth, n.sHeight, a, i, o, l)
        } else if (n.sx && n.sy) {
            var u = n.sx
              , c = n.sy
              , f = o - u
              , d = l - c;
            t.drawImage(r, u, c, f, d, a, i, o, l)
        } else
            t.drawImage(r, a, i, o, l)
    }
}
function oXe(t, e, n) {
    var r, a = n.text;
    if (a != null && (a += ""),
    a) {
        t.font = n.font || ku,
        t.textAlign = n.textAlign,
        t.textBaseline = n.textBaseline;
        var i = void 0
          , o = void 0;
        t.setLineDash && n.lineDash && (r = b5(e),
        i = r[0],
        o = r[1]),
        i && (t.setLineDash(i),
        t.lineDashOffset = o),
        n.strokeFirst ? (BS(n) && t.strokeText(a, n.x, n.y),
        VS(n) && t.fillText(a, n.x, n.y)) : (VS(n) && t.fillText(a, n.x, n.y),
        BS(n) && t.strokeText(a, n.x, n.y)),
        i && t.setLineDash([])
    }
}
var $j = ["shadowBlur", "shadowOffsetX", "shadowOffsetY"]
  , Fj = [["lineCap", "butt"], ["lineJoin", "miter"], ["miterLimit", 10]];
function yle(t, e, n, r, a) {
    var i = !1;
    if (!r && (n = n || {},
    e === n))
        return !1;
    if (r || e.opacity !== n.opacity) {
        Ba(t, a),
        i = !0;
        var o = Math.max(Math.min(e.opacity, 1), 0);
        t.globalAlpha = isNaN(o) ? xf.opacity : o
    }
    (r || e.blend !== n.blend) && (i || (Ba(t, a),
    i = !0),
    t.globalCompositeOperation = e.blend || xf.blend);
    for (var l = 0; l < $j.length; l++) {
        var s = $j[l];
        (r || e[s] !== n[s]) && (i || (Ba(t, a),
        i = !0),
        t[s] = t.dpr * (e[s] || 0))
    }
    return (r || e.shadowColor !== n.shadowColor) && (i || (Ba(t, a),
    i = !0),
    t.shadowColor = e.shadowColor || xf.shadowColor),
    i
}
function Bj(t, e, n, r, a) {
    var i = q0(e, a.inHover)
      , o = r ? null : n && q0(n, a.inHover) || {};
    if (i === o)
        return !1;
    var l = yle(t, i, o, r, a);
    if ((r || i.fill !== o.fill) && (l || (Ba(t, a),
    l = !0),
    Lj(i.fill) && (t.fillStyle = i.fill)),
    (r || i.stroke !== o.stroke) && (l || (Ba(t, a),
    l = !0),
    Lj(i.stroke) && (t.strokeStyle = i.stroke)),
    (r || i.opacity !== o.opacity) && (l || (Ba(t, a),
    l = !0),
    t.globalAlpha = i.opacity == null ? 1 : i.opacity),
    e.hasStroke()) {
        var s = i.lineWidth
          , u = s / (i.strokeNoScale && e.getLineScale ? e.getLineScale() : 1);
        t.lineWidth !== u && (l || (Ba(t, a),
        l = !0),
        t.lineWidth = u)
    }
    for (var c = 0; c < Fj.length; c++) {
        var f = Fj[c]
          , d = f[0];
        (r || i[d] !== o[d]) && (l || (Ba(t, a),
        l = !0),
        t[d] = i[d] || f[1])
    }
    return l
}
function lXe(t, e, n, r, a) {
    return yle(t, q0(e, a.inHover), n && q0(n, a.inHover), r, a)
}
function ble(t, e) {
    var n = e.transform
      , r = t.dpr || 1;
    n ? t.setTransform(r * n[0], r * n[1], r * n[2], r * n[3], r * n[4], r * n[5]) : t.setTransform(r, 0, 0, r, 0, 0)
}
function sXe(t, e, n) {
    for (var r = !1, a = 0; a < t.length; a++) {
        var i = t[a];
        r = r || i.isZeroArea(),
        ble(e, i),
        e.beginPath(),
        i.buildPath(e, i.shape),
        e.clip()
    }
    n.allClipped = r
}
function uXe(t, e) {
    return t && e ? t[0] !== e[0] || t[1] !== e[1] || t[2] !== e[2] || t[3] !== e[3] || t[4] !== e[4] || t[5] !== e[5] : !(!t && !e)
}
var Vj = 1
  , zj = 2
  , Hj = 3
  , jj = 4;
function cXe(t) {
    var e = VS(t)
      , n = BS(t);
    return !(t.lineDash || !(+e ^ +n) || e && typeof t.fill != "string" || n && typeof t.stroke != "string" || t.strokePercent < 1 || t.strokeOpacity < 1 || t.fillOpacity < 1)
}
function Ba(t, e) {
    e.batchFill && t.fill(),
    e.batchStroke && t.stroke(),
    e.batchFill = "",
    e.batchStroke = ""
}
function q0(t, e) {
    return e && t.__hoverStyle || t.style
}
function x5(t, e) {
    sf(t, e, {
        inHover: !1,
        viewWidth: 0,
        viewHeight: 0
    }, !0)
}
function sf(t, e, n, r) {
    var a = e.transform;
    if (!e.shouldBePainted(n.viewWidth, n.viewHeight, !1, !1)) {
        e.__dirty &= ~ei,
        e.__isRendered = !1;
        return
    }
    var i = e.__clipPaths
      , o = n.prevElClipPaths
      , l = !1
      , s = !1;
    if ((!o || tXe(i, o)) && (o && o.length && (Ba(t, n),
    t.restore(),
    s = l = !0,
    n.prevElClipPaths = null,
    n.allClipped = !1,
    n.prevEl = null),
    i && i.length && (Ba(t, n),
    t.save(),
    sXe(i, t, n),
    l = !0),
    n.prevElClipPaths = i),
    n.allClipped) {
        e.__isRendered = !1;
        return
    }
    e.beforeBrush && e.beforeBrush(),
    e.innerBeforeBrush();
    var u = n.prevEl;
    u || (s = l = !0);
    var c = e instanceof jt && e.autoBatch && cXe(e.style);
    l || uXe(a, u.transform) ? (Ba(t, n),
    ble(t, e)) : c || Ba(t, n);
    var f = q0(e, n.inHover);
    e instanceof jt ? (n.lastDrawType !== Vj && (s = !0,
    n.lastDrawType = Vj),
    Bj(t, e, u, s, n),
    (!c || !n.batchFill && !n.batchStroke) && t.beginPath(),
    aXe(t, e, f, c),
    c && (n.batchFill = f.fill || "",
    n.batchStroke = f.stroke || "")) : e instanceof B0 ? (n.lastDrawType !== Hj && (s = !0,
    n.lastDrawType = Hj),
    Bj(t, e, u, s, n),
    oXe(t, e, f)) : e instanceof Kr ? (n.lastDrawType !== zj && (s = !0,
    n.lastDrawType = zj),
    lXe(t, e, u, s, n),
    iXe(t, e, f)) : e.getTemporalDisplayables && (n.lastDrawType !== jj && (s = !0,
    n.lastDrawType = jj),
    fXe(t, e, n)),
    c && r && Ba(t, n),
    e.innerAfterBrush(),
    e.afterBrush && e.afterBrush(),
    n.prevEl = e,
    e.__dirty = 0,
    e.__isRendered = !0
}
function fXe(t, e, n) {
    var r = e.getDisplayables()
      , a = e.getTemporalDisplayables();
    t.save();
    var i = {
        prevElClipPaths: null,
        prevEl: null,
        allClipped: !1,
        viewWidth: n.viewWidth,
        viewHeight: n.viewHeight,
        inHover: n.inHover
    }, o, l;
    for (o = e.getCursor(),
    l = r.length; o < l; o++) {
        var s = r[o];
        s.beforeBrush && s.beforeBrush(),
        s.innerBeforeBrush(),
        sf(t, s, i, o === l - 1),
        s.innerAfterBrush(),
        s.afterBrush && s.afterBrush(),
        i.prevEl = s
    }
    for (var u = 0, c = a.length; u < c; u++) {
        var s = a[u];
        s.beforeBrush && s.beforeBrush(),
        s.innerBeforeBrush(),
        sf(t, s, i, u === c - 1),
        s.innerAfterBrush(),
        s.afterBrush && s.afterBrush(),
        i.prevEl = s
    }
    e.clearTemporalDisplayables(),
    e.notClear = !0,
    t.restore()
}
var QP = new Wqe
  , Wj = new Gm(100)
  , Gj = ["symbol", "symbolSize", "symbolKeepAspect", "color", "backgroundColor", "dashArrayX", "dashArrayY", "maxTileWidth", "maxTileHeight"];
function Jv(t, e) {
    if (t === "none")
        return null;
    var n = e.getDevicePixelRatio()
      , r = e.getZr()
      , a = r.painter.type === "svg";
    t.dirty && QP.delete(t);
    var i = QP.get(t);
    if (i)
        return i;
    var o = ot(t, {
        symbol: "rect",
        symbolSize: 1,
        symbolKeepAspect: !0,
        color: "rgba(0, 0, 0, 0.2)",
        backgroundColor: null,
        dashArrayX: 5,
        dashArrayY: 5,
        rotation: 0,
        maxTileWidth: 512,
        maxTileHeight: 512
    });
    o.backgroundColor === "none" && (o.backgroundColor = null);
    var l = {
        repeat: "repeat"
    };
    return s(l),
    l.rotation = o.rotation,
    l.scaleX = l.scaleY = a ? 1 : 1 / n,
    QP.set(t, l),
    t.dirty = !1,
    l;
    function s(u) {
        for (var c = [n], f = !0, d = 0; d < Gj.length; ++d) {
            var v = o[Gj[d]];
            if (v != null && !ke(v) && !Ge(v) && !rn(v) && typeof v != "boolean") {
                f = !1;
                break
            }
            c.push(v)
        }
        var h;
        if (f) {
            h = c.join(",") + (a ? "-svg" : "");
            var p = Wj.get(h);
            p && (a ? u.svgElement = p : u.image = p)
        }
        var g = Sle(o.dashArrayX), m = dXe(o.dashArrayY), y = xle(o.symbol), b = vXe(g), x = Cle(m), C = !a && _o.createCanvas(), S = a && {
            tag: "g",
            attrs: {},
            key: "dcl",
            children: []
        }, w = P(), T;
        C && (C.width = w.width * n,
        C.height = w.height * n,
        T = C.getContext("2d")),
        M(),
        f && Wj.put(h, C || S),
        u.image = C,
        u.svgElement = S,
        u.svgWidth = w.width,
        u.svgHeight = w.height;
        function P() {
            for (var A = 1, O = 0, k = b.length; O < k; ++O)
                A = oH(A, b[O]);
            for (var D = 1, O = 0, k = y.length; O < k; ++O)
                D = oH(D, y[O].length);
            A *= D;
            var E = x * b.length * y.length;
            return {
                width: Math.max(1, Math.min(A, o.maxTileWidth)),
                height: Math.max(1, Math.min(E, o.maxTileHeight))
            }
        }
        function M() {
            T && (T.clearRect(0, 0, C.width, C.height),
            o.backgroundColor && (T.fillStyle = o.backgroundColor,
            T.fillRect(0, 0, C.width, C.height)));
            for (var A = 0, O = 0; O < m.length; ++O)
                A += m[O];
            if (A <= 0)
                return;
            for (var k = -x, D = 0, E = 0, L = 0; k < w.height; ) {
                if (D % 2 === 0) {
                    for (var N = E / 2 % y.length, R = 0, $ = 0, W = 0; R < w.width * 2; ) {
                        for (var B = 0, O = 0; O < g[L].length; ++O)
                            B += g[L][O];
                        if (B <= 0)
                            break;
                        if ($ % 2 === 0) {
                            var G = (1 - o.symbolSize) * .5
                              , K = R + g[L][$] * G
                              , V = k + m[D] * G
                              , U = g[L][$] * o.symbolSize
                              , X = m[D] * o.symbolSize
                              , Y = W / 2 % y[N].length;
                            te(K, V, U, X, y[N][Y])
                        }
                        R += g[L][$],
                        ++W,
                        ++$,
                        $ === g[L].length && ($ = 0)
                    }
                    ++L,
                    L === g.length && (L = 0)
                }
                k += m[D],
                ++E,
                ++D,
                D === m.length && (D = 0)
            }
            function te(ne, ie, ae, q, F) {
                var H = a ? 1 : n
                  , ee = fr(F, ne * H, ie * H, ae * H, q * H, o.color, o.symbolKeepAspect);
                if (a) {
                    var re = r.painter.renderOneToVNode(ee);
                    re && S.children.push(re)
                } else
                    x5(T, ee)
            }
        }
    }
}
function xle(t) {
    if (!t || t.length === 0)
        return [["rect"]];
    if (Ge(t))
        return [[t]];
    for (var e = !0, n = 0; n < t.length; ++n)
        if (!Ge(t[n])) {
            e = !1;
            break
        }
    if (e)
        return xle([t]);
    for (var r = [], n = 0; n < t.length; ++n)
        Ge(t[n]) ? r.push([t[n]]) : r.push(t[n]);
    return r
}
function Sle(t) {
    if (!t || t.length === 0)
        return [[0, 0]];
    if (rn(t)) {
        var e = Math.ceil(t);
        return [[e, e]]
    }
    for (var n = !0, r = 0; r < t.length; ++r)
        if (!rn(t[r])) {
            n = !1;
            break
        }
    if (n)
        return Sle([t]);
    for (var a = [], r = 0; r < t.length; ++r)
        if (rn(t[r])) {
            var e = Math.ceil(t[r]);
            a.push([e, e])
        } else {
            var e = Le(t[r], function(l) {
                return Math.ceil(l)
            });
            e.length % 2 === 1 ? a.push(e.concat(e)) : a.push(e)
        }
    return a
}
function dXe(t) {
    if (!t || typeof t == "object" && t.length === 0)
        return [0, 0];
    if (rn(t)) {
        var e = Math.ceil(t);
        return [e, e]
    }
    var n = Le(t, function(r) {
        return Math.ceil(r)
    });
    return t.length % 2 ? n.concat(n) : n
}
function vXe(t) {
    return Le(t, function(e) {
        return Cle(e)
    })
}
function Cle(t) {
    for (var e = 0, n = 0; n < t.length; ++n)
        e += t[n];
    return t.length % 2 === 1 ? e * 2 : e
}
function hXe(t, e) {
    t.eachRawSeries(function(n) {
        if (!t.isSeriesFiltered(n)) {
            var r = n.getData();
            r.hasItemVisual() && r.each(function(o) {
                var l = r.getItemVisual(o, "decal");
                if (l) {
                    var s = r.ensureUniqueItemVisual(o, "style");
                    s.decal = Jv(l, e)
                }
            });
            var a = r.getVisual("decal");
            if (a) {
                var i = r.getVisual("style");
                i.decal = Jv(a, e)
            }
        }
    })
}
var pXe = new Wi;
const no = pXe;
var wle = {};
function gXe(t, e) {
    wle[t] = e
}
function _le(t) {
    return wle[t]
}
var mXe = "5.4.3"
  , yXe = {
    zrender: "5.4.4"
}
  , bXe = 1
  , xXe = 800
  , SXe = 900
  , CXe = 1e3
  , wXe = 2e3
  , _Xe = 5e3
  , Tle = 1e3
  , TXe = 1100
  , S5 = 2e3
  , Ple = 3e3
  , PXe = 4e3
  , C2 = 4500
  , MXe = 4600
  , AXe = 5e3
  , IXe = 6e3
  , Mle = 7e3
  , Ale = {
    PROCESSOR: {
        FILTER: CXe,
        SERIES_FILTER: xXe,
        STATISTIC: _Xe
    },
    VISUAL: {
        LAYOUT: Tle,
        PROGRESSIVE_LAYOUT: TXe,
        GLOBAL: S5,
        CHART: Ple,
        POST_CHART_LAYOUT: MXe,
        COMPONENT: PXe,
        BRUSH: AXe,
        CHART_ITEM: C2,
        ARIA: IXe,
        DECAL: Mle
    }
}
  , na = "__flagInMainProcess"
  , Ea = "__pendingUpdate"
  , JP = "__needsUpdateStatus"
  , Kj = /^[a-zA-Z0-9_]+$/
  , e4 = "__connectUpdateStatus"
  , Uj = 0
  , kXe = 1
  , OXe = 2;
function Ile(t) {
    return function() {
        for (var e = [], n = 0; n < arguments.length; n++)
            e[n] = arguments[n];
        if (this.isDisposed()) {
            this.id;
            return
        }
        return Ole(this, t, e)
    }
}
function kle(t) {
    return function() {
        for (var e = [], n = 0; n < arguments.length; n++)
            e[n] = arguments[n];
        return Ole(this, t, e)
    }
}
function Ole(t, e, n) {
    return n[0] = n[0] && n[0].toLowerCase(),
    Wi.prototype[e].apply(t, n)
}
var Dle = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e
}(Wi)
  , Ele = Dle.prototype;
Ele.on = kle("on");
Ele.off = kle("off");
var Ad, t4, A1, Rs, n4, r4, a4, Sp, Cp, Yj, qj, i4, Xj, I1, Zj, Lle, bi, Qj, zS = function(t) {
    ge(e, t);
    function e(n, r, a) {
        var i = t.call(this, new $qe) || this;
        i._chartsViews = [],
        i._chartsMap = {},
        i._componentsViews = [],
        i._componentsMap = {},
        i._pendingActions = [],
        a = a || {},
        Ge(r) && (r = Rle[r]),
        i._dom = n;
        var o = "canvas"
          , l = "auto"
          , s = !1
          , u = i._zr = mI(n, {
            renderer: a.renderer || o,
            devicePixelRatio: a.devicePixelRatio,
            width: a.width,
            height: a.height,
            ssr: a.ssr,
            useDirtyRect: Ot(a.useDirtyRect, s),
            useCoarsePointer: Ot(a.useCoarsePointer, l),
            pointerSize: a.pointerSize
        });
        i._ssr = a.ssr,
        i._throttledZrFlush = S2(qe(u.flush, u), 17),
        r = ut(r),
        r && Voe(r, !0),
        i._theme = r,
        i._locale = HUe(a.locale || goe),
        i._coordSysMgr = new Nh;
        var c = i._api = Zj(i);
        function f(d, v) {
            return d.__prio - v.__prio
        }
        return Jb(jS, f),
        Jb(WI, f),
        i._scheduler = new hle(i,c,WI,jS),
        i._messageCenter = new Dle,
        i._initEvents(),
        i.resize = qe(i.resize, i),
        u.animation.on("frame", i._onframe, i),
        Yj(u, i),
        qj(u, i),
        I0(i),
        i
    }
    return e.prototype._onframe = function() {
        if (!this._disposed) {
            Qj(this);
            var n = this._scheduler;
            if (this[Ea]) {
                var r = this[Ea].silent;
                this[na] = !0;
                try {
                    Ad(this),
                    Rs.update.call(this, null, this[Ea].updateParams)
                } catch (s) {
                    throw this[na] = !1,
                    this[Ea] = null,
                    s
                }
                this._zr.flush(),
                this[na] = !1,
                this[Ea] = null,
                Sp.call(this, r),
                Cp.call(this, r)
            } else if (n.unfinished) {
                var a = bXe
                  , i = this._model
                  , o = this._api;
                n.unfinished = !1;
                do {
                    var l = +new Date;
                    n.performSeriesTasks(i),
                    n.performDataProcessorTasks(i),
                    r4(this, i),
                    n.performVisualTasks(i),
                    I1(this, this._model, o, "remain", {}),
                    a -= +new Date - l
                } while (a > 0 && n.unfinished);
                n.unfinished || this._zr.flush()
            }
        }
    }
    ,
    e.prototype.getDom = function() {
        return this._dom
    }
    ,
    e.prototype.getId = function() {
        return this.id
    }
    ,
    e.prototype.getZr = function() {
        return this._zr
    }
    ,
    e.prototype.isSSR = function() {
        return this._ssr
    }
    ,
    e.prototype.setOption = function(n, r, a) {
        if (!this[na]) {
            if (this._disposed) {
                this.id;
                return
            }
            var i, o, l;
            if (st(r) && (a = r.lazyUpdate,
            i = r.silent,
            o = r.replaceMerge,
            l = r.transition,
            r = r.notMerge),
            this[na] = !0,
            !this._model || r) {
                var s = new CYe(this._api)
                  , u = this._theme
                  , c = this._model = new $oe;
                c.scheduler = this._scheduler,
                c.ssr = this._ssr,
                c.init(null, null, null, u, this._locale, s)
            }
            this._model.setOption(n, {
                replaceMerge: o
            }, GI);
            var f = {
                seriesTransition: l,
                optionChanged: !0
            };
            if (a)
                this[Ea] = {
                    silent: i,
                    updateParams: f
                },
                this[na] = !1,
                this.getZr().wakeUp();
            else {
                try {
                    Ad(this),
                    Rs.update.call(this, null, f)
                } catch (d) {
                    throw this[Ea] = null,
                    this[na] = !1,
                    d
                }
                this._ssr || this._zr.flush(),
                this[Ea] = null,
                this[na] = !1,
                Sp.call(this, i),
                Cp.call(this, i)
            }
        }
    }
    ,
    e.prototype.setTheme = function() {}
    ,
    e.prototype.getModel = function() {
        return this._model
    }
    ,
    e.prototype.getOption = function() {
        return this._model && this._model.getOption()
    }
    ,
    e.prototype.getWidth = function() {
        return this._zr.getWidth()
    }
    ,
    e.prototype.getHeight = function() {
        return this._zr.getHeight()
    }
    ,
    e.prototype.getDevicePixelRatio = function() {
        return this._zr.painter.dpr || nn.hasGlobalWindow && window.devicePixelRatio || 1
    }
    ,
    e.prototype.getRenderedCanvas = function(n) {
        return this.renderToCanvas(n)
    }
    ,
    e.prototype.renderToCanvas = function(n) {
        n = n || {};
        var r = this._zr.painter;
        return r.getRenderedCanvas({
            backgroundColor: n.backgroundColor || this._model.get("backgroundColor"),
            pixelRatio: n.pixelRatio || this.getDevicePixelRatio()
        })
    }
    ,
    e.prototype.renderToSVGString = function(n) {
        n = n || {};
        var r = this._zr.painter;
        return r.renderToString({
            useViewBox: n.useViewBox
        })
    }
    ,
    e.prototype.getSvgDataURL = function() {
        if (!!nn.svgSupported) {
            var n = this._zr
              , r = n.storage.getDisplayList();
            return Z(r, function(a) {
                a.stopAnimation(null, !0)
            }),
            n.painter.toDataURL()
        }
    }
    ,
    e.prototype.getDataURL = function(n) {
        if (this._disposed) {
            this.id;
            return
        }
        n = n || {};
        var r = n.excludeComponents
          , a = this._model
          , i = []
          , o = this;
        Z(r, function(s) {
            a.eachComponent({
                mainType: s
            }, function(u) {
                var c = o._componentsMap[u.__viewId];
                c.group.ignore || (i.push(c),
                c.group.ignore = !0)
            })
        });
        var l = this._zr.painter.getType() === "svg" ? this.getSvgDataURL() : this.renderToCanvas(n).toDataURL("image/" + (n && n.type || "png"));
        return Z(i, function(s) {
            s.group.ignore = !1
        }),
        l
    }
    ,
    e.prototype.getConnectedDataURL = function(n) {
        if (this._disposed) {
            this.id;
            return
        }
        var r = n.type === "svg"
          , a = this.group
          , i = Math.min
          , o = Math.max
          , l = 1 / 0;
        if (WS[a]) {
            var s = l
              , u = l
              , c = -l
              , f = -l
              , d = []
              , v = n && n.pixelRatio || this.getDevicePixelRatio();
            Z(wf, function(b, x) {
                if (b.group === a) {
                    var C = r ? b.getZr().painter.getSvgDom().innerHTML : b.renderToCanvas(ut(n))
                      , S = b.getDom().getBoundingClientRect();
                    s = i(S.left, s),
                    u = i(S.top, u),
                    c = o(S.right, c),
                    f = o(S.bottom, f),
                    d.push({
                        dom: C,
                        left: S.left,
                        top: S.top
                    })
                }
            }),
            s *= v,
            u *= v,
            c *= v,
            f *= v;
            var h = c - s
              , p = f - u
              , g = _o.createCanvas()
              , m = mI(g, {
                renderer: r ? "svg" : "canvas"
            });
            if (m.resize({
                width: h,
                height: p
            }),
            r) {
                var y = "";
                return Z(d, function(b) {
                    var x = b.left - s
                      , C = b.top - u;
                    y += '<g transform="translate(' + x + "," + C + ')">' + b.dom + "</g>"
                }),
                m.painter.getSvgRoot().innerHTML = y,
                n.connectedBackgroundColor && m.painter.setBackgroundColor(n.connectedBackgroundColor),
                m.refreshImmediately(),
                m.painter.toDataURL()
            } else
                return n.connectedBackgroundColor && m.add(new tn({
                    shape: {
                        x: 0,
                        y: 0,
                        width: h,
                        height: p
                    },
                    style: {
                        fill: n.connectedBackgroundColor
                    }
                })),
                Z(d, function(b) {
                    var x = new Kr({
                        style: {
                            x: b.left * v - s,
                            y: b.top * v - u,
                            image: b.dom
                        }
                    });
                    m.add(x)
                }),
                m.refreshImmediately(),
                g.toDataURL("image/" + (n && n.type || "png"))
        } else
            return this.getDataURL(n)
    }
    ,
    e.prototype.convertToPixel = function(n, r) {
        return n4(this, "convertToPixel", n, r)
    }
    ,
    e.prototype.convertFromPixel = function(n, r) {
        return n4(this, "convertFromPixel", n, r)
    }
    ,
    e.prototype.containPixel = function(n, r) {
        if (this._disposed) {
            this.id;
            return
        }
        var a = this._model, i, o = Fg(a, n);
        return Z(o, function(l, s) {
            s.indexOf("Models") >= 0 && Z(l, function(u) {
                var c = u.coordinateSystem;
                if (c && c.containPoint)
                    i = i || !!c.containPoint(r);
                else if (s === "seriesModels") {
                    var f = this._chartsMap[u.__viewId];
                    f && f.containPoint && (i = i || f.containPoint(r, u))
                }
            }, this)
        }, this),
        !!i
    }
    ,
    e.prototype.getVisual = function(n, r) {
        var a = this._model
          , i = Fg(a, n, {
            defaultMainType: "series"
        })
          , o = i.seriesModel
          , l = o.getData()
          , s = i.hasOwnProperty("dataIndexInside") ? i.dataIndexInside : i.hasOwnProperty("dataIndex") ? l.indexOfRawIndex(i.dataIndex) : null;
        return s != null ? y5(l, s, r) : ty(l, r)
    }
    ,
    e.prototype.getViewOfComponentModel = function(n) {
        return this._componentsMap[n.__viewId]
    }
    ,
    e.prototype.getViewOfSeriesModel = function(n) {
        return this._chartsMap[n.__viewId]
    }
    ,
    e.prototype._initEvents = function() {
        var n = this;
        Z(DXe, function(r) {
            var a = function(i) {
                var o = n.getModel(), l = i.target, s, u = r === "globalout";
                if (u ? s = {} : l && of(l, function(h) {
                    var p = Ct(h);
                    if (p && p.dataIndex != null) {
                        var g = p.dataModel || o.getSeriesByIndex(p.seriesIndex);
                        return s = g && g.getDataParams(p.dataIndex, p.dataType, l) || {},
                        !0
                    } else if (p.eventData)
                        return s = Me({}, p.eventData),
                        !0
                }, !0),
                s) {
                    var c = s.componentType
                      , f = s.componentIndex;
                    (c === "markLine" || c === "markPoint" || c === "markArea") && (c = "series",
                    f = s.seriesIndex);
                    var d = c && f != null && o.getComponent(c, f)
                      , v = d && n[d.mainType === "series" ? "_chartsMap" : "_componentsMap"][d.__viewId];
                    s.event = i,
                    s.type = r,
                    n._$eventProcessor.eventInfo = {
                        targetEl: l,
                        packedEvent: s,
                        model: d,
                        view: v
                    },
                    n.trigger(r, s)
                }
            };
            a.zrEventfulCallAtLast = !0,
            n._zr.on(r, a, n)
        }),
        Z(Wg, function(r, a) {
            n._messageCenter.on(a, function(i) {
                this.trigger(a, i)
            }, n)
        }),
        Z(["selectchanged"], function(r) {
            n._messageCenter.on(r, function(a) {
                this.trigger(r, a)
            }, n)
        }),
        Vqe(this._messageCenter, this, this._api)
    }
    ,
    e.prototype.isDisposed = function() {
        return this._disposed
    }
    ,
    e.prototype.clear = function() {
        if (this._disposed) {
            this.id;
            return
        }
        this.setOption({
            series: []
        }, !0)
    }
    ,
    e.prototype.dispose = function() {
        if (this._disposed) {
            this.id;
            return
        }
        this._disposed = !0;
        var n = this.getDom();
        n && die(this.getDom(), w5, "");
        var r = this
          , a = r._api
          , i = r._model;
        Z(r._componentsViews, function(o) {
            o.dispose(i, a)
        }),
        Z(r._chartsViews, function(o) {
            o.dispose(i, a)
        }),
        r._zr.dispose(),
        r._dom = r._model = r._chartsMap = r._componentsMap = r._chartsViews = r._componentsViews = r._scheduler = r._api = r._zr = r._throttledZrFlush = r._theme = r._coordSysMgr = r._messageCenter = null,
        delete wf[r.id]
    }
    ,
    e.prototype.resize = function(n) {
        if (!this[na]) {
            if (this._disposed) {
                this.id;
                return
            }
            this._zr.resize(n);
            var r = this._model;
            if (this._loadingFX && this._loadingFX.resize(),
            !!r) {
                var a = r.resetOption("media")
                  , i = n && n.silent;
                this[Ea] && (i == null && (i = this[Ea].silent),
                a = !0,
                this[Ea] = null),
                this[na] = !0;
                try {
                    a && Ad(this),
                    Rs.update.call(this, {
                        type: "resize",
                        animation: Me({
                            duration: 0
                        }, n && n.animation)
                    })
                } catch (o) {
                    throw this[na] = !1,
                    o
                }
                this[na] = !1,
                Sp.call(this, i),
                Cp.call(this, i)
            }
        }
    }
    ,
    e.prototype.showLoading = function(n, r) {
        if (this._disposed) {
            this.id;
            return
        }
        if (st(n) && (r = n,
        n = ""),
        n = n || "default",
        this.hideLoading(),
        !!KI[n]) {
            var a = KI[n](this._api, r)
              , i = this._zr;
            this._loadingFX = a,
            i.add(a)
        }
    }
    ,
    e.prototype.hideLoading = function() {
        if (this._disposed) {
            this.id;
            return
        }
        this._loadingFX && this._zr.remove(this._loadingFX),
        this._loadingFX = null
    }
    ,
    e.prototype.makeActionFromEvent = function(n) {
        var r = Me({}, n);
        return r.type = Wg[n.type],
        r
    }
    ,
    e.prototype.dispatchAction = function(n, r) {
        if (this._disposed) {
            this.id;
            return
        }
        if (st(r) || (r = {
            silent: !!r
        }),
        !!HS[n.type] && !!this._model) {
            if (this[na]) {
                this._pendingActions.push(n);
                return
            }
            var a = r.silent;
            a4.call(this, n, a);
            var i = r.flush;
            i ? this._zr.flush() : i !== !1 && nn.browser.weChat && this._throttledZrFlush(),
            Sp.call(this, a),
            Cp.call(this, a)
        }
    }
    ,
    e.prototype.updateLabelLayout = function() {
        no.trigger("series:layoutlabels", this._model, this._api, {
            updatedSeries: []
        })
    }
    ,
    e.prototype.appendData = function(n) {
        if (this._disposed) {
            this.id;
            return
        }
        var r = n.seriesIndex
          , a = this.getModel()
          , i = a.getSeriesByIndex(r);
        i.appendData(n),
        this._scheduler.unfinished = !0,
        this.getZr().wakeUp()
    }
    ,
    e.internalField = function() {
        Ad = function(f) {
            var d = f._scheduler;
            d.restorePipelines(f._model),
            d.prepareStageTasks(),
            t4(f, !0),
            t4(f, !1),
            d.plan()
        }
        ,
        t4 = function(f, d) {
            for (var v = f._model, h = f._scheduler, p = d ? f._componentsViews : f._chartsViews, g = d ? f._componentsMap : f._chartsMap, m = f._zr, y = f._api, b = 0; b < p.length; b++)
                p[b].__alive = !1;
            d ? v.eachComponent(function(S, w) {
                S !== "series" && x(w)
            }) : v.eachSeries(x);
            function x(S) {
                var w = S.__requireNewView;
                S.__requireNewView = !1;
                var T = "_ec_" + S.id + "_" + S.type
                  , P = !w && g[T];
                if (!P) {
                    var M = al(S.type)
                      , A = d ? Bn.getClass(M.main, M.sub) : Tn.getClass(M.sub);
                    P = new A,
                    P.init(v, y),
                    g[T] = P,
                    p.push(P),
                    m.add(P.group)
                }
                S.__viewId = P.__id = T,
                P.__alive = !0,
                P.__model = S,
                P.group.__ecComponentInfo = {
                    mainType: S.mainType,
                    index: S.componentIndex
                },
                !d && h.prepareView(P, S, v, y)
            }
            for (var b = 0; b < p.length; ) {
                var C = p[b];
                C.__alive ? b++ : (!d && C.renderTask.dispose(),
                m.remove(C.group),
                C.dispose(v, y),
                p.splice(b, 1),
                g[C.__id] === C && delete g[C.__id],
                C.__id = C.group.__ecComponentInfo = null)
            }
        }
        ,
        A1 = function(f, d, v, h, p) {
            var g = f._model;
            if (g.setUpdatePayload(v),
            !h) {
                Z([].concat(f._componentsViews).concat(f._chartsViews), C);
                return
            }
            var m = {};
            m[h + "Id"] = v[h + "Id"],
            m[h + "Index"] = v[h + "Index"],
            m[h + "Name"] = v[h + "Name"];
            var y = {
                mainType: h,
                query: m
            };
            p && (y.subType = p);
            var b = v.excludeSeriesId, x;
            b != null && (x = Qe(),
            Z(_n(b), function(S) {
                var w = _r(S, null);
                w != null && x.set(w, !0)
            })),
            g && g.eachComponent(y, function(S) {
                var w = x && x.get(S.id) != null;
                if (!w)
                    if (LH(v))
                        if (S instanceof En)
                            v.type === Sf && !v.notBlur && !S.get(["emphasis", "disabled"]) && FKe(S, v, f._api);
                        else {
                            var T = G6(S.mainType, S.componentIndex, v.name, f._api)
                              , P = T.focusSelf
                              , M = T.dispatchers;
                            v.type === Sf && P && !v.notBlur && PI(S.mainType, S.componentIndex, f._api),
                            M && Z(M, function(A) {
                                v.type === Sf ? us(A) : cs(A)
                            })
                        }
                    else
                        AI(v) && S instanceof En && (zKe(S, v, f._api),
                        DH(S),
                        bi(f))
            }, f),
            g && g.eachComponent(y, function(S) {
                var w = x && x.get(S.id) != null;
                w || C(f[h === "series" ? "_chartsMap" : "_componentsMap"][S.__viewId])
            }, f);
            function C(S) {
                S && S.__alive && S[d] && S[d](S.__model, g, f._api, v)
            }
        }
        ,
        Rs = {
            prepareAndUpdate: function(f) {
                Ad(this),
                Rs.update.call(this, f, {
                    optionChanged: f.newOption != null
                })
            },
            update: function(f, d) {
                var v = this._model
                  , h = this._api
                  , p = this._zr
                  , g = this._coordSysMgr
                  , m = this._scheduler;
                if (!!v) {
                    v.setUpdatePayload(f),
                    m.restoreData(v, f),
                    m.performSeriesTasks(v),
                    g.create(v, h),
                    m.performDataProcessorTasks(v, f),
                    r4(this, v),
                    g.update(v, h),
                    n(v),
                    m.performVisualTasks(v, f),
                    i4(this, v, h, f, d);
                    var y = v.get("backgroundColor") || "transparent"
                      , b = v.get("darkMode");
                    p.setBackgroundColor(y),
                    b != null && b !== "auto" && p.setDarkMode(b),
                    no.trigger("afterupdate", v, h)
                }
            },
            updateTransform: function(f) {
                var d = this
                  , v = this._model
                  , h = this._api;
                if (!!v) {
                    v.setUpdatePayload(f);
                    var p = [];
                    v.eachComponent(function(m, y) {
                        if (m !== "series") {
                            var b = d.getViewOfComponentModel(y);
                            if (b && b.__alive)
                                if (b.updateTransform) {
                                    var x = b.updateTransform(y, v, h, f);
                                    x && x.update && p.push(b)
                                } else
                                    p.push(b)
                        }
                    });
                    var g = Qe();
                    v.eachSeries(function(m) {
                        var y = d._chartsMap[m.__viewId];
                        if (y.updateTransform) {
                            var b = y.updateTransform(m, v, h, f);
                            b && b.update && g.set(m.uid, 1)
                        } else
                            g.set(m.uid, 1)
                    }),
                    n(v),
                    this._scheduler.performVisualTasks(v, f, {
                        setDirty: !0,
                        dirtyMap: g
                    }),
                    I1(this, v, h, f, {}, g),
                    no.trigger("afterupdate", v, h)
                }
            },
            updateView: function(f) {
                var d = this._model;
                !d || (d.setUpdatePayload(f),
                Tn.markUpdateMethod(f, "updateView"),
                n(d),
                this._scheduler.performVisualTasks(d, f, {
                    setDirty: !0
                }),
                i4(this, d, this._api, f, {}),
                no.trigger("afterupdate", d, this._api))
            },
            updateVisual: function(f) {
                var d = this
                  , v = this._model;
                !v || (v.setUpdatePayload(f),
                v.eachSeries(function(h) {
                    h.getData().clearAllVisual()
                }),
                Tn.markUpdateMethod(f, "updateVisual"),
                n(v),
                this._scheduler.performVisualTasks(v, f, {
                    visualType: "visual",
                    setDirty: !0
                }),
                v.eachComponent(function(h, p) {
                    if (h !== "series") {
                        var g = d.getViewOfComponentModel(p);
                        g && g.__alive && g.updateVisual(p, v, d._api, f)
                    }
                }),
                v.eachSeries(function(h) {
                    var p = d._chartsMap[h.__viewId];
                    p.updateVisual(h, v, d._api, f)
                }),
                no.trigger("afterupdate", v, this._api))
            },
            updateLayout: function(f) {
                Rs.update.call(this, f)
            }
        },
        n4 = function(f, d, v, h) {
            if (f._disposed) {
                f.id;
                return
            }
            for (var p = f._model, g = f._coordSysMgr.getCoordinateSystems(), m, y = Fg(p, v), b = 0; b < g.length; b++) {
                var x = g[b];
                if (x[d] && (m = x[d](p, y, h)) != null)
                    return m
            }
        }
        ,
        r4 = function(f, d) {
            var v = f._chartsMap
              , h = f._scheduler;
            d.eachSeries(function(p) {
                h.updateStreamModes(p, v[p.__viewId])
            })
        }
        ,
        a4 = function(f, d) {
            var v = this
              , h = this.getModel()
              , p = f.type
              , g = f.escapeConnect
              , m = HS[p]
              , y = m.actionInfo
              , b = (y.update || "update").split(":")
              , x = b.pop()
              , C = b[0] != null && al(b[0]);
            this[na] = !0;
            var S = [f]
              , w = !1;
            f.batch && (w = !0,
            S = Le(f.batch, function(D) {
                return D = ot(Me({}, D), f),
                D.batch = null,
                D
            }));
            var T = [], P, M = AI(f), A = LH(f);
            if (A && Bie(this._api),
            Z(S, function(D) {
                if (P = m.action(D, v._model, v._api),
                P = P || Me({}, D),
                P.type = y.event || P.type,
                T.push(P),
                A) {
                    var E = F6(f)
                      , L = E.queryOptionMap
                      , N = E.mainTypeSpecified
                      , R = N ? L.keys()[0] : "series";
                    A1(v, x, D, R),
                    bi(v)
                } else
                    M ? (A1(v, x, D, "series"),
                    bi(v)) : C && A1(v, x, D, C.main, C.sub)
            }),
            x !== "none" && !A && !M && !C)
                try {
                    this[Ea] ? (Ad(this),
                    Rs.update.call(this, f),
                    this[Ea] = null) : Rs[x].call(this, f)
                } catch (D) {
                    throw this[na] = !1,
                    D
                }
            if (w ? P = {
                type: y.event || p,
                escapeConnect: g,
                batch: T
            } : P = T[0],
            this[na] = !1,
            !d) {
                var O = this._messageCenter;
                if (O.trigger(P.type, P),
                M) {
                    var k = {
                        type: "selectchanged",
                        escapeConnect: g,
                        selected: HKe(h),
                        isFromClick: f.isFromClick || !1,
                        fromAction: f.type,
                        fromActionPayload: f
                    };
                    O.trigger(k.type, k)
                }
            }
        }
        ,
        Sp = function(f) {
            for (var d = this._pendingActions; d.length; ) {
                var v = d.shift();
                a4.call(this, v, f)
            }
        }
        ,
        Cp = function(f) {
            !f && this.trigger("updated")
        }
        ,
        Yj = function(f, d) {
            f.on("rendered", function(v) {
                d.trigger("rendered", v),
                f.animation.isFinished() && !d[Ea] && !d._scheduler.unfinished && !d._pendingActions.length && d.trigger("finished")
            })
        }
        ,
        qj = function(f, d) {
            f.on("mouseover", function(v) {
                var h = v.target
                  , p = of(h, z0);
                p && (BKe(p, v, d._api),
                bi(d))
            }).on("mouseout", function(v) {
                var h = v.target
                  , p = of(h, z0);
                p && (VKe(p, v, d._api),
                bi(d))
            }).on("click", function(v) {
                var h = v.target
                  , p = of(h, function(y) {
                    return Ct(y).dataIndex != null
                }, !0);
                if (p) {
                    var g = p.selected ? "unselect" : "select"
                      , m = Ct(p);
                    d._api.dispatchAction({
                        type: g,
                        dataType: m.dataType,
                        dataIndexInside: m.dataIndex,
                        seriesIndex: m.seriesIndex,
                        isFromClick: !0
                    })
                }
            })
        }
        ;
        function n(f) {
            f.clearColorPalette(),
            f.eachSeries(function(d) {
                d.clearColorPalette()
            })
        }
        function r(f) {
            var d = []
              , v = []
              , h = !1;
            if (f.eachComponent(function(y, b) {
                var x = b.get("zlevel") || 0
                  , C = b.get("z") || 0
                  , S = b.getZLevelKey();
                h = h || !!S,
                (y === "series" ? v : d).push({
                    zlevel: x,
                    z: C,
                    idx: b.componentIndex,
                    type: y,
                    key: S
                })
            }),
            h) {
                var p = d.concat(v), g, m;
                Jb(p, function(y, b) {
                    return y.zlevel === b.zlevel ? y.z - b.z : y.zlevel - b.zlevel
                }),
                Z(p, function(y) {
                    var b = f.getComponent(y.type, y.idx)
                      , x = y.zlevel
                      , C = y.key;
                    g != null && (x = Math.max(g, x)),
                    C ? (x === g && C !== m && x++,
                    m = C) : m && (x === g && x++,
                    m = ""),
                    g = x,
                    b.setZLevel(x)
                })
            }
        }
        i4 = function(f, d, v, h, p) {
            r(d),
            Xj(f, d, v, h, p),
            Z(f._chartsViews, function(g) {
                g.__alive = !1
            }),
            I1(f, d, v, h, p),
            Z(f._chartsViews, function(g) {
                g.__alive || g.remove(d, v)
            })
        }
        ,
        Xj = function(f, d, v, h, p, g) {
            Z(g || f._componentsViews, function(m) {
                var y = m.__model;
                u(y, m),
                m.render(y, d, v, h),
                l(y, m),
                c(y, m)
            })
        }
        ,
        I1 = function(f, d, v, h, p, g) {
            var m = f._scheduler;
            p = Me(p || {}, {
                updatedSeries: d.getSeries()
            }),
            no.trigger("series:beforeupdate", d, v, p);
            var y = !1;
            d.eachSeries(function(b) {
                var x = f._chartsMap[b.__viewId];
                x.__alive = !0;
                var C = x.renderTask;
                m.updatePayload(C, h),
                u(b, x),
                g && g.get(b.uid) && C.dirty(),
                C.perform(m.getPerformArgs(C)) && (y = !0),
                x.group.silent = !!b.get("silent"),
                o(b, x),
                DH(b)
            }),
            m.unfinished = y || m.unfinished,
            no.trigger("series:layoutlabels", d, v, p),
            no.trigger("series:transition", d, v, p),
            d.eachSeries(function(b) {
                var x = f._chartsMap[b.__viewId];
                l(b, x),
                c(b, x)
            }),
            i(f, d),
            no.trigger("series:afterupdate", d, v, p)
        }
        ,
        bi = function(f) {
            f[JP] = !0,
            f.getZr().wakeUp()
        }
        ,
        Qj = function(f) {
            !f[JP] || (f.getZr().storage.traverse(function(d) {
                Cv(d) || a(d)
            }),
            f[JP] = !1)
        }
        ;
        function a(f) {
            for (var d = [], v = f.currentStates, h = 0; h < v.length; h++) {
                var p = v[h];
                p === "emphasis" || p === "blur" || p === "select" || d.push(p)
            }
            f.selected && f.states.select && d.push("select"),
            f.hoverState === i2 && f.states.emphasis ? d.push("emphasis") : f.hoverState === Ym && f.states.blur && d.push("blur"),
            f.useStates(d)
        }
        function i(f, d) {
            var v = f._zr
              , h = v.storage
              , p = 0;
            h.traverse(function(g) {
                g.isGroup || p++
            }),
            p > d.get("hoverLayerThreshold") && !nn.node && !nn.worker && d.eachSeries(function(g) {
                if (!g.preventUsingHoverLayer) {
                    var m = f._chartsMap[g.__viewId];
                    m.__alive && m.eachRendered(function(y) {
                        y.states.emphasis && (y.states.emphasis.hoverLayer = !0)
                    })
                }
            })
        }
        function o(f, d) {
            var v = f.get("blendMode") || null;
            d.eachRendered(function(h) {
                h.isGroup || (h.style.blend = v)
            })
        }
        function l(f, d) {
            if (!f.preventAutoZ) {
                var v = f.get("z") || 0
                  , h = f.get("zlevel") || 0;
                d.eachRendered(function(p) {
                    return s(p, v, h, -1 / 0),
                    !0
                })
            }
        }
        function s(f, d, v, h) {
            var p = f.getTextContent()
              , g = f.getTextGuideLine()
              , m = f.isGroup;
            if (m)
                for (var y = f.childrenRef(), b = 0; b < y.length; b++)
                    h = Math.max(s(y[b], d, v, h), h);
            else
                f.z = d,
                f.zlevel = v,
                h = Math.max(f.z2, h);
            if (p && (p.z = d,
            p.zlevel = v,
            isFinite(h) && (p.z2 = h + 2)),
            g) {
                var x = f.textGuideLineConfig;
                g.z = d,
                g.zlevel = v,
                isFinite(h) && (g.z2 = h + (x && x.showAbove ? 1 : -1))
            }
            return h
        }
        function u(f, d) {
            d.eachRendered(function(v) {
                if (!Cv(v)) {
                    var h = v.getTextContent()
                      , p = v.getTextGuideLine();
                    v.stateTransition && (v.stateTransition = null),
                    h && h.stateTransition && (h.stateTransition = null),
                    p && p.stateTransition && (p.stateTransition = null),
                    v.hasState() ? (v.prevStates = v.currentStates,
                    v.clearStates()) : v.prevStates && (v.prevStates = null)
                }
            })
        }
        function c(f, d) {
            var v = f.getModel("stateAnimation")
              , h = f.isAnimationEnabled()
              , p = v.get("duration")
              , g = p > 0 ? {
                duration: p,
                delay: v.get("delay"),
                easing: v.get("easing")
            } : null;
            d.eachRendered(function(m) {
                if (m.states && m.states.emphasis) {
                    if (Cv(m))
                        return;
                    if (m instanceof jt && UKe(m),
                    m.__dirty) {
                        var y = m.prevStates;
                        y && m.useStates(y)
                    }
                    if (h) {
                        m.stateTransition = g;
                        var b = m.getTextContent()
                          , x = m.getTextGuideLine();
                        b && (b.stateTransition = g),
                        x && (x.stateTransition = g)
                    }
                    m.__dirty && a(m)
                }
            })
        }
        Zj = function(f) {
            return new (function(d) {
                ge(v, d);
                function v() {
                    return d !== null && d.apply(this, arguments) || this
                }
                return v.prototype.getCoordinateSystems = function() {
                    return f._coordSysMgr.getCoordinateSystems()
                }
                ,
                v.prototype.getComponentByElement = function(h) {
                    for (; h; ) {
                        var p = h.__ecComponentInfo;
                        if (p != null)
                            return f._model.getComponent(p.mainType, p.index);
                        h = h.parent
                    }
                }
                ,
                v.prototype.enterEmphasis = function(h, p) {
                    us(h, p),
                    bi(f)
                }
                ,
                v.prototype.leaveEmphasis = function(h, p) {
                    cs(h, p),
                    bi(f)
                }
                ,
                v.prototype.enterBlur = function(h) {
                    Rie(h),
                    bi(f)
                }
                ,
                v.prototype.leaveBlur = function(h) {
                    W6(h),
                    bi(f)
                }
                ,
                v.prototype.enterSelect = function(h) {
                    Nie(h),
                    bi(f)
                }
                ,
                v.prototype.leaveSelect = function(h) {
                    $ie(h),
                    bi(f)
                }
                ,
                v.prototype.getModel = function() {
                    return f.getModel()
                }
                ,
                v.prototype.getViewOfComponentModel = function(h) {
                    return f.getViewOfComponentModel(h)
                }
                ,
                v.prototype.getViewOfSeriesModel = function(h) {
                    return f.getViewOfSeriesModel(h)
                }
                ,
                v
            }(Foe))(f)
        }
        ,
        Lle = function(f) {
            function d(v, h) {
                for (var p = 0; p < v.length; p++) {
                    var g = v[p];
                    g[e4] = h
                }
            }
            Z(Wg, function(v, h) {
                f._messageCenter.on(h, function(p) {
                    if (WS[f.group] && f[e4] !== Uj) {
                        if (p && p.escapeConnect)
                            return;
                        var g = f.makeActionFromEvent(p)
                          , m = [];
                        Z(wf, function(y) {
                            y !== f && y.group === f.group && m.push(y)
                        }),
                        d(m, Uj),
                        Z(m, function(y) {
                            y[e4] !== kXe && y.dispatchAction(g)
                        }),
                        d(m, OXe)
                    }
                })
            })
        }
    }(),
    e
}(Wi), C5 = zS.prototype;
C5.on = Ile("on");
C5.off = Ile("off");
C5.one = function(t, e, n) {
    var r = this;
    function a() {
        for (var i = [], o = 0; o < arguments.length; o++)
            i[o] = arguments[o];
        e && e.apply && e.apply(this, i),
        r.off(t, a)
    }
    this.on.call(this, t, a, n)
}
;
var DXe = ["click", "dblclick", "mouseover", "mouseout", "mousemove", "mousedown", "mouseup", "globalout", "contextmenu"];
var HS = {}
  , Wg = {}
  , WI = []
  , GI = []
  , jS = []
  , Rle = {}
  , KI = {}
  , wf = {}
  , WS = {}
  , EXe = +new Date - 0
  , LXe = +new Date - 0
  , w5 = "_echarts_instance_";
function RXe(t, e, n) {
    var r = !(n && n.ssr);
    if (r) {
        var a = _5(t);
        if (a)
            return a
    }
    var i = new zS(t,e,n);
    return i.id = "ec_" + EXe++,
    wf[i.id] = i,
    r && die(t, w5, i.id),
    Lle(i),
    no.trigger("afterinit", i),
    i
}
function NXe(t) {
    if (ke(t)) {
        var e = t;
        t = null,
        Z(e, function(n) {
            n.group != null && (t = n.group)
        }),
        t = t || "g_" + LXe++,
        Z(e, function(n) {
            n.group = t
        })
    }
    return WS[t] = !0,
    t
}
function Nle(t) {
    WS[t] = !1
}
var $Xe = Nle;
function FXe(t) {
    Ge(t) ? t = wf[t] : t instanceof zS || (t = _5(t)),
    t instanceof zS && !t.isDisposed() && t.dispose()
}
function _5(t) {
    return wf[EGe(t, w5)]
}
function BXe(t) {
    return wf[t]
}
function T5(t, e) {
    Rle[t] = e
}
function P5(t) {
    Rt(GI, t) < 0 && GI.push(t)
}
function M5(t, e) {
    A5(WI, t, e, wXe)
}
function $le(t) {
    w2("afterinit", t)
}
function Fle(t) {
    w2("afterupdate", t)
}
function w2(t, e) {
    no.on(t, e)
}
function Oo(t, e, n) {
    et(e) && (n = e,
    e = "");
    var r = st(t) ? t.type : [t, t = {
        event: e
    }][0];
    t.event = (t.event || r).toLowerCase(),
    e = t.event,
    !Wg[e] && (la(Kj.test(r) && Kj.test(e)),
    HS[r] || (HS[r] = {
        action: n,
        actionInfo: t
    }),
    Wg[e] = r)
}
function Ble(t, e) {
    Nh.register(t, e)
}
function VXe(t) {
    var e = Nh.get(t);
    if (e)
        return e.getDimensionsInfo ? e.getDimensionsInfo() : e.dimensions.slice()
}
function Vle(t, e) {
    A5(jS, t, e, Tle, "layout")
}
function qu(t, e) {
    A5(jS, t, e, Ple, "visual")
}
var Jj = [];
function A5(t, e, n, r, a) {
    if ((et(e) || st(e)) && (n = e,
    e = r),
    !(Rt(Jj, n) >= 0)) {
        Jj.push(n);
        var i = hle.wrapStageHandler(n, a);
        i.__prio = e,
        i.__raw = n,
        t.push(i)
    }
}
function I5(t, e) {
    KI[t] = e
}
function zXe(t) {
    pae({
        createCanvas: t
    })
}
function zle(t, e, n) {
    var r = _le("registerMap");
    r && r(t, e, n)
}
function HXe(t) {
    var e = _le("getMap");
    return e && e(t)
}
var Hle = XYe;
qu(S5, Sqe);
qu(C2, Cqe);
qu(C2, wqe);
qu(S5, Fqe);
qu(C2, Bqe);
qu(Mle, hXe);
P5(Voe);
M5(SXe, kYe);
I5("default", _qe);
Oo({
    type: Sf,
    event: Sf,
    update: Sf
}, nr);
Oo({
    type: ox,
    event: ox,
    update: ox
}, nr);
Oo({
    type: Bg,
    event: Bg,
    update: Bg
}, nr);
Oo({
    type: lx,
    event: lx,
    update: lx
}, nr);
Oo({
    type: Vg,
    event: Vg,
    update: Vg
}, nr);
T5("light", Rqe);
T5("dark", Nqe);
var jXe = {}
  , eW = []
  , WXe = {
    registerPreprocessor: P5,
    registerProcessor: M5,
    registerPostInit: $le,
    registerPostUpdate: Fle,
    registerUpdateLifecycle: w2,
    registerAction: Oo,
    registerCoordinateSystem: Ble,
    registerLayout: Vle,
    registerVisual: qu,
    registerTransform: Hle,
    registerLoading: I5,
    registerMap: zle,
    registerImpl: gXe,
    PRIORITY: Ale,
    ComponentModel: qt,
    ComponentView: Bn,
    SeriesModel: En,
    ChartView: Tn,
    registerComponentModel: function(t) {
        qt.registerClass(t)
    },
    registerComponentView: function(t) {
        Bn.registerClass(t)
    },
    registerSeriesModel: function(t) {
        En.registerClass(t)
    },
    registerChartView: function(t) {
        Tn.registerClass(t)
    },
    registerSubTypeDefaulter: function(t, e) {
        qt.registerSubTypeDefaulter(t, e)
    },
    registerPainter: function(t, e) {
        tie(t, e)
    }
};
function Bt(t) {
    if (ke(t)) {
        Z(t, function(e) {
            Bt(e)
        });
        return
    }
    Rt(eW, t) >= 0 || (eW.push(t),
    et(t) && (t = {
        install: t
    }),
    t.install(WXe))
}
function wp(t) {
    return t == null ? 0 : t.length || 1
}
function tW(t) {
    return t
}
var GXe = function() {
    function t(e, n, r, a, i, o) {
        this._old = e,
        this._new = n,
        this._oldKeyGetter = r || tW,
        this._newKeyGetter = a || tW,
        this.context = i,
        this._diffModeMultiple = o === "multiple"
    }
    return t.prototype.add = function(e) {
        return this._add = e,
        this
    }
    ,
    t.prototype.update = function(e) {
        return this._update = e,
        this
    }
    ,
    t.prototype.updateManyToOne = function(e) {
        return this._updateManyToOne = e,
        this
    }
    ,
    t.prototype.updateOneToMany = function(e) {
        return this._updateOneToMany = e,
        this
    }
    ,
    t.prototype.updateManyToMany = function(e) {
        return this._updateManyToMany = e,
        this
    }
    ,
    t.prototype.remove = function(e) {
        return this._remove = e,
        this
    }
    ,
    t.prototype.execute = function() {
        this[this._diffModeMultiple ? "_executeMultiple" : "_executeOneToOne"]()
    }
    ,
    t.prototype._executeOneToOne = function() {
        var e = this._old
          , n = this._new
          , r = {}
          , a = new Array(e.length)
          , i = new Array(n.length);
        this._initIndexMap(e, null, a, "_oldKeyGetter"),
        this._initIndexMap(n, r, i, "_newKeyGetter");
        for (var o = 0; o < e.length; o++) {
            var l = a[o]
              , s = r[l]
              , u = wp(s);
            if (u > 1) {
                var c = s.shift();
                s.length === 1 && (r[l] = s[0]),
                this._update && this._update(c, o)
            } else
                u === 1 ? (r[l] = null,
                this._update && this._update(s, o)) : this._remove && this._remove(o)
        }
        this._performRestAdd(i, r)
    }
    ,
    t.prototype._executeMultiple = function() {
        var e = this._old
          , n = this._new
          , r = {}
          , a = {}
          , i = []
          , o = [];
        this._initIndexMap(e, r, i, "_oldKeyGetter"),
        this._initIndexMap(n, a, o, "_newKeyGetter");
        for (var l = 0; l < i.length; l++) {
            var s = i[l]
              , u = r[s]
              , c = a[s]
              , f = wp(u)
              , d = wp(c);
            if (f > 1 && d === 1)
                this._updateManyToOne && this._updateManyToOne(c, u),
                a[s] = null;
            else if (f === 1 && d > 1)
                this._updateOneToMany && this._updateOneToMany(c, u),
                a[s] = null;
            else if (f === 1 && d === 1)
                this._update && this._update(c, u),
                a[s] = null;
            else if (f > 1 && d > 1)
                this._updateManyToMany && this._updateManyToMany(c, u),
                a[s] = null;
            else if (f > 1)
                for (var v = 0; v < f; v++)
                    this._remove && this._remove(u[v]);
            else
                this._remove && this._remove(u)
        }
        this._performRestAdd(o, a)
    }
    ,
    t.prototype._performRestAdd = function(e, n) {
        for (var r = 0; r < e.length; r++) {
            var a = e[r]
              , i = n[a]
              , o = wp(i);
            if (o > 1)
                for (var l = 0; l < o; l++)
                    this._add && this._add(i[l]);
            else
                o === 1 && this._add && this._add(i);
            n[a] = null
        }
    }
    ,
    t.prototype._initIndexMap = function(e, n, r, a) {
        for (var i = this._diffModeMultiple, o = 0; o < e.length; o++) {
            var l = "_ec_" + this[a](e[o], o);
            if (i || (r[o] = l),
            !!n) {
                var s = n[l]
                  , u = wp(s);
                u === 0 ? (n[l] = o,
                i && r.push(l)) : u === 1 ? n[l] = [s, o] : s.push(o)
            }
        }
    }
    ,
    t
}();
const fs = GXe;
var KXe = function() {
    function t(e, n) {
        this._encode = e,
        this._schema = n
    }
    return t.prototype.get = function() {
        return {
            fullDimensions: this._getFullDimensionNames(),
            encode: this._encode
        }
    }
    ,
    t.prototype._getFullDimensionNames = function() {
        return this._cachedDimNames || (this._cachedDimNames = this._schema ? this._schema.makeOutputDimensionNames() : []),
        this._cachedDimNames
    }
    ,
    t
}();
function UXe(t, e) {
    var n = {}
      , r = n.encode = {}
      , a = Qe()
      , i = []
      , o = []
      , l = {};
    Z(t.dimensions, function(d) {
        var v = t.getDimensionInfo(d)
          , h = v.coordDim;
        if (h) {
            var p = v.coordDimIndex;
            o4(r, h)[p] = d,
            v.isExtraCoord || (a.set(h, 1),
            YXe(v.type) && (i[0] = d),
            o4(l, h)[p] = t.getDimensionIndex(v.name)),
            v.defaultTooltip && o.push(d)
        }
        Ioe.each(function(g, m) {
            var y = o4(r, m)
              , b = v.otherDims[m];
            b != null && b !== !1 && (y[b] = v.name)
        })
    });
    var s = []
      , u = {};
    a.each(function(d, v) {
        var h = r[v];
        u[v] = h[0],
        s = s.concat(h)
    }),
    n.dataDimsOnCoord = s,
    n.dataDimIndicesOnCoord = Le(s, function(d) {
        return t.getDimensionInfo(d).storeDimIndex
    }),
    n.encodeFirstDimNotExtra = u;
    var c = r.label;
    c && c.length && (i = c.slice());
    var f = r.tooltip;
    return f && f.length ? o = f.slice() : o.length || (o = i.slice()),
    r.defaultedLabel = i,
    r.defaultedTooltip = o,
    n.userOutput = new KXe(l,e),
    n
}
function o4(t, e) {
    return t.hasOwnProperty(e) || (t[e] = []),
    t[e]
}
function GS(t) {
    return t === "category" ? "ordinal" : t === "time" ? "time" : "float"
}
function YXe(t) {
    return !(t === "ordinal" || t === "time")
}
var qXe = function() {
    function t(e) {
        this.otherDims = {},
        e != null && Me(this, e)
    }
    return t
}();
const dx = qXe;
var XXe = an()
  , ZXe = {
    float: "f",
    int: "i",
    ordinal: "o",
    number: "n",
    time: "t"
}
  , jle = function() {
    function t(e) {
        this.dimensions = e.dimensions,
        this._dimOmitted = e.dimensionOmitted,
        this.source = e.source,
        this._fullDimCount = e.fullDimensionCount,
        this._updateDimOmitted(e.dimensionOmitted)
    }
    return t.prototype.isDimensionOmitted = function() {
        return this._dimOmitted
    }
    ,
    t.prototype._updateDimOmitted = function(e) {
        this._dimOmitted = e,
        e && (this._dimNameMap || (this._dimNameMap = Kle(this.source)))
    }
    ,
    t.prototype.getSourceDimensionIndex = function(e) {
        return Ot(this._dimNameMap.get(e), -1)
    }
    ,
    t.prototype.getSourceDimension = function(e) {
        var n = this.source.dimensionsDefine;
        if (n)
            return n[e]
    }
    ,
    t.prototype.makeStoreSchema = function() {
        for (var e = this._fullDimCount, n = Hoe(this.source), r = !Ule(e), a = "", i = [], o = 0, l = 0; o < e; o++) {
            var s = void 0
              , u = void 0
              , c = void 0
              , f = this.dimensions[l];
            if (f && f.storeDimIndex === o)
                s = n ? f.name : null,
                u = f.type,
                c = f.ordinalMeta,
                l++;
            else {
                var d = this.getSourceDimension(o);
                d && (s = n ? d.name : null,
                u = d.type)
            }
            i.push({
                property: s,
                type: u,
                ordinalMeta: c
            }),
            n && s != null && (!f || !f.isCalculationCoord) && (a += r ? s.replace(/\`/g, "`1").replace(/\$/g, "`2") : s),
            a += "$",
            a += ZXe[u] || "f",
            c && (a += c.uid),
            a += "$"
        }
        var v = this.source
          , h = [v.seriesLayoutBy, v.startIndex, a].join("$$");
        return {
            dimensions: i,
            hash: h
        }
    }
    ,
    t.prototype.makeOutputDimensionNames = function() {
        for (var e = [], n = 0, r = 0; n < this._fullDimCount; n++) {
            var a = void 0
              , i = this.dimensions[r];
            if (i && i.storeDimIndex === n)
                i.isCalculationCoord || (a = i.name),
                r++;
            else {
                var o = this.getSourceDimension(n);
                o && (a = o.name)
            }
            e.push(a)
        }
        return e
    }
    ,
    t.prototype.appendCalculationDimension = function(e) {
        this.dimensions.push(e),
        e.isCalculationCoord = !0,
        this._fullDimCount++,
        this._updateDimOmitted(!0)
    }
    ,
    t
}();
function Wle(t) {
    return t instanceof jle
}
function Gle(t) {
    for (var e = Qe(), n = 0; n < (t || []).length; n++) {
        var r = t[n]
          , a = st(r) ? r.name : r;
        a != null && e.get(a) == null && e.set(a, n)
    }
    return e
}
function Kle(t) {
    var e = XXe(t);
    return e.dimNameMap || (e.dimNameMap = Gle(t.dimensionsDefine))
}
function Ule(t) {
    return t > 30
}
var _p = st, Ns = Le, QXe = typeof Int32Array == "undefined" ? Array : Int32Array, JXe = "e\0\0", nW = -1, eZe = ["hasItemOption", "_nameList", "_idList", "_invertedIndicesMap", "_dimSummary", "userOutput", "_rawData", "_dimValueGetter", "_nameDimIdx", "_idDimIdx", "_nameRepeatCount"], tZe = ["_approximateExtent"], rW, k1, Tp, Pp, l4, O1, s4, nZe = function() {
    function t(e, n) {
        this.type = "list",
        this._dimOmitted = !1,
        this._nameList = [],
        this._idList = [],
        this._visual = {},
        this._layout = {},
        this._itemVisuals = [],
        this._itemLayouts = [],
        this._graphicEls = [],
        this._approximateExtent = {},
        this._calculationInfo = {},
        this.hasItemOption = !1,
        this.TRANSFERABLE_METHODS = ["cloneShallow", "downSample", "lttbDownSample", "map"],
        this.CHANGABLE_METHODS = ["filterSelf", "selectRange"],
        this.DOWNSAMPLE_METHODS = ["downSample", "lttbDownSample"];
        var r, a = !1;
        Wle(e) ? (r = e.dimensions,
        this._dimOmitted = e.isDimensionOmitted(),
        this._schema = e) : (a = !0,
        r = e),
        r = r || ["x", "y"];
        for (var i = {}, o = [], l = {}, s = !1, u = {}, c = 0; c < r.length; c++) {
            var f = r[c]
              , d = Ge(f) ? new dx({
                name: f
            }) : f instanceof dx ? f : new dx(f)
              , v = d.name;
            d.type = d.type || "float",
            d.coordDim || (d.coordDim = v,
            d.coordDimIndex = 0);
            var h = d.otherDims = d.otherDims || {};
            o.push(v),
            i[v] = d,
            u[v] != null && (s = !0),
            d.createInvertedIndices && (l[v] = []),
            h.itemName === 0 && (this._nameDimIdx = c),
            h.itemId === 0 && (this._idDimIdx = c),
            a && (d.storeDimIndex = c)
        }
        if (this.dimensions = o,
        this._dimInfos = i,
        this._initGetDimensionInfo(s),
        this.hostModel = n,
        this._invertedIndicesMap = l,
        this._dimOmitted) {
            var p = this._dimIdxToName = Qe();
            Z(o, function(g) {
                p.set(i[g].storeDimIndex, g)
            })
        }
    }
    return t.prototype.getDimension = function(e) {
        var n = this._recognizeDimIndex(e);
        if (n == null)
            return e;
        if (n = e,
        !this._dimOmitted)
            return this.dimensions[n];
        var r = this._dimIdxToName.get(n);
        if (r != null)
            return r;
        var a = this._schema.getSourceDimension(n);
        if (a)
            return a.name
    }
    ,
    t.prototype.getDimensionIndex = function(e) {
        var n = this._recognizeDimIndex(e);
        if (n != null)
            return n;
        if (e == null)
            return -1;
        var r = this._getDimInfo(e);
        return r ? r.storeDimIndex : this._dimOmitted ? this._schema.getSourceDimensionIndex(e) : -1
    }
    ,
    t.prototype._recognizeDimIndex = function(e) {
        if (rn(e) || e != null && !isNaN(e) && !this._getDimInfo(e) && (!this._dimOmitted || this._schema.getSourceDimensionIndex(e) < 0))
            return +e
    }
    ,
    t.prototype._getStoreDimIndex = function(e) {
        var n = this.getDimensionIndex(e);
        return n
    }
    ,
    t.prototype.getDimensionInfo = function(e) {
        return this._getDimInfo(this.getDimension(e))
    }
    ,
    t.prototype._initGetDimensionInfo = function(e) {
        var n = this._dimInfos;
        this._getDimInfo = e ? function(r) {
            return n.hasOwnProperty(r) ? n[r] : void 0
        }
        : function(r) {
            return n[r]
        }
    }
    ,
    t.prototype.getDimensionsOnCoord = function() {
        return this._dimSummary.dataDimsOnCoord.slice()
    }
    ,
    t.prototype.mapDimension = function(e, n) {
        var r = this._dimSummary;
        if (n == null)
            return r.encodeFirstDimNotExtra[e];
        var a = r.encode[e];
        return a ? a[n] : null
    }
    ,
    t.prototype.mapDimensionsAll = function(e) {
        var n = this._dimSummary
          , r = n.encode[e];
        return (r || []).slice()
    }
    ,
    t.prototype.getStore = function() {
        return this._store
    }
    ,
    t.prototype.initData = function(e, n, r) {
        var a = this, i;
        if (e instanceof $I && (i = e),
        !i) {
            var o = this.dimensions
              , l = f5(e) || Qr(e) ? new joe(e,o.length) : e;
            i = new $I;
            var s = Ns(o, function(u) {
                return {
                    type: a._dimInfos[u].type,
                    property: u
                }
            });
            i.initData(l, s, r)
        }
        this._store = i,
        this._nameList = (n || []).slice(),
        this._idList = [],
        this._nameRepeatCount = {},
        this._doInit(0, i.count()),
        this._dimSummary = UXe(this, this._schema),
        this.userOutput = this._dimSummary.userOutput
    }
    ,
    t.prototype.appendData = function(e) {
        var n = this._store.appendData(e);
        this._doInit(n[0], n[1])
    }
    ,
    t.prototype.appendValues = function(e, n) {
        var r = this._store.appendValues(e, n.length)
          , a = r.start
          , i = r.end
          , o = this._shouldMakeIdFromName();
        if (this._updateOrdinalMeta(),
        n)
            for (var l = a; l < i; l++) {
                var s = l - a;
                this._nameList[l] = n[s],
                o && s4(this, l)
            }
    }
    ,
    t.prototype._updateOrdinalMeta = function() {
        for (var e = this._store, n = this.dimensions, r = 0; r < n.length; r++) {
            var a = this._dimInfos[n[r]];
            a.ordinalMeta && e.collectOrdinalMeta(a.storeDimIndex, a.ordinalMeta)
        }
    }
    ,
    t.prototype._shouldMakeIdFromName = function() {
        var e = this._store.getProvider();
        return this._idDimIdx == null && e.getSource().sourceFormat !== Cu && !e.fillStorage
    }
    ,
    t.prototype._doInit = function(e, n) {
        if (!(e >= n)) {
            var r = this._store
              , a = r.getProvider();
            this._updateOrdinalMeta();
            var i = this._nameList
              , o = this._idList
              , l = a.getSource().sourceFormat
              , s = l === Ki;
            if (s && !a.pure)
                for (var u = [], c = e; c < n; c++) {
                    var f = a.getItem(c, u);
                    if (!this.hasItemOption && xGe(f) && (this.hasItemOption = !0),
                    f) {
                        var d = f.name;
                        i[c] == null && d != null && (i[c] = _r(d, null));
                        var v = f.id;
                        o[c] == null && v != null && (o[c] = _r(v, null))
                    }
                }
            if (this._shouldMakeIdFromName())
                for (var c = e; c < n; c++)
                    s4(this, c);
            rW(this)
        }
    }
    ,
    t.prototype.getApproximateExtent = function(e) {
        return this._approximateExtent[e] || this._store.getDataExtent(this._getStoreDimIndex(e))
    }
    ,
    t.prototype.setApproximateExtent = function(e, n) {
        n = this.getDimension(n),
        this._approximateExtent[n] = e.slice()
    }
    ,
    t.prototype.getCalculationInfo = function(e) {
        return this._calculationInfo[e]
    }
    ,
    t.prototype.setCalculationInfo = function(e, n) {
        _p(e) ? Me(this._calculationInfo, e) : this._calculationInfo[e] = n
    }
    ,
    t.prototype.getName = function(e) {
        var n = this.getRawIndex(e)
          , r = this._nameList[n];
        return r == null && this._nameDimIdx != null && (r = Tp(this, this._nameDimIdx, n)),
        r == null && (r = ""),
        r
    }
    ,
    t.prototype._getCategory = function(e, n) {
        var r = this._store.get(e, n)
          , a = this._store.getOrdinalMeta(e);
        return a ? a.categories[r] : r
    }
    ,
    t.prototype.getId = function(e) {
        return k1(this, this.getRawIndex(e))
    }
    ,
    t.prototype.count = function() {
        return this._store.count()
    }
    ,
    t.prototype.get = function(e, n) {
        var r = this._store
          , a = this._dimInfos[e];
        if (a)
            return r.get(a.storeDimIndex, n)
    }
    ,
    t.prototype.getByRawIndex = function(e, n) {
        var r = this._store
          , a = this._dimInfos[e];
        if (a)
            return r.getByRawIndex(a.storeDimIndex, n)
    }
    ,
    t.prototype.getIndices = function() {
        return this._store.getIndices()
    }
    ,
    t.prototype.getDataExtent = function(e) {
        return this._store.getDataExtent(this._getStoreDimIndex(e))
    }
    ,
    t.prototype.getSum = function(e) {
        return this._store.getSum(this._getStoreDimIndex(e))
    }
    ,
    t.prototype.getMedian = function(e) {
        return this._store.getMedian(this._getStoreDimIndex(e))
    }
    ,
    t.prototype.getValues = function(e, n) {
        var r = this
          , a = this._store;
        return ke(e) ? a.getValues(Ns(e, function(i) {
            return r._getStoreDimIndex(i)
        }), n) : a.getValues(e)
    }
    ,
    t.prototype.hasValue = function(e) {
        for (var n = this._dimSummary.dataDimIndicesOnCoord, r = 0, a = n.length; r < a; r++)
            if (isNaN(this._store.get(n[r], e)))
                return !1;
        return !0
    }
    ,
    t.prototype.indexOfName = function(e) {
        for (var n = 0, r = this._store.count(); n < r; n++)
            if (this.getName(n) === e)
                return n;
        return -1
    }
    ,
    t.prototype.getRawIndex = function(e) {
        return this._store.getRawIndex(e)
    }
    ,
    t.prototype.indexOfRawIndex = function(e) {
        return this._store.indexOfRawIndex(e)
    }
    ,
    t.prototype.rawIndexOf = function(e, n) {
        var r = e && this._invertedIndicesMap[e]
          , a = r[n];
        return a == null || isNaN(a) ? nW : a
    }
    ,
    t.prototype.indicesOfNearest = function(e, n, r) {
        return this._store.indicesOfNearest(this._getStoreDimIndex(e), n, r)
    }
    ,
    t.prototype.each = function(e, n, r) {
        et(e) && (r = n,
        n = e,
        e = []);
        var a = r || this
          , i = Ns(Pp(e), this._getStoreDimIndex, this);
        this._store.each(i, a ? qe(n, a) : n)
    }
    ,
    t.prototype.filterSelf = function(e, n, r) {
        et(e) && (r = n,
        n = e,
        e = []);
        var a = r || this
          , i = Ns(Pp(e), this._getStoreDimIndex, this);
        return this._store = this._store.filter(i, a ? qe(n, a) : n),
        this
    }
    ,
    t.prototype.selectRange = function(e) {
        var n = this
          , r = {}
          , a = Gt(e);
        return Z(a, function(i) {
            var o = n._getStoreDimIndex(i);
            r[o] = e[i]
        }),
        this._store = this._store.selectRange(r),
        this
    }
    ,
    t.prototype.mapArray = function(e, n, r) {
        et(e) && (r = n,
        n = e,
        e = []),
        r = r || this;
        var a = [];
        return this.each(e, function() {
            a.push(n && n.apply(this, arguments))
        }, r),
        a
    }
    ,
    t.prototype.map = function(e, n, r, a) {
        var i = r || a || this
          , o = Ns(Pp(e), this._getStoreDimIndex, this)
          , l = O1(this);
        return l._store = this._store.map(o, i ? qe(n, i) : n),
        l
    }
    ,
    t.prototype.modify = function(e, n, r, a) {
        var i = r || a || this
          , o = Ns(Pp(e), this._getStoreDimIndex, this);
        this._store.modify(o, i ? qe(n, i) : n)
    }
    ,
    t.prototype.downSample = function(e, n, r, a) {
        var i = O1(this);
        return i._store = this._store.downSample(this._getStoreDimIndex(e), n, r, a),
        i
    }
    ,
    t.prototype.lttbDownSample = function(e, n) {
        var r = O1(this);
        return r._store = this._store.lttbDownSample(this._getStoreDimIndex(e), n),
        r
    }
    ,
    t.prototype.getRawDataItem = function(e) {
        return this._store.getRawDataItem(e)
    }
    ,
    t.prototype.getItemModel = function(e) {
        var n = this.hostModel
          , r = this.getRawDataItem(e);
        return new wn(r,n,n && n.ecModel)
    }
    ,
    t.prototype.diff = function(e) {
        var n = this;
        return new fs(e ? e.getStore().getIndices() : [],this.getStore().getIndices(),function(r) {
            return k1(e, r)
        }
        ,function(r) {
            return k1(n, r)
        }
        )
    }
    ,
    t.prototype.getVisual = function(e) {
        var n = this._visual;
        return n && n[e]
    }
    ,
    t.prototype.setVisual = function(e, n) {
        this._visual = this._visual || {},
        _p(e) ? Me(this._visual, e) : this._visual[e] = n
    }
    ,
    t.prototype.getItemVisual = function(e, n) {
        var r = this._itemVisuals[e]
          , a = r && r[n];
        return a == null ? this.getVisual(n) : a
    }
    ,
    t.prototype.hasItemVisual = function() {
        return this._itemVisuals.length > 0
    }
    ,
    t.prototype.ensureUniqueItemVisual = function(e, n) {
        var r = this._itemVisuals
          , a = r[e];
        a || (a = r[e] = {});
        var i = a[n];
        return i == null && (i = this.getVisual(n),
        ke(i) ? i = i.slice() : _p(i) && (i = Me({}, i)),
        a[n] = i),
        i
    }
    ,
    t.prototype.setItemVisual = function(e, n, r) {
        var a = this._itemVisuals[e] || {};
        this._itemVisuals[e] = a,
        _p(n) ? Me(a, n) : a[n] = r
    }
    ,
    t.prototype.clearAllVisual = function() {
        this._visual = {},
        this._itemVisuals = []
    }
    ,
    t.prototype.setLayout = function(e, n) {
        _p(e) ? Me(this._layout, e) : this._layout[e] = n
    }
    ,
    t.prototype.getLayout = function(e) {
        return this._layout[e]
    }
    ,
    t.prototype.getItemLayout = function(e) {
        return this._itemLayouts[e]
    }
    ,
    t.prototype.setItemLayout = function(e, n, r) {
        this._itemLayouts[e] = r ? Me(this._itemLayouts[e] || {}, n) : n
    }
    ,
    t.prototype.clearItemLayouts = function() {
        this._itemLayouts.length = 0
    }
    ,
    t.prototype.setItemGraphicEl = function(e, n) {
        var r = this.hostModel && this.hostModel.seriesIndex;
        _I(r, this.dataType, e, n),
        this._graphicEls[e] = n
    }
    ,
    t.prototype.getItemGraphicEl = function(e) {
        return this._graphicEls[e]
    }
    ,
    t.prototype.eachItemGraphicEl = function(e, n) {
        Z(this._graphicEls, function(r, a) {
            r && e && e.call(n, r, a)
        })
    }
    ,
    t.prototype.cloneShallow = function(e) {
        return e || (e = new t(this._schema ? this._schema : Ns(this.dimensions, this._getDimInfo, this),this.hostModel)),
        l4(e, this),
        e._store = this._store,
        e
    }
    ,
    t.prototype.wrapMethod = function(e, n) {
        var r = this[e];
        !et(r) || (this.__wrappedMethods = this.__wrappedMethods || [],
        this.__wrappedMethods.push(e),
        this[e] = function() {
            var a = r.apply(this, arguments);
            return n.apply(this, [a].concat(Yw(arguments)))
        }
        )
    }
    ,
    t.internalField = function() {
        rW = function(e) {
            var n = e._invertedIndicesMap;
            Z(n, function(r, a) {
                var i = e._dimInfos[a]
                  , o = i.ordinalMeta
                  , l = e._store;
                if (o) {
                    r = n[a] = new QXe(o.categories.length);
                    for (var s = 0; s < r.length; s++)
                        r[s] = nW;
                    for (var s = 0; s < l.count(); s++)
                        r[l.get(i.storeDimIndex, s)] = s
                }
            })
        }
        ,
        Tp = function(e, n, r) {
            return _r(e._getCategory(n, r), null)
        }
        ,
        k1 = function(e, n) {
            var r = e._idList[n];
            return r == null && e._idDimIdx != null && (r = Tp(e, e._idDimIdx, n)),
            r == null && (r = JXe + n),
            r
        }
        ,
        Pp = function(e) {
            return ke(e) || (e = e != null ? [e] : []),
            e
        }
        ,
        O1 = function(e) {
            var n = new t(e._schema ? e._schema : Ns(e.dimensions, e._getDimInfo, e),e.hostModel);
            return l4(n, e),
            n
        }
        ,
        l4 = function(e, n) {
            Z(eZe.concat(n.__wrappedMethods || []), function(r) {
                n.hasOwnProperty(r) && (e[r] = n[r])
            }),
            e.__wrappedMethods = n.__wrappedMethods,
            Z(tZe, function(r) {
                e[r] = ut(n[r])
            }),
            e._calculationInfo = Me({}, n._calculationInfo)
        }
        ,
        s4 = function(e, n) {
            var r = e._nameList
              , a = e._idList
              , i = e._nameDimIdx
              , o = e._idDimIdx
              , l = r[n]
              , s = a[n];
            if (l == null && i != null && (r[n] = l = Tp(e, i, n)),
            s == null && o != null && (a[n] = s = Tp(e, o, n)),
            s == null && l != null) {
                var u = e._nameRepeatCount
                  , c = u[l] = (u[l] || 0) + 1;
                s = l,
                c > 1 && (s += "__ec__" + c),
                a[n] = s
            }
        }
    }(),
    t
}();
const oa = nZe;
function rZe(t, e) {
    return Vh(t, e).dimensions
}
function Vh(t, e) {
    f5(t) || (t = d5(t)),
    e = e || {};
    var n = e.coordDimensions || []
      , r = e.dimensionsDefine || t.dimensionsDefine || []
      , a = Qe()
      , i = []
      , o = iZe(t, n, r, e.dimensionsCount)
      , l = e.canOmitUnusedDimensions && Ule(o)
      , s = r === t.dimensionsDefine
      , u = s ? Kle(t) : Gle(r)
      , c = e.encodeDefine;
    !c && e.encodeDefaulter && (c = e.encodeDefaulter(t, o));
    for (var f = Qe(c), d = new Zoe(o), v = 0; v < d.length; v++)
        d[v] = -1;
    function h(P) {
        var M = d[P];
        if (M < 0) {
            var A = r[P]
              , O = st(A) ? A : {
                name: A
            }
              , k = new dx
              , D = O.name;
            D != null && u.get(D) != null && (k.name = k.displayName = D),
            O.type != null && (k.type = O.type),
            O.displayName != null && (k.displayName = O.displayName);
            var E = i.length;
            return d[P] = E,
            k.storeDimIndex = P,
            i.push(k),
            k
        }
        return i[M]
    }
    if (!l)
        for (var v = 0; v < o; v++)
            h(v);
    f.each(function(P, M) {
        var A = _n(P).slice();
        if (A.length === 1 && !Ge(A[0]) && A[0] < 0) {
            f.set(M, !1);
            return
        }
        var O = f.set(M, []);
        Z(A, function(k, D) {
            var E = Ge(k) ? u.get(k) : k;
            E != null && E < o && (O[D] = E,
            g(h(E), M, D))
        })
    });
    var p = 0;
    Z(n, function(P) {
        var M, A, O, k;
        if (Ge(P))
            M = P,
            k = {};
        else {
            k = P,
            M = k.name;
            var D = k.ordinalMeta;
            k.ordinalMeta = null,
            k = Me({}, k),
            k.ordinalMeta = D,
            A = k.dimsDef,
            O = k.otherDims,
            k.name = k.coordDim = k.coordDimIndex = k.dimsDef = k.otherDims = null
        }
        var E = f.get(M);
        if (E !== !1) {
            if (E = _n(E),
            !E.length)
                for (var L = 0; L < (A && A.length || 1); L++) {
                    for (; p < o && h(p).coordDim != null; )
                        p++;
                    p < o && E.push(p++)
                }
            Z(E, function(N, R) {
                var $ = h(N);
                if (s && k.type != null && ($.type = k.type),
                g(ot($, k), M, R),
                $.name == null && A) {
                    var W = A[R];
                    !st(W) && (W = {
                        name: W
                    }),
                    $.name = $.displayName = W.name,
                    $.defaultTooltip = W.defaultTooltip
                }
                O && ot($.otherDims, O)
            })
        }
    });
    function g(P, M, A) {
        Ioe.get(M) != null ? P.otherDims[M] = A : (P.coordDim = M,
        P.coordDimIndex = A,
        a.set(M, !0))
    }
    var m = e.generateCoord
      , y = e.generateCoordCount
      , b = y != null;
    y = m ? y || 1 : 0;
    var x = m || "value";
    function C(P) {
        P.name == null && (P.name = P.coordDim)
    }
    if (l)
        Z(i, function(P) {
            C(P)
        }),
        i.sort(function(P, M) {
            return P.storeDimIndex - M.storeDimIndex
        });
    else
        for (var S = 0; S < o; S++) {
            var w = h(S)
              , T = w.coordDim;
            T == null && (w.coordDim = oZe(x, a, b),
            w.coordDimIndex = 0,
            (!m || y <= 0) && (w.isExtraCoord = !0),
            y--),
            C(w),
            w.type == null && (Eoe(t, S) === Ur.Must || w.isExtraCoord && (w.otherDims.itemName != null || w.otherDims.seriesName != null)) && (w.type = "ordinal")
        }
    return aZe(i),
    new jle({
        source: t,
        dimensions: i,
        fullDimensionCount: o,
        dimensionOmitted: l
    })
}
function aZe(t) {
    for (var e = Qe(), n = 0; n < t.length; n++) {
        var r = t[n]
          , a = r.name
          , i = e.get(a) || 0;
        i > 0 && (r.name = a + (i - 1)),
        i++,
        e.set(a, i)
    }
}
function iZe(t, e, n, r) {
    var a = Math.max(t.dimensionsDetectedCount || 1, e.length, n.length, r || 0);
    return Z(e, function(i) {
        var o;
        st(i) && (o = i.dimsDef) && (a = Math.max(a, o.length))
    }),
    a
}
function oZe(t, e, n) {
    if (n || e.hasKey(t)) {
        for (var r = 0; e.hasKey(t + r); )
            r++;
        t += r
    }
    return e.set(t, !0),
    t
}
var lZe = function() {
    function t(e) {
        this.coordSysDims = [],
        this.axisMap = Qe(),
        this.categoryAxisMap = Qe(),
        this.coordSysName = e
    }
    return t
}();
function sZe(t) {
    var e = t.get("coordinateSystem")
      , n = new lZe(e)
      , r = uZe[e];
    if (r)
        return r(t, n, n.axisMap, n.categoryAxisMap),
        n
}
var uZe = {
    cartesian2d: function(t, e, n, r) {
        var a = t.getReferringComponents("xAxis", mr).models[0]
          , i = t.getReferringComponents("yAxis", mr).models[0];
        e.coordSysDims = ["x", "y"],
        n.set("x", a),
        n.set("y", i),
        Id(a) && (r.set("x", a),
        e.firstCategoryDimIndex = 0),
        Id(i) && (r.set("y", i),
        e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = 1))
    },
    singleAxis: function(t, e, n, r) {
        var a = t.getReferringComponents("singleAxis", mr).models[0];
        e.coordSysDims = ["single"],
        n.set("single", a),
        Id(a) && (r.set("single", a),
        e.firstCategoryDimIndex = 0)
    },
    polar: function(t, e, n, r) {
        var a = t.getReferringComponents("polar", mr).models[0]
          , i = a.findAxisModel("radiusAxis")
          , o = a.findAxisModel("angleAxis");
        e.coordSysDims = ["radius", "angle"],
        n.set("radius", i),
        n.set("angle", o),
        Id(i) && (r.set("radius", i),
        e.firstCategoryDimIndex = 0),
        Id(o) && (r.set("angle", o),
        e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = 1))
    },
    geo: function(t, e, n, r) {
        e.coordSysDims = ["lng", "lat"]
    },
    parallel: function(t, e, n, r) {
        var a = t.ecModel
          , i = a.getComponent("parallel", t.get("parallelIndex"))
          , o = e.coordSysDims = i.dimensions.slice();
        Z(i.parallelAxisIndex, function(l, s) {
            var u = a.getComponent("parallelAxis", l)
              , c = o[s];
            n.set(c, u),
            Id(u) && (r.set(c, u),
            e.firstCategoryDimIndex == null && (e.firstCategoryDimIndex = s))
        })
    }
};
function Id(t) {
    return t.get("type") === "category"
}
function Yle(t, e, n) {
    n = n || {};
    var r = n.byIndex, a = n.stackedCoordDimension, i, o, l;
    cZe(e) ? i = e : (o = e.schema,
    i = o.dimensions,
    l = e.store);
    var s = !!(t && t.get("stack")), u, c, f, d;
    if (Z(i, function(y, b) {
        Ge(y) && (i[b] = y = {
            name: y
        }),
        s && !y.isExtraCoord && (!r && !u && y.ordinalMeta && (u = y),
        !c && y.type !== "ordinal" && y.type !== "time" && (!a || a === y.coordDim) && (c = y))
    }),
    c && !r && !u && (r = !0),
    c) {
        f = "__\0ecstackresult_" + t.id,
        d = "__\0ecstackedover_" + t.id,
        u && (u.createInvertedIndices = !0);
        var v = c.coordDim
          , h = c.type
          , p = 0;
        Z(i, function(y) {
            y.coordDim === v && p++
        });
        var g = {
            name: f,
            coordDim: v,
            coordDimIndex: p,
            type: h,
            isExtraCoord: !0,
            isCalculationCoord: !0,
            storeDimIndex: i.length
        }
          , m = {
            name: d,
            coordDim: d,
            coordDimIndex: p + 1,
            type: h,
            isExtraCoord: !0,
            isCalculationCoord: !0,
            storeDimIndex: i.length + 1
        };
        o ? (l && (g.storeDimIndex = l.ensureCalculationDimension(d, h),
        m.storeDimIndex = l.ensureCalculationDimension(f, h)),
        o.appendCalculationDimension(g),
        o.appendCalculationDimension(m)) : (i.push(g),
        i.push(m))
    }
    return {
        stackedDimension: c && c.name,
        stackedByDimension: u && u.name,
        isStackedByIndex: r,
        stackedOverDimension: d,
        stackResultDimension: f
    }
}
function cZe(t) {
    return !Wle(t.schema)
}
function ds(t, e) {
    return !!e && e === t.getCalculationInfo("stackedDimension")
}
function k5(t, e) {
    return ds(t, e) ? t.getCalculationInfo("stackResultDimension") : e
}
function fZe(t, e) {
    var n = t.get("coordinateSystem"), r = Nh.get(n), a;
    return e && e.coordSysDims && (a = Le(e.coordSysDims, function(i) {
        var o = {
            name: i
        }
          , l = e.axisMap.get(i);
        if (l) {
            var s = l.get("type");
            o.type = GS(s)
        }
        return o
    })),
    a || (a = r && (r.getDimensionsInfo ? r.getDimensionsInfo() : r.dimensions.slice()) || ["x", "y"]),
    a
}
function dZe(t, e, n) {
    var r, a;
    return n && Z(t, function(i, o) {
        var l = i.coordDim
          , s = n.categoryAxisMap.get(l);
        s && (r == null && (r = o),
        i.ordinalMeta = s.getOrdinalMeta(),
        e && (i.createInvertedIndices = !0)),
        i.otherDims.itemName != null && (a = !0)
    }),
    !a && r != null && (t[r].otherDims.itemName = 0),
    r
}
function Pl(t, e, n) {
    n = n || {};
    var r = e.getSourceManager(), a, i = !1;
    t ? (i = !0,
    a = d5(t)) : (a = r.getSource(),
    i = a.sourceFormat === Ki);
    var o = sZe(e)
      , l = fZe(e, o)
      , s = n.useEncodeDefaulter
      , u = et(s) ? s : s ? St(Doe, l, e) : null
      , c = {
        coordDimensions: l,
        generateCoord: n.generateCoord,
        encodeDefine: e.getEncode(),
        encodeDefaulter: u,
        canOmitUnusedDimensions: !i
    }
      , f = Vh(a, c)
      , d = dZe(f.dimensions, n.createInvertedIndices, o)
      , v = i ? null : r.getSharedDataStore(f)
      , h = Yle(e, {
        schema: f,
        store: v
    })
      , p = new oa(f,e);
    p.setCalculationInfo(h);
    var g = d != null && vZe(a) ? function(m, y, b, x) {
        return x === d ? b : this.defaultDimValueGetter(m, y, b, x)
    }
    : null;
    return p.hasItemOption = !1,
    p.initData(i ? a : v, null, g),
    p
}
function vZe(t) {
    if (t.sourceFormat === Ki) {
        var e = hZe(t.data || []);
        return !ke(Th(e))
    }
}
function hZe(t) {
    for (var e = 0; e < t.length && t[e] == null; )
        e++;
    return t[e]
}
var qle = function() {
    function t(e) {
        this._setting = e || {},
        this._extent = [1 / 0, -1 / 0]
    }
    return t.prototype.getSetting = function(e) {
        return this._setting[e]
    }
    ,
    t.prototype.unionExtent = function(e) {
        var n = this._extent;
        e[0] < n[0] && (n[0] = e[0]),
        e[1] > n[1] && (n[1] = e[1])
    }
    ,
    t.prototype.unionExtentFromData = function(e, n) {
        this.unionExtent(e.getApproximateExtent(n))
    }
    ,
    t.prototype.getExtent = function() {
        return this._extent.slice()
    }
    ,
    t.prototype.setExtent = function(e, n) {
        var r = this._extent;
        isNaN(e) || (r[0] = e),
        isNaN(n) || (r[1] = n)
    }
    ,
    t.prototype.isInExtentRange = function(e) {
        return this._extent[0] <= e && this._extent[1] >= e
    }
    ,
    t.prototype.isBlank = function() {
        return this._isBlank
    }
    ,
    t.prototype.setBlank = function(e) {
        this._isBlank = e
    }
    ,
    t
}();
t2(qle);
const Cs = qle;
var pZe = 0
  , gZe = function() {
    function t(e) {
        this.categories = e.categories || [],
        this._needCollect = e.needCollect,
        this._deduplication = e.deduplication,
        this.uid = ++pZe
    }
    return t.createByAxisModel = function(e) {
        var n = e.option
          , r = n.data
          , a = r && Le(r, mZe);
        return new t({
            categories: a,
            needCollect: !a,
            deduplication: n.dedplication !== !1
        })
    }
    ,
    t.prototype.getOrdinal = function(e) {
        return this._getOrCreateMap().get(e)
    }
    ,
    t.prototype.parseAndCollect = function(e) {
        var n, r = this._needCollect;
        if (!Ge(e) && !r)
            return e;
        if (r && !this._deduplication)
            return n = this.categories.length,
            this.categories[n] = e,
            n;
        var a = this._getOrCreateMap();
        return n = a.get(e),
        n == null && (r ? (n = this.categories.length,
        this.categories[n] = e,
        a.set(e, n)) : n = NaN),
        n
    }
    ,
    t.prototype._getOrCreateMap = function() {
        return this._map || (this._map = Qe(this.categories))
    }
    ,
    t
}();
function mZe(t) {
    return st(t) && t.value != null ? t.value : t + ""
}
const UI = gZe;
function YI(t) {
    return t.type === "interval" || t.type === "log"
}
function yZe(t, e, n, r) {
    var a = {}
      , i = t[1] - t[0]
      , o = a.interval = R6(i / e, !0);
    n != null && o < n && (o = a.interval = n),
    r != null && o > r && (o = a.interval = r);
    var l = a.intervalPrecision = Xle(o)
      , s = a.niceTickExtent = [Zn(Math.ceil(t[0] / o) * o, l), Zn(Math.floor(t[1] / o) * o, l)];
    return bZe(s, t),
    a
}
function u4(t) {
    var e = Math.pow(10, e2(t))
      , n = t / e;
    return n ? n === 2 ? n = 3 : n === 3 ? n = 5 : n *= 2 : n = 1,
    Zn(n * e)
}
function Xle(t) {
    return so(t) + 2
}
function aW(t, e, n) {
    t[e] = Math.max(Math.min(t[e], n[1]), n[0])
}
function bZe(t, e) {
    !isFinite(t[0]) && (t[0] = e[0]),
    !isFinite(t[1]) && (t[1] = e[1]),
    aW(t, 0, e),
    aW(t, 1, e),
    t[0] > t[1] && (t[0] = t[1])
}
function _2(t, e) {
    return t >= e[0] && t <= e[1]
}
function T2(t, e) {
    return e[1] === e[0] ? .5 : (t - e[0]) / (e[1] - e[0])
}
function P2(t, e) {
    return t * (e[1] - e[0]) + e[0]
}
var Zle = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        r.type = "ordinal";
        var a = r.getSetting("ordinalMeta");
        return a || (a = new UI({})),
        ke(a) && (a = new UI({
            categories: Le(a, function(i) {
                return st(i) ? i.value : i
            })
        })),
        r._ordinalMeta = a,
        r._extent = r.getSetting("extent") || [0, a.categories.length - 1],
        r
    }
    return e.prototype.parse = function(n) {
        return n == null ? NaN : Ge(n) ? this._ordinalMeta.getOrdinal(n) : Math.round(n)
    }
    ,
    e.prototype.contain = function(n) {
        return n = this.parse(n),
        _2(n, this._extent) && this._ordinalMeta.categories[n] != null
    }
    ,
    e.prototype.normalize = function(n) {
        return n = this._getTickNumber(this.parse(n)),
        T2(n, this._extent)
    }
    ,
    e.prototype.scale = function(n) {
        return n = Math.round(P2(n, this._extent)),
        this.getRawOrdinalNumber(n)
    }
    ,
    e.prototype.getTicks = function() {
        for (var n = [], r = this._extent, a = r[0]; a <= r[1]; )
            n.push({
                value: a
            }),
            a++;
        return n
    }
    ,
    e.prototype.getMinorTicks = function(n) {}
    ,
    e.prototype.setSortInfo = function(n) {
        if (n == null) {
            this._ordinalNumbersByTick = this._ticksByOrdinalNumber = null;
            return
        }
        for (var r = n.ordinalNumbers, a = this._ordinalNumbersByTick = [], i = this._ticksByOrdinalNumber = [], o = 0, l = this._ordinalMeta.categories.length, s = Math.min(l, r.length); o < s; ++o) {
            var u = r[o];
            a[o] = u,
            i[u] = o
        }
        for (var c = 0; o < l; ++o) {
            for (; i[c] != null; )
                c++;
            a.push(c),
            i[c] = o
        }
    }
    ,
    e.prototype._getTickNumber = function(n) {
        var r = this._ticksByOrdinalNumber;
        return r && n >= 0 && n < r.length ? r[n] : n
    }
    ,
    e.prototype.getRawOrdinalNumber = function(n) {
        var r = this._ordinalNumbersByTick;
        return r && n >= 0 && n < r.length ? r[n] : n
    }
    ,
    e.prototype.getLabel = function(n) {
        if (!this.isBlank()) {
            var r = this.getRawOrdinalNumber(n.value)
              , a = this._ordinalMeta.categories[r];
            return a == null ? "" : a + ""
        }
    }
    ,
    e.prototype.count = function() {
        return this._extent[1] - this._extent[0] + 1
    }
    ,
    e.prototype.unionExtentFromData = function(n, r) {
        this.unionExtent(n.getApproximateExtent(r))
    }
    ,
    e.prototype.isInExtentRange = function(n) {
        return n = this._getTickNumber(n),
        this._extent[0] <= n && this._extent[1] >= n
    }
    ,
    e.prototype.getOrdinalMeta = function() {
        return this._ordinalMeta
    }
    ,
    e.prototype.calcNiceTicks = function() {}
    ,
    e.prototype.calcNiceExtent = function() {}
    ,
    e.type = "ordinal",
    e
}(Cs);
Cs.registerClass(Zle);
const O5 = Zle;
var Tc = Zn
  , Qle = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = "interval",
        n._interval = 0,
        n._intervalPrecision = 2,
        n
    }
    return e.prototype.parse = function(n) {
        return n
    }
    ,
    e.prototype.contain = function(n) {
        return _2(n, this._extent)
    }
    ,
    e.prototype.normalize = function(n) {
        return T2(n, this._extent)
    }
    ,
    e.prototype.scale = function(n) {
        return P2(n, this._extent)
    }
    ,
    e.prototype.setExtent = function(n, r) {
        var a = this._extent;
        isNaN(n) || (a[0] = parseFloat(n)),
        isNaN(r) || (a[1] = parseFloat(r))
    }
    ,
    e.prototype.unionExtent = function(n) {
        var r = this._extent;
        n[0] < r[0] && (r[0] = n[0]),
        n[1] > r[1] && (r[1] = n[1]),
        this.setExtent(r[0], r[1])
    }
    ,
    e.prototype.getInterval = function() {
        return this._interval
    }
    ,
    e.prototype.setInterval = function(n) {
        this._interval = n,
        this._niceExtent = this._extent.slice(),
        this._intervalPrecision = Xle(n)
    }
    ,
    e.prototype.getTicks = function(n) {
        var r = this._interval
          , a = this._extent
          , i = this._niceExtent
          , o = this._intervalPrecision
          , l = [];
        if (!r)
            return l;
        var s = 1e4;
        a[0] < i[0] && (n ? l.push({
            value: Tc(i[0] - r, o)
        }) : l.push({
            value: a[0]
        }));
        for (var u = i[0]; u <= i[1] && (l.push({
            value: u
        }),
        u = Tc(u + r, o),
        u !== l[l.length - 1].value); )
            if (l.length > s)
                return [];
        var c = l.length ? l[l.length - 1].value : i[1];
        return a[1] > c && (n ? l.push({
            value: Tc(c + r, o)
        }) : l.push({
            value: a[1]
        })),
        l
    }
    ,
    e.prototype.getMinorTicks = function(n) {
        for (var r = this.getTicks(!0), a = [], i = this.getExtent(), o = 1; o < r.length; o++) {
            for (var l = r[o], s = r[o - 1], u = 0, c = [], f = l.value - s.value, d = f / n; u < n - 1; ) {
                var v = Tc(s.value + (u + 1) * d);
                v > i[0] && v < i[1] && c.push(v),
                u++
            }
            a.push(c)
        }
        return a
    }
    ,
    e.prototype.getLabel = function(n, r) {
        if (n == null)
            return "";
        var a = r && r.precision;
        a == null ? a = so(n.value) || 0 : a === "auto" && (a = this._intervalPrecision);
        var i = Tc(n.value, a, !0);
        return a5(i)
    }
    ,
    e.prototype.calcNiceTicks = function(n, r, a) {
        n = n || 5;
        var i = this._extent
          , o = i[1] - i[0];
        if (!!isFinite(o)) {
            o < 0 && (o = -o,
            i.reverse());
            var l = yZe(i, n, r, a);
            this._intervalPrecision = l.intervalPrecision,
            this._interval = l.interval,
            this._niceExtent = l.niceTickExtent
        }
    }
    ,
    e.prototype.calcNiceExtent = function(n) {
        var r = this._extent;
        if (r[0] === r[1])
            if (r[0] !== 0) {
                var a = Math.abs(r[0]);
                n.fixMax || (r[1] += a / 2),
                r[0] -= a / 2
            } else
                r[1] = 1;
        var i = r[1] - r[0];
        isFinite(i) || (r[0] = 0,
        r[1] = 1),
        this.calcNiceTicks(n.splitNumber, n.minInterval, n.maxInterval);
        var o = this._interval;
        n.fixMin || (r[0] = Tc(Math.floor(r[0] / o) * o)),
        n.fixMax || (r[1] = Tc(Math.ceil(r[1] / o) * o))
    }
    ,
    e.prototype.setNiceExtent = function(n, r) {
        this._niceExtent = [n, r]
    }
    ,
    e.type = "interval",
    e
}(Cs);
Cs.registerClass(Qle);
const Lu = Qle;
var Jle = typeof Float32Array != "undefined"
  , xZe = Jle ? Float32Array : Array;
function il(t) {
    return ke(t) ? Jle ? new Float32Array(t) : t : new xZe(t)
}
var qI = "__ec_stack_";
function D5(t) {
    return t.get("stack") || qI + t.seriesIndex
}
function E5(t) {
    return t.dim + t.index
}
function SZe(t) {
    var e = []
      , n = t.axis
      , r = "axis0";
    if (n.type === "category") {
        for (var a = n.getBandWidth(), i = 0; i < t.count; i++)
            e.push(ot({
                bandWidth: a,
                axisKey: r,
                stackId: qI + i
            }, t));
        for (var o = nse(e), l = [], i = 0; i < t.count; i++) {
            var s = o[r][qI + i];
            s.offsetCenter = s.offset + s.width / 2,
            l.push(s)
        }
        return l
    }
}
function ese(t, e) {
    var n = [];
    return e.eachSeriesByType(t, function(r) {
        ise(r) && n.push(r)
    }),
    n
}
function CZe(t) {
    var e = {};
    Z(t, function(s) {
        var u = s.coordinateSystem
          , c = u.getBaseAxis();
        if (!(c.type !== "time" && c.type !== "value"))
            for (var f = s.getData(), d = c.dim + "_" + c.index, v = f.getDimensionIndex(f.mapDimension(c.dim)), h = f.getStore(), p = 0, g = h.count(); p < g; ++p) {
                var m = h.get(v, p);
                e[d] ? e[d].push(m) : e[d] = [m]
            }
    });
    var n = {};
    for (var r in e)
        if (e.hasOwnProperty(r)) {
            var a = e[r];
            if (a) {
                a.sort(function(s, u) {
                    return s - u
                });
                for (var i = null, o = 1; o < a.length; ++o) {
                    var l = a[o] - a[o - 1];
                    l > 0 && (i = i === null ? l : Math.min(i, l))
                }
                n[r] = i
            }
        }
    return n
}
function tse(t) {
    var e = CZe(t)
      , n = [];
    return Z(t, function(r) {
        var a = r.coordinateSystem, i = a.getBaseAxis(), o = i.getExtent(), l;
        if (i.type === "category")
            l = i.getBandWidth();
        else if (i.type === "value" || i.type === "time") {
            var s = i.dim + "_" + i.index
              , u = e[s]
              , c = Math.abs(o[1] - o[0])
              , f = i.scale.getExtent()
              , d = Math.abs(f[1] - f[0]);
            l = u ? c / d * u : c
        } else {
            var v = r.getData();
            l = Math.abs(o[1] - o[0]) / v.count()
        }
        var h = He(r.get("barWidth"), l)
          , p = He(r.get("barMaxWidth"), l)
          , g = He(r.get("barMinWidth") || (ose(r) ? .5 : 1), l)
          , m = r.get("barGap")
          , y = r.get("barCategoryGap");
        n.push({
            bandWidth: l,
            barWidth: h,
            barMaxWidth: p,
            barMinWidth: g,
            barGap: m,
            barCategoryGap: y,
            axisKey: E5(i),
            stackId: D5(r)
        })
    }),
    nse(n)
}
function nse(t) {
    var e = {};
    Z(t, function(r, a) {
        var i = r.axisKey
          , o = r.bandWidth
          , l = e[i] || {
            bandWidth: o,
            remainedWidth: o,
            autoWidthCount: 0,
            categoryGap: null,
            gap: "20%",
            stacks: {}
        }
          , s = l.stacks;
        e[i] = l;
        var u = r.stackId;
        s[u] || l.autoWidthCount++,
        s[u] = s[u] || {
            width: 0,
            maxWidth: 0
        };
        var c = r.barWidth;
        c && !s[u].width && (s[u].width = c,
        c = Math.min(l.remainedWidth, c),
        l.remainedWidth -= c);
        var f = r.barMaxWidth;
        f && (s[u].maxWidth = f);
        var d = r.barMinWidth;
        d && (s[u].minWidth = d);
        var v = r.barGap;
        v != null && (l.gap = v);
        var h = r.barCategoryGap;
        h != null && (l.categoryGap = h)
    });
    var n = {};
    return Z(e, function(r, a) {
        n[a] = {};
        var i = r.stacks
          , o = r.bandWidth
          , l = r.categoryGap;
        if (l == null) {
            var s = Gt(i).length;
            l = Math.max(35 - s * 4, 15) + "%"
        }
        var u = He(l, o)
          , c = He(r.gap, 1)
          , f = r.remainedWidth
          , d = r.autoWidthCount
          , v = (f - u) / (d + (d - 1) * c);
        v = Math.max(v, 0),
        Z(i, function(m) {
            var y = m.maxWidth
              , b = m.minWidth;
            if (m.width) {
                var x = m.width;
                y && (x = Math.min(x, y)),
                b && (x = Math.max(x, b)),
                m.width = x,
                f -= x + c * x,
                d--
            } else {
                var x = v;
                y && y < x && (x = Math.min(y, f)),
                b && b > x && (x = b),
                x !== v && (m.width = x,
                f -= x + c * x,
                d--)
            }
        }),
        v = (f - u) / (d + (d - 1) * c),
        v = Math.max(v, 0);
        var h = 0, p;
        Z(i, function(m, y) {
            m.width || (m.width = v),
            p = m,
            h += m.width * (1 + c)
        }),
        p && (h -= p.width * c);
        var g = -h / 2;
        Z(i, function(m, y) {
            n[a][y] = n[a][y] || {
                bandWidth: o,
                offset: g,
                width: m.width
            },
            g += m.width * (1 + c)
        })
    }),
    n
}
function wZe(t, e, n) {
    if (t && e) {
        var r = t[E5(e)];
        return r != null && n != null ? r[D5(n)] : r
    }
}
function rse(t, e) {
    var n = ese(t, e)
      , r = tse(n);
    Z(n, function(a) {
        var i = a.getData()
          , o = a.coordinateSystem
          , l = o.getBaseAxis()
          , s = D5(a)
          , u = r[E5(l)][s]
          , c = u.offset
          , f = u.width;
        i.setLayout({
            bandWidth: u.bandWidth,
            offset: c,
            size: f
        })
    })
}
function ase(t) {
    return {
        seriesType: t,
        plan: $h(),
        reset: function(e) {
            if (!!ise(e)) {
                var n = e.getData()
                  , r = e.coordinateSystem
                  , a = r.getBaseAxis()
                  , i = r.getOtherAxis(a)
                  , o = n.getDimensionIndex(n.mapDimension(i.dim))
                  , l = n.getDimensionIndex(n.mapDimension(a.dim))
                  , s = e.get("showBackground", !0)
                  , u = n.mapDimension(i.dim)
                  , c = n.getCalculationInfo("stackResultDimension")
                  , f = ds(n, u) && !!n.getCalculationInfo("stackedOnSeries")
                  , d = i.isHorizontal()
                  , v = _Ze(a, i)
                  , h = ose(e)
                  , p = e.get("barMinHeight") || 0
                  , g = c && n.getDimensionIndex(c)
                  , m = n.getLayout("size")
                  , y = n.getLayout("offset");
                return {
                    progress: function(b, x) {
                        for (var C = b.count, S = h && il(C * 3), w = h && s && il(C * 3), T = h && il(C), P = r.master.getRect(), M = d ? P.width : P.height, A, O = x.getStore(), k = 0; (A = b.next()) != null; ) {
                            var D = O.get(f ? g : o, A)
                              , E = O.get(l, A)
                              , L = v
                              , N = void 0;
                            f && (N = +D - O.get(o, A));
                            var R = void 0
                              , $ = void 0
                              , W = void 0
                              , B = void 0;
                            if (d) {
                                var G = r.dataToPoint([D, E]);
                                if (f) {
                                    var K = r.dataToPoint([N, E]);
                                    L = K[0]
                                }
                                R = L,
                                $ = G[1] + y,
                                W = G[0] - L,
                                B = m,
                                Math.abs(W) < p && (W = (W < 0 ? -1 : 1) * p)
                            } else {
                                var G = r.dataToPoint([E, D]);
                                if (f) {
                                    var K = r.dataToPoint([E, N]);
                                    L = K[1]
                                }
                                R = G[0] + y,
                                $ = L,
                                W = m,
                                B = G[1] - L,
                                Math.abs(B) < p && (B = (B <= 0 ? -1 : 1) * p)
                            }
                            h ? (S[k] = R,
                            S[k + 1] = $,
                            S[k + 2] = d ? W : B,
                            w && (w[k] = d ? P.x : R,
                            w[k + 1] = d ? $ : P.y,
                            w[k + 2] = M),
                            T[A] = A) : x.setItemLayout(A, {
                                x: R,
                                y: $,
                                width: W,
                                height: B
                            }),
                            k += 3
                        }
                        h && x.setLayout({
                            largePoints: S,
                            largeDataIndices: T,
                            largeBackgroundPoints: w,
                            valueAxisHorizontal: d
                        })
                    }
                }
            }
        }
    }
}
function ise(t) {
    return t.coordinateSystem && t.coordinateSystem.type === "cartesian2d"
}
function ose(t) {
    return t.pipelineContext && t.pipelineContext.large
}
function _Ze(t, e) {
    return e.toGlobalCoord(e.dataToCoord(e.type === "log" ? 1 : 0))
}
var TZe = function(t, e, n, r) {
    for (; n < r; ) {
        var a = n + r >>> 1;
        t[a][1] < e ? n = a + 1 : r = a
    }
    return n
}
  , lse = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r.type = "time",
        r
    }
    return e.prototype.getLabel = function(n) {
        var r = this.getSetting("useUTC");
        return ey(n.value, qH[GUe(wv(this._minLevelUnit))] || qH.second, r, this.getSetting("locale"))
    }
    ,
    e.prototype.getFormattedLabel = function(n, r, a) {
        var i = this.getSetting("useUTC")
          , o = this.getSetting("locale");
        return KUe(n, r, a, o, i)
    }
    ,
    e.prototype.getTicks = function() {
        var n = this._interval
          , r = this._extent
          , a = [];
        if (!n)
            return a;
        a.push({
            value: r[0],
            level: 0
        });
        var i = this.getSetting("useUTC")
          , o = DZe(this._minLevelUnit, this._approxInterval, i, r);
        return a = a.concat(o),
        a.push({
            value: r[1],
            level: 0
        }),
        a
    }
    ,
    e.prototype.calcNiceExtent = function(n) {
        var r = this._extent;
        if (r[0] === r[1] && (r[0] -= Oi,
        r[1] += Oi),
        r[1] === -1 / 0 && r[0] === 1 / 0) {
            var a = new Date;
            r[1] = +new Date(a.getFullYear(),a.getMonth(),a.getDate()),
            r[0] = r[1] - Oi
        }
        this.calcNiceTicks(n.splitNumber, n.minInterval, n.maxInterval)
    }
    ,
    e.prototype.calcNiceTicks = function(n, r, a) {
        n = n || 10;
        var i = this._extent
          , o = i[1] - i[0];
        this._approxInterval = o / n,
        r != null && this._approxInterval < r && (this._approxInterval = r),
        a != null && this._approxInterval > a && (this._approxInterval = a);
        var l = D1.length
          , s = Math.min(TZe(D1, this._approxInterval, 0, l), l - 1);
        this._interval = D1[s][1],
        this._minLevelUnit = D1[Math.max(s - 1, 0)][0]
    }
    ,
    e.prototype.parse = function(n) {
        return rn(n) ? n : +ui(n)
    }
    ,
    e.prototype.contain = function(n) {
        return _2(this.parse(n), this._extent)
    }
    ,
    e.prototype.normalize = function(n) {
        return T2(this.parse(n), this._extent)
    }
    ,
    e.prototype.scale = function(n) {
        return P2(n, this._extent)
    }
    ,
    e.type = "time",
    e
}(Lu)
  , D1 = [["second", t5], ["minute", n5], ["hour", Hg], ["quarter-day", Hg * 6], ["half-day", Hg * 12], ["day", Oi * 1.2], ["half-week", Oi * 3.5], ["week", Oi * 7], ["month", Oi * 31], ["quarter", Oi * 95], ["half-year", YH / 2], ["year", YH]];
function PZe(t, e, n, r) {
    var a = ui(e)
      , i = ui(n)
      , o = function(h) {
        return XH(a, h, r) === XH(i, h, r)
    }
      , l = function() {
        return o("year")
    }
      , s = function() {
        return l() && o("month")
    }
      , u = function() {
        return s() && o("day")
    }
      , c = function() {
        return u() && o("hour")
    }
      , f = function() {
        return c() && o("minute")
    }
      , d = function() {
        return f() && o("second")
    }
      , v = function() {
        return d() && o("millisecond")
    };
    switch (t) {
    case "year":
        return l();
    case "month":
        return s();
    case "day":
        return u();
    case "hour":
        return c();
    case "minute":
        return f();
    case "second":
        return d();
    case "millisecond":
        return v()
    }
}
function MZe(t, e) {
    return t /= Oi,
    t > 16 ? 16 : t > 7.5 ? 7 : t > 3.5 ? 4 : t > 1.5 ? 2 : 1
}
function AZe(t) {
    var e = 30 * Oi;
    return t /= e,
    t > 6 ? 6 : t > 3 ? 3 : t > 2 ? 2 : 1
}
function IZe(t) {
    return t /= Hg,
    t > 12 ? 12 : t > 6 ? 6 : t > 3.5 ? 4 : t > 2 ? 2 : 1
}
function iW(t, e) {
    return t /= e ? n5 : t5,
    t > 30 ? 30 : t > 20 ? 20 : t > 15 ? 15 : t > 10 ? 10 : t > 5 ? 5 : t > 2 ? 2 : 1
}
function kZe(t) {
    return R6(t, !0)
}
function OZe(t, e, n) {
    var r = new Date(t);
    switch (wv(e)) {
    case "year":
    case "month":
        r[boe(n)](0);
    case "day":
        r[xoe(n)](1);
    case "hour":
        r[Soe(n)](0);
    case "minute":
        r[Coe(n)](0);
    case "second":
        r[woe(n)](0),
        r[_oe(n)](0)
    }
    return r.getTime()
}
function DZe(t, e, n, r) {
    var a = 1e4
      , i = moe
      , o = 0;
    function l(M, A, O, k, D, E, L) {
        for (var N = new Date(A), R = A, $ = N[k](); R < O && R <= r[1]; )
            L.push({
                value: R
            }),
            $ += M,
            N[D]($),
            R = N.getTime();
        L.push({
            value: R,
            notAdd: !0
        })
    }
    function s(M, A, O) {
        var k = []
          , D = !A.length;
        if (!PZe(wv(M), r[0], r[1], n)) {
            D && (A = [{
                value: OZe(new Date(r[0]), M, n)
            }, {
                value: r[1]
            }]);
            for (var E = 0; E < A.length - 1; E++) {
                var L = A[E].value
                  , N = A[E + 1].value;
                if (L !== N) {
                    var R = void 0
                      , $ = void 0
                      , W = void 0
                      , B = !1;
                    switch (M) {
                    case "year":
                        R = Math.max(1, Math.round(e / Oi / 365)),
                        $ = r5(n),
                        W = UUe(n);
                        break;
                    case "half-year":
                    case "quarter":
                    case "month":
                        R = AZe(e),
                        $ = _v(n),
                        W = boe(n);
                        break;
                    case "week":
                    case "half-week":
                    case "day":
                        R = MZe(e),
                        $ = v2(n),
                        W = xoe(n),
                        B = !0;
                        break;
                    case "half-day":
                    case "quarter-day":
                    case "hour":
                        R = IZe(e),
                        $ = W0(n),
                        W = Soe(n);
                        break;
                    case "minute":
                        R = iW(e, !0),
                        $ = h2(n),
                        W = Coe(n);
                        break;
                    case "second":
                        R = iW(e, !1),
                        $ = p2(n),
                        W = woe(n);
                        break;
                    case "millisecond":
                        R = kZe(e),
                        $ = g2(n),
                        W = _oe(n);
                        break
                    }
                    l(R, L, N, $, W, B, k),
                    M === "year" && O.length > 1 && E === 0 && O.unshift({
                        value: O[0].value - R
                    })
                }
            }
            for (var E = 0; E < k.length; E++)
                O.push(k[E]);
            return k
        }
    }
    for (var u = [], c = [], f = 0, d = 0, v = 0; v < i.length && o++ < a; ++v) {
        var h = wv(i[v]);
        if (!!WUe(i[v])) {
            s(i[v], u[u.length - 1] || [], c);
            var p = i[v + 1] ? wv(i[v + 1]) : null;
            if (h !== p) {
                if (c.length) {
                    d = f,
                    c.sort(function(M, A) {
                        return M.value - A.value
                    });
                    for (var g = [], m = 0; m < c.length; ++m) {
                        var y = c[m].value;
                        (m === 0 || c[m - 1].value !== y) && (g.push(c[m]),
                        y >= r[0] && y <= r[1] && f++)
                    }
                    var b = (r[1] - r[0]) / e;
                    if (f > b * 1.5 && d > b / 1.5 || (u.push(g),
                    f > b || t === i[v]))
                        break
                }
                c = []
            }
        }
    }
    for (var x = pn(Le(u, function(M) {
        return pn(M, function(A) {
            return A.value >= r[0] && A.value <= r[1] && !A.notAdd
        })
    }), function(M) {
        return M.length > 0
    }), C = [], S = x.length - 1, v = 0; v < x.length; ++v)
        for (var w = x[v], T = 0; T < w.length; ++T)
            C.push({
                value: w[T].value,
                level: S - v
            });
    C.sort(function(M, A) {
        return M.value - A.value
    });
    for (var P = [], v = 0; v < C.length; ++v)
        (v === 0 || C[v].value !== C[v - 1].value) && P.push(C[v]);
    return P
}
Cs.registerClass(lse);
const sse = lse;
var oW = Cs.prototype
  , Gg = Lu.prototype
  , EZe = Zn
  , LZe = Math.floor
  , RZe = Math.ceil
  , E1 = Math.pow
  , Zi = Math.log
  , L5 = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = "log",
        n.base = 10,
        n._originalScale = new Lu,
        n._interval = 0,
        n
    }
    return e.prototype.getTicks = function(n) {
        var r = this._originalScale
          , a = this._extent
          , i = r.getExtent()
          , o = Gg.getTicks.call(this, n);
        return Le(o, function(l) {
            var s = l.value
              , u = Zn(E1(this.base, s));
            return u = s === a[0] && this._fixMin ? L1(u, i[0]) : u,
            u = s === a[1] && this._fixMax ? L1(u, i[1]) : u,
            {
                value: u
            }
        }, this)
    }
    ,
    e.prototype.setExtent = function(n, r) {
        var a = Zi(this.base);
        n = Zi(Math.max(0, n)) / a,
        r = Zi(Math.max(0, r)) / a,
        Gg.setExtent.call(this, n, r)
    }
    ,
    e.prototype.getExtent = function() {
        var n = this.base
          , r = oW.getExtent.call(this);
        r[0] = E1(n, r[0]),
        r[1] = E1(n, r[1]);
        var a = this._originalScale
          , i = a.getExtent();
        return this._fixMin && (r[0] = L1(r[0], i[0])),
        this._fixMax && (r[1] = L1(r[1], i[1])),
        r
    }
    ,
    e.prototype.unionExtent = function(n) {
        this._originalScale.unionExtent(n);
        var r = this.base;
        n[0] = Zi(n[0]) / Zi(r),
        n[1] = Zi(n[1]) / Zi(r),
        oW.unionExtent.call(this, n)
    }
    ,
    e.prototype.unionExtentFromData = function(n, r) {
        this.unionExtent(n.getApproximateExtent(r))
    }
    ,
    e.prototype.calcNiceTicks = function(n) {
        n = n || 10;
        var r = this._extent
          , a = r[1] - r[0];
        if (!(a === 1 / 0 || a <= 0)) {
            var i = iie(a)
              , o = n / a * i;
            for (o <= .5 && (i *= 10); !isNaN(i) && Math.abs(i) < 1 && Math.abs(i) > 0; )
                i *= 10;
            var l = [Zn(RZe(r[0] / i) * i), Zn(LZe(r[1] / i) * i)];
            this._interval = i,
            this._niceExtent = l
        }
    }
    ,
    e.prototype.calcNiceExtent = function(n) {
        Gg.calcNiceExtent.call(this, n),
        this._fixMin = n.fixMin,
        this._fixMax = n.fixMax
    }
    ,
    e.prototype.parse = function(n) {
        return n
    }
    ,
    e.prototype.contain = function(n) {
        return n = Zi(n) / Zi(this.base),
        _2(n, this._extent)
    }
    ,
    e.prototype.normalize = function(n) {
        return n = Zi(n) / Zi(this.base),
        T2(n, this._extent)
    }
    ,
    e.prototype.scale = function(n) {
        return n = P2(n, this._extent),
        E1(this.base, n)
    }
    ,
    e.type = "log",
    e
}(Cs)
  , use = L5.prototype;
use.getMinorTicks = Gg.getMinorTicks;
use.getLabel = Gg.getLabel;
function L1(t, e) {
    return EZe(t, so(e))
}
Cs.registerClass(L5);
const NZe = L5;
var $Ze = function() {
    function t(e, n, r) {
        this._prepareParams(e, n, r)
    }
    return t.prototype._prepareParams = function(e, n, r) {
        r[1] < r[0] && (r = [NaN, NaN]),
        this._dataMin = r[0],
        this._dataMax = r[1];
        var a = this._isOrdinal = e.type === "ordinal";
        this._needCrossZero = e.type === "interval" && n.getNeedCrossZero && n.getNeedCrossZero();
        var i = this._modelMinRaw = n.get("min", !0);
        et(i) ? this._modelMinNum = R1(e, i({
            min: r[0],
            max: r[1]
        })) : i !== "dataMin" && (this._modelMinNum = R1(e, i));
        var o = this._modelMaxRaw = n.get("max", !0);
        if (et(o) ? this._modelMaxNum = R1(e, o({
            min: r[0],
            max: r[1]
        })) : o !== "dataMax" && (this._modelMaxNum = R1(e, o)),
        a)
            this._axisDataLen = n.getCategories().length;
        else {
            var l = n.get("boundaryGap")
              , s = ke(l) ? l : [l || 0, l || 0];
            typeof s[0] == "boolean" || typeof s[1] == "boolean" ? this._boundaryGapInner = [0, 0] : this._boundaryGapInner = [Po(s[0], 1), Po(s[1], 1)]
        }
    }
    ,
    t.prototype.calculate = function() {
        var e = this._isOrdinal
          , n = this._dataMin
          , r = this._dataMax
          , a = this._axisDataLen
          , i = this._boundaryGapInner
          , o = e ? null : r - n || Math.abs(n)
          , l = this._modelMinRaw === "dataMin" ? n : this._modelMinNum
          , s = this._modelMaxRaw === "dataMax" ? r : this._modelMaxNum
          , u = l != null
          , c = s != null;
        l == null && (l = e ? a ? 0 : NaN : n - i[0] * o),
        s == null && (s = e ? a ? a - 1 : NaN : r + i[1] * o),
        (l == null || !isFinite(l)) && (l = NaN),
        (s == null || !isFinite(s)) && (s = NaN);
        var f = Xv(l) || Xv(s) || e && !a;
        this._needCrossZero && (l > 0 && s > 0 && !u && (l = 0),
        l < 0 && s < 0 && !c && (s = 0));
        var d = this._determinedMin
          , v = this._determinedMax;
        return d != null && (l = d,
        u = !0),
        v != null && (s = v,
        c = !0),
        {
            min: l,
            max: s,
            minFixed: u,
            maxFixed: c,
            isBlank: f
        }
    }
    ,
    t.prototype.modifyDataMinMax = function(e, n) {
        this[BZe[e]] = n
    }
    ,
    t.prototype.setDeterminedMinMax = function(e, n) {
        var r = FZe[e];
        this[r] = n
    }
    ,
    t.prototype.freeze = function() {
        this.frozen = !0
    }
    ,
    t
}()
  , FZe = {
    min: "_determinedMin",
    max: "_determinedMax"
}
  , BZe = {
    min: "_dataMin",
    max: "_dataMax"
};
function cse(t, e, n) {
    var r = t.rawExtentInfo;
    return r || (r = new $Ze(t,e,n),
    t.rawExtentInfo = r,
    r)
}
function R1(t, e) {
    return e == null ? null : Xv(e) ? NaN : t.parse(e)
}
function fse(t, e) {
    var n = t.type
      , r = cse(t, e, t.getExtent()).calculate();
    t.setBlank(r.isBlank);
    var a = r.min
      , i = r.max
      , o = e.ecModel;
    if (o && n === "time") {
        var l = ese("bar", o)
          , s = !1;
        if (Z(l, function(f) {
            s = s || f.getBaseAxis() === e.axis
        }),
        s) {
            var u = tse(l)
              , c = VZe(a, i, e, u);
            a = c.min,
            i = c.max
        }
    }
    return {
        extent: [a, i],
        fixMin: r.minFixed,
        fixMax: r.maxFixed
    }
}
function VZe(t, e, n, r) {
    var a = n.axis.getExtent()
      , i = a[1] - a[0]
      , o = wZe(r, n.axis);
    if (o === void 0)
        return {
            min: t,
            max: e
        };
    var l = 1 / 0;
    Z(o, function(v) {
        l = Math.min(v.offset, l)
    });
    var s = -1 / 0;
    Z(o, function(v) {
        s = Math.max(v.offset + v.width, s)
    }),
    l = Math.abs(l),
    s = Math.abs(s);
    var u = l + s
      , c = e - t
      , f = 1 - (l + s) / i
      , d = c / f - c;
    return e += d * (s / u),
    t -= d * (l / u),
    {
        min: t,
        max: e
    }
}
function zf(t, e) {
    var n = e
      , r = fse(t, n)
      , a = r.extent
      , i = n.get("splitNumber");
    t instanceof NZe && (t.base = n.get("logBase"));
    var o = t.type
      , l = n.get("interval")
      , s = o === "interval" || o === "time";
    t.setExtent(a[0], a[1]),
    t.calcNiceExtent({
        splitNumber: i,
        fixMin: r.fixMin,
        fixMax: r.fixMax,
        minInterval: s ? n.get("minInterval") : null,
        maxInterval: s ? n.get("maxInterval") : null
    }),
    l != null && t.setInterval && t.setInterval(l)
}
function ny(t, e) {
    if (e = e || t.get("type"),
    e)
        switch (e) {
        case "category":
            return new O5({
                ordinalMeta: t.getOrdinalMeta ? t.getOrdinalMeta() : t.getCategories(),
                extent: [1 / 0, -1 / 0]
            });
        case "time":
            return new sse({
                locale: t.ecModel.getLocaleModel(),
                useUTC: t.ecModel.get("useUTC")
            });
        default:
            return new (Cs.getClass(e) || Lu)
        }
}
function zZe(t) {
    var e = t.scale.getExtent()
      , n = e[0]
      , r = e[1];
    return !(n > 0 && r > 0 || n < 0 && r < 0)
}
function ry(t) {
    var e = t.getLabelModel().get("formatter")
      , n = t.type === "category" ? t.scale.getExtent()[0] : null;
    return t.scale.type === "time" ? function(r) {
        return function(a, i) {
            return t.scale.getFormattedLabel(a, i, r)
        }
    }(e) : Ge(e) ? function(r) {
        return function(a) {
            var i = t.scale.getLabel(a)
              , o = r.replace("{value}", i != null ? i : "");
            return o
        }
    }(e) : et(e) ? function(r) {
        return function(a, i) {
            return n != null && (i = a.value - n),
            r(R5(t, a), i, a.level != null ? {
                level: a.level
            } : null)
        }
    }(e) : function(r) {
        return t.scale.getLabel(r)
    }
}
function R5(t, e) {
    return t.type === "category" ? t.scale.getLabel(e) : e.value
}
function HZe(t) {
    var e = t.model
      , n = t.scale;
    if (!(!e.get(["axisLabel", "show"]) || n.isBlank())) {
        var r, a, i = n.getExtent();
        n instanceof O5 ? a = n.count() : (r = n.getTicks(),
        a = r.length);
        var o = t.getLabelModel(), l = ry(t), s, u = 1;
        a > 40 && (u = Math.ceil(a / 40));
        for (var c = 0; c < a; c += u) {
            var f = r ? r[c] : {
                value: i[0] + c
            }
              , d = l(f, c)
              , v = o.getTextRect(d)
              , h = jZe(v, o.get("rotate") || 0);
            s ? s.union(h) : s = h
        }
        return s
    }
}
function jZe(t, e) {
    var n = e * Math.PI / 180
      , r = t.width
      , a = t.height
      , i = r * Math.abs(Math.cos(n)) + Math.abs(a * Math.sin(n))
      , o = r * Math.abs(Math.sin(n)) + Math.abs(a * Math.cos(n))
      , l = new Dt(t.x,t.y,i,o);
    return l
}
function N5(t) {
    var e = t.get("interval");
    return e == null ? "auto" : e
}
function dse(t) {
    return t.type === "category" && N5(t.getLabelModel()) === 0
}
function KS(t, e) {
    var n = {};
    return Z(t.mapDimensionsAll(e), function(r) {
        n[k5(t, r)] = !0
    }),
    Gt(n)
}
function WZe(t, e, n) {
    e && Z(KS(e, n), function(r) {
        var a = e.getApproximateExtent(r);
        a[0] < t[0] && (t[0] = a[0]),
        a[1] > t[1] && (t[1] = a[1])
    })
}
var zh = function() {
    function t() {}
    return t.prototype.getNeedCrossZero = function() {
        var e = this.option;
        return !e.scale
    }
    ,
    t.prototype.getCoordSysModel = function() {}
    ,
    t
}();
function GZe(t) {
    return Pl(null, t)
}
var KZe = {
    isDimensionStacked: ds,
    enableDataStack: Yle,
    getStackedDimension: k5
};
function UZe(t, e) {
    var n = e;
    e instanceof wn || (n = new wn(e));
    var r = ny(n);
    return r.setExtent(t[0], t[1]),
    zf(r, n),
    r
}
function YZe(t) {
    ir(t, zh)
}
function qZe(t, e) {
    return e = e || {},
    In(t, null, null, e.state !== "normal")
}
const XZe = Object.freeze(Object.defineProperty({
    __proto__: null,
    createList: GZe,
    getLayoutRect: xr,
    dataStack: KZe,
    createScale: UZe,
    mixinAxisModelCommonMethods: YZe,
    getECData: Ct,
    createTextStyle: qZe,
    createDimensions: rZe,
    createSymbol: fr,
    enableHoverEmphasis: xu
}, Symbol.toStringTag, {
    value: "Module"
}));
var ZZe = 1e-8;
function lW(t, e) {
    return Math.abs(t - e) < ZZe
}
function Yc(t, e, n) {
    var r = 0
      , a = t[0];
    if (!a)
        return !1;
    for (var i = 1; i < t.length; i++) {
        var o = t[i];
        r += Gl(a[0], a[1], o[0], o[1], e, n),
        a = o
    }
    var l = t[0];
    return (!lW(a[0], l[0]) || !lW(a[1], l[1])) && (r += Gl(a[0], a[1], l[0], l[1], e, n)),
    r !== 0
}
var QZe = [];
function c4(t, e) {
    for (var n = 0; n < t.length; n++)
        Wr(t[n], t[n], e)
}
function sW(t, e, n, r) {
    for (var a = 0; a < t.length; a++) {
        var i = t[a];
        r && (i = r.project(i)),
        i && isFinite(i[0]) && isFinite(i[1]) && (Ql(e, e, i),
        Jl(n, n, i))
    }
}
function JZe(t) {
    for (var e = 0, n = 0, r = 0, a = t.length, i = t[a - 1][0], o = t[a - 1][1], l = 0; l < a; l++) {
        var s = t[l][0]
          , u = t[l][1]
          , c = i * u - s * o;
        e += c,
        n += (i + s) * c,
        r += (o + u) * c,
        i = s,
        o = u
    }
    return e ? [n / e / 3, r / e / 3, e] : [t[0][0] || 0, t[0][1] || 0]
}
var vse = function() {
    function t(e) {
        this.name = e
    }
    return t.prototype.setCenter = function(e) {
        this._center = e
    }
    ,
    t.prototype.getCenter = function() {
        var e = this._center;
        return e || (e = this._center = this.calcCenter()),
        e
    }
    ,
    t
}()
  , uW = function() {
    function t(e, n) {
        this.type = "polygon",
        this.exterior = e,
        this.interiors = n
    }
    return t
}()
  , cW = function() {
    function t(e) {
        this.type = "linestring",
        this.points = e
    }
    return t
}()
  , hse = function(t) {
    ge(e, t);
    function e(n, r, a) {
        var i = t.call(this, n) || this;
        return i.type = "geoJSON",
        i.geometries = r,
        i._center = a && [a[0], a[1]],
        i
    }
    return e.prototype.calcCenter = function() {
        for (var n = this.geometries, r, a = 0, i = 0; i < n.length; i++) {
            var o = n[i]
              , l = o.exterior
              , s = l && l.length;
            s > a && (r = o,
            a = s)
        }
        if (r)
            return JZe(r.exterior);
        var u = this.getBoundingRect();
        return [u.x + u.width / 2, u.y + u.height / 2]
    }
    ,
    e.prototype.getBoundingRect = function(n) {
        var r = this._rect;
        if (r && !n)
            return r;
        var a = [1 / 0, 1 / 0]
          , i = [-1 / 0, -1 / 0]
          , o = this.geometries;
        return Z(o, function(l) {
            l.type === "polygon" ? sW(l.exterior, a, i, n) : Z(l.points, function(s) {
                sW(s, a, i, n)
            })
        }),
        isFinite(a[0]) && isFinite(a[1]) && isFinite(i[0]) && isFinite(i[1]) || (a[0] = a[1] = i[0] = i[1] = 0),
        r = new Dt(a[0],a[1],i[0] - a[0],i[1] - a[1]),
        n || (this._rect = r),
        r
    }
    ,
    e.prototype.contain = function(n) {
        var r = this.getBoundingRect()
          , a = this.geometries;
        if (!r.contain(n[0], n[1]))
            return !1;
        e: for (var i = 0, o = a.length; i < o; i++) {
            var l = a[i];
            if (l.type === "polygon") {
                var s = l.exterior
                  , u = l.interiors;
                if (Yc(s, n[0], n[1])) {
                    for (var c = 0; c < (u ? u.length : 0); c++)
                        if (Yc(u[c], n[0], n[1]))
                            continue e;
                    return !0
                }
            }
        }
        return !1
    }
    ,
    e.prototype.transformTo = function(n, r, a, i) {
        var o = this.getBoundingRect()
          , l = o.width / o.height;
        a ? i || (i = a / l) : a = l * i;
        for (var s = new Dt(n,r,a,i), u = o.calculateTransform(s), c = this.geometries, f = 0; f < c.length; f++) {
            var d = c[f];
            d.type === "polygon" ? (c4(d.exterior, u),
            Z(d.interiors, function(v) {
                c4(v, u)
            })) : Z(d.points, function(v) {
                c4(v, u)
            })
        }
        o = this._rect,
        o.copy(s),
        this._center = [o.x + o.width / 2, o.y + o.height / 2]
    }
    ,
    e.prototype.cloneShallow = function(n) {
        n == null && (n = this.name);
        var r = new e(n,this.geometries,this._center);
        return r._rect = this._rect,
        r.transformTo = null,
        r
    }
    ,
    e
}(vse)
  , eQe = function(t) {
    ge(e, t);
    function e(n, r) {
        var a = t.call(this, n) || this;
        return a.type = "geoSVG",
        a._elOnlyForCalculate = r,
        a
    }
    return e.prototype.calcCenter = function() {
        for (var n = this._elOnlyForCalculate, r = n.getBoundingRect(), a = [r.x + r.width / 2, r.y + r.height / 2], i = Wm(QZe), o = n; o && !o.isGeoSVGGraphicRoot; )
            fl(i, o.getLocalTransform(), i),
            o = o.parent;
        return nd(i, i),
        Wr(a, a, i),
        a
    }
    ,
    e
}(vse);
function tQe(t) {
    if (!t.UTF8Encoding)
        return t;
    var e = t
      , n = e.UTF8Scale;
    n == null && (n = 1024);
    var r = e.features;
    return Z(r, function(a) {
        var i = a.geometry
          , o = i.encodeOffsets
          , l = i.coordinates;
        if (!!o)
            switch (i.type) {
            case "LineString":
                i.coordinates = pse(l, o, n);
                break;
            case "Polygon":
                f4(l, o, n);
                break;
            case "MultiLineString":
                f4(l, o, n);
                break;
            case "MultiPolygon":
                Z(l, function(s, u) {
                    return f4(s, o[u], n)
                })
            }
    }),
    e.UTF8Encoding = !1,
    e
}
function f4(t, e, n) {
    for (var r = 0; r < t.length; r++)
        t[r] = pse(t[r], e[r], n)
}
function pse(t, e, n) {
    for (var r = [], a = e[0], i = e[1], o = 0; o < t.length; o += 2) {
        var l = t.charCodeAt(o) - 64
          , s = t.charCodeAt(o + 1) - 64;
        l = l >> 1 ^ -(l & 1),
        s = s >> 1 ^ -(s & 1),
        l += a,
        s += i,
        a = l,
        i = s,
        r.push([l / n, s / n])
    }
    return r
}
function XI(t, e) {
    return t = tQe(t),
    Le(pn(t.features, function(n) {
        return n.geometry && n.properties && n.geometry.coordinates.length > 0
    }), function(n) {
        var r = n.properties
          , a = n.geometry
          , i = [];
        switch (a.type) {
        case "Polygon":
            var o = a.coordinates;
            i.push(new uW(o[0],o.slice(1)));
            break;
        case "MultiPolygon":
            Z(a.coordinates, function(s) {
                s[0] && i.push(new uW(s[0],s.slice(1)))
            });
            break;
        case "LineString":
            i.push(new cW([a.coordinates]));
            break;
        case "MultiLineString":
            i.push(new cW(a.coordinates))
        }
        var l = new hse(r[e || "name"],i,r.cp);
        return l.properties = r,
        l
    })
}
const nQe = Object.freeze(Object.defineProperty({
    __proto__: null,
    linearMap: vn,
    round: Zn,
    asc: ri,
    getPrecision: so,
    getPrecisionSafe: rie,
    getPixelPrecision: E6,
    getPercentWithPrecision: mGe,
    MAX_SAFE_INTEGER: yI,
    remRadian: L6,
    isRadianAroundZero: $0,
    parseDate: ui,
    quantity: iie,
    quantityExponent: e2,
    nice: R6,
    quantile: ix,
    reformIntervals: bI,
    isNumeric: N6,
    numericToNumber: ml
}, Symbol.toStringTag, {
    value: "Module"
}))
  , rQe = Object.freeze(Object.defineProperty({
    __proto__: null,
    parse: ui,
    format: ey
}, Symbol.toStringTag, {
    value: "Module"
}))
  , aQe = Object.freeze(Object.defineProperty({
    __proto__: null,
    extendShape: ioe,
    extendPath: ooe,
    makePath: Zm,
    makeImage: q6,
    mergePath: ti,
    resizePath: X6,
    createIcon: Ih,
    updateProps: ln,
    initProps: $n,
    getTransform: Su,
    clipPointsByRect: Z6,
    clipRectByRect: soe,
    registerShape: Gi,
    getShapeClass: c2,
    Group: mt,
    Image: Kr,
    Text: Jt,
    Circle: Mo,
    Ellipse: l2,
    Sector: Pa,
    Ring: qm,
    Polygon: Ma,
    Polyline: Aa,
    Rect: tn,
    Line: Or,
    BezierCurve: Xm,
    Arc: s2,
    IncrementalDisplayable: roe,
    CompoundPath: u2,
    LinearGradient: Mh,
    RadialGradient: U6,
    BoundingRect: Dt
}, Symbol.toStringTag, {
    value: "Module"
}))
  , iQe = Object.freeze(Object.defineProperty({
    __proto__: null,
    addCommas: a5,
    toCamelCase: i5,
    normalizeCssArray: ad,
    encodeHTML: Sa,
    formatTpl: o5,
    getTooltipMarker: Toe,
    formatTime: XUe,
    capitalFirst: ZUe,
    truncateText: gie,
    getTextRect: YUe
}, Symbol.toStringTag, {
    value: "Module"
}))
  , oQe = Object.freeze(Object.defineProperty({
    __proto__: null,
    map: Le,
    each: Z,
    indexOf: Rt,
    inherits: _6,
    reduce: Hi,
    filter: pn,
    bind: qe,
    curry: St,
    isArray: ke,
    isString: Ge,
    isObject: st,
    isFunction: et,
    extend: Me,
    defaults: ot,
    clone: ut,
    merge: At
}, Symbol.toStringTag, {
    value: "Module"
}));
var X0 = an();
function lQe(t) {
    return t.type === "category" ? uQe(t) : fQe(t)
}
function sQe(t, e) {
    return t.type === "category" ? cQe(t, e) : {
        ticks: Le(t.scale.getTicks(), function(n) {
            return n.value
        })
    }
}
function uQe(t) {
    var e = t.getLabelModel()
      , n = gse(t, e);
    return !e.get("show") || t.scale.isBlank() ? {
        labels: [],
        labelCategoryInterval: n.labelCategoryInterval
    } : n
}
function gse(t, e) {
    var n = mse(t, "labels")
      , r = N5(e)
      , a = yse(n, r);
    if (a)
        return a;
    var i, o;
    return et(r) ? i = Sse(t, r) : (o = r === "auto" ? dQe(t) : r,
    i = xse(t, o)),
    bse(n, r, {
        labels: i,
        labelCategoryInterval: o
    })
}
function cQe(t, e) {
    var n = mse(t, "ticks")
      , r = N5(e)
      , a = yse(n, r);
    if (a)
        return a;
    var i, o;
    if ((!e.get("show") || t.scale.isBlank()) && (i = []),
    et(r))
        i = Sse(t, r, !0);
    else if (r === "auto") {
        var l = gse(t, t.getLabelModel());
        o = l.labelCategoryInterval,
        i = Le(l.labels, function(s) {
            return s.tickValue
        })
    } else
        o = r,
        i = xse(t, o, !0);
    return bse(n, r, {
        ticks: i,
        tickCategoryInterval: o
    })
}
function fQe(t) {
    var e = t.scale.getTicks()
      , n = ry(t);
    return {
        labels: Le(e, function(r, a) {
            return {
                level: r.level,
                formattedLabel: n(r, a),
                rawLabel: t.scale.getLabel(r),
                tickValue: r.value
            }
        })
    }
}
function mse(t, e) {
    return X0(t)[e] || (X0(t)[e] = [])
}
function yse(t, e) {
    for (var n = 0; n < t.length; n++)
        if (t[n].key === e)
            return t[n].value
}
function bse(t, e, n) {
    return t.push({
        key: e,
        value: n
    }),
    n
}
function dQe(t) {
    var e = X0(t).autoInterval;
    return e != null ? e : X0(t).autoInterval = t.calculateCategoryInterval()
}
function vQe(t) {
    var e = hQe(t)
      , n = ry(t)
      , r = (e.axisRotate - e.labelRotate) / 180 * Math.PI
      , a = t.scale
      , i = a.getExtent()
      , o = a.count();
    if (i[1] - i[0] < 1)
        return 0;
    var l = 1;
    o > 40 && (l = Math.max(1, Math.floor(o / 40)));
    for (var s = i[0], u = t.dataToCoord(s + 1) - t.dataToCoord(s), c = Math.abs(u * Math.cos(r)), f = Math.abs(u * Math.sin(r)), d = 0, v = 0; s <= i[1]; s += l) {
        var h = 0
          , p = 0
          , g = Km(n({
            value: s
        }), e.font, "center", "top");
        h = g.width * 1.3,
        p = g.height * 1.3,
        d = Math.max(d, h, 7),
        v = Math.max(v, p, 7)
    }
    var m = d / c
      , y = v / f;
    isNaN(m) && (m = 1 / 0),
    isNaN(y) && (y = 1 / 0);
    var b = Math.max(0, Math.floor(Math.min(m, y)))
      , x = X0(t.model)
      , C = t.getExtent()
      , S = x.lastAutoInterval
      , w = x.lastTickCount;
    return S != null && w != null && Math.abs(S - b) <= 1 && Math.abs(w - o) <= 1 && S > b && x.axisExtent0 === C[0] && x.axisExtent1 === C[1] ? b = S : (x.lastTickCount = o,
    x.lastAutoInterval = b,
    x.axisExtent0 = C[0],
    x.axisExtent1 = C[1]),
    b
}
function hQe(t) {
    var e = t.getLabelModel();
    return {
        axisRotate: t.getRotate ? t.getRotate() : t.isHorizontal && !t.isHorizontal() ? 90 : 0,
        labelRotate: e.get("rotate") || 0,
        font: e.getFont()
    }
}
function xse(t, e, n) {
    var r = ry(t)
      , a = t.scale
      , i = a.getExtent()
      , o = t.getLabelModel()
      , l = []
      , s = Math.max((e || 0) + 1, 1)
      , u = i[0]
      , c = a.count();
    u !== 0 && s > 1 && c / s > 2 && (u = Math.round(Math.ceil(u / s) * s));
    var f = dse(t)
      , d = o.get("showMinLabel") || f
      , v = o.get("showMaxLabel") || f;
    d && u !== i[0] && p(i[0]);
    for (var h = u; h <= i[1]; h += s)
        p(h);
    v && h - s !== i[1] && p(i[1]);
    function p(g) {
        var m = {
            value: g
        };
        l.push(n ? g : {
            formattedLabel: r(m),
            rawLabel: a.getLabel(m),
            tickValue: g
        })
    }
    return l
}
function Sse(t, e, n) {
    var r = t.scale
      , a = ry(t)
      , i = [];
    return Z(r.getTicks(), function(o) {
        var l = r.getLabel(o)
          , s = o.value;
        e(o.value, l) && i.push(n ? s : {
            formattedLabel: a(o),
            rawLabel: l,
            tickValue: s
        })
    }),
    i
}
var fW = [0, 1]
  , pQe = function() {
    function t(e, n, r) {
        this.onBand = !1,
        this.inverse = !1,
        this.dim = e,
        this.scale = n,
        this._extent = r || [0, 0]
    }
    return t.prototype.contain = function(e) {
        var n = this._extent
          , r = Math.min(n[0], n[1])
          , a = Math.max(n[0], n[1]);
        return e >= r && e <= a
    }
    ,
    t.prototype.containData = function(e) {
        return this.scale.contain(e)
    }
    ,
    t.prototype.getExtent = function() {
        return this._extent.slice()
    }
    ,
    t.prototype.getPixelPrecision = function(e) {
        return E6(e || this.scale.getExtent(), this._extent)
    }
    ,
    t.prototype.setExtent = function(e, n) {
        var r = this._extent;
        r[0] = e,
        r[1] = n
    }
    ,
    t.prototype.dataToCoord = function(e, n) {
        var r = this._extent
          , a = this.scale;
        return e = a.normalize(e),
        this.onBand && a.type === "ordinal" && (r = r.slice(),
        dW(r, a.count())),
        vn(e, fW, r, n)
    }
    ,
    t.prototype.coordToData = function(e, n) {
        var r = this._extent
          , a = this.scale;
        this.onBand && a.type === "ordinal" && (r = r.slice(),
        dW(r, a.count()));
        var i = vn(e, r, fW, n);
        return this.scale.scale(i)
    }
    ,
    t.prototype.pointToData = function(e, n) {}
    ,
    t.prototype.getTicksCoords = function(e) {
        e = e || {};
        var n = e.tickModel || this.getTickModel()
          , r = sQe(this, n)
          , a = r.ticks
          , i = Le(a, function(l) {
            return {
                coord: this.dataToCoord(this.scale.type === "ordinal" ? this.scale.getRawOrdinalNumber(l) : l),
                tickValue: l
            }
        }, this)
          , o = n.get("alignWithLabel");
        return gQe(this, i, o, e.clamp),
        i
    }
    ,
    t.prototype.getMinorTicksCoords = function() {
        if (this.scale.type === "ordinal")
            return [];
        var e = this.model.getModel("minorTick")
          , n = e.get("splitNumber");
        n > 0 && n < 100 || (n = 5);
        var r = this.scale.getMinorTicks(n)
          , a = Le(r, function(i) {
            return Le(i, function(o) {
                return {
                    coord: this.dataToCoord(o),
                    tickValue: o
                }
            }, this)
        }, this);
        return a
    }
    ,
    t.prototype.getViewLabels = function() {
        return lQe(this).labels
    }
    ,
    t.prototype.getLabelModel = function() {
        return this.model.getModel("axisLabel")
    }
    ,
    t.prototype.getTickModel = function() {
        return this.model.getModel("axisTick")
    }
    ,
    t.prototype.getBandWidth = function() {
        var e = this._extent
          , n = this.scale.getExtent()
          , r = n[1] - n[0] + (this.onBand ? 1 : 0);
        r === 0 && (r = 1);
        var a = Math.abs(e[1] - e[0]);
        return Math.abs(a) / r
    }
    ,
    t.prototype.calculateCategoryInterval = function() {
        return vQe(this)
    }
    ,
    t
}();
function dW(t, e) {
    var n = t[1] - t[0]
      , r = e
      , a = n / r / 2;
    t[0] += a,
    t[1] -= a
}
function gQe(t, e, n, r) {
    var a = e.length;
    if (!t.onBand || n || !a)
        return;
    var i = t.getExtent(), o, l;
    if (a === 1)
        e[0].coord = i[0],
        o = e[1] = {
            coord: i[1]
        };
    else {
        var s = e[a - 1].tickValue - e[0].tickValue
          , u = (e[a - 1].coord - e[0].coord) / s;
        Z(e, function(v) {
            v.coord -= u / 2
        });
        var c = t.scale.getExtent();
        l = 1 + c[1] - e[a - 1].tickValue,
        o = {
            coord: e[a - 1].coord + u * l
        },
        e.push(o)
    }
    var f = i[0] > i[1];
    d(e[0].coord, i[0]) && (r ? e[0].coord = i[0] : e.shift()),
    r && d(i[0], e[0].coord) && e.unshift({
        coord: i[0]
    }),
    d(i[1], o.coord) && (r ? o.coord = i[1] : e.pop()),
    r && d(o.coord, i[1]) && e.push({
        coord: i[1]
    });
    function d(v, h) {
        return v = Zn(v),
        h = Zn(h),
        f ? v > h : v < h
    }
}
const Yi = pQe;
function mQe(t) {
    var e = qt.extend(t);
    return qt.registerClass(e),
    e
}
function yQe(t) {
    var e = Bn.extend(t);
    return Bn.registerClass(e),
    e
}
function bQe(t) {
    var e = En.extend(t);
    return En.registerClass(e),
    e
}
function xQe(t) {
    var e = Tn.extend(t);
    return Tn.registerClass(e),
    e
}
var Mp = Math.PI * 2
  , Pc = yl.CMD
  , SQe = ["top", "right", "bottom", "left"];
function CQe(t, e, n, r, a) {
    var i = n.width
      , o = n.height;
    switch (t) {
    case "top":
        r.set(n.x + i / 2, n.y - e),
        a.set(0, -1);
        break;
    case "bottom":
        r.set(n.x + i / 2, n.y + o + e),
        a.set(0, 1);
        break;
    case "left":
        r.set(n.x - e, n.y + o / 2),
        a.set(-1, 0);
        break;
    case "right":
        r.set(n.x + i + e, n.y + o / 2),
        a.set(1, 0);
        break
    }
}
function wQe(t, e, n, r, a, i, o, l, s) {
    o -= t,
    l -= e;
    var u = Math.sqrt(o * o + l * l);
    o /= u,
    l /= u;
    var c = o * n + t
      , f = l * n + e;
    if (Math.abs(r - a) % Mp < 1e-4)
        return s[0] = c,
        s[1] = f,
        u - n;
    if (i) {
        var d = r;
        r = uo(a),
        a = uo(d)
    } else
        r = uo(r),
        a = uo(a);
    r > a && (a += Mp);
    var v = Math.atan2(l, o);
    if (v < 0 && (v += Mp),
    v >= r && v <= a || v + Mp >= r && v + Mp <= a)
        return s[0] = c,
        s[1] = f,
        u - n;
    var h = n * Math.cos(r) + t
      , p = n * Math.sin(r) + e
      , g = n * Math.cos(a) + t
      , m = n * Math.sin(a) + e
      , y = (h - o) * (h - o) + (p - l) * (p - l)
      , b = (g - o) * (g - o) + (m - l) * (m - l);
    return y < b ? (s[0] = h,
    s[1] = p,
    Math.sqrt(y)) : (s[0] = g,
    s[1] = m,
    Math.sqrt(b))
}
function US(t, e, n, r, a, i, o, l) {
    var s = a - t
      , u = i - e
      , c = n - t
      , f = r - e
      , d = Math.sqrt(c * c + f * f);
    c /= d,
    f /= d;
    var v = s * c + u * f
      , h = v / d;
    l && (h = Math.min(Math.max(h, 0), 1)),
    h *= d;
    var p = o[0] = t + h * c
      , g = o[1] = e + h * f;
    return Math.sqrt((p - a) * (p - a) + (g - i) * (g - i))
}
function Cse(t, e, n, r, a, i, o) {
    n < 0 && (t = t + n,
    n = -n),
    r < 0 && (e = e + r,
    r = -r);
    var l = t + n
      , s = e + r
      , u = o[0] = Math.min(Math.max(a, t), l)
      , c = o[1] = Math.min(Math.max(i, e), s);
    return Math.sqrt((u - a) * (u - a) + (c - i) * (c - i))
}
var ro = [];
function _Qe(t, e, n) {
    var r = Cse(e.x, e.y, e.width, e.height, t.x, t.y, ro);
    return n.set(ro[0], ro[1]),
    r
}
function TQe(t, e, n) {
    for (var r = 0, a = 0, i = 0, o = 0, l, s, u = 1 / 0, c = e.data, f = t.x, d = t.y, v = 0; v < c.length; ) {
        var h = c[v++];
        v === 1 && (r = c[v],
        a = c[v + 1],
        i = r,
        o = a);
        var p = u;
        switch (h) {
        case Pc.M:
            i = c[v++],
            o = c[v++],
            r = i,
            a = o;
            break;
        case Pc.L:
            p = US(r, a, c[v], c[v + 1], f, d, ro, !0),
            r = c[v++],
            a = c[v++];
            break;
        case Pc.C:
            p = $ae(r, a, c[v++], c[v++], c[v++], c[v++], c[v], c[v + 1], f, d, ro),
            r = c[v++],
            a = c[v++];
            break;
        case Pc.Q:
            p = Bae(r, a, c[v++], c[v++], c[v], c[v + 1], f, d, ro),
            r = c[v++],
            a = c[v++];
            break;
        case Pc.A:
            var g = c[v++]
              , m = c[v++]
              , y = c[v++]
              , b = c[v++]
              , x = c[v++]
              , C = c[v++];
            v += 1;
            var S = !!(1 - c[v++]);
            l = Math.cos(x) * y + g,
            s = Math.sin(x) * b + m,
            v <= 1 && (i = l,
            o = s);
            var w = (f - g) * b / y + g;
            p = wQe(g, m, b, x, x + C, S, w, d, ro),
            r = Math.cos(x + C) * y + g,
            a = Math.sin(x + C) * b + m;
            break;
        case Pc.R:
            i = r = c[v++],
            o = a = c[v++];
            var T = c[v++]
              , P = c[v++];
            p = Cse(i, o, T, P, f, d, ro);
            break;
        case Pc.Z:
            p = US(r, a, i, o, f, d, ro, !0),
            r = i,
            a = o;
            break
        }
        p < u && (u = p,
        n.set(ro[0], ro[1]))
    }
    return u
}
var co = new kt
  , On = new kt
  , sr = new kt
  , ol = new kt
  , tl = new kt;
function vW(t, e) {
    if (!!t) {
        var n = t.getTextGuideLine()
          , r = t.getTextContent();
        if (!!(r && n)) {
            var a = t.textGuideLineConfig || {}
              , i = [[0, 0], [0, 0], [0, 0]]
              , o = a.candidates || SQe
              , l = r.getBoundingRect().clone();
            l.applyTransform(r.getComputedTransform());
            var s = 1 / 0
              , u = a.anchor
              , c = t.getComputedTransform()
              , f = c && nd([], c)
              , d = e.get("length2") || 0;
            u && sr.copy(u);
            for (var v = 0; v < o.length; v++) {
                var h = o[v];
                CQe(h, 0, l, co, ol),
                kt.scaleAndAdd(On, co, ol, d),
                On.transform(f);
                var p = t.getBoundingRect()
                  , g = u ? u.distance(On) : t instanceof jt ? TQe(On, t.path, sr) : _Qe(On, p, sr);
                g < s && (s = g,
                On.transform(c),
                sr.transform(c),
                sr.toArray(i[0]),
                On.toArray(i[1]),
                co.toArray(i[2]))
            }
            wse(i, e.get("minTurnAngle")),
            n.setShape({
                points: i
            })
        }
    }
}
var YS = []
  , ba = new kt;
function wse(t, e) {
    if (e <= 180 && e > 0) {
        e = e / 180 * Math.PI,
        co.fromArray(t[0]),
        On.fromArray(t[1]),
        sr.fromArray(t[2]),
        kt.sub(ol, co, On),
        kt.sub(tl, sr, On);
        var n = ol.len()
          , r = tl.len();
        if (!(n < .001 || r < .001)) {
            ol.scale(1 / n),
            tl.scale(1 / r);
            var a = ol.dot(tl)
              , i = Math.cos(e);
            if (i < a) {
                var o = US(On.x, On.y, sr.x, sr.y, co.x, co.y, YS, !1);
                ba.fromArray(YS),
                ba.scaleAndAdd(tl, o / Math.tan(Math.PI - e));
                var l = sr.x !== On.x ? (ba.x - On.x) / (sr.x - On.x) : (ba.y - On.y) / (sr.y - On.y);
                if (isNaN(l))
                    return;
                l < 0 ? kt.copy(ba, On) : l > 1 && kt.copy(ba, sr),
                ba.toArray(t[1])
            }
        }
    }
}
function PQe(t, e, n) {
    if (n <= 180 && n > 0) {
        n = n / 180 * Math.PI,
        co.fromArray(t[0]),
        On.fromArray(t[1]),
        sr.fromArray(t[2]),
        kt.sub(ol, On, co),
        kt.sub(tl, sr, On);
        var r = ol.len()
          , a = tl.len();
        if (!(r < .001 || a < .001)) {
            ol.scale(1 / r),
            tl.scale(1 / a);
            var i = ol.dot(e)
              , o = Math.cos(n);
            if (i < o) {
                var l = US(On.x, On.y, sr.x, sr.y, co.x, co.y, YS, !1);
                ba.fromArray(YS);
                var s = Math.PI / 2
                  , u = Math.acos(tl.dot(e))
                  , c = s + u - n;
                if (c >= s)
                    kt.copy(ba, sr);
                else {
                    ba.scaleAndAdd(tl, l / Math.tan(Math.PI / 2 - c));
                    var f = sr.x !== On.x ? (ba.x - On.x) / (sr.x - On.x) : (ba.y - On.y) / (sr.y - On.y);
                    if (isNaN(f))
                        return;
                    f < 0 ? kt.copy(ba, On) : f > 1 && kt.copy(ba, sr)
                }
                ba.toArray(t[1])
            }
        }
    }
}
function hW(t, e, n, r) {
    var a = n === "normal"
      , i = a ? t : t.ensureState(n);
    i.ignore = e;
    var o = r.get("smooth");
    o && o === !0 && (o = .3),
    i.shape = i.shape || {},
    o > 0 && (i.shape.smooth = o);
    var l = r.getModel("lineStyle").getLineStyle();
    a ? t.useStyle(l) : i.style = l
}
function MQe(t, e) {
    var n = e.smooth
      , r = e.points;
    if (!!r)
        if (t.moveTo(r[0][0], r[0][1]),
        n > 0 && r.length >= 3) {
            var a = Zl(r[0], r[1])
              , i = Zl(r[1], r[2]);
            if (!a || !i) {
                t.lineTo(r[1][0], r[1][1]),
                t.lineTo(r[2][0], r[2][1]);
                return
            }
            var o = Math.min(a, i) * n
              , l = Lg([], r[1], r[0], o / a)
              , s = Lg([], r[1], r[2], o / i)
              , u = Lg([], l, s, .5);
            t.bezierCurveTo(l[0], l[1], l[0], l[1], u[0], u[1]),
            t.bezierCurveTo(s[0], s[1], s[0], s[1], r[2][0], r[2][1])
        } else
            for (var c = 1; c < r.length; c++)
                t.lineTo(r[c][0], r[c][1])
}
function $5(t, e, n) {
    var r = t.getTextGuideLine()
      , a = t.getTextContent();
    if (!a) {
        r && t.removeTextGuideLine();
        return
    }
    for (var i = e.normal, o = i.get("show"), l = a.ignore, s = 0; s < V0.length; s++) {
        var u = V0[s]
          , c = e[u]
          , f = u === "normal";
        if (c) {
            var d = c.get("show")
              , v = f ? l : Ot(a.states[u] && a.states[u].ignore, l);
            if (v || !Ot(d, o)) {
                var h = f ? r : r && r.states[u];
                h && (h.ignore = !0);
                continue
            }
            r || (r = new Aa,
            t.setTextGuideLine(r),
            !f && (l || !o) && hW(r, !0, "normal", e.normal),
            t.stateProxy && (r.stateProxy = t.stateProxy)),
            hW(r, !1, u, c)
        }
    }
    if (r) {
        ot(r.style, n),
        r.style.fill = null;
        var p = i.get("showAbove")
          , g = t.textGuideLineConfig = t.textGuideLineConfig || {};
        g.showAbove = p || !1,
        r.buildPath = MQe
    }
}
function F5(t, e) {
    e = e || "labelLine";
    for (var n = {
        normal: t.getModel(e)
    }, r = 0; r < Ta.length; r++) {
        var a = Ta[r];
        n[a] = t.getModel([a, e])
    }
    return n
}
function _se(t) {
    for (var e = [], n = 0; n < t.length; n++) {
        var r = t[n];
        if (!r.defaultAttr.ignore) {
            var a = r.label
              , i = a.getComputedTransform()
              , o = a.getBoundingRect()
              , l = !i || i[1] < 1e-5 && i[2] < 1e-5
              , s = a.style.margin || 0
              , u = o.clone();
            u.applyTransform(i),
            u.x -= s / 2,
            u.y -= s / 2,
            u.width += s,
            u.height += s;
            var c = l ? new kS(o,i) : null;
            e.push({
                label: a,
                labelLine: r.labelLine,
                rect: u,
                localRect: o,
                obb: c,
                priority: r.priority,
                defaultAttr: r.defaultAttr,
                layoutOption: r.computedLayoutOption,
                axisAligned: l,
                transform: i
            })
        }
    }
    return e
}
function Tse(t, e, n, r, a, i) {
    var o = t.length;
    if (o < 2)
        return;
    t.sort(function(T, P) {
        return T.rect[e] - P.rect[e]
    });
    for (var l = 0, s, u = !1, c = 0, f = 0; f < o; f++) {
        var d = t[f]
          , v = d.rect;
        s = v[e] - l,
        s < 0 && (v[e] -= s,
        d.label[e] -= s,
        u = !0);
        var h = Math.max(-s, 0);
        c += h,
        l = v[e] + v[n]
    }
    c > 0 && i && C(-c / o, 0, o);
    var p = t[0], g = t[o - 1], m, y;
    b(),
    m < 0 && S(-m, .8),
    y < 0 && S(y, .8),
    b(),
    x(m, y, 1),
    x(y, m, -1),
    b(),
    m < 0 && w(-m),
    y < 0 && w(y);
    function b() {
        m = p.rect[e] - r,
        y = a - g.rect[e] - g.rect[n]
    }
    function x(T, P, M) {
        if (T < 0) {
            var A = Math.min(P, -T);
            if (A > 0) {
                C(A * M, 0, o);
                var O = A + T;
                O < 0 && S(-O * M, 1)
            } else
                S(-T * M, 1)
        }
    }
    function C(T, P, M) {
        T !== 0 && (u = !0);
        for (var A = P; A < M; A++) {
            var O = t[A]
              , k = O.rect;
            k[e] += T,
            O.label[e] += T
        }
    }
    function S(T, P) {
        for (var M = [], A = 0, O = 1; O < o; O++) {
            var k = t[O - 1].rect
              , D = Math.max(t[O].rect[e] - k[e] - k[n], 0);
            M.push(D),
            A += D
        }
        if (!!A) {
            var E = Math.min(Math.abs(T) / A, P);
            if (T > 0)
                for (var O = 0; O < o - 1; O++) {
                    var L = M[O] * E;
                    C(L, 0, O + 1)
                }
            else
                for (var O = o - 1; O > 0; O--) {
                    var L = M[O - 1] * E;
                    C(-L, O, o)
                }
        }
    }
    function w(T) {
        var P = T < 0 ? -1 : 1;
        T = Math.abs(T);
        for (var M = Math.ceil(T / (o - 1)), A = 0; A < o - 1; A++)
            if (P > 0 ? C(M, 0, A + 1) : C(-M, o - A - 1, o),
            T -= M,
            T <= 0)
                return
    }
    return u
}
function AQe(t, e, n, r) {
    return Tse(t, "x", "width", e, n, r)
}
function Pse(t, e, n, r) {
    return Tse(t, "y", "height", e, n, r)
}
function Mse(t) {
    var e = [];
    t.sort(function(p, g) {
        return g.priority - p.priority
    });
    var n = new Dt(0,0,0,0);
    function r(p) {
        if (!p.ignore) {
            var g = p.ensureState("emphasis");
            g.ignore == null && (g.ignore = !1)
        }
        p.ignore = !0
    }
    for (var a = 0; a < t.length; a++) {
        var i = t[a]
          , o = i.axisAligned
          , l = i.localRect
          , s = i.transform
          , u = i.label
          , c = i.labelLine;
        n.copy(i.rect),
        n.width -= .1,
        n.height -= .1,
        n.x += .05,
        n.y += .05;
        for (var f = i.obb, d = !1, v = 0; v < e.length; v++) {
            var h = e[v];
            if (!!n.intersect(h.rect)) {
                if (o && h.axisAligned) {
                    d = !0;
                    break
                }
                if (h.obb || (h.obb = new kS(h.localRect,h.transform)),
                f || (f = new kS(l,s)),
                f.intersect(h.obb)) {
                    d = !0;
                    break
                }
            }
        }
        d ? (r(u),
        c && r(c)) : (u.attr("ignore", i.defaultAttr.ignore),
        c && c.attr("ignore", i.defaultAttr.labelGuideIgnore),
        e.push(i))
    }
}
function IQe(t) {
    if (t) {
        for (var e = [], n = 0; n < t.length; n++)
            e.push(t[n].slice());
        return e
    }
}
function kQe(t, e) {
    var n = t.label
      , r = e && e.getTextGuideLine();
    return {
        dataIndex: t.dataIndex,
        dataType: t.dataType,
        seriesIndex: t.seriesModel.seriesIndex,
        text: t.label.style.text,
        rect: t.hostRect,
        labelRect: t.rect,
        align: n.style.align,
        verticalAlign: n.style.verticalAlign,
        labelLinePoints: IQe(r && r.shape.points)
    }
}
var pW = ["align", "verticalAlign", "width", "height", "fontSize"]
  , da = new es
  , d4 = an()
  , OQe = an();
function N1(t, e, n) {
    for (var r = 0; r < n.length; r++) {
        var a = n[r];
        e[a] != null && (t[a] = e[a])
    }
}
var $1 = ["x", "y", "rotation"]
  , DQe = function() {
    function t() {
        this._labelList = [],
        this._chartViewList = []
    }
    return t.prototype.clearLabels = function() {
        this._labelList = [],
        this._chartViewList = []
    }
    ,
    t.prototype._addLabel = function(e, n, r, a, i) {
        var o = a.style
          , l = a.__hostTarget
          , s = l.textConfig || {}
          , u = a.getComputedTransform()
          , c = a.getBoundingRect().plain();
        Dt.applyTransform(c, c, u),
        u ? da.setLocalTransform(u) : (da.x = da.y = da.rotation = da.originX = da.originY = 0,
        da.scaleX = da.scaleY = 1),
        da.rotation = uo(da.rotation);
        var f = a.__hostTarget, d;
        if (f) {
            d = f.getBoundingRect().plain();
            var v = f.getComputedTransform();
            Dt.applyTransform(d, d, v)
        }
        var h = d && f.getTextGuideLine();
        this._labelList.push({
            label: a,
            labelLine: h,
            seriesModel: r,
            dataIndex: e,
            dataType: n,
            layoutOption: i,
            computedLayoutOption: null,
            rect: c,
            hostRect: d,
            priority: d ? d.width * d.height : 0,
            defaultAttr: {
                ignore: a.ignore,
                labelGuideIgnore: h && h.ignore,
                x: da.x,
                y: da.y,
                scaleX: da.scaleX,
                scaleY: da.scaleY,
                rotation: da.rotation,
                style: {
                    x: o.x,
                    y: o.y,
                    align: o.align,
                    verticalAlign: o.verticalAlign,
                    width: o.width,
                    height: o.height,
                    fontSize: o.fontSize
                },
                cursor: a.cursor,
                attachedPos: s.position,
                attachedRot: s.rotation
            }
        })
    }
    ,
    t.prototype.addLabelsOfSeries = function(e) {
        var n = this;
        this._chartViewList.push(e);
        var r = e.__model
          , a = r.get("labelLayout");
        !(et(a) || Gt(a).length) || e.group.traverse(function(i) {
            if (i.ignore)
                return !0;
            var o = i.getTextContent()
              , l = Ct(i);
            o && !o.disableLabelLayout && n._addLabel(l.dataIndex, l.dataType, r, o, a)
        })
    }
    ,
    t.prototype.updateLayoutConfig = function(e) {
        var n = e.getWidth()
          , r = e.getHeight();
        function a(b, x) {
            return function() {
                vW(b, x)
            }
        }
        for (var i = 0; i < this._labelList.length; i++) {
            var o = this._labelList[i]
              , l = o.label
              , s = l.__hostTarget
              , u = o.defaultAttr
              , c = void 0;
            et(o.layoutOption) ? c = o.layoutOption(kQe(o, s)) : c = o.layoutOption,
            c = c || {},
            o.computedLayoutOption = c;
            var f = Math.PI / 180;
            s && s.setTextConfig({
                local: !1,
                position: c.x != null || c.y != null ? null : u.attachedPos,
                rotation: c.rotate != null ? c.rotate * f : u.attachedRot,
                offset: [c.dx || 0, c.dy || 0]
            });
            var d = !1;
            if (c.x != null ? (l.x = He(c.x, n),
            l.setStyle("x", 0),
            d = !0) : (l.x = u.x,
            l.setStyle("x", u.style.x)),
            c.y != null ? (l.y = He(c.y, r),
            l.setStyle("y", 0),
            d = !0) : (l.y = u.y,
            l.setStyle("y", u.style.y)),
            c.labelLinePoints) {
                var v = s.getTextGuideLine();
                v && (v.setShape({
                    points: c.labelLinePoints
                }),
                d = !1)
            }
            var h = d4(l);
            h.needsUpdateLabelLine = d,
            l.rotation = c.rotate != null ? c.rotate * f : u.rotation,
            l.scaleX = u.scaleX,
            l.scaleY = u.scaleY;
            for (var p = 0; p < pW.length; p++) {
                var g = pW[p];
                l.setStyle(g, c[g] != null ? c[g] : u.style[g])
            }
            if (c.draggable) {
                if (l.draggable = !0,
                l.cursor = "move",
                s) {
                    var m = o.seriesModel;
                    if (o.dataIndex != null) {
                        var y = o.seriesModel.getData(o.dataType);
                        m = y.getItemModel(o.dataIndex)
                    }
                    l.on("drag", a(s, m.getModel("labelLine")))
                }
            } else
                l.off("drag"),
                l.cursor = u.cursor
        }
    }
    ,
    t.prototype.layout = function(e) {
        var n = e.getWidth()
          , r = e.getHeight()
          , a = _se(this._labelList)
          , i = pn(a, function(s) {
            return s.layoutOption.moveOverlap === "shiftX"
        })
          , o = pn(a, function(s) {
            return s.layoutOption.moveOverlap === "shiftY"
        });
        AQe(i, 0, n),
        Pse(o, 0, r);
        var l = pn(a, function(s) {
            return s.layoutOption.hideOverlap
        });
        Mse(l)
    }
    ,
    t.prototype.processLabelsOverall = function() {
        var e = this;
        Z(this._chartViewList, function(n) {
            var r = n.__model
              , a = n.ignoreLabelLineUpdate
              , i = r.isAnimationEnabled();
            n.group.traverse(function(o) {
                if (o.ignore && !o.forceLabelAnimation)
                    return !0;
                var l = !a
                  , s = o.getTextContent();
                !l && s && (l = d4(s).needsUpdateLabelLine),
                l && e._updateLabelLine(o, r),
                i && e._animateLabels(o, r)
            })
        })
    }
    ,
    t.prototype._updateLabelLine = function(e, n) {
        var r = e.getTextContent()
          , a = Ct(e)
          , i = a.dataIndex;
        if (r && i != null) {
            var o = n.getData(a.dataType)
              , l = o.getItemModel(i)
              , s = {}
              , u = o.getItemVisual(i, "style");
            if (u) {
                var c = o.getVisual("drawType");
                s.stroke = u[c]
            }
            var f = l.getModel("labelLine");
            $5(e, F5(l), s),
            vW(e, f)
        }
    }
    ,
    t.prototype._animateLabels = function(e, n) {
        var r = e.getTextContent()
          , a = e.getTextGuideLine();
        if (r && (e.forceLabelAnimation || !r.ignore && !r.invisible && !e.disableLabelAnimation && !Cv(e))) {
            var i = d4(r)
              , o = i.oldLayout
              , l = Ct(e)
              , s = l.dataIndex
              , u = {
                x: r.x,
                y: r.y,
                rotation: r.rotation
            }
              , c = n.getData(l.dataType);
            if (o) {
                r.attr(o);
                var d = e.prevStates;
                d && (Rt(d, "select") >= 0 && r.attr(i.oldLayoutSelect),
                Rt(d, "emphasis") >= 0 && r.attr(i.oldLayoutEmphasis)),
                ln(r, u, n, s)
            } else if (r.attr(u),
            !Oh(r).valueAnimation) {
                var f = Ot(r.style.opacity, 1);
                r.style.opacity = 0,
                $n(r, {
                    style: {
                        opacity: f
                    }
                }, n, s)
            }
            if (i.oldLayout = u,
            r.states.select) {
                var v = i.oldLayoutSelect = {};
                N1(v, u, $1),
                N1(v, r.states.select, $1)
            }
            if (r.states.emphasis) {
                var h = i.oldLayoutEmphasis = {};
                N1(h, u, $1),
                N1(h, r.states.emphasis, $1)
            }
            voe(r, s, c, n, n)
        }
        if (a && !a.ignore && !a.invisible) {
            var i = OQe(a)
              , o = i.oldLayout
              , p = {
                points: a.shape.points
            };
            o ? (a.attr({
                shape: o
            }),
            ln(a, {
                shape: p
            }, n)) : (a.setShape(p),
            a.style.strokePercent = 0,
            $n(a, {
                style: {
                    strokePercent: 1
                }
            }, n)),
            i.oldLayout = p
        }
    }
    ,
    t
}();
const EQe = DQe;
var v4 = an();
function LQe(t) {
    t.registerUpdateLifecycle("series:beforeupdate", function(e, n, r) {
        var a = v4(n).labelManager;
        a || (a = v4(n).labelManager = new EQe),
        a.clearLabels()
    }),
    t.registerUpdateLifecycle("series:layoutlabels", function(e, n, r) {
        var a = v4(n).labelManager;
        r.updatedSeries.forEach(function(i) {
            a.addLabelsOfSeries(n.getViewOfSeriesModel(i))
        }),
        a.updateLayoutConfig(n),
        a.layout(n),
        a.processLabelsOverall()
    })
}
var h4 = Math.sin
  , p4 = Math.cos
  , Ase = Math.PI
  , Mc = Math.PI * 2
  , RQe = 180 / Ase
  , NQe = function() {
    function t() {}
    return t.prototype.reset = function(e) {
        this._start = !0,
        this._d = [],
        this._str = "",
        this._p = Math.pow(10, e || 4)
    }
    ,
    t.prototype.moveTo = function(e, n) {
        this._add("M", e, n)
    }
    ,
    t.prototype.lineTo = function(e, n) {
        this._add("L", e, n)
    }
    ,
    t.prototype.bezierCurveTo = function(e, n, r, a, i, o) {
        this._add("C", e, n, r, a, i, o)
    }
    ,
    t.prototype.quadraticCurveTo = function(e, n, r, a) {
        this._add("Q", e, n, r, a)
    }
    ,
    t.prototype.arc = function(e, n, r, a, i, o) {
        this.ellipse(e, n, r, r, 0, a, i, o)
    }
    ,
    t.prototype.ellipse = function(e, n, r, a, i, o, l, s) {
        var u = l - o
          , c = !s
          , f = Math.abs(u)
          , d = lu(f - Mc) || (c ? u >= Mc : -u >= Mc)
          , v = u > 0 ? u % Mc : u % Mc + Mc
          , h = !1;
        d ? h = !0 : lu(f) ? h = !1 : h = v >= Ase == !!c;
        var p = e + r * p4(o)
          , g = n + a * h4(o);
        this._start && this._add("M", p, g);
        var m = Math.round(i * RQe);
        if (d) {
            var y = 1 / this._p
              , b = (c ? 1 : -1) * (Mc - y);
            this._add("A", r, a, m, 1, +c, e + r * p4(o + b), n + a * h4(o + b)),
            y > .01 && this._add("A", r, a, m, 0, +c, p, g)
        } else {
            var x = e + r * p4(l)
              , C = n + a * h4(l);
            this._add("A", r, a, m, +h, +c, x, C)
        }
    }
    ,
    t.prototype.rect = function(e, n, r, a) {
        this._add("M", e, n),
        this._add("l", r, 0),
        this._add("l", 0, a),
        this._add("l", -r, 0),
        this._add("Z")
    }
    ,
    t.prototype.closePath = function() {
        this._d.length > 0 && this._add("Z")
    }
    ,
    t.prototype._add = function(e, n, r, a, i, o, l, s, u) {
        for (var c = [], f = this._p, d = 1; d < arguments.length; d++) {
            var v = arguments[d];
            if (isNaN(v)) {
                this._invalid = !0;
                return
            }
            c.push(Math.round(v * f) / f)
        }
        this._d.push(e + c.join(" ")),
        this._start = e === "Z"
    }
    ,
    t.prototype.generateStr = function() {
        this._str = this._invalid ? "" : this._d.join(""),
        this._d = []
    }
    ,
    t.prototype.getStr = function() {
        return this._str
    }
    ,
    t
}();
const Ise = NQe;
var Kg = "none"
  , $Qe = Math.round;
function FQe(t) {
    var e = t.fill;
    return e != null && e !== Kg
}
function BQe(t) {
    var e = t.stroke;
    return e != null && e !== Kg
}
var ZI = ["lineCap", "miterLimit", "lineJoin"]
  , VQe = Le(ZI, function(t) {
    return "stroke-" + t.toLowerCase()
});
function zQe(t, e, n, r) {
    var a = e.opacity == null ? 1 : e.opacity;
    if (n instanceof Kr) {
        t("opacity", a);
        return
    }
    if (FQe(e)) {
        var i = N0(e.fill);
        t("fill", i.color);
        var o = e.fillOpacity != null ? e.fillOpacity * i.opacity * a : i.opacity * a;
        (r || o < 1) && t("fill-opacity", o)
    } else
        t("fill", Kg);
    if (BQe(e)) {
        var l = N0(e.stroke);
        t("stroke", l.color);
        var s = e.strokeNoScale ? n.getLineScale() : 1
          , u = s ? (e.lineWidth || 0) / s : 0
          , c = e.strokeOpacity != null ? e.strokeOpacity * l.opacity * a : l.opacity * a
          , f = e.strokeFirst;
        if ((r || u !== 1) && t("stroke-width", u),
        (r || f) && t("paint-order", f ? "stroke" : "fill"),
        (r || c < 1) && t("stroke-opacity", c),
        e.lineDash) {
            var d = b5(n)
              , v = d[0]
              , h = d[1];
            v && (h = $Qe(h || 0),
            t("stroke-dasharray", v.join(",")),
            (h || r) && t("stroke-dashoffset", h))
        } else
            r && t("stroke-dasharray", Kg);
        for (var p = 0; p < ZI.length; p++) {
            var g = ZI[p];
            if (r || e[g] !== AS[g]) {
                var m = e[g] || AS[g];
                m && t(VQe[p], m)
            }
        }
    } else
        r && t("stroke", Kg)
}
var kse = "http://www.w3.org/2000/svg"
  , Ose = "http://www.w3.org/1999/xlink"
  , HQe = "http://www.w3.org/2000/xmlns/"
  , jQe = "http://www.w3.org/XML/1998/namespace";
function Dse(t) {
    return document.createElementNS(kse, t)
}
function Dr(t, e, n, r, a) {
    return {
        tag: t,
        attrs: n || {},
        children: r,
        text: a,
        key: e
    }
}
function WQe(t, e) {
    var n = [];
    if (e)
        for (var r in e) {
            var a = e[r]
              , i = r;
            a !== !1 && (a !== !0 && a != null && (i += '="' + a + '"'),
            n.push(i))
        }
    return "<" + t + " " + n.join(" ") + ">"
}
function GQe(t) {
    return "</" + t + ">"
}
function B5(t, e) {
    e = e || {};
    var n = e.newline ? `
` : "";
    function r(a) {
        var i = a.children
          , o = a.tag
          , l = a.attrs
          , s = a.text;
        return WQe(o, l) + (o !== "style" ? Sa(s) : s || "") + (i ? "" + n + Le(i, function(u) {
            return r(u)
        }).join(n) + n : "") + GQe(o)
    }
    return r(t)
}
function KQe(t, e, n) {
    n = n || {};
    var r = n.newline ? `
` : ""
      , a = " {" + r
      , i = r + "}"
      , o = Le(Gt(t), function(s) {
        return s + a + Le(Gt(t[s]), function(u) {
            return u + ":" + t[s][u] + ";"
        }).join(r) + i
    }).join(r)
      , l = Le(Gt(e), function(s) {
        return "@keyframes " + s + a + Le(Gt(e[s]), function(u) {
            return u + a + Le(Gt(e[s][u]), function(c) {
                var f = e[s][u][c];
                return c === "d" && (f = 'path("' + f + '")'),
                c + ":" + f + ";"
            }).join(r) + i
        }).join(r) + i
    }).join(r);
    return !o && !l ? "" : ["<![CDATA[", o, l, "]]>"].join(r)
}
function QI(t) {
    return {
        zrId: t,
        shadowCache: {},
        patternCache: {},
        gradientCache: {},
        clipPathCache: {},
        defs: {},
        cssNodes: {},
        cssAnims: {},
        cssClassIdx: 0,
        cssAnimIdx: 0,
        shadowIdx: 0,
        gradientIdx: 0,
        patternIdx: 0,
        clipPathIdx: 0
    }
}
function gW(t, e, n, r) {
    return Dr("svg", "root", {
        width: t,
        height: e,
        xmlns: kse,
        "xmlns:xlink": Ose,
        version: "1.1",
        baseProfile: "full",
        viewBox: r ? "0 0 " + t + " " + e : !1
    }, n)
}
var mW = {
    cubicIn: "0.32,0,0.67,0",
    cubicOut: "0.33,1,0.68,1",
    cubicInOut: "0.65,0,0.35,1",
    quadraticIn: "0.11,0,0.5,0",
    quadraticOut: "0.5,1,0.89,1",
    quadraticInOut: "0.45,0,0.55,1",
    quarticIn: "0.5,0,0.75,0",
    quarticOut: "0.25,1,0.5,1",
    quarticInOut: "0.76,0,0.24,1",
    quinticIn: "0.64,0,0.78,0",
    quinticOut: "0.22,1,0.36,1",
    quinticInOut: "0.83,0,0.17,1",
    sinusoidalIn: "0.12,0,0.39,0",
    sinusoidalOut: "0.61,1,0.88,1",
    sinusoidalInOut: "0.37,0,0.63,1",
    exponentialIn: "0.7,0,0.84,0",
    exponentialOut: "0.16,1,0.3,1",
    exponentialInOut: "0.87,0,0.13,1",
    circularIn: "0.55,0,1,0.45",
    circularOut: "0,0.55,0.45,1",
    circularInOut: "0.85,0,0.15,1"
}
  , Ec = "transform-origin";
function UQe(t, e, n) {
    var r = Me({}, t.shape);
    Me(r, e),
    t.buildPath(n, r);
    var a = new Ise;
    return a.reset(Kae(t)),
    n.rebuildPath(a, 1),
    a.generateStr(),
    a.getStr()
}
function YQe(t, e) {
    var n = e.originX
      , r = e.originY;
    (n || r) && (t[Ec] = n + "px " + r + "px")
}
var qQe = {
    fill: "fill",
    opacity: "opacity",
    lineWidth: "stroke-width",
    lineDashOffset: "stroke-dashoffset"
};
function Ese(t, e) {
    var n = e.zrId + "-ani-" + e.cssAnimIdx++;
    return e.cssAnims[n] = t,
    n
}
function XQe(t, e, n) {
    var r = t.shape.paths, a = {}, i, o;
    if (Z(r, function(s) {
        var u = QI(n.zrId);
        u.animation = !0,
        M2(s, {}, u, !0);
        var c = u.cssAnims
          , f = u.cssNodes
          , d = Gt(c)
          , v = d.length;
        if (!!v) {
            o = d[v - 1];
            var h = c[o];
            for (var p in h) {
                var g = h[p];
                a[p] = a[p] || {
                    d: ""
                },
                a[p].d += g.d || ""
            }
            for (var m in f) {
                var y = f[m].animation;
                y.indexOf(o) >= 0 && (i = y)
            }
        }
    }),
    !!i) {
        e.d = !1;
        var l = Ese(a, n);
        return i.replace(o, l)
    }
}
function yW(t) {
    return Ge(t) ? mW[t] ? "cubic-bezier(" + mW[t] + ")" : A6(t) ? t : "" : ""
}
function M2(t, e, n, r) {
    var a = t.animators
      , i = a.length
      , o = [];
    if (t instanceof u2) {
        var l = XQe(t, e, n);
        if (l)
            o.push(l);
        else if (!i)
            return
    } else if (!i)
        return;
    for (var s = {}, u = 0; u < i; u++) {
        var c = a[u]
          , f = [c.getMaxTime() / 1e3 + "s"]
          , d = yW(c.getClip().easing)
          , v = c.getDelay();
        d ? f.push(d) : f.push("linear"),
        v && f.push(v / 1e3 + "s"),
        c.getLoop() && f.push("infinite");
        var h = f.join(" ");
        s[h] = s[h] || [h, []],
        s[h][1].push(c)
    }
    function p(y) {
        var b = y[1]
          , x = b.length
          , C = {}
          , S = {}
          , w = {}
          , T = "animation-timing-function";
        function P(te, ne, ie) {
            for (var ae = te.getTracks(), q = te.getMaxTime(), F = 0; F < ae.length; F++) {
                var H = ae[F];
                if (H.needsAnimate()) {
                    var ee = H.keyframes
                      , re = H.propName;
                    if (ie && (re = ie(re)),
                    re)
                        for (var ue = 0; ue < ee.length; ue++) {
                            var ve = ee[ue]
                              , fe = Math.round(ve.time / q * 100) + "%"
                              , ce = yW(ve.easing)
                              , le = ve.rawValue;
                            (Ge(le) || rn(le)) && (ne[fe] = ne[fe] || {},
                            ne[fe][re] = ve.rawValue,
                            ce && (ne[fe][T] = ce))
                        }
                }
            }
        }
        for (var M = 0; M < x; M++) {
            var A = b[M]
              , O = A.targetName;
            O ? O === "shape" && P(A, S) : !r && P(A, C)
        }
        for (var k in C) {
            var D = {};
            Zae(D, t),
            Me(D, C[k]);
            var E = Uae(D)
              , L = C[k][T];
            w[k] = E ? {
                transform: E
            } : {},
            YQe(w[k], D),
            L && (w[k][T] = L)
        }
        var N, R = !0;
        for (var k in S) {
            w[k] = w[k] || {};
            var $ = !N
              , L = S[k][T];
            $ && (N = new yl);
            var W = N.len();
            N.reset(),
            w[k].d = UQe(t, S[k], N);
            var B = N.len();
            if (!$ && W !== B) {
                R = !1;
                break
            }
            L && (w[k][T] = L)
        }
        if (!R)
            for (var k in w)
                delete w[k].d;
        if (!r)
            for (var M = 0; M < x; M++) {
                var A = b[M]
                  , O = A.targetName;
                O === "style" && P(A, w, function(ae) {
                    return qQe[ae]
                })
            }
        for (var G = Gt(w), K = !0, V, M = 1; M < G.length; M++) {
            var U = G[M - 1]
              , X = G[M];
            if (w[U][Ec] !== w[X][Ec]) {
                K = !1;
                break
            }
            V = w[U][Ec]
        }
        if (K && V) {
            for (var k in w)
                w[k][Ec] && delete w[k][Ec];
            e[Ec] = V
        }
        if (pn(G, function(te) {
            return Gt(w[te]).length > 0
        }).length) {
            var Y = Ese(w, n);
            return Y + " " + y[0] + " both"
        }
    }
    for (var g in s) {
        var l = p(s[g]);
        l && o.push(l)
    }
    if (o.length) {
        var m = n.zrId + "-cls-" + n.cssClassIdx++;
        n.cssNodes["." + m] = {
            animation: o.join(",")
        },
        e.class = m
    }
}
var Z0 = Math.round;
function Lse(t) {
    return t && Ge(t.src)
}
function Rse(t) {
    return t && et(t.toDataURL)
}
function V5(t, e, n, r) {
    zQe(function(a, i) {
        var o = a === "fill" || a === "stroke";
        o && Gae(i) ? $se(e, t, a, r) : o && k6(i) ? Fse(n, t, a, r) : t[a] = i
    }, e, n, !1),
    rJe(n, t, r)
}
function bW(t) {
    return lu(t[0] - 1) && lu(t[1]) && lu(t[2]) && lu(t[3] - 1)
}
function ZQe(t) {
    return lu(t[4]) && lu(t[5])
}
function z5(t, e, n) {
    if (e && !(ZQe(e) && bW(e))) {
        var r = n ? 10 : 1e4;
        t.transform = bW(e) ? "translate(" + Z0(e[4] * r) / r + " " + Z0(e[5] * r) / r + ")" : DWe(e)
    }
}
function xW(t, e, n) {
    for (var r = t.points, a = [], i = 0; i < r.length; i++)
        a.push(Z0(r[i][0] * n) / n),
        a.push(Z0(r[i][1] * n) / n);
    e.points = a.join(" ")
}
function SW(t) {
    return !t.smooth
}
function QQe(t) {
    var e = Le(t, function(n) {
        return typeof n == "string" ? [n, n] : n
    });
    return function(n, r, a) {
        for (var i = 0; i < e.length; i++) {
            var o = e[i]
              , l = n[o[0]];
            l != null && (r[o[1]] = Z0(l * a) / a)
        }
    }
}
var JQe = {
    circle: [QQe(["cx", "cy", "r"])],
    polyline: [xW, SW],
    polygon: [xW, SW]
};
function eJe(t) {
    for (var e = t.animators, n = 0; n < e.length; n++)
        if (e[n].targetName === "shape")
            return !0;
    return !1
}
function Nse(t, e) {
    var n = t.style
      , r = t.shape
      , a = JQe[t.type]
      , i = {}
      , o = e.animation
      , l = "path"
      , s = t.style.strokePercent
      , u = e.compress && Kae(t) || 4;
    if (a && !e.willUpdate && !(a[1] && !a[1](r)) && !(o && eJe(t)) && !(s < 1)) {
        l = t.type;
        var c = Math.pow(10, u);
        a[0](r, i, c)
    } else {
        var f = !t.path || t.shapeChanged();
        t.path || t.createPathProxy();
        var d = t.path;
        f && (d.beginPath(),
        t.buildPath(d, t.shape),
        t.pathUpdated());
        var v = d.getVersion()
          , h = t
          , p = h.__svgPathBuilder;
        (h.__svgPathVersion !== v || !p || s !== h.__svgPathStrokePercent) && (p || (p = h.__svgPathBuilder = new Ise),
        p.reset(u),
        d.rebuildPath(p, s),
        p.generateStr(),
        h.__svgPathVersion = v,
        h.__svgPathStrokePercent = s),
        i.d = p.getStr()
    }
    return z5(i, t.transform),
    V5(i, n, t, e),
    e.animation && M2(t, i, e),
    Dr(l, t.id + "", i)
}
function tJe(t, e) {
    var n = t.style
      , r = n.image;
    if (r && !Ge(r) && (Lse(r) ? r = r.src : Rse(r) && (r = r.toDataURL())),
    !!r) {
        var a = n.x || 0
          , i = n.y || 0
          , o = n.width
          , l = n.height
          , s = {
            href: r,
            width: o,
            height: l
        };
        return a && (s.x = a),
        i && (s.y = i),
        z5(s, t.transform),
        V5(s, n, t, e),
        e.animation && M2(t, s, e),
        Dr("image", t.id + "", s)
    }
}
function nJe(t, e) {
    var n = t.style
      , r = n.text;
    if (r != null && (r += ""),
    !(!r || isNaN(n.x) || isNaN(n.y))) {
        var a = n.font || ku
          , i = n.x || 0
          , o = LWe(n.y || 0, Jw(a), n.textBaseline)
          , l = EWe[n.textAlign] || n.textAlign
          , s = {
            "dominant-baseline": "central",
            "text-anchor": l
        };
        if (kie(n)) {
            var u = ""
              , c = n.fontStyle
              , f = Iie(n.fontSize);
            if (!parseFloat(f))
                return;
            var d = n.fontFamily || hae
              , v = n.fontWeight;
            u += "font-size:" + f + ";font-family:" + d + ";",
            c && c !== "normal" && (u += "font-style:" + c + ";"),
            v && v !== "normal" && (u += "font-weight:" + v + ";"),
            s.style = u
        } else
            s.style = "font: " + a;
        return r.match(/\s/) && (s["xml:space"] = "preserve"),
        i && (s.x = i),
        o && (s.y = o),
        z5(s, t.transform),
        V5(s, n, t, e),
        e.animation && M2(t, s, e),
        Dr("text", t.id + "", s, void 0, r)
    }
}
function CW(t, e) {
    if (t instanceof jt)
        return Nse(t, e);
    if (t instanceof Kr)
        return tJe(t, e);
    if (t instanceof B0)
        return nJe(t, e)
}
function rJe(t, e, n) {
    var r = t.style;
    if (RWe(r)) {
        var a = NWe(t)
          , i = n.shadowCache
          , o = i[a];
        if (!o) {
            var l = t.getGlobalScale()
              , s = l[0]
              , u = l[1];
            if (!s || !u)
                return;
            var c = r.shadowOffsetX || 0
              , f = r.shadowOffsetY || 0
              , d = r.shadowBlur
              , v = N0(r.shadowColor)
              , h = v.opacity
              , p = v.color
              , g = d / 2 / s
              , m = d / 2 / u
              , y = g + " " + m;
            o = n.zrId + "-s" + n.shadowIdx++,
            n.defs[o] = Dr("filter", o, {
                id: o,
                x: "-100%",
                y: "-100%",
                width: "300%",
                height: "300%"
            }, [Dr("feDropShadow", "", {
                dx: c / s,
                dy: f / u,
                stdDeviation: y,
                "flood-color": p,
                "flood-opacity": h
            })]),
            i[a] = o
        }
        e.filter = Qw(o)
    }
}
function $se(t, e, n, r) {
    var a = t[n], i, o = {
        gradientUnits: a.global ? "userSpaceOnUse" : "objectBoundingBox"
    };
    if (jae(a))
        i = "linearGradient",
        o.x1 = a.x,
        o.y1 = a.y,
        o.x2 = a.x2,
        o.y2 = a.y2;
    else if (Wae(a))
        i = "radialGradient",
        o.cx = Ot(a.x, .5),
        o.cy = Ot(a.y, .5),
        o.r = Ot(a.r, .5);
    else
        return;
    for (var l = a.colorStops, s = [], u = 0, c = l.length; u < c; ++u) {
        var f = sI(l[u].offset) * 100 + "%"
          , d = l[u].color
          , v = N0(d)
          , h = v.color
          , p = v.opacity
          , g = {
            offset: f
        };
        g["stop-color"] = h,
        p < 1 && (g["stop-opacity"] = p),
        s.push(Dr("stop", u + "", g))
    }
    var m = Dr(i, "", o, s)
      , y = B5(m)
      , b = r.gradientCache
      , x = b[y];
    x || (x = r.zrId + "-g" + r.gradientIdx++,
    b[y] = x,
    o.id = x,
    r.defs[x] = Dr(i, x, o, s)),
    e[n] = Qw(x)
}
function Fse(t, e, n, r) {
    var a = t.style[n], i = t.getBoundingRect(), o = {}, l = a.repeat, s = l === "no-repeat", u = l === "repeat-x", c = l === "repeat-y", f;
    if (Hae(a)) {
        var d = a.imageWidth
          , v = a.imageHeight
          , h = void 0
          , p = a.image;
        if (Ge(p) ? h = p : Lse(p) ? h = p.src : Rse(p) && (h = p.toDataURL()),
        typeof Image == "undefined") {
            var g = "Image width/height must been given explictly in svg-ssr renderer.";
            la(d, g),
            la(v, g)
        } else if (d == null || v == null) {
            var m = function(M, A) {
                if (M) {
                    var O = M.elm
                      , k = d || A.width
                      , D = v || A.height;
                    M.tag === "pattern" && (u ? (D = 1,
                    k /= i.width) : c && (k = 1,
                    D /= i.height)),
                    M.attrs.width = k,
                    M.attrs.height = D,
                    O && (O.setAttribute("width", k),
                    O.setAttribute("height", D))
                }
            }
              , y = V6(h, null, t, function(M) {
                s || m(S, M),
                m(f, M)
            });
            y && y.width && y.height && (d = d || y.width,
            v = v || y.height)
        }
        f = Dr("image", "img", {
            href: h,
            width: d,
            height: v
        }),
        o.width = d,
        o.height = v
    } else
        a.svgElement && (f = ut(a.svgElement),
        o.width = a.svgWidth,
        o.height = a.svgHeight);
    if (!!f) {
        var b, x;
        s ? b = x = 1 : u ? (x = 1,
        b = o.width / i.width) : c ? (b = 1,
        x = o.height / i.height) : o.patternUnits = "userSpaceOnUse",
        b != null && !isNaN(b) && (o.width = b),
        x != null && !isNaN(x) && (o.height = x);
        var C = Uae(a);
        C && (o.patternTransform = C);
        var S = Dr("pattern", "", o, [f])
          , w = B5(S)
          , T = r.patternCache
          , P = T[w];
        P || (P = r.zrId + "-p" + r.patternIdx++,
        T[w] = P,
        o.id = P,
        S = r.defs[P] = Dr("pattern", P, o, [f])),
        e[n] = Qw(P)
    }
}
function aJe(t, e, n) {
    var r = n.clipPathCache
      , a = n.defs
      , i = r[t.id];
    if (!i) {
        i = n.zrId + "-c" + n.clipPathIdx++;
        var o = {
            id: i
        };
        r[t.id] = i,
        a[i] = Dr("clipPath", i, o, [Nse(t, n)])
    }
    e["clip-path"] = Qw(i)
}
function wW(t) {
    return document.createTextNode(t)
}
function qc(t, e, n) {
    t.insertBefore(e, n)
}
function _W(t, e) {
    t.removeChild(e)
}
function TW(t, e) {
    t.appendChild(e)
}
function Bse(t) {
    return t.parentNode
}
function Vse(t) {
    return t.nextSibling
}
function g4(t, e) {
    t.textContent = e
}
var PW = 58
  , iJe = 120
  , oJe = Dr("", "");
function JI(t) {
    return t === void 0
}
function qo(t) {
    return t !== void 0
}
function lJe(t, e, n) {
    for (var r = {}, a = e; a <= n; ++a) {
        var i = t[a].key;
        i !== void 0 && (r[i] = a)
    }
    return r
}
function eg(t, e) {
    var n = t.key === e.key
      , r = t.tag === e.tag;
    return r && n
}
function Q0(t) {
    var e, n = t.children, r = t.tag;
    if (qo(r)) {
        var a = t.elm = Dse(r);
        if (H5(oJe, t),
        ke(n))
            for (e = 0; e < n.length; ++e) {
                var i = n[e];
                i != null && TW(a, Q0(i))
            }
        else
            qo(t.text) && !st(t.text) && TW(a, wW(t.text))
    } else
        t.elm = wW(t.text);
    return t.elm
}
function zse(t, e, n, r, a) {
    for (; r <= a; ++r) {
        var i = n[r];
        i != null && qc(t, Q0(i), e)
    }
}
function qS(t, e, n, r) {
    for (; n <= r; ++n) {
        var a = e[n];
        if (a != null)
            if (qo(a.tag)) {
                var i = Bse(a.elm);
                _W(i, a.elm)
            } else
                _W(t, a.elm)
    }
}
function H5(t, e) {
    var n, r = e.elm, a = t && t.attrs || {}, i = e.attrs || {};
    if (a !== i) {
        for (n in i) {
            var o = i[n]
              , l = a[n];
            l !== o && (o === !0 ? r.setAttribute(n, "") : o === !1 ? r.removeAttribute(n) : n.charCodeAt(0) !== iJe ? r.setAttribute(n, o) : n === "xmlns:xlink" || n === "xmlns" ? r.setAttributeNS(HQe, n, o) : n.charCodeAt(3) === PW ? r.setAttributeNS(jQe, n, o) : n.charCodeAt(5) === PW ? r.setAttributeNS(Ose, n, o) : r.setAttribute(n, o))
        }
        for (n in a)
            n in i || r.removeAttribute(n)
    }
}
function sJe(t, e, n) {
    for (var r = 0, a = 0, i = e.length - 1, o = e[0], l = e[i], s = n.length - 1, u = n[0], c = n[s], f, d, v, h; r <= i && a <= s; )
        o == null ? o = e[++r] : l == null ? l = e[--i] : u == null ? u = n[++a] : c == null ? c = n[--s] : eg(o, u) ? (Yd(o, u),
        o = e[++r],
        u = n[++a]) : eg(l, c) ? (Yd(l, c),
        l = e[--i],
        c = n[--s]) : eg(o, c) ? (Yd(o, c),
        qc(t, o.elm, Vse(l.elm)),
        o = e[++r],
        c = n[--s]) : eg(l, u) ? (Yd(l, u),
        qc(t, l.elm, o.elm),
        l = e[--i],
        u = n[++a]) : (JI(f) && (f = lJe(e, r, i)),
        d = f[u.key],
        JI(d) ? qc(t, Q0(u), o.elm) : (v = e[d],
        v.tag !== u.tag ? qc(t, Q0(u), o.elm) : (Yd(v, u),
        e[d] = void 0,
        qc(t, v.elm, o.elm))),
        u = n[++a]);
    (r <= i || a <= s) && (r > i ? (h = n[s + 1] == null ? null : n[s + 1].elm,
    zse(t, h, n, a, s)) : qS(t, e, r, i))
}
function Yd(t, e) {
    var n = e.elm = t.elm
      , r = t.children
      , a = e.children;
    t !== e && (H5(t, e),
    JI(e.text) ? qo(r) && qo(a) ? r !== a && sJe(n, r, a) : qo(a) ? (qo(t.text) && g4(n, ""),
    zse(n, null, a, 0, a.length - 1)) : qo(r) ? qS(n, r, 0, r.length - 1) : qo(t.text) && g4(n, "") : t.text !== e.text && (qo(r) && qS(n, r, 0, r.length - 1),
    g4(n, e.text)))
}
function uJe(t, e) {
    if (eg(t, e))
        Yd(t, e);
    else {
        var n = t.elm
          , r = Bse(n);
        Q0(e),
        r !== null && (qc(r, e.elm, Vse(n)),
        qS(r, [t], 0, 0))
    }
    return e
}
var cJe = 0
  , fJe = function() {
    function t(e, n, r) {
        if (this.type = "svg",
        this.refreshHover = MW(),
        this.configLayer = MW(),
        this.storage = n,
        this._opts = r = Me({}, r),
        this.root = e,
        this._id = "zr" + cJe++,
        this._oldVNode = gW(r.width, r.height),
        e && !r.ssr) {
            var a = this._viewport = document.createElement("div");
            a.style.cssText = "position:relative;overflow:hidden";
            var i = this._svgDom = this._oldVNode.elm = Dse("svg");
            H5(null, this._oldVNode),
            a.appendChild(i),
            e.appendChild(a)
        }
        this.resize(r.width, r.height)
    }
    return t.prototype.getType = function() {
        return this.type
    }
    ,
    t.prototype.getViewportRoot = function() {
        return this._viewport
    }
    ,
    t.prototype.getViewportRootOffset = function() {
        var e = this.getViewportRoot();
        if (e)
            return {
                offsetLeft: e.offsetLeft || 0,
                offsetTop: e.offsetTop || 0
            }
    }
    ,
    t.prototype.getSvgDom = function() {
        return this._svgDom
    }
    ,
    t.prototype.refresh = function() {
        if (this.root) {
            var e = this.renderToVNode({
                willUpdate: !0
            });
            e.attrs.style = "position:absolute;left:0;top:0;user-select:none",
            uJe(this._oldVNode, e),
            this._oldVNode = e
        }
    }
    ,
    t.prototype.renderOneToVNode = function(e) {
        return CW(e, QI(this._id))
    }
    ,
    t.prototype.renderToVNode = function(e) {
        e = e || {};
        var n = this.storage.getDisplayList(!0)
          , r = this._width
          , a = this._height
          , i = QI(this._id);
        i.animation = e.animation,
        i.willUpdate = e.willUpdate,
        i.compress = e.compress;
        var o = []
          , l = this._bgVNode = dJe(r, a, this._backgroundColor, i);
        l && o.push(l);
        var s = e.compress ? null : this._mainVNode = Dr("g", "main", {}, []);
        this._paintList(n, i, s ? s.children : o),
        s && o.push(s);
        var u = Le(Gt(i.defs), function(d) {
            return i.defs[d]
        });
        if (u.length && o.push(Dr("defs", "defs", {}, u)),
        e.animation) {
            var c = KQe(i.cssNodes, i.cssAnims, {
                newline: !0
            });
            if (c) {
                var f = Dr("style", "stl", {}, [], c);
                o.push(f)
            }
        }
        return gW(r, a, o, e.useViewBox)
    }
    ,
    t.prototype.renderToString = function(e) {
        return e = e || {},
        B5(this.renderToVNode({
            animation: Ot(e.cssAnimation, !0),
            willUpdate: !1,
            compress: !0,
            useViewBox: Ot(e.useViewBox, !0)
        }), {
            newline: !0
        })
    }
    ,
    t.prototype.setBackgroundColor = function(e) {
        this._backgroundColor = e
    }
    ,
    t.prototype.getSvgRoot = function() {
        return this._mainVNode && this._mainVNode.elm
    }
    ,
    t.prototype._paintList = function(e, n, r) {
        for (var a = e.length, i = [], o = 0, l, s, u = 0, c = 0; c < a; c++) {
            var f = e[c];
            if (!f.invisible) {
                var d = f.__clipPaths
                  , v = d && d.length || 0
                  , h = s && s.length || 0
                  , p = void 0;
                for (p = Math.max(v - 1, h - 1); p >= 0 && !(d && s && d[p] === s[p]); p--)
                    ;
                for (var g = h - 1; g > p; g--)
                    o--,
                    l = i[o - 1];
                for (var m = p + 1; m < v; m++) {
                    var y = {};
                    aJe(d[m], y, n);
                    var b = Dr("g", "clip-g-" + u++, y, []);
                    (l ? l.children : r).push(b),
                    i[o++] = b,
                    l = b
                }
                s = d;
                var x = CW(f, n);
                x && (l ? l.children : r).push(x)
            }
        }
    }
    ,
    t.prototype.resize = function(e, n) {
        var r = this._opts
          , a = this.root
          , i = this._viewport;
        if (e != null && (r.width = e),
        n != null && (r.height = n),
        a && i && (i.style.display = "none",
        e = av(a, 0, r),
        n = av(a, 1, r),
        i.style.display = ""),
        this._width !== e || this._height !== n) {
            if (this._width = e,
            this._height = n,
            i) {
                var o = i.style;
                o.width = e + "px",
                o.height = n + "px"
            }
            if (k6(this._backgroundColor))
                this.refresh();
            else {
                var l = this._svgDom;
                l && (l.setAttribute("width", e),
                l.setAttribute("height", n));
                var s = this._bgVNode && this._bgVNode.elm;
                s && (s.setAttribute("width", e),
                s.setAttribute("height", n))
            }
        }
    }
    ,
    t.prototype.getWidth = function() {
        return this._width
    }
    ,
    t.prototype.getHeight = function() {
        return this._height
    }
    ,
    t.prototype.dispose = function() {
        this.root && (this.root.innerHTML = ""),
        this._svgDom = this._viewport = this.storage = this._oldVNode = this._bgVNode = this._mainVNode = null
    }
    ,
    t.prototype.clear = function() {
        this._svgDom && (this._svgDom.innerHTML = null),
        this._oldVNode = null
    }
    ,
    t.prototype.toDataURL = function(e) {
        var n = this.renderToString()
          , r = "data:image/svg+xml;";
        return e ? (n = FWe(n),
        n && r + "base64," + n) : r + "charset=UTF-8," + encodeURIComponent(n)
    }
    ,
    t
}();
function MW(t) {
    return function() {}
}
function dJe(t, e, n, r) {
    var a;
    if (n && n !== "none")
        if (a = Dr("rect", "bg", {
            width: t,
            height: e,
            x: "0",
            y: "0",
            id: "0"
        }),
        Gae(n))
            $se({
                fill: n
            }, a.attrs, "fill", r);
        else if (k6(n))
            Fse({
                style: {
                    fill: n
                },
                dirty: nr,
                getBoundingRect: function() {
                    return {
                        width: t,
                        height: e
                    }
                }
            }, a.attrs, "fill", r);
        else {
            var i = N0(n)
              , o = i.color
              , l = i.opacity;
            a.attrs.fill = o,
            l < 1 && (a.attrs["fill-opacity"] = l)
        }
    return a
}
const vJe = fJe;
function hJe(t) {
    t.registerPainter("svg", vJe)
}
function AW(t, e, n) {
    var r = _o.createCanvas()
      , a = e.getWidth()
      , i = e.getHeight()
      , o = r.style;
    return o && (o.position = "absolute",
    o.left = "0",
    o.top = "0",
    o.width = a + "px",
    o.height = i + "px",
    r.setAttribute("data-zr-dom-id", t)),
    r.width = a * n,
    r.height = i * n,
    r
}
var pJe = function(t) {
    ge(e, t);
    function e(n, r, a) {
        var i = t.call(this) || this;
        i.motionBlur = !1,
        i.lastFrameAlpha = .7,
        i.dpr = 1,
        i.virtual = !1,
        i.config = {},
        i.incremental = !1,
        i.zlevel = 0,
        i.maxRepaintRectCount = 5,
        i.__dirty = !0,
        i.__firstTimePaint = !0,
        i.__used = !1,
        i.__drawIndex = 0,
        i.__startIndex = 0,
        i.__endIndex = 0,
        i.__prevStartIndex = null,
        i.__prevEndIndex = null;
        var o;
        a = a || PS,
        typeof n == "string" ? o = AW(n, r, a) : st(n) && (o = n,
        n = o.id),
        i.id = n,
        i.dom = o;
        var l = o.style;
        return l && (T6(o),
        o.onselectstart = function() {
            return !1
        }
        ,
        l.padding = "0",
        l.margin = "0",
        l.borderWidth = "0"),
        i.painter = r,
        i.dpr = a,
        i
    }
    return e.prototype.getElementCount = function() {
        return this.__endIndex - this.__startIndex
    }
    ,
    e.prototype.afterBrush = function() {
        this.__prevStartIndex = this.__startIndex,
        this.__prevEndIndex = this.__endIndex
    }
    ,
    e.prototype.initContext = function() {
        this.ctx = this.dom.getContext("2d"),
        this.ctx.dpr = this.dpr
    }
    ,
    e.prototype.setUnpainted = function() {
        this.__firstTimePaint = !0
    }
    ,
    e.prototype.createBackBuffer = function() {
        var n = this.dpr;
        this.domBack = AW("back-" + this.id, this.painter, n),
        this.ctxBack = this.domBack.getContext("2d"),
        n !== 1 && this.ctxBack.scale(n, n)
    }
    ,
    e.prototype.createRepaintRects = function(n, r, a, i) {
        if (this.__firstTimePaint)
            return this.__firstTimePaint = !1,
            null;
        var o = []
          , l = this.maxRepaintRectCount
          , s = !1
          , u = new Dt(0,0,0,0);
        function c(y) {
            if (!(!y.isFinite() || y.isZero()))
                if (o.length === 0) {
                    var b = new Dt(0,0,0,0);
                    b.copy(y),
                    o.push(b)
                } else {
                    for (var x = !1, C = 1 / 0, S = 0, w = 0; w < o.length; ++w) {
                        var T = o[w];
                        if (T.intersect(y)) {
                            var P = new Dt(0,0,0,0);
                            P.copy(T),
                            P.union(y),
                            o[w] = P,
                            x = !0;
                            break
                        } else if (s) {
                            u.copy(y),
                            u.union(T);
                            var M = y.width * y.height
                              , A = T.width * T.height
                              , O = u.width * u.height
                              , k = O - M - A;
                            k < C && (C = k,
                            S = w)
                        }
                    }
                    if (s && (o[S].union(y),
                    x = !0),
                    !x) {
                        var b = new Dt(0,0,0,0);
                        b.copy(y),
                        o.push(b)
                    }
                    s || (s = o.length >= l)
                }
        }
        for (var f = this.__startIndex; f < this.__endIndex; ++f) {
            var d = n[f];
            if (d) {
                var v = d.shouldBePainted(a, i, !0, !0)
                  , h = d.__isRendered && (d.__dirty & ei || !v) ? d.getPrevPaintRect() : null;
                h && c(h);
                var p = v && (d.__dirty & ei || !d.__isRendered) ? d.getPaintRect() : null;
                p && c(p)
            }
        }
        for (var f = this.__prevStartIndex; f < this.__prevEndIndex; ++f) {
            var d = r[f]
              , v = d.shouldBePainted(a, i, !0, !0);
            if (d && (!v || !d.__zr) && d.__isRendered) {
                var h = d.getPrevPaintRect();
                h && c(h)
            }
        }
        var g;
        do {
            g = !1;
            for (var f = 0; f < o.length; ) {
                if (o[f].isZero()) {
                    o.splice(f, 1);
                    continue
                }
                for (var m = f + 1; m < o.length; )
                    o[f].intersect(o[m]) ? (g = !0,
                    o[f].union(o[m]),
                    o.splice(m, 1)) : m++;
                f++
            }
        } while (g);
        return this._paintRects = o,
        o
    }
    ,
    e.prototype.debugGetPaintRects = function() {
        return (this._paintRects || []).slice()
    }
    ,
    e.prototype.resize = function(n, r) {
        var a = this.dpr
          , i = this.dom
          , o = i.style
          , l = this.domBack;
        o && (o.width = n + "px",
        o.height = r + "px"),
        i.width = n * a,
        i.height = r * a,
        l && (l.width = n * a,
        l.height = r * a,
        a !== 1 && this.ctxBack.scale(a, a))
    }
    ,
    e.prototype.clear = function(n, r, a) {
        var i = this.dom
          , o = this.ctx
          , l = i.width
          , s = i.height;
        r = r || this.clearColor;
        var u = this.motionBlur && !n
          , c = this.lastFrameAlpha
          , f = this.dpr
          , d = this;
        u && (this.domBack || this.createBackBuffer(),
        this.ctxBack.globalCompositeOperation = "copy",
        this.ctxBack.drawImage(i, 0, 0, l / f, s / f));
        var v = this.domBack;
        function h(p, g, m, y) {
            if (o.clearRect(p, g, m, y),
            r && r !== "transparent") {
                var b = void 0;
                if (Hm(r)) {
                    var x = r.global || r.__width === m && r.__height === y;
                    b = x && r.__canvasGradient || HI(o, r, {
                        x: 0,
                        y: 0,
                        width: m,
                        height: y
                    }),
                    r.__canvasGradient = b,
                    r.__width = m,
                    r.__height = y
                } else
                    bae(r) && (r.scaleX = r.scaleX || f,
                    r.scaleY = r.scaleY || f,
                    b = jI(o, r, {
                        dirty: function() {
                            d.setUnpainted(),
                            d.__painter.refresh()
                        }
                    }));
                o.save(),
                o.fillStyle = b || r,
                o.fillRect(p, g, m, y),
                o.restore()
            }
            u && (o.save(),
            o.globalAlpha = c,
            o.drawImage(v, p, g, m, y),
            o.restore())
        }
        !a || u ? h(0, 0, l, s) : a.length && Z(a, function(p) {
            h(p.x * f, p.y * f, p.width * f, p.height * f)
        })
    }
    ,
    e
}(Wi);
const m4 = pJe;
var IW = 1e5
  , Ac = 314159
  , F1 = .01
  , gJe = .001;
function mJe(t) {
    return t ? t.__builtin__ ? !0 : !(typeof t.resize != "function" || typeof t.refresh != "function") : !1
}
function yJe(t, e) {
    var n = document.createElement("div");
    return n.style.cssText = ["position:relative", "width:" + t + "px", "height:" + e + "px", "padding:0", "margin:0", "border-width:0"].join(";") + ";",
    n
}
var bJe = function() {
    function t(e, n, r, a) {
        this.type = "canvas",
        this._zlevelList = [],
        this._prevDisplayList = [],
        this._layers = {},
        this._layerConfig = {},
        this._needsManuallyCompositing = !1,
        this.type = "canvas";
        var i = !e.nodeName || e.nodeName.toUpperCase() === "CANVAS";
        this._opts = r = Me({}, r || {}),
        this.dpr = r.devicePixelRatio || PS,
        this._singleCanvas = i,
        this.root = e;
        var o = e.style;
        o && (T6(e),
        e.innerHTML = ""),
        this.storage = n;
        var l = this._zlevelList;
        this._prevDisplayList = [];
        var s = this._layers;
        if (i) {
            var c = e
              , f = c.width
              , d = c.height;
            r.width != null && (f = r.width),
            r.height != null && (d = r.height),
            this.dpr = r.devicePixelRatio || 1,
            c.width = f * this.dpr,
            c.height = d * this.dpr,
            this._width = f,
            this._height = d;
            var v = new m4(c,this,this.dpr);
            v.__builtin__ = !0,
            v.initContext(),
            s[Ac] = v,
            v.zlevel = Ac,
            l.push(Ac),
            this._domRoot = e
        } else {
            this._width = av(e, 0, r),
            this._height = av(e, 1, r);
            var u = this._domRoot = yJe(this._width, this._height);
            e.appendChild(u)
        }
    }
    return t.prototype.getType = function() {
        return "canvas"
    }
    ,
    t.prototype.isSingleCanvas = function() {
        return this._singleCanvas
    }
    ,
    t.prototype.getViewportRoot = function() {
        return this._domRoot
    }
    ,
    t.prototype.getViewportRootOffset = function() {
        var e = this.getViewportRoot();
        if (e)
            return {
                offsetLeft: e.offsetLeft || 0,
                offsetTop: e.offsetTop || 0
            }
    }
    ,
    t.prototype.refresh = function(e) {
        var n = this.storage.getDisplayList(!0)
          , r = this._prevDisplayList
          , a = this._zlevelList;
        this._redrawId = Math.random(),
        this._paintList(n, r, e, this._redrawId);
        for (var i = 0; i < a.length; i++) {
            var o = a[i]
              , l = this._layers[o];
            if (!l.__builtin__ && l.refresh) {
                var s = i === 0 ? this._backgroundColor : null;
                l.refresh(s)
            }
        }
        return this._opts.useDirtyRect && (this._prevDisplayList = n.slice()),
        this
    }
    ,
    t.prototype.refreshHover = function() {
        this._paintHoverList(this.storage.getDisplayList(!1))
    }
    ,
    t.prototype._paintHoverList = function(e) {
        var n = e.length
          , r = this._hoverlayer;
        if (r && r.clear(),
        !!n) {
            for (var a = {
                inHover: !0,
                viewWidth: this._width,
                viewHeight: this._height
            }, i, o = 0; o < n; o++) {
                var l = e[o];
                l.__inHover && (r || (r = this._hoverlayer = this.getLayer(IW)),
                i || (i = r.ctx,
                i.save()),
                sf(i, l, a, o === n - 1))
            }
            i && i.restore()
        }
    }
    ,
    t.prototype.getHoverLayer = function() {
        return this.getLayer(IW)
    }
    ,
    t.prototype.paintOne = function(e, n) {
        x5(e, n)
    }
    ,
    t.prototype._paintList = function(e, n, r, a) {
        if (this._redrawId === a) {
            r = r || !1,
            this._updateLayerStatus(e);
            var i = this._doPaintList(e, n, r)
              , o = i.finished
              , l = i.needsRefreshHover;
            if (this._needsManuallyCompositing && this._compositeManually(),
            l && this._paintHoverList(e),
            o)
                this.eachLayer(function(u) {
                    u.afterBrush && u.afterBrush()
                });
            else {
                var s = this;
                aI(function() {
                    s._paintList(e, n, r, a)
                })
            }
        }
    }
    ,
    t.prototype._compositeManually = function() {
        var e = this.getLayer(Ac).ctx
          , n = this._domRoot.width
          , r = this._domRoot.height;
        e.clearRect(0, 0, n, r),
        this.eachBuiltinLayer(function(a) {
            a.virtual && e.drawImage(a.dom, 0, 0, n, r)
        })
    }
    ,
    t.prototype._doPaintList = function(e, n, r) {
        for (var a = this, i = [], o = this._opts.useDirtyRect, l = 0; l < this._zlevelList.length; l++) {
            var s = this._zlevelList[l]
              , u = this._layers[s];
            u.__builtin__ && u !== this._hoverlayer && (u.__dirty || r) && i.push(u)
        }
        for (var c = !0, f = !1, d = function(p) {
            var g = i[p]
              , m = g.ctx
              , y = o && g.createRepaintRects(e, n, v._width, v._height)
              , b = r ? g.__startIndex : g.__drawIndex
              , x = !r && g.incremental && Date.now
              , C = x && Date.now()
              , S = g.zlevel === v._zlevelList[0] ? v._backgroundColor : null;
            if (g.__startIndex === g.__endIndex)
                g.clear(!1, S, y);
            else if (b === g.__startIndex) {
                var w = e[b];
                (!w.incremental || !w.notClear || r) && g.clear(!1, S, y)
            }
            b === -1 && (b = g.__startIndex);
            var T, P = function(k) {
                var D = {
                    inHover: !1,
                    allClipped: !1,
                    prevEl: null,
                    viewWidth: a._width,
                    viewHeight: a._height
                };
                for (T = b; T < g.__endIndex; T++) {
                    var E = e[T];
                    if (E.__inHover && (f = !0),
                    a._doPaintEl(E, g, o, k, D, T === g.__endIndex - 1),
                    x) {
                        var L = Date.now() - C;
                        if (L > 15)
                            break
                    }
                }
                D.prevElClipPaths && m.restore()
            };
            if (y)
                if (y.length === 0)
                    T = g.__endIndex;
                else
                    for (var M = v.dpr, A = 0; A < y.length; ++A) {
                        var O = y[A];
                        m.save(),
                        m.beginPath(),
                        m.rect(O.x * M, O.y * M, O.width * M, O.height * M),
                        m.clip(),
                        P(O),
                        m.restore()
                    }
            else
                m.save(),
                P(),
                m.restore();
            g.__drawIndex = T,
            g.__drawIndex < g.__endIndex && (c = !1)
        }, v = this, h = 0; h < i.length; h++)
            d(h);
        return nn.wxa && Z(this._layers, function(p) {
            p && p.ctx && p.ctx.draw && p.ctx.draw()
        }),
        {
            finished: c,
            needsRefreshHover: f
        }
    }
    ,
    t.prototype._doPaintEl = function(e, n, r, a, i, o) {
        var l = n.ctx;
        if (r) {
            var s = e.getPaintRect();
            (!a || s && s.intersect(a)) && (sf(l, e, i, o),
            e.setPrevPaintRect(s))
        } else
            sf(l, e, i, o)
    }
    ,
    t.prototype.getLayer = function(e, n) {
        this._singleCanvas && !this._needsManuallyCompositing && (e = Ac);
        var r = this._layers[e];
        return r || (r = new m4("zr_" + e,this,this.dpr),
        r.zlevel = e,
        r.__builtin__ = !0,
        this._layerConfig[e] ? At(r, this._layerConfig[e], !0) : this._layerConfig[e - F1] && At(r, this._layerConfig[e - F1], !0),
        n && (r.virtual = n),
        this.insertLayer(e, r),
        r.initContext()),
        r
    }
    ,
    t.prototype.insertLayer = function(e, n) {
        var r = this._layers
          , a = this._zlevelList
          , i = a.length
          , o = this._domRoot
          , l = null
          , s = -1;
        if (!r[e] && !!mJe(n)) {
            if (i > 0 && e > a[0]) {
                for (s = 0; s < i - 1 && !(a[s] < e && a[s + 1] > e); s++)
                    ;
                l = r[a[s]]
            }
            if (a.splice(s + 1, 0, e),
            r[e] = n,
            !n.virtual)
                if (l) {
                    var u = l.dom;
                    u.nextSibling ? o.insertBefore(n.dom, u.nextSibling) : o.appendChild(n.dom)
                } else
                    o.firstChild ? o.insertBefore(n.dom, o.firstChild) : o.appendChild(n.dom);
            n.__painter = this
        }
    }
    ,
    t.prototype.eachLayer = function(e, n) {
        for (var r = this._zlevelList, a = 0; a < r.length; a++) {
            var i = r[a];
            e.call(n, this._layers[i], i)
        }
    }
    ,
    t.prototype.eachBuiltinLayer = function(e, n) {
        for (var r = this._zlevelList, a = 0; a < r.length; a++) {
            var i = r[a]
              , o = this._layers[i];
            o.__builtin__ && e.call(n, o, i)
        }
    }
    ,
    t.prototype.eachOtherLayer = function(e, n) {
        for (var r = this._zlevelList, a = 0; a < r.length; a++) {
            var i = r[a]
              , o = this._layers[i];
            o.__builtin__ || e.call(n, o, i)
        }
    }
    ,
    t.prototype.getLayers = function() {
        return this._layers
    }
    ,
    t.prototype._updateLayerStatus = function(e) {
        this.eachBuiltinLayer(function(f, d) {
            f.__dirty = f.__used = !1
        });
        function n(f) {
            i && (i.__endIndex !== f && (i.__dirty = !0),
            i.__endIndex = f)
        }
        if (this._singleCanvas)
            for (var r = 1; r < e.length; r++) {
                var a = e[r];
                if (a.zlevel !== e[r - 1].zlevel || a.incremental) {
                    this._needsManuallyCompositing = !0;
                    break
                }
            }
        var i = null, o = 0, l, s;
        for (s = 0; s < e.length; s++) {
            var a = e[s]
              , u = a.zlevel
              , c = void 0;
            l !== u && (l = u,
            o = 0),
            a.incremental ? (c = this.getLayer(u + gJe, this._needsManuallyCompositing),
            c.incremental = !0,
            o = 1) : c = this.getLayer(u + (o > 0 ? F1 : 0), this._needsManuallyCompositing),
            c.__builtin__ || Kw("ZLevel " + u + " has been used by unkown layer " + c.id),
            c !== i && (c.__used = !0,
            c.__startIndex !== s && (c.__dirty = !0),
            c.__startIndex = s,
            c.incremental ? c.__drawIndex = -1 : c.__drawIndex = s,
            n(s),
            i = c),
            a.__dirty & ei && !a.__inHover && (c.__dirty = !0,
            c.incremental && c.__drawIndex < 0 && (c.__drawIndex = s))
        }
        n(s),
        this.eachBuiltinLayer(function(f, d) {
            !f.__used && f.getElementCount() > 0 && (f.__dirty = !0,
            f.__startIndex = f.__endIndex = f.__drawIndex = 0),
            f.__dirty && f.__drawIndex < 0 && (f.__drawIndex = f.__startIndex)
        })
    }
    ,
    t.prototype.clear = function() {
        return this.eachBuiltinLayer(this._clearLayer),
        this
    }
    ,
    t.prototype._clearLayer = function(e) {
        e.clear()
    }
    ,
    t.prototype.setBackgroundColor = function(e) {
        this._backgroundColor = e,
        Z(this._layers, function(n) {
            n.setUnpainted()
        })
    }
    ,
    t.prototype.configLayer = function(e, n) {
        if (n) {
            var r = this._layerConfig;
            r[e] ? At(r[e], n, !0) : r[e] = n;
            for (var a = 0; a < this._zlevelList.length; a++) {
                var i = this._zlevelList[a];
                if (i === e || i === e + F1) {
                    var o = this._layers[i];
                    At(o, r[e], !0)
                }
            }
        }
    }
    ,
    t.prototype.delLayer = function(e) {
        var n = this._layers
          , r = this._zlevelList
          , a = n[e];
        !a || (a.dom.parentNode.removeChild(a.dom),
        delete n[e],
        r.splice(Rt(r, e), 1))
    }
    ,
    t.prototype.resize = function(e, n) {
        if (this._domRoot.style) {
            var r = this._domRoot;
            r.style.display = "none";
            var a = this._opts
              , i = this.root;
            if (e != null && (a.width = e),
            n != null && (a.height = n),
            e = av(i, 0, a),
            n = av(i, 1, a),
            r.style.display = "",
            this._width !== e || n !== this._height) {
                r.style.width = e + "px",
                r.style.height = n + "px";
                for (var o in this._layers)
                    this._layers.hasOwnProperty(o) && this._layers[o].resize(e, n);
                this.refresh(!0)
            }
            this._width = e,
            this._height = n
        } else {
            if (e == null || n == null)
                return;
            this._width = e,
            this._height = n,
            this.getLayer(Ac).resize(e, n)
        }
        return this
    }
    ,
    t.prototype.clearLayer = function(e) {
        var n = this._layers[e];
        n && n.clear()
    }
    ,
    t.prototype.dispose = function() {
        this.root.innerHTML = "",
        this.root = this.storage = this._domRoot = this._layers = null
    }
    ,
    t.prototype.getRenderedCanvas = function(e) {
        if (e = e || {},
        this._singleCanvas && !this._compositeManually)
            return this._layers[Ac].dom;
        var n = new m4("image",this,e.pixelRatio || this.dpr);
        n.initContext(),
        n.clear(!1, e.backgroundColor || this._backgroundColor);
        var r = n.ctx;
        if (e.pixelRatio <= this.dpr) {
            this.refresh();
            var a = n.dom.width
              , i = n.dom.height;
            this.eachLayer(function(f) {
                f.__builtin__ ? r.drawImage(f.dom, 0, 0, a, i) : f.renderToCanvas && (r.save(),
                f.renderToCanvas(r),
                r.restore())
            })
        } else
            for (var o = {
                inHover: !1,
                viewWidth: this._width,
                viewHeight: this._height
            }, l = this.storage.getDisplayList(!0), s = 0, u = l.length; s < u; s++) {
                var c = l[s];
                sf(r, c, o, s === u - 1)
            }
        return n.dom
    }
    ,
    t.prototype.getWidth = function() {
        return this._width
    }
    ,
    t.prototype.getHeight = function() {
        return this._height
    }
    ,
    t
}();
const xJe = bJe;
function SJe(t) {
    t.registerPainter("canvas", xJe)
}
var CJe = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.hasSymbolVisual = !0,
        n
    }
    return e.prototype.getInitialData = function(n) {
        return Pl(null, this, {
            useEncodeDefaulter: !0
        })
    }
    ,
    e.prototype.getLegendIcon = function(n) {
        var r = new mt
          , a = fr("line", 0, n.itemHeight / 2, n.itemWidth, 0, n.lineStyle.stroke, !1);
        r.add(a),
        a.setStyle(n.lineStyle);
        var i = this.getData().getVisual("symbol")
          , o = this.getData().getVisual("symbolRotate")
          , l = i === "none" ? "circle" : i
          , s = n.itemHeight * .8
          , u = fr(l, (n.itemWidth - s) / 2, (n.itemHeight - s) / 2, s, s, n.itemStyle.fill);
        r.add(u),
        u.setStyle(n.itemStyle);
        var c = n.iconRotate === "inherit" ? o : n.iconRotate || 0;
        return u.rotation = c * Math.PI / 180,
        u.setOrigin([n.itemWidth / 2, n.itemHeight / 2]),
        l.indexOf("empty") > -1 && (u.style.stroke = u.style.fill,
        u.style.fill = "#fff",
        u.style.lineWidth = 2),
        r
    }
    ,
    e.type = "series.line",
    e.dependencies = ["grid", "polar"],
    e.defaultOption = {
        z: 3,
        coordinateSystem: "cartesian2d",
        legendHoverLink: !0,
        clip: !0,
        label: {
            position: "top"
        },
        endLabel: {
            show: !1,
            valueAnimation: !0,
            distance: 8
        },
        lineStyle: {
            width: 2,
            type: "solid"
        },
        emphasis: {
            scale: !0
        },
        step: !1,
        smooth: !1,
        smoothMonotone: null,
        symbol: "emptyCircle",
        symbolSize: 4,
        symbolRotate: null,
        showSymbol: !0,
        showAllSymbol: "auto",
        connectNulls: !1,
        sampling: "none",
        animationEasing: "linear",
        progressive: 0,
        hoverLayerThreshold: 1 / 0,
        universalTransition: {
            divideShape: "clone"
        },
        triggerLineEvent: !1
    },
    e
}(En);
const wJe = CJe;
function eh(t, e) {
    var n = t.mapDimensionsAll("defaultedLabel")
      , r = n.length;
    if (r === 1) {
        var a = Qv(t, e, n[0]);
        return a != null ? a + "" : null
    } else if (r) {
        for (var i = [], o = 0; o < n.length; o++)
            i.push(Qv(t, e, n[o]));
        return i.join(" ")
    }
}
function Hse(t, e) {
    var n = t.mapDimensionsAll("defaultedLabel");
    if (!ke(e))
        return e + "";
    for (var r = [], a = 0; a < n.length; a++) {
        var i = t.getDimensionIndex(n[a]);
        i >= 0 && r.push(e[i])
    }
    return r.join(" ")
}
var _Je = function(t) {
    ge(e, t);
    function e(n, r, a, i) {
        var o = t.call(this) || this;
        return o.updateData(n, r, a, i),
        o
    }
    return e.prototype._createSymbol = function(n, r, a, i, o) {
        this.removeAll();
        var l = fr(n, -1, -1, 2, 2, null, o);
        l.attr({
            z2: 100,
            culling: !0,
            scaleX: i[0] / 2,
            scaleY: i[1] / 2
        }),
        l.drift = TJe,
        this._symbolType = n,
        this.add(l)
    }
    ,
    e.prototype.stopSymbolAnimation = function(n) {
        this.childAt(0).stopAnimation(null, n)
    }
    ,
    e.prototype.getSymbolType = function() {
        return this._symbolType
    }
    ,
    e.prototype.getSymbolPath = function() {
        return this.childAt(0)
    }
    ,
    e.prototype.highlight = function() {
        us(this.childAt(0))
    }
    ,
    e.prototype.downplay = function() {
        cs(this.childAt(0))
    }
    ,
    e.prototype.setZ = function(n, r) {
        var a = this.childAt(0);
        a.zlevel = n,
        a.z = r
    }
    ,
    e.prototype.setDraggable = function(n, r) {
        var a = this.childAt(0);
        a.draggable = n,
        a.cursor = !r && n ? "move" : a.cursor
    }
    ,
    e.prototype.updateData = function(n, r, a, i) {
        this.silent = !1;
        var o = n.getItemVisual(r, "symbol") || "circle"
          , l = n.hostModel
          , s = e.getSymbolSize(n, r)
          , u = o !== this._symbolType
          , c = i && i.disableAnimation;
        if (u) {
            var f = n.getItemVisual(r, "symbolKeepAspect");
            this._createSymbol(o, n, r, s, f)
        } else {
            var d = this.childAt(0);
            d.silent = !1;
            var v = {
                scaleX: s[0] / 2,
                scaleY: s[1] / 2
            };
            c ? d.attr(v) : ln(d, v, l, r),
            Ao(d)
        }
        if (this._updateCommon(n, r, s, a, i),
        u) {
            var d = this.childAt(0);
            if (!c) {
                var v = {
                    scaleX: this._sizeX,
                    scaleY: this._sizeY,
                    style: {
                        opacity: d.style.opacity
                    }
                };
                d.scaleX = d.scaleY = 0,
                d.style.opacity = 0,
                $n(d, v, l, r)
            }
        }
        c && this.childAt(0).stopAnimation("leave")
    }
    ,
    e.prototype._updateCommon = function(n, r, a, i, o) {
        var l = this.childAt(0), s = n.hostModel, u, c, f, d, v, h, p, g, m;
        if (i && (u = i.emphasisItemStyle,
        c = i.blurItemStyle,
        f = i.selectItemStyle,
        d = i.focus,
        v = i.blurScope,
        p = i.labelStatesModels,
        g = i.hoverScale,
        m = i.cursorStyle,
        h = i.emphasisDisabled),
        !i || n.hasItemOption) {
            var y = i && i.itemModel ? i.itemModel : n.getItemModel(r)
              , b = y.getModel("emphasis");
            u = b.getModel("itemStyle").getItemStyle(),
            f = y.getModel(["select", "itemStyle"]).getItemStyle(),
            c = y.getModel(["blur", "itemStyle"]).getItemStyle(),
            d = b.get("focus"),
            v = b.get("blurScope"),
            h = b.get("disabled"),
            p = Nr(y),
            g = b.getShallow("scale"),
            m = y.getShallow("cursor")
        }
        var x = n.getItemVisual(r, "symbolRotate");
        l.attr("rotation", (x || 0) * Math.PI / 180 || 0);
        var C = id(n.getItemVisual(r, "symbolOffset"), a);
        C && (l.x = C[0],
        l.y = C[1]),
        m && l.attr("cursor", m);
        var S = n.getItemVisual(r, "style")
          , w = S.fill;
        if (l instanceof Kr) {
            var T = l.style;
            l.useStyle(Me({
                image: T.image,
                x: T.x,
                y: T.y,
                width: T.width,
                height: T.height
            }, S))
        } else
            l.__isEmptyBrush ? l.useStyle(Me({}, S)) : l.useStyle(S),
            l.style.decal = null,
            l.setColor(w, o && o.symbolInnerColor),
            l.style.strokeNoScale = !0;
        var P = n.getItemVisual(r, "liftZ")
          , M = this._z2;
        P != null ? M == null && (this._z2 = l.z2,
        l.z2 += P) : M != null && (l.z2 = M,
        this._z2 = null);
        var A = o && o.useNameLabel;
        ea(l, p, {
            labelFetcher: s,
            labelDataIndex: r,
            defaultText: O,
            inheritColor: w,
            defaultOpacity: S.opacity
        });
        function O(E) {
            return A ? n.getName(E) : eh(n, E)
        }
        this._sizeX = a[0] / 2,
        this._sizeY = a[1] / 2;
        var k = l.ensureState("emphasis");
        k.style = u,
        l.ensureState("select").style = f,
        l.ensureState("blur").style = c;
        var D = g == null || g === !0 ? Math.max(1.1, 3 / this._sizeY) : isFinite(g) && g > 0 ? +g : 1;
        k.scaleX = this._sizeX * D,
        k.scaleY = this._sizeY * D,
        this.setSymbolScale(1),
        Qn(this, d, v, h)
    }
    ,
    e.prototype.setSymbolScale = function(n) {
        this.scaleX = this.scaleY = n
    }
    ,
    e.prototype.fadeOut = function(n, r, a) {
        var i = this.childAt(0)
          , o = Ct(this).dataIndex
          , l = a && a.animation;
        if (this.silent = i.silent = !0,
        a && a.fadeLabel) {
            var s = i.getTextContent();
            s && Du(s, {
                style: {
                    opacity: 0
                }
            }, r, {
                dataIndex: o,
                removeOpt: l,
                cb: function() {
                    i.removeTextContent()
                }
            })
        } else
            i.removeTextContent();
        Du(i, {
            style: {
                opacity: 0
            },
            scaleX: 0,
            scaleY: 0
        }, r, {
            dataIndex: o,
            cb: n,
            removeOpt: l
        })
    }
    ,
    e.getSymbolSize = function(n, r) {
        return Bh(n.getItemVisual(r, "symbolSize"))
    }
    ,
    e
}(mt);
function TJe(t, e) {
    this.parent.drift(t, e)
}
const ay = _Je;
function y4(t, e, n, r) {
    return e && !isNaN(e[0]) && !isNaN(e[1]) && !(r.isIgnore && r.isIgnore(n)) && !(r.clipShape && !r.clipShape.contain(e[0], e[1])) && t.getItemVisual(n, "symbol") !== "none"
}
function kW(t) {
    return t != null && !st(t) && (t = {
        isIgnore: t
    }),
    t || {}
}
function OW(t) {
    var e = t.hostModel
      , n = e.getModel("emphasis");
    return {
        emphasisItemStyle: n.getModel("itemStyle").getItemStyle(),
        blurItemStyle: e.getModel(["blur", "itemStyle"]).getItemStyle(),
        selectItemStyle: e.getModel(["select", "itemStyle"]).getItemStyle(),
        focus: n.get("focus"),
        blurScope: n.get("blurScope"),
        emphasisDisabled: n.get("disabled"),
        hoverScale: n.get("scale"),
        labelStatesModels: Nr(e),
        cursorStyle: e.get("cursor")
    }
}
var PJe = function() {
    function t(e) {
        this.group = new mt,
        this._SymbolCtor = e || ay
    }
    return t.prototype.updateData = function(e, n) {
        this._progressiveEls = null,
        n = kW(n);
        var r = this.group
          , a = e.hostModel
          , i = this._data
          , o = this._SymbolCtor
          , l = n.disableAnimation
          , s = OW(e)
          , u = {
            disableAnimation: l
        }
          , c = n.getSymbolPoint || function(f) {
            return e.getItemLayout(f)
        }
        ;
        i || r.removeAll(),
        e.diff(i).add(function(f) {
            var d = c(f);
            if (y4(e, d, f, n)) {
                var v = new o(e,f,s,u);
                v.setPosition(d),
                e.setItemGraphicEl(f, v),
                r.add(v)
            }
        }).update(function(f, d) {
            var v = i.getItemGraphicEl(d)
              , h = c(f);
            if (!y4(e, h, f, n)) {
                r.remove(v);
                return
            }
            var p = e.getItemVisual(f, "symbol") || "circle"
              , g = v && v.getSymbolType && v.getSymbolType();
            if (!v || g && g !== p)
                r.remove(v),
                v = new o(e,f,s,u),
                v.setPosition(h);
            else {
                v.updateData(e, f, s, u);
                var m = {
                    x: h[0],
                    y: h[1]
                };
                l ? v.attr(m) : ln(v, m, a)
            }
            r.add(v),
            e.setItemGraphicEl(f, v)
        }).remove(function(f) {
            var d = i.getItemGraphicEl(f);
            d && d.fadeOut(function() {
                r.remove(d)
            }, a)
        }).execute(),
        this._getSymbolPoint = c,
        this._data = e
    }
    ,
    t.prototype.updateLayout = function() {
        var e = this
          , n = this._data;
        n && n.eachItemGraphicEl(function(r, a) {
            var i = e._getSymbolPoint(a);
            r.setPosition(i),
            r.markRedraw()
        })
    }
    ,
    t.prototype.incrementalPrepareUpdate = function(e) {
        this._seriesScope = OW(e),
        this._data = null,
        this.group.removeAll()
    }
    ,
    t.prototype.incrementalUpdate = function(e, n, r) {
        this._progressiveEls = [],
        r = kW(r);
        function a(s) {
            s.isGroup || (s.incremental = !0,
            s.ensureState("emphasis").hoverLayer = !0)
        }
        for (var i = e.start; i < e.end; i++) {
            var o = n.getItemLayout(i);
            if (y4(n, o, i, r)) {
                var l = new this._SymbolCtor(n,i,this._seriesScope);
                l.traverse(a),
                l.setPosition(o),
                this.group.add(l),
                n.setItemGraphicEl(i, l),
                this._progressiveEls.push(l)
            }
        }
    }
    ,
    t.prototype.eachRendered = function(e) {
        Uu(this._progressiveEls || this.group, e)
    }
    ,
    t.prototype.remove = function(e) {
        var n = this.group
          , r = this._data;
        r && e ? r.eachItemGraphicEl(function(a) {
            a.fadeOut(function() {
                n.remove(a)
            }, r.hostModel)
        }) : n.removeAll()
    }
    ,
    t
}();
const iy = PJe;
function jse(t, e, n) {
    var r = t.getBaseAxis()
      , a = t.getOtherAxis(r)
      , i = MJe(a, n)
      , o = r.dim
      , l = a.dim
      , s = e.mapDimension(l)
      , u = e.mapDimension(o)
      , c = l === "x" || l === "radius" ? 1 : 0
      , f = Le(t.dimensions, function(h) {
        return e.mapDimension(h)
    })
      , d = !1
      , v = e.getCalculationInfo("stackResultDimension");
    return ds(e, f[0]) && (d = !0,
    f[0] = v),
    ds(e, f[1]) && (d = !0,
    f[1] = v),
    {
        dataDimsForPoint: f,
        valueStart: i,
        valueAxisDim: l,
        baseAxisDim: o,
        stacked: !!d,
        valueDim: s,
        baseDim: u,
        baseDataOffset: c,
        stackedOverDimension: e.getCalculationInfo("stackedOverDimension")
    }
}
function MJe(t, e) {
    var n = 0
      , r = t.scale.getExtent();
    return e === "start" ? n = r[0] : e === "end" ? n = r[1] : rn(e) && !isNaN(e) ? n = e : r[0] > 0 ? n = r[0] : r[1] < 0 && (n = r[1]),
    n
}
function Wse(t, e, n, r) {
    var a = NaN;
    t.stacked && (a = n.get(n.getCalculationInfo("stackedOverDimension"), r)),
    isNaN(a) && (a = t.valueStart);
    var i = t.baseDataOffset
      , o = [];
    return o[i] = n.get(t.baseDim, r),
    o[1 - i] = a,
    e.dataToPoint(o)
}
function AJe(t, e) {
    var n = [];
    return e.diff(t).add(function(r) {
        n.push({
            cmd: "+",
            idx: r
        })
    }).update(function(r, a) {
        n.push({
            cmd: "=",
            idx: a,
            idx1: r
        })
    }).remove(function(r) {
        n.push({
            cmd: "-",
            idx: r
        })
    }).execute(),
    n
}
function IJe(t, e, n, r, a, i, o, l) {
    for (var s = AJe(t, e), u = [], c = [], f = [], d = [], v = [], h = [], p = [], g = jse(a, e, o), m = t.getLayout("points") || [], y = e.getLayout("points") || [], b = 0; b < s.length; b++) {
        var x = s[b]
          , C = !0
          , S = void 0
          , w = void 0;
        switch (x.cmd) {
        case "=":
            S = x.idx * 2,
            w = x.idx1 * 2;
            var T = m[S]
              , P = m[S + 1]
              , M = y[w]
              , A = y[w + 1];
            (isNaN(T) || isNaN(P)) && (T = M,
            P = A),
            u.push(T, P),
            c.push(M, A),
            f.push(n[S], n[S + 1]),
            d.push(r[w], r[w + 1]),
            p.push(e.getRawIndex(x.idx1));
            break;
        case "+":
            var O = x.idx
              , k = g.dataDimsForPoint
              , D = a.dataToPoint([e.get(k[0], O), e.get(k[1], O)]);
            w = O * 2,
            u.push(D[0], D[1]),
            c.push(y[w], y[w + 1]);
            var E = Wse(g, a, e, O);
            f.push(E[0], E[1]),
            d.push(r[w], r[w + 1]),
            p.push(e.getRawIndex(O));
            break;
        case "-":
            C = !1
        }
        C && (v.push(x),
        h.push(h.length))
    }
    h.sort(function(U, X) {
        return p[U] - p[X]
    });
    for (var L = u.length, N = il(L), R = il(L), $ = il(L), W = il(L), B = [], b = 0; b < h.length; b++) {
        var G = h[b]
          , K = b * 2
          , V = G * 2;
        N[K] = u[V],
        N[K + 1] = u[V + 1],
        R[K] = c[V],
        R[K + 1] = c[V + 1],
        $[K] = f[V],
        $[K + 1] = f[V + 1],
        W[K] = d[V],
        W[K + 1] = d[V + 1],
        B[b] = v[G]
    }
    return {
        current: N,
        next: R,
        stackedOnCurrent: $,
        stackedOnNext: W,
        status: B
    }
}
var $s = Math.min
  , Fs = Math.max;
function _f(t, e) {
    return isNaN(t) || isNaN(e)
}
function ek(t, e, n, r, a, i, o, l, s) {
    for (var u, c, f, d, v, h, p = n, g = 0; g < r; g++) {
        var m = e[p * 2]
          , y = e[p * 2 + 1];
        if (p >= a || p < 0)
            break;
        if (_f(m, y)) {
            if (s) {
                p += i;
                continue
            }
            break
        }
        if (p === n)
            t[i > 0 ? "moveTo" : "lineTo"](m, y),
            f = m,
            d = y;
        else {
            var b = m - u
              , x = y - c;
            if (b * b + x * x < .5) {
                p += i;
                continue
            }
            if (o > 0) {
                for (var C = p + i, S = e[C * 2], w = e[C * 2 + 1]; S === m && w === y && g < r; )
                    g++,
                    C += i,
                    p += i,
                    S = e[C * 2],
                    w = e[C * 2 + 1],
                    m = e[p * 2],
                    y = e[p * 2 + 1],
                    b = m - u,
                    x = y - c;
                var T = g + 1;
                if (s)
                    for (; _f(S, w) && T < r; )
                        T++,
                        C += i,
                        S = e[C * 2],
                        w = e[C * 2 + 1];
                var P = .5
                  , M = 0
                  , A = 0
                  , O = void 0
                  , k = void 0;
                if (T >= r || _f(S, w))
                    v = m,
                    h = y;
                else {
                    M = S - u,
                    A = w - c;
                    var D = m - u
                      , E = S - m
                      , L = y - c
                      , N = w - y
                      , R = void 0
                      , $ = void 0;
                    if (l === "x") {
                        R = Math.abs(D),
                        $ = Math.abs(E);
                        var W = M > 0 ? 1 : -1;
                        v = m - W * R * o,
                        h = y,
                        O = m + W * $ * o,
                        k = y
                    } else if (l === "y") {
                        R = Math.abs(L),
                        $ = Math.abs(N);
                        var B = A > 0 ? 1 : -1;
                        v = m,
                        h = y - B * R * o,
                        O = m,
                        k = y + B * $ * o
                    } else
                        R = Math.sqrt(D * D + L * L),
                        $ = Math.sqrt(E * E + N * N),
                        P = $ / ($ + R),
                        v = m - M * o * (1 - P),
                        h = y - A * o * (1 - P),
                        O = m + M * o * P,
                        k = y + A * o * P,
                        O = $s(O, Fs(S, m)),
                        k = $s(k, Fs(w, y)),
                        O = Fs(O, $s(S, m)),
                        k = Fs(k, $s(w, y)),
                        M = O - m,
                        A = k - y,
                        v = m - M * R / $,
                        h = y - A * R / $,
                        v = $s(v, Fs(u, m)),
                        h = $s(h, Fs(c, y)),
                        v = Fs(v, $s(u, m)),
                        h = Fs(h, $s(c, y)),
                        M = m - v,
                        A = y - h,
                        O = m + M * $ / R,
                        k = y + A * $ / R
                }
                t.bezierCurveTo(f, d, v, h, m, y),
                f = O,
                d = k
            } else
                t.lineTo(m, y)
        }
        u = m,
        c = y,
        p += i
    }
    return g
}
var Gse = function() {
    function t() {
        this.smooth = 0,
        this.smoothConstraint = !0
    }
    return t
}()
  , kJe = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r.type = "ec-polyline",
        r
    }
    return e.prototype.getDefaultStyle = function() {
        return {
            stroke: "#000",
            fill: null
        }
    }
    ,
    e.prototype.getDefaultShape = function() {
        return new Gse
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.points
          , i = 0
          , o = a.length / 2;
        if (r.connectNulls) {
            for (; o > 0 && _f(a[o * 2 - 2], a[o * 2 - 1]); o--)
                ;
            for (; i < o && _f(a[i * 2], a[i * 2 + 1]); i++)
                ;
        }
        for (; i < o; )
            i += ek(n, a, i, o, o, 1, r.smooth, r.smoothMonotone, r.connectNulls) + 1
    }
    ,
    e.prototype.getPointOn = function(n, r) {
        this.path || (this.createPathProxy(),
        this.buildPath(this.path, this.shape));
        for (var a = this.path, i = a.data, o = yl.CMD, l, s, u = r === "x", c = [], f = 0; f < i.length; ) {
            var d = i[f++]
              , v = void 0
              , h = void 0
              , p = void 0
              , g = void 0
              , m = void 0
              , y = void 0
              , b = void 0;
            switch (d) {
            case o.M:
                l = i[f++],
                s = i[f++];
                break;
            case o.L:
                if (v = i[f++],
                h = i[f++],
                b = u ? (n - l) / (v - l) : (n - s) / (h - s),
                b <= 1 && b >= 0) {
                    var x = u ? (h - s) * b + s : (v - l) * b + l;
                    return u ? [n, x] : [x, n]
                }
                l = v,
                s = h;
                break;
            case o.C:
                v = i[f++],
                h = i[f++],
                p = i[f++],
                g = i[f++],
                m = i[f++],
                y = i[f++];
                var C = u ? wS(l, v, p, m, n, c) : wS(s, h, g, y, n, c);
                if (C > 0)
                    for (var S = 0; S < C; S++) {
                        var w = c[S];
                        if (w <= 1 && w >= 0) {
                            var x = u ? Ar(s, h, g, y, w) : Ar(l, v, p, m, w);
                            return u ? [n, x] : [x, n]
                        }
                    }
                l = m,
                s = y;
                break
            }
        }
    }
    ,
    e
}(jt)
  , OJe = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e
}(Gse)
  , Kse = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r.type = "ec-polygon",
        r
    }
    return e.prototype.getDefaultShape = function() {
        return new OJe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.points
          , i = r.stackedOnPoints
          , o = 0
          , l = a.length / 2
          , s = r.smoothMonotone;
        if (r.connectNulls) {
            for (; l > 0 && _f(a[l * 2 - 2], a[l * 2 - 1]); l--)
                ;
            for (; o < l && _f(a[o * 2], a[o * 2 + 1]); o++)
                ;
        }
        for (; o < l; ) {
            var u = ek(n, a, o, l, l, 1, r.smooth, s, r.connectNulls);
            ek(n, i, o + u - 1, u, l, -1, r.stackedOnSmooth, s, r.connectNulls),
            o += u + 1,
            n.closePath()
        }
    }
    ,
    e
}(jt);
function Use(t, e, n, r, a) {
    var i = t.getArea()
      , o = i.x
      , l = i.y
      , s = i.width
      , u = i.height
      , c = n.get(["lineStyle", "width"]) || 2;
    o -= c / 2,
    l -= c / 2,
    s += c,
    u += c,
    o = Math.floor(o),
    s = Math.round(s);
    var f = new tn({
        shape: {
            x: o,
            y: l,
            width: s,
            height: u
        }
    });
    if (e) {
        var d = t.getBaseAxis()
          , v = d.isHorizontal()
          , h = d.inverse;
        v ? (h && (f.shape.x += s),
        f.shape.width = 0) : (h || (f.shape.y += u),
        f.shape.height = 0);
        var p = et(a) ? function(g) {
            a(g, f)
        }
        : null;
        $n(f, {
            shape: {
                width: s,
                height: u,
                x: o,
                y: l
            }
        }, n, null, r, p)
    }
    return f
}
function Yse(t, e, n) {
    var r = t.getArea()
      , a = Zn(r.r0, 1)
      , i = Zn(r.r, 1)
      , o = new Pa({
        shape: {
            cx: Zn(t.cx, 1),
            cy: Zn(t.cy, 1),
            r0: a,
            r: i,
            startAngle: r.startAngle,
            endAngle: r.endAngle,
            clockwise: r.clockwise
        }
    });
    if (e) {
        var l = t.getBaseAxis().dim === "angle";
        l ? o.shape.endAngle = r.startAngle : o.shape.r = a,
        $n(o, {
            shape: {
                endAngle: r.endAngle,
                r: i
            }
        }, n)
    }
    return o
}
function A2(t, e, n, r, a) {
    if (t) {
        if (t.type === "polar")
            return Yse(t, e, n);
        if (t.type === "cartesian2d")
            return Use(t, e, n, r, a)
    } else
        return null;
    return null
}
function od(t, e) {
    return t.type === e
}
function DW(t, e) {
    if (t.length === e.length) {
        for (var n = 0; n < t.length; n++)
            if (t[n] !== e[n])
                return;
        return !0
    }
}
function EW(t) {
    for (var e = 1 / 0, n = 1 / 0, r = -1 / 0, a = -1 / 0, i = 0; i < t.length; ) {
        var o = t[i++]
          , l = t[i++];
        isNaN(o) || (e = Math.min(o, e),
        r = Math.max(o, r)),
        isNaN(l) || (n = Math.min(l, n),
        a = Math.max(l, a))
    }
    return [[e, n], [r, a]]
}
function LW(t, e) {
    var n = EW(t)
      , r = n[0]
      , a = n[1]
      , i = EW(e)
      , o = i[0]
      , l = i[1];
    return Math.max(Math.abs(r[0] - o[0]), Math.abs(r[1] - o[1]), Math.abs(a[0] - l[0]), Math.abs(a[1] - l[1]))
}
function RW(t) {
    return rn(t) ? t : t ? .5 : 0
}
function DJe(t, e, n) {
    if (!n.valueDim)
        return [];
    for (var r = e.count(), a = il(r * 2), i = 0; i < r; i++) {
        var o = Wse(n, t, e, i);
        a[i * 2] = o[0],
        a[i * 2 + 1] = o[1]
    }
    return a
}
function Bs(t, e, n, r) {
    var a = e.getBaseAxis()
      , i = a.dim === "x" || a.dim === "radius" ? 0 : 1
      , o = []
      , l = 0
      , s = []
      , u = []
      , c = []
      , f = [];
    if (r) {
        for (l = 0; l < t.length; l += 2)
            !isNaN(t[l]) && !isNaN(t[l + 1]) && f.push(t[l], t[l + 1]);
        t = f
    }
    for (l = 0; l < t.length - 2; l += 2)
        switch (c[0] = t[l + 2],
        c[1] = t[l + 3],
        u[0] = t[l],
        u[1] = t[l + 1],
        o.push(u[0], u[1]),
        n) {
        case "end":
            s[i] = c[i],
            s[1 - i] = u[1 - i],
            o.push(s[0], s[1]);
            break;
        case "middle":
            var d = (u[i] + c[i]) / 2
              , v = [];
            s[i] = v[i] = d,
            s[1 - i] = u[1 - i],
            v[1 - i] = c[1 - i],
            o.push(s[0], s[1]),
            o.push(v[0], v[1]);
            break;
        default:
            s[i] = u[i],
            s[1 - i] = c[1 - i],
            o.push(s[0], s[1])
        }
    return o.push(t[l++], t[l++]),
    o
}
function EJe(t, e) {
    var n = [], r = t.length, a, i;
    function o(c, f, d) {
        var v = c.coord
          , h = (d - v) / (f.coord - v)
          , p = I6(h, [c.color, f.color]);
        return {
            coord: d,
            color: p
        }
    }
    for (var l = 0; l < r; l++) {
        var s = t[l]
          , u = s.coord;
        if (u < 0)
            a = s;
        else if (u > e) {
            i ? n.push(o(i, s, e)) : a && n.push(o(a, s, 0), o(a, s, e));
            break
        } else
            a && (n.push(o(a, s, 0)),
            a = null),
            n.push(s),
            i = s
    }
    return n
}
function LJe(t, e, n) {
    var r = t.getVisual("visualMeta");
    if (!(!r || !r.length || !t.count()) && e.type === "cartesian2d") {
        for (var a, i, o = r.length - 1; o >= 0; o--) {
            var l = t.getDimensionInfo(r[o].dimension);
            if (a = l && l.coordDim,
            a === "x" || a === "y") {
                i = r[o];
                break
            }
        }
        if (!!i) {
            var s = e.getAxis(a)
              , u = Le(i.stops, function(b) {
                return {
                    coord: s.toGlobalCoord(s.dataToCoord(b.value)),
                    color: b.color
                }
            })
              , c = u.length
              , f = i.outerColors.slice();
            c && u[0].coord > u[c - 1].coord && (u.reverse(),
            f.reverse());
            var d = EJe(u, a === "x" ? n.getWidth() : n.getHeight())
              , v = d.length;
            if (!v && c)
                return u[0].coord < 0 ? f[1] ? f[1] : u[c - 1].color : f[0] ? f[0] : u[0].color;
            var h = 10
              , p = d[0].coord - h
              , g = d[v - 1].coord + h
              , m = g - p;
            if (m < .001)
                return "transparent";
            Z(d, function(b) {
                b.offset = (b.coord - p) / m
            }),
            d.push({
                offset: v ? d[v - 1].offset : .5,
                color: f[1] || "transparent"
            }),
            d.unshift({
                offset: v ? d[0].offset : .5,
                color: f[0] || "transparent"
            });
            var y = new Mh(0,0,0,0,d,!0);
            return y[a] = p,
            y[a + "2"] = g,
            y
        }
    }
}
function RJe(t, e, n) {
    var r = t.get("showAllSymbol")
      , a = r === "auto";
    if (!(r && !a)) {
        var i = n.getAxesByScale("ordinal")[0];
        if (!!i && !(a && NJe(i, e))) {
            var o = e.mapDimension(i.dim)
              , l = {};
            return Z(i.getViewLabels(), function(s) {
                var u = i.scale.getRawOrdinalNumber(s.tickValue);
                l[u] = 1
            }),
            function(s) {
                return !l.hasOwnProperty(e.get(o, s))
            }
        }
    }
}
function NJe(t, e) {
    var n = t.getExtent()
      , r = Math.abs(n[1] - n[0]) / t.scale.count();
    isNaN(r) && (r = 0);
    for (var a = e.count(), i = Math.max(1, Math.round(a / 5)), o = 0; o < a; o += i)
        if (ay.getSymbolSize(e, o)[t.isHorizontal() ? 1 : 0] * 1.5 > r)
            return !1;
    return !0
}
function $Je(t, e) {
    return isNaN(t) || isNaN(e)
}
function FJe(t) {
    for (var e = t.length / 2; e > 0 && $Je(t[e * 2 - 2], t[e * 2 - 1]); e--)
        ;
    return e - 1
}
function NW(t, e) {
    return [t[e * 2], t[e * 2 + 1]]
}
function BJe(t, e, n) {
    for (var r = t.length / 2, a = n === "x" ? 0 : 1, i, o, l = 0, s = -1, u = 0; u < r; u++)
        if (o = t[u * 2 + a],
        !(isNaN(o) || isNaN(t[u * 2 + 1 - a]))) {
            if (u === 0) {
                i = o;
                continue
            }
            if (i <= e && o >= e || i >= e && o <= e) {
                s = u;
                break
            }
            l = u,
            i = o
        }
    return {
        range: [l, s],
        t: (e - i) / (o - i)
    }
}
function qse(t) {
    if (t.get(["endLabel", "show"]))
        return !0;
    for (var e = 0; e < Ta.length; e++)
        if (t.get([Ta[e], "endLabel", "show"]))
            return !0;
    return !1
}
function b4(t, e, n, r) {
    if (od(e, "cartesian2d")) {
        var a = r.getModel("endLabel")
          , i = a.get("valueAnimation")
          , o = r.getData()
          , l = {
            lastFrameIndex: 0
        }
          , s = qse(r) ? function(v, h) {
            t._endLabelOnDuring(v, h, o, l, i, a, e)
        }
        : null
          , u = e.getBaseAxis().isHorizontal()
          , c = Use(e, n, r, function() {
            var v = t._endLabel;
            v && n && l.originalX != null && v.attr({
                x: l.originalX,
                y: l.originalY
            })
        }, s);
        if (!r.get("clip", !0)) {
            var f = c.shape
              , d = Math.max(f.width, f.height);
            u ? (f.y -= d,
            f.height += d * 2) : (f.x -= d,
            f.width += d * 2)
        }
        return s && s(1, c),
        c
    } else
        return Yse(e, n, r)
}
function VJe(t, e) {
    var n = e.getBaseAxis()
      , r = n.isHorizontal()
      , a = n.inverse
      , i = r ? a ? "right" : "left" : "center"
      , o = r ? "middle" : a ? "top" : "bottom";
    return {
        normal: {
            align: t.get("align") || i,
            verticalAlign: t.get("verticalAlign") || o
        }
    }
}
var zJe = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.init = function() {
        var n = new mt
          , r = new iy;
        this.group.add(r.group),
        this._symbolDraw = r,
        this._lineGroup = n
    }
    ,
    e.prototype.render = function(n, r, a) {
        var i = this
          , o = n.coordinateSystem
          , l = this.group
          , s = n.getData()
          , u = n.getModel("lineStyle")
          , c = n.getModel("areaStyle")
          , f = s.getLayout("points") || []
          , d = o.type === "polar"
          , v = this._coordSys
          , h = this._symbolDraw
          , p = this._polyline
          , g = this._polygon
          , m = this._lineGroup
          , y = !r.ssr && n.isAnimationEnabled()
          , b = !c.isEmpty()
          , x = c.get("origin")
          , C = jse(o, s, x)
          , S = b && DJe(o, s, C)
          , w = n.get("showSymbol")
          , T = n.get("connectNulls")
          , P = w && !d && RJe(n, s, o)
          , M = this._data;
        M && M.eachItemGraphicEl(function(X, Y) {
            X.__temp && (l.remove(X),
            M.setItemGraphicEl(Y, null))
        }),
        w || h.remove(),
        l.add(m);
        var A = d ? !1 : n.get("step"), O;
        o && o.getArea && n.get("clip", !0) && (O = o.getArea(),
        O.width != null ? (O.x -= .1,
        O.y -= .1,
        O.width += .2,
        O.height += .2) : O.r0 && (O.r0 -= .5,
        O.r += .5)),
        this._clipShapeForSymbol = O;
        var k = LJe(s, o, a) || s.getVisual("style")[s.getVisual("drawType")];
        if (!(p && v.type === o.type && A === this._step))
            w && h.updateData(s, {
                isIgnore: P,
                clipShape: O,
                disableAnimation: !0,
                getSymbolPoint: function(X) {
                    return [f[X * 2], f[X * 2 + 1]]
                }
            }),
            y && this._initSymbolLabelAnimation(s, o, O),
            A && (f = Bs(f, o, A, T),
            S && (S = Bs(S, o, A, T))),
            p = this._newPolyline(f),
            b ? g = this._newPolygon(f, S) : g && (m.remove(g),
            g = this._polygon = null),
            d || this._initOrUpdateEndLabel(n, o, Vf(k)),
            m.setClipPath(b4(this, o, !0, n));
        else {
            b && !g ? g = this._newPolygon(f, S) : g && !b && (m.remove(g),
            g = this._polygon = null),
            d || this._initOrUpdateEndLabel(n, o, Vf(k));
            var D = m.getClipPath();
            if (D) {
                var E = b4(this, o, !1, n);
                $n(D, {
                    shape: E.shape
                }, n)
            } else
                m.setClipPath(b4(this, o, !0, n));
            w && h.updateData(s, {
                isIgnore: P,
                clipShape: O,
                disableAnimation: !0,
                getSymbolPoint: function(X) {
                    return [f[X * 2], f[X * 2 + 1]]
                }
            }),
            (!DW(this._stackedOnPoints, S) || !DW(this._points, f)) && (y ? this._doUpdateAnimation(s, S, o, a, A, x, T) : (A && (f = Bs(f, o, A, T),
            S && (S = Bs(S, o, A, T))),
            p.setShape({
                points: f
            }),
            g && g.setShape({
                points: f,
                stackedOnPoints: S
            })))
        }
        var L = n.getModel("emphasis")
          , N = L.get("focus")
          , R = L.get("blurScope")
          , $ = L.get("disabled");
        if (p.useStyle(ot(u.getLineStyle(), {
            fill: "none",
            stroke: k,
            lineJoin: "bevel"
        })),
        Jr(p, n, "lineStyle"),
        p.style.lineWidth > 0 && n.get(["emphasis", "lineStyle", "width"]) === "bolder") {
            var W = p.getState("emphasis").style;
            W.lineWidth = +p.style.lineWidth + 1
        }
        Ct(p).seriesIndex = n.seriesIndex,
        Qn(p, N, R, $);
        var B = RW(n.get("smooth"))
          , G = n.get("smoothMonotone");
        if (p.setShape({
            smooth: B,
            smoothMonotone: G,
            connectNulls: T
        }),
        g) {
            var K = s.getCalculationInfo("stackedOnSeries")
              , V = 0;
            g.useStyle(ot(c.getAreaStyle(), {
                fill: k,
                opacity: .7,
                lineJoin: "bevel",
                decal: s.getVisual("style").decal
            })),
            K && (V = RW(K.get("smooth"))),
            g.setShape({
                smooth: B,
                stackedOnSmooth: V,
                smoothMonotone: G,
                connectNulls: T
            }),
            Jr(g, n, "areaStyle"),
            Ct(g).seriesIndex = n.seriesIndex,
            Qn(g, N, R, $)
        }
        var U = function(X) {
            i._changePolyState(X)
        };
        s.eachItemGraphicEl(function(X) {
            X && (X.onHoverStateChange = U)
        }),
        this._polyline.onHoverStateChange = U,
        this._data = s,
        this._coordSys = o,
        this._stackedOnPoints = S,
        this._points = f,
        this._step = A,
        this._valueOrigin = x,
        n.get("triggerLineEvent") && (this.packEventData(n, p),
        g && this.packEventData(n, g))
    }
    ,
    e.prototype.packEventData = function(n, r) {
        Ct(r).eventData = {
            componentType: "series",
            componentSubType: "line",
            componentIndex: n.componentIndex,
            seriesIndex: n.seriesIndex,
            seriesName: n.name,
            seriesType: "line"
        }
    }
    ,
    e.prototype.highlight = function(n, r, a, i) {
        var o = n.getData()
          , l = $f(o, i);
        if (this._changePolyState("emphasis"),
        !(l instanceof Array) && l != null && l >= 0) {
            var s = o.getLayout("points")
              , u = o.getItemGraphicEl(l);
            if (!u) {
                var c = s[l * 2]
                  , f = s[l * 2 + 1];
                if (isNaN(c) || isNaN(f) || this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(c, f))
                    return;
                var d = n.get("zlevel") || 0
                  , v = n.get("z") || 0;
                u = new ay(o,l),
                u.x = c,
                u.y = f,
                u.setZ(d, v);
                var h = u.getSymbolPath().getTextContent();
                h && (h.zlevel = d,
                h.z = v,
                h.z2 = this._polyline.z2 + 1),
                u.__temp = !0,
                o.setItemGraphicEl(l, u),
                u.stopSymbolAnimation(!0),
                this.group.add(u)
            }
            u.highlight()
        } else
            Tn.prototype.highlight.call(this, n, r, a, i)
    }
    ,
    e.prototype.downplay = function(n, r, a, i) {
        var o = n.getData()
          , l = $f(o, i);
        if (this._changePolyState("normal"),
        l != null && l >= 0) {
            var s = o.getItemGraphicEl(l);
            s && (s.__temp ? (o.setItemGraphicEl(l, null),
            this.group.remove(s)) : s.downplay())
        } else
            Tn.prototype.downplay.call(this, n, r, a, i)
    }
    ,
    e.prototype._changePolyState = function(n) {
        var r = this._polygon;
        IS(this._polyline, n),
        r && IS(r, n)
    }
    ,
    e.prototype._newPolyline = function(n) {
        var r = this._polyline;
        return r && this._lineGroup.remove(r),
        r = new kJe({
            shape: {
                points: n
            },
            segmentIgnoreThreshold: 2,
            z2: 10
        }),
        this._lineGroup.add(r),
        this._polyline = r,
        r
    }
    ,
    e.prototype._newPolygon = function(n, r) {
        var a = this._polygon;
        return a && this._lineGroup.remove(a),
        a = new Kse({
            shape: {
                points: n,
                stackedOnPoints: r
            },
            segmentIgnoreThreshold: 2
        }),
        this._lineGroup.add(a),
        this._polygon = a,
        a
    }
    ,
    e.prototype._initSymbolLabelAnimation = function(n, r, a) {
        var i, o, l = r.getBaseAxis(), s = l.inverse;
        r.type === "cartesian2d" ? (i = l.isHorizontal(),
        o = !1) : r.type === "polar" && (i = l.dim === "angle",
        o = !0);
        var u = n.hostModel
          , c = u.get("animationDuration");
        et(c) && (c = c(null));
        var f = u.get("animationDelay") || 0
          , d = et(f) ? f(null) : f;
        n.eachItemGraphicEl(function(v, h) {
            var p = v;
            if (p) {
                var g = [v.x, v.y]
                  , m = void 0
                  , y = void 0
                  , b = void 0;
                if (a)
                    if (o) {
                        var x = a
                          , C = r.pointToCoord(g);
                        i ? (m = x.startAngle,
                        y = x.endAngle,
                        b = -C[1] / 180 * Math.PI) : (m = x.r0,
                        y = x.r,
                        b = C[0])
                    } else {
                        var S = a;
                        i ? (m = S.x,
                        y = S.x + S.width,
                        b = v.x) : (m = S.y + S.height,
                        y = S.y,
                        b = v.y)
                    }
                var w = y === m ? 0 : (b - m) / (y - m);
                s && (w = 1 - w);
                var T = et(f) ? f(h) : c * w + d
                  , P = p.getSymbolPath()
                  , M = P.getTextContent();
                p.attr({
                    scaleX: 0,
                    scaleY: 0
                }),
                p.animateTo({
                    scaleX: 1,
                    scaleY: 1
                }, {
                    duration: 200,
                    setToFinal: !0,
                    delay: T
                }),
                M && M.animateFrom({
                    style: {
                        opacity: 0
                    }
                }, {
                    duration: 300,
                    delay: T
                }),
                P.disableLabelAnimation = !0
            }
        })
    }
    ,
    e.prototype._initOrUpdateEndLabel = function(n, r, a) {
        var i = n.getModel("endLabel");
        if (qse(n)) {
            var o = n.getData()
              , l = this._polyline
              , s = o.getLayout("points");
            if (!s) {
                l.removeTextContent(),
                this._endLabel = null;
                return
            }
            var u = this._endLabel;
            u || (u = this._endLabel = new Jt({
                z2: 200
            }),
            u.ignoreClip = !0,
            l.setTextContent(this._endLabel),
            l.disableLabelAnimation = !0);
            var c = FJe(s);
            c >= 0 && (ea(l, Nr(n, "endLabel"), {
                inheritColor: a,
                labelFetcher: n,
                labelDataIndex: c,
                defaultText: function(f, d, v) {
                    return v != null ? Hse(o, v) : eh(o, f)
                },
                enableTextSetter: !0
            }, VJe(i, r)),
            l.textConfig.position = null)
        } else
            this._endLabel && (this._polyline.removeTextContent(),
            this._endLabel = null)
    }
    ,
    e.prototype._endLabelOnDuring = function(n, r, a, i, o, l, s) {
        var u = this._endLabel
          , c = this._polyline;
        if (u) {
            n < 1 && i.originalX == null && (i.originalX = u.x,
            i.originalY = u.y);
            var f = a.getLayout("points")
              , d = a.hostModel
              , v = d.get("connectNulls")
              , h = l.get("precision")
              , p = l.get("distance") || 0
              , g = s.getBaseAxis()
              , m = g.isHorizontal()
              , y = g.inverse
              , b = r.shape
              , x = y ? m ? b.x : b.y + b.height : m ? b.x + b.width : b.y
              , C = (m ? p : 0) * (y ? -1 : 1)
              , S = (m ? 0 : -p) * (y ? -1 : 1)
              , w = m ? "x" : "y"
              , T = BJe(f, x, w)
              , P = T.range
              , M = P[1] - P[0]
              , A = void 0;
            if (M >= 1) {
                if (M > 1 && !v) {
                    var O = NW(f, P[0]);
                    u.attr({
                        x: O[0] + C,
                        y: O[1] + S
                    }),
                    o && (A = d.getRawValue(P[0]))
                } else {
                    var O = c.getPointOn(x, w);
                    O && u.attr({
                        x: O[0] + C,
                        y: O[1] + S
                    });
                    var k = d.getRawValue(P[0])
                      , D = d.getRawValue(P[1]);
                    o && (A = vie(a, h, k, D, T.t))
                }
                i.lastFrameIndex = P[0]
            } else {
                var E = n === 1 || i.lastFrameIndex > 0 ? P[0] : 0
                  , O = NW(f, E);
                o && (A = d.getRawValue(E)),
                u.attr({
                    x: O[0] + C,
                    y: O[1] + S
                })
            }
            if (o) {
                var L = Oh(u);
                typeof L.setLabelText == "function" && L.setLabelText(A)
            }
        }
    }
    ,
    e.prototype._doUpdateAnimation = function(n, r, a, i, o, l, s) {
        var u = this._polyline
          , c = this._polygon
          , f = n.hostModel
          , d = IJe(this._data, n, this._stackedOnPoints, r, this._coordSys, a, this._valueOrigin)
          , v = d.current
          , h = d.stackedOnCurrent
          , p = d.next
          , g = d.stackedOnNext;
        if (o && (v = Bs(d.current, a, o, s),
        h = Bs(d.stackedOnCurrent, a, o, s),
        p = Bs(d.next, a, o, s),
        g = Bs(d.stackedOnNext, a, o, s)),
        LW(v, p) > 3e3 || c && LW(h, g) > 3e3) {
            u.stopAnimation(),
            u.setShape({
                points: p
            }),
            c && (c.stopAnimation(),
            c.setShape({
                points: p,
                stackedOnPoints: g
            }));
            return
        }
        u.shape.__points = d.current,
        u.shape.points = v;
        var m = {
            shape: {
                points: p
            }
        };
        d.current !== v && (m.shape.__points = d.next),
        u.stopAnimation(),
        ln(u, m, f),
        c && (c.setShape({
            points: v,
            stackedOnPoints: h
        }),
        c.stopAnimation(),
        ln(c, {
            shape: {
                stackedOnPoints: g
            }
        }, f),
        u.shape.points !== c.shape.points && (c.shape.points = u.shape.points));
        for (var y = [], b = d.status, x = 0; x < b.length; x++) {
            var C = b[x].cmd;
            if (C === "=") {
                var S = n.getItemGraphicEl(b[x].idx1);
                S && y.push({
                    el: S,
                    ptIdx: x
                })
            }
        }
        u.animators && u.animators.length && u.animators[0].during(function() {
            c && c.dirtyShape();
            for (var w = u.shape.__points, T = 0; T < y.length; T++) {
                var P = y[T].el
                  , M = y[T].ptIdx * 2;
                P.x = w[M],
                P.y = w[M + 1],
                P.markRedraw()
            }
        })
    }
    ,
    e.prototype.remove = function(n) {
        var r = this.group
          , a = this._data;
        this._lineGroup.removeAll(),
        this._symbolDraw.remove(!0),
        a && a.eachItemGraphicEl(function(i, o) {
            i.__temp && (r.remove(i),
            a.setItemGraphicEl(o, null))
        }),
        this._polyline = this._polygon = this._coordSys = this._points = this._stackedOnPoints = this._endLabel = this._data = null
    }
    ,
    e.type = "line",
    e
}(Tn);
const HJe = zJe;
function oy(t, e) {
    return {
        seriesType: t,
        plan: $h(),
        reset: function(n) {
            var r = n.getData()
              , a = n.coordinateSystem
              , i = n.pipelineContext
              , o = e || i.large;
            if (!!a) {
                var l = Le(a.dimensions, function(v) {
                    return r.mapDimension(v)
                }).slice(0, 2)
                  , s = l.length
                  , u = r.getCalculationInfo("stackResultDimension");
                ds(r, l[0]) && (l[0] = u),
                ds(r, l[1]) && (l[1] = u);
                var c = r.getStore()
                  , f = r.getDimensionIndex(l[0])
                  , d = r.getDimensionIndex(l[1]);
                return s && {
                    progress: function(v, h) {
                        for (var p = v.end - v.start, g = o && il(p * s), m = [], y = [], b = v.start, x = 0; b < v.end; b++) {
                            var C = void 0;
                            if (s === 1) {
                                var S = c.get(f, b);
                                C = a.dataToPoint(S, null, y)
                            } else
                                m[0] = c.get(f, b),
                                m[1] = c.get(d, b),
                                C = a.dataToPoint(m, null, y);
                            o ? (g[x++] = C[0],
                            g[x++] = C[1]) : h.setItemLayout(b, C.slice())
                        }
                        o && h.setLayout("points", g)
                    }
                }
            }
        }
    }
}
var jJe = {
    average: function(t) {
        for (var e = 0, n = 0, r = 0; r < t.length; r++)
            isNaN(t[r]) || (e += t[r],
            n++);
        return n === 0 ? NaN : e / n
    },
    sum: function(t) {
        for (var e = 0, n = 0; n < t.length; n++)
            e += t[n] || 0;
        return e
    },
    max: function(t) {
        for (var e = -1 / 0, n = 0; n < t.length; n++)
            t[n] > e && (e = t[n]);
        return isFinite(e) ? e : NaN
    },
    min: function(t) {
        for (var e = 1 / 0, n = 0; n < t.length; n++)
            t[n] < e && (e = t[n]);
        return isFinite(e) ? e : NaN
    },
    nearest: function(t) {
        return t[0]
    }
}
  , WJe = function(t) {
    return Math.round(t.length / 2)
};
function Xse(t) {
    return {
        seriesType: t,
        reset: function(e, n, r) {
            var a = e.getData()
              , i = e.get("sampling")
              , o = e.coordinateSystem
              , l = a.count();
            if (l > 10 && o.type === "cartesian2d" && i) {
                var s = o.getBaseAxis()
                  , u = o.getOtherAxis(s)
                  , c = s.getExtent()
                  , f = r.getDevicePixelRatio()
                  , d = Math.abs(c[1] - c[0]) * (f || 1)
                  , v = Math.round(l / d);
                if (isFinite(v) && v > 1) {
                    i === "lttb" && e.setData(a.lttbDownSample(a.mapDimension(u.dim), 1 / v));
                    var h = void 0;
                    Ge(i) ? h = jJe[i] : et(i) && (h = i),
                    h && e.setData(a.downSample(a.mapDimension(u.dim), 1 / v, h, WJe))
                }
            }
        }
    }
}
function GJe(t) {
    t.registerChartView(HJe),
    t.registerSeriesModel(wJe),
    t.registerLayout(oy("line", !0)),
    t.registerVisual({
        seriesType: "line",
        reset: function(e) {
            var n = e.getData()
              , r = e.getModel("lineStyle").getLineStyle();
            r && !r.stroke && (r.stroke = n.getVisual("style").fill),
            n.setVisual("legendLineStyle", r)
        }
    }),
    t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, Xse("line"))
}
var Zse = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.getInitialData = function(n, r) {
        return Pl(null, this, {
            useEncodeDefaulter: !0
        })
    }
    ,
    e.prototype.getMarkerPosition = function(n, r, a) {
        var i = this.coordinateSystem;
        if (i && i.clampData) {
            var o = i.clampData(n)
              , l = i.dataToPoint(o);
            if (a)
                Z(i.getAxes(), function(d, v) {
                    if (d.type === "category" && r != null) {
                        var h = d.getTicksCoords()
                          , p = o[v]
                          , g = r[v] === "x1" || r[v] === "y1";
                        if (g && (p += 1),
                        h.length < 2)
                            return;
                        if (h.length === 2) {
                            l[v] = d.toGlobalCoord(d.getExtent()[g ? 1 : 0]);
                            return
                        }
                        for (var m = void 0, y = void 0, b = 1, x = 0; x < h.length; x++) {
                            var C = h[x].coord
                              , S = x === h.length - 1 ? h[x - 1].tickValue + b : h[x].tickValue;
                            if (S === p) {
                                y = C;
                                break
                            } else if (S < p)
                                m = C;
                            else if (m != null && S > p) {
                                y = (C + m) / 2;
                                break
                            }
                            x === 1 && (b = S - h[0].tickValue)
                        }
                        y == null && (m ? m && (y = h[h.length - 1].coord) : y = h[0].coord),
                        l[v] = d.toGlobalCoord(y)
                    }
                });
            else {
                var s = this.getData()
                  , u = s.getLayout("offset")
                  , c = s.getLayout("size")
                  , f = i.getBaseAxis().isHorizontal() ? 0 : 1;
                l[f] += u + c / 2
            }
            return l
        }
        return [NaN, NaN]
    }
    ,
    e.type = "series.__base_bar__",
    e.defaultOption = {
        z: 2,
        coordinateSystem: "cartesian2d",
        legendHoverLink: !0,
        barMinHeight: 0,
        barMinAngle: 0,
        large: !1,
        largeThreshold: 400,
        progressive: 3e3,
        progressiveChunkMode: "mod"
    },
    e
}(En);
En.registerClass(Zse);
const XS = Zse;
var KJe = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.getInitialData = function() {
        return Pl(null, this, {
            useEncodeDefaulter: !0,
            createInvertedIndices: !!this.get("realtimeSort", !0) || null
        })
    }
    ,
    e.prototype.getProgressive = function() {
        return this.get("large") ? this.get("progressive") : !1
    }
    ,
    e.prototype.getProgressiveThreshold = function() {
        var n = this.get("progressiveThreshold")
          , r = this.get("largeThreshold");
        return r > n && (n = r),
        n
    }
    ,
    e.prototype.brushSelector = function(n, r, a) {
        return a.rect(r.getItemLayout(n))
    }
    ,
    e.type = "series.bar",
    e.dependencies = ["grid", "polar"],
    e.defaultOption = Yu(XS.defaultOption, {
        clip: !0,
        roundCap: !1,
        showBackground: !1,
        backgroundStyle: {
            color: "rgba(180, 180, 180, 0.2)",
            borderColor: null,
            borderWidth: 0,
            borderType: "solid",
            borderRadius: 0,
            shadowBlur: 0,
            shadowColor: null,
            shadowOffsetX: 0,
            shadowOffsetY: 0,
            opacity: 1
        },
        select: {
            itemStyle: {
                borderColor: "#212121"
            }
        },
        realtimeSort: !1
    }),
    e
}(XS);
const UJe = KJe;
var YJe = function() {
    function t() {
        this.cx = 0,
        this.cy = 0,
        this.r0 = 0,
        this.r = 0,
        this.startAngle = 0,
        this.endAngle = Math.PI * 2,
        this.clockwise = !0
    }
    return t
}()
  , qJe = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r.type = "sausage",
        r
    }
    return e.prototype.getDefaultShape = function() {
        return new YJe
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.cx
          , i = r.cy
          , o = Math.max(r.r0 || 0, 0)
          , l = Math.max(r.r, 0)
          , s = (l - o) * .5
          , u = o + s
          , c = r.startAngle
          , f = r.endAngle
          , d = r.clockwise
          , v = Math.PI * 2
          , h = d ? f - c < v : c - f < v;
        h || (c = f - (d ? v : -v));
        var p = Math.cos(c)
          , g = Math.sin(c)
          , m = Math.cos(f)
          , y = Math.sin(f);
        h ? (n.moveTo(p * o + a, g * o + i),
        n.arc(p * u + a, g * u + i, s, -Math.PI + c, c, !d)) : n.moveTo(p * l + a, g * l + i),
        n.arc(a, i, l, c, f, !d),
        n.arc(m * u + a, y * u + i, s, f - Math.PI * 2, f - Math.PI, !d),
        o !== 0 && n.arc(a, i, o, f, c, d)
    }
    ,
    e
}(jt);
const ZS = qJe;
function XJe(t, e) {
    e = e || {};
    var n = e.isRoundCap;
    return function(r, a, i) {
        var o = a.position;
        if (!o || o instanceof Array)
            return MS(r, a, i);
        var l = t(o)
          , s = a.distance != null ? a.distance : 5
          , u = this.shape
          , c = u.cx
          , f = u.cy
          , d = u.r
          , v = u.r0
          , h = (d + v) / 2
          , p = u.startAngle
          , g = u.endAngle
          , m = (p + g) / 2
          , y = n ? Math.abs(d - v) / 2 : 0
          , b = Math.cos
          , x = Math.sin
          , C = c + d * b(p)
          , S = f + d * x(p)
          , w = "left"
          , T = "top";
        switch (l) {
        case "startArc":
            C = c + (v - s) * b(m),
            S = f + (v - s) * x(m),
            w = "center",
            T = "top";
            break;
        case "insideStartArc":
            C = c + (v + s) * b(m),
            S = f + (v + s) * x(m),
            w = "center",
            T = "bottom";
            break;
        case "startAngle":
            C = c + h * b(p) + B1(p, s + y, !1),
            S = f + h * x(p) + V1(p, s + y, !1),
            w = "right",
            T = "middle";
            break;
        case "insideStartAngle":
            C = c + h * b(p) + B1(p, -s + y, !1),
            S = f + h * x(p) + V1(p, -s + y, !1),
            w = "left",
            T = "middle";
            break;
        case "middle":
            C = c + h * b(m),
            S = f + h * x(m),
            w = "center",
            T = "middle";
            break;
        case "endArc":
            C = c + (d + s) * b(m),
            S = f + (d + s) * x(m),
            w = "center",
            T = "bottom";
            break;
        case "insideEndArc":
            C = c + (d - s) * b(m),
            S = f + (d - s) * x(m),
            w = "center",
            T = "top";
            break;
        case "endAngle":
            C = c + h * b(g) + B1(g, s + y, !0),
            S = f + h * x(g) + V1(g, s + y, !0),
            w = "left",
            T = "middle";
            break;
        case "insideEndAngle":
            C = c + h * b(g) + B1(g, -s + y, !0),
            S = f + h * x(g) + V1(g, -s + y, !0),
            w = "right",
            T = "middle";
            break;
        default:
            return MS(r, a, i)
        }
        return r = r || {},
        r.x = C,
        r.y = S,
        r.align = w,
        r.verticalAlign = T,
        r
    }
}
function ZJe(t, e, n, r) {
    if (rn(r)) {
        t.setTextConfig({
            rotation: r
        });
        return
    } else if (ke(e)) {
        t.setTextConfig({
            rotation: 0
        });
        return
    }
    var a = t.shape, i = a.clockwise ? a.startAngle : a.endAngle, o = a.clockwise ? a.endAngle : a.startAngle, l = (i + o) / 2, s, u = n(e);
    switch (u) {
    case "startArc":
    case "insideStartArc":
    case "middle":
    case "insideEndArc":
    case "endArc":
        s = l;
        break;
    case "startAngle":
    case "insideStartAngle":
        s = i;
        break;
    case "endAngle":
    case "insideEndAngle":
        s = o;
        break;
    default:
        t.setTextConfig({
            rotation: 0
        });
        return
    }
    var c = Math.PI * 1.5 - s;
    u === "middle" && c > Math.PI / 2 && c < Math.PI * 1.5 && (c -= Math.PI),
    t.setTextConfig({
        rotation: c
    })
}
function B1(t, e, n) {
    return e * Math.sin(t) * (n ? -1 : 1)
}
function V1(t, e, n) {
    return e * Math.cos(t) * (n ? 1 : -1)
}
function uf(t, e, n) {
    var r = t.get("borderRadius");
    if (r == null)
        return n ? {
            cornerRadius: 0
        } : null;
    ke(r) || (r = [r, r, r, r]);
    var a = Math.abs(e.r || 0 - e.r0 || 0);
    return {
        cornerRadius: Le(r, function(i) {
            return Po(i, a)
        })
    }
}
var x4 = Math.max
  , S4 = Math.min;
function QJe(t, e) {
    var n = t.getArea && t.getArea();
    if (od(t, "cartesian2d")) {
        var r = t.getBaseAxis();
        if (r.type !== "category" || !r.onBand) {
            var a = e.getLayout("bandWidth");
            r.isHorizontal() ? (n.x -= a,
            n.width += a * 2) : (n.y -= a,
            n.height += a * 2)
        }
    }
    return n
}
var JJe = function(t) {
    ge(e, t);
    function e() {
        var n = t.call(this) || this;
        return n.type = e.type,
        n._isFirstFrame = !0,
        n
    }
    return e.prototype.render = function(n, r, a, i) {
        this._model = n,
        this._removeOnRenderedListener(a),
        this._updateDrawMode(n);
        var o = n.get("coordinateSystem");
        (o === "cartesian2d" || o === "polar") && (this._progressiveEls = null,
        this._isLargeDraw ? this._renderLarge(n, r, a) : this._renderNormal(n, r, a, i))
    }
    ,
    e.prototype.incrementalPrepareRender = function(n) {
        this._clear(),
        this._updateDrawMode(n),
        this._updateLargeClip(n)
    }
    ,
    e.prototype.incrementalRender = function(n, r) {
        this._progressiveEls = [],
        this._incrementalRenderLarge(n, r)
    }
    ,
    e.prototype.eachRendered = function(n) {
        Uu(this._progressiveEls || this.group, n)
    }
    ,
    e.prototype._updateDrawMode = function(n) {
        var r = n.pipelineContext.large;
        (this._isLargeDraw == null || r !== this._isLargeDraw) && (this._isLargeDraw = r,
        this._clear())
    }
    ,
    e.prototype._renderNormal = function(n, r, a, i) {
        var o = this.group, l = n.getData(), s = this._data, u = n.coordinateSystem, c = u.getBaseAxis(), f;
        u.type === "cartesian2d" ? f = c.isHorizontal() : u.type === "polar" && (f = c.dim === "angle");
        var d = n.isAnimationEnabled() ? n : null
          , v = eet(n, u);
        v && this._enableRealtimeSort(v, l, a);
        var h = n.get("clip", !0) || v
          , p = QJe(u, l);
        o.removeClipPath();
        var g = n.get("roundCap", !0)
          , m = n.get("showBackground", !0)
          , y = n.getModel("backgroundStyle")
          , b = y.get("borderRadius") || 0
          , x = []
          , C = this._backgroundEls
          , S = i && i.isInitSort
          , w = i && i.type === "changeAxisOrder";
        function T(A) {
            var O = z1[u.type](l, A)
              , k = set(u, f, O);
            return k.useStyle(y.getItemStyle()),
            u.type === "cartesian2d" ? k.setShape("r", b) : k.setShape("cornerRadius", b),
            x[A] = k,
            k
        }
        l.diff(s).add(function(A) {
            var O = l.getItemModel(A)
              , k = z1[u.type](l, A, O);
            if (m && T(A),
            !(!l.hasValue(A) || !zW[u.type](k))) {
                var D = !1;
                h && (D = $W[u.type](p, k));
                var E = FW[u.type](n, l, A, k, f, d, c.model, !1, g);
                v && (E.forceLabelAnimation = !0),
                HW(E, l, A, O, k, n, f, u.type === "polar"),
                S ? E.attr({
                    shape: k
                }) : v ? BW(v, d, E, k, A, f, !1, !1) : $n(E, {
                    shape: k
                }, n, A),
                l.setItemGraphicEl(A, E),
                o.add(E),
                E.ignore = D
            }
        }).update(function(A, O) {
            var k = l.getItemModel(A)
              , D = z1[u.type](l, A, k);
            if (m) {
                var E = void 0;
                C.length === 0 ? E = T(O) : (E = C[O],
                E.useStyle(y.getItemStyle()),
                u.type === "cartesian2d" ? E.setShape("r", b) : E.setShape("cornerRadius", b),
                x[A] = E);
                var L = z1[u.type](l, A)
                  , N = Jse(f, L, u);
                ln(E, {
                    shape: N
                }, d, A)
            }
            var R = s.getItemGraphicEl(O);
            if (!l.hasValue(A) || !zW[u.type](D)) {
                o.remove(R);
                return
            }
            var $ = !1;
            if (h && ($ = $W[u.type](p, D),
            $ && o.remove(R)),
            R ? Ao(R) : R = FW[u.type](n, l, A, D, f, d, c.model, !!R, g),
            v && (R.forceLabelAnimation = !0),
            w) {
                var W = R.getTextContent();
                if (W) {
                    var B = Oh(W);
                    B.prevValue != null && (B.prevValue = B.value)
                }
            } else
                HW(R, l, A, k, D, n, f, u.type === "polar");
            S ? R.attr({
                shape: D
            }) : v ? BW(v, d, R, D, A, f, !0, w) : ln(R, {
                shape: D
            }, n, A, null),
            l.setItemGraphicEl(A, R),
            R.ignore = $,
            o.add(R)
        }).remove(function(A) {
            var O = s.getItemGraphicEl(A);
            O && H0(O, n, A)
        }).execute();
        var P = this._backgroundGroup || (this._backgroundGroup = new mt);
        P.removeAll();
        for (var M = 0; M < x.length; ++M)
            P.add(x[M]);
        o.add(P),
        this._backgroundEls = x,
        this._data = l
    }
    ,
    e.prototype._renderLarge = function(n, r, a) {
        this._clear(),
        WW(n, this.group),
        this._updateLargeClip(n)
    }
    ,
    e.prototype._incrementalRenderLarge = function(n, r) {
        this._removeBackground(),
        WW(r, this.group, this._progressiveEls, !0)
    }
    ,
    e.prototype._updateLargeClip = function(n) {
        var r = n.get("clip", !0) && A2(n.coordinateSystem, !1, n)
          , a = this.group;
        r ? a.setClipPath(r) : a.removeClipPath()
    }
    ,
    e.prototype._enableRealtimeSort = function(n, r, a) {
        var i = this;
        if (!!r.count()) {
            var o = n.baseAxis;
            if (this._isFirstFrame)
                this._dispatchInitSort(r, n, a),
                this._isFirstFrame = !1;
            else {
                var l = function(s) {
                    var u = r.getItemGraphicEl(s)
                      , c = u && u.shape;
                    return c && Math.abs(o.isHorizontal() ? c.height : c.width) || 0
                };
                this._onRendered = function() {
                    i._updateSortWithinSameData(r, l, o, a)
                }
                ,
                a.getZr().on("rendered", this._onRendered)
            }
        }
    }
    ,
    e.prototype._dataSort = function(n, r, a) {
        var i = [];
        return n.each(n.mapDimension(r.dim), function(o, l) {
            var s = a(l);
            s = s == null ? NaN : s,
            i.push({
                dataIndex: l,
                mappedValue: s,
                ordinalNumber: o
            })
        }),
        i.sort(function(o, l) {
            return l.mappedValue - o.mappedValue
        }),
        {
            ordinalNumbers: Le(i, function(o) {
                return o.ordinalNumber
            })
        }
    }
    ,
    e.prototype._isOrderChangedWithinSameData = function(n, r, a) {
        for (var i = a.scale, o = n.mapDimension(a.dim), l = Number.MAX_VALUE, s = 0, u = i.getOrdinalMeta().categories.length; s < u; ++s) {
            var c = n.rawIndexOf(o, i.getRawOrdinalNumber(s))
              , f = c < 0 ? Number.MIN_VALUE : r(n.indexOfRawIndex(c));
            if (f > l)
                return !0;
            l = f
        }
        return !1
    }
    ,
    e.prototype._isOrderDifferentInView = function(n, r) {
        for (var a = r.scale, i = a.getExtent(), o = Math.max(0, i[0]), l = Math.min(i[1], a.getOrdinalMeta().categories.length - 1); o <= l; ++o)
            if (n.ordinalNumbers[o] !== a.getRawOrdinalNumber(o))
                return !0
    }
    ,
    e.prototype._updateSortWithinSameData = function(n, r, a, i) {
        if (!!this._isOrderChangedWithinSameData(n, r, a)) {
            var o = this._dataSort(n, a, r);
            this._isOrderDifferentInView(o, a) && (this._removeOnRenderedListener(i),
            i.dispatchAction({
                type: "changeAxisOrder",
                componentType: a.dim + "Axis",
                axisId: a.index,
                sortInfo: o
            }))
        }
    }
    ,
    e.prototype._dispatchInitSort = function(n, r, a) {
        var i = r.baseAxis
          , o = this._dataSort(n, i, function(l) {
            return n.get(n.mapDimension(r.otherAxis.dim), l)
        });
        a.dispatchAction({
            type: "changeAxisOrder",
            componentType: i.dim + "Axis",
            isInitSort: !0,
            axisId: i.index,
            sortInfo: o
        })
    }
    ,
    e.prototype.remove = function(n, r) {
        this._clear(this._model),
        this._removeOnRenderedListener(r)
    }
    ,
    e.prototype.dispose = function(n, r) {
        this._removeOnRenderedListener(r)
    }
    ,
    e.prototype._removeOnRenderedListener = function(n) {
        this._onRendered && (n.getZr().off("rendered", this._onRendered),
        this._onRendered = null)
    }
    ,
    e.prototype._clear = function(n) {
        var r = this.group
          , a = this._data;
        n && n.isAnimationEnabled() && a && !this._isLargeDraw ? (this._removeBackground(),
        this._backgroundEls = [],
        a.eachItemGraphicEl(function(i) {
            H0(i, n, Ct(i).dataIndex)
        })) : r.removeAll(),
        this._data = null,
        this._isFirstFrame = !0
    }
    ,
    e.prototype._removeBackground = function() {
        this.group.remove(this._backgroundGroup),
        this._backgroundGroup = null
    }
    ,
    e.type = "bar",
    e
}(Tn)
  , $W = {
    cartesian2d: function(t, e) {
        var n = e.width < 0 ? -1 : 1
          , r = e.height < 0 ? -1 : 1;
        n < 0 && (e.x += e.width,
        e.width = -e.width),
        r < 0 && (e.y += e.height,
        e.height = -e.height);
        var a = t.x + t.width
          , i = t.y + t.height
          , o = x4(e.x, t.x)
          , l = S4(e.x + e.width, a)
          , s = x4(e.y, t.y)
          , u = S4(e.y + e.height, i)
          , c = l < o
          , f = u < s;
        return e.x = c && o > a ? l : o,
        e.y = f && s > i ? u : s,
        e.width = c ? 0 : l - o,
        e.height = f ? 0 : u - s,
        n < 0 && (e.x += e.width,
        e.width = -e.width),
        r < 0 && (e.y += e.height,
        e.height = -e.height),
        c || f
    },
    polar: function(t, e) {
        var n = e.r0 <= e.r ? 1 : -1;
        if (n < 0) {
            var r = e.r;
            e.r = e.r0,
            e.r0 = r
        }
        var a = S4(e.r, t.r)
          , i = x4(e.r0, t.r0);
        e.r = a,
        e.r0 = i;
        var o = a - i < 0;
        if (n < 0) {
            var r = e.r;
            e.r = e.r0,
            e.r0 = r
        }
        return o
    }
}
  , FW = {
    cartesian2d: function(t, e, n, r, a, i, o, l, s) {
        var u = new tn({
            shape: Me({}, r),
            z2: 1
        });
        if (u.__dataIndex = n,
        u.name = "item",
        i) {
            var c = u.shape
              , f = a ? "height" : "width";
            c[f] = 0
        }
        return u
    },
    polar: function(t, e, n, r, a, i, o, l, s) {
        var u = !a && s ? ZS : Pa
          , c = new u({
            shape: r,
            z2: 1
        });
        c.name = "item";
        var f = Qse(a);
        if (c.calculateTextPosition = XJe(f, {
            isRoundCap: u === ZS
        }),
        i) {
            var d = c.shape
              , v = a ? "r" : "endAngle"
              , h = {};
            d[v] = a ? r.r0 : r.startAngle,
            h[v] = r[v],
            (l ? ln : $n)(c, {
                shape: h
            }, i)
        }
        return c
    }
};
function eet(t, e) {
    var n = t.get("realtimeSort", !0)
      , r = e.getBaseAxis();
    if (n && r.type === "category" && e.type === "cartesian2d")
        return {
            baseAxis: r,
            otherAxis: e.getOtherAxis(r)
        }
}
function BW(t, e, n, r, a, i, o, l) {
    var s, u;
    i ? (u = {
        x: r.x,
        width: r.width
    },
    s = {
        y: r.y,
        height: r.height
    }) : (u = {
        y: r.y,
        height: r.height
    },
    s = {
        x: r.x,
        width: r.width
    }),
    l || (o ? ln : $n)(n, {
        shape: s
    }, e, a, null);
    var c = e ? t.baseAxis.model : null;
    (o ? ln : $n)(n, {
        shape: u
    }, c, a)
}
function VW(t, e) {
    for (var n = 0; n < e.length; n++)
        if (!isFinite(t[e[n]]))
            return !0;
    return !1
}
var tet = ["x", "y", "width", "height"]
  , net = ["cx", "cy", "r", "startAngle", "endAngle"]
  , zW = {
    cartesian2d: function(t) {
        return !VW(t, tet)
    },
    polar: function(t) {
        return !VW(t, net)
    }
}
  , z1 = {
    cartesian2d: function(t, e, n) {
        var r = t.getItemLayout(e)
          , a = n ? aet(n, r) : 0
          , i = r.width > 0 ? 1 : -1
          , o = r.height > 0 ? 1 : -1;
        return {
            x: r.x + i * a / 2,
            y: r.y + o * a / 2,
            width: r.width - i * a,
            height: r.height - o * a
        }
    },
    polar: function(t, e, n) {
        var r = t.getItemLayout(e);
        return {
            cx: r.cx,
            cy: r.cy,
            r0: r.r0,
            r: r.r,
            startAngle: r.startAngle,
            endAngle: r.endAngle,
            clockwise: r.clockwise
        }
    }
};
function ret(t) {
    return t.startAngle != null && t.endAngle != null && t.startAngle === t.endAngle
}
function Qse(t) {
    return function(e) {
        var n = e ? "Arc" : "Angle";
        return function(r) {
            switch (r) {
            case "start":
            case "insideStart":
            case "end":
            case "insideEnd":
                return r + n;
            default:
                return r
            }
        }
    }(t)
}
function HW(t, e, n, r, a, i, o, l) {
    var s = e.getItemVisual(n, "style");
    if (l) {
        if (!i.get("roundCap")) {
            var c = t.shape
              , f = uf(r.getModel("itemStyle"), c, !0);
            Me(c, f),
            t.setShape(c)
        }
    } else {
        var u = r.get(["itemStyle", "borderRadius"]) || 0;
        t.setShape("r", u)
    }
    t.useStyle(s);
    var d = r.getShallow("cursor");
    d && t.attr("cursor", d);
    var v = l ? o ? a.r >= a.r0 ? "endArc" : "startArc" : a.endAngle >= a.startAngle ? "endAngle" : "startAngle" : o ? a.height >= 0 ? "bottom" : "top" : a.width >= 0 ? "right" : "left"
      , h = Nr(r);
    ea(t, h, {
        labelFetcher: i,
        labelDataIndex: n,
        defaultText: eh(i.getData(), n),
        inheritColor: s.fill,
        defaultOpacity: s.opacity,
        defaultOutsidePosition: v
    });
    var p = t.getTextContent();
    if (l && p) {
        var g = r.get(["label", "position"]);
        t.textConfig.inside = g === "middle" ? !0 : null,
        ZJe(t, g === "outside" ? v : g, Qse(o), r.get(["label", "rotate"]))
    }
    doe(p, h, i.getRawValue(n), function(y) {
        return Hse(e, y)
    });
    var m = r.getModel(["emphasis"]);
    Qn(t, m.get("focus"), m.get("blurScope"), m.get("disabled")),
    Jr(t, r),
    ret(a) && (t.style.fill = "none",
    t.style.stroke = "none",
    Z(t.states, function(y) {
        y.style && (y.style.fill = y.style.stroke = "none")
    }))
}
function aet(t, e) {
    var n = t.get(["itemStyle", "borderColor"]);
    if (!n || n === "none")
        return 0;
    var r = t.get(["itemStyle", "borderWidth"]) || 0
      , a = isNaN(e.width) ? Number.MAX_VALUE : Math.abs(e.width)
      , i = isNaN(e.height) ? Number.MAX_VALUE : Math.abs(e.height);
    return Math.min(r, a, i)
}
var iet = function() {
    function t() {}
    return t
}()
  , jW = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r.type = "largeBar",
        r
    }
    return e.prototype.getDefaultShape = function() {
        return new iet
    }
    ,
    e.prototype.buildPath = function(n, r) {
        for (var a = r.points, i = this.baseDimIdx, o = 1 - this.baseDimIdx, l = [], s = [], u = this.barWidth, c = 0; c < a.length; c += 3)
            s[i] = u,
            s[o] = a[c + 2],
            l[i] = a[c + i],
            l[o] = a[c + o],
            n.rect(l[0], l[1], s[0], s[1])
    }
    ,
    e
}(jt);
function WW(t, e, n, r) {
    var a = t.getData()
      , i = a.getLayout("valueAxisHorizontal") ? 1 : 0
      , o = a.getLayout("largeDataIndices")
      , l = a.getLayout("size")
      , s = t.getModel("backgroundStyle")
      , u = a.getLayout("largeBackgroundPoints");
    if (u) {
        var c = new jW({
            shape: {
                points: u
            },
            incremental: !!r,
            silent: !0,
            z2: 0
        });
        c.baseDimIdx = i,
        c.largeDataIndices = o,
        c.barWidth = l,
        c.useStyle(s.getItemStyle()),
        e.add(c),
        n && n.push(c)
    }
    var f = new jW({
        shape: {
            points: a.getLayout("largePoints")
        },
        incremental: !!r,
        ignoreCoarsePointer: !0,
        z2: 1
    });
    f.baseDimIdx = i,
    f.largeDataIndices = o,
    f.barWidth = l,
    e.add(f),
    f.useStyle(a.getVisual("style")),
    Ct(f).seriesIndex = t.seriesIndex,
    t.get("silent") || (f.on("mousedown", GW),
    f.on("mousemove", GW)),
    n && n.push(f)
}
var GW = S2(function(t) {
    var e = this
      , n = oet(e, t.offsetX, t.offsetY);
    Ct(e).dataIndex = n >= 0 ? n : null
}, 30, !1);
function oet(t, e, n) {
    for (var r = t.baseDimIdx, a = 1 - r, i = t.shape.points, o = t.largeDataIndices, l = [], s = [], u = t.barWidth, c = 0, f = i.length / 3; c < f; c++) {
        var d = c * 3;
        if (s[r] = u,
        s[a] = i[d + 2],
        l[r] = i[d + r],
        l[a] = i[d + a],
        s[a] < 0 && (l[a] += s[a],
        s[a] = -s[a]),
        e >= l[0] && e <= l[0] + s[0] && n >= l[1] && n <= l[1] + s[1])
            return o[c]
    }
    return -1
}
function Jse(t, e, n) {
    if (od(n, "cartesian2d")) {
        var r = e
          , a = n.getArea();
        return {
            x: t ? r.x : a.x,
            y: t ? a.y : r.y,
            width: t ? r.width : a.width,
            height: t ? a.height : r.height
        }
    } else {
        var a = n.getArea()
          , i = e;
        return {
            cx: a.cx,
            cy: a.cy,
            r0: t ? a.r0 : i.r0,
            r: t ? a.r : i.r,
            startAngle: t ? i.startAngle : 0,
            endAngle: t ? i.endAngle : Math.PI * 2
        }
    }
}
function set(t, e, n) {
    var r = t.type === "polar" ? Pa : tn;
    return new r({
        shape: Jse(e, n, t),
        silent: !0,
        z2: 0
    })
}
const uet = JJe;
function cet(t) {
    t.registerChartView(uet),
    t.registerSeriesModel(UJe),
    t.registerLayout(t.PRIORITY.VISUAL.LAYOUT, St(rse, "bar")),
    t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, ase("bar")),
    t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, Xse("bar")),
    t.registerAction({
        type: "changeAxisOrder",
        event: "changeAxisOrder",
        update: "update"
    }, function(e, n) {
        var r = e.componentType || "series";
        n.eachComponent({
            mainType: r,
            query: e
        }, function(a) {
            e.sortInfo && a.axis.setCategorySortInfo(e.sortInfo)
        })
    })
}
var H1 = Math.PI * 2
  , KW = Math.PI / 180;
function eue(t, e) {
    return xr(t.getBoxLayoutParams(), {
        width: e.getWidth(),
        height: e.getHeight()
    })
}
function tue(t, e) {
    var n = eue(t, e)
      , r = t.get("center")
      , a = t.get("radius");
    ke(a) || (a = [0, a]);
    var i = He(n.width, e.getWidth()), o = He(n.height, e.getHeight()), l = Math.min(i, o), s = He(a[0], l / 2), u = He(a[1], l / 2), c, f, d = t.coordinateSystem;
    if (d) {
        var v = d.dataToPoint(r);
        c = v[0] || 0,
        f = v[1] || 0
    } else
        ke(r) || (r = [r, r]),
        c = He(r[0], i) + n.x,
        f = He(r[1], o) + n.y;
    return {
        cx: c,
        cy: f,
        r0: s,
        r: u
    }
}
function fet(t, e, n) {
    e.eachSeriesByType(t, function(r) {
        var a = r.getData()
          , i = a.mapDimension("value")
          , o = eue(r, n)
          , l = tue(r, n)
          , s = l.cx
          , u = l.cy
          , c = l.r
          , f = l.r0
          , d = -r.get("startAngle") * KW
          , v = r.get("minAngle") * KW
          , h = 0;
        a.each(i, function(M) {
            !isNaN(M) && h++
        });
        var p = a.getSum(i)
          , g = Math.PI / (p || h) * 2
          , m = r.get("clockwise")
          , y = r.get("roseType")
          , b = r.get("stillShowZeroSum")
          , x = a.getDataExtent(i);
        x[0] = 0;
        var C = H1
          , S = 0
          , w = d
          , T = m ? 1 : -1;
        if (a.setLayout({
            viewRect: o,
            r: c
        }),
        a.each(i, function(M, A) {
            var O;
            if (isNaN(M)) {
                a.setItemLayout(A, {
                    angle: NaN,
                    startAngle: NaN,
                    endAngle: NaN,
                    clockwise: m,
                    cx: s,
                    cy: u,
                    r0: f,
                    r: y ? NaN : c
                });
                return
            }
            y !== "area" ? O = p === 0 && b ? g : M * g : O = H1 / h,
            O < v ? (O = v,
            C -= v) : S += M;
            var k = w + T * O;
            a.setItemLayout(A, {
                angle: O,
                startAngle: w,
                endAngle: k,
                clockwise: m,
                cx: s,
                cy: u,
                r0: f,
                r: y ? vn(M, x, [f, c]) : c
            }),
            w = k
        }),
        C < H1 && h)
            if (C <= .001) {
                var P = H1 / h;
                a.each(i, function(M, A) {
                    if (!isNaN(M)) {
                        var O = a.getItemLayout(A);
                        O.angle = P,
                        O.startAngle = d + T * A * P,
                        O.endAngle = d + T * (A + 1) * P
                    }
                })
            } else
                g = C / S,
                w = d,
                a.each(i, function(M, A) {
                    if (!isNaN(M)) {
                        var O = a.getItemLayout(A)
                          , k = O.angle === v ? v : M * g;
                        O.startAngle = w,
                        O.endAngle = w + T * k,
                        w += T * k
                    }
                })
    })
}
function ly(t) {
    return {
        seriesType: t,
        reset: function(e, n) {
            var r = n.findComponents({
                mainType: "legend"
            });
            if (!(!r || !r.length)) {
                var a = e.getData();
                a.filterSelf(function(i) {
                    for (var o = a.getName(i), l = 0; l < r.length; l++)
                        if (!r[l].isSelected(o))
                            return !1;
                    return !0
                })
            }
        }
    }
}
var det = Math.PI / 180;
function UW(t, e, n, r, a, i, o, l, s, u) {
    if (t.length < 2)
        return;
    function c(p) {
        for (var g = p.rB, m = g * g, y = 0; y < p.list.length; y++) {
            var b = p.list[y]
              , x = Math.abs(b.label.y - n)
              , C = r + b.len
              , S = C * C
              , w = Math.sqrt((1 - Math.abs(x * x / m)) * S)
              , T = e + (w + b.len2) * a
              , P = T - b.label.x
              , M = b.targetTextWidth - P * a;
            nue(b, M, !0),
            b.label.x = T
        }
    }
    function f(p) {
        for (var g = {
            list: [],
            maxY: 0
        }, m = {
            list: [],
            maxY: 0
        }, y = 0; y < p.length; y++)
            if (p[y].labelAlignTo === "none") {
                var b = p[y]
                  , x = b.label.y > n ? m : g
                  , C = Math.abs(b.label.y - n);
                if (C >= x.maxY) {
                    var S = b.label.x - e - b.len2 * a
                      , w = r + b.len
                      , T = Math.abs(S) < w ? Math.sqrt(C * C / (1 - S * S / w / w)) : w;
                    x.rB = T,
                    x.maxY = C
                }
                x.list.push(b)
            }
        c(g),
        c(m)
    }
    for (var d = t.length, v = 0; v < d; v++)
        if (t[v].position === "outer" && t[v].labelAlignTo === "labelLine") {
            var h = t[v].label.x - u;
            t[v].linePoints[1][0] += h,
            t[v].label.x = u
        }
    Pse(t, s, s + o) && f(t)
}
function vet(t, e, n, r, a, i, o, l) {
    for (var s = [], u = [], c = Number.MAX_VALUE, f = -Number.MAX_VALUE, d = 0; d < t.length; d++) {
        var v = t[d].label;
        C4(t[d]) || (v.x < e ? (c = Math.min(c, v.x),
        s.push(t[d])) : (f = Math.max(f, v.x),
        u.push(t[d])))
    }
    for (var d = 0; d < t.length; d++) {
        var h = t[d];
        if (!C4(h) && h.linePoints) {
            if (h.labelStyleWidth != null)
                continue;
            var v = h.label
              , p = h.linePoints
              , g = void 0;
            h.labelAlignTo === "edge" ? v.x < e ? g = p[2][0] - h.labelDistance - o - h.edgeDistance : g = o + a - h.edgeDistance - p[2][0] - h.labelDistance : h.labelAlignTo === "labelLine" ? v.x < e ? g = c - o - h.bleedMargin : g = o + a - f - h.bleedMargin : v.x < e ? g = v.x - o - h.bleedMargin : g = o + a - v.x - h.bleedMargin,
            h.targetTextWidth = g,
            nue(h, g)
        }
    }
    UW(u, e, n, r, 1, a, i, o, l, f),
    UW(s, e, n, r, -1, a, i, o, l, c);
    for (var d = 0; d < t.length; d++) {
        var h = t[d];
        if (!C4(h) && h.linePoints) {
            var v = h.label
              , p = h.linePoints
              , m = h.labelAlignTo === "edge"
              , y = v.style.padding
              , b = y ? y[1] + y[3] : 0
              , x = v.style.backgroundColor ? 0 : b
              , C = h.rect.width + x
              , S = p[1][0] - p[2][0];
            m ? v.x < e ? p[2][0] = o + h.edgeDistance + C + h.labelDistance : p[2][0] = o + a - h.edgeDistance - C - h.labelDistance : (v.x < e ? p[2][0] = v.x + h.labelDistance : p[2][0] = v.x - h.labelDistance,
            p[1][0] = p[2][0] + S),
            p[1][1] = p[2][1] = v.y
        }
    }
}
function nue(t, e, n) {
    if (n === void 0 && (n = !1),
    t.labelStyleWidth == null) {
        var r = t.label
          , a = r.style
          , i = t.rect
          , o = a.backgroundColor
          , l = a.padding
          , s = l ? l[1] + l[3] : 0
          , u = a.overflow
          , c = i.width + (o ? 0 : s);
        if (e < c || n) {
            var f = i.height;
            if (u && u.match("break")) {
                r.setStyle("backgroundColor", null),
                r.setStyle("width", e - s);
                var d = r.getBoundingRect();
                r.setStyle("width", Math.ceil(d.width)),
                r.setStyle("backgroundColor", o)
            } else {
                var v = e - s
                  , h = e < c ? v : n ? v > t.unconstrainedWidth ? null : v : null;
                r.setStyle("width", h)
            }
            var p = r.getBoundingRect();
            i.width = p.width;
            var g = (r.style.margin || 0) + 2.1;
            i.height = p.height + g,
            i.y -= (i.height - f) / 2
        }
    }
}
function C4(t) {
    return t.position === "center"
}
function het(t) {
    var e = t.getData(), n = [], r, a, i = !1, o = (t.get("minShowLabelAngle") || 0) * det, l = e.getLayout("viewRect"), s = e.getLayout("r"), u = l.width, c = l.x, f = l.y, d = l.height;
    function v(S) {
        S.ignore = !0
    }
    function h(S) {
        if (!S.ignore)
            return !0;
        for (var w in S.states)
            if (S.states[w].ignore === !1)
                return !0;
        return !1
    }
    e.each(function(S) {
        var w = e.getItemGraphicEl(S)
          , T = w.shape
          , P = w.getTextContent()
          , M = w.getTextGuideLine()
          , A = e.getItemModel(S)
          , O = A.getModel("label")
          , k = O.get("position") || A.get(["emphasis", "label", "position"])
          , D = O.get("distanceToLabelLine")
          , E = O.get("alignTo")
          , L = He(O.get("edgeDistance"), u)
          , N = O.get("bleedMargin")
          , R = A.getModel("labelLine")
          , $ = R.get("length");
        $ = He($, u);
        var W = R.get("length2");
        if (W = He(W, u),
        Math.abs(T.endAngle - T.startAngle) < o) {
            Z(P.states, v),
            P.ignore = !0,
            M && (Z(M.states, v),
            M.ignore = !0);
            return
        }
        if (!!h(P)) {
            var B = (T.startAngle + T.endAngle) / 2, G = Math.cos(B), K = Math.sin(B), V, U, X, Y;
            r = T.cx,
            a = T.cy;
            var te = k === "inside" || k === "inner";
            if (k === "center")
                V = T.cx,
                U = T.cy,
                Y = "center";
            else {
                var ne = (te ? (T.r + T.r0) / 2 * G : T.r * G) + r
                  , ie = (te ? (T.r + T.r0) / 2 * K : T.r * K) + a;
                if (V = ne + G * 3,
                U = ie + K * 3,
                !te) {
                    var ae = ne + G * ($ + s - T.r)
                      , q = ie + K * ($ + s - T.r)
                      , F = ae + (G < 0 ? -1 : 1) * W
                      , H = q;
                    E === "edge" ? V = G < 0 ? c + L : c + u - L : V = F + (G < 0 ? -D : D),
                    U = H,
                    X = [[ne, ie], [ae, q], [F, H]]
                }
                Y = te ? "center" : E === "edge" ? G > 0 ? "right" : "left" : G > 0 ? "left" : "right"
            }
            var ee = Math.PI
              , re = 0
              , ue = O.get("rotate");
            if (rn(ue))
                re = ue * (ee / 180);
            else if (k === "center")
                re = 0;
            else if (ue === "radial" || ue === !0) {
                var ve = G < 0 ? -B + ee : -B;
                re = ve
            } else if (ue === "tangential" && k !== "outside" && k !== "outer") {
                var fe = Math.atan2(G, K);
                fe < 0 && (fe = ee * 2 + fe);
                var ce = K > 0;
                ce && (fe = ee + fe),
                re = fe - ee
            }
            if (i = !!re,
            P.x = V,
            P.y = U,
            P.rotation = re,
            P.setStyle({
                verticalAlign: "middle"
            }),
            te) {
                P.setStyle({
                    align: Y
                });
                var se = P.states.select;
                se && (se.x += P.x,
                se.y += P.y)
            } else {
                var le = P.getBoundingRect().clone();
                le.applyTransform(P.getComputedTransform());
                var oe = (P.style.margin || 0) + 2.1;
                le.y -= oe / 2,
                le.height += oe,
                n.push({
                    label: P,
                    labelLine: M,
                    position: k,
                    len: $,
                    len2: W,
                    minTurnAngle: R.get("minTurnAngle"),
                    maxSurfaceAngle: R.get("maxSurfaceAngle"),
                    surfaceNormal: new kt(G,K),
                    linePoints: X,
                    textAlign: Y,
                    labelDistance: D,
                    labelAlignTo: E,
                    edgeDistance: L,
                    bleedMargin: N,
                    rect: le,
                    unconstrainedWidth: le.width,
                    labelStyleWidth: P.style.width
                })
            }
            w.setTextConfig({
                inside: te
            })
        }
    }),
    !i && t.get("avoidLabelOverlap") && vet(n, r, a, s, u, d, c, f);
    for (var p = 0; p < n.length; p++) {
        var g = n[p]
          , m = g.label
          , y = g.labelLine
          , b = isNaN(m.x) || isNaN(m.y);
        if (m) {
            m.setStyle({
                align: g.textAlign
            }),
            b && (Z(m.states, v),
            m.ignore = !0);
            var x = m.states.select;
            x && (x.x += m.x,
            x.y += m.y)
        }
        if (y) {
            var C = g.linePoints;
            b || !C ? (Z(y.states, v),
            y.ignore = !0) : (wse(C, g.minTurnAngle),
            PQe(C, g.surfaceNormal, g.maxSurfaceAngle),
            y.setShape({
                points: C
            }),
            m.__hostTarget.textGuideLineConfig = {
                anchor: new kt(C[0][0],C[0][1])
            })
        }
    }
}
var pet = function(t) {
    ge(e, t);
    function e(n, r, a) {
        var i = t.call(this) || this;
        i.z2 = 2;
        var o = new Jt;
        return i.setTextContent(o),
        i.updateData(n, r, a, !0),
        i
    }
    return e.prototype.updateData = function(n, r, a, i) {
        var o = this
          , l = n.hostModel
          , s = n.getItemModel(r)
          , u = s.getModel("emphasis")
          , c = n.getItemLayout(r)
          , f = Me(uf(s.getModel("itemStyle"), c, !0), c);
        if (isNaN(f.startAngle)) {
            o.setShape(f);
            return
        }
        if (i) {
            o.setShape(f);
            var d = l.getShallow("animationType");
            l.ecModel.ssr ? ($n(o, {
                scaleX: 0,
                scaleY: 0
            }, l, {
                dataIndex: r,
                isFrom: !0
            }),
            o.originX = f.cx,
            o.originY = f.cy) : d === "scale" ? (o.shape.r = c.r0,
            $n(o, {
                shape: {
                    r: c.r
                }
            }, l, r)) : a != null ? (o.setShape({
                startAngle: a,
                endAngle: a
            }),
            $n(o, {
                shape: {
                    startAngle: c.startAngle,
                    endAngle: c.endAngle
                }
            }, l, r)) : (o.shape.endAngle = c.startAngle,
            ln(o, {
                shape: {
                    endAngle: c.endAngle
                }
            }, l, r))
        } else
            Ao(o),
            ln(o, {
                shape: f
            }, l, r);
        o.useStyle(n.getItemVisual(r, "style")),
        Jr(o, s);
        var v = (c.startAngle + c.endAngle) / 2
          , h = l.get("selectedOffset")
          , p = Math.cos(v) * h
          , g = Math.sin(v) * h
          , m = s.getShallow("cursor");
        m && o.attr("cursor", m),
        this._updateLabel(l, n, r),
        o.ensureState("emphasis").shape = Me({
            r: c.r + (u.get("scale") && u.get("scaleSize") || 0)
        }, uf(u.getModel("itemStyle"), c)),
        Me(o.ensureState("select"), {
            x: p,
            y: g,
            shape: uf(s.getModel(["select", "itemStyle"]), c)
        }),
        Me(o.ensureState("blur"), {
            shape: uf(s.getModel(["blur", "itemStyle"]), c)
        });
        var y = o.getTextGuideLine()
          , b = o.getTextContent();
        y && Me(y.ensureState("select"), {
            x: p,
            y: g
        }),
        Me(b.ensureState("select"), {
            x: p,
            y: g
        }),
        Qn(this, u.get("focus"), u.get("blurScope"), u.get("disabled"))
    }
    ,
    e.prototype._updateLabel = function(n, r, a) {
        var i = this
          , o = r.getItemModel(a)
          , l = o.getModel("labelLine")
          , s = r.getItemVisual(a, "style")
          , u = s && s.fill
          , c = s && s.opacity;
        ea(i, Nr(o), {
            labelFetcher: r.hostModel,
            labelDataIndex: a,
            inheritColor: u,
            defaultOpacity: c,
            defaultText: n.getFormattedLabel(a, "normal") || r.getName(a)
        });
        var f = i.getTextContent();
        i.setTextConfig({
            position: null,
            rotation: null
        }),
        f.attr({
            z2: 10
        });
        var d = n.get(["label", "position"]);
        if (d !== "outside" && d !== "outer")
            i.removeTextGuideLine();
        else {
            var v = this.getTextGuideLine();
            v || (v = new Aa,
            this.setTextGuideLine(v)),
            $5(this, F5(o), {
                stroke: u,
                opacity: ho(l.get(["lineStyle", "opacity"]), c, 1)
            })
        }
    }
    ,
    e
}(Pa)
  , get = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.ignoreLabelLineUpdate = !0,
        n
    }
    return e.prototype.render = function(n, r, a, i) {
        var o = n.getData(), l = this._data, s = this.group, u;
        if (!l && o.count() > 0) {
            for (var c = o.getItemLayout(0), f = 1; isNaN(c && c.startAngle) && f < o.count(); ++f)
                c = o.getItemLayout(f);
            c && (u = c.startAngle)
        }
        if (this._emptyCircleSector && s.remove(this._emptyCircleSector),
        o.count() === 0 && n.get("showEmptyCircle")) {
            var d = new Pa({
                shape: tue(n, a)
            });
            d.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),
            this._emptyCircleSector = d,
            s.add(d)
        }
        o.diff(l).add(function(v) {
            var h = new pet(o,v,u);
            o.setItemGraphicEl(v, h),
            s.add(h)
        }).update(function(v, h) {
            var p = l.getItemGraphicEl(h);
            p.updateData(o, v, u),
            p.off("click"),
            s.add(p),
            o.setItemGraphicEl(v, p)
        }).remove(function(v) {
            var h = l.getItemGraphicEl(v);
            H0(h, n, v)
        }).execute(),
        het(n),
        n.get("animationTypeUpdate") !== "expansion" && (this._data = o)
    }
    ,
    e.prototype.dispose = function() {}
    ,
    e.prototype.containPoint = function(n, r) {
        var a = r.getData()
          , i = a.getItemLayout(0);
        if (i) {
            var o = n[0] - i.cx
              , l = n[1] - i.cy
              , s = Math.sqrt(o * o + l * l);
            return s <= i.r && s >= i.r0
        }
    }
    ,
    e.type = "pie",
    e
}(Tn);
const met = get;
function Hh(t, e, n) {
    e = ke(e) && {
        coordDimensions: e
    } || Me({
        encodeDefine: t.getEncode()
    }, e);
    var r = t.getSource()
      , a = Vh(r, e).dimensions
      , i = new oa(a,t);
    return i.initData(r, n),
    i
}
var yet = function() {
    function t(e, n) {
        this._getDataWithEncodedVisual = e,
        this._getRawData = n
    }
    return t.prototype.getAllNames = function() {
        var e = this._getRawData();
        return e.mapArray(e.getName)
    }
    ,
    t.prototype.containName = function(e) {
        var n = this._getRawData();
        return n.indexOfName(e) >= 0
    }
    ,
    t.prototype.indexOfName = function(e) {
        var n = this._getDataWithEncodedVisual();
        return n.indexOfName(e)
    }
    ,
    t.prototype.getItemVisual = function(e, n) {
        var r = this._getDataWithEncodedVisual();
        return r.getItemVisual(e, n)
    }
    ,
    t
}();
const sy = yet;
var bet = an()
  , xet = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.init = function(n) {
        t.prototype.init.apply(this, arguments),
        this.legendVisualProvider = new sy(qe(this.getData, this),qe(this.getRawData, this)),
        this._defaultLabelLine(n)
    }
    ,
    e.prototype.mergeOption = function() {
        t.prototype.mergeOption.apply(this, arguments)
    }
    ,
    e.prototype.getInitialData = function() {
        return Hh(this, {
            coordDimensions: ["value"],
            encodeDefaulter: St(s5, this)
        })
    }
    ,
    e.prototype.getDataParams = function(n) {
        var r = this.getData()
          , a = bet(r)
          , i = a.seats;
        if (!i) {
            var o = [];
            r.each(r.mapDimension("value"), function(s) {
                o.push(s)
            }),
            i = a.seats = aie(o, r.hostModel.get("percentPrecision"))
        }
        var l = t.prototype.getDataParams.call(this, n);
        return l.percent = i[n] || 0,
        l.$vars.push("percent"),
        l
    }
    ,
    e.prototype._defaultLabelLine = function(n) {
        Nf(n, "labelLine", ["show"]);
        var r = n.labelLine
          , a = n.emphasis.labelLine;
        r.show = r.show && n.label.show,
        a.show = a.show && n.emphasis.label.show
    }
    ,
    e.type = "series.pie",
    e.defaultOption = {
        z: 2,
        legendHoverLink: !0,
        colorBy: "data",
        center: ["50%", "50%"],
        radius: [0, "75%"],
        clockwise: !0,
        startAngle: 90,
        minAngle: 0,
        minShowLabelAngle: 0,
        selectedOffset: 10,
        percentPrecision: 2,
        stillShowZeroSum: !0,
        left: 0,
        top: 0,
        right: 0,
        bottom: 0,
        width: null,
        height: null,
        label: {
            rotate: 0,
            show: !0,
            overflow: "truncate",
            position: "outer",
            alignTo: "none",
            edgeDistance: "25%",
            bleedMargin: 10,
            distanceToLabelLine: 5
        },
        labelLine: {
            show: !0,
            length: 15,
            length2: 15,
            smooth: !1,
            minTurnAngle: 90,
            maxSurfaceAngle: 90,
            lineStyle: {
                width: 1,
                type: "solid"
            }
        },
        itemStyle: {
            borderWidth: 1,
            borderJoin: "round"
        },
        showEmptyCircle: !0,
        emptyCircleStyle: {
            color: "lightgray",
            opacity: 1
        },
        labelLayout: {
            hideOverlap: !0
        },
        emphasis: {
            scale: !0,
            scaleSize: 5
        },
        avoidLabelOverlap: !0,
        animationType: "expansion",
        animationDuration: 1e3,
        animationTypeUpdate: "transition",
        animationEasingUpdate: "cubicInOut",
        animationDurationUpdate: 500,
        animationEasing: "cubicInOut"
    },
    e
}(En);
const Cet = xet;
function wet(t) {
    return {
        seriesType: t,
        reset: function(e, n) {
            var r = e.getData();
            r.filterSelf(function(a) {
                var i = r.mapDimension("value")
                  , o = r.get(i, a);
                return !(rn(o) && !isNaN(o) && o < 0)
            })
        }
    }
}
function _et(t) {
    t.registerChartView(met),
    t.registerSeriesModel(Cet),
    mle("pie", t.registerAction),
    t.registerLayout(St(fet, "pie")),
    t.registerProcessor(ly("pie")),
    t.registerProcessor(wet("pie"))
}
var Tet = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.hasSymbolVisual = !0,
        n
    }
    return e.prototype.getInitialData = function(n, r) {
        return Pl(null, this, {
            useEncodeDefaulter: !0
        })
    }
    ,
    e.prototype.getProgressive = function() {
        var n = this.option.progressive;
        return n == null ? this.option.large ? 5e3 : this.get("progressive") : n
    }
    ,
    e.prototype.getProgressiveThreshold = function() {
        var n = this.option.progressiveThreshold;
        return n == null ? this.option.large ? 1e4 : this.get("progressiveThreshold") : n
    }
    ,
    e.prototype.brushSelector = function(n, r, a) {
        return a.point(r.getItemLayout(n))
    }
    ,
    e.prototype.getZLevelKey = function() {
        return this.getData().count() > this.getProgressiveThreshold() ? this.id : ""
    }
    ,
    e.type = "series.scatter",
    e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"],
    e.defaultOption = {
        coordinateSystem: "cartesian2d",
        z: 2,
        legendHoverLink: !0,
        symbolSize: 10,
        large: !1,
        largeThreshold: 2e3,
        itemStyle: {
            opacity: .8
        },
        emphasis: {
            scale: !0
        },
        clip: !0,
        select: {
            itemStyle: {
                borderColor: "#212121"
            }
        },
        universalTransition: {
            divideShape: "clone"
        }
    },
    e
}(En);
const Pet = Tet;
var rue = 4
  , Met = function() {
    function t() {}
    return t
}()
  , Aet = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r._off = 0,
        r.hoverDataIdx = -1,
        r
    }
    return e.prototype.getDefaultShape = function() {
        return new Met
    }
    ,
    e.prototype.reset = function() {
        this.notClear = !1,
        this._off = 0
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.points, i = r.size, o = this.symbolProxy, l = o.shape, s = n.getContext ? n.getContext() : n, u = s && i[0] < rue, c = this.softClipShape, f;
        if (u) {
            this._ctx = s;
            return
        }
        for (this._ctx = null,
        f = this._off; f < a.length; ) {
            var d = a[f++]
              , v = a[f++];
            isNaN(d) || isNaN(v) || c && !c.contain(d, v) || (l.x = d - i[0] / 2,
            l.y = v - i[1] / 2,
            l.width = i[0],
            l.height = i[1],
            o.buildPath(n, l, !0))
        }
        this.incremental && (this._off = f,
        this.notClear = !0)
    }
    ,
    e.prototype.afterBrush = function() {
        var n = this.shape, r = n.points, a = n.size, i = this._ctx, o = this.softClipShape, l;
        if (!!i) {
            for (l = this._off; l < r.length; ) {
                var s = r[l++]
                  , u = r[l++];
                isNaN(s) || isNaN(u) || o && !o.contain(s, u) || i.fillRect(s - a[0] / 2, u - a[1] / 2, a[0], a[1])
            }
            this.incremental && (this._off = l,
            this.notClear = !0)
        }
    }
    ,
    e.prototype.findDataIndex = function(n, r) {
        for (var a = this.shape, i = a.points, o = a.size, l = Math.max(o[0], 4), s = Math.max(o[1], 4), u = i.length / 2 - 1; u >= 0; u--) {
            var c = u * 2
              , f = i[c] - l / 2
              , d = i[c + 1] - s / 2;
            if (n >= f && r >= d && n <= f + l && r <= d + s)
                return u
        }
        return -1
    }
    ,
    e.prototype.contain = function(n, r) {
        var a = this.transformCoordToLocal(n, r)
          , i = this.getBoundingRect();
        if (n = a[0],
        r = a[1],
        i.contain(n, r)) {
            var o = this.hoverDataIdx = this.findDataIndex(n, r);
            return o >= 0
        }
        return this.hoverDataIdx = -1,
        !1
    }
    ,
    e.prototype.getBoundingRect = function() {
        var n = this._rect;
        if (!n) {
            for (var r = this.shape, a = r.points, i = r.size, o = i[0], l = i[1], s = 1 / 0, u = 1 / 0, c = -1 / 0, f = -1 / 0, d = 0; d < a.length; ) {
                var v = a[d++]
                  , h = a[d++];
                s = Math.min(v, s),
                c = Math.max(v, c),
                u = Math.min(h, u),
                f = Math.max(h, f)
            }
            n = this._rect = new Dt(s - o / 2,u - l / 2,c - s + o,f - u + l)
        }
        return n
    }
    ,
    e
}(jt)
  , Iet = function() {
    function t() {
        this.group = new mt
    }
    return t.prototype.updateData = function(e, n) {
        this._clear();
        var r = this._create();
        r.setShape({
            points: e.getLayout("points")
        }),
        this._setCommon(r, e, n)
    }
    ,
    t.prototype.updateLayout = function(e) {
        var n = e.getLayout("points");
        this.group.eachChild(function(r) {
            if (r.startIndex != null) {
                var a = (r.endIndex - r.startIndex) * 2
                  , i = r.startIndex * 4 * 2;
                n = new Float32Array(n.buffer,i,a)
            }
            r.setShape("points", n),
            r.reset()
        })
    }
    ,
    t.prototype.incrementalPrepareUpdate = function(e) {
        this._clear()
    }
    ,
    t.prototype.incrementalUpdate = function(e, n, r) {
        var a = this._newAdded[0]
          , i = n.getLayout("points")
          , o = a && a.shape.points;
        if (o && o.length < 2e4) {
            var l = o.length
              , s = new Float32Array(l + i.length);
            s.set(o),
            s.set(i, l),
            a.endIndex = e.end,
            a.setShape({
                points: s
            })
        } else {
            this._newAdded = [];
            var u = this._create();
            u.startIndex = e.start,
            u.endIndex = e.end,
            u.incremental = !0,
            u.setShape({
                points: i
            }),
            this._setCommon(u, n, r)
        }
    }
    ,
    t.prototype.eachRendered = function(e) {
        this._newAdded[0] && e(this._newAdded[0])
    }
    ,
    t.prototype._create = function() {
        var e = new Aet({
            cursor: "default"
        });
        return e.ignoreCoarsePointer = !0,
        this.group.add(e),
        this._newAdded.push(e),
        e
    }
    ,
    t.prototype._setCommon = function(e, n, r) {
        var a = n.hostModel;
        r = r || {};
        var i = n.getVisual("symbolSize");
        e.setShape("size", i instanceof Array ? i : [i, i]),
        e.softClipShape = r.clipShape || null,
        e.symbolProxy = fr(n.getVisual("symbol"), 0, 0, 0, 0),
        e.setColor = e.symbolProxy.setColor;
        var o = e.shape.size[0] < rue;
        e.useStyle(a.getModel("itemStyle").getItemStyle(o ? ["color", "shadowBlur", "shadowColor"] : ["color"]));
        var l = n.getVisual("style")
          , s = l && l.fill;
        s && e.setColor(s);
        var u = Ct(e);
        u.seriesIndex = a.seriesIndex,
        e.on("mousemove", function(c) {
            u.dataIndex = null;
            var f = e.hoverDataIdx;
            f >= 0 && (u.dataIndex = f + (e.startIndex || 0))
        })
    }
    ,
    t.prototype.remove = function() {
        this._clear()
    }
    ,
    t.prototype._clear = function() {
        this._newAdded = [],
        this.group.removeAll()
    }
    ,
    t
}();
const ket = Iet;
var Oet = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i = n.getData()
          , o = this._updateSymbolDraw(i, n);
        o.updateData(i, {
            clipShape: this._getClipShape(n)
        }),
        this._finished = !0
    }
    ,
    e.prototype.incrementalPrepareRender = function(n, r, a) {
        var i = n.getData()
          , o = this._updateSymbolDraw(i, n);
        o.incrementalPrepareUpdate(i),
        this._finished = !1
    }
    ,
    e.prototype.incrementalRender = function(n, r, a) {
        this._symbolDraw.incrementalUpdate(n, r.getData(), {
            clipShape: this._getClipShape(r)
        }),
        this._finished = n.end === r.getData().count()
    }
    ,
    e.prototype.updateTransform = function(n, r, a) {
        var i = n.getData();
        if (this.group.dirty(),
        !this._finished || i.count() > 1e4)
            return {
                update: !0
            };
        var o = oy("").reset(n, r, a);
        o.progress && o.progress({
            start: 0,
            end: i.count(),
            count: i.count()
        }, i),
        this._symbolDraw.updateLayout(i)
    }
    ,
    e.prototype.eachRendered = function(n) {
        this._symbolDraw && this._symbolDraw.eachRendered(n)
    }
    ,
    e.prototype._getClipShape = function(n) {
        var r = n.coordinateSystem
          , a = r && r.getArea && r.getArea();
        return n.get("clip", !0) ? a : null
    }
    ,
    e.prototype._updateSymbolDraw = function(n, r) {
        var a = this._symbolDraw
          , i = r.pipelineContext
          , o = i.large;
        return (!a || o !== this._isLargeDraw) && (a && a.remove(),
        a = this._symbolDraw = o ? new ket : new iy,
        this._isLargeDraw = o,
        this.group.removeAll()),
        this.group.add(a.group),
        a
    }
    ,
    e.prototype.remove = function(n, r) {
        this._symbolDraw && this._symbolDraw.remove(!0),
        this._symbolDraw = null
    }
    ,
    e.prototype.dispose = function() {}
    ,
    e.type = "scatter",
    e
}(Tn);
const Det = Oet;
var Eet = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.type = "grid",
    e.dependencies = ["xAxis", "yAxis"],
    e.layoutMode = "box",
    e.defaultOption = {
        show: !1,
        z: 0,
        left: "10%",
        top: 60,
        right: "10%",
        bottom: 70,
        containLabel: !1,
        backgroundColor: "rgba(0,0,0,0)",
        borderWidth: 1,
        borderColor: "#ccc"
    },
    e
}(qt);
const Let = Eet;
var tk = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.getCoordSysModel = function() {
        return this.getReferringComponents("grid", mr).models[0]
    }
    ,
    e.type = "cartesian2dAxis",
    e
}(qt);
ir(tk, zh);
var aue = {
    show: !0,
    z: 0,
    inverse: !1,
    name: "",
    nameLocation: "end",
    nameRotate: null,
    nameTruncate: {
        maxWidth: null,
        ellipsis: "...",
        placeholder: "."
    },
    nameTextStyle: {},
    nameGap: 15,
    silent: !1,
    triggerEvent: !1,
    tooltip: {
        show: !1
    },
    axisPointer: {},
    axisLine: {
        show: !0,
        onZero: !0,
        onZeroAxisIndex: null,
        lineStyle: {
            color: "#6E7079",
            width: 1,
            type: "solid"
        },
        symbol: ["none", "none"],
        symbolSize: [10, 15]
    },
    axisTick: {
        show: !0,
        inside: !1,
        length: 5,
        lineStyle: {
            width: 1
        }
    },
    axisLabel: {
        show: !0,
        inside: !1,
        rotate: 0,
        showMinLabel: null,
        showMaxLabel: null,
        margin: 8,
        fontSize: 12
    },
    splitLine: {
        show: !0,
        lineStyle: {
            color: ["#E0E6F1"],
            width: 1,
            type: "solid"
        }
    },
    splitArea: {
        show: !1,
        areaStyle: {
            color: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
        }
    }
}
  , Ret = At({
    boundaryGap: !0,
    deduplication: null,
    splitLine: {
        show: !1
    },
    axisTick: {
        alignWithLabel: !1,
        interval: "auto"
    },
    axisLabel: {
        interval: "auto"
    }
}, aue)
  , j5 = At({
    boundaryGap: [0, 0],
    axisLine: {
        show: "auto"
    },
    axisTick: {
        show: "auto"
    },
    splitNumber: 5,
    minorTick: {
        show: !1,
        splitNumber: 5,
        length: 3,
        lineStyle: {}
    },
    minorSplitLine: {
        show: !1,
        lineStyle: {
            color: "#F4F7FD",
            width: 1
        }
    }
}, aue)
  , Net = At({
    splitNumber: 6,
    axisLabel: {
        showMinLabel: !1,
        showMaxLabel: !1,
        rich: {
            primary: {
                fontWeight: "bold"
            }
        }
    },
    splitLine: {
        show: !1
    }
}, j5)
  , $et = ot({
    logBase: 10
}, j5);
const iue = {
    category: Ret,
    value: j5,
    time: Net,
    log: $et
};
var Fet = {
    value: 1,
    category: 1,
    time: 1,
    log: 1
};
function th(t, e, n, r) {
    Z(Fet, function(a, i) {
        var o = At(At({}, iue[i], !0), r, !0)
          , l = function(s) {
            ge(u, s);
            function u() {
                var c = s !== null && s.apply(this, arguments) || this;
                return c.type = e + "Axis." + i,
                c
            }
            return u.prototype.mergeDefaultAndTheme = function(c, f) {
                var d = G0(this)
                  , v = d ? Eh(c) : {}
                  , h = f.getTheme();
                At(c, h.get(i + "Axis")),
                At(c, this.getDefaultOption()),
                c.type = YW(c),
                d && Eu(c, v, d)
            }
            ,
            u.prototype.optionUpdated = function() {
                var c = this.option;
                c.type === "category" && (this.__ordinalMeta = UI.createByAxisModel(this))
            }
            ,
            u.prototype.getCategories = function(c) {
                var f = this.option;
                if (f.type === "category")
                    return c ? f.data : this.__ordinalMeta.categories
            }
            ,
            u.prototype.getOrdinalMeta = function() {
                return this.__ordinalMeta
            }
            ,
            u.type = e + "Axis." + i,
            u.defaultOption = o,
            u
        }(n);
        t.registerComponentModel(l)
    }),
    t.registerSubTypeDefaulter(e + "Axis", YW)
}
function YW(t) {
    return t.type || (t.data ? "category" : "value")
}
var Bet = function() {
    function t(e) {
        this.type = "cartesian",
        this._dimList = [],
        this._axes = {},
        this.name = e || ""
    }
    return t.prototype.getAxis = function(e) {
        return this._axes[e]
    }
    ,
    t.prototype.getAxes = function() {
        return Le(this._dimList, function(e) {
            return this._axes[e]
        }, this)
    }
    ,
    t.prototype.getAxesByScale = function(e) {
        return e = e.toLowerCase(),
        pn(this.getAxes(), function(n) {
            return n.scale.type === e
        })
    }
    ,
    t.prototype.addAxis = function(e) {
        var n = e.dim;
        this._axes[n] = e,
        this._dimList.push(n)
    }
    ,
    t
}();
const Vet = Bet;
var nk = ["x", "y"];
function qW(t) {
    return t.type === "interval" || t.type === "time"
}
var zet = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = "cartesian2d",
        n.dimensions = nk,
        n
    }
    return e.prototype.calcAffineTransform = function() {
        this._transform = this._invTransform = null;
        var n = this.getAxis("x").scale
          , r = this.getAxis("y").scale;
        if (!(!qW(n) || !qW(r))) {
            var a = n.getExtent()
              , i = r.getExtent()
              , o = this.dataToPoint([a[0], i[0]])
              , l = this.dataToPoint([a[1], i[1]])
              , s = a[1] - a[0]
              , u = i[1] - i[0];
            if (!(!s || !u)) {
                var c = (l[0] - o[0]) / s
                  , f = (l[1] - o[1]) / u
                  , d = o[0] - a[0] * c
                  , v = o[1] - i[0] * f
                  , h = this._transform = [c, 0, 0, f, d, v];
                this._invTransform = nd([], h)
            }
        }
    }
    ,
    e.prototype.getBaseAxis = function() {
        return this.getAxesByScale("ordinal")[0] || this.getAxesByScale("time")[0] || this.getAxis("x")
    }
    ,
    e.prototype.containPoint = function(n) {
        var r = this.getAxis("x")
          , a = this.getAxis("y");
        return r.contain(r.toLocalCoord(n[0])) && a.contain(a.toLocalCoord(n[1]))
    }
    ,
    e.prototype.containData = function(n) {
        return this.getAxis("x").containData(n[0]) && this.getAxis("y").containData(n[1])
    }
    ,
    e.prototype.containZone = function(n, r) {
        var a = this.dataToPoint(n)
          , i = this.dataToPoint(r)
          , o = this.getArea()
          , l = new Dt(a[0],a[1],i[0] - a[0],i[1] - a[1]);
        return o.intersect(l)
    }
    ,
    e.prototype.dataToPoint = function(n, r, a) {
        a = a || [];
        var i = n[0]
          , o = n[1];
        if (this._transform && i != null && isFinite(i) && o != null && isFinite(o))
            return Wr(a, n, this._transform);
        var l = this.getAxis("x")
          , s = this.getAxis("y");
        return a[0] = l.toGlobalCoord(l.dataToCoord(i, r)),
        a[1] = s.toGlobalCoord(s.dataToCoord(o, r)),
        a
    }
    ,
    e.prototype.clampData = function(n, r) {
        var a = this.getAxis("x").scale
          , i = this.getAxis("y").scale
          , o = a.getExtent()
          , l = i.getExtent()
          , s = a.parse(n[0])
          , u = i.parse(n[1]);
        return r = r || [],
        r[0] = Math.min(Math.max(Math.min(o[0], o[1]), s), Math.max(o[0], o[1])),
        r[1] = Math.min(Math.max(Math.min(l[0], l[1]), u), Math.max(l[0], l[1])),
        r
    }
    ,
    e.prototype.pointToData = function(n, r) {
        var a = [];
        if (this._invTransform)
            return Wr(a, n, this._invTransform);
        var i = this.getAxis("x")
          , o = this.getAxis("y");
        return a[0] = i.coordToData(i.toLocalCoord(n[0]), r),
        a[1] = o.coordToData(o.toLocalCoord(n[1]), r),
        a
    }
    ,
    e.prototype.getOtherAxis = function(n) {
        return this.getAxis(n.dim === "x" ? "y" : "x")
    }
    ,
    e.prototype.getArea = function() {
        var n = this.getAxis("x").getGlobalExtent()
          , r = this.getAxis("y").getGlobalExtent()
          , a = Math.min(n[0], n[1])
          , i = Math.min(r[0], r[1])
          , o = Math.max(n[0], n[1]) - a
          , l = Math.max(r[0], r[1]) - i;
        return new Dt(a,i,o,l)
    }
    ,
    e
}(Vet)
  , Het = function(t) {
    ge(e, t);
    function e(n, r, a, i, o) {
        var l = t.call(this, n, r, a) || this;
        return l.index = 0,
        l.type = i || "value",
        l.position = o || "bottom",
        l
    }
    return e.prototype.isHorizontal = function() {
        var n = this.position;
        return n === "top" || n === "bottom"
    }
    ,
    e.prototype.getGlobalExtent = function(n) {
        var r = this.getExtent();
        return r[0] = this.toGlobalCoord(r[0]),
        r[1] = this.toGlobalCoord(r[1]),
        n && r[0] > r[1] && r.reverse(),
        r
    }
    ,
    e.prototype.pointToData = function(n, r) {
        return this.coordToData(this.toLocalCoord(n[this.dim === "x" ? 0 : 1]), r)
    }
    ,
    e.prototype.setCategorySortInfo = function(n) {
        if (this.type !== "category")
            return !1;
        this.model.option.categorySortInfo = n,
        this.scale.setSortInfo(n)
    }
    ,
    e
}(Yi);
const jet = Het;
function rk(t, e, n) {
    n = n || {};
    var r = t.coordinateSystem
      , a = e.axis
      , i = {}
      , o = a.getAxesOnZeroOf()[0]
      , l = a.position
      , s = o ? "onZero" : l
      , u = a.dim
      , c = r.getRect()
      , f = [c.x, c.x + c.width, c.y, c.y + c.height]
      , d = {
        left: 0,
        right: 1,
        top: 0,
        bottom: 1,
        onZero: 2
    }
      , v = e.get("offset") || 0
      , h = u === "x" ? [f[2] - v, f[3] + v] : [f[0] - v, f[1] + v];
    if (o) {
        var p = o.toGlobalCoord(o.dataToCoord(0));
        h[d.onZero] = Math.max(Math.min(p, h[1]), h[0])
    }
    i.position = [u === "y" ? h[d[s]] : f[0], u === "x" ? h[d[s]] : f[3]],
    i.rotation = Math.PI / 2 * (u === "x" ? 0 : 1);
    var g = {
        top: -1,
        bottom: 1,
        left: -1,
        right: 1
    };
    i.labelDirection = i.tickDirection = i.nameDirection = g[l],
    i.labelOffset = o ? h[d[l]] - h[d.onZero] : 0,
    e.get(["axisTick", "inside"]) && (i.tickDirection = -i.tickDirection),
    kr(n.labelInside, e.get(["axisLabel", "inside"])) && (i.labelDirection = -i.labelDirection);
    var m = e.get(["axisLabel", "rotate"]);
    return i.labelRotate = s === "top" ? -m : m,
    i.z2 = 1,
    i
}
function XW(t) {
    return t.get("coordinateSystem") === "cartesian2d"
}
function ZW(t) {
    var e = {
        xAxisModel: null,
        yAxisModel: null
    };
    return Z(e, function(n, r) {
        var a = r.replace(/Model$/, "")
          , i = t.getReferringComponents(a, mr).models[0];
        e[r] = i
    }),
    e
}
var w4 = Math.log;
function oue(t, e, n) {
    var r = Lu.prototype
      , a = r.getTicks.call(n)
      , i = r.getTicks.call(n, !0)
      , o = a.length - 1
      , l = r.getInterval.call(n)
      , s = fse(t, e)
      , u = s.extent
      , c = s.fixMin
      , f = s.fixMax;
    if (t.type === "log") {
        var d = w4(t.base);
        u = [w4(u[0]) / d, w4(u[1]) / d]
    }
    t.setExtent(u[0], u[1]),
    t.calcNiceExtent({
        splitNumber: o,
        fixMin: c,
        fixMax: f
    });
    var v = r.getExtent.call(t);
    c && (u[0] = v[0]),
    f && (u[1] = v[1]);
    var h = r.getInterval.call(t)
      , p = u[0]
      , g = u[1];
    if (c && f)
        h = (g - p) / o;
    else if (c)
        for (g = u[0] + h * o; g < u[1] && isFinite(g) && isFinite(u[1]); )
            h = u4(h),
            g = u[0] + h * o;
    else if (f)
        for (p = u[1] - h * o; p > u[0] && isFinite(p) && isFinite(u[0]); )
            h = u4(h),
            p = u[1] - h * o;
    else {
        var m = t.getTicks().length - 1;
        m > o && (h = u4(h));
        var y = h * o;
        g = Math.ceil(u[1] / h) * h,
        p = Zn(g - y),
        p < 0 && u[0] >= 0 ? (p = 0,
        g = Zn(y)) : g > 0 && u[1] <= 0 && (g = 0,
        p = -Zn(y))
    }
    var b = (a[0].value - i[0].value) / l
      , x = (a[o].value - i[o].value) / l;
    r.setExtent.call(t, p + h * b, g + h * x),
    r.setInterval.call(t, h),
    (b || x) && r.setNiceExtent.call(t, p + h, g - h)
}
var Wet = function() {
    function t(e, n, r) {
        this.type = "grid",
        this._coordsMap = {},
        this._coordsList = [],
        this._axesMap = {},
        this._axesList = [],
        this.axisPointerEnabled = !0,
        this.dimensions = nk,
        this._initCartesian(e, n, r),
        this.model = e
    }
    return t.prototype.getRect = function() {
        return this._rect
    }
    ,
    t.prototype.update = function(e, n) {
        var r = this._axesMap;
        this._updateScale(e, this.model);
        function a(o) {
            var l, s = Gt(o), u = s.length;
            if (!!u) {
                for (var c = [], f = u - 1; f >= 0; f--) {
                    var d = +s[f]
                      , v = o[d]
                      , h = v.model
                      , p = v.scale;
                    YI(p) && h.get("alignTicks") && h.get("interval") == null ? c.push(v) : (zf(p, h),
                    YI(p) && (l = v))
                }
                c.length && (l || (l = c.pop(),
                zf(l.scale, l.model)),
                Z(c, function(g) {
                    oue(g.scale, g.model, l.scale)
                }))
            }
        }
        a(r.x),
        a(r.y);
        var i = {};
        Z(r.x, function(o) {
            QW(r, "y", o, i)
        }),
        Z(r.y, function(o) {
            QW(r, "x", o, i)
        }),
        this.resize(this.model, n)
    }
    ,
    t.prototype.resize = function(e, n, r) {
        var a = e.getBoxLayoutParams()
          , i = !r && e.get("containLabel")
          , o = xr(a, {
            width: n.getWidth(),
            height: n.getHeight()
        });
        this._rect = o;
        var l = this._axesList;
        s(),
        i && (Z(l, function(u) {
            if (!u.model.get(["axisLabel", "inside"])) {
                var c = HZe(u);
                if (c) {
                    var f = u.isHorizontal() ? "height" : "width"
                      , d = u.model.get(["axisLabel", "margin"]);
                    o[f] -= c[f] + d,
                    u.position === "top" ? o.y += c.height + d : u.position === "left" && (o.x += c.width + d)
                }
            }
        }),
        s()),
        Z(this._coordsList, function(u) {
            u.calcAffineTransform()
        });
        function s() {
            Z(l, function(u) {
                var c = u.isHorizontal()
                  , f = c ? [0, o.width] : [0, o.height]
                  , d = u.inverse ? 1 : 0;
                u.setExtent(f[d], f[1 - d]),
                Get(u, c ? o.x : o.y)
            })
        }
    }
    ,
    t.prototype.getAxis = function(e, n) {
        var r = this._axesMap[e];
        if (r != null)
            return r[n || 0]
    }
    ,
    t.prototype.getAxes = function() {
        return this._axesList.slice()
    }
    ,
    t.prototype.getCartesian = function(e, n) {
        if (e != null && n != null) {
            var r = "x" + e + "y" + n;
            return this._coordsMap[r]
        }
        st(e) && (n = e.yAxisIndex,
        e = e.xAxisIndex);
        for (var a = 0, i = this._coordsList; a < i.length; a++)
            if (i[a].getAxis("x").index === e || i[a].getAxis("y").index === n)
                return i[a]
    }
    ,
    t.prototype.getCartesians = function() {
        return this._coordsList.slice()
    }
    ,
    t.prototype.convertToPixel = function(e, n, r) {
        var a = this._findConvertTarget(n);
        return a.cartesian ? a.cartesian.dataToPoint(r) : a.axis ? a.axis.toGlobalCoord(a.axis.dataToCoord(r)) : null
    }
    ,
    t.prototype.convertFromPixel = function(e, n, r) {
        var a = this._findConvertTarget(n);
        return a.cartesian ? a.cartesian.pointToData(r) : a.axis ? a.axis.coordToData(a.axis.toLocalCoord(r)) : null
    }
    ,
    t.prototype._findConvertTarget = function(e) {
        var n = e.seriesModel, r = e.xAxisModel || n && n.getReferringComponents("xAxis", mr).models[0], a = e.yAxisModel || n && n.getReferringComponents("yAxis", mr).models[0], i = e.gridModel, o = this._coordsList, l, s;
        if (n)
            l = n.coordinateSystem,
            Rt(o, l) < 0 && (l = null);
        else if (r && a)
            l = this.getCartesian(r.componentIndex, a.componentIndex);
        else if (r)
            s = this.getAxis("x", r.componentIndex);
        else if (a)
            s = this.getAxis("y", a.componentIndex);
        else if (i) {
            var u = i.coordinateSystem;
            u === this && (l = this._coordsList[0])
        }
        return {
            cartesian: l,
            axis: s
        }
    }
    ,
    t.prototype.containPoint = function(e) {
        var n = this._coordsList[0];
        if (n)
            return n.containPoint(e)
    }
    ,
    t.prototype._initCartesian = function(e, n, r) {
        var a = this
          , i = this
          , o = {
            left: !1,
            right: !1,
            top: !1,
            bottom: !1
        }
          , l = {
            x: {},
            y: {}
        }
          , s = {
            x: 0,
            y: 0
        };
        if (n.eachComponent("xAxis", u("x"), this),
        n.eachComponent("yAxis", u("y"), this),
        !s.x || !s.y) {
            this._axesMap = {},
            this._axesList = [];
            return
        }
        this._axesMap = l,
        Z(l.x, function(c, f) {
            Z(l.y, function(d, v) {
                var h = "x" + f + "y" + v
                  , p = new zet(h);
                p.master = a,
                p.model = e,
                a._coordsMap[h] = p,
                a._coordsList.push(p),
                p.addAxis(c),
                p.addAxis(d)
            })
        });
        function u(c) {
            return function(f, d) {
                if (!!_4(f, e)) {
                    var v = f.get("position");
                    c === "x" ? v !== "top" && v !== "bottom" && (v = o.bottom ? "top" : "bottom") : v !== "left" && v !== "right" && (v = o.left ? "right" : "left"),
                    o[v] = !0;
                    var h = new jet(c,ny(f),[0, 0],f.get("type"),v)
                      , p = h.type === "category";
                    h.onBand = p && f.get("boundaryGap"),
                    h.inverse = f.get("inverse"),
                    f.axis = h,
                    h.model = f,
                    h.grid = i,
                    h.index = d,
                    i._axesList.push(h),
                    l[c][d] = h,
                    s[c]++
                }
            }
        }
    }
    ,
    t.prototype._updateScale = function(e, n) {
        Z(this._axesList, function(a) {
            if (a.scale.setExtent(1 / 0, -1 / 0),
            a.type === "category") {
                var i = a.model.get("categorySortInfo");
                a.scale.setSortInfo(i)
            }
        }),
        e.eachSeries(function(a) {
            if (XW(a)) {
                var i = ZW(a)
                  , o = i.xAxisModel
                  , l = i.yAxisModel;
                if (!_4(o, n) || !_4(l, n))
                    return;
                var s = this.getCartesian(o.componentIndex, l.componentIndex)
                  , u = a.getData()
                  , c = s.getAxis("x")
                  , f = s.getAxis("y");
                r(u, c),
                r(u, f)
            }
        }, this);
        function r(a, i) {
            Z(KS(a, i.dim), function(o) {
                i.scale.unionExtentFromData(a, o)
            })
        }
    }
    ,
    t.prototype.getTooltipAxes = function(e) {
        var n = []
          , r = [];
        return Z(this.getCartesians(), function(a) {
            var i = e != null && e !== "auto" ? a.getAxis(e) : a.getBaseAxis()
              , o = a.getOtherAxis(i);
            Rt(n, i) < 0 && n.push(i),
            Rt(r, o) < 0 && r.push(o)
        }),
        {
            baseAxes: n,
            otherAxes: r
        }
    }
    ,
    t.create = function(e, n) {
        var r = [];
        return e.eachComponent("grid", function(a, i) {
            var o = new t(a,e,n);
            o.name = "grid_" + i,
            o.resize(a, n, !0),
            a.coordinateSystem = o,
            r.push(o)
        }),
        e.eachSeries(function(a) {
            if (!!XW(a)) {
                var i = ZW(a)
                  , o = i.xAxisModel
                  , l = i.yAxisModel
                  , s = o.getCoordSysModel()
                  , u = s.coordinateSystem;
                a.coordinateSystem = u.getCartesian(o.componentIndex, l.componentIndex)
            }
        }),
        r
    }
    ,
    t.dimensions = nk,
    t
}();
function _4(t, e) {
    return t.getCoordSysModel() === e
}
function QW(t, e, n, r) {
    n.getAxesOnZeroOf = function() {
        return i ? [i] : []
    }
    ;
    var a = t[e], i, o = n.model, l = o.get(["axisLine", "onZero"]), s = o.get(["axisLine", "onZeroAxisIndex"]);
    if (!l)
        return;
    if (s != null)
        JW(a[s]) && (i = a[s]);
    else
        for (var u in a)
            if (a.hasOwnProperty(u) && JW(a[u]) && !r[c(a[u])]) {
                i = a[u];
                break
            }
    i && (r[c(i)] = !0);
    function c(f) {
        return f.dim + "_" + f.index
    }
}
function JW(t) {
    return t && t.type !== "category" && t.type !== "time" && zZe(t)
}
function Get(t, e) {
    var n = t.getExtent()
      , r = n[0] + n[1];
    t.toGlobalCoord = t.dim === "x" ? function(a) {
        return a + e
    }
    : function(a) {
        return r - a + e
    }
    ,
    t.toLocalCoord = t.dim === "x" ? function(a) {
        return a - e
    }
    : function(a) {
        return r - a + e
    }
}
const Ket = Wet;
var su = Math.PI
  , Tf = function() {
    function t(e, n) {
        this.group = new mt,
        this.opt = n,
        this.axisModel = e,
        ot(n, {
            labelOffset: 0,
            nameDirection: 1,
            tickDirection: 1,
            labelDirection: 1,
            silent: !0,
            handleAutoShown: function() {
                return !0
            }
        });
        var r = new mt({
            x: n.position[0],
            y: n.position[1],
            rotation: n.rotation
        });
        r.updateTransform(),
        this._transformGroup = r
    }
    return t.prototype.hasBuilder = function(e) {
        return !!eG[e]
    }
    ,
    t.prototype.add = function(e) {
        eG[e](this.opt, this.axisModel, this.group, this._transformGroup)
    }
    ,
    t.prototype.getGroup = function() {
        return this.group
    }
    ,
    t.innerTextLayout = function(e, n, r) {
        var a = L6(n - e), i, o;
        return $0(a) ? (o = r > 0 ? "top" : "bottom",
        i = "center") : $0(a - su) ? (o = r > 0 ? "bottom" : "top",
        i = "center") : (o = "middle",
        a > 0 && a < su ? i = r > 0 ? "right" : "left" : i = r > 0 ? "left" : "right"),
        {
            rotation: a,
            textAlign: i,
            textVerticalAlign: o
        }
    }
    ,
    t.makeAxisEventDataBase = function(e) {
        var n = {
            componentType: e.mainType,
            componentIndex: e.componentIndex
        };
        return n[e.mainType + "Index"] = e.componentIndex,
        n
    }
    ,
    t.isLabelSilent = function(e) {
        var n = e.get("tooltip");
        return e.get("silent") || !(e.get("triggerEvent") || n && n.show)
    }
    ,
    t
}()
  , eG = {
    axisLine: function(t, e, n, r) {
        var a = e.get(["axisLine", "show"]);
        if (a === "auto" && t.handleAutoShown && (a = t.handleAutoShown("axisLine")),
        !!a) {
            var i = e.axis.getExtent()
              , o = r.transform
              , l = [i[0], 0]
              , s = [i[1], 0]
              , u = l[0] > s[0];
            o && (Wr(l, l, o),
            Wr(s, s, o));
            var c = Me({
                lineCap: "round"
            }, e.getModel(["axisLine", "lineStyle"]).getLineStyle())
              , f = new Or({
                shape: {
                    x1: l[0],
                    y1: l[1],
                    x2: s[0],
                    y2: s[1]
                },
                style: c,
                strokeContainThreshold: t.strokeContainThreshold || 5,
                silent: !0,
                z2: 1
            });
            Zv(f.shape, f.style.lineWidth),
            f.anid = "line",
            n.add(f);
            var d = e.get(["axisLine", "symbol"]);
            if (d != null) {
                var v = e.get(["axisLine", "symbolSize"]);
                Ge(d) && (d = [d, d]),
                (Ge(v) || rn(v)) && (v = [v, v]);
                var h = id(e.get(["axisLine", "symbolOffset"]) || 0, v)
                  , p = v[0]
                  , g = v[1];
                Z([{
                    rotate: t.rotation + Math.PI / 2,
                    offset: h[0],
                    r: 0
                }, {
                    rotate: t.rotation - Math.PI / 2,
                    offset: h[1],
                    r: Math.sqrt((l[0] - s[0]) * (l[0] - s[0]) + (l[1] - s[1]) * (l[1] - s[1]))
                }], function(m, y) {
                    if (d[y] !== "none" && d[y] != null) {
                        var b = fr(d[y], -p / 2, -g / 2, p, g, c.stroke, !0)
                          , x = m.r + m.offset
                          , C = u ? s : l;
                        b.attr({
                            rotation: m.rotate,
                            x: C[0] + x * Math.cos(t.rotation),
                            y: C[1] - x * Math.sin(t.rotation),
                            silent: !0,
                            z2: 11
                        }),
                        n.add(b)
                    }
                })
            }
        }
    },
    axisTickLabel: function(t, e, n, r) {
        var a = qet(n, r, e, t)
          , i = Zet(n, r, e, t);
        if (Yet(e, i, a),
        Xet(n, r, e, t.tickDirection),
        e.get(["axisLabel", "hideOverlap"])) {
            var o = _se(Le(i, function(l) {
                return {
                    label: l,
                    priority: l.z2,
                    defaultAttr: {
                        ignore: l.ignore
                    }
                }
            }));
            Mse(o)
        }
    },
    axisName: function(t, e, n, r) {
        var a = kr(t.axisName, e.get("name"));
        if (!!a) {
            var i = e.get("nameLocation"), o = t.nameDirection, l = e.getModel("nameTextStyle"), s = e.get("nameGap") || 0, u = e.axis.getExtent(), c = u[0] > u[1] ? -1 : 1, f = [i === "start" ? u[0] - c * s : i === "end" ? u[1] + c * s : (u[0] + u[1]) / 2, nG(i) ? t.labelOffset + o * s : 0], d, v = e.get("nameRotate");
            v != null && (v = v * su / 180);
            var h;
            nG(i) ? d = Tf.innerTextLayout(t.rotation, v != null ? v : t.rotation, o) : (d = Uet(t.rotation, i, v || 0, u),
            h = t.axisNameAvailableWidth,
            h != null && (h = Math.abs(h / Math.sin(d.rotation)),
            !isFinite(h) && (h = null)));
            var p = l.getFont()
              , g = e.get("nameTruncate", !0) || {}
              , m = g.ellipsis
              , y = kr(t.nameTruncateMaxWidth, g.maxWidth, h)
              , b = new Jt({
                x: f[0],
                y: f[1],
                rotation: d.rotation,
                silent: Tf.isLabelSilent(e),
                style: In(l, {
                    text: a,
                    font: p,
                    overflow: "truncate",
                    width: y,
                    ellipsis: m,
                    fill: l.getTextColor() || e.get(["axisLine", "lineStyle", "color"]),
                    align: l.get("align") || d.textAlign,
                    verticalAlign: l.get("verticalAlign") || d.textVerticalAlign
                }),
                z2: 1
            });
            if (kh({
                el: b,
                componentModel: e,
                itemName: a
            }),
            b.__fullText = a,
            b.anid = "name",
            e.get("triggerEvent")) {
                var x = Tf.makeAxisEventDataBase(e);
                x.targetType = "axisName",
                x.name = a,
                Ct(b).eventData = x
            }
            r.add(b),
            b.updateTransform(),
            n.add(b),
            b.decomposeTransform()
        }
    }
};
function Uet(t, e, n, r) {
    var a = L6(n - t), i, o, l = r[0] > r[1], s = e === "start" && !l || e !== "start" && l;
    return $0(a - su / 2) ? (o = s ? "bottom" : "top",
    i = "center") : $0(a - su * 1.5) ? (o = s ? "top" : "bottom",
    i = "center") : (o = "middle",
    a < su * 1.5 && a > su / 2 ? i = s ? "left" : "right" : i = s ? "right" : "left"),
    {
        rotation: a,
        textAlign: i,
        textVerticalAlign: o
    }
}
function Yet(t, e, n) {
    if (!dse(t.axis)) {
        var r = t.get(["axisLabel", "showMinLabel"])
          , a = t.get(["axisLabel", "showMaxLabel"]);
        e = e || [],
        n = n || [];
        var i = e[0]
          , o = e[1]
          , l = e[e.length - 1]
          , s = e[e.length - 2]
          , u = n[0]
          , c = n[1]
          , f = n[n.length - 1]
          , d = n[n.length - 2];
        r === !1 ? (xi(i),
        xi(u)) : tG(i, o) && (r ? (xi(o),
        xi(c)) : (xi(i),
        xi(u))),
        a === !1 ? (xi(l),
        xi(f)) : tG(s, l) && (a ? (xi(s),
        xi(d)) : (xi(l),
        xi(f)))
    }
}
function xi(t) {
    t && (t.ignore = !0)
}
function tG(t, e) {
    var n = t && t.getBoundingRect().clone()
      , r = e && e.getBoundingRect().clone();
    if (!(!n || !r)) {
        var a = Wm([]);
        return Ku(a, a, -t.rotation),
        n.applyTransform(fl([], a, t.getLocalTransform())),
        r.applyTransform(fl([], a, e.getLocalTransform())),
        n.intersect(r)
    }
}
function nG(t) {
    return t === "middle" || t === "center"
}
function lue(t, e, n, r, a) {
    for (var i = [], o = [], l = [], s = 0; s < t.length; s++) {
        var u = t[s].coord;
        o[0] = u,
        o[1] = 0,
        l[0] = u,
        l[1] = n,
        e && (Wr(o, o, e),
        Wr(l, l, e));
        var c = new Or({
            shape: {
                x1: o[0],
                y1: o[1],
                x2: l[0],
                y2: l[1]
            },
            style: r,
            z2: 2,
            autoBatch: !0,
            silent: !0
        });
        Zv(c.shape, c.style.lineWidth),
        c.anid = a + "_" + t[s].tickValue,
        i.push(c)
    }
    return i
}
function qet(t, e, n, r) {
    var a = n.axis
      , i = n.getModel("axisTick")
      , o = i.get("show");
    if (o === "auto" && r.handleAutoShown && (o = r.handleAutoShown("axisTick")),
    !(!o || a.scale.isBlank())) {
        for (var l = i.getModel("lineStyle"), s = r.tickDirection * i.get("length"), u = a.getTicksCoords(), c = lue(u, e.transform, s, ot(l.getLineStyle(), {
            stroke: n.get(["axisLine", "lineStyle", "color"])
        }), "ticks"), f = 0; f < c.length; f++)
            t.add(c[f]);
        return c
    }
}
function Xet(t, e, n, r) {
    var a = n.axis
      , i = n.getModel("minorTick");
    if (!(!i.get("show") || a.scale.isBlank())) {
        var o = a.getMinorTicksCoords();
        if (!!o.length)
            for (var l = i.getModel("lineStyle"), s = r * i.get("length"), u = ot(l.getLineStyle(), ot(n.getModel("axisTick").getLineStyle(), {
                stroke: n.get(["axisLine", "lineStyle", "color"])
            })), c = 0; c < o.length; c++)
                for (var f = lue(o[c], e.transform, s, u, "minorticks_" + c), d = 0; d < f.length; d++)
                    t.add(f[d])
    }
}
function Zet(t, e, n, r) {
    var a = n.axis
      , i = kr(r.axisLabelShow, n.get(["axisLabel", "show"]));
    if (!(!i || a.scale.isBlank())) {
        var o = n.getModel("axisLabel")
          , l = o.get("margin")
          , s = a.getViewLabels()
          , u = (kr(r.labelRotate, o.get("rotate")) || 0) * su / 180
          , c = Tf.innerTextLayout(r.rotation, u, r.labelDirection)
          , f = n.getCategories && n.getCategories(!0)
          , d = []
          , v = Tf.isLabelSilent(n)
          , h = n.get("triggerEvent");
        return Z(s, function(p, g) {
            var m = a.scale.type === "ordinal" ? a.scale.getRawOrdinalNumber(p.tickValue) : p.tickValue
              , y = p.formattedLabel
              , b = p.rawLabel
              , x = o;
            if (f && f[m]) {
                var C = f[m];
                st(C) && C.textStyle && (x = new wn(C.textStyle,o,n.ecModel))
            }
            var S = x.getTextColor() || n.get(["axisLine", "lineStyle", "color"])
              , w = a.dataToCoord(m)
              , T = new Jt({
                x: w,
                y: r.labelOffset + r.labelDirection * l,
                rotation: c.rotation,
                silent: v,
                z2: 10 + (p.level || 0),
                style: In(x, {
                    text: y,
                    align: x.getShallow("align", !0) || c.textAlign,
                    verticalAlign: x.getShallow("verticalAlign", !0) || x.getShallow("baseline", !0) || c.textVerticalAlign,
                    fill: et(S) ? S(a.type === "category" ? b : a.type === "value" ? m + "" : m, g) : S
                })
            });
            if (T.anid = "label_" + m,
            h) {
                var P = Tf.makeAxisEventDataBase(n);
                P.targetType = "axisLabel",
                P.value = b,
                P.tickIndex = g,
                a.type === "category" && (P.dataIndex = m),
                Ct(T).eventData = P
            }
            e.add(T),
            T.updateTransform(),
            d.push(T),
            t.add(T),
            T.decomposeTransform()
        }),
        d
    }
}
const vs = Tf;
function Qet(t, e) {
    var n = {
        axesInfo: {},
        seriesInvolved: !1,
        coordSysAxesInfo: {},
        coordSysMap: {}
    };
    return Jet(n, t, e),
    n.seriesInvolved && ttt(n, t),
    n
}
function Jet(t, e, n) {
    var r = e.getComponent("tooltip")
      , a = e.getComponent("axisPointer")
      , i = a.get("link", !0) || []
      , o = [];
    Z(n.getCoordinateSystems(), function(l) {
        if (!l.axisPointerEnabled)
            return;
        var s = J0(l.model)
          , u = t.coordSysAxesInfo[s] = {};
        t.coordSysMap[s] = l;
        var c = l.model
          , f = c.getModel("tooltip", r);
        if (Z(l.getAxes(), St(p, !1, null)),
        l.getTooltipAxes && r && f.get("show")) {
            var d = f.get("trigger") === "axis"
              , v = f.get(["axisPointer", "type"]) === "cross"
              , h = l.getTooltipAxes(f.get(["axisPointer", "axis"]));
            (d || v) && Z(h.baseAxes, St(p, v ? "cross" : !0, d)),
            v && Z(h.otherAxes, St(p, "cross", !1))
        }
        function p(g, m, y) {
            var b = y.model.getModel("axisPointer", a)
              , x = b.get("show");
            if (!(!x || x === "auto" && !g && !ak(b))) {
                m == null && (m = b.get("triggerTooltip")),
                b = g ? ett(y, f, a, e, g, m) : b;
                var C = b.get("snap")
                  , S = b.get("triggerEmphasis")
                  , w = J0(y.model)
                  , T = m || C || y.type === "category"
                  , P = t.axesInfo[w] = {
                    key: w,
                    axis: y,
                    coordSys: l,
                    axisPointerModel: b,
                    triggerTooltip: m,
                    triggerEmphasis: S,
                    involveSeries: T,
                    snap: C,
                    useHandle: ak(b),
                    seriesModels: [],
                    linkGroup: null
                };
                u[w] = P,
                t.seriesInvolved = t.seriesInvolved || T;
                var M = ntt(i, y);
                if (M != null) {
                    var A = o[M] || (o[M] = {
                        axesInfo: {}
                    });
                    A.axesInfo[w] = P,
                    A.mapper = i[M].mapper,
                    P.linkGroup = A
                }
            }
        }
    })
}
function ett(t, e, n, r, a, i) {
    var o = e.getModel("axisPointer")
      , l = ["type", "snap", "lineStyle", "shadowStyle", "label", "animation", "animationDurationUpdate", "animationEasingUpdate", "z"]
      , s = {};
    Z(l, function(d) {
        s[d] = ut(o.get(d))
    }),
    s.snap = t.type !== "category" && !!i,
    o.get("type") === "cross" && (s.type = "line");
    var u = s.label || (s.label = {});
    if (u.show == null && (u.show = !1),
    a === "cross") {
        var c = o.get(["label", "show"]);
        if (u.show = c != null ? c : !0,
        !i) {
            var f = s.lineStyle = o.get("crossStyle");
            f && ot(u, f.textStyle)
        }
    }
    return t.model.getModel("axisPointer", new wn(s,n,r))
}
function ttt(t, e) {
    e.eachSeries(function(n) {
        var r = n.coordinateSystem
          , a = n.get(["tooltip", "trigger"], !0)
          , i = n.get(["tooltip", "show"], !0);
        !r || a === "none" || a === !1 || a === "item" || i === !1 || n.get(["axisPointer", "show"], !0) === !1 || Z(t.coordSysAxesInfo[J0(r.model)], function(o) {
            var l = o.axis;
            r.getAxis(l.dim) === l && (o.seriesModels.push(n),
            o.seriesDataCount == null && (o.seriesDataCount = 0),
            o.seriesDataCount += n.getData().count())
        })
    })
}
function ntt(t, e) {
    for (var n = e.model, r = e.dim, a = 0; a < t.length; a++) {
        var i = t[a] || {};
        if (T4(i[r + "AxisId"], n.id) || T4(i[r + "AxisIndex"], n.componentIndex) || T4(i[r + "AxisName"], n.name))
            return a
    }
}
function T4(t, e) {
    return t === "all" || ke(t) && Rt(t, e) >= 0 || t === e
}
function rtt(t) {
    var e = W5(t);
    if (!!e) {
        var n = e.axisPointerModel
          , r = e.axis.scale
          , a = n.option
          , i = n.get("status")
          , o = n.get("value");
        o != null && (o = r.parse(o));
        var l = ak(n);
        i == null && (a.status = l ? "show" : "hide");
        var s = r.getExtent().slice();
        s[0] > s[1] && s.reverse(),
        (o == null || o > s[1]) && (o = s[1]),
        o < s[0] && (o = s[0]),
        a.value = o,
        l && (a.status = e.axis.scale.isBlank() ? "hide" : "show")
    }
}
function W5(t) {
    var e = (t.ecModel.getComponent("axisPointer") || {}).coordSysAxesInfo;
    return e && e.axesInfo[J0(t)]
}
function att(t) {
    var e = W5(t);
    return e && e.axisPointerModel
}
function ak(t) {
    return !!t.get(["handle", "show"])
}
function J0(t) {
    return t.type + "||" + t.id
}
var rG = {}
  , itt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a, i) {
        this.axisPointerClass && rtt(n),
        t.prototype.render.apply(this, arguments),
        this._doUpdateAxisPointerClass(n, a, !0)
    }
    ,
    e.prototype.updateAxisPointer = function(n, r, a, i) {
        this._doUpdateAxisPointerClass(n, a, !1)
    }
    ,
    e.prototype.remove = function(n, r) {
        var a = this._axisPointer;
        a && a.remove(r)
    }
    ,
    e.prototype.dispose = function(n, r) {
        this._disposeAxisPointer(r),
        t.prototype.dispose.apply(this, arguments)
    }
    ,
    e.prototype._doUpdateAxisPointerClass = function(n, r, a) {
        var i = e.getAxisPointerClass(this.axisPointerClass);
        if (!!i) {
            var o = att(n);
            o ? (this._axisPointer || (this._axisPointer = new i)).render(n, o, r, a) : this._disposeAxisPointer(r)
        }
    }
    ,
    e.prototype._disposeAxisPointer = function(n) {
        this._axisPointer && this._axisPointer.dispose(n),
        this._axisPointer = null
    }
    ,
    e.registerAxisPointerClass = function(n, r) {
        rG[n] = r
    }
    ,
    e.getAxisPointerClass = function(n) {
        return n && rG[n]
    }
    ,
    e.type = "axis",
    e
}(Bn);
const ld = itt;
var ik = an();
function sue(t, e, n, r) {
    var a = n.axis;
    if (!a.scale.isBlank()) {
        var i = n.getModel("splitArea")
          , o = i.getModel("areaStyle")
          , l = o.get("color")
          , s = r.coordinateSystem.getRect()
          , u = a.getTicksCoords({
            tickModel: i,
            clamp: !0
        });
        if (!!u.length) {
            var c = l.length
              , f = ik(t).splitAreaColors
              , d = Qe()
              , v = 0;
            if (f)
                for (var h = 0; h < u.length; h++) {
                    var p = f.get(u[h].tickValue);
                    if (p != null) {
                        v = (p + (c - 1) * h) % c;
                        break
                    }
                }
            var g = a.toGlobalCoord(u[0].coord)
              , m = o.getAreaStyle();
            l = ke(l) ? l : [l];
            for (var h = 1; h < u.length; h++) {
                var y = a.toGlobalCoord(u[h].coord)
                  , b = void 0
                  , x = void 0
                  , C = void 0
                  , S = void 0;
                a.isHorizontal() ? (b = g,
                x = s.y,
                C = y - b,
                S = s.height,
                g = b + C) : (b = s.x,
                x = g,
                C = s.width,
                S = y - x,
                g = x + S);
                var w = u[h - 1].tickValue;
                w != null && d.set(w, v),
                e.add(new tn({
                    anid: w != null ? "area_" + w : null,
                    shape: {
                        x: b,
                        y: x,
                        width: C,
                        height: S
                    },
                    style: ot({
                        fill: l[v]
                    }, m),
                    autoBatch: !0,
                    silent: !0
                })),
                v = (v + 1) % c
            }
            ik(t).splitAreaColors = d
        }
    }
}
function uue(t) {
    ik(t).splitAreaColors = null
}
var ott = ["axisLine", "axisTickLabel", "axisName"]
  , ltt = ["splitArea", "splitLine", "minorSplitLine"]
  , cue = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.axisPointerClass = "CartesianAxisPointer",
        n
    }
    return e.prototype.render = function(n, r, a, i) {
        this.group.removeAll();
        var o = this._axisGroup;
        if (this._axisGroup = new mt,
        this.group.add(this._axisGroup),
        !!n.get("show")) {
            var l = n.getCoordSysModel()
              , s = rk(l, n)
              , u = new vs(n,Me({
                handleAutoShown: function(f) {
                    for (var d = l.coordinateSystem.getCartesians(), v = 0; v < d.length; v++)
                        if (YI(d[v].getOtherAxis(n.axis).scale))
                            return !0;
                    return !1
                }
            }, s));
            Z(ott, u.add, u),
            this._axisGroup.add(u.getGroup()),
            Z(ltt, function(f) {
                n.get([f, "show"]) && stt[f](this, this._axisGroup, n, l)
            }, this);
            var c = i && i.type === "changeAxisOrder" && i.isInitSort;
            c || Qm(o, this._axisGroup, n),
            t.prototype.render.call(this, n, r, a, i)
        }
    }
    ,
    e.prototype.remove = function() {
        uue(this)
    }
    ,
    e.type = "cartesianAxis",
    e
}(ld)
  , stt = {
    splitLine: function(t, e, n, r) {
        var a = n.axis;
        if (!a.scale.isBlank()) {
            var i = n.getModel("splitLine")
              , o = i.getModel("lineStyle")
              , l = o.get("color");
            l = ke(l) ? l : [l];
            for (var s = r.coordinateSystem.getRect(), u = a.isHorizontal(), c = 0, f = a.getTicksCoords({
                tickModel: i
            }), d = [], v = [], h = o.getLineStyle(), p = 0; p < f.length; p++) {
                var g = a.toGlobalCoord(f[p].coord);
                u ? (d[0] = g,
                d[1] = s.y,
                v[0] = g,
                v[1] = s.y + s.height) : (d[0] = s.x,
                d[1] = g,
                v[0] = s.x + s.width,
                v[1] = g);
                var m = c++ % l.length
                  , y = f[p].tickValue
                  , b = new Or({
                    anid: y != null ? "line_" + f[p].tickValue : null,
                    autoBatch: !0,
                    shape: {
                        x1: d[0],
                        y1: d[1],
                        x2: v[0],
                        y2: v[1]
                    },
                    style: ot({
                        stroke: l[m]
                    }, h),
                    silent: !0
                });
                Zv(b.shape, h.lineWidth),
                e.add(b)
            }
        }
    },
    minorSplitLine: function(t, e, n, r) {
        var a = n.axis
          , i = n.getModel("minorSplitLine")
          , o = i.getModel("lineStyle")
          , l = r.coordinateSystem.getRect()
          , s = a.isHorizontal()
          , u = a.getMinorTicksCoords();
        if (!!u.length)
            for (var c = [], f = [], d = o.getLineStyle(), v = 0; v < u.length; v++)
                for (var h = 0; h < u[v].length; h++) {
                    var p = a.toGlobalCoord(u[v][h].coord);
                    s ? (c[0] = p,
                    c[1] = l.y,
                    f[0] = p,
                    f[1] = l.y + l.height) : (c[0] = l.x,
                    c[1] = p,
                    f[0] = l.x + l.width,
                    f[1] = p);
                    var g = new Or({
                        anid: "minor_line_" + u[v][h].tickValue,
                        autoBatch: !0,
                        shape: {
                            x1: c[0],
                            y1: c[1],
                            x2: f[0],
                            y2: f[1]
                        },
                        style: d,
                        silent: !0
                    });
                    Zv(g.shape, d.lineWidth),
                    e.add(g)
                }
    },
    splitArea: function(t, e, n, r) {
        sue(t, e, n, r)
    }
}
  , fue = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "xAxis",
    e
}(cue)
  , utt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = fue.type,
        n
    }
    return e.type = "yAxis",
    e
}(cue)
  , ctt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = "grid",
        n
    }
    return e.prototype.render = function(n, r) {
        this.group.removeAll(),
        n.get("show") && this.group.add(new tn({
            shape: n.coordinateSystem.getRect(),
            style: ot({
                fill: n.get("backgroundColor")
            }, n.getItemStyle()),
            silent: !0,
            z2: -1
        }))
    }
    ,
    e.type = "grid",
    e
}(Bn)
  , aG = {
    offset: 0
};
function due(t) {
    t.registerComponentView(ctt),
    t.registerComponentModel(Let),
    t.registerCoordinateSystem("cartesian2d", Ket),
    th(t, "x", tk, aG),
    th(t, "y", tk, aG),
    t.registerComponentView(fue),
    t.registerComponentView(utt),
    t.registerPreprocessor(function(e) {
        e.xAxis && e.yAxis && !e.grid && (e.grid = {})
    })
}
function ftt(t) {
    Bt(due),
    t.registerSeriesModel(Pet),
    t.registerChartView(Det),
    t.registerLayout(oy("scatter"))
}
function dtt(t) {
    t.eachSeriesByType("radar", function(e) {
        var n = e.getData()
          , r = []
          , a = e.coordinateSystem;
        if (!!a) {
            var i = a.getIndicatorAxes();
            Z(i, function(o, l) {
                n.each(n.mapDimension(i[l].dim), function(s, u) {
                    r[u] = r[u] || [];
                    var c = a.dataToPoint(s, l);
                    r[u][l] = iG(c) ? c : oG(a)
                })
            }),
            n.each(function(o) {
                var l = yae(r[o], function(s) {
                    return iG(s)
                }) || oG(a);
                r[o].push(l.slice()),
                n.setItemLayout(o, r[o])
            })
        }
    })
}
function iG(t) {
    return !isNaN(t[0]) && !isNaN(t[1])
}
function oG(t) {
    return [t.cx, t.cy]
}
function vtt(t) {
    var e = t.polar;
    if (e) {
        ke(e) || (e = [e]);
        var n = [];
        Z(e, function(r, a) {
            r.indicator ? (r.type && !r.shape && (r.shape = r.type),
            t.radar = t.radar || [],
            ke(t.radar) || (t.radar = [t.radar]),
            t.radar.push(r)) : n.push(r)
        }),
        t.polar = n
    }
    Z(t.series, function(r) {
        r && r.type === "radar" && r.polarIndex && (r.radarIndex = r.polarIndex)
    })
}
var htt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i = n.coordinateSystem
          , o = this.group
          , l = n.getData()
          , s = this._data;
        function u(d, v) {
            var h = d.getItemVisual(v, "symbol") || "circle";
            if (h !== "none") {
                var p = Bh(d.getItemVisual(v, "symbolSize"))
                  , g = fr(h, -1, -1, 2, 2)
                  , m = d.getItemVisual(v, "symbolRotate") || 0;
                return g.attr({
                    style: {
                        strokeNoScale: !0
                    },
                    z2: 100,
                    scaleX: p[0] / 2,
                    scaleY: p[1] / 2,
                    rotation: m * Math.PI / 180 || 0
                }),
                g
            }
        }
        function c(d, v, h, p, g, m) {
            h.removeAll();
            for (var y = 0; y < v.length - 1; y++) {
                var b = u(p, g);
                b && (b.__dimIdx = y,
                d[y] ? (b.setPosition(d[y]),
                Jm[m ? "initProps" : "updateProps"](b, {
                    x: v[y][0],
                    y: v[y][1]
                }, n, g)) : b.setPosition(v[y]),
                h.add(b))
            }
        }
        function f(d) {
            return Le(d, function(v) {
                return [i.cx, i.cy]
            })
        }
        l.diff(s).add(function(d) {
            var v = l.getItemLayout(d);
            if (!!v) {
                var h = new Ma
                  , p = new Aa
                  , g = {
                    shape: {
                        points: v
                    }
                };
                h.shape.points = f(v),
                p.shape.points = f(v),
                $n(h, g, n, d),
                $n(p, g, n, d);
                var m = new mt
                  , y = new mt;
                m.add(p),
                m.add(h),
                m.add(y),
                c(p.shape.points, v, y, l, d, !0),
                l.setItemGraphicEl(d, m)
            }
        }).update(function(d, v) {
            var h = s.getItemGraphicEl(v)
              , p = h.childAt(0)
              , g = h.childAt(1)
              , m = h.childAt(2)
              , y = {
                shape: {
                    points: l.getItemLayout(d)
                }
            };
            !y.shape.points || (c(p.shape.points, y.shape.points, m, l, d, !1),
            Ao(g),
            Ao(p),
            ln(p, y, n),
            ln(g, y, n),
            l.setItemGraphicEl(d, h))
        }).remove(function(d) {
            o.remove(s.getItemGraphicEl(d))
        }).execute(),
        l.eachItemGraphicEl(function(d, v) {
            var h = l.getItemModel(v)
              , p = d.childAt(0)
              , g = d.childAt(1)
              , m = d.childAt(2)
              , y = l.getItemVisual(v, "style")
              , b = y.fill;
            o.add(d),
            p.useStyle(ot(h.getModel("lineStyle").getLineStyle(), {
                fill: "none",
                stroke: b
            })),
            Jr(p, h, "lineStyle"),
            Jr(g, h, "areaStyle");
            var x = h.getModel("areaStyle")
              , C = x.isEmpty() && x.parentModel.isEmpty();
            g.ignore = C,
            Z(["emphasis", "select", "blur"], function(T) {
                var P = h.getModel([T, "areaStyle"])
                  , M = P.isEmpty() && P.parentModel.isEmpty();
                g.ensureState(T).ignore = M && C
            }),
            g.useStyle(ot(x.getAreaStyle(), {
                fill: b,
                opacity: .7,
                decal: y.decal
            }));
            var S = h.getModel("emphasis")
              , w = S.getModel("itemStyle").getItemStyle();
            m.eachChild(function(T) {
                if (T instanceof Kr) {
                    var P = T.style;
                    T.useStyle(Me({
                        image: P.image,
                        x: P.x,
                        y: P.y,
                        width: P.width,
                        height: P.height
                    }, y))
                } else
                    T.useStyle(y),
                    T.setColor(b),
                    T.style.strokeNoScale = !0;
                var M = T.ensureState("emphasis");
                M.style = ut(w);
                var A = l.getStore().get(l.getDimensionIndex(T.__dimIdx), v);
                (A == null || isNaN(A)) && (A = ""),
                ea(T, Nr(h), {
                    labelFetcher: l.hostModel,
                    labelDataIndex: v,
                    labelDimIndex: T.__dimIdx,
                    defaultText: A,
                    inheritColor: b,
                    defaultOpacity: y.opacity
                })
            }),
            Qn(d, S.get("focus"), S.get("blurScope"), S.get("disabled"))
        }),
        this._data = l
    }
    ,
    e.prototype.remove = function() {
        this.group.removeAll(),
        this._data = null
    }
    ,
    e.type = "radar",
    e
}(Tn);
const ptt = htt;
var gtt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.hasSymbolVisual = !0,
        n
    }
    return e.prototype.init = function(n) {
        t.prototype.init.apply(this, arguments),
        this.legendVisualProvider = new sy(qe(this.getData, this),qe(this.getRawData, this))
    }
    ,
    e.prototype.getInitialData = function(n, r) {
        return Hh(this, {
            generateCoord: "indicator_",
            generateCoordCount: 1 / 0
        })
    }
    ,
    e.prototype.formatTooltip = function(n, r, a) {
        var i = this.getData()
          , o = this.coordinateSystem
          , l = o.getIndicatorAxes()
          , s = this.getData().getName(n)
          , u = s === "" ? this.name : s
          , c = ile(this, n);
        return $r("section", {
            header: u,
            sortBlocks: !0,
            blocks: Le(l, function(f) {
                var d = i.get(i.mapDimension(f.dim), n);
                return $r("nameValue", {
                    markerType: "subItem",
                    markerColor: c,
                    name: f.name,
                    value: d,
                    sortParam: d
                })
            })
        })
    }
    ,
    e.prototype.getTooltipPosition = function(n) {
        if (n != null) {
            for (var r = this.getData(), a = this.coordinateSystem, i = r.getValues(Le(a.dimensions, function(u) {
                return r.mapDimension(u)
            }), n), o = 0, l = i.length; o < l; o++)
                if (!isNaN(i[o])) {
                    var s = a.getIndicatorAxes();
                    return a.coordToPoint(s[o].dataToCoord(i[o]), o)
                }
        }
    }
    ,
    e.type = "series.radar",
    e.dependencies = ["radar"],
    e.defaultOption = {
        z: 2,
        colorBy: "data",
        coordinateSystem: "radar",
        legendHoverLink: !0,
        radarIndex: 0,
        lineStyle: {
            width: 2,
            type: "solid",
            join: "round"
        },
        label: {
            position: "top"
        },
        symbolSize: 8
    },
    e
}(En);
const mtt = gtt;
var Ap = iue.value;
function j1(t, e) {
    return ot({
        show: e
    }, t)
}
var ytt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.optionUpdated = function() {
        var n = this.get("boundaryGap")
          , r = this.get("splitNumber")
          , a = this.get("scale")
          , i = this.get("axisLine")
          , o = this.get("axisTick")
          , l = this.get("axisLabel")
          , s = this.get("axisName")
          , u = this.get(["axisName", "show"])
          , c = this.get(["axisName", "formatter"])
          , f = this.get("axisNameGap")
          , d = this.get("triggerEvent")
          , v = Le(this.get("indicator") || [], function(h) {
            h.max != null && h.max > 0 && !h.min ? h.min = 0 : h.min != null && h.min < 0 && !h.max && (h.max = 0);
            var p = s;
            h.color != null && (p = ot({
                color: h.color
            }, s));
            var g = At(ut(h), {
                boundaryGap: n,
                splitNumber: r,
                scale: a,
                axisLine: i,
                axisTick: o,
                axisLabel: l,
                name: h.text,
                showName: u,
                nameLocation: "end",
                nameGap: f,
                nameTextStyle: p,
                triggerEvent: d
            }, !1);
            if (Ge(c)) {
                var m = g.name;
                g.name = c.replace("{value}", m != null ? m : "")
            } else
                et(c) && (g.name = c(g.name, g));
            var y = new wn(g,null,this.ecModel);
            return ir(y, zh.prototype),
            y.mainType = "radar",
            y.componentIndex = this.componentIndex,
            y
        }, this);
        this._indicatorModels = v
    }
    ,
    e.prototype.getIndicatorModels = function() {
        return this._indicatorModels
    }
    ,
    e.type = "radar",
    e.defaultOption = {
        z: 0,
        center: ["50%", "50%"],
        radius: "75%",
        startAngle: 90,
        axisName: {
            show: !0
        },
        boundaryGap: [0, 0],
        splitNumber: 5,
        axisNameGap: 15,
        scale: !1,
        shape: "polygon",
        axisLine: At({
            lineStyle: {
                color: "#bbb"
            }
        }, Ap.axisLine),
        axisLabel: j1(Ap.axisLabel, !1),
        axisTick: j1(Ap.axisTick, !1),
        splitLine: j1(Ap.splitLine, !0),
        splitArea: j1(Ap.splitArea, !0),
        indicator: []
    },
    e
}(qt);
const btt = ytt;
var xtt = ["axisLine", "axisTickLabel", "axisName"]
  , Stt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i = this.group;
        i.removeAll(),
        this._buildAxes(n),
        this._buildSplitLineAndArea(n)
    }
    ,
    e.prototype._buildAxes = function(n) {
        var r = n.coordinateSystem
          , a = r.getIndicatorAxes()
          , i = Le(a, function(o) {
            var l = o.model.get("showName") ? o.name : ""
              , s = new vs(o.model,{
                axisName: l,
                position: [r.cx, r.cy],
                rotation: o.angle,
                labelDirection: -1,
                tickDirection: -1,
                nameDirection: 1
            });
            return s
        });
        Z(i, function(o) {
            Z(xtt, o.add, o),
            this.group.add(o.getGroup())
        }, this)
    }
    ,
    e.prototype._buildSplitLineAndArea = function(n) {
        var r = n.coordinateSystem
          , a = r.getIndicatorAxes();
        if (!a.length)
            return;
        var i = n.get("shape")
          , o = n.getModel("splitLine")
          , l = n.getModel("splitArea")
          , s = o.getModel("lineStyle")
          , u = l.getModel("areaStyle")
          , c = o.get("show")
          , f = l.get("show")
          , d = s.get("color")
          , v = u.get("color")
          , h = ke(d) ? d : [d]
          , p = ke(v) ? v : [v]
          , g = []
          , m = [];
        function y(E, L, N) {
            var R = N % L.length;
            return E[R] = E[R] || [],
            R
        }
        if (i === "circle")
            for (var b = a[0].getTicksCoords(), x = r.cx, C = r.cy, S = 0; S < b.length; S++) {
                if (c) {
                    var w = y(g, h, S);
                    g[w].push(new Mo({
                        shape: {
                            cx: x,
                            cy: C,
                            r: b[S].coord
                        }
                    }))
                }
                if (f && S < b.length - 1) {
                    var w = y(m, p, S);
                    m[w].push(new qm({
                        shape: {
                            cx: x,
                            cy: C,
                            r0: b[S].coord,
                            r: b[S + 1].coord
                        }
                    }))
                }
            }
        else
            for (var T, P = Le(a, function(E, L) {
                var N = E.getTicksCoords();
                return T = T == null ? N.length - 1 : Math.min(N.length - 1, T),
                Le(N, function(R) {
                    return r.coordToPoint(R.coord, L)
                })
            }), M = [], S = 0; S <= T; S++) {
                for (var A = [], O = 0; O < a.length; O++)
                    A.push(P[O][S]);
                if (A[0] && A.push(A[0].slice()),
                c) {
                    var w = y(g, h, S);
                    g[w].push(new Aa({
                        shape: {
                            points: A
                        }
                    }))
                }
                if (f && M) {
                    var w = y(m, p, S - 1);
                    m[w].push(new Ma({
                        shape: {
                            points: A.concat(M)
                        }
                    }))
                }
                M = A.slice().reverse()
            }
        var k = s.getLineStyle()
          , D = u.getAreaStyle();
        Z(m, function(E, L) {
            this.group.add(ti(E, {
                style: ot({
                    stroke: "none",
                    fill: p[L % p.length]
                }, D),
                silent: !0
            }))
        }, this),
        Z(g, function(E, L) {
            this.group.add(ti(E, {
                style: ot({
                    fill: "none",
                    stroke: h[L % h.length]
                }, k),
                silent: !0
            }))
        }, this)
    }
    ,
    e.type = "radar",
    e
}(Bn);
const Ctt = Stt;
var wtt = function(t) {
    ge(e, t);
    function e(n, r, a) {
        var i = t.call(this, n, r, a) || this;
        return i.type = "value",
        i.angle = 0,
        i.name = "",
        i
    }
    return e
}(Yi);
const _tt = wtt;
var Ttt = function() {
    function t(e, n, r) {
        this.dimensions = [],
        this._model = e,
        this._indicatorAxes = Le(e.getIndicatorModels(), function(a, i) {
            var o = "indicator_" + i
              , l = new _tt(o,new Lu);
            return l.name = a.get("name"),
            l.model = a,
            a.axis = l,
            this.dimensions.push(o),
            l
        }, this),
        this.resize(e, r)
    }
    return t.prototype.getIndicatorAxes = function() {
        return this._indicatorAxes
    }
    ,
    t.prototype.dataToPoint = function(e, n) {
        var r = this._indicatorAxes[n];
        return this.coordToPoint(r.dataToCoord(e), n)
    }
    ,
    t.prototype.coordToPoint = function(e, n) {
        var r = this._indicatorAxes[n]
          , a = r.angle
          , i = this.cx + e * Math.cos(a)
          , o = this.cy - e * Math.sin(a);
        return [i, o]
    }
    ,
    t.prototype.pointToData = function(e) {
        var n = e[0] - this.cx
          , r = e[1] - this.cy
          , a = Math.sqrt(n * n + r * r);
        n /= a,
        r /= a;
        for (var i = Math.atan2(-r, n), o = 1 / 0, l, s = -1, u = 0; u < this._indicatorAxes.length; u++) {
            var c = this._indicatorAxes[u]
              , f = Math.abs(i - c.angle);
            f < o && (l = c,
            s = u,
            o = f)
        }
        return [s, +(l && l.coordToData(a))]
    }
    ,
    t.prototype.resize = function(e, n) {
        var r = e.get("center")
          , a = n.getWidth()
          , i = n.getHeight()
          , o = Math.min(a, i) / 2;
        this.cx = He(r[0], a),
        this.cy = He(r[1], i),
        this.startAngle = e.get("startAngle") * Math.PI / 180;
        var l = e.get("radius");
        (Ge(l) || rn(l)) && (l = [0, l]),
        this.r0 = He(l[0], o),
        this.r = He(l[1], o),
        Z(this._indicatorAxes, function(s, u) {
            s.setExtent(this.r0, this.r);
            var c = this.startAngle + u * Math.PI * 2 / this._indicatorAxes.length;
            c = Math.atan2(Math.sin(c), Math.cos(c)),
            s.angle = c
        }, this)
    }
    ,
    t.prototype.update = function(e, n) {
        var r = this._indicatorAxes
          , a = this._model;
        Z(r, function(l) {
            l.scale.setExtent(1 / 0, -1 / 0)
        }),
        e.eachSeriesByType("radar", function(l, s) {
            if (!(l.get("coordinateSystem") !== "radar" || e.getComponent("radar", l.get("radarIndex")) !== a)) {
                var u = l.getData();
                Z(r, function(c) {
                    c.scale.unionExtentFromData(u, u.mapDimension(c.dim))
                })
            }
        }, this);
        var i = a.get("splitNumber")
          , o = new Lu;
        o.setExtent(0, i),
        o.setInterval(1),
        Z(r, function(l, s) {
            oue(l.scale, l.model, o)
        })
    }
    ,
    t.prototype.convertToPixel = function(e, n, r) {
        return null
    }
    ,
    t.prototype.convertFromPixel = function(e, n, r) {
        return null
    }
    ,
    t.prototype.containPoint = function(e) {
        return !1
    }
    ,
    t.create = function(e, n) {
        var r = [];
        return e.eachComponent("radar", function(a) {
            var i = new t(a,e,n);
            r.push(i),
            a.coordinateSystem = i
        }),
        e.eachSeriesByType("radar", function(a) {
            a.get("coordinateSystem") === "radar" && (a.coordinateSystem = r[a.get("radarIndex") || 0])
        }),
        r
    }
    ,
    t.dimensions = [],
    t
}();
const Ptt = Ttt;
function Mtt(t) {
    t.registerCoordinateSystem("radar", Ptt),
    t.registerComponentModel(btt),
    t.registerComponentView(Ctt),
    t.registerVisual({
        seriesType: "radar",
        reset: function(e) {
            var n = e.getData();
            n.each(function(r) {
                n.setItemVisual(r, "legendIcon", "roundRect")
            }),
            n.setVisual("legendIcon", "roundRect")
        }
    })
}
function Att(t) {
    Bt(Mtt),
    t.registerChartView(ptt),
    t.registerSeriesModel(mtt),
    t.registerLayout(dtt),
    t.registerProcessor(ly("radar")),
    t.registerPreprocessor(vtt)
}
var lG = "\0_ec_interaction_mutex";
function Itt(t, e, n) {
    var r = G5(t);
    r[e] = n
}
function ktt(t, e, n) {
    var r = G5(t)
      , a = r[e];
    a === n && (r[e] = null)
}
function sG(t, e) {
    return !!G5(t)[e]
}
function G5(t) {
    return t[lG] || (t[lG] = {})
}
Oo({
    type: "takeGlobalCursor",
    event: "globalCursorTaken",
    update: "update"
}, nr);
var Ott = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this) || this;
        r._zr = n;
        var a = qe(r._mousedownHandler, r)
          , i = qe(r._mousemoveHandler, r)
          , o = qe(r._mouseupHandler, r)
          , l = qe(r._mousewheelHandler, r)
          , s = qe(r._pinchHandler, r);
        return r.enable = function(u, c) {
            this.disable(),
            this._opt = ot(ut(c) || {}, {
                zoomOnMouseWheel: !0,
                moveOnMouseMove: !0,
                moveOnMouseWheel: !1,
                preventDefaultMouseMove: !0
            }),
            u == null && (u = !0),
            (u === !0 || u === "move" || u === "pan") && (n.on("mousedown", a),
            n.on("mousemove", i),
            n.on("mouseup", o)),
            (u === !0 || u === "scale" || u === "zoom") && (n.on("mousewheel", l),
            n.on("pinch", s))
        }
        ,
        r.disable = function() {
            n.off("mousedown", a),
            n.off("mousemove", i),
            n.off("mouseup", o),
            n.off("mousewheel", l),
            n.off("pinch", s)
        }
        ,
        r
    }
    return e.prototype.isDragging = function() {
        return this._dragging
    }
    ,
    e.prototype.isPinching = function() {
        return this._pinching
    }
    ,
    e.prototype.setPointerChecker = function(n) {
        this.pointerChecker = n
    }
    ,
    e.prototype.dispose = function() {
        this.disable()
    }
    ,
    e.prototype._mousedownHandler = function(n) {
        if (!Fz(n)) {
            for (var r = n.target; r; ) {
                if (r.draggable)
                    return;
                r = r.__hostTarget || r.parent
            }
            var a = n.offsetX
              , i = n.offsetY;
            this.pointerChecker && this.pointerChecker(n, a, i) && (this._x = a,
            this._y = i,
            this._dragging = !0)
        }
    }
    ,
    e.prototype._mousemoveHandler = function(n) {
        if (!(!this._dragging || !vx("moveOnMouseMove", n, this._opt) || n.gestureEvent === "pinch" || sG(this._zr, "globalPan"))) {
            var r = n.offsetX
              , a = n.offsetY
              , i = this._x
              , o = this._y
              , l = r - i
              , s = a - o;
            this._x = r,
            this._y = a,
            this._opt.preventDefaultMouseMove && ss(n.event),
            vue(this, "pan", "moveOnMouseMove", n, {
                dx: l,
                dy: s,
                oldX: i,
                oldY: o,
                newX: r,
                newY: a,
                isAvailableBehavior: null
            })
        }
    }
    ,
    e.prototype._mouseupHandler = function(n) {
        Fz(n) || (this._dragging = !1)
    }
    ,
    e.prototype._mousewheelHandler = function(n) {
        var r = vx("zoomOnMouseWheel", n, this._opt)
          , a = vx("moveOnMouseWheel", n, this._opt)
          , i = n.wheelDelta
          , o = Math.abs(i)
          , l = n.offsetX
          , s = n.offsetY;
        if (!(i === 0 || !r && !a)) {
            if (r) {
                var u = o > 3 ? 1.4 : o > 1 ? 1.2 : 1.1
                  , c = i > 0 ? u : 1 / u;
                P4(this, "zoom", "zoomOnMouseWheel", n, {
                    scale: c,
                    originX: l,
                    originY: s,
                    isAvailableBehavior: null
                })
            }
            if (a) {
                var f = Math.abs(i)
                  , d = (i > 0 ? 1 : -1) * (f > 3 ? .4 : f > 1 ? .15 : .05);
                P4(this, "scrollMove", "moveOnMouseWheel", n, {
                    scrollDelta: d,
                    originX: l,
                    originY: s,
                    isAvailableBehavior: null
                })
            }
        }
    }
    ,
    e.prototype._pinchHandler = function(n) {
        if (!sG(this._zr, "globalPan")) {
            var r = n.pinchScale > 1 ? 1.1 : 1 / 1.1;
            P4(this, "zoom", null, n, {
                scale: r,
                originX: n.pinchX,
                originY: n.pinchY,
                isAvailableBehavior: null
            })
        }
    }
    ,
    e
}(Wi);
function P4(t, e, n, r, a) {
    t.pointerChecker && t.pointerChecker(r, a.originX, a.originY) && (ss(r.event),
    vue(t, e, n, r, a))
}
function vue(t, e, n, r, a) {
    a.isAvailableBehavior = qe(vx, null, n, r),
    t.trigger(e, a)
}
function vx(t, e, n) {
    var r = n[t];
    return !t || r && (!Ge(r) || e.event[r + "Key"])
}
const uy = Ott;
function K5(t, e, n) {
    var r = t.target;
    r.x += e,
    r.y += n,
    r.dirty()
}
function U5(t, e, n, r) {
    var a = t.target
      , i = t.zoomLimit
      , o = t.zoom = t.zoom || 1;
    if (o *= e,
    i) {
        var l = i.min || 0
          , s = i.max || 1 / 0;
        o = Math.max(Math.min(s, o), l)
    }
    var u = o / t.zoom;
    t.zoom = o,
    a.x -= (n - a.x) * (u - 1),
    a.y -= (r - a.y) * (u - 1),
    a.scaleX *= u,
    a.scaleY *= u,
    a.dirty()
}
var Dtt = {
    axisPointer: 1,
    tooltip: 1,
    brush: 1
};
function I2(t, e, n) {
    var r = e.getComponentByElement(t.topTarget)
      , a = r && r.coordinateSystem;
    return r && r !== n && !Dtt.hasOwnProperty(r.mainType) && a && a.model !== n
}
function hue(t) {
    if (Ge(t)) {
        var e = new DOMParser;
        t = e.parseFromString(t, "text/xml")
    }
    var n = t;
    for (n.nodeType === 9 && (n = n.firstChild); n.nodeName.toLowerCase() !== "svg" || n.nodeType !== 1; )
        n = n.nextSibling;
    return n
}
var M4, QS = {
    fill: "fill",
    stroke: "stroke",
    "stroke-width": "lineWidth",
    opacity: "opacity",
    "fill-opacity": "fillOpacity",
    "stroke-opacity": "strokeOpacity",
    "stroke-dasharray": "lineDash",
    "stroke-dashoffset": "lineDashOffset",
    "stroke-linecap": "lineCap",
    "stroke-linejoin": "lineJoin",
    "stroke-miterlimit": "miterLimit",
    "font-family": "fontFamily",
    "font-size": "fontSize",
    "font-style": "fontStyle",
    "font-weight": "fontWeight",
    "text-anchor": "textAlign",
    visibility: "visibility",
    display: "display"
}, uG = Gt(QS), JS = {
    "alignment-baseline": "textBaseline",
    "stop-color": "stopColor"
}, cG = Gt(JS), Ett = function() {
    function t() {
        this._defs = {},
        this._root = null
    }
    return t.prototype.parse = function(e, n) {
        n = n || {};
        var r = hue(e);
        this._defsUsePending = [];
        var a = new mt;
        this._root = a;
        var i = []
          , o = r.getAttribute("viewBox") || ""
          , l = parseFloat(r.getAttribute("width") || n.width)
          , s = parseFloat(r.getAttribute("height") || n.height);
        isNaN(l) && (l = null),
        isNaN(s) && (s = null),
        Xa(r, a, null, !0, !1);
        for (var u = r.firstChild; u; )
            this._parseNode(u, a, i, null, !1, !1),
            u = u.nextSibling;
        Ntt(this._defs, this._defsUsePending),
        this._defsUsePending = [];
        var c, f;
        if (o) {
            var d = k2(o);
            d.length >= 4 && (c = {
                x: parseFloat(d[0] || 0),
                y: parseFloat(d[1] || 0),
                width: parseFloat(d[2]),
                height: parseFloat(d[3])
            })
        }
        if (c && l != null && s != null && (f = gue(c, {
            x: 0,
            y: 0,
            width: l,
            height: s
        }),
        !n.ignoreViewBox)) {
            var v = a;
            a = new mt,
            a.add(v),
            v.scaleX = v.scaleY = f.scale,
            v.x = f.x,
            v.y = f.y
        }
        return !n.ignoreRootClip && l != null && s != null && a.setClipPath(new tn({
            shape: {
                x: 0,
                y: 0,
                width: l,
                height: s
            }
        })),
        {
            root: a,
            width: l,
            height: s,
            viewBoxRect: c,
            viewBoxTransform: f,
            named: i
        }
    }
    ,
    t.prototype._parseNode = function(e, n, r, a, i, o) {
        var l = e.nodeName.toLowerCase(), s, u = a;
        if (l === "defs" && (i = !0),
        l === "text" && (o = !0),
        l === "defs" || l === "switch")
            s = n;
        else {
            if (!i) {
                var c = M4[l];
                if (c && Ze(M4, l)) {
                    s = c.call(this, e, n);
                    var f = e.getAttribute("name");
                    if (f) {
                        var d = {
                            name: f,
                            namedFrom: null,
                            svgNodeTagLower: l,
                            el: s
                        };
                        r.push(d),
                        l === "g" && (u = d)
                    } else
                        a && r.push({
                            name: a.name,
                            namedFrom: a,
                            svgNodeTagLower: l,
                            el: s
                        });
                    n.add(s)
                }
            }
            var v = fG[l];
            if (v && Ze(fG, l)) {
                var h = v.call(this, e)
                  , p = e.getAttribute("id");
                p && (this._defs[p] = h)
            }
        }
        if (s && s.isGroup)
            for (var g = e.firstChild; g; )
                g.nodeType === 1 ? this._parseNode(g, s, r, u, i, o) : g.nodeType === 3 && o && this._parseText(g, s),
                g = g.nextSibling
    }
    ,
    t.prototype._parseText = function(e, n) {
        var r = new B0({
            style: {
                text: e.textContent
            },
            silent: !0,
            x: this._textX || 0,
            y: this._textY || 0
        });
        Si(n, r),
        Xa(e, r, this._defsUsePending, !1, !1),
        Ltt(r, n);
        var a = r.style
          , i = a.fontSize;
        i && i < 9 && (a.fontSize = 9,
        r.scaleX *= i / 9,
        r.scaleY *= i / 9);
        var o = (a.fontSize || a.fontFamily) && [a.fontStyle, a.fontWeight, (a.fontSize || 12) + "px", a.fontFamily || "sans-serif"].join(" ");
        a.font = o;
        var l = r.getBoundingRect();
        return this._textX += l.width,
        n.add(r),
        r
    }
    ,
    t.internalField = function() {
        M4 = {
            g: function(e, n) {
                var r = new mt;
                return Si(n, r),
                Xa(e, r, this._defsUsePending, !1, !1),
                r
            },
            rect: function(e, n) {
                var r = new tn;
                return Si(n, r),
                Xa(e, r, this._defsUsePending, !1, !1),
                r.setShape({
                    x: parseFloat(e.getAttribute("x") || "0"),
                    y: parseFloat(e.getAttribute("y") || "0"),
                    width: parseFloat(e.getAttribute("width") || "0"),
                    height: parseFloat(e.getAttribute("height") || "0")
                }),
                r.silent = !0,
                r
            },
            circle: function(e, n) {
                var r = new Mo;
                return Si(n, r),
                Xa(e, r, this._defsUsePending, !1, !1),
                r.setShape({
                    cx: parseFloat(e.getAttribute("cx") || "0"),
                    cy: parseFloat(e.getAttribute("cy") || "0"),
                    r: parseFloat(e.getAttribute("r") || "0")
                }),
                r.silent = !0,
                r
            },
            line: function(e, n) {
                var r = new Or;
                return Si(n, r),
                Xa(e, r, this._defsUsePending, !1, !1),
                r.setShape({
                    x1: parseFloat(e.getAttribute("x1") || "0"),
                    y1: parseFloat(e.getAttribute("y1") || "0"),
                    x2: parseFloat(e.getAttribute("x2") || "0"),
                    y2: parseFloat(e.getAttribute("y2") || "0")
                }),
                r.silent = !0,
                r
            },
            ellipse: function(e, n) {
                var r = new l2;
                return Si(n, r),
                Xa(e, r, this._defsUsePending, !1, !1),
                r.setShape({
                    cx: parseFloat(e.getAttribute("cx") || "0"),
                    cy: parseFloat(e.getAttribute("cy") || "0"),
                    rx: parseFloat(e.getAttribute("rx") || "0"),
                    ry: parseFloat(e.getAttribute("ry") || "0")
                }),
                r.silent = !0,
                r
            },
            polygon: function(e, n) {
                var r = e.getAttribute("points"), a;
                r && (a = hG(r));
                var i = new Ma({
                    shape: {
                        points: a || []
                    },
                    silent: !0
                });
                return Si(n, i),
                Xa(e, i, this._defsUsePending, !1, !1),
                i
            },
            polyline: function(e, n) {
                var r = e.getAttribute("points"), a;
                r && (a = hG(r));
                var i = new Aa({
                    shape: {
                        points: a || []
                    },
                    silent: !0
                });
                return Si(n, i),
                Xa(e, i, this._defsUsePending, !1, !1),
                i
            },
            image: function(e, n) {
                var r = new Kr;
                return Si(n, r),
                Xa(e, r, this._defsUsePending, !1, !1),
                r.setStyle({
                    image: e.getAttribute("xlink:href") || e.getAttribute("href"),
                    x: +e.getAttribute("x"),
                    y: +e.getAttribute("y"),
                    width: +e.getAttribute("width"),
                    height: +e.getAttribute("height")
                }),
                r.silent = !0,
                r
            },
            text: function(e, n) {
                var r = e.getAttribute("x") || "0"
                  , a = e.getAttribute("y") || "0"
                  , i = e.getAttribute("dx") || "0"
                  , o = e.getAttribute("dy") || "0";
                this._textX = parseFloat(r) + parseFloat(i),
                this._textY = parseFloat(a) + parseFloat(o);
                var l = new mt;
                return Si(n, l),
                Xa(e, l, this._defsUsePending, !1, !0),
                l
            },
            tspan: function(e, n) {
                var r = e.getAttribute("x")
                  , a = e.getAttribute("y");
                r != null && (this._textX = parseFloat(r)),
                a != null && (this._textY = parseFloat(a));
                var i = e.getAttribute("dx") || "0"
                  , o = e.getAttribute("dy") || "0"
                  , l = new mt;
                return Si(n, l),
                Xa(e, l, this._defsUsePending, !1, !0),
                this._textX += parseFloat(i),
                this._textY += parseFloat(o),
                l
            },
            path: function(e, n) {
                var r = e.getAttribute("d") || ""
                  , a = Wie(r);
                return Si(n, a),
                Xa(e, a, this._defsUsePending, !1, !1),
                a.silent = !0,
                a
            }
        }
    }(),
    t
}(), fG = {
    lineargradient: function(t) {
        var e = parseInt(t.getAttribute("x1") || "0", 10)
          , n = parseInt(t.getAttribute("y1") || "0", 10)
          , r = parseInt(t.getAttribute("x2") || "10", 10)
          , a = parseInt(t.getAttribute("y2") || "0", 10)
          , i = new Mh(e,n,r,a);
        return dG(t, i),
        vG(t, i),
        i
    },
    radialgradient: function(t) {
        var e = parseInt(t.getAttribute("cx") || "0", 10)
          , n = parseInt(t.getAttribute("cy") || "0", 10)
          , r = parseInt(t.getAttribute("r") || "0", 10)
          , a = new U6(e,n,r);
        return dG(t, a),
        vG(t, a),
        a
    }
};
function dG(t, e) {
    var n = t.getAttribute("gradientUnits");
    n === "userSpaceOnUse" && (e.global = !0)
}
function vG(t, e) {
    for (var n = t.firstChild; n; ) {
        if (n.nodeType === 1 && n.nodeName.toLocaleLowerCase() === "stop") {
            var r = n.getAttribute("offset")
              , a = void 0;
            r && r.indexOf("%") > 0 ? a = parseInt(r, 10) / 100 : r ? a = parseFloat(r) : a = 0;
            var i = {};
            pue(n, i, i);
            var o = i.stopColor || n.getAttribute("stop-color") || "#000000";
            e.colorStops.push({
                offset: a,
                color: o
            })
        }
        n = n.nextSibling
    }
}
function Si(t, e) {
    t && t.__inheritedStyle && (e.__inheritedStyle || (e.__inheritedStyle = {}),
    ot(e.__inheritedStyle, t.__inheritedStyle))
}
function hG(t) {
    for (var e = k2(t), n = [], r = 0; r < e.length; r += 2) {
        var a = parseFloat(e[r])
          , i = parseFloat(e[r + 1]);
        n.push([a, i])
    }
    return n
}
function Xa(t, e, n, r, a) {
    var i = e
      , o = i.__inheritedStyle = i.__inheritedStyle || {}
      , l = {};
    t.nodeType === 1 && (Btt(t, e),
    pue(t, o, l),
    r || Vtt(t, o, l)),
    i.style = i.style || {},
    o.fill != null && (i.style.fill = pG(i, "fill", o.fill, n)),
    o.stroke != null && (i.style.stroke = pG(i, "stroke", o.stroke, n)),
    Z(["lineWidth", "opacity", "fillOpacity", "strokeOpacity", "miterLimit", "fontSize"], function(s) {
        o[s] != null && (i.style[s] = parseFloat(o[s]))
    }),
    Z(["lineDashOffset", "lineCap", "lineJoin", "fontWeight", "fontFamily", "fontStyle", "textAlign"], function(s) {
        o[s] != null && (i.style[s] = o[s])
    }),
    a && (i.__selfStyle = l),
    o.lineDash && (i.style.lineDash = Le(k2(o.lineDash), function(s) {
        return parseFloat(s)
    })),
    (o.visibility === "hidden" || o.visibility === "collapse") && (i.invisible = !0),
    o.display === "none" && (i.ignore = !0)
}
function Ltt(t, e) {
    var n = e.__selfStyle;
    if (n) {
        var r = n.textBaseline
          , a = r;
        !r || r === "auto" || r === "baseline" ? a = "alphabetic" : r === "before-edge" || r === "text-before-edge" ? a = "top" : r === "after-edge" || r === "text-after-edge" ? a = "bottom" : (r === "central" || r === "mathematical") && (a = "middle"),
        t.style.textBaseline = a
    }
    var i = e.__inheritedStyle;
    if (i) {
        var o = i.textAlign
          , l = o;
        o && (o === "middle" && (l = "center"),
        t.style.textAlign = l)
    }
}
var Rtt = /^url\(\s*#(.*?)\)/;
function pG(t, e, n, r) {
    var a = n && n.match(Rtt);
    if (a) {
        var i = Di(a[1]);
        r.push([t, e, i]);
        return
    }
    return n === "none" && (n = null),
    n
}
function Ntt(t, e) {
    for (var n = 0; n < e.length; n++) {
        var r = e[n];
        r[0].style[r[1]] = t[r[2]]
    }
}
var $tt = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
function k2(t) {
    return t.match($tt) || []
}
var Ftt = /(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g
  , A4 = Math.PI / 180;
function Btt(t, e) {
    var n = t.getAttribute("transform");
    if (n) {
        n = n.replace(/,/g, " ");
        var r = []
          , a = null;
        n.replace(Ftt, function(f, d, v) {
            return r.push(d, v),
            ""
        });
        for (var i = r.length - 1; i > 0; i -= 2) {
            var o = r[i]
              , l = r[i - 1]
              , s = k2(o);
            switch (a = a || si(),
            l) {
            case "translate":
                To(a, a, [parseFloat(s[0]), parseFloat(s[1] || "0")]);
                break;
            case "scale":
                Zw(a, a, [parseFloat(s[0]), parseFloat(s[1] || s[0])]);
                break;
            case "rotate":
                Ku(a, a, -parseFloat(s[0]) * A4);
                break;
            case "skewX":
                var u = Math.tan(parseFloat(s[0]) * A4);
                fl(a, [1, 0, u, 1, 0, 0], a);
                break;
            case "skewY":
                var c = Math.tan(parseFloat(s[0]) * A4);
                fl(a, [1, c, 0, 1, 0, 0], a);
                break;
            case "matrix":
                a[0] = parseFloat(s[0]),
                a[1] = parseFloat(s[1]),
                a[2] = parseFloat(s[2]),
                a[3] = parseFloat(s[3]),
                a[4] = parseFloat(s[4]),
                a[5] = parseFloat(s[5]);
                break
            }
        }
        e.setLocalTransform(a)
    }
}
var gG = /([^\s:;]+)\s*:\s*([^:;]+)/g;
function pue(t, e, n) {
    var r = t.getAttribute("style");
    if (!!r) {
        gG.lastIndex = 0;
        for (var a; (a = gG.exec(r)) != null; ) {
            var i = a[1]
              , o = Ze(QS, i) ? QS[i] : null;
            o && (e[o] = a[2]);
            var l = Ze(JS, i) ? JS[i] : null;
            l && (n[l] = a[2])
        }
    }
}
function Vtt(t, e, n) {
    for (var r = 0; r < uG.length; r++) {
        var a = uG[r]
          , i = t.getAttribute(a);
        i != null && (e[QS[a]] = i)
    }
    for (var r = 0; r < cG.length; r++) {
        var a = cG[r]
          , i = t.getAttribute(a);
        i != null && (n[JS[a]] = i)
    }
}
function gue(t, e) {
    var n = e.width / t.width
      , r = e.height / t.height
      , a = Math.min(n, r);
    return {
        scale: a,
        x: -(t.x + t.width / 2) * a + (e.x + e.width / 2),
        y: -(t.y + t.height / 2) * a + (e.y + e.height / 2)
    }
}
function ztt(t, e) {
    var n = new Ett;
    return n.parse(t, e)
}
var Htt = Qe(["rect", "circle", "line", "ellipse", "polygon", "polyline", "path", "text", "tspan", "g"])
  , jtt = function() {
    function t(e, n) {
        this.type = "geoSVG",
        this._usedGraphicMap = Qe(),
        this._freedGraphics = [],
        this._mapName = e,
        this._parsedXML = hue(n)
    }
    return t.prototype.load = function() {
        var e = this._firstGraphic;
        if (!e) {
            e = this._firstGraphic = this._buildGraphic(this._parsedXML),
            this._freedGraphics.push(e),
            this._boundingRect = this._firstGraphic.boundingRect.clone();
            var n = Gtt(e.named)
              , r = n.regions
              , a = n.regionsMap;
            this._regions = r,
            this._regionsMap = a
        }
        return {
            boundingRect: this._boundingRect,
            regions: this._regions,
            regionsMap: this._regionsMap
        }
    }
    ,
    t.prototype._buildGraphic = function(e) {
        var n, r;
        try {
            n = e && ztt(e, {
                ignoreViewBox: !0,
                ignoreRootClip: !0
            }) || {},
            r = n.root,
            la(r != null)
        } catch (g) {
            throw new Error(`Invalid svg format
` + g.message)
        }
        var a = new mt;
        a.add(r),
        a.isGeoSVGGraphicRoot = !0;
        var i = n.width
          , o = n.height
          , l = n.viewBoxRect
          , s = this._boundingRect;
        if (!s) {
            var u = void 0
              , c = void 0
              , f = void 0
              , d = void 0;
            if (i != null ? (u = 0,
            f = i) : l && (u = l.x,
            f = l.width),
            o != null ? (c = 0,
            d = o) : l && (c = l.y,
            d = l.height),
            u == null || c == null) {
                var v = r.getBoundingRect();
                u == null && (u = v.x,
                f = v.width),
                c == null && (c = v.y,
                d = v.height)
            }
            s = this._boundingRect = new Dt(u,c,f,d)
        }
        if (l) {
            var h = gue(l, s);
            r.scaleX = r.scaleY = h.scale,
            r.x = h.x,
            r.y = h.y
        }
        a.setClipPath(new tn({
            shape: s.plain()
        }));
        var p = [];
        return Z(n.named, function(g) {
            Htt.get(g.svgNodeTagLower) != null && (p.push(g),
            Wtt(g.el))
        }),
        {
            root: a,
            boundingRect: s,
            named: p
        }
    }
    ,
    t.prototype.useGraphic = function(e) {
        var n = this._usedGraphicMap
          , r = n.get(e);
        return r || (r = this._freedGraphics.pop() || this._buildGraphic(this._parsedXML),
        n.set(e, r),
        r)
    }
    ,
    t.prototype.freeGraphic = function(e) {
        var n = this._usedGraphicMap
          , r = n.get(e);
        r && (n.removeKey(e),
        this._freedGraphics.push(r))
    }
    ,
    t
}();
function Wtt(t) {
    t.silent = !1,
    t.isGroup && t.traverse(function(e) {
        e.silent = !1
    })
}
function Gtt(t) {
    var e = []
      , n = Qe();
    return Z(t, function(r) {
        if (r.namedFrom == null) {
            var a = new eQe(r.name,r.el);
            e.push(a),
            n.set(r.name, a)
        }
    }),
    {
        regions: e,
        regionsMap: n
    }
}
var ok = [126, 25]
  , mG = "\u5357\u6D77\u8BF8\u5C9B"
  , Lc = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, .7], [52, .7], [56, 7.7], [59, .7], [64, .7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]]];
for (var Ic = 0; Ic < Lc.length; Ic++)
    for (var kd = 0; kd < Lc[Ic].length; kd++)
        Lc[Ic][kd][0] /= 10.5,
        Lc[Ic][kd][1] /= -10.5 / .75,
        Lc[Ic][kd][0] += ok[0],
        Lc[Ic][kd][1] += ok[1];
function Ktt(t, e) {
    if (t === "china") {
        for (var n = 0; n < e.length; n++)
            if (e[n].name === mG)
                return;
        e.push(new hse(mG,Le(Lc, function(r) {
            return {
                type: "polygon",
                exterior: r
            }
        }),ok))
    }
}
var Utt = {
    \u5357\u6D77\u8BF8\u5C9B: [32, 80],
    \u5E7F\u4E1C: [0, -10],
    \u9999\u6E2F: [10, 5],
    \u6FB3\u95E8: [-10, 10],
    \u5929\u6D25: [5, 5]
};
function Ytt(t, e) {
    if (t === "china") {
        var n = Utt[e.name];
        if (n) {
            var r = e.getCenter();
            r[0] += n[0] / 10.5,
            r[1] += -n[1] / (10.5 / .75),
            e.setCenter(r)
        }
    }
}
var qtt = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]];
function Xtt(t, e) {
    t === "china" && e.name === "\u53F0\u6E7E" && e.geometries.push({
        type: "polygon",
        exterior: qtt[0]
    })
}
var Ztt = "name"
  , Qtt = function() {
    function t(e, n, r) {
        this.type = "geoJSON",
        this._parsedMap = Qe(),
        this._mapName = e,
        this._specialAreas = r,
        this._geoJSON = ent(n)
    }
    return t.prototype.load = function(e, n) {
        n = n || Ztt;
        var r = this._parsedMap.get(n);
        if (!r) {
            var a = this._parseToRegions(n);
            r = this._parsedMap.set(n, {
                regions: a,
                boundingRect: Jtt(a)
            })
        }
        var i = Qe()
          , o = [];
        return Z(r.regions, function(l) {
            var s = l.name;
            e && Ze(e, s) && (l = l.cloneShallow(s = e[s])),
            o.push(l),
            i.set(s, l)
        }),
        {
            regions: o,
            boundingRect: r.boundingRect || new Dt(0,0,0,0),
            regionsMap: i
        }
    }
    ,
    t.prototype._parseToRegions = function(e) {
        var n = this._mapName, r = this._geoJSON, a;
        try {
            a = r ? XI(r, e) : []
        } catch (i) {
            throw new Error(`Invalid geoJson format
` + i.message)
        }
        return Ktt(n, a),
        Z(a, function(i) {
            var o = i.name;
            Ytt(n, i),
            Xtt(n, i);
            var l = this._specialAreas && this._specialAreas[o];
            l && i.transformTo(l.left, l.top, l.width, l.height)
        }, this),
        a
    }
    ,
    t.prototype.getMapForUser = function() {
        return {
            geoJson: this._geoJSON,
            geoJSON: this._geoJSON,
            specialAreas: this._specialAreas
        }
    }
    ,
    t
}();
function Jtt(t) {
    for (var e, n = 0; n < t.length; n++) {
        var r = t[n].getBoundingRect();
        e = e || r.clone(),
        e.union(r)
    }
    return e
}
function ent(t) {
    return Ge(t) ? typeof JSON != "undefined" && JSON.parse ? JSON.parse(t) : new Function("return (" + t + ");")() : t
}
var Ip = Qe();
const hs = {
    registerMap: function(t, e, n) {
        if (e.svg) {
            var r = new jtt(t,e.svg);
            Ip.set(t, r)
        } else {
            var a = e.geoJson || e.geoJSON;
            a && !e.features ? n = e.specialAreas : a = e;
            var r = new Qtt(t,a,n);
            Ip.set(t, r)
        }
    },
    getGeoResource: function(t) {
        return Ip.get(t)
    },
    getMapForUser: function(t) {
        var e = Ip.get(t);
        return e && e.type === "geoJSON" && e.getMapForUser()
    },
    load: function(t, e, n) {
        var r = Ip.get(t);
        if (!!r)
            return r.load(e, n)
    }
};
var Y5 = ["rect", "circle", "line", "ellipse", "polygon", "polyline", "path"]
  , tnt = Qe(Y5)
  , nnt = Qe(Y5.concat(["g"]))
  , rnt = Qe(Y5.concat(["g"]))
  , mue = an();
function W1(t) {
    var e = t.getItemStyle()
      , n = t.get("areaColor");
    return n != null && (e.fill = n),
    e
}
function yG(t) {
    var e = t.style;
    e && (e.stroke = e.stroke || e.fill,
    e.fill = null)
}
var ant = function() {
    function t(e) {
        var n = new mt;
        this.uid = Dh("ec_map_draw"),
        this._controller = new uy(e.getZr()),
        this._controllerHost = {
            target: n
        },
        this.group = n,
        n.add(this._regionsGroup = new mt),
        n.add(this._svgGroup = new mt)
    }
    return t.prototype.draw = function(e, n, r, a, i) {
        var o = e.mainType === "geo"
          , l = e.getData && e.getData();
        o && n.eachComponent({
            mainType: "series",
            subType: "map"
        }, function(m) {
            !l && m.getHostGeoModel() === e && (l = m.getData())
        });
        var s = e.coordinateSystem
          , u = this._regionsGroup
          , c = this.group
          , f = s.getTransformInfo()
          , d = f.raw
          , v = f.roam
          , h = !u.childAt(0) || i;
        h ? (c.x = v.x,
        c.y = v.y,
        c.scaleX = v.scaleX,
        c.scaleY = v.scaleY,
        c.dirty()) : ln(c, v, e);
        var p = l && l.getVisual("visualMeta") && l.getVisual("visualMeta").length > 0
          , g = {
            api: r,
            geo: s,
            mapOrGeoModel: e,
            data: l,
            isVisualEncodedByVisualMap: p,
            isGeo: o,
            transformInfoRaw: d
        };
        s.resourceType === "geoJSON" ? this._buildGeoJSON(g) : s.resourceType === "geoSVG" && this._buildSVG(g),
        this._updateController(e, n, r),
        this._updateMapSelectHandler(e, u, r, a)
    }
    ,
    t.prototype._buildGeoJSON = function(e) {
        var n = this._regionsGroupByName = Qe()
          , r = Qe()
          , a = this._regionsGroup
          , i = e.transformInfoRaw
          , o = e.mapOrGeoModel
          , l = e.data
          , s = e.geo.projection
          , u = s && s.stream;
        function c(v, h) {
            return h && (v = h(v)),
            v && [v[0] * i.scaleX + i.x, v[1] * i.scaleY + i.y]
        }
        function f(v) {
            for (var h = [], p = !u && s && s.project, g = 0; g < v.length; ++g) {
                var m = c(v[g], p);
                m && h.push(m)
            }
            return h
        }
        function d(v) {
            return {
                shape: {
                    points: f(v)
                }
            }
        }
        a.removeAll(),
        Z(e.geo.regions, function(v) {
            var h = v.name
              , p = n.get(h)
              , g = r.get(h) || {}
              , m = g.dataIdx
              , y = g.regionModel;
            p || (p = n.set(h, new mt),
            a.add(p),
            m = l ? l.indexOfName(h) : null,
            y = e.isGeo ? o.getRegionModel(h) : l ? l.getItemModel(m) : null,
            r.set(h, {
                dataIdx: m,
                regionModel: y
            }));
            var b = []
              , x = [];
            Z(v.geometries, function(w) {
                if (w.type === "polygon") {
                    var T = [w.exterior].concat(w.interiors || []);
                    u && (T = _G(T, u)),
                    Z(T, function(M) {
                        b.push(new Ma(d(M)))
                    })
                } else {
                    var P = w.points;
                    u && (P = _G(P, u, !0)),
                    Z(P, function(M) {
                        x.push(new Aa(d(M)))
                    })
                }
            });
            var C = c(v.getCenter(), s && s.project);
            function S(w, T) {
                if (!!w.length) {
                    var P = new u2({
                        culling: !0,
                        segmentIgnoreThreshold: 1,
                        shape: {
                            paths: w
                        }
                    });
                    p.add(P),
                    bG(e, P, m, y),
                    xG(e, P, h, y, o, m, C),
                    T && (yG(P),
                    Z(P.states, yG))
                }
            }
            S(b),
            S(x, !0)
        }),
        n.each(function(v, h) {
            var p = r.get(h)
              , g = p.dataIdx
              , m = p.regionModel;
            SG(e, v, h, m, o, g),
            CG(e, v, h, m, o),
            wG(e, v, h, m, o)
        }, this)
    }
    ,
    t.prototype._buildSVG = function(e) {
        var n = e.geo.map
          , r = e.transformInfoRaw;
        this._svgGroup.x = r.x,
        this._svgGroup.y = r.y,
        this._svgGroup.scaleX = r.scaleX,
        this._svgGroup.scaleY = r.scaleY,
        this._svgResourceChanged(n) && (this._freeSVG(),
        this._useSVG(n));
        var a = this._svgDispatcherMap = Qe()
          , i = !1;
        Z(this._svgGraphicRecord.named, function(o) {
            var l = o.name
              , s = e.mapOrGeoModel
              , u = e.data
              , c = o.svgNodeTagLower
              , f = o.el
              , d = u ? u.indexOfName(l) : null
              , v = s.getRegionModel(l);
            if (tnt.get(c) != null && f instanceof ji && bG(e, f, d, v),
            f instanceof ji && (f.culling = !0),
            f.z2EmphasisLift = 0,
            !o.namedFrom && (rnt.get(c) != null && xG(e, f, l, v, s, d, null),
            SG(e, f, l, v, s, d),
            CG(e, f, l, v, s),
            nnt.get(c) != null)) {
                var h = wG(e, f, l, v, s);
                h === "self" && (i = !0);
                var p = a.get(l) || a.set(l, []);
                p.push(f)
            }
        }, this),
        this._enableBlurEntireSVG(i, e)
    }
    ,
    t.prototype._enableBlurEntireSVG = function(e, n) {
        if (e && n.isGeo) {
            var r = n.mapOrGeoModel.getModel(["blur", "itemStyle"]).getItemStyle()
              , a = r.opacity;
            this._svgGraphicRecord.root.traverse(function(i) {
                if (!i.isGroup) {
                    Bf(i);
                    var o = i.ensureState("blur").style || {};
                    o.opacity == null && a != null && (o.opacity = a),
                    i.ensureState("emphasis")
                }
            })
        }
    }
    ,
    t.prototype.remove = function() {
        this._regionsGroup.removeAll(),
        this._regionsGroupByName = null,
        this._svgGroup.removeAll(),
        this._freeSVG(),
        this._controller.dispose(),
        this._controllerHost = null
    }
    ,
    t.prototype.findHighDownDispatchers = function(e, n) {
        if (e == null)
            return [];
        var r = n.coordinateSystem;
        if (r.resourceType === "geoJSON") {
            var a = this._regionsGroupByName;
            if (a) {
                var i = a.get(e);
                return i ? [i] : []
            }
        } else if (r.resourceType === "geoSVG")
            return this._svgDispatcherMap && this._svgDispatcherMap.get(e) || []
    }
    ,
    t.prototype._svgResourceChanged = function(e) {
        return this._svgMapName !== e
    }
    ,
    t.prototype._useSVG = function(e) {
        var n = hs.getGeoResource(e);
        if (n && n.type === "geoSVG") {
            var r = n.useGraphic(this.uid);
            this._svgGroup.add(r.root),
            this._svgGraphicRecord = r,
            this._svgMapName = e
        }
    }
    ,
    t.prototype._freeSVG = function() {
        var e = this._svgMapName;
        if (e != null) {
            var n = hs.getGeoResource(e);
            n && n.type === "geoSVG" && n.freeGraphic(this.uid),
            this._svgGraphicRecord = null,
            this._svgDispatcherMap = null,
            this._svgGroup.removeAll(),
            this._svgMapName = null
        }
    }
    ,
    t.prototype._updateController = function(e, n, r) {
        var a = e.coordinateSystem
          , i = this._controller
          , o = this._controllerHost;
        o.zoomLimit = e.get("scaleLimit"),
        o.zoom = a.getZoom(),
        i.enable(e.get("roam") || !1);
        var l = e.mainType;
        function s() {
            var u = {
                type: "geoRoam",
                componentType: l
            };
            return u[l + "Id"] = e.id,
            u
        }
        i.off("pan").on("pan", function(u) {
            this._mouseDownFlag = !1,
            K5(o, u.dx, u.dy),
            r.dispatchAction(Me(s(), {
                dx: u.dx,
                dy: u.dy,
                animation: {
                    duration: 0
                }
            }))
        }, this),
        i.off("zoom").on("zoom", function(u) {
            this._mouseDownFlag = !1,
            U5(o, u.scale, u.originX, u.originY),
            r.dispatchAction(Me(s(), {
                zoom: u.scale,
                originX: u.originX,
                originY: u.originY,
                animation: {
                    duration: 0
                }
            }))
        }, this),
        i.setPointerChecker(function(u, c, f) {
            return a.containPoint([c, f]) && !I2(u, r, e)
        })
    }
    ,
    t.prototype.resetForLabelLayout = function() {
        this.group.traverse(function(e) {
            var n = e.getTextContent();
            n && (n.ignore = mue(n).ignore)
        })
    }
    ,
    t.prototype._updateMapSelectHandler = function(e, n, r, a) {
        var i = this;
        n.off("mousedown"),
        n.off("click"),
        e.get("selectedMode") && (n.on("mousedown", function() {
            i._mouseDownFlag = !0
        }),
        n.on("click", function(o) {
            !i._mouseDownFlag || (i._mouseDownFlag = !1)
        }))
    }
    ,
    t
}();
function bG(t, e, n, r) {
    var a = r.getModel("itemStyle")
      , i = r.getModel(["emphasis", "itemStyle"])
      , o = r.getModel(["blur", "itemStyle"])
      , l = r.getModel(["select", "itemStyle"])
      , s = W1(a)
      , u = W1(i)
      , c = W1(l)
      , f = W1(o)
      , d = t.data;
    if (d) {
        var v = d.getItemVisual(n, "style")
          , h = d.getItemVisual(n, "decal");
        t.isVisualEncodedByVisualMap && v.fill && (s.fill = v.fill),
        h && (s.decal = Jv(h, t.api))
    }
    e.setStyle(s),
    e.style.strokeNoScale = !0,
    e.ensureState("emphasis").style = u,
    e.ensureState("select").style = c,
    e.ensureState("blur").style = f,
    Bf(e)
}
function xG(t, e, n, r, a, i, o) {
    var l = t.data
      , s = t.isGeo
      , u = l && isNaN(l.get(l.mapDimension("value"), i))
      , c = l && l.getItemLayout(i);
    if (s || u || c && c.showLabel) {
        var f = s ? n : i
          , d = void 0;
        (!l || i >= 0) && (d = a);
        var v = o ? {
            normal: {
                align: "center",
                verticalAlign: "middle"
            }
        } : null;
        ea(e, Nr(r), {
            labelFetcher: d,
            labelDataIndex: f,
            defaultText: n
        }, v);
        var h = e.getTextContent();
        if (h && (mue(h).ignore = h.ignore,
        e.textConfig && o)) {
            var p = e.getBoundingRect().clone();
            e.textConfig.layoutRect = p,
            e.textConfig.position = [(o[0] - p.x) / p.width * 100 + "%", (o[1] - p.y) / p.height * 100 + "%"]
        }
        e.disableLabelAnimation = !0
    } else
        e.removeTextContent(),
        e.removeTextConfig(),
        e.disableLabelAnimation = null
}
function SG(t, e, n, r, a, i) {
    t.data ? t.data.setItemGraphicEl(i, e) : Ct(e).eventData = {
        componentType: "geo",
        componentIndex: a.componentIndex,
        geoIndex: a.componentIndex,
        name: n,
        region: r && r.option || {}
    }
}
function CG(t, e, n, r, a) {
    t.data || kh({
        el: e,
        componentModel: a,
        itemName: n,
        itemTooltipOption: r.get("tooltip")
    })
}
function wG(t, e, n, r, a) {
    e.highDownSilentOnTouch = !!a.get("selectedMode");
    var i = r.getModel("emphasis")
      , o = i.get("focus");
    return Qn(e, o, i.get("blurScope"), i.get("disabled")),
    t.isGeo && GKe(e, a, n),
    o
}
function _G(t, e, n) {
    var r = [], a;
    function i() {
        a = []
    }
    function o() {
        a.length && (r.push(a),
        a = [])
    }
    var l = e({
        polygonStart: i,
        polygonEnd: o,
        lineStart: i,
        lineEnd: o,
        point: function(s, u) {
            isFinite(s) && isFinite(u) && a.push([s, u])
        },
        sphere: function() {}
    });
    return !n && l.polygonStart(),
    Z(t, function(s) {
        l.lineStart();
        for (var u = 0; u < s.length; u++)
            l.point(s[u][0], s[u][1]);
        l.lineEnd()
    }),
    !n && l.polygonEnd(),
    r
}
const yue = ant;
var int = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a, i) {
        if (!(i && i.type === "mapToggleSelect" && i.from === this.uid)) {
            var o = this.group;
            if (o.removeAll(),
            !n.getHostGeoModel()) {
                if (this._mapDraw && i && i.type === "geoRoam" && this._mapDraw.resetForLabelLayout(),
                i && i.type === "geoRoam" && i.componentType === "series" && i.seriesId === n.id) {
                    var l = this._mapDraw;
                    l && o.add(l.group)
                } else if (n.needsDrawMap) {
                    var l = this._mapDraw || new yue(a);
                    o.add(l.group),
                    l.draw(n, r, a, this, i),
                    this._mapDraw = l
                } else
                    this._mapDraw && this._mapDraw.remove(),
                    this._mapDraw = null;
                n.get("showLegendSymbol") && r.getComponent("legend") && this._renderSymbols(n, r, a)
            }
        }
    }
    ,
    e.prototype.remove = function() {
        this._mapDraw && this._mapDraw.remove(),
        this._mapDraw = null,
        this.group.removeAll()
    }
    ,
    e.prototype.dispose = function() {
        this._mapDraw && this._mapDraw.remove(),
        this._mapDraw = null
    }
    ,
    e.prototype._renderSymbols = function(n, r, a) {
        var i = n.originalData
          , o = this.group;
        i.each(i.mapDimension("value"), function(l, s) {
            if (!isNaN(l)) {
                var u = i.getItemLayout(s);
                if (!(!u || !u.point)) {
                    var c = u.point
                      , f = u.offset
                      , d = new Mo({
                        style: {
                            fill: n.getData().getVisual("style").fill
                        },
                        shape: {
                            cx: c[0] + f * 9,
                            cy: c[1],
                            r: 3
                        },
                        silent: !0,
                        z2: 8 + (f ? 0 : Ph + 1)
                    });
                    if (!f) {
                        var v = n.mainSeries.getData()
                          , h = i.getName(s)
                          , p = v.indexOfName(h)
                          , g = i.getItemModel(s)
                          , m = g.getModel("label")
                          , y = v.getItemGraphicEl(p);
                        ea(d, Nr(g), {
                            labelFetcher: {
                                getFormattedLabel: function(b, x) {
                                    return n.getFormattedLabel(p, x)
                                }
                            },
                            defaultText: h
                        }),
                        d.disableLabelAnimation = !0,
                        m.get("position") || d.setTextConfig({
                            position: "bottom"
                        }),
                        y.onHoverStateChange = function(b) {
                            IS(d, b)
                        }
                    }
                    o.add(d)
                }
            }
        })
    }
    ,
    e.type = "map",
    e
}(Tn);
const ont = int;
var lnt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.needsDrawMap = !1,
        n.seriesGroup = [],
        n.getTooltipPosition = function(r) {
            if (r != null) {
                var a = this.getData().getName(r)
                  , i = this.coordinateSystem
                  , o = i.getRegion(a);
                return o && i.dataToPoint(o.getCenter())
            }
        }
        ,
        n
    }
    return e.prototype.getInitialData = function(n) {
        for (var r = Hh(this, {
            coordDimensions: ["value"],
            encodeDefaulter: St(s5, this)
        }), a = Qe(), i = [], o = 0, l = r.count(); o < l; o++) {
            var s = r.getName(o);
            a.set(s, !0)
        }
        var u = hs.load(this.getMapType(), this.option.nameMap, this.option.nameProperty);
        return Z(u.regions, function(c) {
            var f = c.name;
            a.get(f) || i.push(f)
        }),
        r.appendValues([], i),
        r
    }
    ,
    e.prototype.getHostGeoModel = function() {
        var n = this.option.geoIndex;
        return n != null ? this.ecModel.getComponent("geo", n) : null
    }
    ,
    e.prototype.getMapType = function() {
        return (this.getHostGeoModel() || this).option.map
    }
    ,
    e.prototype.getRawValue = function(n) {
        var r = this.getData();
        return r.get(r.mapDimension("value"), n)
    }
    ,
    e.prototype.getRegionModel = function(n) {
        var r = this.getData();
        return r.getItemModel(r.indexOfName(n))
    }
    ,
    e.prototype.formatTooltip = function(n, r, a) {
        for (var i = this.getData(), o = this.getRawValue(n), l = i.getName(n), s = this.seriesGroup, u = [], c = 0; c < s.length; c++) {
            var f = s[c].originalData.indexOfName(l)
              , d = i.mapDimension("value");
            isNaN(s[c].originalData.get(d, f)) || u.push(s[c].name)
        }
        return $r("section", {
            header: u.join(", "),
            noHeader: !u.length,
            blocks: [$r("nameValue", {
                name: l,
                value: o
            })]
        })
    }
    ,
    e.prototype.setZoom = function(n) {
        this.option.zoom = n
    }
    ,
    e.prototype.setCenter = function(n) {
        this.option.center = n
    }
    ,
    e.prototype.getLegendIcon = function(n) {
        var r = n.icon || "roundRect"
          , a = fr(r, 0, 0, n.itemWidth, n.itemHeight, n.itemStyle.fill);
        return a.setStyle(n.itemStyle),
        a.style.stroke = "none",
        r.indexOf("empty") > -1 && (a.style.stroke = a.style.fill,
        a.style.fill = "#fff",
        a.style.lineWidth = 2),
        a
    }
    ,
    e.type = "series.map",
    e.dependencies = ["geo"],
    e.layoutMode = "box",
    e.defaultOption = {
        z: 2,
        coordinateSystem: "geo",
        map: "",
        left: "center",
        top: "center",
        aspectScale: null,
        showLegendSymbol: !0,
        boundingCoords: null,
        center: null,
        zoom: 1,
        scaleLimit: null,
        selectedMode: !0,
        label: {
            show: !1,
            color: "#000"
        },
        itemStyle: {
            borderWidth: .5,
            borderColor: "#444",
            areaColor: "#eee"
        },
        emphasis: {
            label: {
                show: !0,
                color: "rgb(100,0,0)"
            },
            itemStyle: {
                areaColor: "rgba(255,215,0,0.8)"
            }
        },
        select: {
            label: {
                show: !0,
                color: "rgb(100,0,0)"
            },
            itemStyle: {
                color: "rgba(255,215,0,0.8)"
            }
        },
        nameProperty: "name"
    },
    e
}(En);
const snt = lnt;
function unt(t, e) {
    var n = {};
    return Z(t, function(r) {
        r.each(r.mapDimension("value"), function(a, i) {
            var o = "ec-" + r.getName(i);
            n[o] = n[o] || [],
            isNaN(a) || n[o].push(a)
        })
    }),
    t[0].map(t[0].mapDimension("value"), function(r, a) {
        for (var i = "ec-" + t[0].getName(a), o = 0, l = 1 / 0, s = -1 / 0, u = n[i].length, c = 0; c < u; c++)
            l = Math.min(l, n[i][c]),
            s = Math.max(s, n[i][c]),
            o += n[i][c];
        var f;
        return e === "min" ? f = l : e === "max" ? f = s : e === "average" ? f = o / u : f = o,
        u === 0 ? NaN : f
    })
}
function cnt(t) {
    var e = {};
    t.eachSeriesByType("map", function(n) {
        var r = n.getHostGeoModel()
          , a = r ? "o" + r.id : "i" + n.getMapType();
        (e[a] = e[a] || []).push(n)
    }),
    Z(e, function(n, r) {
        for (var a = unt(Le(n, function(o) {
            return o.getData()
        }), n[0].get("mapValueCalculation")), i = 0; i < n.length; i++)
            n[i].originalData = n[i].getData();
        for (var i = 0; i < n.length; i++)
            n[i].seriesGroup = n,
            n[i].needsDrawMap = i === 0 && !n[i].getHostGeoModel(),
            n[i].setData(a.cloneShallow()),
            n[i].mainSeries = n[0]
    })
}
function fnt(t) {
    var e = {};
    t.eachSeriesByType("map", function(n) {
        var r = n.getMapType();
        if (!(n.getHostGeoModel() || e[r])) {
            var a = {};
            Z(n.seriesGroup, function(o) {
                var l = o.coordinateSystem
                  , s = o.originalData;
                o.get("showLegendSymbol") && t.getComponent("legend") && s.each(s.mapDimension("value"), function(u, c) {
                    var f = s.getName(c)
                      , d = l.getRegion(f);
                    if (!(!d || isNaN(u))) {
                        var v = a[f] || 0
                          , h = l.dataToPoint(d.getCenter());
                        a[f] = v + 1,
                        s.setItemLayout(c, {
                            point: h,
                            offset: v
                        })
                    }
                })
            });
            var i = n.getData();
            i.each(function(o) {
                var l = i.getName(o)
                  , s = i.getItemLayout(o) || {};
                s.showLabel = !a[l],
                i.setItemLayout(o, s)
            }),
            e[r] = !0
        }
    })
}
var TG = Wr
  , dnt = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this) || this;
        return r.type = "view",
        r.dimensions = ["x", "y"],
        r._roamTransformable = new es,
        r._rawTransformable = new es,
        r.name = n,
        r
    }
    return e.prototype.setBoundingRect = function(n, r, a, i) {
        return this._rect = new Dt(n,r,a,i),
        this._rect
    }
    ,
    e.prototype.getBoundingRect = function() {
        return this._rect
    }
    ,
    e.prototype.setViewRect = function(n, r, a, i) {
        this._transformTo(n, r, a, i),
        this._viewRect = new Dt(n,r,a,i)
    }
    ,
    e.prototype._transformTo = function(n, r, a, i) {
        var o = this.getBoundingRect()
          , l = this._rawTransformable;
        l.transform = o.calculateTransform(new Dt(n,r,a,i));
        var s = l.parent;
        l.parent = null,
        l.decomposeTransform(),
        l.parent = s,
        this._updateTransform()
    }
    ,
    e.prototype.setCenter = function(n, r) {
        !n || (this._center = [He(n[0], r.getWidth()), He(n[1], r.getHeight())],
        this._updateCenterAndZoom())
    }
    ,
    e.prototype.setZoom = function(n) {
        n = n || 1;
        var r = this.zoomLimit;
        r && (r.max != null && (n = Math.min(r.max, n)),
        r.min != null && (n = Math.max(r.min, n))),
        this._zoom = n,
        this._updateCenterAndZoom()
    }
    ,
    e.prototype.getDefaultCenter = function() {
        var n = this.getBoundingRect()
          , r = n.x + n.width / 2
          , a = n.y + n.height / 2;
        return [r, a]
    }
    ,
    e.prototype.getCenter = function() {
        return this._center || this.getDefaultCenter()
    }
    ,
    e.prototype.getZoom = function() {
        return this._zoom || 1
    }
    ,
    e.prototype.getRoamTransform = function() {
        return this._roamTransformable.getLocalTransform()
    }
    ,
    e.prototype._updateCenterAndZoom = function() {
        var n = this._rawTransformable.getLocalTransform()
          , r = this._roamTransformable
          , a = this.getDefaultCenter()
          , i = this.getCenter()
          , o = this.getZoom();
        i = Wr([], i, n),
        a = Wr([], a, n),
        r.originX = i[0],
        r.originY = i[1],
        r.x = a[0] - i[0],
        r.y = a[1] - i[1],
        r.scaleX = r.scaleY = o,
        this._updateTransform()
    }
    ,
    e.prototype._updateTransform = function() {
        var n = this._roamTransformable
          , r = this._rawTransformable;
        r.parent = n,
        n.updateTransform(),
        r.updateTransform(),
        Xw(this.transform || (this.transform = []), r.transform || si()),
        this._rawTransform = r.getLocalTransform(),
        this.invTransform = this.invTransform || [],
        nd(this.invTransform, this.transform),
        this.decomposeTransform()
    }
    ,
    e.prototype.getTransformInfo = function() {
        var n = this._rawTransformable
          , r = this._roamTransformable
          , a = new es;
        return a.transform = r.transform,
        a.decomposeTransform(),
        {
            roam: {
                x: a.x,
                y: a.y,
                scaleX: a.scaleX,
                scaleY: a.scaleY
            },
            raw: {
                x: n.x,
                y: n.y,
                scaleX: n.scaleX,
                scaleY: n.scaleY
            }
        }
    }
    ,
    e.prototype.getViewRect = function() {
        return this._viewRect
    }
    ,
    e.prototype.getViewRectAfterRoam = function() {
        var n = this.getBoundingRect().clone();
        return n.applyTransform(this.transform),
        n
    }
    ,
    e.prototype.dataToPoint = function(n, r, a) {
        var i = r ? this._rawTransform : this.transform;
        return a = a || [],
        i ? TG(a, n, i) : ra(a, n)
    }
    ,
    e.prototype.pointToData = function(n) {
        var r = this.invTransform;
        return r ? TG([], n, r) : [n[0], n[1]]
    }
    ,
    e.prototype.convertToPixel = function(n, r, a) {
        var i = PG(r);
        return i === this ? i.dataToPoint(a) : null
    }
    ,
    e.prototype.convertFromPixel = function(n, r, a) {
        var i = PG(r);
        return i === this ? i.pointToData(a) : null
    }
    ,
    e.prototype.containPoint = function(n) {
        return this.getViewRectAfterRoam().contain(n[0], n[1])
    }
    ,
    e.dimensions = ["x", "y"],
    e
}(es);
function PG(t) {
    var e = t.seriesModel;
    return e ? e.coordinateSystem : null
}
const cy = dnt;
var vnt = {
    geoJSON: {
        aspectScale: .75,
        invertLongitute: !0
    },
    geoSVG: {
        aspectScale: 1,
        invertLongitute: !1
    }
}
  , bue = ["lng", "lat"]
  , xue = function(t) {
    ge(e, t);
    function e(n, r, a) {
        var i = t.call(this, n) || this;
        i.dimensions = bue,
        i.type = "geo",
        i._nameCoordMap = Qe(),
        i.map = r;
        var o = a.projection
          , l = hs.load(r, a.nameMap, a.nameProperty)
          , s = hs.getGeoResource(r);
        i.resourceType = s ? s.type : null;
        var u = i.regions = l.regions
          , c = vnt[s.type];
        i._regionsMap = l.regionsMap,
        i.regions = l.regions,
        i.projection = o;
        var f;
        if (o)
            for (var d = 0; d < u.length; d++) {
                var v = u[d].getBoundingRect(o);
                f = f || v.clone(),
                f.union(v)
            }
        else
            f = l.boundingRect;
        return i.setBoundingRect(f.x, f.y, f.width, f.height),
        i.aspectScale = o ? 1 : Ot(a.aspectScale, c.aspectScale),
        i._invertLongitute = o ? !1 : c.invertLongitute,
        i
    }
    return e.prototype._transformTo = function(n, r, a, i) {
        var o = this.getBoundingRect()
          , l = this._invertLongitute;
        o = o.clone(),
        l && (o.y = -o.y - o.height);
        var s = this._rawTransformable;
        s.transform = o.calculateTransform(new Dt(n,r,a,i));
        var u = s.parent;
        s.parent = null,
        s.decomposeTransform(),
        s.parent = u,
        l && (s.scaleY = -s.scaleY),
        this._updateTransform()
    }
    ,
    e.prototype.getRegion = function(n) {
        return this._regionsMap.get(n)
    }
    ,
    e.prototype.getRegionByCoord = function(n) {
        for (var r = this.regions, a = 0; a < r.length; a++) {
            var i = r[a];
            if (i.type === "geoJSON" && i.contain(n))
                return r[a]
        }
    }
    ,
    e.prototype.addGeoCoord = function(n, r) {
        this._nameCoordMap.set(n, r)
    }
    ,
    e.prototype.getGeoCoord = function(n) {
        var r = this._regionsMap.get(n);
        return this._nameCoordMap.get(n) || r && r.getCenter()
    }
    ,
    e.prototype.dataToPoint = function(n, r, a) {
        if (Ge(n) && (n = this.getGeoCoord(n)),
        n) {
            var i = this.projection;
            return i && (n = i.project(n)),
            n && this.projectedToPoint(n, r, a)
        }
    }
    ,
    e.prototype.pointToData = function(n) {
        var r = this.projection;
        return r && (n = r.unproject(n)),
        n && this.pointToProjected(n)
    }
    ,
    e.prototype.pointToProjected = function(n) {
        return t.prototype.pointToData.call(this, n)
    }
    ,
    e.prototype.projectedToPoint = function(n, r, a) {
        return t.prototype.dataToPoint.call(this, n, r, a)
    }
    ,
    e.prototype.convertToPixel = function(n, r, a) {
        var i = MG(r);
        return i === this ? i.dataToPoint(a) : null
    }
    ,
    e.prototype.convertFromPixel = function(n, r, a) {
        var i = MG(r);
        return i === this ? i.pointToData(a) : null
    }
    ,
    e
}(cy);
ir(xue, cy);
function MG(t) {
    var e = t.geoModel
      , n = t.seriesModel;
    return e ? e.coordinateSystem : n ? n.coordinateSystem || (n.getReferringComponents("geo", mr).models[0] || {}).coordinateSystem : null
}
const AG = xue;
function IG(t, e) {
    var n = t.get("boundingCoords");
    if (n != null) {
        var r = n[0]
          , a = n[1];
        if (isFinite(r[0]) && isFinite(r[1]) && isFinite(a[0]) && isFinite(a[1])) {
            var i = this.projection;
            if (i) {
                var o = r[0]
                  , l = r[1]
                  , s = a[0]
                  , u = a[1];
                r = [1 / 0, 1 / 0],
                a = [-1 / 0, -1 / 0];
                var c = function(S, w, T, P) {
                    for (var M = T - S, A = P - w, O = 0; O <= 100; O++) {
                        var k = O / 100
                          , D = i.project([S + M * k, w + A * k]);
                        Ql(r, r, D),
                        Jl(a, a, D)
                    }
                };
                c(o, l, s, l),
                c(s, l, s, u),
                c(s, u, o, u),
                c(o, u, s, l)
            }
            this.setBoundingRect(r[0], r[1], a[0] - r[0], a[1] - r[1])
        }
    }
    var f = this.getBoundingRect(), d = t.get("layoutCenter"), v = t.get("layoutSize"), h = e.getWidth(), p = e.getHeight(), g = f.width / f.height * this.aspectScale, m = !1, y, b;
    d && v && (y = [He(d[0], h), He(d[1], p)],
    b = He(v, Math.min(h, p)),
    !isNaN(y[0]) && !isNaN(y[1]) && !isNaN(b) && (m = !0));
    var x;
    if (m)
        x = {},
        g > 1 ? (x.width = b,
        x.height = b / g) : (x.height = b,
        x.width = b * g),
        x.y = y[1] - x.height / 2,
        x.x = y[0] - x.width / 2;
    else {
        var C = t.getBoxLayoutParams();
        C.aspect = g,
        x = xr(C, {
            width: h,
            height: p
        })
    }
    this.setViewRect(x.x, x.y, x.width, x.height),
    this.setCenter(t.get("center"), e),
    this.setZoom(t.get("zoom"))
}
function hnt(t, e) {
    Z(e.get("geoCoord"), function(n, r) {
        t.addGeoCoord(r, n)
    })
}
var pnt = function() {
    function t() {
        this.dimensions = bue
    }
    return t.prototype.create = function(e, n) {
        var r = [];
        function a(o) {
            return {
                nameProperty: o.get("nameProperty"),
                aspectScale: o.get("aspectScale"),
                projection: o.get("projection")
            }
        }
        e.eachComponent("geo", function(o, l) {
            var s = o.get("map")
              , u = new AG(s + l,s,Me({
                nameMap: o.get("nameMap")
            }, a(o)));
            u.zoomLimit = o.get("scaleLimit"),
            r.push(u),
            o.coordinateSystem = u,
            u.model = o,
            u.resize = IG,
            u.resize(o, n)
        }),
        e.eachSeries(function(o) {
            var l = o.get("coordinateSystem");
            if (l === "geo") {
                var s = o.get("geoIndex") || 0;
                o.coordinateSystem = r[s]
            }
        });
        var i = {};
        return e.eachSeriesByType("map", function(o) {
            if (!o.getHostGeoModel()) {
                var l = o.getMapType();
                i[l] = i[l] || [],
                i[l].push(o)
            }
        }),
        Z(i, function(o, l) {
            var s = Le(o, function(c) {
                return c.get("nameMap")
            })
              , u = new AG(l,l,Me({
                nameMap: Uw(s)
            }, a(o[0])));
            u.zoomLimit = kr.apply(null, Le(o, function(c) {
                return c.get("scaleLimit")
            })),
            r.push(u),
            u.resize = IG,
            u.resize(o[0], n),
            Z(o, function(c) {
                c.coordinateSystem = u,
                hnt(u, c)
            })
        }),
        r
    }
    ,
    t.prototype.getFilledRegions = function(e, n, r, a) {
        for (var i = (e || []).slice(), o = Qe(), l = 0; l < i.length; l++)
            o.set(i[l].name, i[l]);
        var s = hs.load(n, r, a);
        return Z(s.regions, function(u) {
            var c = u.name;
            !o.get(c) && i.push({
                name: c
            })
        }),
        i
    }
    ,
    t
}()
  , gnt = new pnt;
const Sue = gnt;
var mnt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function(n, r, a) {
        var i = hs.getGeoResource(n.map);
        if (i && i.type === "geoJSON") {
            var o = n.itemStyle = n.itemStyle || {};
            "color"in o || (o.color = "#eee")
        }
        this.mergeDefaultAndTheme(n, a),
        Nf(n, "label", ["show"])
    }
    ,
    e.prototype.optionUpdated = function() {
        var n = this
          , r = this.option;
        r.regions = Sue.getFilledRegions(r.regions, r.map, r.nameMap, r.nameProperty);
        var a = {};
        this._optionModelMap = Hi(r.regions || [], function(i, o) {
            var l = o.name;
            return l && (i.set(l, new wn(o,n,n.ecModel)),
            o.selected && (a[l] = !0)),
            i
        }, Qe()),
        r.selectedMap || (r.selectedMap = a)
    }
    ,
    e.prototype.getRegionModel = function(n) {
        return this._optionModelMap.get(n) || new wn(null,this,this.ecModel)
    }
    ,
    e.prototype.getFormattedLabel = function(n, r) {
        var a = this.getRegionModel(n)
          , i = r === "normal" ? a.get(["label", "formatter"]) : a.get(["emphasis", "label", "formatter"])
          , o = {
            name: n
        };
        if (et(i))
            return o.status = r,
            i(o);
        if (Ge(i))
            return i.replace("{a}", n != null ? n : "")
    }
    ,
    e.prototype.setZoom = function(n) {
        this.option.zoom = n
    }
    ,
    e.prototype.setCenter = function(n) {
        this.option.center = n
    }
    ,
    e.prototype.select = function(n) {
        var r = this.option
          , a = r.selectedMode;
        if (!!a) {
            a !== "multiple" && (r.selectedMap = null);
            var i = r.selectedMap || (r.selectedMap = {});
            i[n] = !0
        }
    }
    ,
    e.prototype.unSelect = function(n) {
        var r = this.option.selectedMap;
        r && (r[n] = !1)
    }
    ,
    e.prototype.toggleSelected = function(n) {
        this[this.isSelected(n) ? "unSelect" : "select"](n)
    }
    ,
    e.prototype.isSelected = function(n) {
        var r = this.option.selectedMap;
        return !!(r && r[n])
    }
    ,
    e.type = "geo",
    e.layoutMode = "box",
    e.defaultOption = {
        z: 0,
        show: !0,
        left: "center",
        top: "center",
        aspectScale: null,
        silent: !1,
        map: "",
        boundingCoords: null,
        center: null,
        zoom: 1,
        scaleLimit: null,
        label: {
            show: !1,
            color: "#000"
        },
        itemStyle: {
            borderWidth: .5,
            borderColor: "#444"
        },
        emphasis: {
            label: {
                show: !0,
                color: "rgb(100,0,0)"
            },
            itemStyle: {
                color: "rgba(255,215,0,0.8)"
            }
        },
        select: {
            label: {
                show: !0,
                color: "rgb(100,0,0)"
            },
            itemStyle: {
                color: "rgba(255,215,0,0.8)"
            }
        },
        regions: []
    },
    e
}(qt);
const ynt = mnt;
function kG(t, e) {
    return t.pointToProjected ? t.pointToProjected(e) : t.pointToData(e)
}
function q5(t, e, n, r) {
    var a = t.getZoom()
      , i = t.getCenter()
      , o = e.zoom
      , l = t.projectedToPoint ? t.projectedToPoint(i) : t.dataToPoint(i);
    if (e.dx != null && e.dy != null && (l[0] -= e.dx,
    l[1] -= e.dy,
    t.setCenter(kG(t, l), r)),
    o != null) {
        if (n) {
            var s = n.min || 0
              , u = n.max || 1 / 0;
            o = Math.max(Math.min(a * o, u), s) / a
        }
        t.scaleX *= o,
        t.scaleY *= o;
        var c = (e.originX - t.x) * (o - 1)
          , f = (e.originY - t.y) * (o - 1);
        t.x -= c,
        t.y -= f,
        t.updateTransform(),
        t.setCenter(kG(t, l), r),
        t.setZoom(o * a)
    }
    return {
        center: t.getCenter(),
        zoom: t.getZoom()
    }
}
var bnt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.focusBlurEnabled = !0,
        n
    }
    return e.prototype.init = function(n, r) {
        this._api = r
    }
    ,
    e.prototype.render = function(n, r, a, i) {
        if (this._model = n,
        !n.get("show")) {
            this._mapDraw && this._mapDraw.remove(),
            this._mapDraw = null;
            return
        }
        this._mapDraw || (this._mapDraw = new yue(a));
        var o = this._mapDraw;
        o.draw(n, r, a, this, i),
        o.group.on("click", this._handleRegionClick, this),
        o.group.silent = n.get("silent"),
        this.group.add(o.group),
        this.updateSelectStatus(n, r, a)
    }
    ,
    e.prototype._handleRegionClick = function(n) {
        var r;
        of(n.target, function(a) {
            return (r = Ct(a).eventData) != null
        }, !0),
        r && this._api.dispatchAction({
            type: "geoToggleSelect",
            geoId: this._model.id,
            name: r.name
        })
    }
    ,
    e.prototype.updateSelectStatus = function(n, r, a) {
        var i = this;
        this._mapDraw.group.traverse(function(o) {
            var l = Ct(o).eventData;
            if (l)
                return i._model.isSelected(l.name) ? a.enterSelect(o) : a.leaveSelect(o),
                !0
        })
    }
    ,
    e.prototype.findHighDownDispatchers = function(n) {
        return this._mapDraw && this._mapDraw.findHighDownDispatchers(n, this._model)
    }
    ,
    e.prototype.dispose = function() {
        this._mapDraw && this._mapDraw.remove()
    }
    ,
    e.type = "geo",
    e
}(Bn);
const xnt = bnt;
function Snt(t, e, n) {
    hs.registerMap(t, e, n)
}
function Cue(t) {
    t.registerCoordinateSystem("geo", Sue),
    t.registerComponentModel(ynt),
    t.registerComponentView(xnt),
    t.registerImpl("registerMap", Snt),
    t.registerImpl("getMap", function(n) {
        return hs.getMapForUser(n)
    });
    function e(n, r) {
        r.update = "geo:updateSelectStatus",
        t.registerAction(r, function(a, i) {
            var o = {}
              , l = [];
            return i.eachComponent({
                mainType: "geo",
                query: a
            }, function(s) {
                s[n](a.name);
                var u = s.coordinateSystem;
                Z(u.regions, function(f) {
                    o[f.name] = s.isSelected(f.name) || !1
                });
                var c = [];
                Z(o, function(f, d) {
                    o[d] && c.push(d)
                }),
                l.push({
                    geoIndex: s.componentIndex,
                    name: c
                })
            }),
            {
                selected: o,
                allSelected: l,
                name: a.name
            }
        })
    }
    e("toggleSelected", {
        type: "geoToggleSelect",
        event: "geoselectchanged"
    }),
    e("select", {
        type: "geoSelect",
        event: "geoselected"
    }),
    e("unSelect", {
        type: "geoUnSelect",
        event: "geounselected"
    }),
    t.registerAction({
        type: "geoRoam",
        event: "geoRoam",
        update: "updateTransform"
    }, function(n, r, a) {
        var i = n.componentType || "series";
        r.eachComponent({
            mainType: i,
            query: n
        }, function(o) {
            var l = o.coordinateSystem;
            if (l.type === "geo") {
                var s = q5(l, n, o.get("scaleLimit"), a);
                o.setCenter && o.setCenter(s.center),
                o.setZoom && o.setZoom(s.zoom),
                i === "series" && Z(o.seriesGroup, function(u) {
                    u.setCenter(s.center),
                    u.setZoom(s.zoom)
                })
            }
        })
    })
}
function Cnt(t) {
    Bt(Cue),
    t.registerChartView(ont),
    t.registerSeriesModel(snt),
    t.registerLayout(fnt),
    t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, cnt),
    mle("map", t.registerAction)
}
function wnt(t) {
    var e = t;
    e.hierNode = {
        defaultAncestor: null,
        ancestor: e,
        prelim: 0,
        modifier: 0,
        change: 0,
        shift: 0,
        i: 0,
        thread: null
    };
    for (var n = [e], r, a; r = n.pop(); )
        if (a = r.children,
        r.isExpand && a.length)
            for (var i = a.length, o = i - 1; o >= 0; o--) {
                var l = a[o];
                l.hierNode = {
                    defaultAncestor: null,
                    ancestor: l,
                    prelim: 0,
                    modifier: 0,
                    change: 0,
                    shift: 0,
                    i: o,
                    thread: null
                },
                n.push(l)
            }
}
function _nt(t, e) {
    var n = t.isExpand ? t.children : []
      , r = t.parentNode.children
      , a = t.hierNode.i ? r[t.hierNode.i - 1] : null;
    if (n.length) {
        Mnt(t);
        var i = (n[0].hierNode.prelim + n[n.length - 1].hierNode.prelim) / 2;
        a ? (t.hierNode.prelim = a.hierNode.prelim + e(t, a),
        t.hierNode.modifier = t.hierNode.prelim - i) : t.hierNode.prelim = i
    } else
        a && (t.hierNode.prelim = a.hierNode.prelim + e(t, a));
    t.parentNode.hierNode.defaultAncestor = Ant(t, a, t.parentNode.hierNode.defaultAncestor || r[0], e)
}
function Tnt(t) {
    var e = t.hierNode.prelim + t.parentNode.hierNode.modifier;
    t.setLayout({
        x: e
    }, !0),
    t.hierNode.modifier += t.parentNode.hierNode.modifier
}
function OG(t) {
    return arguments.length ? t : Ont
}
function tg(t, e) {
    return t -= Math.PI / 2,
    {
        x: e * Math.cos(t),
        y: e * Math.sin(t)
    }
}
function Pnt(t, e) {
    return xr(t.getBoxLayoutParams(), {
        width: e.getWidth(),
        height: e.getHeight()
    })
}
function Mnt(t) {
    for (var e = t.children, n = e.length, r = 0, a = 0; --n >= 0; ) {
        var i = e[n];
        i.hierNode.prelim += r,
        i.hierNode.modifier += r,
        a += i.hierNode.change,
        r += i.hierNode.shift + a
    }
}
function Ant(t, e, n, r) {
    if (e) {
        for (var a = t, i = t, o = i.parentNode.children[0], l = e, s = a.hierNode.modifier, u = i.hierNode.modifier, c = o.hierNode.modifier, f = l.hierNode.modifier; l = I4(l),
        i = k4(i),
        l && i; ) {
            a = I4(a),
            o = k4(o),
            a.hierNode.ancestor = t;
            var d = l.hierNode.prelim + f - i.hierNode.prelim - u + r(l, i);
            d > 0 && (knt(Int(l, t, n), t, d),
            u += d,
            s += d),
            f += l.hierNode.modifier,
            u += i.hierNode.modifier,
            s += a.hierNode.modifier,
            c += o.hierNode.modifier
        }
        l && !I4(a) && (a.hierNode.thread = l,
        a.hierNode.modifier += f - s),
        i && !k4(o) && (o.hierNode.thread = i,
        o.hierNode.modifier += u - c,
        n = t)
    }
    return n
}
function I4(t) {
    var e = t.children;
    return e.length && t.isExpand ? e[e.length - 1] : t.hierNode.thread
}
function k4(t) {
    var e = t.children;
    return e.length && t.isExpand ? e[0] : t.hierNode.thread
}
function Int(t, e, n) {
    return t.hierNode.ancestor.parentNode === e.parentNode ? t.hierNode.ancestor : n
}
function knt(t, e, n) {
    var r = n / (e.hierNode.i - t.hierNode.i);
    e.hierNode.change -= r,
    e.hierNode.shift += n,
    e.hierNode.modifier += n,
    e.hierNode.prelim += n,
    t.hierNode.change += r
}
function Ont(t, e) {
    return t.parentNode === e.parentNode ? 1 : 2
}
var Dnt = function() {
    function t() {
        this.parentPoint = [],
        this.childPoints = []
    }
    return t
}()
  , Ent = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultStyle = function() {
        return {
            stroke: "#000",
            fill: null
        }
    }
    ,
    e.prototype.getDefaultShape = function() {
        return new Dnt
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.childPoints
          , i = a.length
          , o = r.parentPoint
          , l = a[0]
          , s = a[i - 1];
        if (i === 1) {
            n.moveTo(o[0], o[1]),
            n.lineTo(l[0], l[1]);
            return
        }
        var u = r.orient
          , c = u === "TB" || u === "BT" ? 0 : 1
          , f = 1 - c
          , d = He(r.forkPosition, 1)
          , v = [];
        v[c] = o[c],
        v[f] = o[f] + (s[f] - o[f]) * d,
        n.moveTo(o[0], o[1]),
        n.lineTo(v[0], v[1]),
        n.moveTo(l[0], l[1]),
        v[c] = l[c],
        n.lineTo(v[0], v[1]),
        v[c] = s[c],
        n.lineTo(v[0], v[1]),
        n.lineTo(s[0], s[1]);
        for (var h = 1; h < i - 1; h++) {
            var p = a[h];
            n.moveTo(p[0], p[1]),
            v[c] = p[c],
            n.lineTo(v[0], v[1])
        }
    }
    ,
    e
}(jt)
  , Lnt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n._mainGroup = new mt,
        n
    }
    return e.prototype.init = function(n, r) {
        this._controller = new uy(r.getZr()),
        this._controllerHost = {
            target: this.group
        },
        this.group.add(this._mainGroup)
    }
    ,
    e.prototype.render = function(n, r, a) {
        var i = n.getData()
          , o = n.layoutInfo
          , l = this._mainGroup
          , s = n.get("layout");
        s === "radial" ? (l.x = o.x + o.width / 2,
        l.y = o.y + o.height / 2) : (l.x = o.x,
        l.y = o.y),
        this._updateViewCoordSys(n, a),
        this._updateController(n, r, a);
        var u = this._data;
        i.diff(u).add(function(c) {
            DG(i, c) && EG(i, c, null, l, n)
        }).update(function(c, f) {
            var d = u.getItemGraphicEl(f);
            if (!DG(i, c)) {
                d && RG(u, f, d, l, n);
                return
            }
            EG(i, c, d, l, n)
        }).remove(function(c) {
            var f = u.getItemGraphicEl(c);
            f && RG(u, c, f, l, n)
        }).execute(),
        this._nodeScaleRatio = n.get("nodeScaleRatio"),
        this._updateNodeAndLinkScale(n),
        n.get("expandAndCollapse") === !0 && i.eachItemGraphicEl(function(c, f) {
            c.off("click").on("click", function() {
                a.dispatchAction({
                    type: "treeExpandAndCollapse",
                    seriesId: n.id,
                    dataIndex: f
                })
            })
        }),
        this._data = i
    }
    ,
    e.prototype._updateViewCoordSys = function(n, r) {
        var a = n.getData()
          , i = [];
        a.each(function(f) {
            var d = a.getItemLayout(f);
            d && !isNaN(d.x) && !isNaN(d.y) && i.push([+d.x, +d.y])
        });
        var o = []
          , l = [];
        a2(i, o, l);
        var s = this._min
          , u = this._max;
        l[0] - o[0] === 0 && (o[0] = s ? s[0] : o[0] - 1,
        l[0] = u ? u[0] : l[0] + 1),
        l[1] - o[1] === 0 && (o[1] = s ? s[1] : o[1] - 1,
        l[1] = u ? u[1] : l[1] + 1);
        var c = n.coordinateSystem = new cy;
        c.zoomLimit = n.get("scaleLimit"),
        c.setBoundingRect(o[0], o[1], l[0] - o[0], l[1] - o[1]),
        c.setCenter(n.get("center"), r),
        c.setZoom(n.get("zoom")),
        this.group.attr({
            x: c.x,
            y: c.y,
            scaleX: c.scaleX,
            scaleY: c.scaleY
        }),
        this._min = o,
        this._max = l
    }
    ,
    e.prototype._updateController = function(n, r, a) {
        var i = this
          , o = this._controller
          , l = this._controllerHost
          , s = this.group;
        o.setPointerChecker(function(u, c, f) {
            var d = s.getBoundingRect();
            return d.applyTransform(s.transform),
            d.contain(c, f) && !I2(u, a, n)
        }),
        o.enable(n.get("roam")),
        l.zoomLimit = n.get("scaleLimit"),
        l.zoom = n.coordinateSystem.getZoom(),
        o.off("pan").off("zoom").on("pan", function(u) {
            K5(l, u.dx, u.dy),
            a.dispatchAction({
                seriesId: n.id,
                type: "treeRoam",
                dx: u.dx,
                dy: u.dy
            })
        }).on("zoom", function(u) {
            U5(l, u.scale, u.originX, u.originY),
            a.dispatchAction({
                seriesId: n.id,
                type: "treeRoam",
                zoom: u.scale,
                originX: u.originX,
                originY: u.originY
            }),
            i._updateNodeAndLinkScale(n),
            a.updateLabelLayout()
        })
    }
    ,
    e.prototype._updateNodeAndLinkScale = function(n) {
        var r = n.getData()
          , a = this._getNodeGlobalScale(n);
        r.eachItemGraphicEl(function(i, o) {
            i.setSymbolScale(a)
        })
    }
    ,
    e.prototype._getNodeGlobalScale = function(n) {
        var r = n.coordinateSystem;
        if (r.type !== "view")
            return 1;
        var a = this._nodeScaleRatio
          , i = r.scaleX || 1
          , o = r.getZoom()
          , l = (o - 1) * a + 1;
        return l / i
    }
    ,
    e.prototype.dispose = function() {
        this._controller && this._controller.dispose(),
        this._controllerHost = null
    }
    ,
    e.prototype.remove = function() {
        this._mainGroup.removeAll(),
        this._data = null
    }
    ,
    e.type = "tree",
    e
}(Tn);
function DG(t, e) {
    var n = t.getItemLayout(e);
    return n && !isNaN(n.x) && !isNaN(n.y)
}
function EG(t, e, n, r, a) {
    var i = !n
      , o = t.tree.getNodeByDataIndex(e)
      , l = o.getModel()
      , s = o.getVisual("style").fill
      , u = o.isExpand === !1 && o.children.length !== 0 ? s : "#fff"
      , c = t.tree.root
      , f = o.parentNode === c ? o : o.parentNode || o
      , d = t.getItemGraphicEl(f.dataIndex)
      , v = f.getLayout()
      , h = d ? {
        x: d.__oldX,
        y: d.__oldY,
        rawX: d.__radialOldRawX,
        rawY: d.__radialOldRawY
    } : v
      , p = o.getLayout();
    i ? (n = new ay(t,e,null,{
        symbolInnerColor: u,
        useNameLabel: !0
    }),
    n.x = h.x,
    n.y = h.y) : n.updateData(t, e, null, {
        symbolInnerColor: u,
        useNameLabel: !0
    }),
    n.__radialOldRawX = n.__radialRawX,
    n.__radialOldRawY = n.__radialRawY,
    n.__radialRawX = p.rawX,
    n.__radialRawY = p.rawY,
    r.add(n),
    t.setItemGraphicEl(e, n),
    n.__oldX = n.x,
    n.__oldY = n.y,
    ln(n, {
        x: p.x,
        y: p.y
    }, a);
    var g = n.getSymbolPath();
    if (a.get("layout") === "radial") {
        var m = c.children[0]
          , y = m.getLayout()
          , b = m.children.length
          , x = void 0
          , C = void 0;
        if (p.x === y.x && o.isExpand === !0 && m.children.length) {
            var S = {
                x: (m.children[0].getLayout().x + m.children[b - 1].getLayout().x) / 2,
                y: (m.children[0].getLayout().y + m.children[b - 1].getLayout().y) / 2
            };
            x = Math.atan2(S.y - y.y, S.x - y.x),
            x < 0 && (x = Math.PI * 2 + x),
            C = S.x < y.x,
            C && (x = x - Math.PI)
        } else
            x = Math.atan2(p.y - y.y, p.x - y.x),
            x < 0 && (x = Math.PI * 2 + x),
            o.children.length === 0 || o.children.length !== 0 && o.isExpand === !1 ? (C = p.x < y.x,
            C && (x = x - Math.PI)) : (C = p.x > y.x,
            C || (x = x - Math.PI));
        var w = C ? "left" : "right"
          , T = l.getModel("label")
          , P = T.get("rotate")
          , M = P * (Math.PI / 180)
          , A = g.getTextContent();
        A && (g.setTextConfig({
            position: T.get("position") || w,
            rotation: P == null ? -x : M,
            origin: "center"
        }),
        A.setStyle("verticalAlign", "middle"))
    }
    var O = l.get(["emphasis", "focus"])
      , k = O === "relative" ? k0(o.getAncestorsIndices(), o.getDescendantIndices()) : O === "ancestor" ? o.getAncestorsIndices() : O === "descendant" ? o.getDescendantIndices() : null;
    k && (Ct(n).focus = k),
    Rnt(a, o, c, n, h, v, p, r),
    n.__edge && (n.onHoverStateChange = function(D) {
        if (D !== "blur") {
            var E = o.parentNode && t.getItemGraphicEl(o.parentNode.dataIndex);
            E && E.hoverState === Ym || IS(n.__edge, D)
        }
    }
    )
}
function Rnt(t, e, n, r, a, i, o, l) {
    var s = e.getModel()
      , u = t.get("edgeShape")
      , c = t.get("layout")
      , f = t.getOrient()
      , d = t.get(["lineStyle", "curveness"])
      , v = t.get("edgeForkPosition")
      , h = s.getModel("lineStyle").getLineStyle()
      , p = r.__edge;
    if (u === "curve")
        e.parentNode && e.parentNode !== n && (p || (p = r.__edge = new Xm({
            shape: lk(c, f, d, a, a)
        })),
        ln(p, {
            shape: lk(c, f, d, i, o)
        }, t));
    else if (u === "polyline" && c === "orthogonal" && e !== n && e.children && e.children.length !== 0 && e.isExpand === !0) {
        for (var g = e.children, m = [], y = 0; y < g.length; y++) {
            var b = g[y].getLayout();
            m.push([b.x, b.y])
        }
        p || (p = r.__edge = new Ent({
            shape: {
                parentPoint: [o.x, o.y],
                childPoints: [[o.x, o.y]],
                orient: f,
                forkPosition: v
            }
        })),
        ln(p, {
            shape: {
                parentPoint: [o.x, o.y],
                childPoints: m
            }
        }, t)
    }
    p && !(u === "polyline" && !e.isExpand) && (p.useStyle(ot({
        strokeNoScale: !0,
        fill: null
    }, h)),
    Jr(p, s, "lineStyle"),
    Bf(p),
    l.add(p))
}
function LG(t, e, n, r, a) {
    var i = e.tree.root
      , o = wue(i, t)
      , l = o.source
      , s = o.sourceLayout
      , u = e.getItemGraphicEl(t.dataIndex);
    if (!!u) {
        var c = e.getItemGraphicEl(l.dataIndex)
          , f = c.__edge
          , d = u.__edge || (l.isExpand === !1 || l.children.length === 1 ? f : void 0)
          , v = r.get("edgeShape")
          , h = r.get("layout")
          , p = r.get("orient")
          , g = r.get(["lineStyle", "curveness"]);
        d && (v === "curve" ? Du(d, {
            shape: lk(h, p, g, s, s),
            style: {
                opacity: 0
            }
        }, r, {
            cb: function() {
                n.remove(d)
            },
            removeOpt: a
        }) : v === "polyline" && r.get("layout") === "orthogonal" && Du(d, {
            shape: {
                parentPoint: [s.x, s.y],
                childPoints: [[s.x, s.y]]
            },
            style: {
                opacity: 0
            }
        }, r, {
            cb: function() {
                n.remove(d)
            },
            removeOpt: a
        }))
    }
}
function wue(t, e) {
    for (var n = e.parentNode === t ? e : e.parentNode || e, r; r = n.getLayout(),
    r == null; )
        n = n.parentNode === t ? n : n.parentNode || n;
    return {
        source: n,
        sourceLayout: r
    }
}
function RG(t, e, n, r, a) {
    var i = t.tree.getNodeByDataIndex(e)
      , o = t.tree.root
      , l = wue(o, i).sourceLayout
      , s = {
        duration: a.get("animationDurationUpdate"),
        easing: a.get("animationEasingUpdate")
    };
    Du(n, {
        x: l.x + 1,
        y: l.y + 1
    }, a, {
        cb: function() {
            r.remove(n),
            t.setItemGraphicEl(e, null)
        },
        removeOpt: s
    }),
    n.fadeOut(null, t.hostModel, {
        fadeLabel: !0,
        animation: s
    }),
    i.children.forEach(function(u) {
        LG(u, t, r, a, s)
    }),
    LG(i, t, r, a, s)
}
function lk(t, e, n, r, a) {
    var i, o, l, s, u, c, f, d;
    if (t === "radial") {
        u = r.rawX,
        f = r.rawY,
        c = a.rawX,
        d = a.rawY;
        var v = tg(u, f)
          , h = tg(u, f + (d - f) * n)
          , p = tg(c, d + (f - d) * n)
          , g = tg(c, d);
        return {
            x1: v.x || 0,
            y1: v.y || 0,
            x2: g.x || 0,
            y2: g.y || 0,
            cpx1: h.x || 0,
            cpy1: h.y || 0,
            cpx2: p.x || 0,
            cpy2: p.y || 0
        }
    } else
        u = r.x,
        f = r.y,
        c = a.x,
        d = a.y,
        (e === "LR" || e === "RL") && (i = u + (c - u) * n,
        o = f,
        l = c + (u - c) * n,
        s = d),
        (e === "TB" || e === "BT") && (i = u,
        o = f + (d - f) * n,
        l = c,
        s = d + (f - d) * n);
    return {
        x1: u,
        y1: f,
        x2: c,
        y2: d,
        cpx1: i,
        cpy1: o,
        cpx2: l,
        cpy2: s
    }
}
const Nnt = Lnt;
var $i = an();
function _ue(t) {
    var e = t.mainData
      , n = t.datas;
    n || (n = {
        main: e
    },
    t.datasAttr = {
        main: "data"
    }),
    t.datas = t.mainData = null,
    Tue(e, n, t),
    Z(n, function(r) {
        Z(e.TRANSFERABLE_METHODS, function(a) {
            r.wrapMethod(a, St($nt, t))
        })
    }),
    e.wrapMethod("cloneShallow", St(Bnt, t)),
    Z(e.CHANGABLE_METHODS, function(r) {
        e.wrapMethod(r, St(Fnt, t))
    }),
    la(n[e.dataType] === e)
}
function $nt(t, e) {
    if (Hnt(this)) {
        var n = Me({}, $i(this).datas);
        n[this.dataType] = e,
        Tue(e, n, t)
    } else
        X5(e, this.dataType, $i(this).mainData, t);
    return e
}
function Fnt(t, e) {
    return t.struct && t.struct.update(),
    e
}
function Bnt(t, e) {
    return Z($i(e).datas, function(n, r) {
        n !== e && X5(n.cloneShallow(), r, e, t)
    }),
    e
}
function Vnt(t) {
    var e = $i(this).mainData;
    return t == null || e == null ? e : $i(e).datas[t]
}
function znt() {
    var t = $i(this).mainData;
    return t == null ? [{
        data: t
    }] : Le(Gt($i(t).datas), function(e) {
        return {
            type: e,
            data: $i(t).datas[e]
        }
    })
}
function Hnt(t) {
    return $i(t).mainData === t
}
function Tue(t, e, n) {
    $i(t).datas = {},
    Z(e, function(r, a) {
        X5(r, a, t, n)
    })
}
function X5(t, e, n, r) {
    $i(n).datas[e] = t,
    $i(t).mainData = n,
    t.dataType = e,
    r.struct && (t[r.structAttr] = r.struct,
    r.struct[r.datasAttr[e]] = t),
    t.getLinkedData = Vnt,
    t.getLinkedDataAll = znt
}
var jnt = function() {
    function t(e, n) {
        this.depth = 0,
        this.height = 0,
        this.dataIndex = -1,
        this.children = [],
        this.viewChildren = [],
        this.isExpand = !1,
        this.name = e || "",
        this.hostTree = n
    }
    return t.prototype.isRemoved = function() {
        return this.dataIndex < 0
    }
    ,
    t.prototype.eachNode = function(e, n, r) {
        et(e) && (r = n,
        n = e,
        e = null),
        e = e || {},
        Ge(e) && (e = {
            order: e
        });
        var a = e.order || "preorder", i = this[e.attr || "children"], o;
        a === "preorder" && (o = n.call(r, this));
        for (var l = 0; !o && l < i.length; l++)
            i[l].eachNode(e, n, r);
        a === "postorder" && n.call(r, this)
    }
    ,
    t.prototype.updateDepthAndHeight = function(e) {
        var n = 0;
        this.depth = e;
        for (var r = 0; r < this.children.length; r++) {
            var a = this.children[r];
            a.updateDepthAndHeight(e + 1),
            a.height > n && (n = a.height)
        }
        this.height = n + 1
    }
    ,
    t.prototype.getNodeById = function(e) {
        if (this.getId() === e)
            return this;
        for (var n = 0, r = this.children, a = r.length; n < a; n++) {
            var i = r[n].getNodeById(e);
            if (i)
                return i
        }
    }
    ,
    t.prototype.contains = function(e) {
        if (e === this)
            return !0;
        for (var n = 0, r = this.children, a = r.length; n < a; n++) {
            var i = r[n].contains(e);
            if (i)
                return i
        }
    }
    ,
    t.prototype.getAncestors = function(e) {
        for (var n = [], r = e ? this : this.parentNode; r; )
            n.push(r),
            r = r.parentNode;
        return n.reverse(),
        n
    }
    ,
    t.prototype.getAncestorsIndices = function() {
        for (var e = [], n = this; n; )
            e.push(n.dataIndex),
            n = n.parentNode;
        return e.reverse(),
        e
    }
    ,
    t.prototype.getDescendantIndices = function() {
        var e = [];
        return this.eachNode(function(n) {
            e.push(n.dataIndex)
        }),
        e
    }
    ,
    t.prototype.getValue = function(e) {
        var n = this.hostTree.data;
        return n.getStore().get(n.getDimensionIndex(e || "value"), this.dataIndex)
    }
    ,
    t.prototype.setLayout = function(e, n) {
        this.dataIndex >= 0 && this.hostTree.data.setItemLayout(this.dataIndex, e, n)
    }
    ,
    t.prototype.getLayout = function() {
        return this.hostTree.data.getItemLayout(this.dataIndex)
    }
    ,
    t.prototype.getModel = function(e) {
        if (!(this.dataIndex < 0)) {
            var n = this.hostTree
              , r = n.data.getItemModel(this.dataIndex);
            return r.getModel(e)
        }
    }
    ,
    t.prototype.getLevelModel = function() {
        return (this.hostTree.levelModels || [])[this.depth]
    }
    ,
    t.prototype.setVisual = function(e, n) {
        this.dataIndex >= 0 && this.hostTree.data.setItemVisual(this.dataIndex, e, n)
    }
    ,
    t.prototype.getVisual = function(e) {
        return this.hostTree.data.getItemVisual(this.dataIndex, e)
    }
    ,
    t.prototype.getRawIndex = function() {
        return this.hostTree.data.getRawIndex(this.dataIndex)
    }
    ,
    t.prototype.getId = function() {
        return this.hostTree.data.getId(this.dataIndex)
    }
    ,
    t.prototype.getChildIndex = function() {
        if (this.parentNode) {
            for (var e = this.parentNode.children, n = 0; n < e.length; ++n)
                if (e[n] === this)
                    return n;
            return -1
        }
        return -1
    }
    ,
    t.prototype.isAncestorOf = function(e) {
        for (var n = e.parentNode; n; ) {
            if (n === this)
                return !0;
            n = n.parentNode
        }
        return !1
    }
    ,
    t.prototype.isDescendantOf = function(e) {
        return e !== this && e.isAncestorOf(this)
    }
    ,
    t
}()
  , Wnt = function() {
    function t(e) {
        this.type = "tree",
        this._nodes = [],
        this.hostModel = e
    }
    return t.prototype.eachNode = function(e, n, r) {
        this.root.eachNode(e, n, r)
    }
    ,
    t.prototype.getNodeByDataIndex = function(e) {
        var n = this.data.getRawIndex(e);
        return this._nodes[n]
    }
    ,
    t.prototype.getNodeById = function(e) {
        return this.root.getNodeById(e)
    }
    ,
    t.prototype.update = function() {
        for (var e = this.data, n = this._nodes, r = 0, a = n.length; r < a; r++)
            n[r].dataIndex = -1;
        for (var r = 0, a = e.count(); r < a; r++)
            n[e.getRawIndex(r)].dataIndex = r
    }
    ,
    t.prototype.clearLayouts = function() {
        this.data.clearItemLayouts()
    }
    ,
    t.createTree = function(e, n, r) {
        var a = new t(n)
          , i = []
          , o = 1;
        l(e);
        function l(c, f) {
            var d = c.value;
            o = Math.max(o, ke(d) ? d.length : 1),
            i.push(c);
            var v = new jnt(_r(c.name, ""),a);
            f ? Gnt(v, f) : a.root = v,
            a._nodes.push(v);
            var h = c.children;
            if (h)
                for (var p = 0; p < h.length; p++)
                    l(h[p], v)
        }
        a.root.updateDepthAndHeight(0);
        var s = Vh(i, {
            coordDimensions: ["value"],
            dimensionsCount: o
        }).dimensions
          , u = new oa(s,n);
        return u.initData(i),
        r && r(u),
        _ue({
            mainData: u,
            struct: a,
            structAttr: "tree"
        }),
        a.update(),
        a
    }
    ,
    t
}();
function Gnt(t, e) {
    var n = e.children;
    t.parentNode !== e && (n.push(t),
    t.parentNode = e)
}
const Z5 = Wnt;
function em(t, e, n) {
    if (t && Rt(e, t.type) >= 0) {
        var r = n.getData().tree.root
          , a = t.targetNode;
        if (Ge(a) && (a = r.getNodeById(a)),
        a && r.contains(a))
            return {
                node: a
            };
        var i = t.targetNodeId;
        if (i != null && (a = r.getNodeById(i)))
            return {
                node: a
            }
    }
}
function Pue(t) {
    for (var e = []; t; )
        t = t.parentNode,
        t && e.push(t);
    return e.reverse()
}
function Q5(t, e) {
    var n = Pue(t);
    return Rt(n, e) >= 0
}
function O2(t, e) {
    for (var n = []; t; ) {
        var r = t.dataIndex;
        n.push({
            name: t.name,
            dataIndex: r,
            value: e.getRawValue(r)
        }),
        t = t.parentNode
    }
    return n.reverse(),
    n
}
var Knt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.hasSymbolVisual = !0,
        n.ignoreStyleOnData = !0,
        n
    }
    return e.prototype.getInitialData = function(n) {
        var r = {
            name: n.name,
            children: n.data
        }
          , a = n.leaves || {}
          , i = new wn(a,this,this.ecModel)
          , o = Z5.createTree(r, this, l);
        function l(f) {
            f.wrapMethod("getItemModel", function(d, v) {
                var h = o.getNodeByDataIndex(v);
                return h && h.children.length && h.isExpand || (d.parentModel = i),
                d
            })
        }
        var s = 0;
        o.eachNode("preorder", function(f) {
            f.depth > s && (s = f.depth)
        });
        var u = n.expandAndCollapse
          , c = u && n.initialTreeDepth >= 0 ? n.initialTreeDepth : s;
        return o.root.eachNode("preorder", function(f) {
            var d = f.hostTree.data.getRawDataItem(f.dataIndex);
            f.isExpand = d && d.collapsed != null ? !d.collapsed : f.depth <= c
        }),
        o.data
    }
    ,
    e.prototype.getOrient = function() {
        var n = this.get("orient");
        return n === "horizontal" ? n = "LR" : n === "vertical" && (n = "TB"),
        n
    }
    ,
    e.prototype.setZoom = function(n) {
        this.option.zoom = n
    }
    ,
    e.prototype.setCenter = function(n) {
        this.option.center = n
    }
    ,
    e.prototype.formatTooltip = function(n, r, a) {
        for (var i = this.getData().tree, o = i.root.children[0], l = i.getNodeByDataIndex(n), s = l.getValue(), u = l.name; l && l !== o; )
            u = l.parentNode.name + "." + u,
            l = l.parentNode;
        return $r("nameValue", {
            name: u,
            value: s,
            noValue: isNaN(s) || s == null
        })
    }
    ,
    e.prototype.getDataParams = function(n) {
        var r = t.prototype.getDataParams.apply(this, arguments)
          , a = this.getData().tree.getNodeByDataIndex(n);
        return r.treeAncestors = O2(a, this),
        r.collapsed = !a.isExpand,
        r
    }
    ,
    e.type = "series.tree",
    e.layoutMode = "box",
    e.defaultOption = {
        z: 2,
        coordinateSystem: "view",
        left: "12%",
        top: "12%",
        right: "12%",
        bottom: "12%",
        layout: "orthogonal",
        edgeShape: "curve",
        edgeForkPosition: "50%",
        roam: !1,
        nodeScaleRatio: .4,
        center: null,
        zoom: 1,
        orient: "LR",
        symbol: "emptyCircle",
        symbolSize: 7,
        expandAndCollapse: !0,
        initialTreeDepth: 2,
        lineStyle: {
            color: "#ccc",
            width: 1.5,
            curveness: .5
        },
        itemStyle: {
            color: "lightsteelblue",
            borderWidth: 1.5
        },
        label: {
            show: !0
        },
        animationEasing: "linear",
        animationDuration: 700,
        animationDurationUpdate: 500
    },
    e
}(En);
const Unt = Knt;
function Ynt(t, e, n) {
    for (var r = [t], a = [], i; i = r.pop(); )
        if (a.push(i),
        i.isExpand) {
            var o = i.children;
            if (o.length)
                for (var l = 0; l < o.length; l++)
                    r.push(o[l])
        }
    for (; i = a.pop(); )
        e(i, n)
}
function kp(t, e) {
    for (var n = [t], r; r = n.pop(); )
        if (e(r),
        r.isExpand) {
            var a = r.children;
            if (a.length)
                for (var i = a.length - 1; i >= 0; i--)
                    n.push(a[i])
        }
}
function qnt(t, e) {
    t.eachSeriesByType("tree", function(n) {
        Xnt(n, e)
    })
}
function Xnt(t, e) {
    var n = Pnt(t, e);
    t.layoutInfo = n;
    var r = t.get("layout")
      , a = 0
      , i = 0
      , o = null;
    r === "radial" ? (a = 2 * Math.PI,
    i = Math.min(n.height, n.width) / 2,
    o = OG(function(b, x) {
        return (b.parentNode === x.parentNode ? 1 : 2) / b.depth
    })) : (a = n.width,
    i = n.height,
    o = OG());
    var l = t.getData().tree.root
      , s = l.children[0];
    if (s) {
        wnt(l),
        Ynt(s, _nt, o),
        l.hierNode.modifier = -s.hierNode.prelim,
        kp(s, Tnt);
        var u = s
          , c = s
          , f = s;
        kp(s, function(b) {
            var x = b.getLayout().x;
            x < u.getLayout().x && (u = b),
            x > c.getLayout().x && (c = b),
            b.depth > f.depth && (f = b)
        });
        var d = u === c ? 1 : o(u, c) / 2
          , v = d - u.getLayout().x
          , h = 0
          , p = 0
          , g = 0
          , m = 0;
        if (r === "radial")
            h = a / (c.getLayout().x + d + v),
            p = i / (f.depth - 1 || 1),
            kp(s, function(b) {
                g = (b.getLayout().x + v) * h,
                m = (b.depth - 1) * p;
                var x = tg(g, m);
                b.setLayout({
                    x: x.x,
                    y: x.y,
                    rawX: g,
                    rawY: m
                }, !0)
            });
        else {
            var y = t.getOrient();
            y === "RL" || y === "LR" ? (p = i / (c.getLayout().x + d + v),
            h = a / (f.depth - 1 || 1),
            kp(s, function(b) {
                m = (b.getLayout().x + v) * p,
                g = y === "LR" ? (b.depth - 1) * h : a - (b.depth - 1) * h,
                b.setLayout({
                    x: g,
                    y: m
                }, !0)
            })) : (y === "TB" || y === "BT") && (h = a / (c.getLayout().x + d + v),
            p = i / (f.depth - 1 || 1),
            kp(s, function(b) {
                g = (b.getLayout().x + v) * h,
                m = y === "TB" ? (b.depth - 1) * p : i - (b.depth - 1) * p,
                b.setLayout({
                    x: g,
                    y: m
                }, !0)
            }))
        }
    }
}
function Znt(t) {
    t.eachSeriesByType("tree", function(e) {
        var n = e.getData()
          , r = n.tree;
        r.eachNode(function(a) {
            var i = a.getModel()
              , o = i.getModel("itemStyle").getItemStyle()
              , l = n.ensureUniqueItemVisual(a.dataIndex, "style");
            Me(l, o)
        })
    })
}
function Qnt(t) {
    t.registerAction({
        type: "treeExpandAndCollapse",
        event: "treeExpandAndCollapse",
        update: "update"
    }, function(e, n) {
        n.eachComponent({
            mainType: "series",
            subType: "tree",
            query: e
        }, function(r) {
            var a = e.dataIndex
              , i = r.getData().tree
              , o = i.getNodeByDataIndex(a);
            o.isExpand = !o.isExpand
        })
    }),
    t.registerAction({
        type: "treeRoam",
        event: "treeRoam",
        update: "none"
    }, function(e, n, r) {
        n.eachComponent({
            mainType: "series",
            subType: "tree",
            query: e
        }, function(a) {
            var i = a.coordinateSystem
              , o = q5(i, e, void 0, r);
            a.setCenter && a.setCenter(o.center),
            a.setZoom && a.setZoom(o.zoom)
        })
    })
}
function Jnt(t) {
    t.registerChartView(Nnt),
    t.registerSeriesModel(Unt),
    t.registerLayout(qnt),
    t.registerVisual(Znt),
    Qnt(t)
}
var NG = ["treemapZoomToNode", "treemapRender", "treemapMove"];
function ert(t) {
    for (var e = 0; e < NG.length; e++)
        t.registerAction({
            type: NG[e],
            update: "updateView"
        }, nr);
    t.registerAction({
        type: "treemapRootToNode",
        update: "updateView"
    }, function(n, r) {
        r.eachComponent({
            mainType: "series",
            subType: "treemap",
            query: n
        }, a);
        function a(i, o) {
            var l = ["treemapZoomToNode", "treemapRootToNode"]
              , s = em(n, l, i);
            if (s) {
                var u = i.getViewRoot();
                u && (n.direction = Q5(u, s.node) ? "rollUp" : "drillDown"),
                i.resetViewRoot(s.node)
            }
        }
    })
}
function Mue(t) {
    var e = t.getData()
      , n = e.tree
      , r = {};
    n.eachNode(function(a) {
        for (var i = a; i && i.depth > 1; )
            i = i.parentNode;
        var o = RI(t.ecModel, i.name || i.dataIndex + "", r);
        a.setVisual("decal", o)
    })
}
var trt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.preventUsingHoverLayer = !0,
        n
    }
    return e.prototype.getInitialData = function(n, r) {
        var a = {
            name: n.name,
            children: n.data
        };
        Aue(a);
        var i = n.levels || []
          , o = this.designatedVisualItemStyle = {}
          , l = new wn({
            itemStyle: o
        },this,r);
        i = n.levels = nrt(i, r);
        var s = Le(i || [], function(f) {
            return new wn(f,l,r)
        }, this)
          , u = Z5.createTree(a, this, c);
        function c(f) {
            f.wrapMethod("getItemModel", function(d, v) {
                var h = u.getNodeByDataIndex(v)
                  , p = h ? s[h.depth] : null;
                return d.parentModel = p || l,
                d
            })
        }
        return u.data
    }
    ,
    e.prototype.optionUpdated = function() {
        this.resetViewRoot()
    }
    ,
    e.prototype.formatTooltip = function(n, r, a) {
        var i = this.getData()
          , o = this.getRawValue(n)
          , l = i.getName(n);
        return $r("nameValue", {
            name: l,
            value: o
        })
    }
    ,
    e.prototype.getDataParams = function(n) {
        var r = t.prototype.getDataParams.apply(this, arguments)
          , a = this.getData().tree.getNodeByDataIndex(n);
        return r.treeAncestors = O2(a, this),
        r.treePathInfo = r.treeAncestors,
        r
    }
    ,
    e.prototype.setLayoutInfo = function(n) {
        this.layoutInfo = this.layoutInfo || {},
        Me(this.layoutInfo, n)
    }
    ,
    e.prototype.mapIdToIndex = function(n) {
        var r = this._idIndexMap;
        r || (r = this._idIndexMap = Qe(),
        this._idIndexMapCount = 0);
        var a = r.get(n);
        return a == null && r.set(n, a = this._idIndexMapCount++),
        a
    }
    ,
    e.prototype.getViewRoot = function() {
        return this._viewRoot
    }
    ,
    e.prototype.resetViewRoot = function(n) {
        n ? this._viewRoot = n : n = this._viewRoot;
        var r = this.getRawData().tree.root;
        (!n || n !== r && !r.contains(n)) && (this._viewRoot = r)
    }
    ,
    e.prototype.enableAriaDecal = function() {
        Mue(this)
    }
    ,
    e.type = "series.treemap",
    e.layoutMode = "box",
    e.defaultOption = {
        progressive: 0,
        left: "center",
        top: "middle",
        width: "80%",
        height: "80%",
        sort: !0,
        clipWindow: "origin",
        squareRatio: .5 * (1 + Math.sqrt(5)),
        leafDepth: null,
        drillDownIcon: "\u25B6",
        zoomToNodeRatio: .32 * .32,
        roam: !0,
        nodeClick: "zoomToNode",
        animation: !0,
        animationDurationUpdate: 900,
        animationEasing: "quinticInOut",
        breadcrumb: {
            show: !0,
            height: 22,
            left: "center",
            top: "bottom",
            emptyItemWidth: 25,
            itemStyle: {
                color: "rgba(0,0,0,0.7)",
                textStyle: {
                    color: "#fff"
                }
            },
            emphasis: {
                itemStyle: {
                    color: "rgba(0,0,0,0.9)"
                }
            }
        },
        label: {
            show: !0,
            distance: 0,
            padding: 5,
            position: "inside",
            color: "#fff",
            overflow: "truncate"
        },
        upperLabel: {
            show: !1,
            position: [0, "50%"],
            height: 20,
            overflow: "truncate",
            verticalAlign: "middle"
        },
        itemStyle: {
            color: null,
            colorAlpha: null,
            colorSaturation: null,
            borderWidth: 0,
            gapWidth: 0,
            borderColor: "#fff",
            borderColorSaturation: null
        },
        emphasis: {
            upperLabel: {
                show: !0,
                position: [0, "50%"],
                overflow: "truncate",
                verticalAlign: "middle"
            }
        },
        visualDimension: 0,
        visualMin: null,
        visualMax: null,
        color: [],
        colorAlpha: null,
        colorSaturation: null,
        colorMappingBy: "index",
        visibleMin: 10,
        childrenVisibleMin: null,
        levels: []
    },
    e
}(En);
function Aue(t) {
    var e = 0;
    Z(t.children, function(r) {
        Aue(r);
        var a = r.value;
        ke(a) && (a = a[0]),
        e += a
    });
    var n = t.value;
    ke(n) && (n = n[0]),
    (n == null || isNaN(n)) && (n = e),
    n < 0 && (n = 0),
    ke(t.value) ? t.value[0] = n : t.value = n
}
function nrt(t, e) {
    var n = _n(e.get("color"))
      , r = _n(e.get(["aria", "decal", "decals"]));
    if (!!n) {
        t = t || [];
        var a, i;
        Z(t, function(l) {
            var s = new wn(l)
              , u = s.get("color")
              , c = s.get("decal");
            (s.get(["itemStyle", "color"]) || u && u !== "none") && (a = !0),
            (s.get(["itemStyle", "decal"]) || c && c !== "none") && (i = !0)
        });
        var o = t[0] || (t[0] = {});
        return a || (o.color = n.slice()),
        !i && r && (o.decal = r.slice()),
        t
    }
}
const rrt = trt;
var art = 8
  , $G = 8
  , O4 = 5
  , irt = function() {
    function t(e) {
        this.group = new mt,
        e.add(this.group)
    }
    return t.prototype.render = function(e, n, r, a) {
        var i = e.getModel("breadcrumb")
          , o = this.group;
        if (o.removeAll(),
        !(!i.get("show") || !r)) {
            var l = i.getModel("itemStyle")
              , s = i.getModel("emphasis")
              , u = l.getModel("textStyle")
              , c = s.getModel(["itemStyle", "textStyle"])
              , f = {
                pos: {
                    left: i.get("left"),
                    right: i.get("right"),
                    top: i.get("top"),
                    bottom: i.get("bottom")
                },
                box: {
                    width: n.getWidth(),
                    height: n.getHeight()
                },
                emptyItemWidth: i.get("emptyItemWidth"),
                totalWidth: 0,
                renderList: []
            };
            this._prepare(r, f, u),
            this._renderContent(e, f, l, s, u, c, a),
            m2(o, f.pos, f.box)
        }
    }
    ,
    t.prototype._prepare = function(e, n, r) {
        for (var a = e; a; a = a.parentNode) {
            var i = _r(a.getModel().get("name"), "")
              , o = r.getTextRect(i)
              , l = Math.max(o.width + art * 2, n.emptyItemWidth);
            n.totalWidth += l + $G,
            n.renderList.push({
                node: a,
                text: i,
                width: l
            })
        }
    }
    ,
    t.prototype._renderContent = function(e, n, r, a, i, o, l) {
        for (var s = 0, u = n.emptyItemWidth, c = e.get(["breadcrumb", "height"]), f = QUe(n.pos, n.box), d = n.totalWidth, v = n.renderList, h = a.getModel("itemStyle").getItemStyle(), p = v.length - 1; p >= 0; p--) {
            var g = v[p]
              , m = g.node
              , y = g.width
              , b = g.text;
            d > f.width && (d -= y - u,
            y = u,
            b = null);
            var x = new Ma({
                shape: {
                    points: ort(s, 0, y, c, p === v.length - 1, p === 0)
                },
                style: ot(r.getItemStyle(), {
                    lineJoin: "bevel"
                }),
                textContent: new Jt({
                    style: In(i, {
                        text: b
                    })
                }),
                textConfig: {
                    position: "inside"
                },
                z2: Ph * 1e4,
                onclick: St(l, m)
            });
            x.disableLabelAnimation = !0,
            x.getTextContent().ensureState("emphasis").style = In(o, {
                text: b
            }),
            x.ensureState("emphasis").style = h,
            Qn(x, a.get("focus"), a.get("blurScope"), a.get("disabled")),
            this.group.add(x),
            lrt(x, e, m),
            s += y + $G
        }
    }
    ,
    t.prototype.remove = function() {
        this.group.removeAll()
    }
    ,
    t
}();
function ort(t, e, n, r, a, i) {
    var o = [[a ? t : t - O4, e], [t + n, e], [t + n, e + r], [a ? t : t - O4, e + r]];
    return !i && o.splice(2, 0, [t + n + O4, e + r / 2]),
    !a && o.push([t, e + r / 2]),
    o
}
function lrt(t, e, n) {
    Ct(t).eventData = {
        componentType: "series",
        componentSubType: "treemap",
        componentIndex: e.componentIndex,
        seriesIndex: e.seriesIndex,
        seriesName: e.name,
        seriesType: "treemap",
        selfType: "breadcrumb",
        nodeData: {
            dataIndex: n && n.dataIndex,
            name: n && n.name
        },
        treePathInfo: n && O2(n, e)
    }
}
const srt = irt;
var urt = function() {
    function t() {
        this._storage = [],
        this._elExistsMap = {}
    }
    return t.prototype.add = function(e, n, r, a, i) {
        return this._elExistsMap[e.id] ? !1 : (this._elExistsMap[e.id] = !0,
        this._storage.push({
            el: e,
            target: n,
            duration: r,
            delay: a,
            easing: i
        }),
        !0)
    }
    ,
    t.prototype.finished = function(e) {
        return this._finishedCallback = e,
        this
    }
    ,
    t.prototype.start = function() {
        for (var e = this, n = this._storage.length, r = function() {
            n--,
            n <= 0 && (e._storage.length = 0,
            e._elExistsMap = {},
            e._finishedCallback && e._finishedCallback())
        }, a = 0, i = this._storage.length; a < i; a++) {
            var o = this._storage[a];
            o.el.animateTo(o.target, {
                duration: o.duration,
                delay: o.delay,
                easing: o.easing,
                setToFinal: !0,
                done: r,
                aborted: r
            })
        }
        return this
    }
    ,
    t
}();
function crt() {
    return new urt
}
var sk = mt
  , FG = tn
  , BG = 3
  , VG = "label"
  , zG = "upperLabel"
  , frt = Ph * 10
  , drt = Ph * 2
  , vrt = Ph * 3
  , Rc = Ff([["fill", "color"], ["stroke", "strokeColor"], ["lineWidth", "strokeWidth"], ["shadowBlur"], ["shadowOffsetX"], ["shadowOffsetY"], ["shadowColor"]])
  , HG = function(t) {
    var e = Rc(t);
    return e.stroke = e.fill = e.lineWidth = null,
    e
}
  , eC = an()
  , hrt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n._state = "ready",
        n._storage = Op(),
        n
    }
    return e.prototype.render = function(n, r, a, i) {
        var o = r.findComponents({
            mainType: "series",
            subType: "treemap",
            query: i
        });
        if (!(Rt(o, n) < 0)) {
            this.seriesModel = n,
            this.api = a,
            this.ecModel = r;
            var l = ["treemapZoomToNode", "treemapRootToNode"]
              , s = em(i, l, n)
              , u = i && i.type
              , c = n.layoutInfo
              , f = !this._oldTree
              , d = this._storage
              , v = u === "treemapRootToNode" && s && d ? {
                rootNodeGroup: d.nodeGroup[s.node.getRawIndex()],
                direction: i.direction
            } : null
              , h = this._giveContainerGroup(c)
              , p = n.get("animation")
              , g = this._doRender(h, n, v);
            p && !f && (!u || u === "treemapZoomToNode" || u === "treemapRootToNode") ? this._doAnimation(h, g, n, v) : g.renderFinally(),
            this._resetController(a),
            this._renderBreadcrumb(n, a, s)
        }
    }
    ,
    e.prototype._giveContainerGroup = function(n) {
        var r = this._containerGroup;
        return r || (r = this._containerGroup = new sk,
        this._initEvents(r),
        this.group.add(r)),
        r.x = n.x,
        r.y = n.y,
        r
    }
    ,
    e.prototype._doRender = function(n, r, a) {
        var i = r.getData().tree
          , o = this._oldTree
          , l = Op()
          , s = Op()
          , u = this._storage
          , c = [];
        function f(g, m, y, b) {
            return prt(r, s, u, a, l, c, g, m, y, b)
        }
        v(i.root ? [i.root] : [], o && o.root ? [o.root] : [], n, i === o || !o, 0);
        var d = h(u);
        return this._oldTree = i,
        this._storage = s,
        {
            lastsForAnimation: l,
            willDeleteEls: d,
            renderFinally: p
        };
        function v(g, m, y, b, x) {
            b ? (m = g,
            Z(g, function(w, T) {
                !w.isRemoved() && S(T, T)
            })) : new fs(m,g,C,C).add(S).update(S).remove(St(S, null)).execute();
            function C(w) {
                return w.getId()
            }
            function S(w, T) {
                var P = w != null ? g[w] : null
                  , M = T != null ? m[T] : null
                  , A = f(P, M, y, x);
                A && v(P && P.viewChildren || [], M && M.viewChildren || [], A, b, x + 1)
            }
        }
        function h(g) {
            var m = Op();
            return g && Z(g, function(y, b) {
                var x = m[b];
                Z(y, function(C) {
                    C && (x.push(C),
                    eC(C).willDelete = !0)
                })
            }),
            m
        }
        function p() {
            Z(d, function(g) {
                Z(g, function(m) {
                    m.parent && m.parent.remove(m)
                })
            }),
            Z(c, function(g) {
                g.invisible = !0,
                g.dirty()
            })
        }
    }
    ,
    e.prototype._doAnimation = function(n, r, a, i) {
        var o = a.get("animationDurationUpdate")
          , l = a.get("animationEasing")
          , s = (et(o) ? 0 : o) || 0
          , u = (et(l) ? null : l) || "cubicOut"
          , c = crt();
        Z(r.willDeleteEls, function(f, d) {
            Z(f, function(v, h) {
                if (!v.invisible) {
                    var p = v.parent, g, m = eC(p);
                    if (i && i.direction === "drillDown")
                        g = p === i.rootNodeGroup ? {
                            shape: {
                                x: 0,
                                y: 0,
                                width: m.nodeWidth,
                                height: m.nodeHeight
                            },
                            style: {
                                opacity: 0
                            }
                        } : {
                            style: {
                                opacity: 0
                            }
                        };
                    else {
                        var y = 0
                          , b = 0;
                        m.willDelete || (y = m.nodeWidth / 2,
                        b = m.nodeHeight / 2),
                        g = d === "nodeGroup" ? {
                            x: y,
                            y: b,
                            style: {
                                opacity: 0
                            }
                        } : {
                            shape: {
                                x: y,
                                y: b,
                                width: 0,
                                height: 0
                            },
                            style: {
                                opacity: 0
                            }
                        }
                    }
                    g && c.add(v, g, s, 0, u)
                }
            })
        }),
        Z(this._storage, function(f, d) {
            Z(f, function(v, h) {
                var p = r.lastsForAnimation[d][h]
                  , g = {};
                !p || (v instanceof mt ? p.oldX != null && (g.x = v.x,
                g.y = v.y,
                v.x = p.oldX,
                v.y = p.oldY) : (p.oldShape && (g.shape = Me({}, v.shape),
                v.setShape(p.oldShape)),
                p.fadein ? (v.setStyle("opacity", 0),
                g.style = {
                    opacity: 1
                }) : v.style.opacity !== 1 && (g.style = {
                    opacity: 1
                })),
                c.add(v, g, s, 0, u))
            })
        }, this),
        this._state = "animating",
        c.finished(qe(function() {
            this._state = "ready",
            r.renderFinally()
        }, this)).start()
    }
    ,
    e.prototype._resetController = function(n) {
        var r = this._controller;
        r || (r = this._controller = new uy(n.getZr()),
        r.enable(this.seriesModel.get("roam")),
        r.on("pan", qe(this._onPan, this)),
        r.on("zoom", qe(this._onZoom, this)));
        var a = new Dt(0,0,n.getWidth(),n.getHeight());
        r.setPointerChecker(function(i, o, l) {
            return a.contain(o, l)
        })
    }
    ,
    e.prototype._clearController = function() {
        var n = this._controller;
        n && (n.dispose(),
        n = null)
    }
    ,
    e.prototype._onPan = function(n) {
        if (this._state !== "animating" && (Math.abs(n.dx) > BG || Math.abs(n.dy) > BG)) {
            var r = this.seriesModel.getData().tree.root;
            if (!r)
                return;
            var a = r.getLayout();
            if (!a)
                return;
            this.api.dispatchAction({
                type: "treemapMove",
                from: this.uid,
                seriesId: this.seriesModel.id,
                rootRect: {
                    x: a.x + n.dx,
                    y: a.y + n.dy,
                    width: a.width,
                    height: a.height
                }
            })
        }
    }
    ,
    e.prototype._onZoom = function(n) {
        var r = n.originX
          , a = n.originY;
        if (this._state !== "animating") {
            var i = this.seriesModel.getData().tree.root;
            if (!i)
                return;
            var o = i.getLayout();
            if (!o)
                return;
            var l = new Dt(o.x,o.y,o.width,o.height)
              , s = this.seriesModel.layoutInfo;
            r -= s.x,
            a -= s.y;
            var u = si();
            To(u, u, [-r, -a]),
            Zw(u, u, [n.scale, n.scale]),
            To(u, u, [r, a]),
            l.applyTransform(u),
            this.api.dispatchAction({
                type: "treemapRender",
                from: this.uid,
                seriesId: this.seriesModel.id,
                rootRect: {
                    x: l.x,
                    y: l.y,
                    width: l.width,
                    height: l.height
                }
            })
        }
    }
    ,
    e.prototype._initEvents = function(n) {
        var r = this;
        n.on("click", function(a) {
            if (r._state === "ready") {
                var i = r.seriesModel.get("nodeClick", !0);
                if (!!i) {
                    var o = r.findTarget(a.offsetX, a.offsetY);
                    if (!!o) {
                        var l = o.node;
                        if (l.getLayout().isLeafRoot)
                            r._rootToNode(o);
                        else if (i === "zoomToNode")
                            r._zoomToNode(o);
                        else if (i === "link") {
                            var s = l.hostTree.data.getItemModel(l.dataIndex)
                              , u = s.get("link", !0)
                              , c = s.get("target", !0) || "blank";
                            u && RS(u, c)
                        }
                    }
                }
            }
        }, this)
    }
    ,
    e.prototype._renderBreadcrumb = function(n, r, a) {
        var i = this;
        a || (a = n.get("leafDepth", !0) != null ? {
            node: n.getViewRoot()
        } : this.findTarget(r.getWidth() / 2, r.getHeight() / 2),
        a || (a = {
            node: n.getData().tree.root
        })),
        (this._breadcrumb || (this._breadcrumb = new srt(this.group))).render(n, r, a.node, function(o) {
            i._state !== "animating" && (Q5(n.getViewRoot(), o) ? i._rootToNode({
                node: o
            }) : i._zoomToNode({
                node: o
            }))
        })
    }
    ,
    e.prototype.remove = function() {
        this._clearController(),
        this._containerGroup && this._containerGroup.removeAll(),
        this._storage = Op(),
        this._state = "ready",
        this._breadcrumb && this._breadcrumb.remove()
    }
    ,
    e.prototype.dispose = function() {
        this._clearController()
    }
    ,
    e.prototype._zoomToNode = function(n) {
        this.api.dispatchAction({
            type: "treemapZoomToNode",
            from: this.uid,
            seriesId: this.seriesModel.id,
            targetNode: n.node
        })
    }
    ,
    e.prototype._rootToNode = function(n) {
        this.api.dispatchAction({
            type: "treemapRootToNode",
            from: this.uid,
            seriesId: this.seriesModel.id,
            targetNode: n.node
        })
    }
    ,
    e.prototype.findTarget = function(n, r) {
        var a, i = this.seriesModel.getViewRoot();
        return i.eachNode({
            attr: "viewChildren",
            order: "preorder"
        }, function(o) {
            var l = this._storage.background[o.getRawIndex()];
            if (l) {
                var s = l.transformCoordToLocal(n, r)
                  , u = l.shape;
                if (u.x <= s[0] && s[0] <= u.x + u.width && u.y <= s[1] && s[1] <= u.y + u.height)
                    a = {
                        node: o,
                        offsetX: s[0],
                        offsetY: s[1]
                    };
                else
                    return !1
            }
        }, this),
        a
    }
    ,
    e.type = "treemap",
    e
}(Tn);
function Op() {
    return {
        nodeGroup: [],
        background: [],
        content: []
    }
}
function prt(t, e, n, r, a, i, o, l, s, u) {
    if (!o)
        return;
    var c = o.getLayout()
      , f = t.getData()
      , d = o.getModel();
    if (f.setItemGraphicEl(o.dataIndex, null),
    !c || !c.isInView)
        return;
    var v = c.width
      , h = c.height
      , p = c.borderWidth
      , g = c.invisible
      , m = o.getRawIndex()
      , y = l && l.getRawIndex()
      , b = o.viewChildren
      , x = c.upperHeight
      , C = b && b.length
      , S = d.getModel("itemStyle")
      , w = d.getModel(["emphasis", "itemStyle"])
      , T = d.getModel(["blur", "itemStyle"])
      , P = d.getModel(["select", "itemStyle"])
      , M = S.get("borderRadius") || 0
      , A = V("nodeGroup", sk);
    if (!A)
        return;
    if (s.add(A),
    A.x = c.x || 0,
    A.y = c.y || 0,
    A.markRedraw(),
    eC(A).nodeWidth = v,
    eC(A).nodeHeight = h,
    c.isAboveViewRoot)
        return A;
    var O = V("background", FG, u, drt);
    O && $(A, O, C && c.upperLabelHeight);
    var k = d.getModel("emphasis")
      , D = k.get("focus")
      , E = k.get("blurScope")
      , L = k.get("disabled")
      , N = D === "ancestor" ? o.getAncestorsIndices() : D === "descendant" ? o.getDescendantIndices() : D;
    if (C)
        z0(A) && rf(A, !1),
        O && (rf(O, !L),
        f.setItemGraphicEl(o.dataIndex, O),
        MI(O, N, E));
    else {
        var R = V("content", FG, u, vrt);
        R && W(A, R),
        O.disableMorphing = !0,
        O && z0(O) && rf(O, !1),
        rf(A, !L),
        f.setItemGraphicEl(o.dataIndex, A),
        MI(A, N, E)
    }
    return A;
    function $(Y, te, ne) {
        var ie = Ct(te);
        if (ie.dataIndex = o.dataIndex,
        ie.seriesIndex = t.seriesIndex,
        te.setShape({
            x: 0,
            y: 0,
            width: v,
            height: h,
            r: M
        }),
        g)
            B(te);
        else {
            te.invisible = !1;
            var ae = o.getVisual("style")
              , q = ae.stroke
              , F = HG(S);
            F.fill = q;
            var H = Rc(w);
            H.fill = w.get("borderColor");
            var ee = Rc(T);
            ee.fill = T.get("borderColor");
            var re = Rc(P);
            if (re.fill = P.get("borderColor"),
            ne) {
                var ue = v - 2 * p;
                G(te, q, ae.opacity, {
                    x: p,
                    y: 0,
                    width: ue,
                    height: x
                })
            } else
                te.removeTextContent();
            te.setStyle(F),
            te.ensureState("emphasis").style = H,
            te.ensureState("blur").style = ee,
            te.ensureState("select").style = re,
            Bf(te)
        }
        Y.add(te)
    }
    function W(Y, te) {
        var ne = Ct(te);
        ne.dataIndex = o.dataIndex,
        ne.seriesIndex = t.seriesIndex;
        var ie = Math.max(v - 2 * p, 0)
          , ae = Math.max(h - 2 * p, 0);
        if (te.culling = !0,
        te.setShape({
            x: p,
            y: p,
            width: ie,
            height: ae,
            r: M
        }),
        g)
            B(te);
        else {
            te.invisible = !1;
            var q = o.getVisual("style")
              , F = q.fill
              , H = HG(S);
            H.fill = F,
            H.decal = q.decal;
            var ee = Rc(w)
              , re = Rc(T)
              , ue = Rc(P);
            G(te, F, q.opacity, null),
            te.setStyle(H),
            te.ensureState("emphasis").style = ee,
            te.ensureState("blur").style = re,
            te.ensureState("select").style = ue,
            Bf(te)
        }
        Y.add(te)
    }
    function B(Y) {
        !Y.invisible && i.push(Y)
    }
    function G(Y, te, ne, ie) {
        var ae = d.getModel(ie ? zG : VG)
          , q = _r(d.get("name"), null)
          , F = ae.getShallow("show");
        ea(Y, Nr(d, ie ? zG : VG), {
            defaultText: F ? q : null,
            inheritColor: te,
            defaultOpacity: ne,
            labelFetcher: t,
            labelDataIndex: o.dataIndex
        });
        var H = Y.getTextContent();
        if (!!H) {
            var ee = H.style
              , re = qw(ee.padding || 0);
            ie && (Y.setTextConfig({
                layoutRect: ie
            }),
            H.disableLabelLayout = !0),
            H.beforeUpdate = function() {
                var ve = Math.max((ie ? ie.width : Y.shape.width) - re[1] - re[3], 0)
                  , fe = Math.max((ie ? ie.height : Y.shape.height) - re[0] - re[2], 0);
                (ee.width !== ve || ee.height !== fe) && H.setStyle({
                    width: ve,
                    height: fe
                })
            }
            ,
            ee.truncateMinChar = 2,
            ee.lineOverflow = "truncate",
            K(ee, ie, c);
            var ue = H.getState("emphasis");
            K(ue ? ue.style : null, ie, c)
        }
    }
    function K(Y, te, ne) {
        var ie = Y ? Y.text : null;
        if (!te && ne.isLeafRoot && ie != null) {
            var ae = t.get("drillDownIcon", !0);
            Y.text = ae ? ae + " " + ie : ie
        }
    }
    function V(Y, te, ne, ie) {
        var ae = y != null && n[Y][y]
          , q = a[Y];
        return ae ? (n[Y][y] = null,
        U(q, ae)) : g || (ae = new te,
        ae instanceof ji && (ae.z2 = grt(ne, ie)),
        X(q, ae)),
        e[Y][m] = ae
    }
    function U(Y, te) {
        var ne = Y[m] = {};
        te instanceof sk ? (ne.oldX = te.x,
        ne.oldY = te.y) : ne.oldShape = Me({}, te.shape)
    }
    function X(Y, te) {
        var ne = Y[m] = {}
          , ie = o.parentNode
          , ae = te instanceof mt;
        if (ie && (!r || r.direction === "drillDown")) {
            var q = 0
              , F = 0
              , H = a.background[ie.getRawIndex()];
            !r && H && H.oldShape && (q = H.oldShape.width,
            F = H.oldShape.height),
            ae ? (ne.oldX = 0,
            ne.oldY = F) : ne.oldShape = {
                x: q,
                y: F,
                width: 0,
                height: 0
            }
        }
        ne.fadein = !ae
    }
}
function grt(t, e) {
    return t * frt + e
}
const mrt = hrt;
var tm = Z
  , yrt = st
  , tC = -1
  , J5 = function() {
    function t(e) {
        var n = e.mappingMethod
          , r = e.type
          , a = this.option = ut(e);
        this.type = r,
        this.mappingMethod = n,
        this._normalizeData = Srt[n];
        var i = t.visualHandlers[r];
        this.applyVisual = i.applyVisual,
        this.getColorMapper = i.getColorMapper,
        this._normalizedToVisual = i._normalizedToVisual[n],
        n === "piecewise" ? (D4(a),
        brt(a)) : n === "category" ? a.categories ? xrt(a) : D4(a, !0) : (la(n !== "linear" || a.dataExtent),
        D4(a))
    }
    return t.prototype.mapValueToVisual = function(e) {
        var n = this._normalizeData(e);
        return this._normalizedToVisual(n, e)
    }
    ,
    t.prototype.getNormalizer = function() {
        return qe(this._normalizeData, this)
    }
    ,
    t.listVisualTypes = function() {
        return Gt(t.visualHandlers)
    }
    ,
    t.isValidType = function(e) {
        return t.visualHandlers.hasOwnProperty(e)
    }
    ,
    t.eachVisual = function(e, n, r) {
        st(e) ? Z(e, n, r) : n.call(r, e)
    }
    ,
    t.mapVisual = function(e, n, r) {
        var a, i = ke(e) ? [] : st(e) ? {} : (a = !0,
        null);
        return t.eachVisual(e, function(o, l) {
            var s = n.call(r, o, l);
            a ? i = s : i[l] = s
        }),
        i
    }
    ,
    t.retrieveVisuals = function(e) {
        var n = {}, r;
        return e && tm(t.visualHandlers, function(a, i) {
            e.hasOwnProperty(i) && (n[i] = e[i],
            r = !0)
        }),
        r ? n : null
    }
    ,
    t.prepareVisualTypes = function(e) {
        if (ke(e))
            e = e.slice();
        else if (yrt(e)) {
            var n = [];
            tm(e, function(r, a) {
                n.push(a)
            }),
            e = n
        } else
            return [];
        return e.sort(function(r, a) {
            return a === "color" && r !== "color" && r.indexOf("color") === 0 ? 1 : -1
        }),
        e
    }
    ,
    t.dependsOn = function(e, n) {
        return n === "color" ? !!(e && e.indexOf(n) === 0) : e === n
    }
    ,
    t.findPieceIndex = function(e, n, r) {
        for (var a, i = 1 / 0, o = 0, l = n.length; o < l; o++) {
            var s = n[o].value;
            if (s != null) {
                if (s === e || Ge(s) && s === e + "")
                    return o;
                r && d(s, o)
            }
        }
        for (var o = 0, l = n.length; o < l; o++) {
            var u = n[o]
              , c = u.interval
              , f = u.close;
            if (c) {
                if (c[0] === -1 / 0) {
                    if (K1(f[1], e, c[1]))
                        return o
                } else if (c[1] === 1 / 0) {
                    if (K1(f[0], c[0], e))
                        return o
                } else if (K1(f[0], c[0], e) && K1(f[1], e, c[1]))
                    return o;
                r && d(c[0], o),
                r && d(c[1], o)
            }
        }
        if (r)
            return e === 1 / 0 ? n.length - 1 : e === -1 / 0 ? 0 : a;
        function d(v, h) {
            var p = Math.abs(v - e);
            p < i && (i = p,
            a = h)
        }
    }
    ,
    t.visualHandlers = {
        color: {
            applyVisual: Dp("color"),
            getColorMapper: function() {
                var e = this.option;
                return qe(e.mappingMethod === "category" ? function(n, r) {
                    return !r && (n = this._normalizeData(n)),
                    ng.call(this, n)
                }
                : function(n, r, a) {
                    var i = !!a;
                    return !r && (n = this._normalizeData(n)),
                    a = Rg(n, e.parsedVisual, a),
                    i ? a : go(a, "rgba")
                }
                , this)
            },
            _normalizedToVisual: {
                linear: function(e) {
                    return go(Rg(e, this.option.parsedVisual), "rgba")
                },
                category: ng,
                piecewise: function(e, n) {
                    var r = ck.call(this, n);
                    return r == null && (r = go(Rg(e, this.option.parsedVisual), "rgba")),
                    r
                },
                fixed: Nc
            }
        },
        colorHue: G1(function(e, n) {
            return Sv(e, n)
        }),
        colorSaturation: G1(function(e, n) {
            return Sv(e, null, n)
        }),
        colorLightness: G1(function(e, n) {
            return Sv(e, null, null, n)
        }),
        colorAlpha: G1(function(e, n) {
            return L0(e, n)
        }),
        decal: {
            applyVisual: Dp("decal"),
            _normalizedToVisual: {
                linear: null,
                category: ng,
                piecewise: null,
                fixed: null
            }
        },
        opacity: {
            applyVisual: Dp("opacity"),
            _normalizedToVisual: uk([0, 1])
        },
        liftZ: {
            applyVisual: Dp("liftZ"),
            _normalizedToVisual: {
                linear: Nc,
                category: Nc,
                piecewise: Nc,
                fixed: Nc
            }
        },
        symbol: {
            applyVisual: function(e, n, r) {
                var a = this.mapValueToVisual(e);
                r("symbol", a)
            },
            _normalizedToVisual: {
                linear: jG,
                category: ng,
                piecewise: function(e, n) {
                    var r = ck.call(this, n);
                    return r == null && (r = jG.call(this, e)),
                    r
                },
                fixed: Nc
            }
        },
        symbolSize: {
            applyVisual: Dp("symbolSize"),
            _normalizedToVisual: uk([0, 1])
        }
    },
    t
}();
function brt(t) {
    var e = t.pieceList;
    t.hasSpecialVisual = !1,
    Z(e, function(n, r) {
        n.originIndex = r,
        n.visual != null && (t.hasSpecialVisual = !0)
    })
}
function xrt(t) {
    var e = t.categories
      , n = t.categoryMap = {}
      , r = t.visual;
    if (tm(e, function(o, l) {
        n[o] = l
    }),
    !ke(r)) {
        var a = [];
        st(r) ? tm(r, function(o, l) {
            var s = n[l];
            a[s != null ? s : tC] = o
        }) : a[tC] = r,
        r = Iue(t, a)
    }
    for (var i = e.length - 1; i >= 0; i--)
        r[i] == null && (delete n[e[i]],
        e.pop())
}
function D4(t, e) {
    var n = t.visual
      , r = [];
    st(n) ? tm(n, function(i) {
        r.push(i)
    }) : n != null && r.push(n);
    var a = {
        color: 1,
        symbol: 1
    };
    !e && r.length === 1 && !a.hasOwnProperty(t.type) && (r[1] = r[0]),
    Iue(t, r)
}
function G1(t) {
    return {
        applyVisual: function(e, n, r) {
            var a = this.mapValueToVisual(e);
            r("color", t(n("color"), a))
        },
        _normalizedToVisual: uk([0, 1])
    }
}
function jG(t) {
    var e = this.option.visual;
    return e[Math.round(vn(t, [0, 1], [0, e.length - 1], !0))] || {}
}
function Dp(t) {
    return function(e, n, r) {
        r(t, this.mapValueToVisual(e))
    }
}
function ng(t) {
    var e = this.option.visual;
    return e[this.option.loop && t !== tC ? t % e.length : t]
}
function Nc() {
    return this.option.visual[0]
}
function uk(t) {
    return {
        linear: function(e) {
            return vn(e, t, this.option.visual, !0)
        },
        category: ng,
        piecewise: function(e, n) {
            var r = ck.call(this, n);
            return r == null && (r = vn(e, t, this.option.visual, !0)),
            r
        },
        fixed: Nc
    }
}
function ck(t) {
    var e = this.option
      , n = e.pieceList;
    if (e.hasSpecialVisual) {
        var r = J5.findPieceIndex(t, n)
          , a = n[r];
        if (a && a.visual)
            return a.visual[this.type]
    }
}
function Iue(t, e) {
    return t.visual = e,
    t.type === "color" && (t.parsedVisual = Le(e, function(n) {
        var r = _a(n);
        return r || [0, 0, 0, 1]
    })),
    e
}
var Srt = {
    linear: function(t) {
        return vn(t, this.option.dataExtent, [0, 1], !0)
    },
    piecewise: function(t) {
        var e = this.option.pieceList
          , n = J5.findPieceIndex(t, e, !0);
        if (n != null)
            return vn(n, [0, e.length - 1], [0, 1], !0)
    },
    category: function(t) {
        var e = this.option.categories ? this.option.categoryMap[t] : t;
        return e == null ? tC : e
    },
    fixed: nr
};
function K1(t, e, n) {
    return t ? e <= n : e < n
}
const Xr = J5;
var Crt = "itemStyle"
  , kue = an();
const wrt = {
    seriesType: "treemap",
    reset: function(t) {
        var e = t.getData().tree
          , n = e.root;
        n.isRemoved() || Oue(n, {}, t.getViewRoot().getAncestors(), t)
    }
};
function Oue(t, e, n, r) {
    var a = t.getModel()
      , i = t.getLayout()
      , o = t.hostTree.data;
    if (!(!i || i.invisible || !i.isInView)) {
        var l = a.getModel(Crt), s = _rt(l, e, r), u = o.ensureUniqueItemVisual(t.dataIndex, "style"), c = l.get("borderColor"), f = l.get("borderColorSaturation"), d;
        f != null && (d = WG(s),
        c = Trt(f, d)),
        u.stroke = c;
        var v = t.viewChildren;
        if (!v || !v.length)
            d = WG(s),
            u.fill = d;
        else {
            var h = Prt(t, a, i, l, s, v);
            Z(v, function(p, g) {
                if (p.depth >= n.length || p === n[p.depth]) {
                    var m = Mrt(a, s, p, g, h, r);
                    Oue(p, m, n, r)
                }
            })
        }
    }
}
function _rt(t, e, n) {
    var r = Me({}, e)
      , a = n.designatedVisualItemStyle;
    return Z(["color", "colorAlpha", "colorSaturation"], function(i) {
        a[i] = e[i];
        var o = t.get(i);
        a[i] = null,
        o != null && (r[i] = o)
    }),
    r
}
function WG(t) {
    var e = E4(t, "color");
    if (e) {
        var n = E4(t, "colorAlpha")
          , r = E4(t, "colorSaturation");
        return r && (e = Sv(e, null, null, r)),
        n && (e = L0(e, n)),
        e
    }
}
function Trt(t, e) {
    return e != null ? Sv(e, null, null, t) : null
}
function E4(t, e) {
    var n = t[e];
    if (n != null && n !== "none")
        return n
}
function Prt(t, e, n, r, a, i) {
    if (!(!i || !i.length)) {
        var o = L4(e, "color") || a.color != null && a.color !== "none" && (L4(e, "colorAlpha") || L4(e, "colorSaturation"));
        if (!!o) {
            var l = e.get("visualMin")
              , s = e.get("visualMax")
              , u = n.dataExtent.slice();
            l != null && l < u[0] && (u[0] = l),
            s != null && s > u[1] && (u[1] = s);
            var c = e.get("colorMappingBy")
              , f = {
                type: o.name,
                dataExtent: u,
                visual: o.range
            };
            f.type === "color" && (c === "index" || c === "id") ? (f.mappingMethod = "category",
            f.loop = !0) : f.mappingMethod = "linear";
            var d = new Xr(f);
            return kue(d).drColorMappingBy = c,
            d
        }
    }
}
function L4(t, e) {
    var n = t.get(e);
    return ke(n) && n.length ? {
        name: e,
        range: n
    } : null
}
function Mrt(t, e, n, r, a, i) {
    var o = Me({}, e);
    if (a) {
        var l = a.type
          , s = l === "color" && kue(a).drColorMappingBy
          , u = s === "index" ? r : s === "id" ? i.mapIdToIndex(n.getId()) : n.getValue(t.get("visualDimension"));
        o[l] = a.mapValueToVisual(u)
    }
    return o
}
var nm = Math.max
  , nC = Math.min
  , GG = kr
  , eL = Z
  , Due = ["itemStyle", "borderWidth"]
  , Art = ["itemStyle", "gapWidth"]
  , Irt = ["upperLabel", "show"]
  , krt = ["upperLabel", "height"];
const Ort = {
    seriesType: "treemap",
    reset: function(t, e, n, r) {
        var a = n.getWidth()
          , i = n.getHeight()
          , o = t.option
          , l = xr(t.getBoxLayoutParams(), {
            width: n.getWidth(),
            height: n.getHeight()
        })
          , s = o.size || []
          , u = He(GG(l.width, s[0]), a)
          , c = He(GG(l.height, s[1]), i)
          , f = r && r.type
          , d = ["treemapZoomToNode", "treemapRootToNode"]
          , v = em(r, d, t)
          , h = f === "treemapRender" || f === "treemapMove" ? r.rootRect : null
          , p = t.getViewRoot()
          , g = Pue(p);
        if (f !== "treemapMove") {
            var m = f === "treemapZoomToNode" ? $rt(t, v, p, u, c) : h ? [h.width, h.height] : [u, c]
              , y = o.sort;
            y && y !== "asc" && y !== "desc" && (y = "desc");
            var b = {
                squareRatio: o.squareRatio,
                sort: y,
                leafDepth: o.leafDepth
            };
            p.hostTree.clearLayouts();
            var x = {
                x: 0,
                y: 0,
                width: m[0],
                height: m[1],
                area: m[0] * m[1]
            };
            p.setLayout(x),
            Eue(p, b, !1, 0),
            x = p.getLayout(),
            eL(g, function(S, w) {
                var T = (g[w + 1] || p).getValue();
                S.setLayout(Me({
                    dataExtent: [T, T],
                    borderWidth: 0,
                    upperHeight: 0
                }, x))
            })
        }
        var C = t.getData().tree.root;
        C.setLayout(Frt(l, h, v), !0),
        t.setLayoutInfo(l),
        Lue(C, new Dt(-l.x,-l.y,a,i), g, p, 0)
    }
};
function Eue(t, e, n, r) {
    var a, i;
    if (!t.isRemoved()) {
        var o = t.getLayout();
        a = o.width,
        i = o.height;
        var l = t.getModel()
          , s = l.get(Due)
          , u = l.get(Art) / 2
          , c = Rue(l)
          , f = Math.max(s, c)
          , d = s - u
          , v = f - u;
        t.setLayout({
            borderWidth: s,
            upperHeight: f,
            upperLabelHeight: c
        }, !0),
        a = nm(a - 2 * d, 0),
        i = nm(i - d - v, 0);
        var h = a * i
          , p = Drt(t, l, h, e, n, r);
        if (!!p.length) {
            var g = {
                x: d,
                y: v,
                width: a,
                height: i
            }
              , m = nC(a, i)
              , y = 1 / 0
              , b = [];
            b.area = 0;
            for (var x = 0, C = p.length; x < C; ) {
                var S = p[x];
                b.push(S),
                b.area += S.getLayout().area;
                var w = Nrt(b, m, e.squareRatio);
                w <= y ? (x++,
                y = w) : (b.area -= b.pop().getLayout().area,
                KG(b, m, g, u, !1),
                m = nC(g.width, g.height),
                b.length = b.area = 0,
                y = 1 / 0)
            }
            if (b.length && KG(b, m, g, u, !0),
            !n) {
                var T = l.get("childrenVisibleMin");
                T != null && h < T && (n = !0)
            }
            for (var x = 0, C = p.length; x < C; x++)
                Eue(p[x], e, n, r + 1)
        }
    }
}
function Drt(t, e, n, r, a, i) {
    var o = t.children || []
      , l = r.sort;
    l !== "asc" && l !== "desc" && (l = null);
    var s = r.leafDepth != null && r.leafDepth <= i;
    if (a && !s)
        return t.viewChildren = [];
    o = pn(o, function(v) {
        return !v.isRemoved()
    }),
    Lrt(o, l);
    var u = Rrt(e, o, l);
    if (u.sum === 0)
        return t.viewChildren = [];
    if (u.sum = Ert(e, n, u.sum, l, o),
    u.sum === 0)
        return t.viewChildren = [];
    for (var c = 0, f = o.length; c < f; c++) {
        var d = o[c].getValue() / u.sum * n;
        o[c].setLayout({
            area: d
        })
    }
    return s && (o.length && t.setLayout({
        isLeafRoot: !0
    }, !0),
    o.length = 0),
    t.viewChildren = o,
    t.setLayout({
        dataExtent: u.dataExtent
    }, !0),
    o
}
function Ert(t, e, n, r, a) {
    if (!r)
        return n;
    for (var i = t.get("visibleMin"), o = a.length, l = o, s = o - 1; s >= 0; s--) {
        var u = a[r === "asc" ? o - s - 1 : s].getValue();
        u / n * e < i && (l = s,
        n -= u)
    }
    return r === "asc" ? a.splice(0, o - l) : a.splice(l, o - l),
    n
}
function Lrt(t, e) {
    return e && t.sort(function(n, r) {
        var a = e === "asc" ? n.getValue() - r.getValue() : r.getValue() - n.getValue();
        return a === 0 ? e === "asc" ? n.dataIndex - r.dataIndex : r.dataIndex - n.dataIndex : a
    }),
    t
}
function Rrt(t, e, n) {
    for (var r = 0, a = 0, i = e.length; a < i; a++)
        r += e[a].getValue();
    var o = t.get("visualDimension"), l;
    return !e || !e.length ? l = [NaN, NaN] : o === "value" && n ? (l = [e[e.length - 1].getValue(), e[0].getValue()],
    n === "asc" && l.reverse()) : (l = [1 / 0, -1 / 0],
    eL(e, function(s) {
        var u = s.getValue(o);
        u < l[0] && (l[0] = u),
        u > l[1] && (l[1] = u)
    })),
    {
        sum: r,
        dataExtent: l
    }
}
function Nrt(t, e, n) {
    for (var r = 0, a = 1 / 0, i = 0, o = void 0, l = t.length; i < l; i++)
        o = t[i].getLayout().area,
        o && (o < a && (a = o),
        o > r && (r = o));
    var s = t.area * t.area
      , u = e * e * n;
    return s ? nm(u * r / s, s / (u * a)) : 1 / 0
}
function KG(t, e, n, r, a) {
    var i = e === n.width ? 0 : 1
      , o = 1 - i
      , l = ["x", "y"]
      , s = ["width", "height"]
      , u = n[l[i]]
      , c = e ? t.area / e : 0;
    (a || c > n[s[o]]) && (c = n[s[o]]);
    for (var f = 0, d = t.length; f < d; f++) {
        var v = t[f]
          , h = {}
          , p = c ? v.getLayout().area / c : 0
          , g = h[s[o]] = nm(c - 2 * r, 0)
          , m = n[l[i]] + n[s[i]] - u
          , y = f === d - 1 || m < p ? m : p
          , b = h[s[i]] = nm(y - 2 * r, 0);
        h[l[o]] = n[l[o]] + nC(r, g / 2),
        h[l[i]] = u + nC(r, b / 2),
        u += y,
        v.setLayout(h, !0)
    }
    n[l[o]] += c,
    n[s[o]] -= c
}
function $rt(t, e, n, r, a) {
    var i = (e || {}).node
      , o = [r, a];
    if (!i || i === n)
        return o;
    for (var l, s = r * a, u = s * t.option.zoomToNodeRatio; l = i.parentNode; ) {
        for (var c = 0, f = l.children, d = 0, v = f.length; d < v; d++)
            c += f[d].getValue();
        var h = i.getValue();
        if (h === 0)
            return o;
        u *= c / h;
        var p = l.getModel()
          , g = p.get(Due)
          , m = Math.max(g, Rue(p));
        u += 4 * g * g + (3 * g + m) * Math.pow(u, .5),
        u > yI && (u = yI),
        i = l
    }
    u < s && (u = s);
    var y = Math.pow(u / s, .5);
    return [r * y, a * y]
}
function Frt(t, e, n) {
    if (e)
        return {
            x: e.x,
            y: e.y
        };
    var r = {
        x: 0,
        y: 0
    };
    if (!n)
        return r;
    var a = n.node
      , i = a.getLayout();
    if (!i)
        return r;
    for (var o = [i.width / 2, i.height / 2], l = a; l; ) {
        var s = l.getLayout();
        o[0] += s.x,
        o[1] += s.y,
        l = l.parentNode
    }
    return {
        x: t.width / 2 - o[0],
        y: t.height / 2 - o[1]
    }
}
function Lue(t, e, n, r, a) {
    var i = t.getLayout()
      , o = n[a]
      , l = o && o === t;
    if (!(o && !l || a === n.length && t !== r)) {
        t.setLayout({
            isInView: !0,
            invisible: !l && !e.intersect(i),
            isAboveViewRoot: l
        }, !0);
        var s = new Dt(e.x - i.x,e.y - i.y,e.width,e.height);
        eL(t.viewChildren || [], function(u) {
            Lue(u, s, n, r, a + 1)
        })
    }
}
function Rue(t) {
    return t.get(Irt) ? t.get(krt) : 0
}
function Brt(t) {
    t.registerSeriesModel(rrt),
    t.registerChartView(mrt),
    t.registerVisual(wrt),
    t.registerLayout(Ort),
    ert(t)
}
function Vrt(t) {
    var e = t.findComponents({
        mainType: "legend"
    });
    !e || !e.length || t.eachSeriesByType("graph", function(n) {
        var r = n.getCategoriesData()
          , a = n.getGraph()
          , i = a.data
          , o = r.mapArray(r.getName);
        i.filterSelf(function(l) {
            var s = i.getItemModel(l)
              , u = s.getShallow("category");
            if (u != null) {
                rn(u) && (u = o[u]);
                for (var c = 0; c < e.length; c++)
                    if (!e[c].isSelected(u))
                        return !1
            }
            return !0
        })
    })
}
function zrt(t) {
    var e = {};
    t.eachSeriesByType("graph", function(n) {
        var r = n.getCategoriesData()
          , a = n.getData()
          , i = {};
        r.each(function(o) {
            var l = r.getName(o);
            i["ec-" + l] = o;
            var s = r.getItemModel(o)
              , u = s.getModel("itemStyle").getItemStyle();
            u.fill || (u.fill = n.getColorFromPalette(l, e)),
            r.setItemVisual(o, "style", u);
            for (var c = ["symbol", "symbolSize", "symbolKeepAspect"], f = 0; f < c.length; f++) {
                var d = s.getShallow(c[f], !0);
                d != null && r.setItemVisual(o, c[f], d)
            }
        }),
        r.count() && a.each(function(o) {
            var l = a.getItemModel(o)
              , s = l.getShallow("category");
            if (s != null) {
                Ge(s) && (s = i["ec-" + s]);
                var u = r.getItemVisual(s, "style")
                  , c = a.ensureUniqueItemVisual(o, "style");
                Me(c, u);
                for (var f = ["symbol", "symbolSize", "symbolKeepAspect"], d = 0; d < f.length; d++)
                    a.setItemVisual(o, f[d], r.getItemVisual(s, f[d]))
            }
        })
    })
}
function U1(t) {
    return t instanceof Array || (t = [t, t]),
    t
}
function Hrt(t) {
    t.eachSeriesByType("graph", function(e) {
        var n = e.getGraph()
          , r = e.getEdgeData()
          , a = U1(e.get("edgeSymbol"))
          , i = U1(e.get("edgeSymbolSize"));
        r.setVisual("fromSymbol", a && a[0]),
        r.setVisual("toSymbol", a && a[1]),
        r.setVisual("fromSymbolSize", i && i[0]),
        r.setVisual("toSymbolSize", i && i[1]),
        r.setVisual("style", e.getModel("lineStyle").getLineStyle()),
        r.each(function(o) {
            var l = r.getItemModel(o)
              , s = n.getEdgeByIndex(o)
              , u = U1(l.getShallow("symbol", !0))
              , c = U1(l.getShallow("symbolSize", !0))
              , f = l.getModel("lineStyle").getLineStyle()
              , d = r.ensureUniqueItemVisual(o, "style");
            switch (Me(d, f),
            d.stroke) {
            case "source":
                {
                    var v = s.node1.getVisual("style");
                    d.stroke = v && v.fill;
                    break
                }
            case "target":
                {
                    var v = s.node2.getVisual("style");
                    d.stroke = v && v.fill;
                    break
                }
            }
            u[0] && s.setVisual("fromSymbol", u[0]),
            u[1] && s.setVisual("toSymbol", u[1]),
            c[0] && s.setVisual("fromSymbolSize", c[0]),
            c[1] && s.setVisual("toSymbolSize", c[1])
        })
    })
}
var fk = "-->"
  , D2 = function(t) {
    return t.get("autoCurveness") || null
}
  , Nue = function(t, e) {
    var n = D2(t)
      , r = 20
      , a = [];
    if (rn(n))
        r = n;
    else if (ke(n)) {
        t.__curvenessList = n;
        return
    }
    e > r && (r = e);
    var i = r % 2 ? r + 2 : r + 3;
    a = [];
    for (var o = 0; o < i; o++)
        a.push((o % 2 ? o + 1 : o) / 10 * (o % 2 ? -1 : 1));
    t.__curvenessList = a
}
  , rm = function(t, e, n) {
    var r = [t.id, t.dataIndex].join(".")
      , a = [e.id, e.dataIndex].join(".");
    return [n.uid, r, a].join(fk)
}
  , $ue = function(t) {
    var e = t.split(fk);
    return [e[0], e[2], e[1]].join(fk)
}
  , jrt = function(t, e) {
    var n = rm(t.node1, t.node2, e);
    return e.__edgeMap[n]
}
  , Wrt = function(t, e) {
    var n = dk(rm(t.node1, t.node2, e), e)
      , r = dk(rm(t.node2, t.node1, e), e);
    return n + r
}
  , dk = function(t, e) {
    var n = e.__edgeMap;
    return n[t] ? n[t].length : 0
};
function Grt(t) {
    !D2(t) || (t.__curvenessList = [],
    t.__edgeMap = {},
    Nue(t))
}
function Krt(t, e, n, r) {
    if (!!D2(n)) {
        var a = rm(t, e, n)
          , i = n.__edgeMap
          , o = i[$ue(a)];
        i[a] && !o ? i[a].isForward = !0 : o && i[a] && (o.isForward = !0,
        i[a].isForward = !1),
        i[a] = i[a] || [],
        i[a].push(r)
    }
}
function tL(t, e, n, r) {
    var a = D2(e)
      , i = ke(a);
    if (!a)
        return null;
    var o = jrt(t, e);
    if (!o)
        return null;
    for (var l = -1, s = 0; s < o.length; s++)
        if (o[s] === n) {
            l = s;
            break
        }
    var u = Wrt(t, e);
    Nue(e, u),
    t.lineStyle = t.lineStyle || {};
    var c = rm(t.node1, t.node2, e)
      , f = e.__curvenessList
      , d = i || u % 2 ? 0 : 1;
    if (o.isForward)
        return f[d + l];
    var v = $ue(c)
      , h = dk(v, e)
      , p = f[l + h + d];
    return r ? i ? a && a[0] === 0 ? (h + d) % 2 ? p : -p : ((h % 2 ? 0 : 1) + d) % 2 ? p : -p : (h + d) % 2 ? p : -p : f[l + h + d]
}
function Fue(t) {
    var e = t.coordinateSystem;
    if (!(e && e.type !== "view")) {
        var n = t.getGraph();
        n.eachNode(function(r) {
            var a = r.getModel();
            r.setLayout([+a.get("x"), +a.get("y")])
        }),
        nL(n, t)
    }
}
function nL(t, e) {
    t.eachEdge(function(n, r) {
        var a = ho(n.getModel().get(["lineStyle", "curveness"]), -tL(n, e, r, !0), 0)
          , i = cl(n.node1.getLayout())
          , o = cl(n.node2.getLayout())
          , l = [i, o];
        +a && l.push([(i[0] + o[0]) / 2 - (i[1] - o[1]) * a, (i[1] + o[1]) / 2 - (o[0] - i[0]) * a]),
        n.setLayout(l)
    })
}
function Urt(t, e) {
    t.eachSeriesByType("graph", function(n) {
        var r = n.get("layout")
          , a = n.coordinateSystem;
        if (a && a.type !== "view") {
            var i = n.getData()
              , o = [];
            Z(a.dimensions, function(d) {
                o = o.concat(i.mapDimensionsAll(d))
            });
            for (var l = 0; l < i.count(); l++) {
                for (var s = [], u = !1, c = 0; c < o.length; c++) {
                    var f = i.get(o[c], l);
                    isNaN(f) || (u = !0),
                    s.push(f)
                }
                u ? i.setItemLayout(l, a.dataToPoint(s)) : i.setItemLayout(l, [NaN, NaN])
            }
            nL(i.graph, n)
        } else
            (!r || r === "none") && Fue(n)
    })
}
function rg(t) {
    var e = t.coordinateSystem;
    if (e.type !== "view")
        return 1;
    var n = t.option.nodeScaleRatio
      , r = e.scaleX
      , a = e.getZoom()
      , i = (a - 1) * n + 1;
    return i / r
}
function ag(t) {
    var e = t.getVisual("symbolSize");
    return e instanceof Array && (e = (e[0] + e[1]) / 2),
    +e
}
var UG = Math.PI
  , R4 = [];
function rL(t, e, n, r) {
    var a = t.coordinateSystem;
    if (!(a && a.type !== "view")) {
        var i = a.getBoundingRect()
          , o = t.getData()
          , l = o.graph
          , s = i.width / 2 + i.x
          , u = i.height / 2 + i.y
          , c = Math.min(i.width, i.height) / 2
          , f = o.count();
        if (o.setLayout({
            cx: s,
            cy: u
        }),
        !!f) {
            if (n) {
                var d = a.pointToData(r)
                  , v = d[0]
                  , h = d[1]
                  , p = [v - s, h - u];
                td(p, p),
                Eg(p, p, c),
                n.setLayout([s + p[0], u + p[1]], !0);
                var g = t.get(["circular", "rotateLabel"]);
                Bue(n, g, s, u)
            }
            Yrt[e](t, l, o, c, s, u, f),
            l.eachEdge(function(m, y) {
                var b = ho(m.getModel().get(["lineStyle", "curveness"]), tL(m, t, y), 0), x = cl(m.node1.getLayout()), C = cl(m.node2.getLayout()), S, w = (x[0] + C[0]) / 2, T = (x[1] + C[1]) / 2;
                +b && (b *= 3,
                S = [s * b + w * (1 - b), u * b + T * (1 - b)]),
                m.setLayout([x, C, S])
            })
        }
    }
}
var Yrt = {
    value: function(t, e, n, r, a, i, o) {
        var l = 0
          , s = n.getSum("value")
          , u = Math.PI * 2 / (s || o);
        e.eachNode(function(c) {
            var f = c.getValue("value")
              , d = u * (s ? f : 1) / 2;
            l += d,
            c.setLayout([r * Math.cos(l) + a, r * Math.sin(l) + i]),
            l += d
        })
    },
    symbolSize: function(t, e, n, r, a, i, o) {
        var l = 0;
        R4.length = o;
        var s = rg(t);
        e.eachNode(function(f) {
            var d = ag(f);
            isNaN(d) && (d = 2),
            d < 0 && (d = 0),
            d *= s;
            var v = Math.asin(d / 2 / r);
            isNaN(v) && (v = UG / 2),
            R4[f.dataIndex] = v,
            l += v * 2
        });
        var u = (2 * UG - l) / o / 2
          , c = 0;
        e.eachNode(function(f) {
            var d = u + R4[f.dataIndex];
            c += d,
            (!f.getLayout() || !f.getLayout().fixed) && f.setLayout([r * Math.cos(c) + a, r * Math.sin(c) + i]),
            c += d
        })
    }
};
function Bue(t, e, n, r) {
    var a = t.getGraphicEl();
    if (!!a) {
        var i = t.getModel()
          , o = i.get(["label", "rotate"]) || 0
          , l = a.getSymbolPath();
        if (e) {
            var s = t.getLayout()
              , u = Math.atan2(s[1] - r, s[0] - n);
            u < 0 && (u = Math.PI * 2 + u);
            var c = s[0] < n;
            c && (u = u - Math.PI);
            var f = c ? "left" : "right";
            l.setTextConfig({
                rotation: -u,
                position: f,
                origin: "center"
            });
            var d = l.ensureState("emphasis");
            Me(d.textConfig || (d.textConfig = {}), {
                position: f
            })
        } else
            l.setTextConfig({
                rotation: o *= Math.PI / 180
            })
    }
}
function qrt(t) {
    t.eachSeriesByType("graph", function(e) {
        e.get("layout") === "circular" && rL(e, "symbolSize")
    })
}
var Od = xS;
function Xrt(t, e, n) {
    for (var r = t, a = e, i = n.rect, o = i.width, l = i.height, s = [i.x + o / 2, i.y + l / 2], u = n.gravity == null ? .1 : n.gravity, c = 0; c < r.length; c++) {
        var f = r[c];
        f.p || (f.p = Gu(o * (Math.random() - .5) + s[0], l * (Math.random() - .5) + s[1])),
        f.pp = cl(f.p),
        f.edges = null
    }
    var d = n.friction == null ? .6 : n.friction, v = d, h, p;
    return {
        warmUp: function() {
            v = d * .8
        },
        setFixed: function(g) {
            r[g].fixed = !0
        },
        setUnfixed: function(g) {
            r[g].fixed = !1
        },
        beforeStep: function(g) {
            h = g
        },
        afterStep: function(g) {
            p = g
        },
        step: function(g) {
            h && h(r, a);
            for (var m = [], y = r.length, b = 0; b < a.length; b++) {
                var x = a[b];
                if (!x.ignoreForceLayout) {
                    var C = x.n1
                      , S = x.n2;
                    au(m, S.p, C.p);
                    var w = O0(m) - x.d
                      , T = S.w / (C.w + S.w);
                    isNaN(T) && (T = 0),
                    td(m, m),
                    !C.fixed && Od(C.p, C.p, m, T * w * v),
                    !S.fixed && Od(S.p, S.p, m, -(1 - T) * w * v)
                }
            }
            for (var b = 0; b < y; b++) {
                var P = r[b];
                P.fixed || (au(m, s, P.p),
                Od(P.p, P.p, m, u * v))
            }
            for (var b = 0; b < y; b++)
                for (var C = r[b], M = b + 1; M < y; M++) {
                    var S = r[M];
                    au(m, S.p, C.p);
                    var w = O0(m);
                    w === 0 && (_ae(m, Math.random() - .5, Math.random() - .5),
                    w = 1);
                    var A = (C.rep + S.rep) / w / w;
                    !C.fixed && Od(C.pp, C.pp, m, A),
                    !S.fixed && Od(S.pp, S.pp, m, -A)
                }
            for (var O = [], b = 0; b < y; b++) {
                var P = r[b];
                P.fixed || (au(O, P.p, P.pp),
                Od(P.p, P.p, O, v),
                ra(P.pp, P.p))
            }
            v = v * .992;
            var k = v < .01;
            p && p(r, a, k),
            g && g(k)
        }
    }
}
function Zrt(t) {
    t.eachSeriesByType("graph", function(e) {
        var n = e.coordinateSystem;
        if (!(n && n.type !== "view"))
            if (e.get("layout") === "force") {
                var r = e.preservedPoints || {}
                  , a = e.getGraph()
                  , i = a.data
                  , o = a.edgeData
                  , l = e.getModel("force")
                  , s = l.get("initLayout");
                e.preservedPoints ? i.each(function(b) {
                    var x = i.getId(b);
                    i.setItemLayout(b, r[x] || [NaN, NaN])
                }) : !s || s === "none" ? Fue(e) : s === "circular" && rL(e, "value");
                var u = i.getDataExtent("value")
                  , c = o.getDataExtent("value")
                  , f = l.get("repulsion")
                  , d = l.get("edgeLength")
                  , v = ke(f) ? f : [f, f]
                  , h = ke(d) ? d : [d, d];
                h = [h[1], h[0]];
                var p = i.mapArray("value", function(b, x) {
                    var C = i.getItemLayout(x)
                      , S = vn(b, u, v);
                    return isNaN(S) && (S = (v[0] + v[1]) / 2),
                    {
                        w: S,
                        rep: S,
                        fixed: i.getItemModel(x).get("fixed"),
                        p: !C || isNaN(C[0]) || isNaN(C[1]) ? null : C
                    }
                })
                  , g = o.mapArray("value", function(b, x) {
                    var C = a.getEdgeByIndex(x)
                      , S = vn(b, c, h);
                    isNaN(S) && (S = (h[0] + h[1]) / 2);
                    var w = C.getModel()
                      , T = ho(C.getModel().get(["lineStyle", "curveness"]), -tL(C, e, x, !0), 0);
                    return {
                        n1: p[C.node1.dataIndex],
                        n2: p[C.node2.dataIndex],
                        d: S,
                        curveness: T,
                        ignoreForceLayout: w.get("ignoreForceLayout")
                    }
                })
                  , m = n.getBoundingRect()
                  , y = Xrt(p, g, {
                    rect: m,
                    gravity: l.get("gravity"),
                    friction: l.get("friction")
                });
                y.beforeStep(function(b, x) {
                    for (var C = 0, S = b.length; C < S; C++)
                        b[C].fixed && ra(b[C].p, a.getNodeByIndex(C).getLayout())
                }),
                y.afterStep(function(b, x, C) {
                    for (var S = 0, w = b.length; S < w; S++)
                        b[S].fixed || a.getNodeByIndex(S).setLayout(b[S].p),
                        r[i.getId(S)] = b[S].p;
                    for (var S = 0, w = x.length; S < w; S++) {
                        var T = x[S]
                          , P = a.getEdgeByIndex(S)
                          , M = T.n1.p
                          , A = T.n2.p
                          , O = P.getLayout();
                        O = O ? O.slice() : [],
                        O[0] = O[0] || [],
                        O[1] = O[1] || [],
                        ra(O[0], M),
                        ra(O[1], A),
                        +T.curveness && (O[2] = [(M[0] + A[0]) / 2 - (M[1] - A[1]) * T.curveness, (M[1] + A[1]) / 2 - (A[0] - M[0]) * T.curveness]),
                        P.setLayout(O)
                    }
                }),
                e.forceLayout = y,
                e.preservedPoints = r,
                y.step()
            } else
                e.forceLayout = null
    })
}
function Qrt(t, e, n) {
    var r = Me(t.getBoxLayoutParams(), {
        aspect: n
    });
    return xr(r, {
        width: e.getWidth(),
        height: e.getHeight()
    })
}
function Jrt(t, e) {
    var n = [];
    return t.eachSeriesByType("graph", function(r) {
        var a = r.get("coordinateSystem");
        if (!a || a === "view") {
            var i = r.getData()
              , o = i.mapArray(function(g) {
                var m = i.getItemModel(g);
                return [+m.get("x"), +m.get("y")]
            })
              , l = []
              , s = [];
            a2(o, l, s),
            s[0] - l[0] === 0 && (s[0] += 1,
            l[0] -= 1),
            s[1] - l[1] === 0 && (s[1] += 1,
            l[1] -= 1);
            var u = (s[0] - l[0]) / (s[1] - l[1])
              , c = Qrt(r, e, u);
            isNaN(u) && (l = [c.x, c.y],
            s = [c.x + c.width, c.y + c.height]);
            var f = s[0] - l[0]
              , d = s[1] - l[1]
              , v = c.width
              , h = c.height
              , p = r.coordinateSystem = new cy;
            p.zoomLimit = r.get("scaleLimit"),
            p.setBoundingRect(l[0], l[1], f, d),
            p.setViewRect(c.x, c.y, v, h),
            p.setCenter(r.get("center"), e),
            p.setZoom(r.get("zoom")),
            n.push(p)
        }
    }),
    n
}
var YG = Or.prototype
  , N4 = Xm.prototype
  , Vue = function() {
    function t() {
        this.x1 = 0,
        this.y1 = 0,
        this.x2 = 0,
        this.y2 = 0,
        this.percent = 1
    }
    return t
}();
(function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e
}
)(Vue);
function $4(t) {
    return isNaN(+t.cpx1) || isNaN(+t.cpy1)
}
var eat = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r.type = "ec-line",
        r
    }
    return e.prototype.getDefaultStyle = function() {
        return {
            stroke: "#000",
            fill: null
        }
    }
    ,
    e.prototype.getDefaultShape = function() {
        return new Vue
    }
    ,
    e.prototype.buildPath = function(n, r) {
        $4(r) ? YG.buildPath.call(this, n, r) : N4.buildPath.call(this, n, r)
    }
    ,
    e.prototype.pointAt = function(n) {
        return $4(this.shape) ? YG.pointAt.call(this, n) : N4.pointAt.call(this, n)
    }
    ,
    e.prototype.tangentAt = function(n) {
        var r = this.shape
          , a = $4(r) ? [r.x2 - r.x1, r.y2 - r.y1] : N4.tangentAt.call(this, n);
        return td(a, a)
    }
    ,
    e
}(jt);
const tat = eat;
var F4 = ["fromSymbol", "toSymbol"];
function qG(t) {
    return "_" + t + "Type"
}
function XG(t, e, n) {
    var r = e.getItemVisual(n, t);
    if (!r || r === "none")
        return r;
    var a = e.getItemVisual(n, t + "Size")
      , i = e.getItemVisual(n, t + "Rotate")
      , o = e.getItemVisual(n, t + "Offset")
      , l = e.getItemVisual(n, t + "KeepAspect")
      , s = Bh(a)
      , u = id(o || 0, s);
    return r + s + u + (i || "") + (l || "")
}
function ZG(t, e, n) {
    var r = e.getItemVisual(n, t);
    if (!(!r || r === "none")) {
        var a = e.getItemVisual(n, t + "Size")
          , i = e.getItemVisual(n, t + "Rotate")
          , o = e.getItemVisual(n, t + "Offset")
          , l = e.getItemVisual(n, t + "KeepAspect")
          , s = Bh(a)
          , u = id(o || 0, s)
          , c = fr(r, -s[0] / 2 + u[0], -s[1] / 2 + u[1], s[0], s[1], null, l);
        return c.__specifiedRotation = i == null || isNaN(i) ? void 0 : +i * Math.PI / 180 || 0,
        c.name = t,
        c
    }
}
function nat(t) {
    var e = new tat({
        name: "line",
        subPixelOptimize: !0
    });
    return vk(e.shape, t),
    e
}
function vk(t, e) {
    t.x1 = e[0][0],
    t.y1 = e[0][1],
    t.x2 = e[1][0],
    t.y2 = e[1][1],
    t.percent = 1;
    var n = e[2];
    n ? (t.cpx1 = n[0],
    t.cpy1 = n[1]) : (t.cpx1 = NaN,
    t.cpy1 = NaN)
}
var rat = function(t) {
    ge(e, t);
    function e(n, r, a) {
        var i = t.call(this) || this;
        return i._createLine(n, r, a),
        i
    }
    return e.prototype._createLine = function(n, r, a) {
        var i = n.hostModel
          , o = n.getItemLayout(r)
          , l = nat(o);
        l.shape.percent = 0,
        $n(l, {
            shape: {
                percent: 1
            }
        }, i, r),
        this.add(l),
        Z(F4, function(s) {
            var u = ZG(s, n, r);
            this.add(u),
            this[qG(s)] = XG(s, n, r)
        }, this),
        this._updateCommonStl(n, r, a)
    }
    ,
    e.prototype.updateData = function(n, r, a) {
        var i = n.hostModel
          , o = this.childOfName("line")
          , l = n.getItemLayout(r)
          , s = {
            shape: {}
        };
        vk(s.shape, l),
        ln(o, s, i, r),
        Z(F4, function(u) {
            var c = XG(u, n, r)
              , f = qG(u);
            if (this[f] !== c) {
                this.remove(this.childOfName(u));
                var d = ZG(u, n, r);
                this.add(d)
            }
            this[f] = c
        }, this),
        this._updateCommonStl(n, r, a)
    }
    ,
    e.prototype.getLinePath = function() {
        return this.childAt(0)
    }
    ,
    e.prototype._updateCommonStl = function(n, r, a) {
        var i = n.hostModel
          , o = this.childOfName("line")
          , l = a && a.emphasisLineStyle
          , s = a && a.blurLineStyle
          , u = a && a.selectLineStyle
          , c = a && a.labelStatesModels
          , f = a && a.emphasisDisabled
          , d = a && a.focus
          , v = a && a.blurScope;
        if (!a || n.hasItemOption) {
            var h = n.getItemModel(r)
              , p = h.getModel("emphasis");
            l = p.getModel("lineStyle").getLineStyle(),
            s = h.getModel(["blur", "lineStyle"]).getLineStyle(),
            u = h.getModel(["select", "lineStyle"]).getLineStyle(),
            f = p.get("disabled"),
            d = p.get("focus"),
            v = p.get("blurScope"),
            c = Nr(h)
        }
        var g = n.getItemVisual(r, "style")
          , m = g.stroke;
        o.useStyle(g),
        o.style.fill = null,
        o.style.strokeNoScale = !0,
        o.ensureState("emphasis").style = l,
        o.ensureState("blur").style = s,
        o.ensureState("select").style = u,
        Z(F4, function(S) {
            var w = this.childOfName(S);
            if (w) {
                w.setColor(m),
                w.style.opacity = g.opacity;
                for (var T = 0; T < Ta.length; T++) {
                    var P = Ta[T]
                      , M = o.getState(P);
                    if (M) {
                        var A = M.style || {}
                          , O = w.ensureState(P)
                          , k = O.style || (O.style = {});
                        A.stroke != null && (k[w.__isEmptyBrush ? "stroke" : "fill"] = A.stroke),
                        A.opacity != null && (k.opacity = A.opacity)
                    }
                }
                w.markRedraw()
            }
        }, this);
        var y = i.getRawValue(r);
        ea(this, c, {
            labelDataIndex: r,
            labelFetcher: {
                getFormattedLabel: function(S, w) {
                    return i.getFormattedLabel(S, w, n.dataType)
                }
            },
            inheritColor: m || "#000",
            defaultOpacity: g.opacity,
            defaultText: (y == null ? n.getName(r) : isFinite(y) ? Zn(y) : y) + ""
        });
        var b = this.getTextContent();
        if (b) {
            var x = c.normal;
            b.__align = b.style.align,
            b.__verticalAlign = b.style.verticalAlign,
            b.__position = x.get("position") || "middle";
            var C = x.get("distance");
            ke(C) || (C = [C, C]),
            b.__labelDistance = C
        }
        this.setTextConfig({
            position: null,
            local: !0,
            inside: !1
        }),
        Qn(this, d, v, f)
    }
    ,
    e.prototype.highlight = function() {
        us(this)
    }
    ,
    e.prototype.downplay = function() {
        cs(this)
    }
    ,
    e.prototype.updateLayout = function(n, r) {
        this.setLinePoints(n.getItemLayout(r))
    }
    ,
    e.prototype.setLinePoints = function(n) {
        var r = this.childOfName("line");
        vk(r.shape, n),
        r.dirty()
    }
    ,
    e.prototype.beforeUpdate = function() {
        var n = this
          , r = n.childOfName("fromSymbol")
          , a = n.childOfName("toSymbol")
          , i = n.getTextContent();
        if (!r && !a && (!i || i.ignore))
            return;
        for (var o = 1, l = this.parent; l; )
            l.scaleX && (o /= l.scaleX),
            l = l.parent;
        var s = n.childOfName("line");
        if (!this.__dirty && !s.__dirty)
            return;
        var u = s.shape.percent
          , c = s.pointAt(0)
          , f = s.pointAt(u)
          , d = au([], f, c);
        td(d, d);
        function v(M, A) {
            var O = M.__specifiedRotation;
            if (O == null) {
                var k = s.tangentAt(A);
                M.attr("rotation", (A === 1 ? -1 : 1) * Math.PI / 2 - Math.atan2(k[1], k[0]))
            } else
                M.attr("rotation", O)
        }
        if (r && (r.setPosition(c),
        v(r, 0),
        r.scaleX = r.scaleY = o * u,
        r.markRedraw()),
        a && (a.setPosition(f),
        v(a, 1),
        a.scaleX = a.scaleY = o * u,
        a.markRedraw()),
        i && !i.ignore) {
            i.x = i.y = 0,
            i.originX = i.originY = 0;
            var h = void 0
              , p = void 0
              , g = i.__labelDistance
              , m = g[0] * o
              , y = g[1] * o
              , b = u / 2
              , x = s.tangentAt(b)
              , C = [x[1], -x[0]]
              , S = s.pointAt(b);
            C[1] > 0 && (C[0] = -C[0],
            C[1] = -C[1]);
            var w = x[0] < 0 ? -1 : 1;
            if (i.__position !== "start" && i.__position !== "end") {
                var T = -Math.atan2(x[1], x[0]);
                f[0] < c[0] && (T = Math.PI + T),
                i.rotation = T
            }
            var P = void 0;
            switch (i.__position) {
            case "insideStartTop":
            case "insideMiddleTop":
            case "insideEndTop":
            case "middle":
                P = -y,
                p = "bottom";
                break;
            case "insideStartBottom":
            case "insideMiddleBottom":
            case "insideEndBottom":
                P = y,
                p = "top";
                break;
            default:
                P = 0,
                p = "middle"
            }
            switch (i.__position) {
            case "end":
                i.x = d[0] * m + f[0],
                i.y = d[1] * y + f[1],
                h = d[0] > .8 ? "left" : d[0] < -.8 ? "right" : "center",
                p = d[1] > .8 ? "top" : d[1] < -.8 ? "bottom" : "middle";
                break;
            case "start":
                i.x = -d[0] * m + c[0],
                i.y = -d[1] * y + c[1],
                h = d[0] > .8 ? "right" : d[0] < -.8 ? "left" : "center",
                p = d[1] > .8 ? "bottom" : d[1] < -.8 ? "top" : "middle";
                break;
            case "insideStartTop":
            case "insideStart":
            case "insideStartBottom":
                i.x = m * w + c[0],
                i.y = c[1] + P,
                h = x[0] < 0 ? "right" : "left",
                i.originX = -m * w,
                i.originY = -P;
                break;
            case "insideMiddleTop":
            case "insideMiddle":
            case "insideMiddleBottom":
            case "middle":
                i.x = S[0],
                i.y = S[1] + P,
                h = "center",
                i.originY = -P;
                break;
            case "insideEndTop":
            case "insideEnd":
            case "insideEndBottom":
                i.x = -m * w + f[0],
                i.y = f[1] + P,
                h = x[0] >= 0 ? "right" : "left",
                i.originX = m * w,
                i.originY = -P;
                break
            }
            i.scaleX = i.scaleY = o,
            i.setStyle({
                verticalAlign: i.__verticalAlign || p,
                align: i.__align || h
            })
        }
    }
    ,
    e
}(mt);
const aL = rat;
var aat = function() {
    function t(e) {
        this.group = new mt,
        this._LineCtor = e || aL
    }
    return t.prototype.updateData = function(e) {
        var n = this;
        this._progressiveEls = null;
        var r = this
          , a = r.group
          , i = r._lineData;
        r._lineData = e,
        i || a.removeAll();
        var o = QG(e);
        e.diff(i).add(function(l) {
            n._doAdd(e, l, o)
        }).update(function(l, s) {
            n._doUpdate(i, e, s, l, o)
        }).remove(function(l) {
            a.remove(i.getItemGraphicEl(l))
        }).execute()
    }
    ,
    t.prototype.updateLayout = function() {
        var e = this._lineData;
        !e || e.eachItemGraphicEl(function(n, r) {
            n.updateLayout(e, r)
        }, this)
    }
    ,
    t.prototype.incrementalPrepareUpdate = function(e) {
        this._seriesScope = QG(e),
        this._lineData = null,
        this.group.removeAll()
    }
    ,
    t.prototype.incrementalUpdate = function(e, n) {
        this._progressiveEls = [];
        function r(l) {
            !l.isGroup && !iat(l) && (l.incremental = !0,
            l.ensureState("emphasis").hoverLayer = !0)
        }
        for (var a = e.start; a < e.end; a++) {
            var i = n.getItemLayout(a);
            if (B4(i)) {
                var o = new this._LineCtor(n,a,this._seriesScope);
                o.traverse(r),
                this.group.add(o),
                n.setItemGraphicEl(a, o),
                this._progressiveEls.push(o)
            }
        }
    }
    ,
    t.prototype.remove = function() {
        this.group.removeAll()
    }
    ,
    t.prototype.eachRendered = function(e) {
        Uu(this._progressiveEls || this.group, e)
    }
    ,
    t.prototype._doAdd = function(e, n, r) {
        var a = e.getItemLayout(n);
        if (!!B4(a)) {
            var i = new this._LineCtor(e,n,r);
            e.setItemGraphicEl(n, i),
            this.group.add(i)
        }
    }
    ,
    t.prototype._doUpdate = function(e, n, r, a, i) {
        var o = e.getItemGraphicEl(r);
        if (!B4(n.getItemLayout(a))) {
            this.group.remove(o);
            return
        }
        o ? o.updateData(n, a, i) : o = new this._LineCtor(n,a,i),
        n.setItemGraphicEl(a, o),
        this.group.add(o)
    }
    ,
    t
}();
function iat(t) {
    return t.animators && t.animators.length > 0
}
function QG(t) {
    var e = t.hostModel
      , n = e.getModel("emphasis");
    return {
        lineStyle: e.getModel("lineStyle").getLineStyle(),
        emphasisLineStyle: n.getModel(["lineStyle"]).getLineStyle(),
        blurLineStyle: e.getModel(["blur", "lineStyle"]).getLineStyle(),
        selectLineStyle: e.getModel(["select", "lineStyle"]).getLineStyle(),
        emphasisDisabled: n.get("disabled"),
        blurScope: n.get("blurScope"),
        focus: n.get("focus"),
        labelStatesModels: Nr(e)
    }
}
function JG(t) {
    return isNaN(t[0]) || isNaN(t[1])
}
function B4(t) {
    return t && !JG(t[0]) && !JG(t[1])
}
const iL = aat;
var V4 = []
  , z4 = []
  , H4 = []
  , Dd = Br
  , j4 = yu
  , eK = Math.abs;
function tK(t, e, n) {
    for (var r = t[0], a = t[1], i = t[2], o = 1 / 0, l, s = n * n, u = .1, c = .1; c <= .9; c += .1) {
        V4[0] = Dd(r[0], a[0], i[0], c),
        V4[1] = Dd(r[1], a[1], i[1], c);
        var f = eK(j4(V4, e) - s);
        f < o && (o = f,
        l = c)
    }
    for (var d = 0; d < 32; d++) {
        var v = l + u;
        z4[0] = Dd(r[0], a[0], i[0], l),
        z4[1] = Dd(r[1], a[1], i[1], l),
        H4[0] = Dd(r[0], a[0], i[0], v),
        H4[1] = Dd(r[1], a[1], i[1], v);
        var f = j4(z4, e) - s;
        if (eK(f) < .01)
            break;
        var h = j4(H4, e) - s;
        u /= 2,
        f < 0 ? h >= 0 ? l = l + u : l = l - u : h >= 0 ? l = l - u : l = l + u
    }
    return l
}
function W4(t, e) {
    var n = []
      , r = D0
      , a = [[], [], []]
      , i = [[], []]
      , o = [];
    e /= 2,
    t.eachEdge(function(l, s) {
        var u = l.getLayout()
          , c = l.getVisual("fromSymbol")
          , f = l.getVisual("toSymbol");
        u.__original || (u.__original = [cl(u[0]), cl(u[1])],
        u[2] && u.__original.push(cl(u[2])));
        var d = u.__original;
        if (u[2] != null) {
            if (ra(a[0], d[0]),
            ra(a[1], d[2]),
            ra(a[2], d[1]),
            c && c !== "none") {
                var v = ag(l.node1)
                  , h = tK(a, d[0], v * e);
                r(a[0][0], a[1][0], a[2][0], h, n),
                a[0][0] = n[3],
                a[1][0] = n[4],
                r(a[0][1], a[1][1], a[2][1], h, n),
                a[0][1] = n[3],
                a[1][1] = n[4]
            }
            if (f && f !== "none") {
                var v = ag(l.node2)
                  , h = tK(a, d[1], v * e);
                r(a[0][0], a[1][0], a[2][0], h, n),
                a[1][0] = n[1],
                a[2][0] = n[2],
                r(a[0][1], a[1][1], a[2][1], h, n),
                a[1][1] = n[1],
                a[2][1] = n[2]
            }
            ra(u[0], a[0]),
            ra(u[1], a[2]),
            ra(u[2], a[1])
        } else {
            if (ra(i[0], d[0]),
            ra(i[1], d[1]),
            au(o, i[1], i[0]),
            td(o, o),
            c && c !== "none") {
                var v = ag(l.node1);
                xS(i[0], i[0], o, v * e)
            }
            if (f && f !== "none") {
                var v = ag(l.node2);
                xS(i[1], i[1], o, -v * e)
            }
            ra(u[0], i[0]),
            ra(u[1], i[1])
        }
    })
}
function nK(t) {
    return t.type === "view"
}
var oat = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function(n, r) {
        var a = new iy
          , i = new iL
          , o = this.group;
        this._controller = new uy(r.getZr()),
        this._controllerHost = {
            target: o
        },
        o.add(a.group),
        o.add(i.group),
        this._symbolDraw = a,
        this._lineDraw = i,
        this._firstRender = !0
    }
    ,
    e.prototype.render = function(n, r, a) {
        var i = this
          , o = n.coordinateSystem;
        this._model = n;
        var l = this._symbolDraw
          , s = this._lineDraw
          , u = this.group;
        if (nK(o)) {
            var c = {
                x: o.x,
                y: o.y,
                scaleX: o.scaleX,
                scaleY: o.scaleY
            };
            this._firstRender ? u.attr(c) : ln(u, c, n)
        }
        W4(n.getGraph(), rg(n));
        var f = n.getData();
        l.updateData(f);
        var d = n.getEdgeData();
        s.updateData(d),
        this._updateNodeAndLinkScale(),
        this._updateController(n, r, a),
        clearTimeout(this._layoutTimeout);
        var v = n.forceLayout
          , h = n.get(["force", "layoutAnimation"]);
        v && this._startForceLayoutIteration(v, h);
        var p = n.get("layout");
        f.graph.eachNode(function(b) {
            var x = b.dataIndex
              , C = b.getGraphicEl()
              , S = b.getModel();
            if (!!C) {
                C.off("drag").off("dragend");
                var w = S.get("draggable");
                w && C.on("drag", function(P) {
                    switch (p) {
                    case "force":
                        v.warmUp(),
                        !i._layouting && i._startForceLayoutIteration(v, h),
                        v.setFixed(x),
                        f.setItemLayout(x, [C.x, C.y]);
                        break;
                    case "circular":
                        f.setItemLayout(x, [C.x, C.y]),
                        b.setLayout({
                            fixed: !0
                        }, !0),
                        rL(n, "symbolSize", b, [P.offsetX, P.offsetY]),
                        i.updateLayout(n);
                        break;
                    case "none":
                    default:
                        f.setItemLayout(x, [C.x, C.y]),
                        nL(n.getGraph(), n),
                        i.updateLayout(n);
                        break
                    }
                }).on("dragend", function() {
                    v && v.setUnfixed(x)
                }),
                C.setDraggable(w, !!S.get("cursor"));
                var T = S.get(["emphasis", "focus"]);
                T === "adjacency" && (Ct(C).focus = b.getAdjacentDataIndices())
            }
        }),
        f.graph.eachEdge(function(b) {
            var x = b.getGraphicEl()
              , C = b.getModel().get(["emphasis", "focus"]);
            !x || C === "adjacency" && (Ct(x).focus = {
                edge: [b.dataIndex],
                node: [b.node1.dataIndex, b.node2.dataIndex]
            })
        });
        var g = n.get("layout") === "circular" && n.get(["circular", "rotateLabel"])
          , m = f.getLayout("cx")
          , y = f.getLayout("cy");
        f.graph.eachNode(function(b) {
            Bue(b, g, m, y)
        }),
        this._firstRender = !1
    }
    ,
    e.prototype.dispose = function() {
        this._controller && this._controller.dispose(),
        this._controllerHost = null
    }
    ,
    e.prototype._startForceLayoutIteration = function(n, r) {
        var a = this;
        (function i() {
            n.step(function(o) {
                a.updateLayout(a._model),
                (a._layouting = !o) && (r ? a._layoutTimeout = setTimeout(i, 16) : i())
            })
        }
        )()
    }
    ,
    e.prototype._updateController = function(n, r, a) {
        var i = this
          , o = this._controller
          , l = this._controllerHost
          , s = this.group;
        if (o.setPointerChecker(function(u, c, f) {
            var d = s.getBoundingRect();
            return d.applyTransform(s.transform),
            d.contain(c, f) && !I2(u, a, n)
        }),
        !nK(n.coordinateSystem)) {
            o.disable();
            return
        }
        o.enable(n.get("roam")),
        l.zoomLimit = n.get("scaleLimit"),
        l.zoom = n.coordinateSystem.getZoom(),
        o.off("pan").off("zoom").on("pan", function(u) {
            K5(l, u.dx, u.dy),
            a.dispatchAction({
                seriesId: n.id,
                type: "graphRoam",
                dx: u.dx,
                dy: u.dy
            })
        }).on("zoom", function(u) {
            U5(l, u.scale, u.originX, u.originY),
            a.dispatchAction({
                seriesId: n.id,
                type: "graphRoam",
                zoom: u.scale,
                originX: u.originX,
                originY: u.originY
            }),
            i._updateNodeAndLinkScale(),
            W4(n.getGraph(), rg(n)),
            i._lineDraw.updateLayout(),
            a.updateLabelLayout()
        })
    }
    ,
    e.prototype._updateNodeAndLinkScale = function() {
        var n = this._model
          , r = n.getData()
          , a = rg(n);
        r.eachItemGraphicEl(function(i, o) {
            i && i.setSymbolScale(a)
        })
    }
    ,
    e.prototype.updateLayout = function(n) {
        W4(n.getGraph(), rg(n)),
        this._symbolDraw.updateLayout(),
        this._lineDraw.updateLayout()
    }
    ,
    e.prototype.remove = function(n, r) {
        this._symbolDraw && this._symbolDraw.remove(),
        this._lineDraw && this._lineDraw.remove()
    }
    ,
    e.type = "graph",
    e
}(Tn);
const lat = oat;
function Ed(t) {
    return "_EC_" + t
}
var sat = function() {
    function t(e) {
        this.type = "graph",
        this.nodes = [],
        this.edges = [],
        this._nodesMap = {},
        this._edgesMap = {},
        this._directed = e || !1
    }
    return t.prototype.isDirected = function() {
        return this._directed
    }
    ,
    t.prototype.addNode = function(e, n) {
        e = e == null ? "" + n : "" + e;
        var r = this._nodesMap;
        if (!r[Ed(e)]) {
            var a = new $c(e,n);
            return a.hostGraph = this,
            this.nodes.push(a),
            r[Ed(e)] = a,
            a
        }
    }
    ,
    t.prototype.getNodeByIndex = function(e) {
        var n = this.data.getRawIndex(e);
        return this.nodes[n]
    }
    ,
    t.prototype.getNodeById = function(e) {
        return this._nodesMap[Ed(e)]
    }
    ,
    t.prototype.addEdge = function(e, n, r) {
        var a = this._nodesMap
          , i = this._edgesMap;
        if (rn(e) && (e = this.nodes[e]),
        rn(n) && (n = this.nodes[n]),
        e instanceof $c || (e = a[Ed(e)]),
        n instanceof $c || (n = a[Ed(n)]),
        !(!e || !n)) {
            var o = e.id + "-" + n.id
              , l = new zue(e,n,r);
            return l.hostGraph = this,
            this._directed && (e.outEdges.push(l),
            n.inEdges.push(l)),
            e.edges.push(l),
            e !== n && n.edges.push(l),
            this.edges.push(l),
            i[o] = l,
            l
        }
    }
    ,
    t.prototype.getEdgeByIndex = function(e) {
        var n = this.edgeData.getRawIndex(e);
        return this.edges[n]
    }
    ,
    t.prototype.getEdge = function(e, n) {
        e instanceof $c && (e = e.id),
        n instanceof $c && (n = n.id);
        var r = this._edgesMap;
        return this._directed ? r[e + "-" + n] : r[e + "-" + n] || r[n + "-" + e]
    }
    ,
    t.prototype.eachNode = function(e, n) {
        for (var r = this.nodes, a = r.length, i = 0; i < a; i++)
            r[i].dataIndex >= 0 && e.call(n, r[i], i)
    }
    ,
    t.prototype.eachEdge = function(e, n) {
        for (var r = this.edges, a = r.length, i = 0; i < a; i++)
            r[i].dataIndex >= 0 && r[i].node1.dataIndex >= 0 && r[i].node2.dataIndex >= 0 && e.call(n, r[i], i)
    }
    ,
    t.prototype.breadthFirstTraverse = function(e, n, r, a) {
        if (n instanceof $c || (n = this._nodesMap[Ed(n)]),
        !!n) {
            for (var i = r === "out" ? "outEdges" : r === "in" ? "inEdges" : "edges", o = 0; o < this.nodes.length; o++)
                this.nodes[o].__visited = !1;
            if (!e.call(a, n, null))
                for (var l = [n]; l.length; )
                    for (var s = l.shift(), u = s[i], o = 0; o < u.length; o++) {
                        var c = u[o]
                          , f = c.node1 === s ? c.node2 : c.node1;
                        if (!f.__visited) {
                            if (e.call(a, f, s))
                                return;
                            l.push(f),
                            f.__visited = !0
                        }
                    }
        }
    }
    ,
    t.prototype.update = function() {
        for (var e = this.data, n = this.edgeData, r = this.nodes, a = this.edges, i = 0, o = r.length; i < o; i++)
            r[i].dataIndex = -1;
        for (var i = 0, o = e.count(); i < o; i++)
            r[e.getRawIndex(i)].dataIndex = i;
        n.filterSelf(function(l) {
            var s = a[n.getRawIndex(l)];
            return s.node1.dataIndex >= 0 && s.node2.dataIndex >= 0
        });
        for (var i = 0, o = a.length; i < o; i++)
            a[i].dataIndex = -1;
        for (var i = 0, o = n.count(); i < o; i++)
            a[n.getRawIndex(i)].dataIndex = i
    }
    ,
    t.prototype.clone = function() {
        for (var e = new t(this._directed), n = this.nodes, r = this.edges, a = 0; a < n.length; a++)
            e.addNode(n[a].id, n[a].dataIndex);
        for (var a = 0; a < r.length; a++) {
            var i = r[a];
            e.addEdge(i.node1.id, i.node2.id, i.dataIndex)
        }
        return e
    }
    ,
    t
}()
  , $c = function() {
    function t(e, n) {
        this.inEdges = [],
        this.outEdges = [],
        this.edges = [],
        this.dataIndex = -1,
        this.id = e == null ? "" : e,
        this.dataIndex = n == null ? -1 : n
    }
    return t.prototype.degree = function() {
        return this.edges.length
    }
    ,
    t.prototype.inDegree = function() {
        return this.inEdges.length
    }
    ,
    t.prototype.outDegree = function() {
        return this.outEdges.length
    }
    ,
    t.prototype.getModel = function(e) {
        if (!(this.dataIndex < 0)) {
            var n = this.hostGraph
              , r = n.data.getItemModel(this.dataIndex);
            return r.getModel(e)
        }
    }
    ,
    t.prototype.getAdjacentDataIndices = function() {
        for (var e = {
            edge: [],
            node: []
        }, n = 0; n < this.edges.length; n++) {
            var r = this.edges[n];
            r.dataIndex < 0 || (e.edge.push(r.dataIndex),
            e.node.push(r.node1.dataIndex, r.node2.dataIndex))
        }
        return e
    }
    ,
    t.prototype.getTrajectoryDataIndices = function() {
        for (var e = Qe(), n = Qe(), r = 0; r < this.edges.length; r++) {
            var a = this.edges[r];
            if (!(a.dataIndex < 0)) {
                e.set(a.dataIndex, !0);
                for (var i = [a.node1], o = [a.node2], l = 0; l < i.length; ) {
                    var s = i[l];
                    l++,
                    n.set(s.dataIndex, !0);
                    for (var u = 0; u < s.inEdges.length; u++)
                        e.set(s.inEdges[u].dataIndex, !0),
                        i.push(s.inEdges[u].node1)
                }
                for (l = 0; l < o.length; ) {
                    var c = o[l];
                    l++,
                    n.set(c.dataIndex, !0);
                    for (var u = 0; u < c.outEdges.length; u++)
                        e.set(c.outEdges[u].dataIndex, !0),
                        o.push(c.outEdges[u].node2)
                }
            }
        }
        return {
            edge: e.keys(),
            node: n.keys()
        }
    }
    ,
    t
}()
  , zue = function() {
    function t(e, n, r) {
        this.dataIndex = -1,
        this.node1 = e,
        this.node2 = n,
        this.dataIndex = r == null ? -1 : r
    }
    return t.prototype.getModel = function(e) {
        if (!(this.dataIndex < 0)) {
            var n = this.hostGraph
              , r = n.edgeData.getItemModel(this.dataIndex);
            return r.getModel(e)
        }
    }
    ,
    t.prototype.getAdjacentDataIndices = function() {
        return {
            edge: [this.dataIndex],
            node: [this.node1.dataIndex, this.node2.dataIndex]
        }
    }
    ,
    t.prototype.getTrajectoryDataIndices = function() {
        var e = Qe()
          , n = Qe();
        e.set(this.dataIndex, !0);
        for (var r = [this.node1], a = [this.node2], i = 0; i < r.length; ) {
            var o = r[i];
            i++,
            n.set(o.dataIndex, !0);
            for (var l = 0; l < o.inEdges.length; l++)
                e.set(o.inEdges[l].dataIndex, !0),
                r.push(o.inEdges[l].node1)
        }
        for (i = 0; i < a.length; ) {
            var s = a[i];
            i++,
            n.set(s.dataIndex, !0);
            for (var l = 0; l < s.outEdges.length; l++)
                e.set(s.outEdges[l].dataIndex, !0),
                a.push(s.outEdges[l].node2)
        }
        return {
            edge: e.keys(),
            node: n.keys()
        }
    }
    ,
    t
}();
function Hue(t, e) {
    return {
        getValue: function(n) {
            var r = this[t][e];
            return r.getStore().get(r.getDimensionIndex(n || "value"), this.dataIndex)
        },
        setVisual: function(n, r) {
            this.dataIndex >= 0 && this[t][e].setItemVisual(this.dataIndex, n, r)
        },
        getVisual: function(n) {
            return this[t][e].getItemVisual(this.dataIndex, n)
        },
        setLayout: function(n, r) {
            this.dataIndex >= 0 && this[t][e].setItemLayout(this.dataIndex, n, r)
        },
        getLayout: function() {
            return this[t][e].getItemLayout(this.dataIndex)
        },
        getGraphicEl: function() {
            return this[t][e].getItemGraphicEl(this.dataIndex)
        },
        getRawIndex: function() {
            return this[t][e].getRawIndex(this.dataIndex)
        }
    }
}
ir($c, Hue("hostGraph", "data"));
ir(zue, Hue("hostGraph", "edgeData"));
const uat = sat;
function jue(t, e, n, r, a) {
    for (var i = new uat(r), o = 0; o < t.length; o++)
        i.addNode(kr(t[o].id, t[o].name, o), o);
    for (var l = [], s = [], u = 0, o = 0; o < e.length; o++) {
        var c = e[o]
          , f = c.source
          , d = c.target;
        i.addEdge(f, d, u) && (s.push(c),
        l.push(kr(_r(c.id, null), f + " > " + d)),
        u++)
    }
    var v = n.get("coordinateSystem"), h;
    if (v === "cartesian2d" || v === "polar")
        h = Pl(t, n);
    else {
        var p = Nh.get(v)
          , g = p ? p.dimensions || [] : [];
        Rt(g, "value") < 0 && g.concat(["value"]);
        var m = Vh(t, {
            coordDimensions: g,
            encodeDefine: n.getEncode()
        }).dimensions;
        h = new oa(m,n),
        h.initData(t)
    }
    var y = new oa(["value"],n);
    return y.initData(s, l),
    a && a(h, y),
    _ue({
        mainData: h,
        struct: i,
        structAttr: "graph",
        datas: {
            node: h,
            edge: y
        },
        datasAttr: {
            node: "data",
            edge: "edgeData"
        }
    }),
    i.update(),
    i
}
var cat = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.hasSymbolVisual = !0,
        n
    }
    return e.prototype.init = function(n) {
        t.prototype.init.apply(this, arguments);
        var r = this;
        function a() {
            return r._categoriesData
        }
        this.legendVisualProvider = new sy(a,a),
        this.fillDataTextStyle(n.edges || n.links),
        this._updateCategoriesData()
    }
    ,
    e.prototype.mergeOption = function(n) {
        t.prototype.mergeOption.apply(this, arguments),
        this.fillDataTextStyle(n.edges || n.links),
        this._updateCategoriesData()
    }
    ,
    e.prototype.mergeDefaultAndTheme = function(n) {
        t.prototype.mergeDefaultAndTheme.apply(this, arguments),
        Nf(n, "edgeLabel", ["show"])
    }
    ,
    e.prototype.getInitialData = function(n, r) {
        var a = n.edges || n.links || []
          , i = n.data || n.nodes || []
          , o = this;
        if (i && a) {
            Grt(this);
            var l = jue(i, a, this, !0, s);
            return Z(l.edges, function(u) {
                Krt(u.node1, u.node2, this, u.dataIndex)
            }, this),
            l.data
        }
        function s(u, c) {
            u.wrapMethod("getItemModel", function(h) {
                var p = o._categoriesModels
                  , g = h.getShallow("category")
                  , m = p[g];
                return m && (m.parentModel = h.parentModel,
                h.parentModel = m),
                h
            });
            var f = wn.prototype.getModel;
            function d(h, p) {
                var g = f.call(this, h, p);
                return g.resolveParentPath = v,
                g
            }
            c.wrapMethod("getItemModel", function(h) {
                return h.resolveParentPath = v,
                h.getModel = d,
                h
            });
            function v(h) {
                if (h && (h[0] === "label" || h[1] === "label")) {
                    var p = h.slice();
                    return h[0] === "label" ? p[0] = "edgeLabel" : h[1] === "label" && (p[1] = "edgeLabel"),
                    p
                }
                return h
            }
        }
    }
    ,
    e.prototype.getGraph = function() {
        return this.getData().graph
    }
    ,
    e.prototype.getEdgeData = function() {
        return this.getGraph().edgeData
    }
    ,
    e.prototype.getCategoriesData = function() {
        return this._categoriesData
    }
    ,
    e.prototype.formatTooltip = function(n, r, a) {
        if (a === "edge") {
            var i = this.getData()
              , o = this.getDataParams(n, a)
              , l = i.graph.getEdgeByIndex(n)
              , s = i.getName(l.node1.dataIndex)
              , u = i.getName(l.node2.dataIndex)
              , c = [];
            return s != null && c.push(s),
            u != null && c.push(u),
            $r("nameValue", {
                name: c.join(" > "),
                value: o.value,
                noValue: o.value == null
            })
        }
        var f = lle({
            series: this,
            dataIndex: n,
            multipleSeries: r
        });
        return f
    }
    ,
    e.prototype._updateCategoriesData = function() {
        var n = Le(this.option.categories || [], function(a) {
            return a.value != null ? a : Me({
                value: 0
            }, a)
        })
          , r = new oa(["value"],this);
        r.initData(n),
        this._categoriesData = r,
        this._categoriesModels = r.mapArray(function(a) {
            return r.getItemModel(a)
        })
    }
    ,
    e.prototype.setZoom = function(n) {
        this.option.zoom = n
    }
    ,
    e.prototype.setCenter = function(n) {
        this.option.center = n
    }
    ,
    e.prototype.isAnimationEnabled = function() {
        return t.prototype.isAnimationEnabled.call(this) && !(this.get("layout") === "force" && this.get(["force", "layoutAnimation"]))
    }
    ,
    e.type = "series.graph",
    e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"],
    e.defaultOption = {
        z: 2,
        coordinateSystem: "view",
        legendHoverLink: !0,
        layout: null,
        circular: {
            rotateLabel: !1
        },
        force: {
            initLayout: null,
            repulsion: [0, 50],
            gravity: .1,
            friction: .6,
            edgeLength: 30,
            layoutAnimation: !0
        },
        left: "center",
        top: "center",
        symbol: "circle",
        symbolSize: 10,
        edgeSymbol: ["none", "none"],
        edgeSymbolSize: 10,
        edgeLabel: {
            position: "middle",
            distance: 5
        },
        draggable: !1,
        roam: !1,
        center: null,
        zoom: 1,
        nodeScaleRatio: .6,
        label: {
            show: !1,
            formatter: "{b}"
        },
        itemStyle: {},
        lineStyle: {
            color: "#aaa",
            width: 1,
            opacity: .5
        },
        emphasis: {
            scale: !0,
            label: {
                show: !0
            }
        },
        select: {
            itemStyle: {
                borderColor: "#212121"
            }
        }
    },
    e
}(En);
const fat = cat;
var dat = {
    type: "graphRoam",
    event: "graphRoam",
    update: "none"
};
function vat(t) {
    t.registerChartView(lat),
    t.registerSeriesModel(fat),
    t.registerProcessor(Vrt),
    t.registerVisual(zrt),
    t.registerVisual(Hrt),
    t.registerLayout(Urt),
    t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT, qrt),
    t.registerLayout(Zrt),
    t.registerCoordinateSystem("graphView", {
        dimensions: cy.dimensions,
        create: Jrt
    }),
    t.registerAction({
        type: "focusNodeAdjacency",
        event: "focusNodeAdjacency",
        update: "series:focusNodeAdjacency"
    }, nr),
    t.registerAction({
        type: "unfocusNodeAdjacency",
        event: "unfocusNodeAdjacency",
        update: "series:unfocusNodeAdjacency"
    }, nr),
    t.registerAction(dat, function(e, n, r) {
        n.eachComponent({
            mainType: "series",
            query: e
        }, function(a) {
            var i = a.coordinateSystem
              , o = q5(i, e, void 0, r);
            a.setCenter && a.setCenter(o.center),
            a.setZoom && a.setZoom(o.zoom)
        })
    })
}
var hat = function() {
    function t() {
        this.angle = 0,
        this.width = 10,
        this.r = 10,
        this.x = 0,
        this.y = 0
    }
    return t
}()
  , pat = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r.type = "pointer",
        r
    }
    return e.prototype.getDefaultShape = function() {
        return new hat
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = Math.cos
          , i = Math.sin
          , o = r.r
          , l = r.width
          , s = r.angle
          , u = r.x - a(s) * l * (l >= o / 3 ? 1 : 2)
          , c = r.y - i(s) * l * (l >= o / 3 ? 1 : 2);
        s = r.angle - Math.PI / 2,
        n.moveTo(u, c),
        n.lineTo(r.x + a(s) * l, r.y + i(s) * l),
        n.lineTo(r.x + a(r.angle) * o, r.y + i(r.angle) * o),
        n.lineTo(r.x - a(s) * l, r.y - i(s) * l),
        n.lineTo(u, c)
    }
    ,
    e
}(jt);
const gat = pat;
function mat(t, e) {
    var n = t.get("center")
      , r = e.getWidth()
      , a = e.getHeight()
      , i = Math.min(r, a)
      , o = He(n[0], e.getWidth())
      , l = He(n[1], e.getHeight())
      , s = He(t.get("radius"), i / 2);
    return {
        cx: o,
        cy: l,
        r: s
    }
}
function Y1(t, e) {
    var n = t == null ? "" : t + "";
    return e && (Ge(e) ? n = e.replace("{value}", n) : et(e) && (n = e(t))),
    n
}
var yat = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        this.group.removeAll();
        var i = n.get(["axisLine", "lineStyle", "color"])
          , o = mat(n, a);
        this._renderMain(n, r, a, i, o),
        this._data = n.getData()
    }
    ,
    e.prototype.dispose = function() {}
    ,
    e.prototype._renderMain = function(n, r, a, i, o) {
        var l = this.group
          , s = n.get("clockwise")
          , u = -n.get("startAngle") / 180 * Math.PI
          , c = -n.get("endAngle") / 180 * Math.PI
          , f = n.getModel("axisLine")
          , d = f.get("roundCap")
          , v = d ? ZS : Pa
          , h = f.get("show")
          , p = f.getModel("lineStyle")
          , g = p.get("width")
          , m = [u, c];
        xie(m, !s),
        u = m[0],
        c = m[1];
        for (var y = c - u, b = u, x = [], C = 0; h && C < i.length; C++) {
            var S = Math.min(Math.max(i[C][0], 0), 1);
            c = u + y * S;
            var w = new v({
                shape: {
                    startAngle: b,
                    endAngle: c,
                    cx: o.cx,
                    cy: o.cy,
                    clockwise: s,
                    r0: o.r - g,
                    r: o.r
                },
                silent: !0
            });
            w.setStyle({
                fill: i[C][1]
            }),
            w.setStyle(p.getLineStyle(["color", "width"])),
            x.push(w),
            b = c
        }
        x.reverse(),
        Z(x, function(P) {
            return l.add(P)
        });
        var T = function(P) {
            if (P <= 0)
                return i[0][1];
            var M;
            for (M = 0; M < i.length; M++)
                if (i[M][0] >= P && (M === 0 ? 0 : i[M - 1][0]) < P)
                    return i[M][1];
            return i[M - 1][1]
        };
        this._renderTicks(n, r, a, T, o, u, c, s, g),
        this._renderTitleAndDetail(n, r, a, T, o),
        this._renderAnchor(n, o),
        this._renderPointer(n, r, a, T, o, u, c, s, g)
    }
    ,
    e.prototype._renderTicks = function(n, r, a, i, o, l, s, u, c) {
        for (var f = this.group, d = o.cx, v = o.cy, h = o.r, p = +n.get("min"), g = +n.get("max"), m = n.getModel("splitLine"), y = n.getModel("axisTick"), b = n.getModel("axisLabel"), x = n.get("splitNumber"), C = y.get("splitNumber"), S = He(m.get("length"), h), w = He(y.get("length"), h), T = l, P = (s - l) / x, M = P / C, A = m.getModel("lineStyle").getLineStyle(), O = y.getModel("lineStyle").getLineStyle(), k = m.get("distance"), D, E, L = 0; L <= x; L++) {
            if (D = Math.cos(T),
            E = Math.sin(T),
            m.get("show")) {
                var N = k ? k + c : c
                  , R = new Or({
                    shape: {
                        x1: D * (h - N) + d,
                        y1: E * (h - N) + v,
                        x2: D * (h - S - N) + d,
                        y2: E * (h - S - N) + v
                    },
                    style: A,
                    silent: !0
                });
                A.stroke === "auto" && R.setStyle({
                    stroke: i(L / x)
                }),
                f.add(R)
            }
            if (b.get("show")) {
                var N = b.get("distance") + k
                  , $ = Y1(Zn(L / x * (g - p) + p), b.get("formatter"))
                  , W = i(L / x)
                  , B = D * (h - S - N) + d
                  , G = E * (h - S - N) + v
                  , K = b.get("rotate")
                  , V = 0;
                K === "radial" ? (V = -T + 2 * Math.PI,
                V > Math.PI / 2 && (V += Math.PI)) : K === "tangential" ? V = -T - Math.PI / 2 : rn(K) && (V = K * Math.PI / 180),
                V === 0 ? f.add(new Jt({
                    style: In(b, {
                        text: $,
                        x: B,
                        y: G,
                        verticalAlign: E < -.8 ? "top" : E > .8 ? "bottom" : "middle",
                        align: D < -.4 ? "left" : D > .4 ? "right" : "center"
                    }, {
                        inheritColor: W
                    }),
                    silent: !0
                })) : f.add(new Jt({
                    style: In(b, {
                        text: $,
                        x: B,
                        y: G,
                        verticalAlign: "middle",
                        align: "center"
                    }, {
                        inheritColor: W
                    }),
                    silent: !0,
                    originX: B,
                    originY: G,
                    rotation: V
                }))
            }
            if (y.get("show") && L !== x) {
                var N = y.get("distance");
                N = N ? N + c : c;
                for (var U = 0; U <= C; U++) {
                    D = Math.cos(T),
                    E = Math.sin(T);
                    var X = new Or({
                        shape: {
                            x1: D * (h - N) + d,
                            y1: E * (h - N) + v,
                            x2: D * (h - w - N) + d,
                            y2: E * (h - w - N) + v
                        },
                        silent: !0,
                        style: O
                    });
                    O.stroke === "auto" && X.setStyle({
                        stroke: i((L + U / C) / x)
                    }),
                    f.add(X),
                    T += M
                }
                T -= M
            } else
                T += P
        }
    }
    ,
    e.prototype._renderPointer = function(n, r, a, i, o, l, s, u, c) {
        var f = this.group
          , d = this._data
          , v = this._progressEls
          , h = []
          , p = n.get(["pointer", "show"])
          , g = n.getModel("progress")
          , m = g.get("show")
          , y = n.getData()
          , b = y.mapDimension("value")
          , x = +n.get("min")
          , C = +n.get("max")
          , S = [x, C]
          , w = [l, s];
        function T(M, A) {
            var O = y.getItemModel(M), k = O.getModel("pointer"), D = He(k.get("width"), o.r), E = He(k.get("length"), o.r), L = n.get(["pointer", "icon"]), N = k.get("offsetCenter"), R = He(N[0], o.r), $ = He(N[1], o.r), W = k.get("keepAspect"), B;
            return L ? B = fr(L, R - D / 2, $ - E, D, E, null, W) : B = new gat({
                shape: {
                    angle: -Math.PI / 2,
                    width: D,
                    r: E,
                    x: R,
                    y: $
                }
            }),
            B.rotation = -(A + Math.PI / 2),
            B.x = o.cx,
            B.y = o.cy,
            B
        }
        function P(M, A) {
            var O = g.get("roundCap")
              , k = O ? ZS : Pa
              , D = g.get("overlap")
              , E = D ? g.get("width") : c / y.count()
              , L = D ? o.r - E : o.r - (M + 1) * E
              , N = D ? o.r : o.r - M * E
              , R = new k({
                shape: {
                    startAngle: l,
                    endAngle: A,
                    cx: o.cx,
                    cy: o.cy,
                    clockwise: u,
                    r0: L,
                    r: N
                }
            });
            return D && (R.z2 = C - y.get(b, M) % C),
            R
        }
        (m || p) && (y.diff(d).add(function(M) {
            var A = y.get(b, M);
            if (p) {
                var O = T(M, l);
                $n(O, {
                    rotation: -((isNaN(+A) ? w[0] : vn(A, S, w, !0)) + Math.PI / 2)
                }, n),
                f.add(O),
                y.setItemGraphicEl(M, O)
            }
            if (m) {
                var k = P(M, l)
                  , D = g.get("clip");
                $n(k, {
                    shape: {
                        endAngle: vn(A, S, w, D)
                    }
                }, n),
                f.add(k),
                _I(n.seriesIndex, y.dataType, M, k),
                h[M] = k
            }
        }).update(function(M, A) {
            var O = y.get(b, M);
            if (p) {
                var k = d.getItemGraphicEl(A)
                  , D = k ? k.rotation : l
                  , E = T(M, D);
                E.rotation = D,
                ln(E, {
                    rotation: -((isNaN(+O) ? w[0] : vn(O, S, w, !0)) + Math.PI / 2)
                }, n),
                f.add(E),
                y.setItemGraphicEl(M, E)
            }
            if (m) {
                var L = v[A]
                  , N = L ? L.shape.endAngle : l
                  , R = P(M, N)
                  , $ = g.get("clip");
                ln(R, {
                    shape: {
                        endAngle: vn(O, S, w, $)
                    }
                }, n),
                f.add(R),
                _I(n.seriesIndex, y.dataType, M, R),
                h[M] = R
            }
        }).execute(),
        y.each(function(M) {
            var A = y.getItemModel(M)
              , O = A.getModel("emphasis")
              , k = O.get("focus")
              , D = O.get("blurScope")
              , E = O.get("disabled");
            if (p) {
                var L = y.getItemGraphicEl(M)
                  , N = y.getItemVisual(M, "style")
                  , R = N.fill;
                if (L instanceof Kr) {
                    var $ = L.style;
                    L.useStyle(Me({
                        image: $.image,
                        x: $.x,
                        y: $.y,
                        width: $.width,
                        height: $.height
                    }, N))
                } else
                    L.useStyle(N),
                    L.type !== "pointer" && L.setColor(R);
                L.setStyle(A.getModel(["pointer", "itemStyle"]).getItemStyle()),
                L.style.fill === "auto" && L.setStyle("fill", i(vn(y.get(b, M), S, [0, 1], !0))),
                L.z2EmphasisLift = 0,
                Jr(L, A),
                Qn(L, k, D, E)
            }
            if (m) {
                var W = h[M];
                W.useStyle(y.getItemVisual(M, "style")),
                W.setStyle(A.getModel(["progress", "itemStyle"]).getItemStyle()),
                W.z2EmphasisLift = 0,
                Jr(W, A),
                Qn(W, k, D, E)
            }
        }),
        this._progressEls = h)
    }
    ,
    e.prototype._renderAnchor = function(n, r) {
        var a = n.getModel("anchor")
          , i = a.get("show");
        if (i) {
            var o = a.get("size")
              , l = a.get("icon")
              , s = a.get("offsetCenter")
              , u = a.get("keepAspect")
              , c = fr(l, r.cx - o / 2 + He(s[0], r.r), r.cy - o / 2 + He(s[1], r.r), o, o, null, u);
            c.z2 = a.get("showAbove") ? 1 : 0,
            c.setStyle(a.getModel("itemStyle").getItemStyle()),
            this.group.add(c)
        }
    }
    ,
    e.prototype._renderTitleAndDetail = function(n, r, a, i, o) {
        var l = this
          , s = n.getData()
          , u = s.mapDimension("value")
          , c = +n.get("min")
          , f = +n.get("max")
          , d = new mt
          , v = []
          , h = []
          , p = n.isAnimationEnabled()
          , g = n.get(["pointer", "showAbove"]);
        s.diff(this._data).add(function(m) {
            v[m] = new Jt({
                silent: !0
            }),
            h[m] = new Jt({
                silent: !0
            })
        }).update(function(m, y) {
            v[m] = l._titleEls[y],
            h[m] = l._detailEls[y]
        }).execute(),
        s.each(function(m) {
            var y = s.getItemModel(m)
              , b = s.get(u, m)
              , x = new mt
              , C = i(vn(b, [c, f], [0, 1], !0))
              , S = y.getModel("title");
            if (S.get("show")) {
                var w = S.get("offsetCenter")
                  , T = o.cx + He(w[0], o.r)
                  , P = o.cy + He(w[1], o.r)
                  , M = v[m];
                M.attr({
                    z2: g ? 0 : 2,
                    style: In(S, {
                        x: T,
                        y: P,
                        text: s.getName(m),
                        align: "center",
                        verticalAlign: "middle"
                    }, {
                        inheritColor: C
                    })
                }),
                x.add(M)
            }
            var A = y.getModel("detail");
            if (A.get("show")) {
                var O = A.get("offsetCenter")
                  , k = o.cx + He(O[0], o.r)
                  , D = o.cy + He(O[1], o.r)
                  , E = He(A.get("width"), o.r)
                  , L = He(A.get("height"), o.r)
                  , N = n.get(["progress", "show"]) ? s.getItemVisual(m, "style").fill : C
                  , M = h[m]
                  , R = A.get("formatter");
                M.attr({
                    z2: g ? 0 : 2,
                    style: In(A, {
                        x: k,
                        y: D,
                        text: Y1(b, R),
                        width: isNaN(E) ? null : E,
                        height: isNaN(L) ? null : L,
                        align: "center",
                        verticalAlign: "middle"
                    }, {
                        inheritColor: N
                    })
                }),
                doe(M, {
                    normal: A
                }, b, function(W) {
                    return Y1(W, R)
                }),
                p && voe(M, m, s, n, {
                    getFormattedLabel: function(W, B, G, K, V, U) {
                        return Y1(U ? U.interpolatedValue : b, R)
                    }
                }),
                x.add(M)
            }
            d.add(x)
        }),
        this.group.add(d),
        this._titleEls = v,
        this._detailEls = h
    }
    ,
    e.type = "gauge",
    e
}(Tn);
const bat = yat;
var xat = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.visualStyleAccessPath = "itemStyle",
        n
    }
    return e.prototype.getInitialData = function(n, r) {
        return Hh(this, ["value"])
    }
    ,
    e.type = "series.gauge",
    e.defaultOption = {
        z: 2,
        colorBy: "data",
        center: ["50%", "50%"],
        legendHoverLink: !0,
        radius: "75%",
        startAngle: 225,
        endAngle: -45,
        clockwise: !0,
        min: 0,
        max: 100,
        splitNumber: 10,
        axisLine: {
            show: !0,
            roundCap: !1,
            lineStyle: {
                color: [[1, "#E6EBF8"]],
                width: 10
            }
        },
        progress: {
            show: !1,
            overlap: !0,
            width: 10,
            roundCap: !1,
            clip: !0
        },
        splitLine: {
            show: !0,
            length: 10,
            distance: 10,
            lineStyle: {
                color: "#63677A",
                width: 3,
                type: "solid"
            }
        },
        axisTick: {
            show: !0,
            splitNumber: 5,
            length: 6,
            distance: 10,
            lineStyle: {
                color: "#63677A",
                width: 1,
                type: "solid"
            }
        },
        axisLabel: {
            show: !0,
            distance: 15,
            color: "#464646",
            fontSize: 12,
            rotate: 0
        },
        pointer: {
            icon: null,
            offsetCenter: [0, 0],
            show: !0,
            showAbove: !0,
            length: "60%",
            width: 6,
            keepAspect: !1
        },
        anchor: {
            show: !1,
            showAbove: !1,
            size: 6,
            icon: "circle",
            offsetCenter: [0, 0],
            keepAspect: !1,
            itemStyle: {
                color: "#fff",
                borderWidth: 0,
                borderColor: "#5470c6"
            }
        },
        title: {
            show: !0,
            offsetCenter: [0, "20%"],
            color: "#464646",
            fontSize: 16,
            valueAnimation: !1
        },
        detail: {
            show: !0,
            backgroundColor: "rgba(0,0,0,0)",
            borderWidth: 0,
            borderColor: "#ccc",
            width: 100,
            height: null,
            padding: [5, 10],
            offsetCenter: [0, "40%"],
            color: "#464646",
            fontSize: 30,
            fontWeight: "bold",
            lineHeight: 30,
            valueAnimation: !1
        }
    },
    e
}(En);
const Sat = xat;
function Cat(t) {
    t.registerChartView(bat),
    t.registerSeriesModel(Sat)
}
var wat = ["itemStyle", "opacity"]
  , _at = function(t) {
    ge(e, t);
    function e(n, r) {
        var a = t.call(this) || this
          , i = a
          , o = new Aa
          , l = new Jt;
        return i.setTextContent(l),
        a.setTextGuideLine(o),
        a.updateData(n, r, !0),
        a
    }
    return e.prototype.updateData = function(n, r, a) {
        var i = this
          , o = n.hostModel
          , l = n.getItemModel(r)
          , s = n.getItemLayout(r)
          , u = l.getModel("emphasis")
          , c = l.get(wat);
        c = c == null ? 1 : c,
        a || Ao(i),
        i.useStyle(n.getItemVisual(r, "style")),
        i.style.lineJoin = "round",
        a ? (i.setShape({
            points: s.points
        }),
        i.style.opacity = 0,
        $n(i, {
            style: {
                opacity: c
            }
        }, o, r)) : ln(i, {
            style: {
                opacity: c
            },
            shape: {
                points: s.points
            }
        }, o, r),
        Jr(i, l),
        this._updateLabel(n, r),
        Qn(this, u.get("focus"), u.get("blurScope"), u.get("disabled"))
    }
    ,
    e.prototype._updateLabel = function(n, r) {
        var a = this
          , i = this.getTextGuideLine()
          , o = a.getTextContent()
          , l = n.hostModel
          , s = n.getItemModel(r)
          , u = n.getItemLayout(r)
          , c = u.label
          , f = n.getItemVisual(r, "style")
          , d = f.fill;
        ea(o, Nr(s), {
            labelFetcher: n.hostModel,
            labelDataIndex: r,
            defaultOpacity: f.opacity,
            defaultText: n.getName(r)
        }, {
            normal: {
                align: c.textAlign,
                verticalAlign: c.verticalAlign
            }
        }),
        a.setTextConfig({
            local: !0,
            inside: !!c.inside,
            insideStroke: d,
            outsideFill: d
        });
        var v = c.linePoints;
        i.setShape({
            points: v
        }),
        a.textGuideLineConfig = {
            anchor: v ? new kt(v[0][0],v[0][1]) : null
        },
        ln(o, {
            style: {
                x: c.x,
                y: c.y
            }
        }, l, r),
        o.attr({
            rotation: c.rotation,
            originX: c.x,
            originY: c.y,
            z2: 10
        }),
        $5(a, F5(s), {
            stroke: d
        })
    }
    ,
    e
}(Ma)
  , Tat = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.ignoreLabelLineUpdate = !0,
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i = n.getData()
          , o = this._data
          , l = this.group;
        i.diff(o).add(function(s) {
            var u = new _at(i,s);
            i.setItemGraphicEl(s, u),
            l.add(u)
        }).update(function(s, u) {
            var c = o.getItemGraphicEl(u);
            c.updateData(i, s),
            l.add(c),
            i.setItemGraphicEl(s, c)
        }).remove(function(s) {
            var u = o.getItemGraphicEl(s);
            H0(u, n, s)
        }).execute(),
        this._data = i
    }
    ,
    e.prototype.remove = function() {
        this.group.removeAll(),
        this._data = null
    }
    ,
    e.prototype.dispose = function() {}
    ,
    e.type = "funnel",
    e
}(Tn);
const Pat = Tat;
var Mat = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function(n) {
        t.prototype.init.apply(this, arguments),
        this.legendVisualProvider = new sy(qe(this.getData, this),qe(this.getRawData, this)),
        this._defaultLabelLine(n)
    }
    ,
    e.prototype.getInitialData = function(n, r) {
        return Hh(this, {
            coordDimensions: ["value"],
            encodeDefaulter: St(s5, this)
        })
    }
    ,
    e.prototype._defaultLabelLine = function(n) {
        Nf(n, "labelLine", ["show"]);
        var r = n.labelLine
          , a = n.emphasis.labelLine;
        r.show = r.show && n.label.show,
        a.show = a.show && n.emphasis.label.show
    }
    ,
    e.prototype.getDataParams = function(n) {
        var r = this.getData()
          , a = t.prototype.getDataParams.call(this, n)
          , i = r.mapDimension("value")
          , o = r.getSum(i);
        return a.percent = o ? +(r.get(i, n) / o * 100).toFixed(2) : 0,
        a.$vars.push("percent"),
        a
    }
    ,
    e.type = "series.funnel",
    e.defaultOption = {
        z: 2,
        legendHoverLink: !0,
        colorBy: "data",
        left: 80,
        top: 60,
        right: 80,
        bottom: 60,
        minSize: "0%",
        maxSize: "100%",
        sort: "descending",
        orient: "vertical",
        gap: 0,
        funnelAlign: "center",
        label: {
            show: !0,
            position: "outer"
        },
        labelLine: {
            show: !0,
            length: 20,
            lineStyle: {
                width: 1
            }
        },
        itemStyle: {
            borderColor: "#fff",
            borderWidth: 1
        },
        emphasis: {
            label: {
                show: !0
            }
        },
        select: {
            itemStyle: {
                borderColor: "#212121"
            }
        }
    },
    e
}(En);
const Aat = Mat;
function Iat(t, e) {
    return xr(t.getBoxLayoutParams(), {
        width: e.getWidth(),
        height: e.getHeight()
    })
}
function kat(t, e) {
    for (var n = t.mapDimension("value"), r = t.mapArray(n, function(s) {
        return s
    }), a = [], i = e === "ascending", o = 0, l = t.count(); o < l; o++)
        a[o] = o;
    return et(e) ? a.sort(e) : e !== "none" && a.sort(function(s, u) {
        return i ? r[s] - r[u] : r[u] - r[s]
    }),
    a
}
function Oat(t) {
    var e = t.hostModel
      , n = e.get("orient");
    t.each(function(r) {
        var a = t.getItemModel(r), i = a.getModel("label"), o = i.get("position"), l = a.getModel("labelLine"), s = t.getItemLayout(r), u = s.points, c = o === "inner" || o === "inside" || o === "center" || o === "insideLeft" || o === "insideRight", f, d, v, h;
        if (c)
            o === "insideLeft" ? (d = (u[0][0] + u[3][0]) / 2 + 5,
            v = (u[0][1] + u[3][1]) / 2,
            f = "left") : o === "insideRight" ? (d = (u[1][0] + u[2][0]) / 2 - 5,
            v = (u[1][1] + u[2][1]) / 2,
            f = "right") : (d = (u[0][0] + u[1][0] + u[2][0] + u[3][0]) / 4,
            v = (u[0][1] + u[1][1] + u[2][1] + u[3][1]) / 4,
            f = "center"),
            h = [[d, v], [d, v]];
        else {
            var p = void 0
              , g = void 0
              , m = void 0
              , y = void 0
              , b = l.get("length");
            o === "left" ? (p = (u[3][0] + u[0][0]) / 2,
            g = (u[3][1] + u[0][1]) / 2,
            m = p - b,
            d = m - 5,
            f = "right") : o === "right" ? (p = (u[1][0] + u[2][0]) / 2,
            g = (u[1][1] + u[2][1]) / 2,
            m = p + b,
            d = m + 5,
            f = "left") : o === "top" ? (p = (u[3][0] + u[0][0]) / 2,
            g = (u[3][1] + u[0][1]) / 2,
            y = g - b,
            v = y - 5,
            f = "center") : o === "bottom" ? (p = (u[1][0] + u[2][0]) / 2,
            g = (u[1][1] + u[2][1]) / 2,
            y = g + b,
            v = y + 5,
            f = "center") : o === "rightTop" ? (p = n === "horizontal" ? u[3][0] : u[1][0],
            g = n === "horizontal" ? u[3][1] : u[1][1],
            n === "horizontal" ? (y = g - b,
            v = y - 5,
            f = "center") : (m = p + b,
            d = m + 5,
            f = "top")) : o === "rightBottom" ? (p = u[2][0],
            g = u[2][1],
            n === "horizontal" ? (y = g + b,
            v = y + 5,
            f = "center") : (m = p + b,
            d = m + 5,
            f = "bottom")) : o === "leftTop" ? (p = u[0][0],
            g = n === "horizontal" ? u[0][1] : u[1][1],
            n === "horizontal" ? (y = g - b,
            v = y - 5,
            f = "center") : (m = p - b,
            d = m - 5,
            f = "right")) : o === "leftBottom" ? (p = n === "horizontal" ? u[1][0] : u[3][0],
            g = n === "horizontal" ? u[1][1] : u[2][1],
            n === "horizontal" ? (y = g + b,
            v = y + 5,
            f = "center") : (m = p - b,
            d = m - 5,
            f = "right")) : (p = (u[1][0] + u[2][0]) / 2,
            g = (u[1][1] + u[2][1]) / 2,
            n === "horizontal" ? (y = g + b,
            v = y + 5,
            f = "center") : (m = p + b,
            d = m + 5,
            f = "left")),
            n === "horizontal" ? (m = p,
            d = m) : (y = g,
            v = y),
            h = [[p, g], [m, y]]
        }
        s.label = {
            linePoints: h,
            x: d,
            y: v,
            verticalAlign: "middle",
            textAlign: f,
            inside: c
        }
    })
}
function Dat(t, e) {
    t.eachSeriesByType("funnel", function(n) {
        var r = n.getData()
          , a = r.mapDimension("value")
          , i = n.get("sort")
          , o = Iat(n, e)
          , l = n.get("orient")
          , s = o.width
          , u = o.height
          , c = kat(r, i)
          , f = o.x
          , d = o.y
          , v = l === "horizontal" ? [He(n.get("minSize"), u), He(n.get("maxSize"), u)] : [He(n.get("minSize"), s), He(n.get("maxSize"), s)]
          , h = r.getDataExtent(a)
          , p = n.get("min")
          , g = n.get("max");
        p == null && (p = Math.min(h[0], 0)),
        g == null && (g = h[1]);
        var m = n.get("funnelAlign")
          , y = n.get("gap")
          , b = l === "horizontal" ? s : u
          , x = (b - y * (r.count() - 1)) / r.count()
          , C = function(D, E) {
            if (l === "horizontal") {
                var L = r.get(a, D) || 0
                  , N = vn(L, [p, g], v, !0)
                  , R = void 0;
                switch (m) {
                case "top":
                    R = d;
                    break;
                case "center":
                    R = d + (u - N) / 2;
                    break;
                case "bottom":
                    R = d + (u - N);
                    break
                }
                return [[E, R], [E, R + N]]
            }
            var $ = r.get(a, D) || 0, W = vn($, [p, g], v, !0), B;
            switch (m) {
            case "left":
                B = f;
                break;
            case "center":
                B = f + (s - W) / 2;
                break;
            case "right":
                B = f + s - W;
                break
            }
            return [[B, E], [B + W, E]]
        };
        i === "ascending" && (x = -x,
        y = -y,
        l === "horizontal" ? f += s : d += u,
        c = c.reverse());
        for (var S = 0; S < c.length; S++) {
            var w = c[S]
              , T = c[S + 1]
              , P = r.getItemModel(w);
            if (l === "horizontal") {
                var M = P.get(["itemStyle", "width"]);
                M == null ? M = x : (M = He(M, s),
                i === "ascending" && (M = -M));
                var A = C(w, f)
                  , O = C(T, f + M);
                f += M + y,
                r.setItemLayout(w, {
                    points: A.concat(O.slice().reverse())
                })
            } else {
                var k = P.get(["itemStyle", "height"]);
                k == null ? k = x : (k = He(k, u),
                i === "ascending" && (k = -k));
                var A = C(w, d)
                  , O = C(T, d + k);
                d += k + y,
                r.setItemLayout(w, {
                    points: A.concat(O.slice().reverse())
                })
            }
        }
        Oat(r)
    })
}
function Eat(t) {
    t.registerChartView(Pat),
    t.registerSeriesModel(Aat),
    t.registerLayout(Dat),
    t.registerProcessor(ly("funnel"))
}
var Lat = .3
  , Rat = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n._dataGroup = new mt,
        n._initialized = !1,
        n
    }
    return e.prototype.init = function() {
        this.group.add(this._dataGroup)
    }
    ,
    e.prototype.render = function(n, r, a, i) {
        this._progressiveEls = null;
        var o = this._dataGroup
          , l = n.getData()
          , s = this._data
          , u = n.coordinateSystem
          , c = u.dimensions
          , f = aK(n);
        l.diff(s).add(d).update(v).remove(h).execute();
        function d(g) {
            var m = rK(l, o, g, c, u);
            G4(m, l, g, f)
        }
        function v(g, m) {
            var y = s.getItemGraphicEl(m)
              , b = Wue(l, g, c, u);
            l.setItemGraphicEl(g, y),
            ln(y, {
                shape: {
                    points: b
                }
            }, n, g),
            Ao(y),
            G4(y, l, g, f)
        }
        function h(g) {
            var m = s.getItemGraphicEl(g);
            o.remove(m)
        }
        if (!this._initialized) {
            this._initialized = !0;
            var p = Nat(u, n, function() {
                setTimeout(function() {
                    o.removeClipPath()
                })
            });
            o.setClipPath(p)
        }
        this._data = l
    }
    ,
    e.prototype.incrementalPrepareRender = function(n, r, a) {
        this._initialized = !0,
        this._data = null,
        this._dataGroup.removeAll()
    }
    ,
    e.prototype.incrementalRender = function(n, r, a) {
        for (var i = r.getData(), o = r.coordinateSystem, l = o.dimensions, s = aK(r), u = this._progressiveEls = [], c = n.start; c < n.end; c++) {
            var f = rK(i, this._dataGroup, c, l, o);
            f.incremental = !0,
            G4(f, i, c, s),
            u.push(f)
        }
    }
    ,
    e.prototype.remove = function() {
        this._dataGroup && this._dataGroup.removeAll(),
        this._data = null
    }
    ,
    e.type = "parallel",
    e
}(Tn);
function Nat(t, e, n) {
    var r = t.model
      , a = t.getRect()
      , i = new tn({
        shape: {
            x: a.x,
            y: a.y,
            width: a.width,
            height: a.height
        }
    })
      , o = r.get("layout") === "horizontal" ? "width" : "height";
    return i.setShape(o, 0),
    $n(i, {
        shape: {
            width: a.width,
            height: a.height
        }
    }, e, n),
    i
}
function Wue(t, e, n, r) {
    for (var a = [], i = 0; i < n.length; i++) {
        var o = n[i]
          , l = t.get(t.mapDimension(o), e);
        $at(l, r.getAxis(o).type) || a.push(r.dataToPoint(l, o))
    }
    return a
}
function rK(t, e, n, r, a) {
    var i = Wue(t, n, r, a)
      , o = new Aa({
        shape: {
            points: i
        },
        z2: 10
    });
    return e.add(o),
    t.setItemGraphicEl(n, o),
    o
}
function aK(t) {
    var e = t.get("smooth", !0);
    return e === !0 && (e = Lat),
    e = ml(e),
    Xv(e) && (e = 0),
    {
        smooth: e
    }
}
function G4(t, e, n, r) {
    t.useStyle(e.getItemVisual(n, "style")),
    t.style.fill = null,
    t.setShape("smooth", r.smooth);
    var a = e.getItemModel(n)
      , i = a.getModel("emphasis");
    Jr(t, a, "lineStyle"),
    Qn(t, i.get("focus"), i.get("blurScope"), i.get("disabled"))
}
function $at(t, e) {
    return e === "category" ? t == null : t == null || isNaN(t)
}
const Fat = Rat;
var Bat = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.visualStyleAccessPath = "lineStyle",
        n.visualDrawType = "stroke",
        n
    }
    return e.prototype.getInitialData = function(n, r) {
        return Pl(null, this, {
            useEncodeDefaulter: qe(Vat, null, this)
        })
    }
    ,
    e.prototype.getRawIndicesByActiveState = function(n) {
        var r = this.coordinateSystem
          , a = this.getData()
          , i = [];
        return r.eachActiveState(a, function(o, l) {
            n === o && i.push(a.getRawIndex(l))
        }),
        i
    }
    ,
    e.type = "series.parallel",
    e.dependencies = ["parallel"],
    e.defaultOption = {
        z: 2,
        coordinateSystem: "parallel",
        parallelIndex: 0,
        label: {
            show: !1
        },
        inactiveOpacity: .05,
        activeOpacity: 1,
        lineStyle: {
            width: 1,
            opacity: .45,
            type: "solid"
        },
        emphasis: {
            label: {
                show: !1
            }
        },
        progressive: 500,
        smooth: !1,
        animationEasing: "linear"
    },
    e
}(En);
function Vat(t) {
    var e = t.ecModel.getComponent("parallel", t.get("parallelIndex"));
    if (!!e) {
        var n = {};
        return Z(e.dimensions, function(r) {
            var a = zat(r);
            n[r] = a
        }),
        n
    }
}
function zat(t) {
    return +t.replace("dim", "")
}
const Hat = Bat;
var jat = ["lineStyle", "opacity"]
  , Wat = {
    seriesType: "parallel",
    reset: function(t, e) {
        var n = t.coordinateSystem
          , r = {
            normal: t.get(["lineStyle", "opacity"]),
            active: t.get("activeOpacity"),
            inactive: t.get("inactiveOpacity")
        };
        return {
            progress: function(a, i) {
                n.eachActiveState(i, function(o, l) {
                    var s = r[o];
                    if (o === "normal" && i.hasItemOption) {
                        var u = i.getItemModel(l).get(jat, !0);
                        u != null && (s = u)
                    }
                    var c = i.ensureUniqueItemVisual(l, "style");
                    c.opacity = s
                }, a.start, a.end)
            }
        }
    }
};
const Gat = Wat;
function Kat(t) {
    Uat(t),
    Yat(t)
}
function Uat(t) {
    if (!t.parallel) {
        var e = !1;
        Z(t.series, function(n) {
            n && n.type === "parallel" && (e = !0)
        }),
        e && (t.parallel = [{}])
    }
}
function Yat(t) {
    var e = _n(t.parallelAxis);
    Z(e, function(n) {
        if (!!st(n)) {
            var r = n.parallelIndex || 0
              , a = _n(t.parallel)[r];
            a && a.parallelAxisDefault && At(n, a.parallelAxisDefault, !1)
        }
    })
}
var qat = 5
  , Xat = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        this._model = n,
        this._api = a,
        this._handlers || (this._handlers = {},
        Z(Zat, function(i, o) {
            a.getZr().on(o, this._handlers[o] = qe(i, this))
        }, this)),
        Fh(this, "_throttledDispatchExpand", n.get("axisExpandRate"), "fixRate")
    }
    ,
    e.prototype.dispose = function(n, r) {
        U0(this, "_throttledDispatchExpand"),
        Z(this._handlers, function(a, i) {
            r.getZr().off(i, a)
        }),
        this._handlers = null
    }
    ,
    e.prototype._throttledDispatchExpand = function(n) {
        this._dispatchExpand(n)
    }
    ,
    e.prototype._dispatchExpand = function(n) {
        n && this._api.dispatchAction(Me({
            type: "parallelAxisExpand"
        }, n))
    }
    ,
    e.type = "parallel",
    e
}(Bn)
  , Zat = {
    mousedown: function(t) {
        K4(this, "click") && (this._mouseDownPoint = [t.offsetX, t.offsetY])
    },
    mouseup: function(t) {
        var e = this._mouseDownPoint;
        if (K4(this, "click") && e) {
            var n = [t.offsetX, t.offsetY]
              , r = Math.pow(e[0] - n[0], 2) + Math.pow(e[1] - n[1], 2);
            if (r > qat)
                return;
            var a = this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX, t.offsetY]);
            a.behavior !== "none" && this._dispatchExpand({
                axisExpandWindow: a.axisExpandWindow
            })
        }
        this._mouseDownPoint = null
    },
    mousemove: function(t) {
        if (!(this._mouseDownPoint || !K4(this, "mousemove"))) {
            var e = this._model
              , n = e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX, t.offsetY])
              , r = n.behavior;
            r === "jump" && this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),
            this._throttledDispatchExpand(r === "none" ? null : {
                axisExpandWindow: n.axisExpandWindow,
                animation: r === "jump" ? null : {
                    duration: 0
                }
            })
        }
    }
};
function K4(t, e) {
    var n = t._model;
    return n.get("axisExpandable") && n.get("axisExpandTriggerOn") === e
}
const Qat = Xat;
var Jat = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function() {
        t.prototype.init.apply(this, arguments),
        this.mergeOption({})
    }
    ,
    e.prototype.mergeOption = function(n) {
        var r = this.option;
        n && At(r, n, !0),
        this._initDimensions()
    }
    ,
    e.prototype.contains = function(n, r) {
        var a = n.get("parallelIndex");
        return a != null && r.getComponent("parallel", a) === this
    }
    ,
    e.prototype.setAxisExpand = function(n) {
        Z(["axisExpandable", "axisExpandCenter", "axisExpandCount", "axisExpandWidth", "axisExpandWindow"], function(r) {
            n.hasOwnProperty(r) && (this.option[r] = n[r])
        }, this)
    }
    ,
    e.prototype._initDimensions = function() {
        var n = this.dimensions = []
          , r = this.parallelAxisIndex = []
          , a = pn(this.ecModel.queryComponents({
            mainType: "parallelAxis"
        }), function(i) {
            return (i.get("parallelIndex") || 0) === this.componentIndex
        }, this);
        Z(a, function(i) {
            n.push("dim" + i.get("dim")),
            r.push(i.componentIndex)
        })
    }
    ,
    e.type = "parallel",
    e.dependencies = ["parallelAxis"],
    e.layoutMode = "box",
    e.defaultOption = {
        z: 0,
        left: 80,
        top: 60,
        right: 80,
        bottom: 60,
        layout: "horizontal",
        axisExpandable: !1,
        axisExpandCenter: null,
        axisExpandCount: 0,
        axisExpandWidth: 50,
        axisExpandRate: 17,
        axisExpandDebounce: 50,
        axisExpandSlideTriggerArea: [-.15, .05, .4],
        axisExpandTriggerOn: "click",
        parallelAxisDefault: null
    },
    e
}(qt);
const eit = Jat;
var tit = function(t) {
    ge(e, t);
    function e(n, r, a, i, o) {
        var l = t.call(this, n, r, a) || this;
        return l.type = i || "value",
        l.axisIndex = o,
        l
    }
    return e.prototype.isHorizontal = function() {
        return this.coordinateSystem.getModel().get("layout") !== "horizontal"
    }
    ,
    e
}(Yi);
const nit = tit;
function sd(t, e, n, r, a, i) {
    t = t || 0;
    var o = n[1] - n[0];
    if (a != null && (a = Ld(a, [0, o])),
    i != null && (i = Math.max(i, a != null ? a : 0)),
    r === "all") {
        var l = Math.abs(e[1] - e[0]);
        l = Ld(l, [0, o]),
        a = i = Ld(l, [a, i]),
        r = 0
    }
    e[0] = Ld(e[0], n),
    e[1] = Ld(e[1], n);
    var s = U4(e, r);
    e[r] += t;
    var u = a || 0
      , c = n.slice();
    s.sign < 0 ? c[0] += u : c[1] -= u,
    e[r] = Ld(e[r], c);
    var f;
    return f = U4(e, r),
    a != null && (f.sign !== s.sign || f.span < a) && (e[1 - r] = e[r] + s.sign * a),
    f = U4(e, r),
    i != null && f.span > i && (e[1 - r] = e[r] + f.sign * i),
    e
}
function U4(t, e) {
    var n = t[e] - t[1 - e];
    return {
        span: Math.abs(n),
        sign: n > 0 ? -1 : n < 0 ? 1 : e ? -1 : 1
    }
}
function Ld(t, e) {
    return Math.min(e[1] != null ? e[1] : 1 / 0, Math.max(e[0] != null ? e[0] : -1 / 0, t))
}
var Y4 = Z
  , Gue = Math.min
  , Kue = Math.max
  , iK = Math.floor
  , rit = Math.ceil
  , oK = Zn
  , ait = Math.PI
  , iit = function() {
    function t(e, n, r) {
        this.type = "parallel",
        this._axesMap = Qe(),
        this._axesLayout = {},
        this.dimensions = e.dimensions,
        this._model = e,
        this._init(e, n, r)
    }
    return t.prototype._init = function(e, n, r) {
        var a = e.dimensions
          , i = e.parallelAxisIndex;
        Y4(a, function(o, l) {
            var s = i[l]
              , u = n.getComponent("parallelAxis", s)
              , c = this._axesMap.set(o, new nit(o,ny(u),[0, 0],u.get("type"),s))
              , f = c.type === "category";
            c.onBand = f && u.get("boundaryGap"),
            c.inverse = u.get("inverse"),
            u.axis = c,
            c.model = u,
            c.coordinateSystem = u.coordinateSystem = this
        }, this)
    }
    ,
    t.prototype.update = function(e, n) {
        this._updateAxesFromSeries(this._model, e)
    }
    ,
    t.prototype.containPoint = function(e) {
        var n = this._makeLayoutInfo()
          , r = n.axisBase
          , a = n.layoutBase
          , i = n.pixelDimIndex
          , o = e[1 - i]
          , l = e[i];
        return o >= r && o <= r + n.axisLength && l >= a && l <= a + n.layoutLength
    }
    ,
    t.prototype.getModel = function() {
        return this._model
    }
    ,
    t.prototype._updateAxesFromSeries = function(e, n) {
        n.eachSeries(function(r) {
            if (!!e.contains(r, n)) {
                var a = r.getData();
                Y4(this.dimensions, function(i) {
                    var o = this._axesMap.get(i);
                    o.scale.unionExtentFromData(a, a.mapDimension(i)),
                    zf(o.scale, o.model)
                }, this)
            }
        }, this)
    }
    ,
    t.prototype.resize = function(e, n) {
        this._rect = xr(e.getBoxLayoutParams(), {
            width: n.getWidth(),
            height: n.getHeight()
        }),
        this._layoutAxes()
    }
    ,
    t.prototype.getRect = function() {
        return this._rect
    }
    ,
    t.prototype._makeLayoutInfo = function() {
        var e = this._model, n = this._rect, r = ["x", "y"], a = ["width", "height"], i = e.get("layout"), o = i === "horizontal" ? 0 : 1, l = n[a[o]], s = [0, l], u = this.dimensions.length, c = q1(e.get("axisExpandWidth"), s), f = q1(e.get("axisExpandCount") || 0, [0, u]), d = e.get("axisExpandable") && u > 3 && u > f && f > 1 && c > 0 && l > 0, v = e.get("axisExpandWindow"), h;
        if (v)
            h = q1(v[1] - v[0], s),
            v[1] = v[0] + h;
        else {
            h = q1(c * (f - 1), s);
            var p = e.get("axisExpandCenter") || iK(u / 2);
            v = [c * p - h / 2],
            v[1] = v[0] + h
        }
        var g = (l - h) / (u - f);
        g < 3 && (g = 0);
        var m = [iK(oK(v[0] / c, 1)) + 1, rit(oK(v[1] / c, 1)) - 1]
          , y = g / c * v[0];
        return {
            layout: i,
            pixelDimIndex: o,
            layoutBase: n[r[o]],
            layoutLength: l,
            axisBase: n[r[1 - o]],
            axisLength: n[a[1 - o]],
            axisExpandable: d,
            axisExpandWidth: c,
            axisCollapseWidth: g,
            axisExpandWindow: v,
            axisCount: u,
            winInnerIndices: m,
            axisExpandWindow0Pos: y
        }
    }
    ,
    t.prototype._layoutAxes = function() {
        var e = this._rect
          , n = this._axesMap
          , r = this.dimensions
          , a = this._makeLayoutInfo()
          , i = a.layout;
        n.each(function(o) {
            var l = [0, a.axisLength]
              , s = o.inverse ? 1 : 0;
            o.setExtent(l[s], l[1 - s])
        }),
        Y4(r, function(o, l) {
            var s = (a.axisExpandable ? lit : oit)(l, a)
              , u = {
                horizontal: {
                    x: s.position,
                    y: a.axisLength
                },
                vertical: {
                    x: 0,
                    y: s.position
                }
            }
              , c = {
                horizontal: ait / 2,
                vertical: 0
            }
              , f = [u[i].x + e.x, u[i].y + e.y]
              , d = c[i]
              , v = si();
            Ku(v, v, d),
            To(v, v, f),
            this._axesLayout[o] = {
                position: f,
                rotation: d,
                transform: v,
                axisNameAvailableWidth: s.axisNameAvailableWidth,
                axisLabelShow: s.axisLabelShow,
                nameTruncateMaxWidth: s.nameTruncateMaxWidth,
                tickDirection: 1,
                labelDirection: 1
            }
        }, this)
    }
    ,
    t.prototype.getAxis = function(e) {
        return this._axesMap.get(e)
    }
    ,
    t.prototype.dataToPoint = function(e, n) {
        return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(e), n)
    }
    ,
    t.prototype.eachActiveState = function(e, n, r, a) {
        r == null && (r = 0),
        a == null && (a = e.count());
        var i = this._axesMap
          , o = this.dimensions
          , l = []
          , s = [];
        Z(o, function(g) {
            l.push(e.mapDimension(g)),
            s.push(i.get(g).model)
        });
        for (var u = this.hasAxisBrushed(), c = r; c < a; c++) {
            var f = void 0;
            if (!u)
                f = "normal";
            else {
                f = "active";
                for (var d = e.getValues(l, c), v = 0, h = o.length; v < h; v++) {
                    var p = s[v].getActiveState(d[v]);
                    if (p === "inactive") {
                        f = "inactive";
                        break
                    }
                }
            }
            n(f, c)
        }
    }
    ,
    t.prototype.hasAxisBrushed = function() {
        for (var e = this.dimensions, n = this._axesMap, r = !1, a = 0, i = e.length; a < i; a++)
            n.get(e[a]).model.getActiveState() !== "normal" && (r = !0);
        return r
    }
    ,
    t.prototype.axisCoordToPoint = function(e, n) {
        var r = this._axesLayout[n];
        return mo([e, 0], r.transform)
    }
    ,
    t.prototype.getAxisLayout = function(e) {
        return ut(this._axesLayout[e])
    }
    ,
    t.prototype.getSlidedAxisExpandWindow = function(e) {
        var n = this._makeLayoutInfo()
          , r = n.pixelDimIndex
          , a = n.axisExpandWindow.slice()
          , i = a[1] - a[0]
          , o = [0, n.axisExpandWidth * (n.axisCount - 1)];
        if (!this.containPoint(e))
            return {
                behavior: "none",
                axisExpandWindow: a
            };
        var l = e[r] - n.layoutBase - n.axisExpandWindow0Pos, s, u = "slide", c = n.axisCollapseWidth, f = this._model.get("axisExpandSlideTriggerArea"), d = f[0] != null;
        if (c)
            d && c && l < i * f[0] ? (u = "jump",
            s = l - i * f[2]) : d && c && l > i * (1 - f[0]) ? (u = "jump",
            s = l - i * (1 - f[2])) : (s = l - i * f[1]) >= 0 && (s = l - i * (1 - f[1])) <= 0 && (s = 0),
            s *= n.axisExpandWidth / c,
            s ? sd(s, a, o, "all") : u = "none";
        else {
            var v = a[1] - a[0]
              , h = o[1] * l / v;
            a = [Kue(0, h - v / 2)],
            a[1] = Gue(o[1], a[0] + v),
            a[0] = a[1] - v
        }
        return {
            axisExpandWindow: a,
            behavior: u
        }
    }
    ,
    t
}();
function q1(t, e) {
    return Gue(Kue(t, e[0]), e[1])
}
function oit(t, e) {
    var n = e.layoutLength / (e.axisCount - 1);
    return {
        position: n * t,
        axisNameAvailableWidth: n,
        axisLabelShow: !0
    }
}
function lit(t, e) {
    var n = e.layoutLength, r = e.axisExpandWidth, a = e.axisCount, i = e.axisCollapseWidth, o = e.winInnerIndices, l, s = i, u = !1, c;
    return t < o[0] ? (l = t * i,
    c = i) : t <= o[1] ? (l = e.axisExpandWindow0Pos + t * r - e.axisExpandWindow[0],
    s = r,
    u = !0) : (l = n - (a - 1 - t) * i,
    c = i),
    {
        position: l,
        axisNameAvailableWidth: s,
        axisLabelShow: u,
        nameTruncateMaxWidth: c
    }
}
const sit = iit;
function uit(t, e) {
    var n = [];
    return t.eachComponent("parallel", function(r, a) {
        var i = new sit(r,t,e);
        i.name = "parallel_" + a,
        i.resize(r, e),
        r.coordinateSystem = i,
        i.model = r,
        n.push(i)
    }),
    t.eachSeries(function(r) {
        if (r.get("coordinateSystem") === "parallel") {
            var a = r.getReferringComponents("parallel", mr).models[0];
            r.coordinateSystem = a.coordinateSystem
        }
    }),
    n
}
var cit = {
    create: uit
};
const fit = cit;
var Uue = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.activeIntervals = [],
        n
    }
    return e.prototype.getAreaSelectStyle = function() {
        return Ff([["fill", "color"], ["lineWidth", "borderWidth"], ["stroke", "borderColor"], ["width", "width"], ["opacity", "opacity"]])(this.getModel("areaSelectStyle"))
    }
    ,
    e.prototype.setActiveIntervals = function(n) {
        var r = this.activeIntervals = ut(n);
        if (r)
            for (var a = r.length - 1; a >= 0; a--)
                ri(r[a])
    }
    ,
    e.prototype.getActiveState = function(n) {
        var r = this.activeIntervals;
        if (!r.length)
            return "normal";
        if (n == null || isNaN(+n))
            return "inactive";
        if (r.length === 1) {
            var a = r[0];
            if (a[0] <= n && n <= a[1])
                return "active"
        } else
            for (var i = 0, o = r.length; i < o; i++)
                if (r[i][0] <= n && n <= r[i][1])
                    return "active";
        return "inactive"
    }
    ,
    e
}(qt);
ir(Uue, zh);
const lK = Uue;
var Hf = !0
  , am = Math.min
  , nh = Math.max
  , dit = Math.pow
  , vit = 1e4
  , hit = 6
  , pit = 6
  , sK = "globalPan"
  , git = {
    w: [0, 0],
    e: [0, 1],
    n: [1, 0],
    s: [1, 1]
}
  , mit = {
    w: "ew",
    e: "ew",
    n: "ns",
    s: "ns",
    ne: "nesw",
    sw: "nesw",
    nw: "nwse",
    se: "nwse"
}
  , uK = {
    brushStyle: {
        lineWidth: 2,
        stroke: "rgba(210,219,238,0.3)",
        fill: "#D2DBEE"
    },
    transformable: !0,
    brushMode: "single",
    removeOnClick: !1
}
  , yit = 0
  , bit = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this) || this;
        return r._track = [],
        r._covers = [],
        r._handlers = {},
        r._zr = n,
        r.group = new mt,
        r._uid = "brushController_" + yit++,
        Z(Pit, function(a, i) {
            this._handlers[i] = qe(a, this)
        }, r),
        r
    }
    return e.prototype.enableBrush = function(n) {
        return this._brushType && this._doDisableBrush(),
        n.brushType && this._doEnableBrush(n),
        this
    }
    ,
    e.prototype._doEnableBrush = function(n) {
        var r = this._zr;
        this._enableGlobalPan || Itt(r, sK, this._uid),
        Z(this._handlers, function(a, i) {
            r.on(i, a)
        }),
        this._brushType = n.brushType,
        this._brushOption = At(ut(uK), n, !0)
    }
    ,
    e.prototype._doDisableBrush = function() {
        var n = this._zr;
        ktt(n, sK, this._uid),
        Z(this._handlers, function(r, a) {
            n.off(a, r)
        }),
        this._brushType = this._brushOption = null
    }
    ,
    e.prototype.setPanels = function(n) {
        if (n && n.length) {
            var r = this._panels = {};
            Z(n, function(a) {
                r[a.panelId] = ut(a)
            })
        } else
            this._panels = null;
        return this
    }
    ,
    e.prototype.mount = function(n) {
        n = n || {},
        this._enableGlobalPan = n.enableGlobalPan;
        var r = this.group;
        return this._zr.add(r),
        r.attr({
            x: n.x || 0,
            y: n.y || 0,
            rotation: n.rotation || 0,
            scaleX: n.scaleX || 1,
            scaleY: n.scaleY || 1
        }),
        this._transform = r.getLocalTransform(),
        this
    }
    ,
    e.prototype.updateCovers = function(n) {
        n = Le(n, function(d) {
            return At(ut(uK), d, !0)
        });
        var r = "\0-brush-index-"
          , a = this._covers
          , i = this._covers = []
          , o = this
          , l = this._creatingCover;
        return new fs(a,n,u,s).add(c).update(c).remove(f).execute(),
        this;
        function s(d, v) {
            return (d.id != null ? d.id : r + v) + "-" + d.brushType
        }
        function u(d, v) {
            return s(d.__brushOption, v)
        }
        function c(d, v) {
            var h = n[d];
            if (v != null && a[v] === l)
                i[d] = a[v];
            else {
                var p = i[d] = v != null ? (a[v].__brushOption = h,
                a[v]) : que(o, Yue(o, h));
                oL(o, p)
            }
        }
        function f(d) {
            a[d] !== l && o.group.remove(a[d])
        }
    }
    ,
    e.prototype.unmount = function() {
        return this.enableBrush(!1),
        hk(this),
        this._zr.remove(this.group),
        this
    }
    ,
    e.prototype.dispose = function() {
        this.unmount(),
        this.off()
    }
    ,
    e
}(Wi);
function Yue(t, e) {
    var n = E2[e.brushType].createCover(t, e);
    return n.__brushOption = e,
    Zue(n, e),
    t.group.add(n),
    n
}
function que(t, e) {
    var n = lL(e);
    return n.endCreating && (n.endCreating(t, e),
    Zue(e, e.__brushOption)),
    e
}
function Xue(t, e) {
    var n = e.__brushOption;
    lL(e).updateCoverShape(t, e, n.range, n)
}
function Zue(t, e) {
    var n = e.z;
    n == null && (n = vit),
    t.traverse(function(r) {
        r.z = n,
        r.z2 = n
    })
}
function oL(t, e) {
    lL(e).updateCommon(t, e),
    Xue(t, e)
}
function lL(t) {
    return E2[t.__brushOption.brushType]
}
function sL(t, e, n) {
    var r = t._panels;
    if (!r)
        return Hf;
    var a, i = t._transform;
    return Z(r, function(o) {
        o.isTargetByCursor(e, n, i) && (a = o)
    }),
    a
}
function Que(t, e) {
    var n = t._panels;
    if (!n)
        return Hf;
    var r = e.__brushOption.panelId;
    return r != null ? n[r] : Hf
}
function hk(t) {
    var e = t._covers
      , n = e.length;
    return Z(e, function(r) {
        t.group.remove(r)
    }, t),
    e.length = 0,
    !!n
}
function jf(t, e) {
    var n = Le(t._covers, function(r) {
        var a = r.__brushOption
          , i = ut(a.range);
        return {
            brushType: a.brushType,
            panelId: a.panelId,
            range: i
        }
    });
    t.trigger("brush", {
        areas: n,
        isEnd: !!e.isEnd,
        removeOnClick: !!e.removeOnClick
    })
}
function xit(t) {
    var e = t._track;
    if (!e.length)
        return !1;
    var n = e[e.length - 1]
      , r = e[0]
      , a = n[0] - r[0]
      , i = n[1] - r[1]
      , o = dit(a * a + i * i, .5);
    return o > hit
}
function Jue(t) {
    var e = t.length - 1;
    return e < 0 && (e = 0),
    [t[0], t[e]]
}
function ece(t, e, n, r) {
    var a = new mt;
    return a.add(new tn({
        name: "main",
        style: uL(n),
        silent: !0,
        draggable: !0,
        cursor: "move",
        drift: St(cK, t, e, a, ["n", "s", "w", "e"]),
        ondragend: St(jf, e, {
            isEnd: !0
        })
    })),
    Z(r, function(i) {
        a.add(new tn({
            name: i.join(""),
            style: {
                opacity: 0
            },
            draggable: !0,
            silent: !0,
            invisible: !0,
            drift: St(cK, t, e, a, i),
            ondragend: St(jf, e, {
                isEnd: !0
            })
        }))
    }),
    a
}
function tce(t, e, n, r) {
    var a = r.brushStyle.lineWidth || 0
      , i = nh(a, pit)
      , o = n[0][0]
      , l = n[1][0]
      , s = o - a / 2
      , u = l - a / 2
      , c = n[0][1]
      , f = n[1][1]
      , d = c - i + a / 2
      , v = f - i + a / 2
      , h = c - o
      , p = f - l
      , g = h + a
      , m = p + a;
    Fl(t, e, "main", o, l, h, p),
    r.transformable && (Fl(t, e, "w", s, u, i, m),
    Fl(t, e, "e", d, u, i, m),
    Fl(t, e, "n", s, u, g, i),
    Fl(t, e, "s", s, v, g, i),
    Fl(t, e, "nw", s, u, i, i),
    Fl(t, e, "ne", d, u, i, i),
    Fl(t, e, "sw", s, v, i, i),
    Fl(t, e, "se", d, v, i, i))
}
function pk(t, e) {
    var n = e.__brushOption
      , r = n.transformable
      , a = e.childAt(0);
    a.useStyle(uL(n)),
    a.attr({
        silent: !r,
        cursor: r ? "move" : "default"
    }),
    Z([["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]], function(i) {
        var o = e.childOfName(i.join(""))
          , l = i.length === 1 ? gk(t, i[0]) : Cit(t, i);
        o && o.attr({
            silent: !r,
            invisible: !r,
            cursor: r ? mit[l] + "-resize" : null
        })
    })
}
function Fl(t, e, n, r, a, i, o) {
    var l = e.childOfName(n);
    l && l.setShape(_it(cL(t, e, [[r, a], [r + i, a + o]])))
}
function uL(t) {
    return ot({
        strokeNoScale: !0
    }, t.brushStyle)
}
function nce(t, e, n, r) {
    var a = [am(t, n), am(e, r)]
      , i = [nh(t, n), nh(e, r)];
    return [[a[0], i[0]], [a[1], i[1]]]
}
function Sit(t) {
    return Su(t.group)
}
function gk(t, e) {
    var n = {
        w: "left",
        e: "right",
        n: "top",
        s: "bottom"
    }
      , r = {
        left: "w",
        right: "e",
        top: "n",
        bottom: "s"
    }
      , a = f2(n[e], Sit(t));
    return r[a]
}
function Cit(t, e) {
    var n = [gk(t, e[0]), gk(t, e[1])];
    return (n[0] === "e" || n[0] === "w") && n.reverse(),
    n.join("")
}
function cK(t, e, n, r, a, i) {
    var o = n.__brushOption
      , l = t.toRectRange(o.range)
      , s = rce(e, a, i);
    Z(r, function(u) {
        var c = git[u];
        l[c[0]][c[1]] += s[c[0]]
    }),
    o.range = t.fromRectRange(nce(l[0][0], l[1][0], l[0][1], l[1][1])),
    oL(e, n),
    jf(e, {
        isEnd: !1
    })
}
function wit(t, e, n, r) {
    var a = e.__brushOption.range
      , i = rce(t, n, r);
    Z(a, function(o) {
        o[0] += i[0],
        o[1] += i[1]
    }),
    oL(t, e),
    jf(t, {
        isEnd: !1
    })
}
function rce(t, e, n) {
    var r = t.group
      , a = r.transformCoordToLocal(e, n)
      , i = r.transformCoordToLocal(0, 0);
    return [a[0] - i[0], a[1] - i[1]]
}
function cL(t, e, n) {
    var r = Que(t, e);
    return r && r !== Hf ? r.clipPath(n, t._transform) : ut(n)
}
function _it(t) {
    var e = am(t[0][0], t[1][0])
      , n = am(t[0][1], t[1][1])
      , r = nh(t[0][0], t[1][0])
      , a = nh(t[0][1], t[1][1]);
    return {
        x: e,
        y: n,
        width: r - e,
        height: a - n
    }
}
function Tit(t, e, n) {
    if (!(!t._brushType || Mit(t, e.offsetX, e.offsetY))) {
        var r = t._zr
          , a = t._covers
          , i = sL(t, e, n);
        if (!t._dragging)
            for (var o = 0; o < a.length; o++) {
                var l = a[o].__brushOption;
                if (i && (i === Hf || l.panelId === i.panelId) && E2[l.brushType].contain(a[o], n[0], n[1]))
                    return
            }
        i && r.setCursorStyle("crosshair")
    }
}
function mk(t) {
    var e = t.event;
    e.preventDefault && e.preventDefault()
}
function yk(t, e, n) {
    return t.childOfName("main").contain(e, n)
}
function ace(t, e, n, r) {
    var a = t._creatingCover, i = t._creatingPanel, o = t._brushOption, l;
    if (t._track.push(n.slice()),
    xit(t) || a) {
        if (i && !a) {
            o.brushMode === "single" && hk(t);
            var s = ut(o);
            s.brushType = fK(s.brushType, i),
            s.panelId = i === Hf ? null : i.panelId,
            a = t._creatingCover = Yue(t, s),
            t._covers.push(a)
        }
        if (a) {
            var u = E2[fK(t._brushType, i)]
              , c = a.__brushOption;
            c.range = u.getCreatingRange(cL(t, a, t._track)),
            r && (que(t, a),
            u.updateCommon(t, a)),
            Xue(t, a),
            l = {
                isEnd: r
            }
        }
    } else
        r && o.brushMode === "single" && o.removeOnClick && sL(t, e, n) && hk(t) && (l = {
            isEnd: r,
            removeOnClick: !0
        });
    return l
}
function fK(t, e) {
    return t === "auto" ? e.defaultBrushType : t
}
var Pit = {
    mousedown: function(t) {
        if (this._dragging)
            dK(this, t);
        else if (!t.target || !t.target.draggable) {
            mk(t);
            var e = this.group.transformCoordToLocal(t.offsetX, t.offsetY);
            this._creatingCover = null;
            var n = this._creatingPanel = sL(this, t, e);
            n && (this._dragging = !0,
            this._track = [e.slice()])
        }
    },
    mousemove: function(t) {
        var e = t.offsetX
          , n = t.offsetY
          , r = this.group.transformCoordToLocal(e, n);
        if (Tit(this, t, r),
        this._dragging) {
            mk(t);
            var a = ace(this, t, r, !1);
            a && jf(this, a)
        }
    },
    mouseup: function(t) {
        dK(this, t)
    }
};
function dK(t, e) {
    if (t._dragging) {
        mk(e);
        var n = e.offsetX
          , r = e.offsetY
          , a = t.group.transformCoordToLocal(n, r)
          , i = ace(t, e, a, !0);
        t._dragging = !1,
        t._track = [],
        t._creatingCover = null,
        i && jf(t, i)
    }
}
function Mit(t, e, n) {
    var r = t._zr;
    return e < 0 || e > r.getWidth() || n < 0 || n > r.getHeight()
}
var E2 = {
    lineX: vK(0),
    lineY: vK(1),
    rect: {
        createCover: function(t, e) {
            function n(r) {
                return r
            }
            return ece({
                toRectRange: n,
                fromRectRange: n
            }, t, e, [["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]])
        },
        getCreatingRange: function(t) {
            var e = Jue(t);
            return nce(e[1][0], e[1][1], e[0][0], e[0][1])
        },
        updateCoverShape: function(t, e, n, r) {
            tce(t, e, n, r)
        },
        updateCommon: pk,
        contain: yk
    },
    polygon: {
        createCover: function(t, e) {
            var n = new mt;
            return n.add(new Aa({
                name: "main",
                style: uL(e),
                silent: !0
            })),
            n
        },
        getCreatingRange: function(t) {
            return t
        },
        endCreating: function(t, e) {
            e.remove(e.childAt(0)),
            e.add(new Ma({
                name: "main",
                draggable: !0,
                drift: St(wit, t, e),
                ondragend: St(jf, t, {
                    isEnd: !0
                })
            }))
        },
        updateCoverShape: function(t, e, n, r) {
            e.childAt(0).setShape({
                points: cL(t, e, n)
            })
        },
        updateCommon: pk,
        contain: yk
    }
};
function vK(t) {
    return {
        createCover: function(e, n) {
            return ece({
                toRectRange: function(r) {
                    var a = [r, [0, 100]];
                    return t && a.reverse(),
                    a
                },
                fromRectRange: function(r) {
                    return r[t]
                }
            }, e, n, [[["w"], ["e"]], [["n"], ["s"]]][t])
        },
        getCreatingRange: function(e) {
            var n = Jue(e)
              , r = am(n[0][t], n[1][t])
              , a = nh(n[0][t], n[1][t]);
            return [r, a]
        },
        updateCoverShape: function(e, n, r, a) {
            var i, o = Que(e, n);
            if (o !== Hf && o.getLinearBrushOtherExtent)
                i = o.getLinearBrushOtherExtent(t);
            else {
                var l = e._zr;
                i = [0, [l.getWidth(), l.getHeight()][1 - t]]
            }
            var s = [r, i];
            t && s.reverse(),
            tce(e, n, s, a)
        },
        updateCommon: pk,
        contain: yk
    }
}
const fL = bit;
function ice(t) {
    return t = dL(t),
    function(e) {
        return Z6(e, t)
    }
}
function oce(t, e) {
    return t = dL(t),
    function(n) {
        var r = e != null ? e : n
          , a = r ? t.width : t.height
          , i = r ? t.x : t.y;
        return [i, i + (a || 0)]
    }
}
function lce(t, e, n) {
    var r = dL(t);
    return function(a, i) {
        return r.contain(i[0], i[1]) && !I2(a, e, n)
    }
}
function dL(t) {
    return Dt.create(t)
}
var Ait = ["axisLine", "axisTickLabel", "axisName"]
  , Iit = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function(n, r) {
        t.prototype.init.apply(this, arguments),
        (this._brushController = new fL(r.getZr())).on("brush", qe(this._onBrush, this))
    }
    ,
    e.prototype.render = function(n, r, a, i) {
        if (!kit(n, r, i)) {
            this.axisModel = n,
            this.api = a,
            this.group.removeAll();
            var o = this._axisGroup;
            if (this._axisGroup = new mt,
            this.group.add(this._axisGroup),
            !!n.get("show")) {
                var l = Dit(n, r)
                  , s = l.coordinateSystem
                  , u = n.getAreaSelectStyle()
                  , c = u.width
                  , f = n.axis.dim
                  , d = s.getAxisLayout(f)
                  , v = Me({
                    strokeContainThreshold: c
                }, d)
                  , h = new vs(n,v);
                Z(Ait, h.add, h),
                this._axisGroup.add(h.getGroup()),
                this._refreshBrushController(v, u, n, l, c, a),
                Qm(o, this._axisGroup, n)
            }
        }
    }
    ,
    e.prototype._refreshBrushController = function(n, r, a, i, o, l) {
        var s = a.axis.getExtent()
          , u = s[1] - s[0]
          , c = Math.min(30, Math.abs(u) * .1)
          , f = Dt.create({
            x: s[0],
            y: -o / 2,
            width: u,
            height: o
        });
        f.x -= c,
        f.width += 2 * c,
        this._brushController.mount({
            enableGlobalPan: !0,
            rotation: n.rotation,
            x: n.position[0],
            y: n.position[1]
        }).setPanels([{
            panelId: "pl",
            clipPath: ice(f),
            isTargetByCursor: lce(f, l, i),
            getLinearBrushOtherExtent: oce(f, 0)
        }]).enableBrush({
            brushType: "lineX",
            brushStyle: r,
            removeOnClick: !0
        }).updateCovers(Oit(a))
    }
    ,
    e.prototype._onBrush = function(n) {
        var r = n.areas
          , a = this.axisModel
          , i = a.axis
          , o = Le(r, function(l) {
            return [i.coordToData(l.range[0], !0), i.coordToData(l.range[1], !0)]
        });
        (!a.option.realtime === n.isEnd || n.removeOnClick) && this.api.dispatchAction({
            type: "axisAreaSelect",
            parallelAxisId: a.id,
            intervals: o
        })
    }
    ,
    e.prototype.dispose = function() {
        this._brushController.dispose()
    }
    ,
    e.type = "parallelAxis",
    e
}(Bn);
function kit(t, e, n) {
    return n && n.type === "axisAreaSelect" && e.findComponents({
        mainType: "parallelAxis",
        query: n
    })[0] === t
}
function Oit(t) {
    var e = t.axis;
    return Le(t.activeIntervals, function(n) {
        return {
            brushType: "lineX",
            panelId: "pl",
            range: [e.dataToCoord(n[0], !0), e.dataToCoord(n[1], !0)]
        }
    })
}
function Dit(t, e) {
    return e.getComponent("parallel", t.get("parallelIndex"))
}
const Eit = Iit;
var Lit = {
    type: "axisAreaSelect",
    event: "axisAreaSelected"
};
function Rit(t) {
    t.registerAction(Lit, function(e, n) {
        n.eachComponent({
            mainType: "parallelAxis",
            query: e
        }, function(r) {
            r.axis.model.setActiveIntervals(e.intervals)
        })
    }),
    t.registerAction("parallelAxisExpand", function(e, n) {
        n.eachComponent({
            mainType: "parallel",
            query: e
        }, function(r) {
            r.setAxisExpand(e)
        })
    })
}
var Nit = {
    type: "value",
    areaSelectStyle: {
        width: 20,
        borderWidth: 1,
        borderColor: "rgba(160,197,232)",
        color: "rgba(160,197,232)",
        opacity: .3
    },
    realtime: !0,
    z: 10
};
function sce(t) {
    t.registerComponentView(Qat),
    t.registerComponentModel(eit),
    t.registerCoordinateSystem("parallel", fit),
    t.registerPreprocessor(Kat),
    t.registerComponentModel(lK),
    t.registerComponentView(Eit),
    th(t, "parallel", lK, Nit),
    Rit(t)
}
function $it(t) {
    Bt(sce),
    t.registerChartView(Fat),
    t.registerSeriesModel(Hat),
    t.registerVisual(t.PRIORITY.VISUAL.BRUSH, Gat)
}
var Fit = function() {
    function t() {
        this.x1 = 0,
        this.y1 = 0,
        this.x2 = 0,
        this.y2 = 0,
        this.cpx1 = 0,
        this.cpy1 = 0,
        this.cpx2 = 0,
        this.cpy2 = 0,
        this.extent = 0
    }
    return t
}()
  , Bit = function(t) {
    ge(e, t);
    function e(n) {
        return t.call(this, n) || this
    }
    return e.prototype.getDefaultShape = function() {
        return new Fit
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.extent;
        n.moveTo(r.x1, r.y1),
        n.bezierCurveTo(r.cpx1, r.cpy1, r.cpx2, r.cpy2, r.x2, r.y2),
        r.orient === "vertical" ? (n.lineTo(r.x2 + a, r.y2),
        n.bezierCurveTo(r.cpx2 + a, r.cpy2, r.cpx1 + a, r.cpy1, r.x1 + a, r.y1)) : (n.lineTo(r.x2, r.y2 + a),
        n.bezierCurveTo(r.cpx2, r.cpy2 + a, r.cpx1, r.cpy1 + a, r.x1, r.y1 + a)),
        n.closePath()
    }
    ,
    e.prototype.highlight = function() {
        us(this)
    }
    ,
    e.prototype.downplay = function() {
        cs(this)
    }
    ,
    e
}(jt)
  , Vit = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n._focusAdjacencyDisabled = !1,
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i = this
          , o = n.getGraph()
          , l = this.group
          , s = n.layoutInfo
          , u = s.width
          , c = s.height
          , f = n.getData()
          , d = n.getData("edge")
          , v = n.get("orient");
        this._model = n,
        l.removeAll(),
        l.x = s.x,
        l.y = s.y,
        o.eachEdge(function(h) {
            var p = new Bit
              , g = Ct(p);
            g.dataIndex = h.dataIndex,
            g.seriesIndex = n.seriesIndex,
            g.dataType = "edge";
            var m = h.getModel(), y = m.getModel("lineStyle"), b = y.get("curveness"), x = h.node1.getLayout(), C = h.node1.getModel(), S = C.get("localX"), w = C.get("localY"), T = h.node2.getLayout(), P = h.node2.getModel(), M = P.get("localX"), A = P.get("localY"), O = h.getLayout(), k, D, E, L, N, R, $, W;
            p.shape.extent = Math.max(1, O.dy),
            p.shape.orient = v,
            v === "vertical" ? (k = (S != null ? S * u : x.x) + O.sy,
            D = (w != null ? w * c : x.y) + x.dy,
            E = (M != null ? M * u : T.x) + O.ty,
            L = A != null ? A * c : T.y,
            N = k,
            R = D * (1 - b) + L * b,
            $ = E,
            W = D * b + L * (1 - b)) : (k = (S != null ? S * u : x.x) + x.dx,
            D = (w != null ? w * c : x.y) + O.sy,
            E = M != null ? M * u : T.x,
            L = (A != null ? A * c : T.y) + O.ty,
            N = k * (1 - b) + E * b,
            R = D,
            $ = k * b + E * (1 - b),
            W = L),
            p.setShape({
                x1: k,
                y1: D,
                x2: E,
                y2: L,
                cpx1: N,
                cpy1: R,
                cpx2: $,
                cpy2: W
            }),
            p.useStyle(y.getItemStyle()),
            hK(p.style, v, h);
            var B = "" + m.get("value")
              , G = Nr(m, "edgeLabel");
            ea(p, G, {
                labelFetcher: {
                    getFormattedLabel: function(U, X, Y, te, ne, ie) {
                        return n.getFormattedLabel(U, X, "edge", te, ho(ne, G.normal && G.normal.get("formatter"), B), ie)
                    }
                },
                labelDataIndex: h.dataIndex,
                defaultText: B
            }),
            p.setTextConfig({
                position: "inside"
            });
            var K = m.getModel("emphasis");
            Jr(p, m, "lineStyle", function(U) {
                var X = U.getItemStyle();
                return hK(X, v, h),
                X
            }),
            l.add(p),
            d.setItemGraphicEl(h.dataIndex, p);
            var V = K.get("focus");
            Qn(p, V === "adjacency" ? h.getAdjacentDataIndices() : V === "trajectory" ? h.getTrajectoryDataIndices() : V, K.get("blurScope"), K.get("disabled"))
        }),
        o.eachNode(function(h) {
            var p = h.getLayout()
              , g = h.getModel()
              , m = g.get("localX")
              , y = g.get("localY")
              , b = g.getModel("emphasis")
              , x = new tn({
                shape: {
                    x: m != null ? m * u : p.x,
                    y: y != null ? y * c : p.y,
                    width: p.dx,
                    height: p.dy
                },
                style: g.getModel("itemStyle").getItemStyle(),
                z2: 10
            });
            ea(x, Nr(g), {
                labelFetcher: {
                    getFormattedLabel: function(S, w) {
                        return n.getFormattedLabel(S, w, "node")
                    }
                },
                labelDataIndex: h.dataIndex,
                defaultText: h.id
            }),
            x.disableLabelAnimation = !0,
            x.setStyle("fill", h.getVisual("color")),
            x.setStyle("decal", h.getVisual("style").decal),
            Jr(x, g),
            l.add(x),
            f.setItemGraphicEl(h.dataIndex, x),
            Ct(x).dataType = "node";
            var C = b.get("focus");
            Qn(x, C === "adjacency" ? h.getAdjacentDataIndices() : C === "trajectory" ? h.getTrajectoryDataIndices() : C, b.get("blurScope"), b.get("disabled"))
        }),
        f.eachItemGraphicEl(function(h, p) {
            var g = f.getItemModel(p);
            g.get("draggable") && (h.drift = function(m, y) {
                i._focusAdjacencyDisabled = !0,
                this.shape.x += m,
                this.shape.y += y,
                this.dirty(),
                a.dispatchAction({
                    type: "dragNode",
                    seriesId: n.id,
                    dataIndex: f.getRawIndex(p),
                    localX: this.shape.x / u,
                    localY: this.shape.y / c
                })
            }
            ,
            h.ondragend = function() {
                i._focusAdjacencyDisabled = !1
            }
            ,
            h.draggable = !0,
            h.cursor = "move")
        }),
        !this._data && n.isAnimationEnabled() && l.setClipPath(zit(l.getBoundingRect(), n, function() {
            l.removeClipPath()
        })),
        this._data = n.getData()
    }
    ,
    e.prototype.dispose = function() {}
    ,
    e.type = "sankey",
    e
}(Tn);
function hK(t, e, n) {
    switch (t.fill) {
    case "source":
        t.fill = n.node1.getVisual("color"),
        t.decal = n.node1.getVisual("style").decal;
        break;
    case "target":
        t.fill = n.node2.getVisual("color"),
        t.decal = n.node2.getVisual("style").decal;
        break;
    case "gradient":
        var r = n.node1.getVisual("color")
          , a = n.node2.getVisual("color");
        Ge(r) && Ge(a) && (t.fill = new Mh(0,0,+(e === "horizontal"),+(e === "vertical"),[{
            color: r,
            offset: 0
        }, {
            color: a,
            offset: 1
        }]))
    }
}
function zit(t, e, n) {
    var r = new tn({
        shape: {
            x: t.x - 10,
            y: t.y - 10,
            width: 0,
            height: t.height + 20
        }
    });
    return $n(r, {
        shape: {
            width: t.width + 20
        }
    }, e, n),
    r
}
const Hit = Vit;
var jit = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.getInitialData = function(n, r) {
        var a = n.edges || n.links
          , i = n.data || n.nodes
          , o = n.levels;
        this.levelModels = [];
        for (var l = this.levelModels, s = 0; s < o.length; s++)
            o[s].depth != null && o[s].depth >= 0 && (l[o[s].depth] = new wn(o[s],this,r));
        if (i && a) {
            var u = jue(i, a, this, !0, c);
            return u.data
        }
        function c(f, d) {
            f.wrapMethod("getItemModel", function(v, h) {
                var p = v.parentModel
                  , g = p.getData().getItemLayout(h);
                if (g) {
                    var m = g.depth
                      , y = p.levelModels[m];
                    y && (v.parentModel = y)
                }
                return v
            }),
            d.wrapMethod("getItemModel", function(v, h) {
                var p = v.parentModel
                  , g = p.getGraph().getEdgeByIndex(h)
                  , m = g.node1.getLayout();
                if (m) {
                    var y = m.depth
                      , b = p.levelModels[y];
                    b && (v.parentModel = b)
                }
                return v
            })
        }
    }
    ,
    e.prototype.setNodePosition = function(n, r) {
        var a = this.option.data || this.option.nodes
          , i = a[n];
        i.localX = r[0],
        i.localY = r[1]
    }
    ,
    e.prototype.getGraph = function() {
        return this.getData().graph
    }
    ,
    e.prototype.getEdgeData = function() {
        return this.getGraph().edgeData
    }
    ,
    e.prototype.formatTooltip = function(n, r, a) {
        function i(v) {
            return isNaN(v) || v == null
        }
        if (a === "edge") {
            var o = this.getDataParams(n, a)
              , l = o.data
              , s = o.value
              , u = l.source + " -- " + l.target;
            return $r("nameValue", {
                name: u,
                value: s,
                noValue: i(s)
            })
        } else {
            var c = this.getGraph().getNodeByIndex(n)
              , f = c.getLayout().value
              , d = this.getDataParams(n, a).data.name;
            return $r("nameValue", {
                name: d != null ? d + "" : null,
                value: f,
                noValue: i(f)
            })
        }
    }
    ,
    e.prototype.optionUpdated = function() {}
    ,
    e.prototype.getDataParams = function(n, r) {
        var a = t.prototype.getDataParams.call(this, n, r);
        if (a.value == null && r === "node") {
            var i = this.getGraph().getNodeByIndex(n)
              , o = i.getLayout().value;
            a.value = o
        }
        return a
    }
    ,
    e.type = "series.sankey",
    e.defaultOption = {
        z: 2,
        coordinateSystem: "view",
        left: "5%",
        top: "5%",
        right: "20%",
        bottom: "5%",
        orient: "horizontal",
        nodeWidth: 20,
        nodeGap: 8,
        draggable: !0,
        layoutIterations: 32,
        label: {
            show: !0,
            position: "right",
            fontSize: 12
        },
        edgeLabel: {
            show: !1,
            fontSize: 12
        },
        levels: [],
        nodeAlign: "justify",
        lineStyle: {
            color: "#314656",
            opacity: .2,
            curveness: .5
        },
        emphasis: {
            label: {
                show: !0
            },
            lineStyle: {
                opacity: .5
            }
        },
        select: {
            itemStyle: {
                borderColor: "#212121"
            }
        },
        animationEasing: "linear",
        animationDuration: 1e3
    },
    e
}(En);
const Wit = jit;
function Git(t, e) {
    t.eachSeriesByType("sankey", function(n) {
        var r = n.get("nodeWidth")
          , a = n.get("nodeGap")
          , i = Kit(n, e);
        n.layoutInfo = i;
        var o = i.width
          , l = i.height
          , s = n.getGraph()
          , u = s.nodes
          , c = s.edges;
        Yit(u);
        var f = pn(u, function(p) {
            return p.getLayout().value === 0
        })
          , d = f.length !== 0 ? 0 : n.get("layoutIterations")
          , v = n.get("orient")
          , h = n.get("nodeAlign");
        Uit(u, c, r, a, o, l, d, v, h)
    })
}
function Kit(t, e) {
    return xr(t.getBoxLayoutParams(), {
        width: e.getWidth(),
        height: e.getHeight()
    })
}
function Uit(t, e, n, r, a, i, o, l, s) {
    qit(t, e, n, a, i, l, s),
    Jit(t, e, i, a, r, o, l),
    sot(t, l)
}
function Yit(t) {
    Z(t, function(e) {
        var n = _u(e.outEdges, rC)
          , r = _u(e.inEdges, rC)
          , a = e.getValue() || 0
          , i = Math.max(n, r, a);
        e.setLayout({
            value: i
        }, !0)
    })
}
function qit(t, e, n, r, a, i, o) {
    for (var l = [], s = [], u = [], c = [], f = 0, d = 0; d < e.length; d++)
        l[d] = 1;
    for (var d = 0; d < t.length; d++)
        s[d] = t[d].inEdges.length,
        s[d] === 0 && u.push(t[d]);
    for (var v = -1; u.length; ) {
        for (var h = 0; h < u.length; h++) {
            var p = u[h]
              , g = p.hostGraph.data.getRawDataItem(p.dataIndex)
              , m = g.depth != null && g.depth >= 0;
            m && g.depth > v && (v = g.depth),
            p.setLayout({
                depth: m ? g.depth : f
            }, !0),
            i === "vertical" ? p.setLayout({
                dy: n
            }, !0) : p.setLayout({
                dx: n
            }, !0);
            for (var y = 0; y < p.outEdges.length; y++) {
                var b = p.outEdges[y]
                  , x = e.indexOf(b);
                l[x] = 0;
                var C = b.node2
                  , S = t.indexOf(C);
                --s[S] === 0 && c.indexOf(C) < 0 && c.push(C)
            }
        }
        ++f,
        u = c,
        c = []
    }
    for (var d = 0; d < l.length; d++)
        if (l[d] === 1)
            throw new Error("Sankey is a DAG, the original data has cycle!");
    var w = v > f - 1 ? v : f - 1;
    o && o !== "left" && Xit(t, o, i, w);
    var T = i === "vertical" ? (a - n) / w : (r - n) / w;
    Qit(t, T, i)
}
function uce(t) {
    var e = t.hostGraph.data.getRawDataItem(t.dataIndex);
    return e.depth != null && e.depth >= 0
}
function Xit(t, e, n, r) {
    if (e === "right") {
        for (var a = [], i = t, o = 0; i.length; ) {
            for (var l = 0; l < i.length; l++) {
                var s = i[l];
                s.setLayout({
                    skNodeHeight: o
                }, !0);
                for (var u = 0; u < s.inEdges.length; u++) {
                    var c = s.inEdges[u];
                    a.indexOf(c.node1) < 0 && a.push(c.node1)
                }
            }
            i = a,
            a = [],
            ++o
        }
        Z(t, function(f) {
            uce(f) || f.setLayout({
                depth: Math.max(0, r - f.getLayout().skNodeHeight)
            }, !0)
        })
    } else
        e === "justify" && Zit(t, r)
}
function Zit(t, e) {
    Z(t, function(n) {
        !uce(n) && !n.outEdges.length && n.setLayout({
            depth: e
        }, !0)
    })
}
function Qit(t, e, n) {
    Z(t, function(r) {
        var a = r.getLayout().depth * e;
        n === "vertical" ? r.setLayout({
            y: a
        }, !0) : r.setLayout({
            x: a
        }, !0)
    })
}
function Jit(t, e, n, r, a, i, o) {
    var l = eot(t, o);
    tot(l, e, n, r, a, o),
    q4(l, a, n, r, o);
    for (var s = 1; i > 0; i--)
        s *= .99,
        not(l, s, o),
        q4(l, a, n, r, o),
        lot(l, s, o),
        q4(l, a, n, r, o)
}
function eot(t, e) {
    var n = []
      , r = e === "vertical" ? "y" : "x"
      , a = xI(t, function(i) {
        return i.getLayout()[r]
    });
    return a.keys.sort(function(i, o) {
        return i - o
    }),
    Z(a.keys, function(i) {
        n.push(a.buckets.get(i))
    }),
    n
}
function tot(t, e, n, r, a, i) {
    var o = 1 / 0;
    Z(t, function(l) {
        var s = l.length
          , u = 0;
        Z(l, function(f) {
            u += f.getLayout().value
        });
        var c = i === "vertical" ? (r - (s - 1) * a) / u : (n - (s - 1) * a) / u;
        c < o && (o = c)
    }),
    Z(t, function(l) {
        Z(l, function(s, u) {
            var c = s.getLayout().value * o;
            i === "vertical" ? (s.setLayout({
                x: u
            }, !0),
            s.setLayout({
                dx: c
            }, !0)) : (s.setLayout({
                y: u
            }, !0),
            s.setLayout({
                dy: c
            }, !0))
        })
    }),
    Z(e, function(l) {
        var s = +l.getValue() * o;
        l.setLayout({
            dy: s
        }, !0)
    })
}
function q4(t, e, n, r, a) {
    var i = a === "vertical" ? "x" : "y";
    Z(t, function(o) {
        o.sort(function(p, g) {
            return p.getLayout()[i] - g.getLayout()[i]
        });
        for (var l, s, u, c = 0, f = o.length, d = a === "vertical" ? "dx" : "dy", v = 0; v < f; v++)
            s = o[v],
            u = c - s.getLayout()[i],
            u > 0 && (l = s.getLayout()[i] + u,
            a === "vertical" ? s.setLayout({
                x: l
            }, !0) : s.setLayout({
                y: l
            }, !0)),
            c = s.getLayout()[i] + s.getLayout()[d] + e;
        var h = a === "vertical" ? r : n;
        if (u = c - e - h,
        u > 0) {
            l = s.getLayout()[i] - u,
            a === "vertical" ? s.setLayout({
                x: l
            }, !0) : s.setLayout({
                y: l
            }, !0),
            c = l;
            for (var v = f - 2; v >= 0; --v)
                s = o[v],
                u = s.getLayout()[i] + s.getLayout()[d] + e - c,
                u > 0 && (l = s.getLayout()[i] - u,
                a === "vertical" ? s.setLayout({
                    x: l
                }, !0) : s.setLayout({
                    y: l
                }, !0)),
                c = s.getLayout()[i]
        }
    })
}
function not(t, e, n) {
    Z(t.slice().reverse(), function(r) {
        Z(r, function(a) {
            if (a.outEdges.length) {
                var i = _u(a.outEdges, rot, n) / _u(a.outEdges, rC);
                if (isNaN(i)) {
                    var o = a.outEdges.length;
                    i = o ? _u(a.outEdges, aot, n) / o : 0
                }
                if (n === "vertical") {
                    var l = a.getLayout().x + (i - Ru(a, n)) * e;
                    a.setLayout({
                        x: l
                    }, !0)
                } else {
                    var s = a.getLayout().y + (i - Ru(a, n)) * e;
                    a.setLayout({
                        y: s
                    }, !0)
                }
            }
        })
    })
}
function rot(t, e) {
    return Ru(t.node2, e) * t.getValue()
}
function aot(t, e) {
    return Ru(t.node2, e)
}
function iot(t, e) {
    return Ru(t.node1, e) * t.getValue()
}
function oot(t, e) {
    return Ru(t.node1, e)
}
function Ru(t, e) {
    return e === "vertical" ? t.getLayout().x + t.getLayout().dx / 2 : t.getLayout().y + t.getLayout().dy / 2
}
function rC(t) {
    return t.getValue()
}
function _u(t, e, n) {
    for (var r = 0, a = t.length, i = -1; ++i < a; ) {
        var o = +e(t[i], n);
        isNaN(o) || (r += o)
    }
    return r
}
function lot(t, e, n) {
    Z(t, function(r) {
        Z(r, function(a) {
            if (a.inEdges.length) {
                var i = _u(a.inEdges, iot, n) / _u(a.inEdges, rC);
                if (isNaN(i)) {
                    var o = a.inEdges.length;
                    i = o ? _u(a.inEdges, oot, n) / o : 0
                }
                if (n === "vertical") {
                    var l = a.getLayout().x + (i - Ru(a, n)) * e;
                    a.setLayout({
                        x: l
                    }, !0)
                } else {
                    var s = a.getLayout().y + (i - Ru(a, n)) * e;
                    a.setLayout({
                        y: s
                    }, !0)
                }
            }
        })
    })
}
function sot(t, e) {
    var n = e === "vertical" ? "x" : "y";
    Z(t, function(r) {
        r.outEdges.sort(function(a, i) {
            return a.node2.getLayout()[n] - i.node2.getLayout()[n]
        }),
        r.inEdges.sort(function(a, i) {
            return a.node1.getLayout()[n] - i.node1.getLayout()[n]
        })
    }),
    Z(t, function(r) {
        var a = 0
          , i = 0;
        Z(r.outEdges, function(o) {
            o.setLayout({
                sy: a
            }, !0),
            a += o.getLayout().dy
        }),
        Z(r.inEdges, function(o) {
            o.setLayout({
                ty: i
            }, !0),
            i += o.getLayout().dy
        })
    })
}
function uot(t) {
    t.eachSeriesByType("sankey", function(e) {
        var n = e.getGraph()
          , r = n.nodes
          , a = n.edges;
        if (r.length) {
            var i = 1 / 0
              , o = -1 / 0;
            Z(r, function(l) {
                var s = l.getLayout().value;
                s < i && (i = s),
                s > o && (o = s)
            }),
            Z(r, function(l) {
                var s = new Xr({
                    type: "color",
                    mappingMethod: "linear",
                    dataExtent: [i, o],
                    visual: e.get("color")
                })
                  , u = s.mapValueToVisual(l.getLayout().value)
                  , c = l.getModel().get(["itemStyle", "color"]);
                c != null ? (l.setVisual("color", c),
                l.setVisual("style", {
                    fill: c
                })) : (l.setVisual("color", u),
                l.setVisual("style", {
                    fill: u
                }))
            })
        }
        a.length && Z(a, function(l) {
            var s = l.getModel().get("lineStyle");
            l.setVisual("style", s)
        })
    })
}
function cot(t) {
    t.registerChartView(Hit),
    t.registerSeriesModel(Wit),
    t.registerLayout(Git),
    t.registerVisual(uot),
    t.registerAction({
        type: "dragNode",
        event: "dragnode",
        update: "update"
    }, function(e, n) {
        n.eachComponent({
            mainType: "series",
            subType: "sankey",
            query: e
        }, function(r) {
            r.setNodePosition(e.dataIndex, [e.localX, e.localY])
        })
    })
}
var cce = function() {
    function t() {}
    return t.prototype.getInitialData = function(e, n) {
        var r, a = n.getComponent("xAxis", this.get("xAxisIndex")), i = n.getComponent("yAxis", this.get("yAxisIndex")), o = a.get("type"), l = i.get("type"), s;
        o === "category" ? (e.layout = "horizontal",
        r = a.getOrdinalMeta(),
        s = !0) : l === "category" ? (e.layout = "vertical",
        r = i.getOrdinalMeta(),
        s = !0) : e.layout = e.layout || "horizontal";
        var u = ["x", "y"]
          , c = e.layout === "horizontal" ? 0 : 1
          , f = this._baseAxisDim = u[c]
          , d = u[1 - c]
          , v = [a, i]
          , h = v[c].get("type")
          , p = v[1 - c].get("type")
          , g = e.data;
        if (g && s) {
            var m = [];
            Z(g, function(x, C) {
                var S;
                ke(x) ? (S = x.slice(),
                x.unshift(C)) : ke(x.value) ? (S = Me({}, x),
                S.value = S.value.slice(),
                x.value.unshift(C)) : S = x,
                m.push(S)
            }),
            e.data = m
        }
        var y = this.defaultValueDimensions
          , b = [{
            name: f,
            type: GS(h),
            ordinalMeta: r,
            otherDims: {
                tooltip: !1,
                itemName: 0
            },
            dimsDef: ["base"]
        }, {
            name: d,
            type: GS(p),
            dimsDef: y.slice()
        }];
        return Hh(this, {
            coordDimensions: b,
            dimensionsCount: y.length + 1,
            encodeDefaulter: St(Doe, b, this)
        })
    }
    ,
    t.prototype.getBaseAxis = function() {
        var e = this._baseAxisDim;
        return this.ecModel.getComponent(e + "Axis", this.get(e + "AxisIndex")).axis
    }
    ,
    t
}()
  , fce = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.defaultValueDimensions = [{
            name: "min",
            defaultTooltip: !0
        }, {
            name: "Q1",
            defaultTooltip: !0
        }, {
            name: "median",
            defaultTooltip: !0
        }, {
            name: "Q3",
            defaultTooltip: !0
        }, {
            name: "max",
            defaultTooltip: !0
        }],
        n.visualDrawType = "stroke",
        n
    }
    return e.type = "series.boxplot",
    e.dependencies = ["xAxis", "yAxis", "grid"],
    e.defaultOption = {
        z: 2,
        coordinateSystem: "cartesian2d",
        legendHoverLink: !0,
        layout: null,
        boxWidth: [7, 50],
        itemStyle: {
            color: "#fff",
            borderWidth: 1
        },
        emphasis: {
            scale: !0,
            itemStyle: {
                borderWidth: 2,
                shadowBlur: 5,
                shadowOffsetX: 1,
                shadowOffsetY: 1,
                shadowColor: "rgba(0,0,0,0.2)"
            }
        },
        animationDuration: 800
    },
    e
}(En);
ir(fce, cce, !0);
const fot = fce;
var dot = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i = n.getData()
          , o = this.group
          , l = this._data;
        this._data || o.removeAll();
        var s = n.get("layout") === "horizontal" ? 1 : 0;
        i.diff(l).add(function(u) {
            if (i.hasValue(u)) {
                var c = i.getItemLayout(u)
                  , f = pK(c, i, u, s, !0);
                i.setItemGraphicEl(u, f),
                o.add(f)
            }
        }).update(function(u, c) {
            var f = l.getItemGraphicEl(c);
            if (!i.hasValue(u)) {
                o.remove(f);
                return
            }
            var d = i.getItemLayout(u);
            f ? (Ao(f),
            dce(d, f, i, u)) : f = pK(d, i, u, s),
            o.add(f),
            i.setItemGraphicEl(u, f)
        }).remove(function(u) {
            var c = l.getItemGraphicEl(u);
            c && o.remove(c)
        }).execute(),
        this._data = i
    }
    ,
    e.prototype.remove = function(n) {
        var r = this.group
          , a = this._data;
        this._data = null,
        a && a.eachItemGraphicEl(function(i) {
            i && r.remove(i)
        })
    }
    ,
    e.type = "boxplot",
    e
}(Tn)
  , vot = function() {
    function t() {}
    return t
}()
  , hot = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r.type = "boxplotBoxPath",
        r
    }
    return e.prototype.getDefaultShape = function() {
        return new vot
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.points
          , i = 0;
        for (n.moveTo(a[i][0], a[i][1]),
        i++; i < 4; i++)
            n.lineTo(a[i][0], a[i][1]);
        for (n.closePath(); i < a.length; i++)
            n.moveTo(a[i][0], a[i][1]),
            i++,
            n.lineTo(a[i][0], a[i][1])
    }
    ,
    e
}(jt);
function pK(t, e, n, r, a) {
    var i = t.ends
      , o = new hot({
        shape: {
            points: a ? pot(i, r, t) : i
        }
    });
    return dce(t, o, e, n, a),
    o
}
function dce(t, e, n, r, a) {
    var i = n.hostModel
      , o = Jm[a ? "initProps" : "updateProps"];
    o(e, {
        shape: {
            points: t.ends
        }
    }, i, r),
    e.useStyle(n.getItemVisual(r, "style")),
    e.style.strokeNoScale = !0,
    e.z2 = 100;
    var l = n.getItemModel(r)
      , s = l.getModel("emphasis");
    Jr(e, l),
    Qn(e, s.get("focus"), s.get("blurScope"), s.get("disabled"))
}
function pot(t, e, n) {
    return Le(t, function(r) {
        return r = r.slice(),
        r[e] = n.initBaseline,
        r
    })
}
const got = dot;
var Ug = Z;
function mot(t) {
    var e = yot(t);
    Ug(e, function(n) {
        var r = n.seriesModels;
        !r.length || (bot(n),
        Ug(r, function(a, i) {
            xot(a, n.boxOffsetList[i], n.boxWidthList[i])
        }))
    })
}
function yot(t) {
    var e = []
      , n = [];
    return t.eachSeriesByType("boxplot", function(r) {
        var a = r.getBaseAxis()
          , i = Rt(n, a);
        i < 0 && (i = n.length,
        n[i] = a,
        e[i] = {
            axis: a,
            seriesModels: []
        }),
        e[i].seriesModels.push(r)
    }),
    e
}
function bot(t) {
    var e = t.axis, n = t.seriesModels, r = n.length, a = t.boxWidthList = [], i = t.boxOffsetList = [], o = [], l;
    if (e.type === "category")
        l = e.getBandWidth();
    else {
        var s = 0;
        Ug(n, function(h) {
            s = Math.max(s, h.getData().count())
        });
        var u = e.getExtent();
        l = Math.abs(u[1] - u[0]) / s
    }
    Ug(n, function(h) {
        var p = h.get("boxWidth");
        ke(p) || (p = [p, p]),
        o.push([He(p[0], l) || 0, He(p[1], l) || 0])
    });
    var c = l * .8 - 2
      , f = c / r * .3
      , d = (c - f * (r - 1)) / r
      , v = d / 2 - c / 2;
    Ug(n, function(h, p) {
        i.push(v),
        v += f + d,
        a.push(Math.min(Math.max(d, o[p][0]), o[p][1]))
    })
}
function xot(t, e, n) {
    var r = t.coordinateSystem
      , a = t.getData()
      , i = n / 2
      , o = t.get("layout") === "horizontal" ? 0 : 1
      , l = 1 - o
      , s = ["x", "y"]
      , u = a.mapDimension(s[o])
      , c = a.mapDimensionsAll(s[l]);
    if (u == null || c.length < 5)
        return;
    for (var f = 0; f < a.count(); f++) {
        var d = a.get(u, f)
          , v = b(d, c[2], f)
          , h = b(d, c[0], f)
          , p = b(d, c[1], f)
          , g = b(d, c[3], f)
          , m = b(d, c[4], f)
          , y = [];
        x(y, p, !1),
        x(y, g, !0),
        y.push(h, p, m, g),
        C(y, h),
        C(y, m),
        C(y, v),
        a.setItemLayout(f, {
            initBaseline: v[l],
            ends: y
        })
    }
    function b(S, w, T) {
        var P = a.get(w, T)
          , M = [];
        M[o] = S,
        M[l] = P;
        var A;
        return isNaN(S) || isNaN(P) ? A = [NaN, NaN] : (A = r.dataToPoint(M),
        A[o] += e),
        A
    }
    function x(S, w, T) {
        var P = w.slice()
          , M = w.slice();
        P[o] += i,
        M[o] -= i,
        T ? S.push(P, M) : S.push(M, P)
    }
    function C(S, w) {
        var T = w.slice()
          , P = w.slice();
        T[o] -= i,
        P[o] += i,
        S.push(T, P)
    }
}
function Sot(t, e) {
    e = e || {};
    for (var n = [], r = [], a = e.boundIQR, i = a === "none" || a === 0, o = 0; o < t.length; o++) {
        var l = ri(t[o].slice())
          , s = ix(l, .25)
          , u = ix(l, .5)
          , c = ix(l, .75)
          , f = l[0]
          , d = l[l.length - 1]
          , v = (a == null ? 1.5 : a) * (c - s)
          , h = i ? f : Math.max(f, s - v)
          , p = i ? d : Math.min(d, c + v)
          , g = e.itemNameFormatter
          , m = et(g) ? g({
            value: o
        }) : Ge(g) ? g.replace("{value}", o + "") : o + "";
        n.push([m, h, s, u, c, p]);
        for (var y = 0; y < l.length; y++) {
            var b = l[y];
            if (b < h || b > p) {
                var x = [m, b];
                r.push(x)
            }
        }
    }
    return {
        boxData: n,
        outliers: r
    }
}
var Cot = {
    type: "echarts:boxplot",
    transform: function(e) {
        var n = e.upstream;
        if (n.sourceFormat !== sa) {
            var r = "";
            cn(r)
        }
        var a = Sot(n.getRawData(), e.config);
        return [{
            dimensions: ["ItemName", "Low", "Q1", "Q2", "Q3", "High"],
            data: a.boxData
        }, {
            data: a.outliers
        }]
    }
};
function wot(t) {
    t.registerSeriesModel(fot),
    t.registerChartView(got),
    t.registerLayout(mot),
    t.registerTransform(Cot)
}
var _ot = ["color", "borderColor"]
  , Tot = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        this.group.removeClipPath(),
        this._progressiveEls = null,
        this._updateDrawMode(n),
        this._isLargeDraw ? this._renderLarge(n) : this._renderNormal(n)
    }
    ,
    e.prototype.incrementalPrepareRender = function(n, r, a) {
        this._clear(),
        this._updateDrawMode(n)
    }
    ,
    e.prototype.incrementalRender = function(n, r, a, i) {
        this._progressiveEls = [],
        this._isLargeDraw ? this._incrementalRenderLarge(n, r) : this._incrementalRenderNormal(n, r)
    }
    ,
    e.prototype.eachRendered = function(n) {
        Uu(this._progressiveEls || this.group, n)
    }
    ,
    e.prototype._updateDrawMode = function(n) {
        var r = n.pipelineContext.large;
        (this._isLargeDraw == null || r !== this._isLargeDraw) && (this._isLargeDraw = r,
        this._clear())
    }
    ,
    e.prototype._renderNormal = function(n) {
        var r = n.getData()
          , a = this._data
          , i = this.group
          , o = r.getLayout("isSimpleBox")
          , l = n.get("clip", !0)
          , s = n.coordinateSystem
          , u = s.getArea && s.getArea();
        this._data || i.removeAll(),
        r.diff(a).add(function(c) {
            if (r.hasValue(c)) {
                var f = r.getItemLayout(c);
                if (l && gK(u, f))
                    return;
                var d = X4(f, c, !0);
                $n(d, {
                    shape: {
                        points: f.ends
                    }
                }, n, c),
                Z4(d, r, c, o),
                i.add(d),
                r.setItemGraphicEl(c, d)
            }
        }).update(function(c, f) {
            var d = a.getItemGraphicEl(f);
            if (!r.hasValue(c)) {
                i.remove(d);
                return
            }
            var v = r.getItemLayout(c);
            if (l && gK(u, v)) {
                i.remove(d);
                return
            }
            d ? (ln(d, {
                shape: {
                    points: v.ends
                }
            }, n, c),
            Ao(d)) : d = X4(v),
            Z4(d, r, c, o),
            i.add(d),
            r.setItemGraphicEl(c, d)
        }).remove(function(c) {
            var f = a.getItemGraphicEl(c);
            f && i.remove(f)
        }).execute(),
        this._data = r
    }
    ,
    e.prototype._renderLarge = function(n) {
        this._clear(),
        mK(n, this.group);
        var r = n.get("clip", !0) ? A2(n.coordinateSystem, !1, n) : null;
        r ? this.group.setClipPath(r) : this.group.removeClipPath()
    }
    ,
    e.prototype._incrementalRenderNormal = function(n, r) {
        for (var a = r.getData(), i = a.getLayout("isSimpleBox"), o; (o = n.next()) != null; ) {
            var l = a.getItemLayout(o)
              , s = X4(l);
            Z4(s, a, o, i),
            s.incremental = !0,
            this.group.add(s),
            this._progressiveEls.push(s)
        }
    }
    ,
    e.prototype._incrementalRenderLarge = function(n, r) {
        mK(r, this.group, this._progressiveEls, !0)
    }
    ,
    e.prototype.remove = function(n) {
        this._clear()
    }
    ,
    e.prototype._clear = function() {
        this.group.removeAll(),
        this._data = null
    }
    ,
    e.type = "candlestick",
    e
}(Tn)
  , Pot = function() {
    function t() {}
    return t
}()
  , Mot = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r.type = "normalCandlestickBox",
        r
    }
    return e.prototype.getDefaultShape = function() {
        return new Pot
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.points;
        this.__simpleBox ? (n.moveTo(a[4][0], a[4][1]),
        n.lineTo(a[6][0], a[6][1])) : (n.moveTo(a[0][0], a[0][1]),
        n.lineTo(a[1][0], a[1][1]),
        n.lineTo(a[2][0], a[2][1]),
        n.lineTo(a[3][0], a[3][1]),
        n.closePath(),
        n.moveTo(a[4][0], a[4][1]),
        n.lineTo(a[5][0], a[5][1]),
        n.moveTo(a[6][0], a[6][1]),
        n.lineTo(a[7][0], a[7][1]))
    }
    ,
    e
}(jt);
function X4(t, e, n) {
    var r = t.ends;
    return new Mot({
        shape: {
            points: n ? Aot(r, t) : r
        },
        z2: 100
    })
}
function gK(t, e) {
    for (var n = !0, r = 0; r < e.ends.length; r++)
        if (t.contain(e.ends[r][0], e.ends[r][1])) {
            n = !1;
            break
        }
    return n
}
function Z4(t, e, n, r) {
    var a = e.getItemModel(n);
    t.useStyle(e.getItemVisual(n, "style")),
    t.style.strokeNoScale = !0,
    t.__simpleBox = r,
    Jr(t, a)
}
function Aot(t, e) {
    return Le(t, function(n) {
        return n = n.slice(),
        n[1] = e.initBaseline,
        n
    })
}
var Iot = function() {
    function t() {}
    return t
}()
  , Q4 = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r.type = "largeCandlestickBox",
        r
    }
    return e.prototype.getDefaultShape = function() {
        return new Iot
    }
    ,
    e.prototype.buildPath = function(n, r) {
        for (var a = r.points, i = 0; i < a.length; )
            if (this.__sign === a[i++]) {
                var o = a[i++];
                n.moveTo(o, a[i++]),
                n.lineTo(o, a[i++])
            } else
                i += 3
    }
    ,
    e
}(jt);
function mK(t, e, n, r) {
    var a = t.getData()
      , i = a.getLayout("largePoints")
      , o = new Q4({
        shape: {
            points: i
        },
        __sign: 1,
        ignoreCoarsePointer: !0
    });
    e.add(o);
    var l = new Q4({
        shape: {
            points: i
        },
        __sign: -1,
        ignoreCoarsePointer: !0
    });
    e.add(l);
    var s = new Q4({
        shape: {
            points: i
        },
        __sign: 0,
        ignoreCoarsePointer: !0
    });
    e.add(s),
    J4(1, o, t),
    J4(-1, l, t),
    J4(0, s, t),
    r && (o.incremental = !0,
    l.incremental = !0),
    n && n.push(o, l)
}
function J4(t, e, n, r) {
    var a = n.get(["itemStyle", t > 0 ? "borderColor" : "borderColor0"]) || n.get(["itemStyle", t > 0 ? "color" : "color0"]);
    t === 0 && (a = n.get(["itemStyle", "borderColorDoji"]));
    var i = n.getModel("itemStyle").getItemStyle(_ot);
    e.useStyle(i),
    e.style.fill = null,
    e.style.stroke = a
}
const kot = Tot;
var vce = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.defaultValueDimensions = [{
            name: "open",
            defaultTooltip: !0
        }, {
            name: "close",
            defaultTooltip: !0
        }, {
            name: "lowest",
            defaultTooltip: !0
        }, {
            name: "highest",
            defaultTooltip: !0
        }],
        n
    }
    return e.prototype.getShadowDim = function() {
        return "open"
    }
    ,
    e.prototype.brushSelector = function(n, r, a) {
        var i = r.getItemLayout(n);
        return i && a.rect(i.brushRect)
    }
    ,
    e.type = "series.candlestick",
    e.dependencies = ["xAxis", "yAxis", "grid"],
    e.defaultOption = {
        z: 2,
        coordinateSystem: "cartesian2d",
        legendHoverLink: !0,
        layout: null,
        clip: !0,
        itemStyle: {
            color: "#eb5454",
            color0: "#47b262",
            borderColor: "#eb5454",
            borderColor0: "#47b262",
            borderColorDoji: null,
            borderWidth: 1
        },
        emphasis: {
            scale: !0,
            itemStyle: {
                borderWidth: 2
            }
        },
        barMaxWidth: null,
        barMinWidth: null,
        barWidth: null,
        large: !0,
        largeThreshold: 600,
        progressive: 3e3,
        progressiveThreshold: 1e4,
        progressiveChunkMode: "mod",
        animationEasing: "linear",
        animationDuration: 300
    },
    e
}(En);
ir(vce, cce, !0);
const Oot = vce;
function Dot(t) {
    !t || !ke(t.series) || Z(t.series, function(e) {
        st(e) && e.type === "k" && (e.type = "candlestick")
    })
}
var Eot = ["itemStyle", "borderColor"]
  , Lot = ["itemStyle", "borderColor0"]
  , Rot = ["itemStyle", "borderColorDoji"]
  , Not = ["itemStyle", "color"]
  , $ot = ["itemStyle", "color0"]
  , Fot = {
    seriesType: "candlestick",
    plan: $h(),
    performRawSeries: !0,
    reset: function(t, e) {
        function n(i, o) {
            return o.get(i > 0 ? Not : $ot)
        }
        function r(i, o) {
            return o.get(i === 0 ? Rot : i > 0 ? Eot : Lot)
        }
        if (!e.isSeriesFiltered(t)) {
            var a = t.pipelineContext.large;
            return !a && {
                progress: function(i, o) {
                    for (var l; (l = i.next()) != null; ) {
                        var s = o.getItemModel(l)
                          , u = o.getItemLayout(l).sign
                          , c = s.getItemStyle();
                        c.fill = n(u, s),
                        c.stroke = r(u, s) || c.fill;
                        var f = o.ensureUniqueItemVisual(l, "style");
                        Me(f, c)
                    }
                }
            }
        }
    }
};
const Bot = Fot;
var Vot = {
    seriesType: "candlestick",
    plan: $h(),
    reset: function(t) {
        var e = t.coordinateSystem
          , n = t.getData()
          , r = zot(t, n)
          , a = 0
          , i = 1
          , o = ["x", "y"]
          , l = n.getDimensionIndex(n.mapDimension(o[a]))
          , s = Le(n.mapDimensionsAll(o[i]), n.getDimensionIndex, n)
          , u = s[0]
          , c = s[1]
          , f = s[2]
          , d = s[3];
        if (n.setLayout({
            candleWidth: r,
            isSimpleBox: r <= 1.3
        }),
        l < 0 || s.length < 4)
            return;
        return {
            progress: t.pipelineContext.large ? h : v
        };
        function v(p, g) {
            for (var m, y = g.getStore(); (m = p.next()) != null; ) {
                var b = y.get(l, m)
                  , x = y.get(u, m)
                  , C = y.get(c, m)
                  , S = y.get(f, m)
                  , w = y.get(d, m)
                  , T = Math.min(x, C)
                  , P = Math.max(x, C)
                  , M = N(T, b)
                  , A = N(P, b)
                  , O = N(S, b)
                  , k = N(w, b)
                  , D = [];
                R(D, A, 0),
                R(D, M, 1),
                D.push(W(k), W(A), W(O), W(M));
                var E = g.getItemModel(m)
                  , L = !!E.get(["itemStyle", "borderColorDoji"]);
                g.setItemLayout(m, {
                    sign: yK(y, m, x, C, c, L),
                    initBaseline: x > C ? A[i] : M[i],
                    ends: D,
                    brushRect: $(S, w, b)
                })
            }
            function N(B, G) {
                var K = [];
                return K[a] = G,
                K[i] = B,
                isNaN(G) || isNaN(B) ? [NaN, NaN] : e.dataToPoint(K)
            }
            function R(B, G, K) {
                var V = G.slice()
                  , U = G.slice();
                V[a] = sx(V[a] + r / 2, 1, !1),
                U[a] = sx(U[a] - r / 2, 1, !0),
                K ? B.push(V, U) : B.push(U, V)
            }
            function $(B, G, K) {
                var V = N(B, K)
                  , U = N(G, K);
                return V[a] -= r / 2,
                U[a] -= r / 2,
                {
                    x: V[0],
                    y: V[1],
                    width: r,
                    height: U[1] - V[1]
                }
            }
            function W(B) {
                return B[a] = sx(B[a], 1),
                B
            }
        }
        function h(p, g) {
            for (var m = il(p.count * 4), y = 0, b, x = [], C = [], S, w = g.getStore(), T = !!t.get(["itemStyle", "borderColorDoji"]); (S = p.next()) != null; ) {
                var P = w.get(l, S)
                  , M = w.get(u, S)
                  , A = w.get(c, S)
                  , O = w.get(f, S)
                  , k = w.get(d, S);
                if (isNaN(P) || isNaN(O) || isNaN(k)) {
                    m[y++] = NaN,
                    y += 3;
                    continue
                }
                m[y++] = yK(w, S, M, A, c, T),
                x[a] = P,
                x[i] = O,
                b = e.dataToPoint(x, null, C),
                m[y++] = b ? b[0] : NaN,
                m[y++] = b ? b[1] : NaN,
                x[i] = k,
                b = e.dataToPoint(x, null, C),
                m[y++] = b ? b[1] : NaN
            }
            g.setLayout("largePoints", m)
        }
    }
};
function yK(t, e, n, r, a, i) {
    var o;
    return n > r ? o = -1 : n < r ? o = 1 : o = i ? 0 : e > 0 ? t.get(a, e - 1) <= r ? 1 : -1 : 1,
    o
}
function zot(t, e) {
    var n = t.getBaseAxis(), r, a = n.type === "category" ? n.getBandWidth() : (r = n.getExtent(),
    Math.abs(r[1] - r[0]) / e.count()), i = He(Ot(t.get("barMaxWidth"), a), a), o = He(Ot(t.get("barMinWidth"), 1), a), l = t.get("barWidth");
    return l != null ? He(l, a) : Math.max(Math.min(a / 2, i), o)
}
const Hot = Vot;
function jot(t) {
    t.registerChartView(kot),
    t.registerSeriesModel(Oot),
    t.registerPreprocessor(Dot),
    t.registerVisual(Bot),
    t.registerLayout(Hot)
}
function bK(t, e) {
    var n = e.rippleEffectColor || e.color;
    t.eachChild(function(r) {
        r.attr({
            z: e.z,
            zlevel: e.zlevel,
            style: {
                stroke: e.brushType === "stroke" ? n : null,
                fill: e.brushType === "fill" ? n : null
            }
        })
    })
}
var Wot = function(t) {
    ge(e, t);
    function e(n, r) {
        var a = t.call(this) || this
          , i = new ay(n,r)
          , o = new mt;
        return a.add(i),
        a.add(o),
        a.updateData(n, r),
        a
    }
    return e.prototype.stopEffectAnimation = function() {
        this.childAt(1).removeAll()
    }
    ,
    e.prototype.startEffectAnimation = function(n) {
        for (var r = n.symbolType, a = n.color, i = n.rippleNumber, o = this.childAt(1), l = 0; l < i; l++) {
            var s = fr(r, -1, -1, 2, 2, a);
            s.attr({
                style: {
                    strokeNoScale: !0
                },
                z2: 99,
                silent: !0,
                scaleX: .5,
                scaleY: .5
            });
            var u = -l / i * n.period + n.effectOffset;
            s.animate("", !0).when(n.period, {
                scaleX: n.rippleScale / 2,
                scaleY: n.rippleScale / 2
            }).delay(u).start(),
            s.animateStyle(!0).when(n.period, {
                opacity: 0
            }).delay(u).start(),
            o.add(s)
        }
        bK(o, n)
    }
    ,
    e.prototype.updateEffectAnimation = function(n) {
        for (var r = this._effectCfg, a = this.childAt(1), i = ["symbolType", "period", "rippleScale", "rippleNumber"], o = 0; o < i.length; o++) {
            var l = i[o];
            if (r[l] !== n[l]) {
                this.stopEffectAnimation(),
                this.startEffectAnimation(n);
                return
            }
        }
        bK(a, n)
    }
    ,
    e.prototype.highlight = function() {
        us(this)
    }
    ,
    e.prototype.downplay = function() {
        cs(this)
    }
    ,
    e.prototype.getSymbolType = function() {
        var n = this.childAt(0);
        return n && n.getSymbolType()
    }
    ,
    e.prototype.updateData = function(n, r) {
        var a = this
          , i = n.hostModel;
        this.childAt(0).updateData(n, r);
        var o = this.childAt(1)
          , l = n.getItemModel(r)
          , s = n.getItemVisual(r, "symbol")
          , u = Bh(n.getItemVisual(r, "symbolSize"))
          , c = n.getItemVisual(r, "style")
          , f = c && c.fill
          , d = l.getModel("emphasis");
        o.setScale(u),
        o.traverse(function(g) {
            g.setStyle("fill", f)
        });
        var v = id(n.getItemVisual(r, "symbolOffset"), u);
        v && (o.x = v[0],
        o.y = v[1]);
        var h = n.getItemVisual(r, "symbolRotate");
        o.rotation = (h || 0) * Math.PI / 180 || 0;
        var p = {};
        p.showEffectOn = i.get("showEffectOn"),
        p.rippleScale = l.get(["rippleEffect", "scale"]),
        p.brushType = l.get(["rippleEffect", "brushType"]),
        p.period = l.get(["rippleEffect", "period"]) * 1e3,
        p.effectOffset = r / n.count(),
        p.z = i.getShallow("z") || 0,
        p.zlevel = i.getShallow("zlevel") || 0,
        p.symbolType = s,
        p.color = f,
        p.rippleEffectColor = l.get(["rippleEffect", "color"]),
        p.rippleNumber = l.get(["rippleEffect", "number"]),
        p.showEffectOn === "render" ? (this._effectCfg ? this.updateEffectAnimation(p) : this.startEffectAnimation(p),
        this._effectCfg = p) : (this._effectCfg = null,
        this.stopEffectAnimation(),
        this.onHoverStateChange = function(g) {
            g === "emphasis" ? p.showEffectOn !== "render" && a.startEffectAnimation(p) : g === "normal" && p.showEffectOn !== "render" && a.stopEffectAnimation()
        }
        ),
        this._effectCfg = p,
        Qn(this, d.get("focus"), d.get("blurScope"), d.get("disabled"))
    }
    ,
    e.prototype.fadeOut = function(n) {
        n && n()
    }
    ,
    e
}(mt);
const Got = Wot;
var Kot = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function() {
        this._symbolDraw = new iy(Got)
    }
    ,
    e.prototype.render = function(n, r, a) {
        var i = n.getData()
          , o = this._symbolDraw;
        o.updateData(i, {
            clipShape: this._getClipShape(n)
        }),
        this.group.add(o.group)
    }
    ,
    e.prototype._getClipShape = function(n) {
        var r = n.coordinateSystem
          , a = r && r.getArea && r.getArea();
        return n.get("clip", !0) ? a : null
    }
    ,
    e.prototype.updateTransform = function(n, r, a) {
        var i = n.getData();
        this.group.dirty();
        var o = oy("").reset(n, r, a);
        o.progress && o.progress({
            start: 0,
            end: i.count(),
            count: i.count()
        }, i),
        this._symbolDraw.updateLayout()
    }
    ,
    e.prototype._updateGroupTransform = function(n) {
        var r = n.coordinateSystem;
        r && r.getRoamTransform && (this.group.transform = Mae(r.getRoamTransform()),
        this.group.decomposeTransform())
    }
    ,
    e.prototype.remove = function(n, r) {
        this._symbolDraw && this._symbolDraw.remove(!0)
    }
    ,
    e.type = "effectScatter",
    e
}(Tn);
const Uot = Kot;
var Yot = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.hasSymbolVisual = !0,
        n
    }
    return e.prototype.getInitialData = function(n, r) {
        return Pl(null, this, {
            useEncodeDefaulter: !0
        })
    }
    ,
    e.prototype.brushSelector = function(n, r, a) {
        return a.point(r.getItemLayout(n))
    }
    ,
    e.type = "series.effectScatter",
    e.dependencies = ["grid", "polar"],
    e.defaultOption = {
        coordinateSystem: "cartesian2d",
        z: 2,
        legendHoverLink: !0,
        effectType: "ripple",
        progressive: 0,
        showEffectOn: "render",
        clip: !0,
        rippleEffect: {
            period: 4,
            scale: 2.5,
            brushType: "fill",
            number: 3
        },
        universalTransition: {
            divideShape: "clone"
        },
        symbolSize: 10
    },
    e
}(En);
const qot = Yot;
function Xot(t) {
    t.registerChartView(Uot),
    t.registerSeriesModel(qot),
    t.registerLayout(oy("effectScatter"))
}
var Zot = function(t) {
    ge(e, t);
    function e(n, r, a) {
        var i = t.call(this) || this;
        return i.add(i.createLine(n, r, a)),
        i._updateEffectSymbol(n, r),
        i
    }
    return e.prototype.createLine = function(n, r, a) {
        return new aL(n,r,a)
    }
    ,
    e.prototype._updateEffectSymbol = function(n, r) {
        var a = n.getItemModel(r)
          , i = a.getModel("effect")
          , o = i.get("symbolSize")
          , l = i.get("symbol");
        ke(o) || (o = [o, o]);
        var s = n.getItemVisual(r, "style")
          , u = i.get("color") || s && s.stroke
          , c = this.childAt(1);
        this._symbolType !== l && (this.remove(c),
        c = fr(l, -.5, -.5, 1, 1, u),
        c.z2 = 100,
        c.culling = !0,
        this.add(c)),
        c && (c.setStyle("shadowColor", u),
        c.setStyle(i.getItemStyle(["color"])),
        c.scaleX = o[0],
        c.scaleY = o[1],
        c.setColor(u),
        this._symbolType = l,
        this._symbolScale = o,
        this._updateEffectAnimation(n, i, r))
    }
    ,
    e.prototype._updateEffectAnimation = function(n, r, a) {
        var i = this.childAt(1);
        if (!!i) {
            var o = n.getItemLayout(a)
              , l = r.get("period") * 1e3
              , s = r.get("loop")
              , u = r.get("roundTrip")
              , c = r.get("constantSpeed")
              , f = kr(r.get("delay"), function(v) {
                return v / n.count() * l / 3
            });
            if (i.ignore = !0,
            this._updateAnimationPoints(i, o),
            c > 0 && (l = this._getLineLength(i) / c * 1e3),
            l !== this._period || s !== this._loop || u !== this._roundTrip) {
                i.stopAnimation();
                var d = void 0;
                et(f) ? d = f(a) : d = f,
                i.__t > 0 && (d = -l * i.__t),
                this._animateSymbol(i, l, d, s, u)
            }
            this._period = l,
            this._loop = s,
            this._roundTrip = u
        }
    }
    ,
    e.prototype._animateSymbol = function(n, r, a, i, o) {
        if (r > 0) {
            n.__t = 0;
            var l = this
              , s = n.animate("", i).when(o ? r * 2 : r, {
                __t: o ? 2 : 1
            }).delay(a).during(function() {
                l._updateSymbolPosition(n)
            });
            i || s.done(function() {
                l.remove(n)
            }),
            s.start()
        }
    }
    ,
    e.prototype._getLineLength = function(n) {
        return Zl(n.__p1, n.__cp1) + Zl(n.__cp1, n.__p2)
    }
    ,
    e.prototype._updateAnimationPoints = function(n, r) {
        n.__p1 = r[0],
        n.__p2 = r[1],
        n.__cp1 = r[2] || [(r[0][0] + r[1][0]) / 2, (r[0][1] + r[1][1]) / 2]
    }
    ,
    e.prototype.updateData = function(n, r, a) {
        this.childAt(0).updateData(n, r, a),
        this._updateEffectSymbol(n, r)
    }
    ,
    e.prototype._updateSymbolPosition = function(n) {
        var r = n.__p1
          , a = n.__p2
          , i = n.__cp1
          , o = n.__t < 1 ? n.__t : 2 - n.__t
          , l = [n.x, n.y]
          , s = l.slice()
          , u = Br
          , c = iI;
        l[0] = u(r[0], i[0], a[0], o),
        l[1] = u(r[1], i[1], a[1], o);
        var f = n.__t < 1 ? c(r[0], i[0], a[0], o) : c(a[0], i[0], r[0], 1 - o)
          , d = n.__t < 1 ? c(r[1], i[1], a[1], o) : c(a[1], i[1], r[1], 1 - o);
        n.rotation = -Math.atan2(d, f) - Math.PI / 2,
        (this._symbolType === "line" || this._symbolType === "rect" || this._symbolType === "roundRect") && (n.__lastT !== void 0 && n.__lastT < n.__t ? (n.scaleY = Zl(s, l) * 1.05,
        o === 1 && (l[0] = s[0] + (l[0] - s[0]) / 2,
        l[1] = s[1] + (l[1] - s[1]) / 2)) : n.__lastT === 1 ? n.scaleY = 2 * Zl(r, l) : n.scaleY = this._symbolScale[1]),
        n.__lastT = n.__t,
        n.ignore = !1,
        n.x = l[0],
        n.y = l[1]
    }
    ,
    e.prototype.updateLayout = function(n, r) {
        this.childAt(0).updateLayout(n, r);
        var a = n.getItemModel(r).getModel("effect");
        this._updateEffectAnimation(n, a, r)
    }
    ,
    e
}(mt);
const hce = Zot;
var Qot = function(t) {
    ge(e, t);
    function e(n, r, a) {
        var i = t.call(this) || this;
        return i._createPolyline(n, r, a),
        i
    }
    return e.prototype._createPolyline = function(n, r, a) {
        var i = n.getItemLayout(r)
          , o = new Aa({
            shape: {
                points: i
            }
        });
        this.add(o),
        this._updateCommonStl(n, r, a)
    }
    ,
    e.prototype.updateData = function(n, r, a) {
        var i = n.hostModel
          , o = this.childAt(0)
          , l = {
            shape: {
                points: n.getItemLayout(r)
            }
        };
        ln(o, l, i, r),
        this._updateCommonStl(n, r, a)
    }
    ,
    e.prototype._updateCommonStl = function(n, r, a) {
        var i = this.childAt(0)
          , o = n.getItemModel(r)
          , l = a && a.emphasisLineStyle
          , s = a && a.focus
          , u = a && a.blurScope
          , c = a && a.emphasisDisabled;
        if (!a || n.hasItemOption) {
            var f = o.getModel("emphasis");
            l = f.getModel("lineStyle").getLineStyle(),
            c = f.get("disabled"),
            s = f.get("focus"),
            u = f.get("blurScope")
        }
        i.useStyle(n.getItemVisual(r, "style")),
        i.style.fill = null,
        i.style.strokeNoScale = !0;
        var d = i.ensureState("emphasis");
        d.style = l,
        Qn(this, s, u, c)
    }
    ,
    e.prototype.updateLayout = function(n, r) {
        var a = this.childAt(0);
        a.setShape("points", n.getItemLayout(r))
    }
    ,
    e
}(mt);
const pce = Qot;
var Jot = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n._lastFrame = 0,
        n._lastFramePercent = 0,
        n
    }
    return e.prototype.createLine = function(n, r, a) {
        return new pce(n,r,a)
    }
    ,
    e.prototype._updateAnimationPoints = function(n, r) {
        this._points = r;
        for (var a = [0], i = 0, o = 1; o < r.length; o++) {
            var l = r[o - 1]
              , s = r[o];
            i += Zl(l, s),
            a.push(i)
        }
        if (i === 0) {
            this._length = 0;
            return
        }
        for (var o = 0; o < a.length; o++)
            a[o] /= i;
        this._offsets = a,
        this._length = i
    }
    ,
    e.prototype._getLineLength = function() {
        return this._length
    }
    ,
    e.prototype._updateSymbolPosition = function(n) {
        var r = n.__t < 1 ? n.__t : 2 - n.__t
          , a = this._points
          , i = this._offsets
          , o = a.length;
        if (!!i) {
            var l = this._lastFrame, s;
            if (r < this._lastFramePercent) {
                var u = Math.min(l + 1, o - 1);
                for (s = u; s >= 0 && !(i[s] <= r); s--)
                    ;
                s = Math.min(s, o - 2)
            } else {
                for (s = l; s < o && !(i[s] > r); s++)
                    ;
                s = Math.min(s - 1, o - 2)
            }
            var c = (r - i[s]) / (i[s + 1] - i[s])
              , f = a[s]
              , d = a[s + 1];
            n.x = f[0] * (1 - c) + c * d[0],
            n.y = f[1] * (1 - c) + c * d[1];
            var v = n.__t < 1 ? d[0] - f[0] : f[0] - d[0]
              , h = n.__t < 1 ? d[1] - f[1] : f[1] - d[1];
            n.rotation = -Math.atan2(h, v) - Math.PI / 2,
            this._lastFrame = s,
            this._lastFramePercent = r,
            n.ignore = !1
        }
    }
    ,
    e
}(hce);
const elt = Jot;
var tlt = function() {
    function t() {
        this.polyline = !1,
        this.curveness = 0,
        this.segs = []
    }
    return t
}()
  , nlt = function(t) {
    ge(e, t);
    function e(n) {
        var r = t.call(this, n) || this;
        return r._off = 0,
        r.hoverDataIdx = -1,
        r
    }
    return e.prototype.reset = function() {
        this.notClear = !1,
        this._off = 0
    }
    ,
    e.prototype.getDefaultStyle = function() {
        return {
            stroke: "#000",
            fill: null
        }
    }
    ,
    e.prototype.getDefaultShape = function() {
        return new tlt
    }
    ,
    e.prototype.buildPath = function(n, r) {
        var a = r.segs, i = r.curveness, o;
        if (r.polyline)
            for (o = this._off; o < a.length; ) {
                var l = a[o++];
                if (l > 0) {
                    n.moveTo(a[o++], a[o++]);
                    for (var s = 1; s < l; s++)
                        n.lineTo(a[o++], a[o++])
                }
            }
        else
            for (o = this._off; o < a.length; ) {
                var u = a[o++]
                  , c = a[o++]
                  , f = a[o++]
                  , d = a[o++];
                if (n.moveTo(u, c),
                i > 0) {
                    var v = (u + f) / 2 - (c - d) * i
                      , h = (c + d) / 2 - (f - u) * i;
                    n.quadraticCurveTo(v, h, f, d)
                } else
                    n.lineTo(f, d)
            }
        this.incremental && (this._off = o,
        this.notClear = !0)
    }
    ,
    e.prototype.findDataIndex = function(n, r) {
        var a = this.shape
          , i = a.segs
          , o = a.curveness
          , l = this.style.lineWidth;
        if (a.polyline)
            for (var s = 0, u = 0; u < i.length; ) {
                var c = i[u++];
                if (c > 0)
                    for (var f = i[u++], d = i[u++], v = 1; v < c; v++) {
                        var h = i[u++]
                          , p = i[u++];
                        if (qs(f, d, h, p, l, n, r))
                            return s
                    }
                s++
            }
        else
            for (var s = 0, u = 0; u < i.length; ) {
                var f = i[u++]
                  , d = i[u++]
                  , h = i[u++]
                  , p = i[u++];
                if (o > 0) {
                    var g = (f + h) / 2 - (d - p) * o
                      , m = (d + p) / 2 - (h - f) * o;
                    if (Sie(f, d, g, m, h, p, l, n, r))
                        return s
                } else if (qs(f, d, h, p, l, n, r))
                    return s;
                s++
            }
        return -1
    }
    ,
    e.prototype.contain = function(n, r) {
        var a = this.transformCoordToLocal(n, r)
          , i = this.getBoundingRect();
        if (n = a[0],
        r = a[1],
        i.contain(n, r)) {
            var o = this.hoverDataIdx = this.findDataIndex(n, r);
            return o >= 0
        }
        return this.hoverDataIdx = -1,
        !1
    }
    ,
    e.prototype.getBoundingRect = function() {
        var n = this._rect;
        if (!n) {
            for (var r = this.shape, a = r.segs, i = 1 / 0, o = 1 / 0, l = -1 / 0, s = -1 / 0, u = 0; u < a.length; ) {
                var c = a[u++]
                  , f = a[u++];
                i = Math.min(c, i),
                l = Math.max(c, l),
                o = Math.min(f, o),
                s = Math.max(f, s)
            }
            n = this._rect = new Dt(i,o,l,s)
        }
        return n
    }
    ,
    e
}(jt)
  , rlt = function() {
    function t() {
        this.group = new mt
    }
    return t.prototype.updateData = function(e) {
        this._clear();
        var n = this._create();
        n.setShape({
            segs: e.getLayout("linesPoints")
        }),
        this._setCommon(n, e)
    }
    ,
    t.prototype.incrementalPrepareUpdate = function(e) {
        this.group.removeAll(),
        this._clear()
    }
    ,
    t.prototype.incrementalUpdate = function(e, n) {
        var r = this._newAdded[0]
          , a = n.getLayout("linesPoints")
          , i = r && r.shape.segs;
        if (i && i.length < 2e4) {
            var o = i.length
              , l = new Float32Array(o + a.length);
            l.set(i),
            l.set(a, o),
            r.setShape({
                segs: l
            })
        } else {
            this._newAdded = [];
            var s = this._create();
            s.incremental = !0,
            s.setShape({
                segs: a
            }),
            this._setCommon(s, n),
            s.__startIndex = e.start
        }
    }
    ,
    t.prototype.remove = function() {
        this._clear()
    }
    ,
    t.prototype.eachRendered = function(e) {
        this._newAdded[0] && e(this._newAdded[0])
    }
    ,
    t.prototype._create = function() {
        var e = new nlt({
            cursor: "default",
            ignoreCoarsePointer: !0
        });
        return this._newAdded.push(e),
        this.group.add(e),
        e
    }
    ,
    t.prototype._setCommon = function(e, n, r) {
        var a = n.hostModel;
        e.setShape({
            polyline: a.get("polyline"),
            curveness: a.get(["lineStyle", "curveness"])
        }),
        e.useStyle(a.getModel("lineStyle").getLineStyle()),
        e.style.strokeNoScale = !0;
        var i = n.getVisual("style");
        i && i.stroke && e.setStyle("stroke", i.stroke),
        e.setStyle("fill", null);
        var o = Ct(e);
        o.seriesIndex = a.seriesIndex,
        e.on("mousemove", function(l) {
            o.dataIndex = null;
            var s = e.hoverDataIdx;
            s > 0 && (o.dataIndex = s + e.__startIndex)
        })
    }
    ,
    t.prototype._clear = function() {
        this._newAdded = [],
        this.group.removeAll()
    }
    ,
    t
}();
const alt = rlt;
var ilt = {
    seriesType: "lines",
    plan: $h(),
    reset: function(t) {
        var e = t.coordinateSystem;
        if (!!e) {
            var n = t.get("polyline")
              , r = t.pipelineContext.large;
            return {
                progress: function(a, i) {
                    var o = [];
                    if (r) {
                        var l = void 0
                          , s = a.end - a.start;
                        if (n) {
                            for (var u = 0, c = a.start; c < a.end; c++)
                                u += t.getLineCoordsCount(c);
                            l = new Float32Array(s + u * 2)
                        } else
                            l = new Float32Array(s * 4);
                        for (var f = 0, d = [], c = a.start; c < a.end; c++) {
                            var v = t.getLineCoords(c, o);
                            n && (l[f++] = v);
                            for (var h = 0; h < v; h++)
                                d = e.dataToPoint(o[h], !1, d),
                                l[f++] = d[0],
                                l[f++] = d[1]
                        }
                        i.setLayout("linesPoints", l)
                    } else
                        for (var c = a.start; c < a.end; c++) {
                            var p = i.getItemModel(c)
                              , v = t.getLineCoords(c, o)
                              , g = [];
                            if (n)
                                for (var m = 0; m < v; m++)
                                    g.push(e.dataToPoint(o[m]));
                            else {
                                g[0] = e.dataToPoint(o[0]),
                                g[1] = e.dataToPoint(o[1]);
                                var y = p.get(["lineStyle", "curveness"]);
                                +y && (g[2] = [(g[0][0] + g[1][0]) / 2 - (g[0][1] - g[1][1]) * y, (g[0][1] + g[1][1]) / 2 - (g[1][0] - g[0][0]) * y])
                            }
                            i.setItemLayout(c, g)
                        }
                }
            }
        }
    }
};
const gce = ilt;
var olt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i = n.getData()
          , o = this._updateLineDraw(i, n)
          , l = n.get("zlevel")
          , s = n.get(["effect", "trailLength"])
          , u = a.getZr()
          , c = u.painter.getType() === "svg";
        c || u.painter.getLayer(l).clear(!0),
        this._lastZlevel != null && !c && u.configLayer(this._lastZlevel, {
            motionBlur: !1
        }),
        this._showEffect(n) && s > 0 && (c || u.configLayer(l, {
            motionBlur: !0,
            lastFrameAlpha: Math.max(Math.min(s / 10 + .9, 1), 0)
        })),
        o.updateData(i);
        var f = n.get("clip", !0) && A2(n.coordinateSystem, !1, n);
        f ? this.group.setClipPath(f) : this.group.removeClipPath(),
        this._lastZlevel = l,
        this._finished = !0
    }
    ,
    e.prototype.incrementalPrepareRender = function(n, r, a) {
        var i = n.getData()
          , o = this._updateLineDraw(i, n);
        o.incrementalPrepareUpdate(i),
        this._clearLayer(a),
        this._finished = !1
    }
    ,
    e.prototype.incrementalRender = function(n, r, a) {
        this._lineDraw.incrementalUpdate(n, r.getData()),
        this._finished = n.end === r.getData().count()
    }
    ,
    e.prototype.eachRendered = function(n) {
        this._lineDraw && this._lineDraw.eachRendered(n)
    }
    ,
    e.prototype.updateTransform = function(n, r, a) {
        var i = n.getData()
          , o = n.pipelineContext;
        if (!this._finished || o.large || o.progressiveRender)
            return {
                update: !0
            };
        var l = gce.reset(n, r, a);
        l.progress && l.progress({
            start: 0,
            end: i.count(),
            count: i.count()
        }, i),
        this._lineDraw.updateLayout(),
        this._clearLayer(a)
    }
    ,
    e.prototype._updateLineDraw = function(n, r) {
        var a = this._lineDraw
          , i = this._showEffect(r)
          , o = !!r.get("polyline")
          , l = r.pipelineContext
          , s = l.large;
        return (!a || i !== this._hasEffet || o !== this._isPolyline || s !== this._isLargeDraw) && (a && a.remove(),
        a = this._lineDraw = s ? new alt : new iL(o ? i ? elt : pce : i ? hce : aL),
        this._hasEffet = i,
        this._isPolyline = o,
        this._isLargeDraw = s),
        this.group.add(a.group),
        a
    }
    ,
    e.prototype._showEffect = function(n) {
        return !!n.get(["effect", "show"])
    }
    ,
    e.prototype._clearLayer = function(n) {
        var r = n.getZr()
          , a = r.painter.getType() === "svg";
        !a && this._lastZlevel != null && r.painter.getLayer(this._lastZlevel).clear(!0)
    }
    ,
    e.prototype.remove = function(n, r) {
        this._lineDraw && this._lineDraw.remove(),
        this._lineDraw = null,
        this._clearLayer(r)
    }
    ,
    e.prototype.dispose = function(n, r) {
        this.remove(n, r)
    }
    ,
    e.type = "lines",
    e
}(Tn);
const llt = olt;
var slt = typeof Uint32Array == "undefined" ? Array : Uint32Array
  , ult = typeof Float64Array == "undefined" ? Array : Float64Array;
function xK(t) {
    var e = t.data;
    e && e[0] && e[0][0] && e[0][0].coord && (t.data = Le(e, function(n) {
        var r = [n[0].coord, n[1].coord]
          , a = {
            coords: r
        };
        return n[0].name && (a.fromName = n[0].name),
        n[1].name && (a.toName = n[1].name),
        Uw([a, n[0], n[1]])
    }))
}
var clt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.visualStyleAccessPath = "lineStyle",
        n.visualDrawType = "stroke",
        n
    }
    return e.prototype.init = function(n) {
        n.data = n.data || [],
        xK(n);
        var r = this._processFlatCoordsArray(n.data);
        this._flatCoords = r.flatCoords,
        this._flatCoordsOffset = r.flatCoordsOffset,
        r.flatCoords && (n.data = new Float32Array(r.count)),
        t.prototype.init.apply(this, arguments)
    }
    ,
    e.prototype.mergeOption = function(n) {
        if (xK(n),
        n.data) {
            var r = this._processFlatCoordsArray(n.data);
            this._flatCoords = r.flatCoords,
            this._flatCoordsOffset = r.flatCoordsOffset,
            r.flatCoords && (n.data = new Float32Array(r.count))
        }
        t.prototype.mergeOption.apply(this, arguments)
    }
    ,
    e.prototype.appendData = function(n) {
        var r = this._processFlatCoordsArray(n.data);
        r.flatCoords && (this._flatCoords ? (this._flatCoords = k0(this._flatCoords, r.flatCoords),
        this._flatCoordsOffset = k0(this._flatCoordsOffset, r.flatCoordsOffset)) : (this._flatCoords = r.flatCoords,
        this._flatCoordsOffset = r.flatCoordsOffset),
        n.data = new Float32Array(r.count)),
        this.getRawData().appendData(n.data)
    }
    ,
    e.prototype._getCoordsFromItemModel = function(n) {
        var r = this.getData().getItemModel(n)
          , a = r.option instanceof Array ? r.option : r.getShallow("coords");
        return a
    }
    ,
    e.prototype.getLineCoordsCount = function(n) {
        return this._flatCoordsOffset ? this._flatCoordsOffset[n * 2 + 1] : this._getCoordsFromItemModel(n).length
    }
    ,
    e.prototype.getLineCoords = function(n, r) {
        if (this._flatCoordsOffset) {
            for (var a = this._flatCoordsOffset[n * 2], i = this._flatCoordsOffset[n * 2 + 1], o = 0; o < i; o++)
                r[o] = r[o] || [],
                r[o][0] = this._flatCoords[a + o * 2],
                r[o][1] = this._flatCoords[a + o * 2 + 1];
            return i
        } else {
            for (var l = this._getCoordsFromItemModel(n), o = 0; o < l.length; o++)
                r[o] = r[o] || [],
                r[o][0] = l[o][0],
                r[o][1] = l[o][1];
            return l.length
        }
    }
    ,
    e.prototype._processFlatCoordsArray = function(n) {
        var r = 0;
        if (this._flatCoords && (r = this._flatCoords.length),
        rn(n[0])) {
            for (var a = n.length, i = new slt(a), o = new ult(a), l = 0, s = 0, u = 0, c = 0; c < a; ) {
                u++;
                var f = n[c++];
                i[s++] = l + r,
                i[s++] = f;
                for (var d = 0; d < f; d++) {
                    var v = n[c++]
                      , h = n[c++];
                    o[l++] = v,
                    o[l++] = h
                }
            }
            return {
                flatCoordsOffset: new Uint32Array(i.buffer,0,s),
                flatCoords: o,
                count: u
            }
        }
        return {
            flatCoordsOffset: null,
            flatCoords: null,
            count: n.length
        }
    }
    ,
    e.prototype.getInitialData = function(n, r) {
        var a = new oa(["value"],this);
        return a.hasItemOption = !1,
        a.initData(n.data, [], function(i, o, l, s) {
            if (i instanceof Array)
                return NaN;
            a.hasItemOption = !0;
            var u = i.value;
            if (u != null)
                return u instanceof Array ? u[s] : u
        }),
        a
    }
    ,
    e.prototype.formatTooltip = function(n, r, a) {
        var i = this.getData()
          , o = i.getItemModel(n)
          , l = o.get("name");
        if (l)
            return l;
        var s = o.get("fromName")
          , u = o.get("toName")
          , c = [];
        return s != null && c.push(s),
        u != null && c.push(u),
        $r("nameValue", {
            name: c.join(" > ")
        })
    }
    ,
    e.prototype.preventIncremental = function() {
        return !!this.get(["effect", "show"])
    }
    ,
    e.prototype.getProgressive = function() {
        var n = this.option.progressive;
        return n == null ? this.option.large ? 1e4 : this.get("progressive") : n
    }
    ,
    e.prototype.getProgressiveThreshold = function() {
        var n = this.option.progressiveThreshold;
        return n == null ? this.option.large ? 2e4 : this.get("progressiveThreshold") : n
    }
    ,
    e.prototype.getZLevelKey = function() {
        var n = this.getModel("effect")
          , r = n.get("trailLength");
        return this.getData().count() > this.getProgressiveThreshold() ? this.id : n.get("show") && r > 0 ? r + "" : ""
    }
    ,
    e.type = "series.lines",
    e.dependencies = ["grid", "polar", "geo", "calendar"],
    e.defaultOption = {
        coordinateSystem: "geo",
        z: 2,
        legendHoverLink: !0,
        xAxisIndex: 0,
        yAxisIndex: 0,
        symbol: ["none", "none"],
        symbolSize: [10, 10],
        geoIndex: 0,
        effect: {
            show: !1,
            period: 4,
            constantSpeed: 0,
            symbol: "circle",
            symbolSize: 3,
            loop: !0,
            trailLength: .2
        },
        large: !1,
        largeThreshold: 2e3,
        polyline: !1,
        clip: !0,
        label: {
            show: !1,
            position: "end"
        },
        lineStyle: {
            opacity: .5
        }
    },
    e
}(En);
const flt = clt;
function X1(t) {
    return t instanceof Array || (t = [t, t]),
    t
}
var dlt = {
    seriesType: "lines",
    reset: function(t) {
        var e = X1(t.get("symbol"))
          , n = X1(t.get("symbolSize"))
          , r = t.getData();
        r.setVisual("fromSymbol", e && e[0]),
        r.setVisual("toSymbol", e && e[1]),
        r.setVisual("fromSymbolSize", n && n[0]),
        r.setVisual("toSymbolSize", n && n[1]);
        function a(i, o) {
            var l = i.getItemModel(o)
              , s = X1(l.getShallow("symbol", !0))
              , u = X1(l.getShallow("symbolSize", !0));
            s[0] && i.setItemVisual(o, "fromSymbol", s[0]),
            s[1] && i.setItemVisual(o, "toSymbol", s[1]),
            u[0] && i.setItemVisual(o, "fromSymbolSize", u[0]),
            u[1] && i.setItemVisual(o, "toSymbolSize", u[1])
        }
        return {
            dataEach: r.hasItemOption ? a : null
        }
    }
};
const vlt = dlt;
function hlt(t) {
    t.registerChartView(llt),
    t.registerSeriesModel(flt),
    t.registerLayout(gce),
    t.registerVisual(vlt)
}
var plt = 256
  , glt = function() {
    function t() {
        this.blurSize = 30,
        this.pointSize = 20,
        this.maxOpacity = 1,
        this.minOpacity = 0,
        this._gradientPixels = {
            inRange: null,
            outOfRange: null
        };
        var e = _o.createCanvas();
        this.canvas = e
    }
    return t.prototype.update = function(e, n, r, a, i, o) {
        var l = this._getBrush()
          , s = this._getGradient(i, "inRange")
          , u = this._getGradient(i, "outOfRange")
          , c = this.pointSize + this.blurSize
          , f = this.canvas
          , d = f.getContext("2d")
          , v = e.length;
        f.width = n,
        f.height = r;
        for (var h = 0; h < v; ++h) {
            var p = e[h]
              , g = p[0]
              , m = p[1]
              , y = p[2]
              , b = a(y);
            d.globalAlpha = b,
            d.drawImage(l, g - c, m - c)
        }
        if (!f.width || !f.height)
            return f;
        for (var x = d.getImageData(0, 0, f.width, f.height), C = x.data, S = 0, w = C.length, T = this.minOpacity, P = this.maxOpacity, M = P - T; S < w; ) {
            var b = C[S + 3] / 256
              , A = Math.floor(b * (plt - 1)) * 4;
            if (b > 0) {
                var O = o(b) ? s : u;
                b > 0 && (b = b * M + T),
                C[S++] = O[A],
                C[S++] = O[A + 1],
                C[S++] = O[A + 2],
                C[S++] = O[A + 3] * b * 256
            } else
                S += 4
        }
        return d.putImageData(x, 0, 0),
        f
    }
    ,
    t.prototype._getBrush = function() {
        var e = this._brushCanvas || (this._brushCanvas = _o.createCanvas())
          , n = this.pointSize + this.blurSize
          , r = n * 2;
        e.width = r,
        e.height = r;
        var a = e.getContext("2d");
        return a.clearRect(0, 0, r, r),
        a.shadowOffsetX = r,
        a.shadowBlur = this.blurSize,
        a.shadowColor = "#000",
        a.beginPath(),
        a.arc(-n, n, this.pointSize, 0, Math.PI * 2, !0),
        a.closePath(),
        a.fill(),
        e
    }
    ,
    t.prototype._getGradient = function(e, n) {
        for (var r = this._gradientPixels, a = r[n] || (r[n] = new Uint8ClampedArray(256 * 4)), i = [0, 0, 0, 0], o = 0, l = 0; l < 256; l++)
            e[n](l / 255, !0, i),
            a[o++] = i[0],
            a[o++] = i[1],
            a[o++] = i[2],
            a[o++] = i[3];
        return a
    }
    ,
    t
}();
const mlt = glt;
function ylt(t, e, n) {
    var r = t[1] - t[0];
    e = Le(e, function(o) {
        return {
            interval: [(o.interval[0] - t[0]) / r, (o.interval[1] - t[0]) / r]
        }
    });
    var a = e.length
      , i = 0;
    return function(o) {
        var l;
        for (l = i; l < a; l++) {
            var s = e[l].interval;
            if (s[0] <= o && o <= s[1]) {
                i = l;
                break
            }
        }
        if (l === a)
            for (l = i - 1; l >= 0; l--) {
                var s = e[l].interval;
                if (s[0] <= o && o <= s[1]) {
                    i = l;
                    break
                }
            }
        return l >= 0 && l < a && n[l]
    }
}
function blt(t, e) {
    var n = t[1] - t[0];
    return e = [(e[0] - t[0]) / n, (e[1] - t[0]) / n],
    function(r) {
        return r >= e[0] && r <= e[1]
    }
}
function SK(t) {
    var e = t.dimensions;
    return e[0] === "lng" && e[1] === "lat"
}
var xlt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i;
        r.eachComponent("visualMap", function(l) {
            l.eachTargetSeries(function(s) {
                s === n && (i = l)
            })
        }),
        this._progressiveEls = null,
        this.group.removeAll();
        var o = n.coordinateSystem;
        o.type === "cartesian2d" || o.type === "calendar" ? this._renderOnCartesianAndCalendar(n, a, 0, n.getData().count()) : SK(o) && this._renderOnGeo(o, n, i, a)
    }
    ,
    e.prototype.incrementalPrepareRender = function(n, r, a) {
        this.group.removeAll()
    }
    ,
    e.prototype.incrementalRender = function(n, r, a, i) {
        var o = r.coordinateSystem;
        o && (SK(o) ? this.render(r, a, i) : (this._progressiveEls = [],
        this._renderOnCartesianAndCalendar(r, i, n.start, n.end, !0)))
    }
    ,
    e.prototype.eachRendered = function(n) {
        Uu(this._progressiveEls || this.group, n)
    }
    ,
    e.prototype._renderOnCartesianAndCalendar = function(n, r, a, i, o) {
        var l = n.coordinateSystem, s = od(l, "cartesian2d"), u, c, f, d;
        if (s) {
            var v = l.getAxis("x")
              , h = l.getAxis("y");
            u = v.getBandWidth() + .5,
            c = h.getBandWidth() + .5,
            f = v.scale.getExtent(),
            d = h.scale.getExtent()
        }
        for (var p = this.group, g = n.getData(), m = n.getModel(["emphasis", "itemStyle"]).getItemStyle(), y = n.getModel(["blur", "itemStyle"]).getItemStyle(), b = n.getModel(["select", "itemStyle"]).getItemStyle(), x = n.get(["itemStyle", "borderRadius"]), C = Nr(n), S = n.getModel("emphasis"), w = S.get("focus"), T = S.get("blurScope"), P = S.get("disabled"), M = s ? [g.mapDimension("x"), g.mapDimension("y"), g.mapDimension("value")] : [g.mapDimension("time"), g.mapDimension("value")], A = a; A < i; A++) {
            var O = void 0
              , k = g.getItemVisual(A, "style");
            if (s) {
                var D = g.get(M[0], A)
                  , E = g.get(M[1], A);
                if (isNaN(g.get(M[2], A)) || isNaN(D) || isNaN(E) || D < f[0] || D > f[1] || E < d[0] || E > d[1])
                    continue;
                var L = l.dataToPoint([D, E]);
                O = new tn({
                    shape: {
                        x: L[0] - u / 2,
                        y: L[1] - c / 2,
                        width: u,
                        height: c
                    },
                    style: k
                })
            } else {
                if (isNaN(g.get(M[1], A)))
                    continue;
                O = new tn({
                    z2: 1,
                    shape: l.dataToRect([g.get(M[0], A)]).contentShape,
                    style: k
                })
            }
            if (g.hasItemOption) {
                var N = g.getItemModel(A)
                  , R = N.getModel("emphasis");
                m = R.getModel("itemStyle").getItemStyle(),
                y = N.getModel(["blur", "itemStyle"]).getItemStyle(),
                b = N.getModel(["select", "itemStyle"]).getItemStyle(),
                x = N.get(["itemStyle", "borderRadius"]),
                w = R.get("focus"),
                T = R.get("blurScope"),
                P = R.get("disabled"),
                C = Nr(N)
            }
            O.shape.r = x;
            var $ = n.getRawValue(A)
              , W = "-";
            $ && $[2] != null && (W = $[2] + ""),
            ea(O, C, {
                labelFetcher: n,
                labelDataIndex: A,
                defaultOpacity: k.opacity,
                defaultText: W
            }),
            O.ensureState("emphasis").style = m,
            O.ensureState("blur").style = y,
            O.ensureState("select").style = b,
            Qn(O, w, T, P),
            O.incremental = o,
            o && (O.states.emphasis.hoverLayer = !0),
            p.add(O),
            g.setItemGraphicEl(A, O),
            this._progressiveEls && this._progressiveEls.push(O)
        }
    }
    ,
    e.prototype._renderOnGeo = function(n, r, a, i) {
        var o = a.targetVisuals.inRange
          , l = a.targetVisuals.outOfRange
          , s = r.getData()
          , u = this._hmLayer || this._hmLayer || new mlt;
        u.blurSize = r.get("blurSize"),
        u.pointSize = r.get("pointSize"),
        u.minOpacity = r.get("minOpacity"),
        u.maxOpacity = r.get("maxOpacity");
        var c = n.getViewRect().clone()
          , f = n.getRoamTransform();
        c.applyTransform(f);
        var d = Math.max(c.x, 0)
          , v = Math.max(c.y, 0)
          , h = Math.min(c.width + c.x, i.getWidth())
          , p = Math.min(c.height + c.y, i.getHeight())
          , g = h - d
          , m = p - v
          , y = [s.mapDimension("lng"), s.mapDimension("lat"), s.mapDimension("value")]
          , b = s.mapArray(y, function(w, T, P) {
            var M = n.dataToPoint([w, T]);
            return M[0] -= d,
            M[1] -= v,
            M.push(P),
            M
        })
          , x = a.getExtent()
          , C = a.type === "visualMap.continuous" ? blt(x, a.option.range) : ylt(x, a.getPieceList(), a.option.selected);
        u.update(b, g, m, o.color.getNormalizer(), {
            inRange: o.color.getColorMapper(),
            outOfRange: l.color.getColorMapper()
        }, C);
        var S = new Kr({
            style: {
                width: g,
                height: m,
                x: d,
                y: v,
                image: u.canvas
            },
            silent: !0
        });
        this.group.add(S)
    }
    ,
    e.type = "heatmap",
    e
}(Tn);
const Slt = xlt;
var Clt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.getInitialData = function(n, r) {
        return Pl(null, this, {
            generateCoord: "value"
        })
    }
    ,
    e.prototype.preventIncremental = function() {
        var n = Nh.get(this.get("coordinateSystem"));
        if (n && n.dimensions)
            return n.dimensions[0] === "lng" && n.dimensions[1] === "lat"
    }
    ,
    e.type = "series.heatmap",
    e.dependencies = ["grid", "geo", "calendar"],
    e.defaultOption = {
        coordinateSystem: "cartesian2d",
        z: 2,
        geoIndex: 0,
        blurSize: 30,
        pointSize: 20,
        maxOpacity: 1,
        minOpacity: 0,
        select: {
            itemStyle: {
                borderColor: "#212121"
            }
        }
    },
    e
}(En);
const wlt = Clt;
function _lt(t) {
    t.registerChartView(Slt),
    t.registerSeriesModel(wlt)
}
var Tlt = ["itemStyle", "borderWidth"]
  , CK = [{
    xy: "x",
    wh: "width",
    index: 0,
    posDesc: ["left", "right"]
}, {
    xy: "y",
    wh: "height",
    index: 1,
    posDesc: ["top", "bottom"]
}]
  , e3 = new Mo
  , Plt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i = this.group
          , o = n.getData()
          , l = this._data
          , s = n.coordinateSystem
          , u = s.getBaseAxis()
          , c = u.isHorizontal()
          , f = s.master.getRect()
          , d = {
            ecSize: {
                width: a.getWidth(),
                height: a.getHeight()
            },
            seriesModel: n,
            coordSys: s,
            coordSysExtent: [[f.x, f.x + f.width], [f.y, f.y + f.height]],
            isHorizontal: c,
            valueDim: CK[+c],
            categoryDim: CK[1 - +c]
        };
        return o.diff(l).add(function(v) {
            if (!!o.hasValue(v)) {
                var h = _K(o, v)
                  , p = wK(o, v, h, d)
                  , g = TK(o, d, p);
                o.setItemGraphicEl(v, g),
                i.add(g),
                MK(g, d, p)
            }
        }).update(function(v, h) {
            var p = l.getItemGraphicEl(h);
            if (!o.hasValue(v)) {
                i.remove(p);
                return
            }
            var g = _K(o, v)
              , m = wK(o, v, g, d)
              , y = Cce(o, m);
            p && y !== p.__pictorialShapeStr && (i.remove(p),
            o.setItemGraphicEl(v, null),
            p = null),
            p ? Elt(p, d, m) : p = TK(o, d, m, !0),
            o.setItemGraphicEl(v, p),
            p.__pictorialSymbolMeta = m,
            i.add(p),
            MK(p, d, m)
        }).remove(function(v) {
            var h = l.getItemGraphicEl(v);
            h && PK(l, v, h.__pictorialSymbolMeta.animationModel, h)
        }).execute(),
        this._data = o,
        this.group
    }
    ,
    e.prototype.remove = function(n, r) {
        var a = this.group
          , i = this._data;
        n.get("animation") ? i && i.eachItemGraphicEl(function(o) {
            PK(i, Ct(o).dataIndex, n, o)
        }) : a.removeAll()
    }
    ,
    e.type = "pictorialBar",
    e
}(Tn);
function wK(t, e, n, r) {
    var a = t.getItemLayout(e)
      , i = n.get("symbolRepeat")
      , o = n.get("symbolClip")
      , l = n.get("symbolPosition") || "start"
      , s = n.get("symbolRotate")
      , u = (s || 0) * Math.PI / 180 || 0
      , c = n.get("symbolPatternSize") || 2
      , f = n.isAnimationEnabled()
      , d = {
        dataIndex: e,
        layout: a,
        itemModel: n,
        symbolType: t.getItemVisual(e, "symbol") || "circle",
        style: t.getItemVisual(e, "style"),
        symbolClip: o,
        symbolRepeat: i,
        symbolRepeatDirection: n.get("symbolRepeatDirection"),
        symbolPatternSize: c,
        rotation: u,
        animationModel: f ? n : null,
        hoverScale: f && n.get(["emphasis", "scale"]),
        z2: n.getShallow("z", !0) || 0
    };
    Mlt(n, i, a, r, d),
    Alt(t, e, a, i, o, d.boundingLength, d.pxSign, c, r, d),
    Ilt(n, d.symbolScale, u, r, d);
    var v = d.symbolSize
      , h = id(n.get("symbolOffset"), v);
    return klt(n, v, a, i, o, h, l, d.valueLineWidth, d.boundingLength, d.repeatCutLength, r, d),
    d
}
function Mlt(t, e, n, r, a) {
    var i = r.valueDim, o = t.get("symbolBoundingData"), l = r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()), s = l.toGlobalCoord(l.dataToCoord(0)), u = 1 - +(n[i.wh] <= 0), c;
    if (ke(o)) {
        var f = [t3(l, o[0]) - s, t3(l, o[1]) - s];
        f[1] < f[0] && f.reverse(),
        c = f[u]
    } else
        o != null ? c = t3(l, o) - s : e ? c = r.coordSysExtent[i.index][u] - s : c = n[i.wh];
    a.boundingLength = c,
    e && (a.repeatCutLength = n[i.wh]),
    a.pxSign = c > 0 ? 1 : -1
}
function t3(t, e) {
    return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))
}
function Alt(t, e, n, r, a, i, o, l, s, u) {
    var c = s.valueDim, f = s.categoryDim, d = Math.abs(n[f.wh]), v = t.getItemVisual(e, "symbolSize"), h;
    ke(v) ? h = v.slice() : v == null ? h = ["100%", "100%"] : h = [v, v],
    h[f.index] = He(h[f.index], d),
    h[c.index] = He(h[c.index], r ? d : Math.abs(i)),
    u.symbolSize = h;
    var p = u.symbolScale = [h[0] / l, h[1] / l];
    p[c.index] *= (s.isHorizontal ? -1 : 1) * o
}
function Ilt(t, e, n, r, a) {
    var i = t.get(Tlt) || 0;
    i && (e3.attr({
        scaleX: e[0],
        scaleY: e[1],
        rotation: n
    }),
    e3.updateTransform(),
    i /= e3.getLineScale(),
    i *= e[r.valueDim.index]),
    a.valueLineWidth = i || 0
}
function klt(t, e, n, r, a, i, o, l, s, u, c, f) {
    var d = c.categoryDim
      , v = c.valueDim
      , h = f.pxSign
      , p = Math.max(e[v.index] + l, 0)
      , g = p;
    if (r) {
        var m = Math.abs(s)
          , y = kr(t.get("symbolMargin"), "15%") + ""
          , b = !1;
        y.lastIndexOf("!") === y.length - 1 && (b = !0,
        y = y.slice(0, y.length - 1));
        var x = He(y, e[v.index])
          , C = Math.max(p + x * 2, 0)
          , S = b ? 0 : x * 2
          , w = N6(r)
          , T = w ? r : AK((m + S) / C)
          , P = m - T * p;
        x = P / 2 / (b ? T : Math.max(T - 1, 1)),
        C = p + x * 2,
        S = b ? 0 : x * 2,
        !w && r !== "fixed" && (T = u ? AK((Math.abs(u) + S) / C) : 0),
        g = T * C - S,
        f.repeatTimes = T,
        f.symbolMargin = x
    }
    var M = h * (g / 2)
      , A = f.pathPosition = [];
    A[d.index] = n[d.wh] / 2,
    A[v.index] = o === "start" ? M : o === "end" ? s - M : s / 2,
    i && (A[0] += i[0],
    A[1] += i[1]);
    var O = f.bundlePosition = [];
    O[d.index] = n[d.xy],
    O[v.index] = n[v.xy];
    var k = f.barRectShape = Me({}, n);
    k[v.wh] = h * Math.max(Math.abs(n[v.wh]), Math.abs(A[v.index] + M)),
    k[d.wh] = n[d.wh];
    var D = f.clipShape = {};
    D[d.xy] = -n[d.xy],
    D[d.wh] = c.ecSize[d.wh],
    D[v.xy] = 0,
    D[v.wh] = n[v.wh]
}
function mce(t) {
    var e = t.symbolPatternSize
      , n = fr(t.symbolType, -e / 2, -e / 2, e, e);
    return n.attr({
        culling: !0
    }),
    n.type !== "image" && n.setStyle({
        strokeNoScale: !0
    }),
    n
}
function yce(t, e, n, r) {
    var a = t.__pictorialBundle
      , i = n.symbolSize
      , o = n.valueLineWidth
      , l = n.pathPosition
      , s = e.valueDim
      , u = n.repeatTimes || 0
      , c = 0
      , f = i[e.valueDim.index] + o + n.symbolMargin * 2;
    for (vL(t, function(p) {
        p.__pictorialAnimationIndex = c,
        p.__pictorialRepeatTimes = u,
        c < u ? Tv(p, null, h(c), n, r) : Tv(p, null, {
            scaleX: 0,
            scaleY: 0
        }, n, r, function() {
            a.remove(p)
        }),
        c++
    }); c < u; c++) {
        var d = mce(n);
        d.__pictorialAnimationIndex = c,
        d.__pictorialRepeatTimes = u,
        a.add(d);
        var v = h(c);
        Tv(d, {
            x: v.x,
            y: v.y,
            scaleX: 0,
            scaleY: 0
        }, {
            scaleX: v.scaleX,
            scaleY: v.scaleY,
            rotation: v.rotation
        }, n, r)
    }
    function h(p) {
        var g = l.slice()
          , m = n.pxSign
          , y = p;
        return (n.symbolRepeatDirection === "start" ? m > 0 : m < 0) && (y = u - 1 - p),
        g[s.index] = f * (y - u / 2 + .5) + l[s.index],
        {
            x: g[0],
            y: g[1],
            scaleX: n.symbolScale[0],
            scaleY: n.symbolScale[1],
            rotation: n.rotation
        }
    }
}
function bce(t, e, n, r) {
    var a = t.__pictorialBundle
      , i = t.__pictorialMainPath;
    i ? Tv(i, null, {
        x: n.pathPosition[0],
        y: n.pathPosition[1],
        scaleX: n.symbolScale[0],
        scaleY: n.symbolScale[1],
        rotation: n.rotation
    }, n, r) : (i = t.__pictorialMainPath = mce(n),
    a.add(i),
    Tv(i, {
        x: n.pathPosition[0],
        y: n.pathPosition[1],
        scaleX: 0,
        scaleY: 0,
        rotation: n.rotation
    }, {
        scaleX: n.symbolScale[0],
        scaleY: n.symbolScale[1]
    }, n, r))
}
function xce(t, e, n) {
    var r = Me({}, e.barRectShape)
      , a = t.__pictorialBarRect;
    a ? Tv(a, null, {
        shape: r
    }, e, n) : (a = t.__pictorialBarRect = new tn({
        z2: 2,
        shape: r,
        silent: !0,
        style: {
            stroke: "transparent",
            fill: "transparent",
            lineWidth: 0
        }
    }),
    a.disableMorphing = !0,
    t.add(a))
}
function Sce(t, e, n, r) {
    if (n.symbolClip) {
        var a = t.__pictorialClipPath
          , i = Me({}, n.clipShape)
          , o = e.valueDim
          , l = n.animationModel
          , s = n.dataIndex;
        if (a)
            ln(a, {
                shape: i
            }, l, s);
        else {
            i[o.wh] = 0,
            a = new tn({
                shape: i
            }),
            t.__pictorialBundle.setClipPath(a),
            t.__pictorialClipPath = a;
            var u = {};
            u[o.wh] = n.clipShape[o.wh],
            Jm[r ? "updateProps" : "initProps"](a, {
                shape: u
            }, l, s)
        }
    }
}
function _K(t, e) {
    var n = t.getItemModel(e);
    return n.getAnimationDelayParams = Olt,
    n.isAnimationEnabled = Dlt,
    n
}
function Olt(t) {
    return {
        index: t.__pictorialAnimationIndex,
        count: t.__pictorialRepeatTimes
    }
}
function Dlt() {
    return this.parentModel.isAnimationEnabled() && !!this.getShallow("animation")
}
function TK(t, e, n, r) {
    var a = new mt
      , i = new mt;
    return a.add(i),
    a.__pictorialBundle = i,
    i.x = n.bundlePosition[0],
    i.y = n.bundlePosition[1],
    n.symbolRepeat ? yce(a, e, n) : bce(a, e, n),
    xce(a, n, r),
    Sce(a, e, n, r),
    a.__pictorialShapeStr = Cce(t, n),
    a.__pictorialSymbolMeta = n,
    a
}
function Elt(t, e, n) {
    var r = n.animationModel
      , a = n.dataIndex
      , i = t.__pictorialBundle;
    ln(i, {
        x: n.bundlePosition[0],
        y: n.bundlePosition[1]
    }, r, a),
    n.symbolRepeat ? yce(t, e, n, !0) : bce(t, e, n, !0),
    xce(t, n, !0),
    Sce(t, e, n, !0)
}
function PK(t, e, n, r) {
    var a = r.__pictorialBarRect;
    a && a.removeTextContent();
    var i = [];
    vL(r, function(o) {
        i.push(o)
    }),
    r.__pictorialMainPath && i.push(r.__pictorialMainPath),
    r.__pictorialClipPath && (n = null),
    Z(i, function(o) {
        Du(o, {
            scaleX: 0,
            scaleY: 0
        }, n, e, function() {
            r.parent && r.parent.remove(r)
        })
    }),
    t.setItemGraphicEl(e, null)
}
function Cce(t, e) {
    return [t.getItemVisual(e.dataIndex, "symbol") || "none", !!e.symbolRepeat, !!e.symbolClip].join(":")
}
function vL(t, e, n) {
    Z(t.__pictorialBundle.children(), function(r) {
        r !== t.__pictorialBarRect && e.call(n, r)
    })
}
function Tv(t, e, n, r, a, i) {
    e && t.attr(e),
    r.symbolClip && !a ? n && t.attr(n) : n && Jm[a ? "updateProps" : "initProps"](t, n, r.animationModel, r.dataIndex, i)
}
function MK(t, e, n) {
    var r = n.dataIndex
      , a = n.itemModel
      , i = a.getModel("emphasis")
      , o = i.getModel("itemStyle").getItemStyle()
      , l = a.getModel(["blur", "itemStyle"]).getItemStyle()
      , s = a.getModel(["select", "itemStyle"]).getItemStyle()
      , u = a.getShallow("cursor")
      , c = i.get("focus")
      , f = i.get("blurScope")
      , d = i.get("scale");
    vL(t, function(p) {
        if (p instanceof Kr) {
            var g = p.style;
            p.useStyle(Me({
                image: g.image,
                x: g.x,
                y: g.y,
                width: g.width,
                height: g.height
            }, n.style))
        } else
            p.useStyle(n.style);
        var m = p.ensureState("emphasis");
        m.style = o,
        d && (m.scaleX = p.scaleX * 1.1,
        m.scaleY = p.scaleY * 1.1),
        p.ensureState("blur").style = l,
        p.ensureState("select").style = s,
        u && (p.cursor = u),
        p.z2 = n.z2
    });
    var v = e.valueDim.posDesc[+(n.boundingLength > 0)]
      , h = t.__pictorialBarRect;
    ea(h, Nr(a), {
        labelFetcher: e.seriesModel,
        labelDataIndex: r,
        defaultText: eh(e.seriesModel.getData(), r),
        inheritColor: n.style.fill,
        defaultOpacity: n.style.opacity,
        defaultOutsidePosition: v
    }),
    Qn(t, c, f, i.get("disabled"))
}
function AK(t) {
    var e = Math.round(t);
    return Math.abs(t - e) < 1e-4 ? e : Math.ceil(t)
}
const Llt = Plt;
var Rlt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.hasSymbolVisual = !0,
        n.defaultSymbol = "roundRect",
        n
    }
    return e.prototype.getInitialData = function(n) {
        return n.stack = null,
        t.prototype.getInitialData.apply(this, arguments)
    }
    ,
    e.type = "series.pictorialBar",
    e.dependencies = ["grid"],
    e.defaultOption = Yu(XS.defaultOption, {
        symbol: "circle",
        symbolSize: null,
        symbolRotate: null,
        symbolPosition: null,
        symbolOffset: null,
        symbolMargin: null,
        symbolRepeat: !1,
        symbolRepeatDirection: "end",
        symbolClip: !1,
        symbolBoundingData: null,
        symbolPatternSize: 400,
        barGap: "-100%",
        progressive: 0,
        emphasis: {
            scale: !1
        },
        select: {
            itemStyle: {
                borderColor: "#212121"
            }
        }
    }),
    e
}(XS);
const Nlt = Rlt;
function $lt(t) {
    t.registerChartView(Llt),
    t.registerSeriesModel(Nlt),
    t.registerLayout(t.PRIORITY.VISUAL.LAYOUT, St(rse, "pictorialBar")),
    t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, ase("pictorialBar"))
}
var Flt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n._layers = [],
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i = n.getData()
          , o = this
          , l = this.group
          , s = n.getLayerSeries()
          , u = i.getLayout("layoutInfo")
          , c = u.rect
          , f = u.boundaryGap;
        l.x = 0,
        l.y = c.y + f[0];
        function d(g) {
            return g.name
        }
        var v = new fs(this._layersSeries || [],s,d,d)
          , h = [];
        v.add(qe(p, this, "add")).update(qe(p, this, "update")).remove(qe(p, this, "remove")).execute();
        function p(g, m, y) {
            var b = o._layers;
            if (g === "remove") {
                l.remove(b[m]);
                return
            }
            for (var x = [], C = [], S, w = s[m].indices, T = 0; T < w.length; T++) {
                var P = i.getItemLayout(w[T])
                  , M = P.x
                  , A = P.y0
                  , O = P.y;
                x.push(M, A),
                C.push(M, A + O),
                S = i.getItemVisual(w[T], "style")
            }
            var k, D = i.getItemLayout(w[0]), E = n.getModel("label"), L = E.get("margin"), N = n.getModel("emphasis");
            if (g === "add") {
                var R = h[m] = new mt;
                k = new Kse({
                    shape: {
                        points: x,
                        stackedOnPoints: C,
                        smooth: .4,
                        stackedOnSmooth: .4,
                        smoothConstraint: !1
                    },
                    z2: 0
                }),
                R.add(k),
                l.add(R),
                n.isAnimationEnabled() && k.setClipPath(Blt(k.getBoundingRect(), n, function() {
                    k.removeClipPath()
                }))
            } else {
                var R = b[y];
                k = R.childAt(0),
                l.add(R),
                h[m] = R,
                ln(k, {
                    shape: {
                        points: x,
                        stackedOnPoints: C
                    }
                }, n),
                Ao(k)
            }
            ea(k, Nr(n), {
                labelDataIndex: w[T - 1],
                defaultText: i.getName(w[T - 1]),
                inheritColor: S.fill
            }, {
                normal: {
                    verticalAlign: "middle"
                }
            }),
            k.setTextConfig({
                position: null,
                local: !0
            });
            var $ = k.getTextContent();
            $ && ($.x = D.x - L,
            $.y = D.y0 + D.y / 2),
            k.useStyle(S),
            i.setItemGraphicEl(m, k),
            Jr(k, n),
            Qn(k, N.get("focus"), N.get("blurScope"), N.get("disabled"))
        }
        this._layersSeries = s,
        this._layers = h
    }
    ,
    e.type = "themeRiver",
    e
}(Tn);
function Blt(t, e, n) {
    var r = new tn({
        shape: {
            x: t.x - 10,
            y: t.y - 10,
            width: 0,
            height: t.height + 20
        }
    });
    return $n(r, {
        shape: {
            x: t.x - 50,
            width: t.width + 100,
            height: t.height + 20
        }
    }, e, n),
    r
}
const Vlt = Flt;
var n3 = 2
  , zlt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function(n) {
        t.prototype.init.apply(this, arguments),
        this.legendVisualProvider = new sy(qe(this.getData, this),qe(this.getRawData, this))
    }
    ,
    e.prototype.fixData = function(n) {
        var r = n.length
          , a = {}
          , i = xI(n, function(d) {
            return a.hasOwnProperty(d[0] + "") || (a[d[0] + ""] = -1),
            d[2]
        })
          , o = [];
        i.buckets.each(function(d, v) {
            o.push({
                name: v,
                dataList: d
            })
        });
        for (var l = o.length, s = 0; s < l; ++s) {
            for (var u = o[s].name, c = 0; c < o[s].dataList.length; ++c) {
                var f = o[s].dataList[c][0] + "";
                a[f] = s
            }
            for (var f in a)
                a.hasOwnProperty(f) && a[f] !== s && (a[f] = s,
                n[r] = [f, 0, u],
                r++)
        }
        return n
    }
    ,
    e.prototype.getInitialData = function(n, r) {
        for (var a = this.getReferringComponents("singleAxis", mr).models[0], i = a.get("type"), o = pn(n.data, function(h) {
            return h[2] !== void 0
        }), l = this.fixData(o || []), s = [], u = this.nameMap = Qe(), c = 0, f = 0; f < l.length; ++f)
            s.push(l[f][n3]),
            u.get(l[f][n3]) || (u.set(l[f][n3], c),
            c++);
        var d = Vh(l, {
            coordDimensions: ["single"],
            dimensionsDefine: [{
                name: "time",
                type: GS(i)
            }, {
                name: "value",
                type: "float"
            }, {
                name: "name",
                type: "ordinal"
            }],
            encodeDefine: {
                single: 0,
                value: 1,
                itemName: 2
            }
        }).dimensions
          , v = new oa(d,this);
        return v.initData(l),
        v
    }
    ,
    e.prototype.getLayerSeries = function() {
        for (var n = this.getData(), r = n.count(), a = [], i = 0; i < r; ++i)
            a[i] = i;
        var o = n.mapDimension("single")
          , l = xI(a, function(u) {
            return n.get("name", u)
        })
          , s = [];
        return l.buckets.each(function(u, c) {
            u.sort(function(f, d) {
                return n.get(o, f) - n.get(o, d)
            }),
            s.push({
                name: c,
                indices: u
            })
        }),
        s
    }
    ,
    e.prototype.getAxisTooltipData = function(n, r, a) {
        ke(n) || (n = n ? [n] : []);
        for (var i = this.getData(), o = this.getLayerSeries(), l = [], s = o.length, u, c = 0; c < s; ++c) {
            for (var f = Number.MAX_VALUE, d = -1, v = o[c].indices.length, h = 0; h < v; ++h) {
                var p = i.get(n[0], o[c].indices[h])
                  , g = Math.abs(p - r);
                g <= f && (u = p,
                f = g,
                d = o[c].indices[h])
            }
            l.push(d)
        }
        return {
            dataIndices: l,
            nestestValue: u
        }
    }
    ,
    e.prototype.formatTooltip = function(n, r, a) {
        var i = this.getData()
          , o = i.getName(n)
          , l = i.get(i.mapDimension("value"), n);
        return $r("nameValue", {
            name: o,
            value: l
        })
    }
    ,
    e.type = "series.themeRiver",
    e.dependencies = ["singleAxis"],
    e.defaultOption = {
        z: 2,
        colorBy: "data",
        coordinateSystem: "singleAxis",
        boundaryGap: ["10%", "10%"],
        singleAxisIndex: 0,
        animationEasing: "linear",
        label: {
            margin: 4,
            show: !0,
            position: "left",
            fontSize: 11
        },
        emphasis: {
            label: {
                show: !0
            }
        }
    },
    e
}(En);
const Hlt = zlt;
function jlt(t, e) {
    t.eachSeriesByType("themeRiver", function(n) {
        var r = n.getData()
          , a = n.coordinateSystem
          , i = {}
          , o = a.getRect();
        i.rect = o;
        var l = n.get("boundaryGap")
          , s = a.getAxis();
        if (i.boundaryGap = l,
        s.orient === "horizontal") {
            l[0] = He(l[0], o.height),
            l[1] = He(l[1], o.height);
            var u = o.height - l[0] - l[1];
            IK(r, n, u)
        } else {
            l[0] = He(l[0], o.width),
            l[1] = He(l[1], o.width);
            var c = o.width - l[0] - l[1];
            IK(r, n, c)
        }
        r.setLayout("layoutInfo", i)
    })
}
function IK(t, e, n) {
    if (!!t.count())
        for (var r = e.coordinateSystem, a = e.getLayerSeries(), i = t.mapDimension("single"), o = t.mapDimension("value"), l = Le(a, function(g) {
            return Le(g.indices, function(m) {
                var y = r.dataToPoint(t.get(i, m));
                return y[1] = t.get(o, m),
                y
            })
        }), s = Wlt(l), u = s.y0, c = n / s.max, f = a.length, d = a[0].indices.length, v, h = 0; h < d; ++h) {
            v = u[h] * c,
            t.setItemLayout(a[0].indices[h], {
                layerIndex: 0,
                x: l[0][h][0],
                y0: v,
                y: l[0][h][1] * c
            });
            for (var p = 1; p < f; ++p)
                v += l[p - 1][h][1] * c,
                t.setItemLayout(a[p].indices[h], {
                    layerIndex: p,
                    x: l[p][h][0],
                    y0: v,
                    y: l[p][h][1] * c
                })
        }
}
function Wlt(t) {
    for (var e = t.length, n = t[0].length, r = [], a = [], i = 0, o = 0; o < n; ++o) {
        for (var l = 0, s = 0; s < e; ++s)
            l += t[s][o][1];
        l > i && (i = l),
        r.push(l)
    }
    for (var u = 0; u < n; ++u)
        a[u] = (i - r[u]) / 2;
    i = 0;
    for (var c = 0; c < n; ++c) {
        var f = r[c] + a[c];
        f > i && (i = f)
    }
    return {
        y0: a,
        max: i
    }
}
function Glt(t) {
    t.registerChartView(Vlt),
    t.registerSeriesModel(Hlt),
    t.registerLayout(jlt),
    t.registerProcessor(ly("themeRiver"))
}
var Klt = 2
  , Ult = 4
  , Ylt = function(t) {
    ge(e, t);
    function e(n, r, a, i) {
        var o = t.call(this) || this;
        o.z2 = Klt,
        o.textConfig = {
            inside: !0
        },
        Ct(o).seriesIndex = r.seriesIndex;
        var l = new Jt({
            z2: Ult,
            silent: n.getModel().get(["label", "silent"])
        });
        return o.setTextContent(l),
        o.updateData(!0, n, r, a, i),
        o
    }
    return e.prototype.updateData = function(n, r, a, i, o) {
        this.node = r,
        r.piece = this,
        a = a || this._seriesModel,
        i = i || this._ecModel;
        var l = this;
        Ct(l).dataIndex = r.dataIndex;
        var s = r.getModel()
          , u = s.getModel("emphasis")
          , c = r.getLayout()
          , f = Me({}, c);
        f.label = null;
        var d = r.getVisual("style");
        d.lineJoin = "bevel";
        var v = r.getVisual("decal");
        v && (d.decal = Jv(v, o));
        var h = uf(s.getModel("itemStyle"), f, !0);
        Me(f, h),
        Z(Ta, function(y) {
            var b = l.ensureState(y)
              , x = s.getModel([y, "itemStyle"]);
            b.style = x.getItemStyle();
            var C = uf(x, f);
            C && (b.shape = C)
        }),
        n ? (l.setShape(f),
        l.shape.r = c.r0,
        $n(l, {
            shape: {
                r: c.r
            }
        }, a, r.dataIndex)) : (ln(l, {
            shape: f
        }, a),
        Ao(l)),
        l.useStyle(d),
        this._updateLabel(a);
        var p = s.getShallow("cursor");
        p && l.attr("cursor", p),
        this._seriesModel = a || this._seriesModel,
        this._ecModel = i || this._ecModel;
        var g = u.get("focus")
          , m = g === "ancestor" ? r.getAncestorsIndices() : g === "descendant" ? r.getDescendantIndices() : g;
        Qn(this, m, u.get("blurScope"), u.get("disabled"))
    }
    ,
    e.prototype._updateLabel = function(n) {
        var r = this
          , a = this.node.getModel()
          , i = a.getModel("label")
          , o = this.node.getLayout()
          , l = o.endAngle - o.startAngle
          , s = (o.startAngle + o.endAngle) / 2
          , u = Math.cos(s)
          , c = Math.sin(s)
          , f = this
          , d = f.getTextContent()
          , v = this.node.dataIndex
          , h = i.get("minAngle") / 180 * Math.PI
          , p = i.get("show") && !(h != null && Math.abs(l) < h);
        d.ignore = !p,
        Z(V0, function(m) {
            var y = m === "normal" ? a.getModel("label") : a.getModel([m, "label"])
              , b = m === "normal"
              , x = b ? d : d.ensureState(m)
              , C = n.getFormattedLabel(v, m);
            b && (C = C || r.node.name),
            x.style = In(y, {}, null, m !== "normal", !0),
            C && (x.style.text = C);
            var S = y.get("show");
            S != null && !b && (x.ignore = !S);
            var w = g(y, "position")
              , T = b ? f : f.states[m]
              , P = T.style.fill;
            T.textConfig = {
                outsideFill: y.get("color") === "inherit" ? P : null,
                inside: w !== "outside"
            };
            var M, A = g(y, "distance") || 0, O = g(y, "align");
            w === "outside" ? (M = o.r + A,
            O = s > Math.PI / 2 ? "right" : "left") : !O || O === "center" ? (l === 2 * Math.PI && o.r0 === 0 ? M = 0 : M = (o.r + o.r0) / 2,
            O = "center") : O === "left" ? (M = o.r0 + A,
            s > Math.PI / 2 && (O = "right")) : O === "right" && (M = o.r - A,
            s > Math.PI / 2 && (O = "left")),
            x.style.align = O,
            x.style.verticalAlign = g(y, "verticalAlign") || "middle",
            x.x = M * u + o.cx,
            x.y = M * c + o.cy;
            var k = g(y, "rotate")
              , D = 0;
            k === "radial" ? (D = uo(-s),
            D > Math.PI / 2 && D < Math.PI * 1.5 && (D += Math.PI)) : k === "tangential" ? (D = Math.PI / 2 - s,
            D > Math.PI / 2 ? D -= Math.PI : D < -Math.PI / 2 && (D += Math.PI)) : rn(k) && (D = k * Math.PI / 180),
            x.rotation = uo(D)
        });
        function g(m, y) {
            var b = m.get(y);
            return b == null ? i.get(y) : b
        }
        d.dirtyStyle()
    }
    ,
    e
}(Pa);
const kK = Ylt;
var bk = "sunburstRootToNode"
  , OK = "sunburstHighlight"
  , qlt = "sunburstUnhighlight";
function Xlt(t) {
    t.registerAction({
        type: bk,
        update: "updateView"
    }, function(e, n) {
        n.eachComponent({
            mainType: "series",
            subType: "sunburst",
            query: e
        }, r);
        function r(a, i) {
            var o = em(e, [bk], a);
            if (o) {
                var l = a.getViewRoot();
                l && (e.direction = Q5(l, o.node) ? "rollUp" : "drillDown"),
                a.resetViewRoot(o.node)
            }
        }
    }),
    t.registerAction({
        type: OK,
        update: "none"
    }, function(e, n, r) {
        e = Me({}, e),
        n.eachComponent({
            mainType: "series",
            subType: "sunburst",
            query: e
        }, a);
        function a(i) {
            var o = em(e, [OK], i);
            o && (e.dataIndex = o.node.dataIndex)
        }
        r.dispatchAction(Me(e, {
            type: "highlight"
        }))
    }),
    t.registerAction({
        type: qlt,
        update: "updateView"
    }, function(e, n, r) {
        e = Me({}, e),
        r.dispatchAction(Me(e, {
            type: "downplay"
        }))
    })
}
var Zlt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a, i) {
        var o = this;
        this.seriesModel = n,
        this.api = a,
        this.ecModel = r;
        var l = n.getData()
          , s = l.tree.root
          , u = n.getViewRoot()
          , c = this.group
          , f = n.get("renderLabelForZeroData")
          , d = [];
        u.eachNode(function(y) {
            d.push(y)
        });
        var v = this._oldChildren || [];
        h(d, v),
        m(s, u),
        this._initEvents(),
        this._oldChildren = d;
        function h(y, b) {
            if (y.length === 0 && b.length === 0)
                return;
            new fs(b,y,x,x).add(C).update(C).remove(St(C, null)).execute();
            function x(S) {
                return S.getId()
            }
            function C(S, w) {
                var T = S == null ? null : y[S]
                  , P = w == null ? null : b[w];
                p(T, P)
            }
        }
        function p(y, b) {
            if (!f && y && !y.getValue() && (y = null),
            y !== s && b !== s) {
                if (b && b.piece)
                    y ? (b.piece.updateData(!1, y, n, r, a),
                    l.setItemGraphicEl(y.dataIndex, b.piece)) : g(b);
                else if (y) {
                    var x = new kK(y,n,r,a);
                    c.add(x),
                    l.setItemGraphicEl(y.dataIndex, x)
                }
            }
        }
        function g(y) {
            !y || y.piece && (c.remove(y.piece),
            y.piece = null)
        }
        function m(y, b) {
            b.depth > 0 ? (o.virtualPiece ? o.virtualPiece.updateData(!1, y, n, r, a) : (o.virtualPiece = new kK(y,n,r,a),
            c.add(o.virtualPiece)),
            b.piece.off("click"),
            o.virtualPiece.on("click", function(x) {
                o._rootToNode(b.parentNode)
            })) : o.virtualPiece && (c.remove(o.virtualPiece),
            o.virtualPiece = null)
        }
    }
    ,
    e.prototype._initEvents = function() {
        var n = this;
        this.group.off("click"),
        this.group.on("click", function(r) {
            var a = !1
              , i = n.seriesModel.getViewRoot();
            i.eachNode(function(o) {
                if (!a && o.piece && o.piece === r.target) {
                    var l = o.getModel().get("nodeClick");
                    if (l === "rootToNode")
                        n._rootToNode(o);
                    else if (l === "link") {
                        var s = o.getModel()
                          , u = s.get("link");
                        if (u) {
                            var c = s.get("target", !0) || "_blank";
                            RS(u, c)
                        }
                    }
                    a = !0
                }
            })
        })
    }
    ,
    e.prototype._rootToNode = function(n) {
        n !== this.seriesModel.getViewRoot() && this.api.dispatchAction({
            type: bk,
            from: this.uid,
            seriesId: this.seriesModel.id,
            targetNode: n
        })
    }
    ,
    e.prototype.containPoint = function(n, r) {
        var a = r.getData()
          , i = a.getItemLayout(0);
        if (i) {
            var o = n[0] - i.cx
              , l = n[1] - i.cy
              , s = Math.sqrt(o * o + l * l);
            return s <= i.r && s >= i.r0
        }
    }
    ,
    e.type = "sunburst",
    e
}(Tn);
const Qlt = Zlt;
var Jlt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.ignoreStyleOnData = !0,
        n
    }
    return e.prototype.getInitialData = function(n, r) {
        var a = {
            name: n.name,
            children: n.data
        };
        wce(a);
        var i = this._levelModels = Le(n.levels || [], function(s) {
            return new wn(s,this,r)
        }, this)
          , o = Z5.createTree(a, this, l);
        function l(s) {
            s.wrapMethod("getItemModel", function(u, c) {
                var f = o.getNodeByDataIndex(c)
                  , d = i[f.depth];
                return d && (u.parentModel = d),
                u
            })
        }
        return o.data
    }
    ,
    e.prototype.optionUpdated = function() {
        this.resetViewRoot()
    }
    ,
    e.prototype.getDataParams = function(n) {
        var r = t.prototype.getDataParams.apply(this, arguments)
          , a = this.getData().tree.getNodeByDataIndex(n);
        return r.treePathInfo = O2(a, this),
        r
    }
    ,
    e.prototype.getLevelModel = function(n) {
        return this._levelModels && this._levelModels[n.depth]
    }
    ,
    e.prototype.getViewRoot = function() {
        return this._viewRoot
    }
    ,
    e.prototype.resetViewRoot = function(n) {
        n ? this._viewRoot = n : n = this._viewRoot;
        var r = this.getRawData().tree.root;
        (!n || n !== r && !r.contains(n)) && (this._viewRoot = r)
    }
    ,
    e.prototype.enableAriaDecal = function() {
        Mue(this)
    }
    ,
    e.type = "series.sunburst",
    e.defaultOption = {
        z: 2,
        center: ["50%", "50%"],
        radius: [0, "75%"],
        clockwise: !0,
        startAngle: 90,
        minAngle: 0,
        stillShowZeroSum: !0,
        nodeClick: "rootToNode",
        renderLabelForZeroData: !1,
        label: {
            rotate: "radial",
            show: !0,
            opacity: 1,
            align: "center",
            position: "inside",
            distance: 5,
            silent: !0
        },
        itemStyle: {
            borderWidth: 1,
            borderColor: "white",
            borderType: "solid",
            shadowBlur: 0,
            shadowColor: "rgba(0, 0, 0, 0.2)",
            shadowOffsetX: 0,
            shadowOffsetY: 0,
            opacity: 1
        },
        emphasis: {
            focus: "descendant"
        },
        blur: {
            itemStyle: {
                opacity: .2
            },
            label: {
                opacity: .1
            }
        },
        animationType: "expansion",
        animationDuration: 1e3,
        animationDurationUpdate: 500,
        data: [],
        sort: "desc"
    },
    e
}(En);
function wce(t) {
    var e = 0;
    Z(t.children, function(r) {
        wce(r);
        var a = r.value;
        ke(a) && (a = a[0]),
        e += a
    });
    var n = t.value;
    ke(n) && (n = n[0]),
    (n == null || isNaN(n)) && (n = e),
    n < 0 && (n = 0),
    ke(t.value) ? t.value[0] = n : t.value = n
}
const est = Jlt;
var DK = Math.PI / 180;
function tst(t, e, n) {
    e.eachSeriesByType(t, function(r) {
        var a = r.get("center")
          , i = r.get("radius");
        ke(i) || (i = [0, i]),
        ke(a) || (a = [a, a]);
        var o = n.getWidth()
          , l = n.getHeight()
          , s = Math.min(o, l)
          , u = He(a[0], o)
          , c = He(a[1], l)
          , f = He(i[0], s / 2)
          , d = He(i[1], s / 2)
          , v = -r.get("startAngle") * DK
          , h = r.get("minAngle") * DK
          , p = r.getData().tree.root
          , g = r.getViewRoot()
          , m = g.depth
          , y = r.get("sort");
        y != null && _ce(g, y);
        var b = 0;
        Z(g.children, function(L) {
            !isNaN(L.getValue()) && b++
        });
        var x = g.getValue()
          , C = Math.PI / (x || b) * 2
          , S = g.depth > 0
          , w = g.height - (S ? -1 : 1)
          , T = (d - f) / (w || 1)
          , P = r.get("clockwise")
          , M = r.get("stillShowZeroSum")
          , A = P ? 1 : -1
          , O = function(L, N) {
            if (!!L) {
                var R = N;
                if (L !== p) {
                    var $ = L.getValue()
                      , W = x === 0 && M ? C : $ * C;
                    W < h && (W = h),
                    R = N + A * W;
                    var B = L.depth - m - (S ? -1 : 1)
                      , G = f + T * B
                      , K = f + T * (B + 1)
                      , V = r.getLevelModel(L);
                    if (V) {
                        var U = V.get("r0", !0)
                          , X = V.get("r", !0)
                          , Y = V.get("radius", !0);
                        Y != null && (U = Y[0],
                        X = Y[1]),
                        U != null && (G = He(U, s / 2)),
                        X != null && (K = He(X, s / 2))
                    }
                    L.setLayout({
                        angle: W,
                        startAngle: N,
                        endAngle: R,
                        clockwise: P,
                        cx: u,
                        cy: c,
                        r0: G,
                        r: K
                    })
                }
                if (L.children && L.children.length) {
                    var te = 0;
                    Z(L.children, function(ne) {
                        te += O(ne, N + te)
                    })
                }
                return R - N
            }
        };
        if (S) {
            var k = f
              , D = f + T
              , E = Math.PI * 2;
            p.setLayout({
                angle: E,
                startAngle: v,
                endAngle: v + E,
                clockwise: P,
                cx: u,
                cy: c,
                r0: k,
                r: D
            })
        }
        O(g, v)
    })
}
function _ce(t, e) {
    var n = t.children || [];
    t.children = nst(n, e),
    n.length && Z(t.children, function(r) {
        _ce(r, e)
    })
}
function nst(t, e) {
    if (et(e)) {
        var n = Le(t, function(a, i) {
            var o = a.getValue();
            return {
                params: {
                    depth: a.depth,
                    height: a.height,
                    dataIndex: a.dataIndex,
                    getValue: function() {
                        return o
                    }
                },
                index: i
            }
        });
        return n.sort(function(a, i) {
            return e(a.params, i.params)
        }),
        Le(n, function(a) {
            return t[a.index]
        })
    } else {
        var r = e === "asc";
        return t.sort(function(a, i) {
            var o = (a.getValue() - i.getValue()) * (r ? 1 : -1);
            return o === 0 ? (a.dataIndex - i.dataIndex) * (r ? -1 : 1) : o
        })
    }
}
function rst(t) {
    var e = {};
    function n(r, a, i) {
        for (var o = r; o && o.depth > 1; )
            o = o.parentNode;
        var l = a.getColorFromPalette(o.name || o.dataIndex + "", e);
        return r.depth > 1 && Ge(l) && (l = _S(l, (r.depth - 1) / (i - 1) * .5)),
        l
    }
    t.eachSeriesByType("sunburst", function(r) {
        var a = r.getData()
          , i = a.tree;
        i.eachNode(function(o) {
            var l = o.getModel()
              , s = l.getModel("itemStyle").getItemStyle();
            s.fill || (s.fill = n(o, r, i.root.height));
            var u = a.ensureUniqueItemVisual(o.dataIndex, "style");
            Me(u, s)
        })
    })
}
function ast(t) {
    t.registerChartView(Qlt),
    t.registerSeriesModel(est),
    t.registerLayout(St(tst, "sunburst")),
    t.registerProcessor(St(ly, "sunburst")),
    t.registerVisual(rst),
    Xlt(t)
}
var EK = {
    color: "fill",
    borderColor: "stroke"
}
  , ist = {
    symbol: 1,
    symbolSize: 1,
    symbolKeepAspect: 1,
    legendIcon: 1,
    visualMeta: 1,
    liftZ: 1,
    decal: 1
}
  , as = an()
  , ost = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.optionUpdated = function() {
        this.currentZLevel = this.get("zlevel", !0),
        this.currentZ = this.get("z", !0)
    }
    ,
    e.prototype.getInitialData = function(n, r) {
        return Pl(null, this)
    }
    ,
    e.prototype.getDataParams = function(n, r, a) {
        var i = t.prototype.getDataParams.call(this, n, r);
        return a && (i.info = as(a).info),
        i
    }
    ,
    e.type = "series.custom",
    e.dependencies = ["grid", "polar", "geo", "singleAxis", "calendar"],
    e.defaultOption = {
        coordinateSystem: "cartesian2d",
        z: 2,
        legendHoverLink: !0,
        clip: !1
    },
    e
}(En);
const lst = ost;
function sst(t, e) {
    return e = e || [0, 0],
    Le(["x", "y"], function(n, r) {
        var a = this.getAxis(n)
          , i = e[r]
          , o = t[r] / 2;
        return a.type === "category" ? a.getBandWidth() : Math.abs(a.dataToCoord(i - o) - a.dataToCoord(i + o))
    }, this)
}
function ust(t) {
    var e = t.master.getRect();
    return {
        coordSys: {
            type: "cartesian2d",
            x: e.x,
            y: e.y,
            width: e.width,
            height: e.height
        },
        api: {
            coord: function(n) {
                return t.dataToPoint(n)
            },
            size: qe(sst, t)
        }
    }
}
function cst(t, e) {
    return e = e || [0, 0],
    Le([0, 1], function(n) {
        var r = e[n]
          , a = t[n] / 2
          , i = []
          , o = [];
        return i[n] = r - a,
        o[n] = r + a,
        i[1 - n] = o[1 - n] = e[1 - n],
        Math.abs(this.dataToPoint(i)[n] - this.dataToPoint(o)[n])
    }, this)
}
function fst(t) {
    var e = t.getBoundingRect();
    return {
        coordSys: {
            type: "geo",
            x: e.x,
            y: e.y,
            width: e.width,
            height: e.height,
            zoom: t.getZoom()
        },
        api: {
            coord: function(n) {
                return t.dataToPoint(n)
            },
            size: qe(cst, t)
        }
    }
}
function dst(t, e) {
    var n = this.getAxis()
      , r = e instanceof Array ? e[0] : e
      , a = (t instanceof Array ? t[0] : t) / 2;
    return n.type === "category" ? n.getBandWidth() : Math.abs(n.dataToCoord(r - a) - n.dataToCoord(r + a))
}
function vst(t) {
    var e = t.getRect();
    return {
        coordSys: {
            type: "singleAxis",
            x: e.x,
            y: e.y,
            width: e.width,
            height: e.height
        },
        api: {
            coord: function(n) {
                return t.dataToPoint(n)
            },
            size: qe(dst, t)
        }
    }
}
function hst(t, e) {
    return e = e || [0, 0],
    Le(["Radius", "Angle"], function(n, r) {
        var a = "get" + n + "Axis"
          , i = this[a]()
          , o = e[r]
          , l = t[r] / 2
          , s = i.type === "category" ? i.getBandWidth() : Math.abs(i.dataToCoord(o - l) - i.dataToCoord(o + l));
        return n === "Angle" && (s = s * Math.PI / 180),
        s
    }, this)
}
function pst(t) {
    var e = t.getRadiusAxis()
      , n = t.getAngleAxis()
      , r = e.getExtent();
    return r[0] > r[1] && r.reverse(),
    {
        coordSys: {
            type: "polar",
            cx: t.cx,
            cy: t.cy,
            r: r[1],
            r0: r[0]
        },
        api: {
            coord: function(a) {
                var i = e.dataToRadius(a[0])
                  , o = n.dataToAngle(a[1])
                  , l = t.coordToPoint([i, o]);
                return l.push(i, o * Math.PI / 180),
                l
            },
            size: qe(hst, t)
        }
    }
}
function gst(t) {
    var e = t.getRect()
      , n = t.getRangeInfo();
    return {
        coordSys: {
            type: "calendar",
            x: e.x,
            y: e.y,
            width: e.width,
            height: e.height,
            cellWidth: t.getCellWidth(),
            cellHeight: t.getCellHeight(),
            rangeInfo: {
                start: n.start,
                end: n.end,
                weeks: n.weeks,
                dayCount: n.allDay
            }
        },
        api: {
            coord: function(r, a) {
                return t.dataToPoint(r, a)
            }
        }
    }
}
function Tce(t, e, n, r) {
    return t && (t.legacy || t.legacy !== !1 && !n && !r && e !== "tspan" && (e === "text" || Ze(t, "text")))
}
function Pce(t, e, n) {
    var r = t, a, i, o;
    if (e === "text")
        o = r;
    else {
        o = {},
        Ze(r, "text") && (o.text = r.text),
        Ze(r, "rich") && (o.rich = r.rich),
        Ze(r, "textFill") && (o.fill = r.textFill),
        Ze(r, "textStroke") && (o.stroke = r.textStroke),
        Ze(r, "fontFamily") && (o.fontFamily = r.fontFamily),
        Ze(r, "fontSize") && (o.fontSize = r.fontSize),
        Ze(r, "fontStyle") && (o.fontStyle = r.fontStyle),
        Ze(r, "fontWeight") && (o.fontWeight = r.fontWeight),
        i = {
            type: "text",
            style: o,
            silent: !0
        },
        a = {};
        var l = Ze(r, "textPosition");
        n ? a.position = l ? r.textPosition : "inside" : l && (a.position = r.textPosition),
        Ze(r, "textPosition") && (a.position = r.textPosition),
        Ze(r, "textOffset") && (a.offset = r.textOffset),
        Ze(r, "textRotation") && (a.rotation = r.textRotation),
        Ze(r, "textDistance") && (a.distance = r.textDistance)
    }
    return LK(o, t),
    Z(o.rich, function(s) {
        LK(s, s)
    }),
    {
        textConfig: a,
        textContent: i
    }
}
function LK(t, e) {
    !e || (e.font = e.textFont || e.font,
    Ze(e, "textStrokeWidth") && (t.lineWidth = e.textStrokeWidth),
    Ze(e, "textAlign") && (t.align = e.textAlign),
    Ze(e, "textVerticalAlign") && (t.verticalAlign = e.textVerticalAlign),
    Ze(e, "textLineHeight") && (t.lineHeight = e.textLineHeight),
    Ze(e, "textWidth") && (t.width = e.textWidth),
    Ze(e, "textHeight") && (t.height = e.textHeight),
    Ze(e, "textBackgroundColor") && (t.backgroundColor = e.textBackgroundColor),
    Ze(e, "textPadding") && (t.padding = e.textPadding),
    Ze(e, "textBorderColor") && (t.borderColor = e.textBorderColor),
    Ze(e, "textBorderWidth") && (t.borderWidth = e.textBorderWidth),
    Ze(e, "textBorderRadius") && (t.borderRadius = e.textBorderRadius),
    Ze(e, "textBoxShadowColor") && (t.shadowColor = e.textBoxShadowColor),
    Ze(e, "textBoxShadowBlur") && (t.shadowBlur = e.textBoxShadowBlur),
    Ze(e, "textBoxShadowOffsetX") && (t.shadowOffsetX = e.textBoxShadowOffsetX),
    Ze(e, "textBoxShadowOffsetY") && (t.shadowOffsetY = e.textBoxShadowOffsetY))
}
function RK(t, e, n) {
    var r = t;
    r.textPosition = r.textPosition || n.position || "inside",
    n.offset != null && (r.textOffset = n.offset),
    n.rotation != null && (r.textRotation = n.rotation),
    n.distance != null && (r.textDistance = n.distance);
    var a = r.textPosition.indexOf("inside") >= 0
      , i = t.fill || "#000";
    NK(r, e);
    var o = r.textFill == null;
    return a ? o && (r.textFill = n.insideFill || "#fff",
    !r.textStroke && n.insideStroke && (r.textStroke = n.insideStroke),
    !r.textStroke && (r.textStroke = i),
    r.textStrokeWidth == null && (r.textStrokeWidth = 2)) : (o && (r.textFill = t.fill || n.outsideFill || "#000"),
    !r.textStroke && n.outsideStroke && (r.textStroke = n.outsideStroke)),
    r.text = e.text,
    r.rich = e.rich,
    Z(e.rich, function(l) {
        NK(l, l)
    }),
    r
}
function NK(t, e) {
    !e || (Ze(e, "fill") && (t.textFill = e.fill),
    Ze(e, "stroke") && (t.textStroke = e.fill),
    Ze(e, "lineWidth") && (t.textStrokeWidth = e.lineWidth),
    Ze(e, "font") && (t.font = e.font),
    Ze(e, "fontStyle") && (t.fontStyle = e.fontStyle),
    Ze(e, "fontWeight") && (t.fontWeight = e.fontWeight),
    Ze(e, "fontSize") && (t.fontSize = e.fontSize),
    Ze(e, "fontFamily") && (t.fontFamily = e.fontFamily),
    Ze(e, "align") && (t.textAlign = e.align),
    Ze(e, "verticalAlign") && (t.textVerticalAlign = e.verticalAlign),
    Ze(e, "lineHeight") && (t.textLineHeight = e.lineHeight),
    Ze(e, "width") && (t.textWidth = e.width),
    Ze(e, "height") && (t.textHeight = e.height),
    Ze(e, "backgroundColor") && (t.textBackgroundColor = e.backgroundColor),
    Ze(e, "padding") && (t.textPadding = e.padding),
    Ze(e, "borderColor") && (t.textBorderColor = e.borderColor),
    Ze(e, "borderWidth") && (t.textBorderWidth = e.borderWidth),
    Ze(e, "borderRadius") && (t.textBorderRadius = e.borderRadius),
    Ze(e, "shadowColor") && (t.textBoxShadowColor = e.shadowColor),
    Ze(e, "shadowBlur") && (t.textBoxShadowBlur = e.shadowBlur),
    Ze(e, "shadowOffsetX") && (t.textBoxShadowOffsetX = e.shadowOffsetX),
    Ze(e, "shadowOffsetY") && (t.textBoxShadowOffsetY = e.shadowOffsetY),
    Ze(e, "textShadowColor") && (t.textShadowColor = e.textShadowColor),
    Ze(e, "textShadowBlur") && (t.textShadowBlur = e.textShadowBlur),
    Ze(e, "textShadowOffsetX") && (t.textShadowOffsetX = e.textShadowOffsetX),
    Ze(e, "textShadowOffsetY") && (t.textShadowOffsetY = e.textShadowOffsetY))
}
var Mce = {
    position: ["x", "y"],
    scale: ["scaleX", "scaleY"],
    origin: ["originX", "originY"]
}
  , $K = Gt(Mce);
Hi(gl, function(t, e) {
    return t[e] = 1,
    t
}, {});
gl.join(", ");
var aC = ["", "style", "shape", "extra"]
  , rh = an();
function hL(t, e, n, r, a) {
    var i = t + "Animation"
      , o = Ah(t, r, a) || {}
      , l = rh(e).userDuring;
    return o.duration > 0 && (o.during = l ? qe(Sst, {
        el: e,
        userDuring: l
    }) : null,
    o.setToFinal = !0,
    o.scope = t),
    Me(o, n[i]),
    o
}
function hx(t, e, n, r) {
    r = r || {};
    var a = r.dataIndex
      , i = r.isInit
      , o = r.clearStyle
      , l = n.isAnimationEnabled()
      , s = rh(t)
      , u = e.style;
    s.userDuring = e.during;
    var c = {}
      , f = {};
    if (wst(t, e, f),
    BK("shape", e, f),
    BK("extra", e, f),
    !i && l && (Cst(t, e, c),
    FK("shape", t, e, c),
    FK("extra", t, e, c),
    _st(t, e, u, c)),
    f.style = u,
    mst(t, f, o),
    bst(t, e),
    l)
        if (i) {
            var d = {};
            Z(aC, function(h) {
                var p = h ? e[h] : e;
                p && p.enterFrom && (h && (d[h] = d[h] || {}),
                Me(h ? d[h] : d, p.enterFrom))
            });
            var v = hL("enter", t, e, n, a);
            v.duration > 0 && t.animateFrom(d, v)
        } else
            yst(t, e, a || 0, n, c);
    Ace(t, e),
    u ? t.dirty() : t.markRedraw()
}
function Ace(t, e) {
    for (var n = rh(t).leaveToProps, r = 0; r < aC.length; r++) {
        var a = aC[r]
          , i = a ? e[a] : e;
        i && i.leaveTo && (n || (n = rh(t).leaveToProps = {}),
        a && (n[a] = n[a] || {}),
        Me(a ? n[a] : n, i.leaveTo))
    }
}
function L2(t, e, n, r) {
    if (t) {
        var a = t.parent
          , i = rh(t).leaveToProps;
        if (i) {
            var o = hL("update", t, e, n, 0);
            o.done = function() {
                a.remove(t),
                r && r()
            }
            ,
            t.animateTo(i, o)
        } else
            a.remove(t),
            r && r()
    }
}
function Pf(t) {
    return t === "all"
}
function mst(t, e, n) {
    var r = e.style;
    if (!t.isGroup && r) {
        if (n) {
            t.useStyle({});
            for (var a = t.animators, i = 0; i < a.length; i++) {
                var o = a[i];
                o.targetName === "style" && o.changeTarget(t.style)
            }
        }
        t.setStyle(r)
    }
    e && (e.style = null,
    e && t.attr(e),
    e.style = r)
}
function yst(t, e, n, r, a) {
    if (a) {
        var i = hL("update", t, e, r, n);
        i.duration > 0 && t.animateFrom(a, i)
    }
}
function bst(t, e) {
    Ze(e, "silent") && (t.silent = e.silent),
    Ze(e, "ignore") && (t.ignore = e.ignore),
    t instanceof ji && Ze(e, "invisible") && (t.invisible = e.invisible),
    t instanceof jt && Ze(e, "autoBatch") && (t.autoBatch = e.autoBatch)
}
var Go = {}
  , xst = {
    setTransform: function(t, e) {
        return Go.el[t] = e,
        this
    },
    getTransform: function(t) {
        return Go.el[t]
    },
    setShape: function(t, e) {
        var n = Go.el
          , r = n.shape || (n.shape = {});
        return r[t] = e,
        n.dirtyShape && n.dirtyShape(),
        this
    },
    getShape: function(t) {
        var e = Go.el.shape;
        if (e)
            return e[t]
    },
    setStyle: function(t, e) {
        var n = Go.el
          , r = n.style;
        return r && (r[t] = e,
        n.dirtyStyle && n.dirtyStyle()),
        this
    },
    getStyle: function(t) {
        var e = Go.el.style;
        if (e)
            return e[t]
    },
    setExtra: function(t, e) {
        var n = Go.el.extra || (Go.el.extra = {});
        return n[t] = e,
        this
    },
    getExtra: function(t) {
        var e = Go.el.extra;
        if (e)
            return e[t]
    }
};
function Sst() {
    var t = this
      , e = t.el;
    if (!!e) {
        var n = rh(e).userDuring
          , r = t.userDuring;
        if (n !== r) {
            t.el = t.userDuring = null;
            return
        }
        Go.el = e,
        r(xst)
    }
}
function FK(t, e, n, r) {
    var a = n[t];
    if (!!a) {
        var i = e[t], o;
        if (i) {
            var l = n.transition
              , s = a.transition;
            if (s)
                if (!o && (o = r[t] = {}),
                Pf(s))
                    Me(o, i);
                else
                    for (var u = _n(s), c = 0; c < u.length; c++) {
                        var f = u[c]
                          , d = i[f];
                        o[f] = d
                    }
            else if (Pf(l) || Rt(l, t) >= 0) {
                !o && (o = r[t] = {});
                for (var v = Gt(i), c = 0; c < v.length; c++) {
                    var f = v[c]
                      , d = i[f];
                    Tst(a[f], d) && (o[f] = d)
                }
            }
        }
    }
}
function BK(t, e, n) {
    var r = e[t];
    if (!!r)
        for (var a = n[t] = {}, i = Gt(r), o = 0; o < i.length; o++) {
            var l = i[o];
            a[l] = Ng(r[l])
        }
}
function Cst(t, e, n) {
    for (var r = e.transition, a = Pf(r) ? gl : _n(r || []), i = 0; i < a.length; i++) {
        var o = a[i];
        if (!(o === "style" || o === "shape" || o === "extra")) {
            var l = t[o];
            n[o] = l
        }
    }
}
function wst(t, e, n) {
    for (var r = 0; r < $K.length; r++) {
        var a = $K[r]
          , i = Mce[a]
          , o = e[a];
        o && (n[i[0]] = o[0],
        n[i[1]] = o[1])
    }
    for (var r = 0; r < gl.length; r++) {
        var l = gl[r];
        e[l] != null && (n[l] = e[l])
    }
}
function _st(t, e, n, r) {
    if (!!n) {
        var a = t.style, i;
        if (a) {
            var o = n.transition
              , l = e.transition;
            if (o && !Pf(o)) {
                var s = _n(o);
                !i && (i = r.style = {});
                for (var u = 0; u < s.length; u++) {
                    var c = s[u]
                      , f = a[c];
                    i[c] = f
                }
            } else if (t.getAnimationStyleProps && (Pf(l) || Pf(o) || Rt(l, "style") >= 0)) {
                var d = t.getAnimationStyleProps()
                  , v = d ? d.style : null;
                if (v) {
                    !i && (i = r.style = {});
                    for (var h = Gt(n), u = 0; u < h.length; u++) {
                        var c = h[u];
                        if (v[c]) {
                            var f = a[c];
                            i[c] = f
                        }
                    }
                }
            }
        }
    }
}
function Tst(t, e) {
    return Qr(t) ? t !== e : t != null && isFinite(t)
}
var Ice = an()
  , Pst = ["percent", "easing", "shape", "style", "extra"];
function kce(t) {
    t.stopAnimation("keyframe"),
    t.attr(Ice(t))
}
function iC(t, e, n) {
    if (!(!n.isAnimationEnabled() || !e)) {
        if (ke(e)) {
            Z(e, function(l) {
                iC(t, l, n)
            });
            return
        }
        var r = e.keyframes
          , a = e.duration;
        if (n && a == null) {
            var i = Ah("enter", n, 0);
            a = i && i.duration
        }
        if (!(!r || !a)) {
            var o = Ice(t);
            Z(aC, function(l) {
                if (!(l && !t[l])) {
                    var s;
                    r.sort(function(u, c) {
                        return u.percent - c.percent
                    }),
                    Z(r, function(u) {
                        var c = t.animators
                          , f = l ? u[l] : u;
                        if (!!f) {
                            var d = Gt(f);
                            if (l || (d = pn(d, function(p) {
                                return Rt(Pst, p) < 0
                            })),
                            !!d.length) {
                                s || (s = t.animate(l, e.loop, !0),
                                s.scope = "keyframe");
                                for (var v = 0; v < c.length; v++)
                                    c[v] !== s && c[v].targetName === s.targetName && c[v].stopTracks(d);
                                l && (o[l] = o[l] || {});
                                var h = l ? o[l] : o;
                                Z(d, function(p) {
                                    h[p] = ((l ? t[l] : t) || {})[p]
                                }),
                                s.whenWithKeys(a * u.percent, f, d, u.easing)
                            }
                        }
                    }),
                    s && s.delay(e.delay || 0).duration(a).start(e.easing)
                }
            })
        }
    }
}
var is = "emphasis"
  , uu = "normal"
  , pL = "blur"
  , gL = "select"
  , Nu = [uu, is, pL, gL]
  , r3 = {
    normal: ["itemStyle"],
    emphasis: [is, "itemStyle"],
    blur: [pL, "itemStyle"],
    select: [gL, "itemStyle"]
}
  , a3 = {
    normal: ["label"],
    emphasis: [is, "label"],
    blur: [pL, "label"],
    select: [gL, "label"]
}
  , Mst = ["x", "y"]
  , Ast = "e\0\0"
  , Ci = {
    normal: {},
    emphasis: {},
    blur: {},
    select: {}
}
  , Ist = {
    cartesian2d: ust,
    geo: fst,
    single: vst,
    polar: pst,
    calendar: gst
};
function xk(t) {
    return t instanceof jt
}
function Sk(t) {
    return t instanceof ji
}
function kst(t, e) {
    e.copyTransform(t),
    Sk(e) && Sk(t) && (e.setStyle(t.style),
    e.z = t.z,
    e.z2 = t.z2,
    e.zlevel = t.zlevel,
    e.invisible = t.invisible,
    e.ignore = t.ignore,
    xk(e) && xk(t) && e.setShape(t.shape))
}
var Ost = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a, i) {
        this._progressiveEls = null;
        var o = this._data
          , l = n.getData()
          , s = this.group
          , u = VK(n, l, r, a);
        o || s.removeAll(),
        l.diff(o).add(function(f) {
            i3(a, null, f, u(f, i), n, s, l)
        }).remove(function(f) {
            var d = o.getItemGraphicEl(f);
            d && L2(d, as(d).option, n)
        }).update(function(f, d) {
            var v = o.getItemGraphicEl(d);
            i3(a, v, f, u(f, i), n, s, l)
        }).execute();
        var c = n.get("clip", !0) ? A2(n.coordinateSystem, !1, n) : null;
        c ? s.setClipPath(c) : s.removeClipPath(),
        this._data = l
    }
    ,
    e.prototype.incrementalPrepareRender = function(n, r, a) {
        this.group.removeAll(),
        this._data = null
    }
    ,
    e.prototype.incrementalRender = function(n, r, a, i, o) {
        var l = r.getData()
          , s = VK(r, l, a, i)
          , u = this._progressiveEls = [];
        function c(v) {
            v.isGroup || (v.incremental = !0,
            v.ensureState("emphasis").hoverLayer = !0)
        }
        for (var f = n.start; f < n.end; f++) {
            var d = i3(null, null, f, s(f, o), r, this.group, l);
            d && (d.traverse(c),
            u.push(d))
        }
    }
    ,
    e.prototype.eachRendered = function(n) {
        Uu(this._progressiveEls || this.group, n)
    }
    ,
    e.prototype.filterForExposedEvent = function(n, r, a, i) {
        var o = r.element;
        if (o == null || a.name === o)
            return !0;
        for (; (a = a.__hostTarget || a.parent) && a !== this.group; )
            if (a.name === o)
                return !0;
        return !1
    }
    ,
    e.type = "custom",
    e
}(Tn);
const Dst = Ost;
function mL(t) {
    var e = t.type, n;
    if (e === "path") {
        var r = t.shape
          , a = r.width != null && r.height != null ? {
            x: r.x || 0,
            y: r.y || 0,
            width: r.width,
            height: r.height
        } : null
          , i = Ece(r);
        n = Zm(i, null, a, r.layout || "center"),
        as(n).customPathData = i
    } else if (e === "image")
        n = new Kr({}),
        as(n).customImagePath = t.style.image;
    else if (e === "text")
        n = new Jt({});
    else if (e === "group")
        n = new mt;
    else {
        if (e === "compoundPath")
            throw new Error('"compoundPath" is not supported yet.');
        var o = c2(e);
        if (!o) {
            var l = "";
            cn(l)
        }
        n = new o
    }
    return as(n).customGraphicType = e,
    n.name = t.name,
    n.z2EmphasisLift = 1,
    n.z2SelectLift = 1,
    n
}
function yL(t, e, n, r, a, i, o) {
    kce(e);
    var l = a && a.normal.cfg;
    l && e.setTextConfig(l),
    r && r.transition == null && (r.transition = Mst);
    var s = r && r.style;
    if (s) {
        if (e.type === "text") {
            var u = s;
            Ze(u, "textFill") && (u.fill = u.textFill),
            Ze(u, "textStroke") && (u.stroke = u.textStroke)
        }
        var c = void 0
          , f = xk(e) ? s.decal : null;
        t && f && (f.dirty = !0,
        c = Jv(f, t)),
        s.__decalPattern = c
    }
    if (Sk(e) && s) {
        var c = s.__decalPattern;
        c && (s.decal = c)
    }
    hx(e, r, i, {
        dataIndex: n,
        isInit: o,
        clearStyle: !0
    }),
    iC(e, r.keyframeAnimation, i)
}
function Oce(t, e, n, r, a) {
    var i = e.isGroup ? null : e
      , o = a && a[t].cfg;
    if (i) {
        var l = i.ensureState(t);
        if (r === !1) {
            var s = i.getState(t);
            s && (s.style = null)
        } else
            l.style = r || null;
        o && (l.textConfig = o),
        Bf(i)
    }
}
function Est(t, e, n) {
    if (!t.isGroup) {
        var r = t
          , a = n.currentZ
          , i = n.currentZLevel;
        r.z = a,
        r.zlevel = i;
        var o = e.z2;
        o != null && (r.z2 = o || 0);
        for (var l = 0; l < Nu.length; l++)
            Lst(r, e, Nu[l])
    }
}
function Lst(t, e, n) {
    var r = n === uu, a = r ? e : oC(e, n), i = a ? a.z2 : null, o;
    i != null && (o = r ? t : t.ensureState(n),
    o.z2 = i || 0)
}
function VK(t, e, n, r) {
    var a = t.get("renderItem")
      , i = t.coordinateSystem
      , o = {};
    i && (o = i.prepareCustoms ? i.prepareCustoms(i) : Ist[i.type](i));
    for (var l = ot({
        getWidth: r.getWidth,
        getHeight: r.getHeight,
        getZr: r.getZr,
        getDevicePixelRatio: r.getDevicePixelRatio,
        value: x,
        style: S,
        ordinalRawValue: C,
        styleEmphasis: w,
        visual: M,
        barLayout: A,
        currentSeriesIndices: O,
        font: k
    }, o.api || {}), s = {
        context: {},
        seriesId: t.id,
        seriesName: t.name,
        seriesIndex: t.seriesIndex,
        coordSys: o.coordSys,
        dataInsideLength: e.count(),
        encode: Rst(t.getData())
    }, u, c, f = {}, d = {}, v = {}, h = {}, p = 0; p < Nu.length; p++) {
        var g = Nu[p];
        v[g] = t.getModel(r3[g]),
        h[g] = t.getModel(a3[g])
    }
    function m(D) {
        return D === u ? c || (c = e.getItemModel(D)) : e.getItemModel(D)
    }
    function y(D, E) {
        return e.hasItemOption ? D === u ? f[E] || (f[E] = m(D).getModel(r3[E])) : m(D).getModel(r3[E]) : v[E]
    }
    function b(D, E) {
        return e.hasItemOption ? D === u ? d[E] || (d[E] = m(D).getModel(a3[E])) : m(D).getModel(a3[E]) : h[E]
    }
    return function(D, E) {
        return u = D,
        c = null,
        f = {},
        d = {},
        a && a(ot({
            dataIndexInside: D,
            dataIndex: e.getRawIndex(D),
            actionType: E ? E.type : null
        }, s), l)
    }
    ;
    function x(D, E) {
        return E == null && (E = u),
        e.getStore().get(e.getDimensionIndex(D || 0), E)
    }
    function C(D, E) {
        E == null && (E = u),
        D = D || 0;
        var L = e.getDimensionInfo(D);
        if (!L) {
            var N = e.getDimensionIndex(D);
            return N >= 0 ? e.getStore().get(N, E) : void 0
        }
        var R = e.get(L.name, E)
          , $ = L && L.ordinalMeta;
        return $ ? $.categories[R] : R
    }
    function S(D, E) {
        E == null && (E = u);
        var L = e.getItemVisual(E, "style")
          , N = L && L.fill
          , R = L && L.opacity
          , $ = y(E, uu).getItemStyle();
        N != null && ($.fill = N),
        R != null && ($.opacity = R);
        var W = {
            inheritColor: Ge(N) ? N : "#000"
        }
          , B = b(E, uu)
          , G = In(B, null, W, !1, !0);
        G.text = B.getShallow("show") ? Ot(t.getFormattedLabel(E, uu), eh(e, E)) : null;
        var K = ES(B, W, !1);
        return P(D, $),
        $ = RK($, G, K),
        D && T($, D),
        $.legacy = !0,
        $
    }
    function w(D, E) {
        E == null && (E = u);
        var L = y(E, is).getItemStyle()
          , N = b(E, is)
          , R = In(N, null, null, !0, !0);
        R.text = N.getShallow("show") ? ho(t.getFormattedLabel(E, is), t.getFormattedLabel(E, uu), eh(e, E)) : null;
        var $ = ES(N, null, !0);
        return P(D, L),
        L = RK(L, R, $),
        D && T(L, D),
        L.legacy = !0,
        L
    }
    function T(D, E) {
        for (var L in E)
            Ze(E, L) && (D[L] = E[L])
    }
    function P(D, E) {
        D && (D.textFill && (E.textFill = D.textFill),
        D.textPosition && (E.textPosition = D.textPosition))
    }
    function M(D, E) {
        if (E == null && (E = u),
        Ze(EK, D)) {
            var L = e.getItemVisual(E, "style");
            return L ? L[EK[D]] : null
        }
        if (Ze(ist, D))
            return e.getItemVisual(E, D)
    }
    function A(D) {
        if (i.type === "cartesian2d") {
            var E = i.getBaseAxis();
            return SZe(ot({
                axis: E
            }, D))
        }
    }
    function O() {
        return n.getCurrentSeriesIndices()
    }
    function k(D) {
        return foe(D, n)
    }
}
function Rst(t) {
    var e = {};
    return Z(t.dimensions, function(n) {
        var r = t.getDimensionInfo(n);
        if (!r.isExtraCoord) {
            var a = r.coordDim
              , i = e[a] = e[a] || [];
            i[r.coordDimIndex] = t.getDimensionIndex(n)
        }
    }),
    e
}
function i3(t, e, n, r, a, i, o) {
    if (!r) {
        i.remove(e);
        return
    }
    var l = bL(t, e, n, r, a, i);
    return l && o.setItemGraphicEl(n, l),
    l && Qn(l, r.focus, r.blurScope, r.emphasisDisabled),
    l
}
function bL(t, e, n, r, a, i) {
    var o = -1
      , l = e;
    e && Dce(e, r, a) && (o = Rt(i.childrenRef(), e),
    e = null);
    var s = !e
      , u = e;
    u ? u.clearStates() : (u = mL(r),
    l && kst(l, u)),
    r.morph === !1 ? u.disableMorphing = !0 : u.disableMorphing && (u.disableMorphing = !1),
    Ci.normal.cfg = Ci.normal.conOpt = Ci.emphasis.cfg = Ci.emphasis.conOpt = Ci.blur.cfg = Ci.blur.conOpt = Ci.select.cfg = Ci.select.conOpt = null,
    Ci.isLegacy = !1,
    $st(u, n, r, a, s, Ci),
    Nst(u, n, r, a, s),
    yL(t, u, n, r, Ci, a, s),
    Ze(r, "info") && (as(u).info = r.info);
    for (var c = 0; c < Nu.length; c++) {
        var f = Nu[c];
        if (f !== uu) {
            var d = oC(r, f)
              , v = xL(r, d, f);
            Oce(f, u, d, v, Ci)
        }
    }
    return Est(u, r, a),
    r.type === "group" && Fst(t, u, n, r, a),
    o >= 0 ? i.replaceAt(u, o) : i.add(u),
    u
}
function Dce(t, e, n) {
    var r = as(t)
      , a = e.type
      , i = e.shape
      , o = e.style;
    return n.isUniversalTransitionEnabled() || a != null && a !== r.customGraphicType || a === "path" && Hst(i) && Ece(i) !== r.customPathData || a === "image" && Ze(o, "image") && o.image !== r.customImagePath
}
function Nst(t, e, n, r, a) {
    var i = n.clipPath;
    if (i === !1)
        t && t.getClipPath() && t.removeClipPath();
    else if (i) {
        var o = t.getClipPath();
        o && Dce(o, i, r) && (o = null),
        o || (o = mL(i),
        t.setClipPath(o)),
        yL(null, o, e, i, null, r, a)
    }
}
function $st(t, e, n, r, a, i) {
    if (!t.isGroup) {
        zK(n, null, i),
        zK(n, is, i);
        var o = i.normal.conOpt
          , l = i.emphasis.conOpt
          , s = i.blur.conOpt
          , u = i.select.conOpt;
        if (o != null || l != null || u != null || s != null) {
            var c = t.getTextContent();
            if (o === !1)
                c && t.removeTextContent();
            else {
                o = i.normal.conOpt = o || {
                    type: "text"
                },
                c ? c.clearStates() : (c = mL(o),
                t.setTextContent(c)),
                yL(null, c, e, o, null, r, a);
                for (var f = o && o.style, d = 0; d < Nu.length; d++) {
                    var v = Nu[d];
                    if (v !== uu) {
                        var h = i[v].conOpt;
                        Oce(v, c, h, xL(o, h, v), null)
                    }
                }
                f ? c.dirty() : c.markRedraw()
            }
        }
    }
}
function zK(t, e, n) {
    var r = e ? oC(t, e) : t
      , a = e ? xL(t, r, is) : t.style
      , i = t.type
      , o = r ? r.textConfig : null
      , l = t.textContent
      , s = l ? e ? oC(l, e) : l : null;
    if (a && (n.isLegacy || Tce(a, i, !!o, !!s))) {
        n.isLegacy = !0;
        var u = Pce(a, i, !e);
        !o && u.textConfig && (o = u.textConfig),
        !s && u.textContent && (s = u.textContent)
    }
    if (!e && s) {
        var c = s;
        !c.type && (c.type = "text")
    }
    var f = e ? n[e] : n.normal;
    f.cfg = o,
    f.conOpt = s
}
function oC(t, e) {
    return e ? t ? t[e] : null : t
}
function xL(t, e, n) {
    var r = e && e.style;
    return r == null && n === is && t && (r = t.styleEmphasis),
    r
}
function Fst(t, e, n, r, a) {
    var i = r.children
      , o = i ? i.length : 0
      , l = r.$mergeChildren
      , s = l === "byName" || r.diffChildrenByName
      , u = l === !1;
    if (!(!o && !s && !u)) {
        if (s) {
            Vst({
                api: t,
                oldChildren: e.children() || [],
                newChildren: i || [],
                dataIndex: n,
                seriesModel: a,
                group: e
            });
            return
        }
        u && e.removeAll();
        for (var c = 0; c < o; c++) {
            var f = i[c]
              , d = e.childAt(c);
            f ? (f.ignore == null && (f.ignore = !1),
            bL(t, d, n, f, a, e)) : d.ignore = !0
        }
        for (var v = e.childCount() - 1; v >= c; v--) {
            var h = e.childAt(v);
            Bst(e, h, a)
        }
    }
}
function Bst(t, e, n) {
    e && L2(e, as(t).option, n)
}
function Vst(t) {
    new fs(t.oldChildren,t.newChildren,HK,HK,t).add(jK).update(jK).remove(zst).execute()
}
function HK(t, e) {
    var n = t && t.name;
    return n != null ? n : Ast + e
}
function jK(t, e) {
    var n = this.context
      , r = t != null ? n.newChildren[t] : null
      , a = e != null ? n.oldChildren[e] : null;
    bL(n.api, a, n.dataIndex, r, n.seriesModel, n.group)
}
function zst(t) {
    var e = this.context
      , n = e.oldChildren[t];
    n && L2(n, as(n).option, e.seriesModel)
}
function Ece(t) {
    return t && (t.pathData || t.d)
}
function Hst(t) {
    return t && (Ze(t, "pathData") || Ze(t, "d"))
}
function jst(t) {
    t.registerChartView(Dst),
    t.registerSeriesModel(lst)
}
var Xc = an()
  , WK = ut
  , o3 = qe
  , Wst = function() {
    function t() {
        this._dragging = !1,
        this.animationThreshold = 15
    }
    return t.prototype.render = function(e, n, r, a) {
        var i = n.get("value")
          , o = n.get("status");
        if (this._axisModel = e,
        this._axisPointerModel = n,
        this._api = r,
        !(!a && this._lastValue === i && this._lastStatus === o)) {
            this._lastValue = i,
            this._lastStatus = o;
            var l = this._group
              , s = this._handle;
            if (!o || o === "hide") {
                l && l.hide(),
                s && s.hide();
                return
            }
            l && l.show(),
            s && s.show();
            var u = {};
            this.makeElOption(u, i, e, n, r);
            var c = u.graphicKey;
            c !== this._lastGraphicKey && this.clear(r),
            this._lastGraphicKey = c;
            var f = this._moveAnimation = this.determineAnimation(e, n);
            if (!l)
                l = this._group = new mt,
                this.createPointerEl(l, u, e, n),
                this.createLabelEl(l, u, e, n),
                r.getZr().add(l);
            else {
                var d = St(GK, n, f);
                this.updatePointerEl(l, u, d),
                this.updateLabelEl(l, u, d, n)
            }
            UK(l, n, !0),
            this._renderHandle(i)
        }
    }
    ,
    t.prototype.remove = function(e) {
        this.clear(e)
    }
    ,
    t.prototype.dispose = function(e) {
        this.clear(e)
    }
    ,
    t.prototype.determineAnimation = function(e, n) {
        var r = n.get("animation")
          , a = e.axis
          , i = a.type === "category"
          , o = n.get("snap");
        if (!o && !i)
            return !1;
        if (r === "auto" || r == null) {
            var l = this.animationThreshold;
            if (i && a.getBandWidth() > l)
                return !0;
            if (o) {
                var s = W5(e).seriesDataCount
                  , u = a.getExtent();
                return Math.abs(u[0] - u[1]) / s > l
            }
            return !1
        }
        return r === !0
    }
    ,
    t.prototype.makeElOption = function(e, n, r, a, i) {}
    ,
    t.prototype.createPointerEl = function(e, n, r, a) {
        var i = n.pointer;
        if (i) {
            var o = Xc(e).pointerEl = new Jm[i.type](WK(n.pointer));
            e.add(o)
        }
    }
    ,
    t.prototype.createLabelEl = function(e, n, r, a) {
        if (n.label) {
            var i = Xc(e).labelEl = new Jt(WK(n.label));
            e.add(i),
            KK(i, a)
        }
    }
    ,
    t.prototype.updatePointerEl = function(e, n, r) {
        var a = Xc(e).pointerEl;
        a && n.pointer && (a.setStyle(n.pointer.style),
        r(a, {
            shape: n.pointer.shape
        }))
    }
    ,
    t.prototype.updateLabelEl = function(e, n, r, a) {
        var i = Xc(e).labelEl;
        i && (i.setStyle(n.label.style),
        r(i, {
            x: n.label.x,
            y: n.label.y
        }),
        KK(i, a))
    }
    ,
    t.prototype._renderHandle = function(e) {
        if (!(this._dragging || !this.updateHandleTransform)) {
            var n = this._axisPointerModel
              , r = this._api.getZr()
              , a = this._handle
              , i = n.getModel("handle")
              , o = n.get("status");
            if (!i.get("show") || !o || o === "hide") {
                a && r.remove(a),
                this._handle = null;
                return
            }
            var l;
            this._handle || (l = !0,
            a = this._handle = Ih(i.get("icon"), {
                cursor: "move",
                draggable: !0,
                onmousemove: function(u) {
                    ss(u.event)
                },
                onmousedown: o3(this._onHandleDragMove, this, 0, 0),
                drift: o3(this._onHandleDragMove, this),
                ondragend: o3(this._onHandleDragEnd, this)
            }),
            r.add(a)),
            UK(a, n, !1),
            a.setStyle(i.getItemStyle(null, ["color", "borderColor", "borderWidth", "opacity", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"]));
            var s = i.get("size");
            ke(s) || (s = [s, s]),
            a.scaleX = s[0] / 2,
            a.scaleY = s[1] / 2,
            Fh(this, "_doDispatchAxisPointer", i.get("throttle") || 0, "fixRate"),
            this._moveHandleToValue(e, l)
        }
    }
    ,
    t.prototype._moveHandleToValue = function(e, n) {
        GK(this._axisPointerModel, !n && this._moveAnimation, this._handle, l3(this.getHandleTransform(e, this._axisModel, this._axisPointerModel)))
    }
    ,
    t.prototype._onHandleDragMove = function(e, n) {
        var r = this._handle;
        if (!!r) {
            this._dragging = !0;
            var a = this.updateHandleTransform(l3(r), [e, n], this._axisModel, this._axisPointerModel);
            this._payloadInfo = a,
            r.stopAnimation(),
            r.attr(l3(a)),
            Xc(r).lastProp = null,
            this._doDispatchAxisPointer()
        }
    }
    ,
    t.prototype._doDispatchAxisPointer = function() {
        var e = this._handle;
        if (!!e) {
            var n = this._payloadInfo
              , r = this._axisModel;
            this._api.dispatchAction({
                type: "updateAxisPointer",
                x: n.cursorPoint[0],
                y: n.cursorPoint[1],
                tooltipOption: n.tooltipOption,
                axesInfo: [{
                    axisDim: r.axis.dim,
                    axisIndex: r.componentIndex
                }]
            })
        }
    }
    ,
    t.prototype._onHandleDragEnd = function() {
        this._dragging = !1;
        var e = this._handle;
        if (!!e) {
            var n = this._axisPointerModel.get("value");
            this._moveHandleToValue(n),
            this._api.dispatchAction({
                type: "hideTip"
            })
        }
    }
    ,
    t.prototype.clear = function(e) {
        this._lastValue = null,
        this._lastStatus = null;
        var n = e.getZr()
          , r = this._group
          , a = this._handle;
        n && r && (this._lastGraphicKey = null,
        r && n.remove(r),
        a && n.remove(a),
        this._group = null,
        this._handle = null,
        this._payloadInfo = null),
        U0(this, "_doDispatchAxisPointer")
    }
    ,
    t.prototype.doClear = function() {}
    ,
    t.prototype.buildLabel = function(e, n, r) {
        return r = r || 0,
        {
            x: e[r],
            y: e[1 - r],
            width: n[r],
            height: n[1 - r]
        }
    }
    ,
    t
}();
function GK(t, e, n, r) {
    Lce(Xc(n).lastProp, r) || (Xc(n).lastProp = r,
    e ? ln(n, r, t) : (n.stopAnimation(),
    n.attr(r)))
}
function Lce(t, e) {
    if (st(t) && st(e)) {
        var n = !0;
        return Z(e, function(r, a) {
            n = n && Lce(t[a], r)
        }),
        !!n
    } else
        return t === e
}
function KK(t, e) {
    t[e.get(["label", "show"]) ? "show" : "hide"]()
}
function l3(t) {
    return {
        x: t.x || 0,
        y: t.y || 0,
        rotation: t.rotation || 0
    }
}
function UK(t, e, n) {
    var r = e.get("z")
      , a = e.get("zlevel");
    t && t.traverse(function(i) {
        i.type !== "group" && (r != null && (i.z = r),
        a != null && (i.zlevel = a),
        i.silent = n)
    })
}
const SL = Wst;
function CL(t) {
    var e = t.get("type"), n = t.getModel(e + "Style"), r;
    return e === "line" ? (r = n.getLineStyle(),
    r.fill = null) : e === "shadow" && (r = n.getAreaStyle(),
    r.stroke = null),
    r
}
function Rce(t, e, n, r, a) {
    var i = n.get("value")
      , o = Nce(i, e.axis, e.ecModel, n.get("seriesDataIndices"), {
        precision: n.get(["label", "precision"]),
        formatter: n.get(["label", "formatter"])
    })
      , l = n.getModel("label")
      , s = ad(l.get("padding") || 0)
      , u = l.getFont()
      , c = Km(o, u)
      , f = a.position
      , d = c.width + s[1] + s[3]
      , v = c.height + s[0] + s[2]
      , h = a.align;
    h === "right" && (f[0] -= d),
    h === "center" && (f[0] -= d / 2);
    var p = a.verticalAlign;
    p === "bottom" && (f[1] -= v),
    p === "middle" && (f[1] -= v / 2),
    Gst(f, d, v, r);
    var g = l.get("backgroundColor");
    (!g || g === "auto") && (g = e.get(["axisLine", "lineStyle", "color"])),
    t.label = {
        x: f[0],
        y: f[1],
        style: In(l, {
            text: o,
            font: u,
            fill: l.getTextColor(),
            padding: s,
            backgroundColor: g
        }),
        z2: 10
    }
}
function Gst(t, e, n, r) {
    var a = r.getWidth()
      , i = r.getHeight();
    t[0] = Math.min(t[0] + e, a) - e,
    t[1] = Math.min(t[1] + n, i) - n,
    t[0] = Math.max(t[0], 0),
    t[1] = Math.max(t[1], 0)
}
function Nce(t, e, n, r, a) {
    t = e.scale.parse(t);
    var i = e.scale.getLabel({
        value: t
    }, {
        precision: a.precision
    })
      , o = a.formatter;
    if (o) {
        var l = {
            value: R5(e, {
                value: t
            }),
            axisDimension: e.dim,
            axisIndex: e.index,
            seriesData: []
        };
        Z(r, function(s) {
            var u = n.getSeriesByIndex(s.seriesIndex)
              , c = s.dataIndexInside
              , f = u && u.getDataParams(c);
            f && l.seriesData.push(f)
        }),
        Ge(o) ? i = o.replace("{value}", i) : et(o) && (i = o(l))
    }
    return i
}
function wL(t, e, n) {
    var r = si();
    return Ku(r, r, n.rotation),
    To(r, r, n.position),
    mo([t.dataToCoord(e), (n.labelOffset || 0) + (n.labelDirection || 1) * (n.labelMargin || 0)], r)
}
function $ce(t, e, n, r, a, i) {
    var o = vs.innerTextLayout(n.rotation, 0, n.labelDirection);
    n.labelMargin = a.get(["label", "margin"]),
    Rce(e, r, a, i, {
        position: wL(r.axis, t, n),
        align: o.textAlign,
        verticalAlign: o.textVerticalAlign
    })
}
function _L(t, e, n) {
    return n = n || 0,
    {
        x1: t[n],
        y1: t[1 - n],
        x2: e[n],
        y2: e[1 - n]
    }
}
function Fce(t, e, n) {
    return n = n || 0,
    {
        x: t[n],
        y: t[1 - n],
        width: e[n],
        height: e[1 - n]
    }
}
function YK(t, e, n, r, a, i) {
    return {
        cx: t,
        cy: e,
        r0: n,
        r,
        startAngle: a,
        endAngle: i,
        clockwise: !0
    }
}
var Kst = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.makeElOption = function(n, r, a, i, o) {
        var l = a.axis
          , s = l.grid
          , u = i.get("type")
          , c = qK(s, l).getOtherAxis(l).getGlobalExtent()
          , f = l.toGlobalCoord(l.dataToCoord(r, !0));
        if (u && u !== "none") {
            var d = CL(i)
              , v = Ust[u](l, f, c);
            v.style = d,
            n.graphicKey = v.type,
            n.pointer = v
        }
        var h = rk(s.model, a);
        $ce(r, n, h, a, i, o)
    }
    ,
    e.prototype.getHandleTransform = function(n, r, a) {
        var i = rk(r.axis.grid.model, r, {
            labelInside: !1
        });
        i.labelMargin = a.get(["handle", "margin"]);
        var o = wL(r.axis, n, i);
        return {
            x: o[0],
            y: o[1],
            rotation: i.rotation + (i.labelDirection < 0 ? Math.PI : 0)
        }
    }
    ,
    e.prototype.updateHandleTransform = function(n, r, a, i) {
        var o = a.axis
          , l = o.grid
          , s = o.getGlobalExtent(!0)
          , u = qK(l, o).getOtherAxis(o).getGlobalExtent()
          , c = o.dim === "x" ? 0 : 1
          , f = [n.x, n.y];
        f[c] += r[c],
        f[c] = Math.min(s[1], f[c]),
        f[c] = Math.max(s[0], f[c]);
        var d = (u[1] + u[0]) / 2
          , v = [d, d];
        v[c] = f[c];
        var h = [{
            verticalAlign: "middle"
        }, {
            align: "center"
        }];
        return {
            x: f[0],
            y: f[1],
            rotation: n.rotation,
            cursorPoint: v,
            tooltipOption: h[c]
        }
    }
    ,
    e
}(SL);
function qK(t, e) {
    var n = {};
    return n[e.dim + "AxisIndex"] = e.index,
    t.getCartesian(n)
}
var Ust = {
    line: function(t, e, n) {
        var r = _L([e, n[0]], [e, n[1]], XK(t));
        return {
            type: "Line",
            subPixelOptimize: !0,
            shape: r
        }
    },
    shadow: function(t, e, n) {
        var r = Math.max(1, t.getBandWidth())
          , a = n[1] - n[0];
        return {
            type: "Rect",
            shape: Fce([e - r / 2, n[0]], [r, a], XK(t))
        }
    }
};
function XK(t) {
    return t.dim === "x" ? 0 : 1
}
const Yst = Kst;
var qst = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "axisPointer",
    e.defaultOption = {
        show: "auto",
        z: 50,
        type: "line",
        snap: !1,
        triggerTooltip: !0,
        triggerEmphasis: !0,
        value: null,
        status: null,
        link: [],
        animation: null,
        animationDurationUpdate: 200,
        lineStyle: {
            color: "#B9BEC9",
            width: 1,
            type: "dashed"
        },
        shadowStyle: {
            color: "rgba(210,219,238,0.2)"
        },
        label: {
            show: !0,
            formatter: null,
            precision: "auto",
            margin: 3,
            color: "#fff",
            padding: [5, 7, 5, 7],
            backgroundColor: "auto",
            borderColor: null,
            borderWidth: 0,
            borderRadius: 3
        },
        handle: {
            show: !1,
            icon: "M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",
            size: 45,
            margin: 50,
            color: "#333",
            shadowBlur: 3,
            shadowColor: "#aaa",
            shadowOffsetX: 0,
            shadowOffsetY: 2,
            throttle: 40
        }
    },
    e
}(qt);
const Xst = qst;
var ts = an()
  , Zst = Z;
function Bce(t, e, n) {
    if (!nn.node) {
        var r = e.getZr();
        ts(r).records || (ts(r).records = {}),
        Qst(r, e);
        var a = ts(r).records[t] || (ts(r).records[t] = {});
        a.handler = n
    }
}
function Qst(t, e) {
    if (ts(t).initialized)
        return;
    ts(t).initialized = !0,
    n("click", St(ZK, "click")),
    n("mousemove", St(ZK, "mousemove")),
    n("globalout", eut);
    function n(r, a) {
        t.on(r, function(i) {
            var o = tut(e);
            Zst(ts(t).records, function(l) {
                l && a(l, i, o.dispatchAction)
            }),
            Jst(o.pendings, e)
        })
    }
}
function Jst(t, e) {
    var n = t.showTip.length, r = t.hideTip.length, a;
    n ? a = t.showTip[n - 1] : r && (a = t.hideTip[r - 1]),
    a && (a.dispatchAction = null,
    e.dispatchAction(a))
}
function eut(t, e, n) {
    t.handler("leave", null, n)
}
function ZK(t, e, n, r) {
    e.handler(t, n, r)
}
function tut(t) {
    var e = {
        showTip: [],
        hideTip: []
    }
      , n = function(r) {
        var a = e[r.type];
        a ? a.push(r) : (r.dispatchAction = n,
        t.dispatchAction(r))
    };
    return {
        dispatchAction: n,
        pendings: e
    }
}
function Ck(t, e) {
    if (!nn.node) {
        var n = e.getZr()
          , r = (ts(n).records || {})[t];
        r && (ts(n).records[t] = null)
    }
}
var nut = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i = r.getComponent("tooltip")
          , o = n.get("triggerOn") || i && i.get("triggerOn") || "mousemove|click";
        Bce("axisPointer", a, function(l, s, u) {
            o !== "none" && (l === "leave" || o.indexOf(l) >= 0) && u({
                type: "updateAxisPointer",
                currTrigger: l,
                x: s && s.offsetX,
                y: s && s.offsetY
            })
        })
    }
    ,
    e.prototype.remove = function(n, r) {
        Ck("axisPointer", r)
    }
    ,
    e.prototype.dispose = function(n, r) {
        Ck("axisPointer", r)
    }
    ,
    e.type = "axisPointer",
    e
}(Bn);
const rut = nut;
function Vce(t, e) {
    var n = [], r = t.seriesIndex, a;
    if (r == null || !(a = e.getSeriesByIndex(r)))
        return {
            point: []
        };
    var i = a.getData()
      , o = $f(i, t);
    if (o == null || o < 0 || ke(o))
        return {
            point: []
        };
    var l = i.getItemGraphicEl(o)
      , s = a.coordinateSystem;
    if (a.getTooltipPosition)
        n = a.getTooltipPosition(o) || [];
    else if (s && s.dataToPoint)
        if (t.isStacked) {
            var u = s.getBaseAxis()
              , c = s.getOtherAxis(u)
              , f = c.dim
              , d = u.dim
              , v = f === "x" || f === "radius" ? 1 : 0
              , h = i.mapDimension(d)
              , p = [];
            p[v] = i.get(h, o),
            p[1 - v] = i.get(i.getCalculationInfo("stackResultDimension"), o),
            n = s.dataToPoint(p) || []
        } else
            n = s.dataToPoint(i.getValues(Le(s.dimensions, function(m) {
                return i.mapDimension(m)
            }), o)) || [];
    else if (l) {
        var g = l.getBoundingRect().clone();
        g.applyTransform(l.transform),
        n = [g.x + g.width / 2, g.y + g.height / 2]
    }
    return {
        point: n,
        el: l
    }
}
var QK = an();
function aut(t, e, n) {
    var r = t.currTrigger
      , a = [t.x, t.y]
      , i = t
      , o = t.dispatchAction || qe(n.dispatchAction, n)
      , l = e.getComponent("axisPointer").coordSysAxesInfo;
    if (!!l) {
        px(a) && (a = Vce({
            seriesIndex: i.seriesIndex,
            dataIndex: i.dataIndex
        }, e).point);
        var s = px(a)
          , u = i.axesInfo
          , c = l.axesInfo
          , f = r === "leave" || px(a)
          , d = {}
          , v = {}
          , h = {
            list: [],
            map: {}
        }
          , p = {
            showPointer: St(out, v),
            showTooltip: St(lut, h)
        };
        Z(l.coordSysMap, function(m, y) {
            var b = s || m.containPoint(a);
            Z(l.coordSysAxesInfo[y], function(x, C) {
                var S = x.axis
                  , w = fut(u, x);
                if (!f && b && (!u || w)) {
                    var T = w && w.value;
                    T == null && !s && (T = S.pointToData(a)),
                    T != null && JK(x, T, p, !1, d)
                }
            })
        });
        var g = {};
        return Z(c, function(m, y) {
            var b = m.linkGroup;
            b && !v[y] && Z(b.axesInfo, function(x, C) {
                var S = v[C];
                if (x !== m && S) {
                    var w = S.value;
                    b.mapper && (w = m.axis.scale.parse(b.mapper(w, eU(x), eU(m)))),
                    g[m.key] = w
                }
            })
        }),
        Z(g, function(m, y) {
            JK(c[y], m, p, !0, d)
        }),
        sut(v, c, d),
        uut(h, a, t, o),
        cut(c, o, n),
        d
    }
}
function JK(t, e, n, r, a) {
    var i = t.axis;
    if (!(i.scale.isBlank() || !i.containData(e))) {
        if (!t.involveSeries) {
            n.showPointer(t, e);
            return
        }
        var o = iut(e, t)
          , l = o.payloadBatch
          , s = o.snapToValue;
        l[0] && a.seriesIndex == null && Me(a, l[0]),
        !r && t.snap && i.containData(s) && s != null && (e = s),
        n.showPointer(t, e, l),
        n.showTooltip(t, o, s)
    }
}
function iut(t, e) {
    var n = e.axis
      , r = n.dim
      , a = t
      , i = []
      , o = Number.MAX_VALUE
      , l = -1;
    return Z(e.seriesModels, function(s, u) {
        var c = s.getData().mapDimensionsAll(r), f, d;
        if (s.getAxisTooltipData) {
            var v = s.getAxisTooltipData(c, t, n);
            d = v.dataIndices,
            f = v.nestestValue
        } else {
            if (d = s.getData().indicesOfNearest(c[0], t, n.type === "category" ? .5 : null),
            !d.length)
                return;
            f = s.getData().get(c[0], d[0])
        }
        if (!(f == null || !isFinite(f))) {
            var h = t - f
              , p = Math.abs(h);
            p <= o && ((p < o || h >= 0 && l < 0) && (o = p,
            l = h,
            a = f,
            i.length = 0),
            Z(d, function(g) {
                i.push({
                    seriesIndex: s.seriesIndex,
                    dataIndexInside: g,
                    dataIndex: s.getData().getRawIndex(g)
                })
            }))
        }
    }),
    {
        payloadBatch: i,
        snapToValue: a
    }
}
function out(t, e, n, r) {
    t[e.key] = {
        value: n,
        payloadBatch: r
    }
}
function lut(t, e, n, r) {
    var a = n.payloadBatch
      , i = e.axis
      , o = i.model
      , l = e.axisPointerModel;
    if (!(!e.triggerTooltip || !a.length)) {
        var s = e.coordSys.model
          , u = J0(s)
          , c = t.map[u];
        c || (c = t.map[u] = {
            coordSysId: s.id,
            coordSysIndex: s.componentIndex,
            coordSysType: s.type,
            coordSysMainType: s.mainType,
            dataByAxis: []
        },
        t.list.push(c)),
        c.dataByAxis.push({
            axisDim: i.dim,
            axisIndex: o.componentIndex,
            axisType: o.type,
            axisId: o.id,
            value: r,
            valueLabelOpt: {
                precision: l.get(["label", "precision"]),
                formatter: l.get(["label", "formatter"])
            },
            seriesDataIndices: a.slice()
        })
    }
}
function sut(t, e, n) {
    var r = n.axesInfo = [];
    Z(e, function(a, i) {
        var o = a.axisPointerModel.option
          , l = t[i];
        l ? (!a.useHandle && (o.status = "show"),
        o.value = l.value,
        o.seriesDataIndices = (l.payloadBatch || []).slice()) : !a.useHandle && (o.status = "hide"),
        o.status === "show" && r.push({
            axisDim: a.axis.dim,
            axisIndex: a.axis.model.componentIndex,
            value: o.value
        })
    })
}
function uut(t, e, n, r) {
    if (px(e) || !t.list.length) {
        r({
            type: "hideTip"
        });
        return
    }
    var a = ((t.list[0].dataByAxis[0] || {}).seriesDataIndices || [])[0] || {};
    r({
        type: "showTip",
        escapeConnect: !0,
        x: e[0],
        y: e[1],
        tooltipOption: n.tooltipOption,
        position: n.position,
        dataIndexInside: a.dataIndexInside,
        dataIndex: a.dataIndex,
        seriesIndex: a.seriesIndex,
        dataByCoordSys: t.list
    })
}
function cut(t, e, n) {
    var r = n.getZr()
      , a = "axisPointerLastHighlights"
      , i = QK(r)[a] || {}
      , o = QK(r)[a] = {};
    Z(t, function(u, c) {
        var f = u.axisPointerModel.option;
        f.status === "show" && u.triggerEmphasis && Z(f.seriesDataIndices, function(d) {
            var v = d.seriesIndex + " | " + d.dataIndex;
            o[v] = d
        })
    });
    var l = []
      , s = [];
    Z(i, function(u, c) {
        !o[c] && s.push(u)
    }),
    Z(o, function(u, c) {
        !i[c] && l.push(u)
    }),
    s.length && n.dispatchAction({
        type: "downplay",
        escapeConnect: !0,
        notBlur: !0,
        batch: s
    }),
    l.length && n.dispatchAction({
        type: "highlight",
        escapeConnect: !0,
        notBlur: !0,
        batch: l
    })
}
function fut(t, e) {
    for (var n = 0; n < (t || []).length; n++) {
        var r = t[n];
        if (e.axis.dim === r.axisDim && e.axis.model.componentIndex === r.axisIndex)
            return r
    }
}
function eU(t) {
    var e = t.axis.model
      , n = {}
      , r = n.axisDim = t.axis.dim;
    return n.axisIndex = n[r + "AxisIndex"] = e.componentIndex,
    n.axisName = n[r + "AxisName"] = e.name,
    n.axisId = n[r + "AxisId"] = e.id,
    n
}
function px(t) {
    return !t || t[0] == null || isNaN(t[0]) || t[1] == null || isNaN(t[1])
}
function fy(t) {
    ld.registerAxisPointerClass("CartesianAxisPointer", Yst),
    t.registerComponentModel(Xst),
    t.registerComponentView(rut),
    t.registerPreprocessor(function(e) {
        if (e) {
            (!e.axisPointer || e.axisPointer.length === 0) && (e.axisPointer = {});
            var n = e.axisPointer.link;
            n && !ke(n) && (e.axisPointer.link = [n])
        }
    }),
    t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC, function(e, n) {
        e.getComponent("axisPointer").coordSysAxesInfo = Qet(e, n)
    }),
    t.registerAction({
        type: "updateAxisPointer",
        event: "updateAxisPointer",
        update: ":updateAxisPointer"
    }, aut)
}
function dut(t) {
    Bt(due),
    Bt(fy)
}
var vut = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.makeElOption = function(n, r, a, i, o) {
        var l = a.axis;
        l.dim === "angle" && (this.animationThreshold = Math.PI / 18);
        var s = l.polar
          , u = s.getOtherAxis(l)
          , c = u.getExtent()
          , f = l.dataToCoord(r)
          , d = i.get("type");
        if (d && d !== "none") {
            var v = CL(i)
              , h = put[d](l, s, f, c);
            h.style = v,
            n.graphicKey = h.type,
            n.pointer = h
        }
        var p = i.get(["label", "margin"])
          , g = hut(r, a, i, s, p);
        Rce(n, a, i, o, g)
    }
    ,
    e
}(SL);
function hut(t, e, n, r, a) {
    var i = e.axis
      , o = i.dataToCoord(t)
      , l = r.getAngleAxis().getExtent()[0];
    l = l / 180 * Math.PI;
    var s = r.getRadiusAxis().getExtent(), u, c, f;
    if (i.dim === "radius") {
        var d = si();
        Ku(d, d, l),
        To(d, d, [r.cx, r.cy]),
        u = mo([o, -a], d);
        var v = e.getModel("axisLabel").get("rotate") || 0
          , h = vs.innerTextLayout(l, v * Math.PI / 180, -1);
        c = h.textAlign,
        f = h.textVerticalAlign
    } else {
        var p = s[1];
        u = r.coordToPoint([p + a, o]);
        var g = r.cx
          , m = r.cy;
        c = Math.abs(u[0] - g) / p < .3 ? "center" : u[0] > g ? "left" : "right",
        f = Math.abs(u[1] - m) / p < .3 ? "middle" : u[1] > m ? "top" : "bottom"
    }
    return {
        position: u,
        align: c,
        verticalAlign: f
    }
}
var put = {
    line: function(t, e, n, r) {
        return t.dim === "angle" ? {
            type: "Line",
            shape: _L(e.coordToPoint([r[0], n]), e.coordToPoint([r[1], n]))
        } : {
            type: "Circle",
            shape: {
                cx: e.cx,
                cy: e.cy,
                r: n
            }
        }
    },
    shadow: function(t, e, n, r) {
        var a = Math.max(1, t.getBandWidth())
          , i = Math.PI / 180;
        return t.dim === "angle" ? {
            type: "Sector",
            shape: YK(e.cx, e.cy, r[0], r[1], (-n - a / 2) * i, (-n + a / 2) * i)
        } : {
            type: "Sector",
            shape: YK(e.cx, e.cy, n - a / 2, n + a / 2, 0, Math.PI * 2)
        }
    }
};
const gut = vut;
var mut = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.findAxisModel = function(n) {
        var r, a = this.ecModel;
        return a.eachComponent(n, function(i) {
            i.getCoordSysModel() === this && (r = i)
        }, this),
        r
    }
    ,
    e.type = "polar",
    e.dependencies = ["radiusAxis", "angleAxis"],
    e.defaultOption = {
        z: 0,
        center: ["50%", "50%"],
        radius: "80%"
    },
    e
}(qt);
const yut = mut;
var TL = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.getCoordSysModel = function() {
        return this.getReferringComponents("polar", mr).models[0]
    }
    ,
    e.type = "polarAxis",
    e
}(qt);
ir(TL, zh);
var but = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "angleAxis",
    e
}(TL)
  , xut = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "radiusAxis",
    e
}(TL)
  , PL = function(t) {
    ge(e, t);
    function e(n, r) {
        return t.call(this, "radius", n, r) || this
    }
    return e.prototype.pointToData = function(n, r) {
        return this.polar.pointToData(n, r)[this.dim === "radius" ? 0 : 1]
    }
    ,
    e
}(Yi);
PL.prototype.dataToRadius = Yi.prototype.dataToCoord;
PL.prototype.radiusToData = Yi.prototype.coordToData;
const Sut = PL;
var Cut = an()
  , ML = function(t) {
    ge(e, t);
    function e(n, r) {
        return t.call(this, "angle", n, r || [0, 360]) || this
    }
    return e.prototype.pointToData = function(n, r) {
        return this.polar.pointToData(n, r)[this.dim === "radius" ? 0 : 1]
    }
    ,
    e.prototype.calculateCategoryInterval = function() {
        var n = this
          , r = n.getLabelModel()
          , a = n.scale
          , i = a.getExtent()
          , o = a.count();
        if (i[1] - i[0] < 1)
            return 0;
        var l = i[0]
          , s = n.dataToCoord(l + 1) - n.dataToCoord(l)
          , u = Math.abs(s)
          , c = Km(l == null ? "" : l + "", r.getFont(), "center", "top")
          , f = Math.max(c.height, 7)
          , d = f / u;
        isNaN(d) && (d = 1 / 0);
        var v = Math.max(0, Math.floor(d))
          , h = Cut(n.model)
          , p = h.lastAutoInterval
          , g = h.lastTickCount;
        return p != null && g != null && Math.abs(p - v) <= 1 && Math.abs(g - o) <= 1 && p > v ? v = p : (h.lastTickCount = o,
        h.lastAutoInterval = v),
        v
    }
    ,
    e
}(Yi);
ML.prototype.dataToAngle = Yi.prototype.dataToCoord;
ML.prototype.angleToData = Yi.prototype.coordToData;
const wut = ML;
var zce = ["radius", "angle"]
  , _ut = function() {
    function t(e) {
        this.dimensions = zce,
        this.type = "polar",
        this.cx = 0,
        this.cy = 0,
        this._radiusAxis = new Sut,
        this._angleAxis = new wut,
        this.axisPointerEnabled = !0,
        this.name = e || "",
        this._radiusAxis.polar = this._angleAxis.polar = this
    }
    return t.prototype.containPoint = function(e) {
        var n = this.pointToCoord(e);
        return this._radiusAxis.contain(n[0]) && this._angleAxis.contain(n[1])
    }
    ,
    t.prototype.containData = function(e) {
        return this._radiusAxis.containData(e[0]) && this._angleAxis.containData(e[1])
    }
    ,
    t.prototype.getAxis = function(e) {
        var n = "_" + e + "Axis";
        return this[n]
    }
    ,
    t.prototype.getAxes = function() {
        return [this._radiusAxis, this._angleAxis]
    }
    ,
    t.prototype.getAxesByScale = function(e) {
        var n = []
          , r = this._angleAxis
          , a = this._radiusAxis;
        return r.scale.type === e && n.push(r),
        a.scale.type === e && n.push(a),
        n
    }
    ,
    t.prototype.getAngleAxis = function() {
        return this._angleAxis
    }
    ,
    t.prototype.getRadiusAxis = function() {
        return this._radiusAxis
    }
    ,
    t.prototype.getOtherAxis = function(e) {
        var n = this._angleAxis;
        return e === n ? this._radiusAxis : n
    }
    ,
    t.prototype.getBaseAxis = function() {
        return this.getAxesByScale("ordinal")[0] || this.getAxesByScale("time")[0] || this.getAngleAxis()
    }
    ,
    t.prototype.getTooltipAxes = function(e) {
        var n = e != null && e !== "auto" ? this.getAxis(e) : this.getBaseAxis();
        return {
            baseAxes: [n],
            otherAxes: [this.getOtherAxis(n)]
        }
    }
    ,
    t.prototype.dataToPoint = function(e, n) {
        return this.coordToPoint([this._radiusAxis.dataToRadius(e[0], n), this._angleAxis.dataToAngle(e[1], n)])
    }
    ,
    t.prototype.pointToData = function(e, n) {
        var r = this.pointToCoord(e);
        return [this._radiusAxis.radiusToData(r[0], n), this._angleAxis.angleToData(r[1], n)]
    }
    ,
    t.prototype.pointToCoord = function(e) {
        var n = e[0] - this.cx
          , r = e[1] - this.cy
          , a = this.getAngleAxis()
          , i = a.getExtent()
          , o = Math.min(i[0], i[1])
          , l = Math.max(i[0], i[1]);
        a.inverse ? o = l - 360 : l = o + 360;
        var s = Math.sqrt(n * n + r * r);
        n /= s,
        r /= s;
        for (var u = Math.atan2(-r, n) / Math.PI * 180, c = u < o ? 1 : -1; u < o || u > l; )
            u += c * 360;
        return [s, u]
    }
    ,
    t.prototype.coordToPoint = function(e) {
        var n = e[0]
          , r = e[1] / 180 * Math.PI
          , a = Math.cos(r) * n + this.cx
          , i = -Math.sin(r) * n + this.cy;
        return [a, i]
    }
    ,
    t.prototype.getArea = function() {
        var e = this.getAngleAxis()
          , n = this.getRadiusAxis()
          , r = n.getExtent().slice();
        r[0] > r[1] && r.reverse();
        var a = e.getExtent()
          , i = Math.PI / 180;
        return {
            cx: this.cx,
            cy: this.cy,
            r0: r[0],
            r: r[1],
            startAngle: -a[0] * i,
            endAngle: -a[1] * i,
            clockwise: e.inverse,
            contain: function(o, l) {
                var s = o - this.cx
                  , u = l - this.cy
                  , c = s * s + u * u - 1e-4
                  , f = this.r
                  , d = this.r0;
                return c <= f * f && c >= d * d
            }
        }
    }
    ,
    t.prototype.convertToPixel = function(e, n, r) {
        var a = tU(n);
        return a === this ? this.dataToPoint(r) : null
    }
    ,
    t.prototype.convertFromPixel = function(e, n, r) {
        var a = tU(n);
        return a === this ? this.pointToData(r) : null
    }
    ,
    t
}();
function tU(t) {
    var e = t.seriesModel
      , n = t.polarModel;
    return n && n.coordinateSystem || e && e.coordinateSystem
}
const Tut = _ut;
function Put(t, e, n) {
    var r = e.get("center")
      , a = n.getWidth()
      , i = n.getHeight();
    t.cx = He(r[0], a),
    t.cy = He(r[1], i);
    var o = t.getRadiusAxis()
      , l = Math.min(a, i) / 2
      , s = e.get("radius");
    s == null ? s = [0, "100%"] : ke(s) || (s = [0, s]);
    var u = [He(s[0], l), He(s[1], l)];
    o.inverse ? o.setExtent(u[1], u[0]) : o.setExtent(u[0], u[1])
}
function Mut(t, e) {
    var n = this
      , r = n.getAngleAxis()
      , a = n.getRadiusAxis();
    if (r.scale.setExtent(1 / 0, -1 / 0),
    a.scale.setExtent(1 / 0, -1 / 0),
    t.eachSeries(function(l) {
        if (l.coordinateSystem === n) {
            var s = l.getData();
            Z(KS(s, "radius"), function(u) {
                a.scale.unionExtentFromData(s, u)
            }),
            Z(KS(s, "angle"), function(u) {
                r.scale.unionExtentFromData(s, u)
            })
        }
    }),
    zf(r.scale, r.model),
    zf(a.scale, a.model),
    r.type === "category" && !r.onBand) {
        var i = r.getExtent()
          , o = 360 / r.scale.count();
        r.inverse ? i[1] += o : i[1] -= o,
        r.setExtent(i[0], i[1])
    }
}
function Aut(t) {
    return t.mainType === "angleAxis"
}
function nU(t, e) {
    if (t.type = e.get("type"),
    t.scale = ny(e),
    t.onBand = e.get("boundaryGap") && t.type === "category",
    t.inverse = e.get("inverse"),
    Aut(e)) {
        t.inverse = t.inverse !== e.get("clockwise");
        var n = e.get("startAngle");
        t.setExtent(n, n + (t.inverse ? -360 : 360))
    }
    e.axis = t,
    t.model = e
}
var Iut = {
    dimensions: zce,
    create: function(t, e) {
        var n = [];
        return t.eachComponent("polar", function(r, a) {
            var i = new Tut(a + "");
            i.update = Mut;
            var o = i.getRadiusAxis()
              , l = i.getAngleAxis()
              , s = r.findAxisModel("radiusAxis")
              , u = r.findAxisModel("angleAxis");
            nU(o, s),
            nU(l, u),
            Put(i, r, e),
            n.push(i),
            r.coordinateSystem = i,
            i.model = r
        }),
        t.eachSeries(function(r) {
            if (r.get("coordinateSystem") === "polar") {
                var a = r.getReferringComponents("polar", mr).models[0];
                r.coordinateSystem = a.coordinateSystem
            }
        }),
        n
    }
};
const kut = Iut;
var Out = ["axisLine", "axisLabel", "axisTick", "minorTick", "splitLine", "minorSplitLine", "splitArea"];
function Z1(t, e, n) {
    e[1] > e[0] && (e = e.slice().reverse());
    var r = t.coordToPoint([e[0], n])
      , a = t.coordToPoint([e[1], n]);
    return {
        x1: r[0],
        y1: r[1],
        x2: a[0],
        y2: a[1]
    }
}
function Q1(t) {
    var e = t.getRadiusAxis();
    return e.inverse ? 0 : 1
}
function rU(t) {
    var e = t[0]
      , n = t[t.length - 1];
    e && n && Math.abs(Math.abs(e.coord - n.coord) - 360) < 1e-4 && t.pop()
}
var Dut = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.axisPointerClass = "PolarAxisPointer",
        n
    }
    return e.prototype.render = function(n, r) {
        if (this.group.removeAll(),
        !!n.get("show")) {
            var a = n.axis
              , i = a.polar
              , o = i.getRadiusAxis().getExtent()
              , l = a.getTicksCoords()
              , s = a.getMinorTicksCoords()
              , u = Le(a.getViewLabels(), function(c) {
                c = ut(c);
                var f = a.scale
                  , d = f.type === "ordinal" ? f.getRawOrdinalNumber(c.tickValue) : c.tickValue;
                return c.coord = a.dataToCoord(d),
                c
            });
            rU(u),
            rU(l),
            Z(Out, function(c) {
                n.get([c, "show"]) && (!a.scale.isBlank() || c === "axisLine") && Eut[c](this.group, n, i, l, s, o, u)
            }, this)
        }
    }
    ,
    e.type = "angleAxis",
    e
}(ld)
  , Eut = {
    axisLine: function(t, e, n, r, a, i) {
        var o = e.getModel(["axisLine", "lineStyle"]), l = Q1(n), s = l ? 0 : 1, u;
        i[s] === 0 ? u = new Mo({
            shape: {
                cx: n.cx,
                cy: n.cy,
                r: i[l]
            },
            style: o.getLineStyle(),
            z2: 1,
            silent: !0
        }) : u = new qm({
            shape: {
                cx: n.cx,
                cy: n.cy,
                r: i[l],
                r0: i[s]
            },
            style: o.getLineStyle(),
            z2: 1,
            silent: !0
        }),
        u.style.fill = null,
        t.add(u)
    },
    axisTick: function(t, e, n, r, a, i) {
        var o = e.getModel("axisTick")
          , l = (o.get("inside") ? -1 : 1) * o.get("length")
          , s = i[Q1(n)]
          , u = Le(r, function(c) {
            return new Or({
                shape: Z1(n, [s, s + l], c.coord)
            })
        });
        t.add(ti(u, {
            style: ot(o.getModel("lineStyle").getLineStyle(), {
                stroke: e.get(["axisLine", "lineStyle", "color"])
            })
        }))
    },
    minorTick: function(t, e, n, r, a, i) {
        if (!!a.length) {
            for (var o = e.getModel("axisTick"), l = e.getModel("minorTick"), s = (o.get("inside") ? -1 : 1) * l.get("length"), u = i[Q1(n)], c = [], f = 0; f < a.length; f++)
                for (var d = 0; d < a[f].length; d++)
                    c.push(new Or({
                        shape: Z1(n, [u, u + s], a[f][d].coord)
                    }));
            t.add(ti(c, {
                style: ot(l.getModel("lineStyle").getLineStyle(), ot(o.getLineStyle(), {
                    stroke: e.get(["axisLine", "lineStyle", "color"])
                }))
            }))
        }
    },
    axisLabel: function(t, e, n, r, a, i, o) {
        var l = e.getCategories(!0)
          , s = e.getModel("axisLabel")
          , u = s.get("margin")
          , c = e.get("triggerEvent");
        Z(o, function(f, d) {
            var v = s
              , h = f.tickValue
              , p = i[Q1(n)]
              , g = n.coordToPoint([p + u, f.coord])
              , m = n.cx
              , y = n.cy
              , b = Math.abs(g[0] - m) / p < .3 ? "center" : g[0] > m ? "left" : "right"
              , x = Math.abs(g[1] - y) / p < .3 ? "middle" : g[1] > y ? "top" : "bottom";
            if (l && l[h]) {
                var C = l[h];
                st(C) && C.textStyle && (v = new wn(C.textStyle,s,s.ecModel))
            }
            var S = new Jt({
                silent: vs.isLabelSilent(e),
                style: In(v, {
                    x: g[0],
                    y: g[1],
                    fill: v.getTextColor() || e.get(["axisLine", "lineStyle", "color"]),
                    text: f.formattedLabel,
                    align: b,
                    verticalAlign: x
                })
            });
            if (t.add(S),
            c) {
                var w = vs.makeAxisEventDataBase(e);
                w.targetType = "axisLabel",
                w.value = f.rawLabel,
                Ct(S).eventData = w
            }
        }, this)
    },
    splitLine: function(t, e, n, r, a, i) {
        var o = e.getModel("splitLine")
          , l = o.getModel("lineStyle")
          , s = l.get("color")
          , u = 0;
        s = s instanceof Array ? s : [s];
        for (var c = [], f = 0; f < r.length; f++) {
            var d = u++ % s.length;
            c[d] = c[d] || [],
            c[d].push(new Or({
                shape: Z1(n, i, r[f].coord)
            }))
        }
        for (var f = 0; f < c.length; f++)
            t.add(ti(c[f], {
                style: ot({
                    stroke: s[f % s.length]
                }, l.getLineStyle()),
                silent: !0,
                z: e.get("z")
            }))
    },
    minorSplitLine: function(t, e, n, r, a, i) {
        if (!!a.length) {
            for (var o = e.getModel("minorSplitLine"), l = o.getModel("lineStyle"), s = [], u = 0; u < a.length; u++)
                for (var c = 0; c < a[u].length; c++)
                    s.push(new Or({
                        shape: Z1(n, i, a[u][c].coord)
                    }));
            t.add(ti(s, {
                style: l.getLineStyle(),
                silent: !0,
                z: e.get("z")
            }))
        }
    },
    splitArea: function(t, e, n, r, a, i) {
        if (!!r.length) {
            var o = e.getModel("splitArea")
              , l = o.getModel("areaStyle")
              , s = l.get("color")
              , u = 0;
            s = s instanceof Array ? s : [s];
            for (var c = [], f = Math.PI / 180, d = -r[0].coord * f, v = Math.min(i[0], i[1]), h = Math.max(i[0], i[1]), p = e.get("clockwise"), g = 1, m = r.length; g <= m; g++) {
                var y = g === m ? r[0].coord : r[g].coord
                  , b = u++ % s.length;
                c[b] = c[b] || [],
                c[b].push(new Pa({
                    shape: {
                        cx: n.cx,
                        cy: n.cy,
                        r0: v,
                        r: h,
                        startAngle: d,
                        endAngle: -y * f,
                        clockwise: p
                    },
                    silent: !0
                })),
                d = -y * f
            }
            for (var g = 0; g < c.length; g++)
                t.add(ti(c[g], {
                    style: ot({
                        fill: s[g % s.length]
                    }, l.getAreaStyle()),
                    silent: !0
                }))
        }
    }
};
const Lut = Dut;
var Rut = ["axisLine", "axisTickLabel", "axisName"]
  , Nut = ["splitLine", "splitArea", "minorSplitLine"]
  , $ut = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.axisPointerClass = "PolarAxisPointer",
        n
    }
    return e.prototype.render = function(n, r) {
        if (this.group.removeAll(),
        !!n.get("show")) {
            var a = this._axisGroup
              , i = this._axisGroup = new mt;
            this.group.add(i);
            var o = n.axis
              , l = o.polar
              , s = l.getAngleAxis()
              , u = o.getTicksCoords()
              , c = o.getMinorTicksCoords()
              , f = s.getExtent()[0]
              , d = o.getExtent()
              , v = But(l, n, f)
              , h = new vs(n,v);
            Z(Rut, h.add, h),
            i.add(h.getGroup()),
            Qm(a, i, n),
            Z(Nut, function(p) {
                n.get([p, "show"]) && !o.scale.isBlank() && Fut[p](this.group, n, l, f, d, u, c)
            }, this)
        }
    }
    ,
    e.type = "radiusAxis",
    e
}(ld)
  , Fut = {
    splitLine: function(t, e, n, r, a, i) {
        var o = e.getModel("splitLine")
          , l = o.getModel("lineStyle")
          , s = l.get("color")
          , u = 0;
        s = s instanceof Array ? s : [s];
        for (var c = [], f = 0; f < i.length; f++) {
            var d = u++ % s.length;
            c[d] = c[d] || [],
            c[d].push(new Mo({
                shape: {
                    cx: n.cx,
                    cy: n.cy,
                    r: Math.max(i[f].coord, 0)
                }
            }))
        }
        for (var f = 0; f < c.length; f++)
            t.add(ti(c[f], {
                style: ot({
                    stroke: s[f % s.length],
                    fill: null
                }, l.getLineStyle()),
                silent: !0
            }))
    },
    minorSplitLine: function(t, e, n, r, a, i, o) {
        if (!!o.length) {
            for (var l = e.getModel("minorSplitLine"), s = l.getModel("lineStyle"), u = [], c = 0; c < o.length; c++)
                for (var f = 0; f < o[c].length; f++)
                    u.push(new Mo({
                        shape: {
                            cx: n.cx,
                            cy: n.cy,
                            r: o[c][f].coord
                        }
                    }));
            t.add(ti(u, {
                style: ot({
                    fill: null
                }, s.getLineStyle()),
                silent: !0
            }))
        }
    },
    splitArea: function(t, e, n, r, a, i) {
        if (!!i.length) {
            var o = e.getModel("splitArea")
              , l = o.getModel("areaStyle")
              , s = l.get("color")
              , u = 0;
            s = s instanceof Array ? s : [s];
            for (var c = [], f = i[0].coord, d = 1; d < i.length; d++) {
                var v = u++ % s.length;
                c[v] = c[v] || [],
                c[v].push(new Pa({
                    shape: {
                        cx: n.cx,
                        cy: n.cy,
                        r0: f,
                        r: i[d].coord,
                        startAngle: 0,
                        endAngle: Math.PI * 2
                    },
                    silent: !0
                })),
                f = i[d].coord
            }
            for (var d = 0; d < c.length; d++)
                t.add(ti(c[d], {
                    style: ot({
                        fill: s[d % s.length]
                    }, l.getAreaStyle()),
                    silent: !0
                }))
        }
    }
};
function But(t, e, n) {
    return {
        position: [t.cx, t.cy],
        rotation: n / 180 * Math.PI,
        labelDirection: -1,
        tickDirection: -1,
        nameDirection: 1,
        labelRotate: e.getModel("axisLabel").get("rotate"),
        z2: 1
    }
}
const Vut = $ut;
function Hce(t) {
    return t.get("stack") || "__ec_stack_" + t.seriesIndex
}
function jce(t, e) {
    return e.dim + t.model.componentIndex
}
function zut(t, e, n) {
    var r = {}
      , a = Hut(pn(e.getSeriesByType(t), function(i) {
        return !e.isSeriesFiltered(i) && i.coordinateSystem && i.coordinateSystem.type === "polar"
    }));
    e.eachSeriesByType(t, function(i) {
        if (i.coordinateSystem.type === "polar") {
            var o = i.getData()
              , l = i.coordinateSystem
              , s = l.getBaseAxis()
              , u = jce(l, s)
              , c = Hce(i)
              , f = a[u][c]
              , d = f.offset
              , v = f.width
              , h = l.getOtherAxis(s)
              , p = i.coordinateSystem.cx
              , g = i.coordinateSystem.cy
              , m = i.get("barMinHeight") || 0
              , y = i.get("barMinAngle") || 0;
            r[c] = r[c] || [];
            for (var b = o.mapDimension(h.dim), x = o.mapDimension(s.dim), C = ds(o, b), S = s.dim !== "radius" || !i.get("roundCap", !0), w = h.dataToCoord(0), T = 0, P = o.count(); T < P; T++) {
                var M = o.get(b, T)
                  , A = o.get(x, T)
                  , O = M >= 0 ? "p" : "n"
                  , k = w;
                C && (r[c][A] || (r[c][A] = {
                    p: w,
                    n: w
                }),
                k = r[c][A][O]);
                var D = void 0
                  , E = void 0
                  , L = void 0
                  , N = void 0;
                if (h.dim === "radius") {
                    var R = h.dataToCoord(M) - w
                      , $ = s.dataToCoord(A);
                    Math.abs(R) < m && (R = (R < 0 ? -1 : 1) * m),
                    D = k,
                    E = k + R,
                    L = $ - d,
                    N = L - v,
                    C && (r[c][A][O] = E)
                } else {
                    var W = h.dataToCoord(M, S) - w
                      , B = s.dataToCoord(A);
                    Math.abs(W) < y && (W = (W < 0 ? -1 : 1) * y),
                    D = B + d,
                    E = D + v,
                    L = k,
                    N = k + W,
                    C && (r[c][A][O] = N)
                }
                o.setItemLayout(T, {
                    cx: p,
                    cy: g,
                    r0: D,
                    r: E,
                    startAngle: -L * Math.PI / 180,
                    endAngle: -N * Math.PI / 180,
                    clockwise: L >= N
                })
            }
        }
    })
}
function Hut(t) {
    var e = {};
    Z(t, function(r, a) {
        var i = r.getData()
          , o = r.coordinateSystem
          , l = o.getBaseAxis()
          , s = jce(o, l)
          , u = l.getExtent()
          , c = l.type === "category" ? l.getBandWidth() : Math.abs(u[1] - u[0]) / i.count()
          , f = e[s] || {
            bandWidth: c,
            remainedWidth: c,
            autoWidthCount: 0,
            categoryGap: "20%",
            gap: "30%",
            stacks: {}
        }
          , d = f.stacks;
        e[s] = f;
        var v = Hce(r);
        d[v] || f.autoWidthCount++,
        d[v] = d[v] || {
            width: 0,
            maxWidth: 0
        };
        var h = He(r.get("barWidth"), c)
          , p = He(r.get("barMaxWidth"), c)
          , g = r.get("barGap")
          , m = r.get("barCategoryGap");
        h && !d[v].width && (h = Math.min(f.remainedWidth, h),
        d[v].width = h,
        f.remainedWidth -= h),
        p && (d[v].maxWidth = p),
        g != null && (f.gap = g),
        m != null && (f.categoryGap = m)
    });
    var n = {};
    return Z(e, function(r, a) {
        n[a] = {};
        var i = r.stacks
          , o = r.bandWidth
          , l = He(r.categoryGap, o)
          , s = He(r.gap, 1)
          , u = r.remainedWidth
          , c = r.autoWidthCount
          , f = (u - l) / (c + (c - 1) * s);
        f = Math.max(f, 0),
        Z(i, function(p, g) {
            var m = p.maxWidth;
            m && m < f && (m = Math.min(m, u),
            p.width && (m = Math.min(m, p.width)),
            u -= m,
            p.width = m,
            c--)
        }),
        f = (u - l) / (c + (c - 1) * s),
        f = Math.max(f, 0);
        var d = 0, v;
        Z(i, function(p, g) {
            p.width || (p.width = f),
            v = p,
            d += p.width * (1 + s)
        }),
        v && (d -= v.width * s);
        var h = -d / 2;
        Z(i, function(p, g) {
            n[a][g] = n[a][g] || {
                offset: h,
                width: p.width
            },
            h += p.width * (1 + s)
        })
    }),
    n
}
var jut = {
    startAngle: 90,
    clockwise: !0,
    splitNumber: 12,
    axisLabel: {
        rotate: 0
    }
}
  , Wut = {
    splitNumber: 5
}
  , Gut = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "polar",
    e
}(Bn);
function Kut(t) {
    Bt(fy),
    ld.registerAxisPointerClass("PolarAxisPointer", gut),
    t.registerCoordinateSystem("polar", kut),
    t.registerComponentModel(yut),
    t.registerComponentView(Gut),
    th(t, "angle", but, jut),
    th(t, "radius", xut, Wut),
    t.registerComponentView(Lut),
    t.registerComponentView(Vut),
    t.registerLayout(St(zut, "bar"))
}
function wk(t, e) {
    e = e || {};
    var n = t.coordinateSystem
      , r = t.axis
      , a = {}
      , i = r.position
      , o = r.orient
      , l = n.getRect()
      , s = [l.x, l.x + l.width, l.y, l.y + l.height]
      , u = {
        horizontal: {
            top: s[2],
            bottom: s[3]
        },
        vertical: {
            left: s[0],
            right: s[1]
        }
    };
    a.position = [o === "vertical" ? u.vertical[i] : s[0], o === "horizontal" ? u.horizontal[i] : s[3]];
    var c = {
        horizontal: 0,
        vertical: 1
    };
    a.rotation = Math.PI / 2 * c[o];
    var f = {
        top: -1,
        bottom: 1,
        right: 1,
        left: -1
    };
    a.labelDirection = a.tickDirection = a.nameDirection = f[i],
    t.get(["axisTick", "inside"]) && (a.tickDirection = -a.tickDirection),
    kr(e.labelInside, t.get(["axisLabel", "inside"])) && (a.labelDirection = -a.labelDirection);
    var d = e.rotate;
    return d == null && (d = t.get(["axisLabel", "rotate"])),
    a.labelRotation = i === "top" ? -d : d,
    a.z2 = 1,
    a
}
var Uut = ["axisLine", "axisTickLabel", "axisName"]
  , Yut = ["splitArea", "splitLine"]
  , qut = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.axisPointerClass = "SingleAxisPointer",
        n
    }
    return e.prototype.render = function(n, r, a, i) {
        var o = this.group;
        o.removeAll();
        var l = this._axisGroup;
        this._axisGroup = new mt;
        var s = wk(n)
          , u = new vs(n,s);
        Z(Uut, u.add, u),
        o.add(this._axisGroup),
        o.add(u.getGroup()),
        Z(Yut, function(c) {
            n.get([c, "show"]) && Xut[c](this, this.group, this._axisGroup, n)
        }, this),
        Qm(l, this._axisGroup, n),
        t.prototype.render.call(this, n, r, a, i)
    }
    ,
    e.prototype.remove = function() {
        uue(this)
    }
    ,
    e.type = "singleAxis",
    e
}(ld)
  , Xut = {
    splitLine: function(t, e, n, r) {
        var a = r.axis;
        if (!a.scale.isBlank()) {
            var i = r.getModel("splitLine")
              , o = i.getModel("lineStyle")
              , l = o.get("color");
            l = l instanceof Array ? l : [l];
            for (var s = o.get("width"), u = r.coordinateSystem.getRect(), c = a.isHorizontal(), f = [], d = 0, v = a.getTicksCoords({
                tickModel: i
            }), h = [], p = [], g = 0; g < v.length; ++g) {
                var m = a.toGlobalCoord(v[g].coord);
                c ? (h[0] = m,
                h[1] = u.y,
                p[0] = m,
                p[1] = u.y + u.height) : (h[0] = u.x,
                h[1] = m,
                p[0] = u.x + u.width,
                p[1] = m);
                var y = new Or({
                    shape: {
                        x1: h[0],
                        y1: h[1],
                        x2: p[0],
                        y2: p[1]
                    },
                    silent: !0
                });
                Zv(y.shape, s);
                var b = d++ % l.length;
                f[b] = f[b] || [],
                f[b].push(y)
            }
            for (var x = o.getLineStyle(["color"]), g = 0; g < f.length; ++g)
                e.add(ti(f[g], {
                    style: ot({
                        stroke: l[g % l.length]
                    }, x),
                    silent: !0
                }))
        }
    },
    splitArea: function(t, e, n, r) {
        sue(t, n, r, r)
    }
};
const Zut = qut;
var Wce = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.getCoordSysModel = function() {
        return this
    }
    ,
    e.type = "singleAxis",
    e.layoutMode = "box",
    e.defaultOption = {
        left: "5%",
        top: "5%",
        right: "5%",
        bottom: "5%",
        type: "value",
        position: "bottom",
        orient: "horizontal",
        axisLine: {
            show: !0,
            lineStyle: {
                width: 1,
                type: "solid"
            }
        },
        tooltip: {
            show: !0
        },
        axisTick: {
            show: !0,
            length: 6,
            lineStyle: {
                width: 1
            }
        },
        axisLabel: {
            show: !0,
            interval: "auto"
        },
        splitLine: {
            show: !0,
            lineStyle: {
                type: "dashed",
                opacity: .2
            }
        }
    },
    e
}(qt);
ir(Wce, zh.prototype);
const s3 = Wce;
var Qut = function(t) {
    ge(e, t);
    function e(n, r, a, i, o) {
        var l = t.call(this, n, r, a) || this;
        return l.type = i || "value",
        l.position = o || "bottom",
        l
    }
    return e.prototype.isHorizontal = function() {
        var n = this.position;
        return n === "top" || n === "bottom"
    }
    ,
    e.prototype.pointToData = function(n, r) {
        return this.coordinateSystem.pointToData(n)[0]
    }
    ,
    e
}(Yi);
const Jut = Qut;
var Gce = ["single"]
  , ect = function() {
    function t(e, n, r) {
        this.type = "single",
        this.dimension = "single",
        this.dimensions = Gce,
        this.axisPointerEnabled = !0,
        this.model = e,
        this._init(e, n, r)
    }
    return t.prototype._init = function(e, n, r) {
        var a = this.dimension
          , i = new Jut(a,ny(e),[0, 0],e.get("type"),e.get("position"))
          , o = i.type === "category";
        i.onBand = o && e.get("boundaryGap"),
        i.inverse = e.get("inverse"),
        i.orient = e.get("orient"),
        e.axis = i,
        i.model = e,
        i.coordinateSystem = this,
        this._axis = i
    }
    ,
    t.prototype.update = function(e, n) {
        e.eachSeries(function(r) {
            if (r.coordinateSystem === this) {
                var a = r.getData();
                Z(a.mapDimensionsAll(this.dimension), function(i) {
                    this._axis.scale.unionExtentFromData(a, i)
                }, this),
                zf(this._axis.scale, this._axis.model)
            }
        }, this)
    }
    ,
    t.prototype.resize = function(e, n) {
        this._rect = xr({
            left: e.get("left"),
            top: e.get("top"),
            right: e.get("right"),
            bottom: e.get("bottom"),
            width: e.get("width"),
            height: e.get("height")
        }, {
            width: n.getWidth(),
            height: n.getHeight()
        }),
        this._adjustAxis()
    }
    ,
    t.prototype.getRect = function() {
        return this._rect
    }
    ,
    t.prototype._adjustAxis = function() {
        var e = this._rect
          , n = this._axis
          , r = n.isHorizontal()
          , a = r ? [0, e.width] : [0, e.height]
          , i = n.inverse ? 1 : 0;
        n.setExtent(a[i], a[1 - i]),
        this._updateAxisTransform(n, r ? e.x : e.y)
    }
    ,
    t.prototype._updateAxisTransform = function(e, n) {
        var r = e.getExtent()
          , a = r[0] + r[1]
          , i = e.isHorizontal();
        e.toGlobalCoord = i ? function(o) {
            return o + n
        }
        : function(o) {
            return a - o + n
        }
        ,
        e.toLocalCoord = i ? function(o) {
            return o - n
        }
        : function(o) {
            return a - o + n
        }
    }
    ,
    t.prototype.getAxis = function() {
        return this._axis
    }
    ,
    t.prototype.getBaseAxis = function() {
        return this._axis
    }
    ,
    t.prototype.getAxes = function() {
        return [this._axis]
    }
    ,
    t.prototype.getTooltipAxes = function() {
        return {
            baseAxes: [this.getAxis()],
            otherAxes: []
        }
    }
    ,
    t.prototype.containPoint = function(e) {
        var n = this.getRect()
          , r = this.getAxis()
          , a = r.orient;
        return a === "horizontal" ? r.contain(r.toLocalCoord(e[0])) && e[1] >= n.y && e[1] <= n.y + n.height : r.contain(r.toLocalCoord(e[1])) && e[0] >= n.y && e[0] <= n.y + n.height
    }
    ,
    t.prototype.pointToData = function(e) {
        var n = this.getAxis();
        return [n.coordToData(n.toLocalCoord(e[n.orient === "horizontal" ? 0 : 1]))]
    }
    ,
    t.prototype.dataToPoint = function(e) {
        var n = this.getAxis()
          , r = this.getRect()
          , a = []
          , i = n.orient === "horizontal" ? 0 : 1;
        return e instanceof Array && (e = e[0]),
        a[i] = n.toGlobalCoord(n.dataToCoord(+e)),
        a[1 - i] = i === 0 ? r.y + r.height / 2 : r.x + r.width / 2,
        a
    }
    ,
    t.prototype.convertToPixel = function(e, n, r) {
        var a = aU(n);
        return a === this ? this.dataToPoint(r) : null
    }
    ,
    t.prototype.convertFromPixel = function(e, n, r) {
        var a = aU(n);
        return a === this ? this.pointToData(r) : null
    }
    ,
    t
}();
function aU(t) {
    var e = t.seriesModel
      , n = t.singleAxisModel;
    return n && n.coordinateSystem || e && e.coordinateSystem
}
function tct(t, e) {
    var n = [];
    return t.eachComponent("singleAxis", function(r, a) {
        var i = new ect(r,t,e);
        i.name = "single_" + a,
        i.resize(r, e),
        r.coordinateSystem = i,
        n.push(i)
    }),
    t.eachSeries(function(r) {
        if (r.get("coordinateSystem") === "singleAxis") {
            var a = r.getReferringComponents("singleAxis", mr).models[0];
            r.coordinateSystem = a && a.coordinateSystem
        }
    }),
    n
}
var nct = {
    create: tct,
    dimensions: Gce
};
const rct = nct;
var iU = ["x", "y"]
  , act = ["width", "height"]
  , ict = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.makeElOption = function(n, r, a, i, o) {
        var l = a.axis
          , s = l.coordinateSystem
          , u = u3(s, 1 - lC(l))
          , c = s.dataToPoint(r)[0]
          , f = i.get("type");
        if (f && f !== "none") {
            var d = CL(i)
              , v = oct[f](l, c, u);
            v.style = d,
            n.graphicKey = v.type,
            n.pointer = v
        }
        var h = wk(a);
        $ce(r, n, h, a, i, o)
    }
    ,
    e.prototype.getHandleTransform = function(n, r, a) {
        var i = wk(r, {
            labelInside: !1
        });
        i.labelMargin = a.get(["handle", "margin"]);
        var o = wL(r.axis, n, i);
        return {
            x: o[0],
            y: o[1],
            rotation: i.rotation + (i.labelDirection < 0 ? Math.PI : 0)
        }
    }
    ,
    e.prototype.updateHandleTransform = function(n, r, a, i) {
        var o = a.axis
          , l = o.coordinateSystem
          , s = lC(o)
          , u = u3(l, s)
          , c = [n.x, n.y];
        c[s] += r[s],
        c[s] = Math.min(u[1], c[s]),
        c[s] = Math.max(u[0], c[s]);
        var f = u3(l, 1 - s)
          , d = (f[1] + f[0]) / 2
          , v = [d, d];
        return v[s] = c[s],
        {
            x: c[0],
            y: c[1],
            rotation: n.rotation,
            cursorPoint: v,
            tooltipOption: {
                verticalAlign: "middle"
            }
        }
    }
    ,
    e
}(SL)
  , oct = {
    line: function(t, e, n) {
        var r = _L([e, n[0]], [e, n[1]], lC(t));
        return {
            type: "Line",
            subPixelOptimize: !0,
            shape: r
        }
    },
    shadow: function(t, e, n) {
        var r = t.getBandWidth()
          , a = n[1] - n[0];
        return {
            type: "Rect",
            shape: Fce([e - r / 2, n[0]], [r, a], lC(t))
        }
    }
};
function lC(t) {
    return t.isHorizontal() ? 0 : 1
}
function u3(t, e) {
    var n = t.getRect();
    return [n[iU[e]], n[iU[e]] + n[act[e]]]
}
const lct = ict;
var sct = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "single",
    e
}(Bn);
function uct(t) {
    Bt(fy),
    ld.registerAxisPointerClass("SingleAxisPointer", lct),
    t.registerComponentView(sct),
    t.registerComponentView(Zut),
    t.registerComponentModel(s3),
    th(t, "single", s3, s3.defaultOption),
    t.registerCoordinateSystem("single", rct)
}
var cct = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function(n, r, a) {
        var i = Eh(n);
        t.prototype.init.apply(this, arguments),
        oU(n, i)
    }
    ,
    e.prototype.mergeOption = function(n) {
        t.prototype.mergeOption.apply(this, arguments),
        oU(this.option, n)
    }
    ,
    e.prototype.getCellSize = function() {
        return this.option.cellSize
    }
    ,
    e.type = "calendar",
    e.defaultOption = {
        z: 2,
        left: 80,
        top: 60,
        cellSize: 20,
        orient: "horizontal",
        splitLine: {
            show: !0,
            lineStyle: {
                color: "#000",
                width: 1,
                type: "solid"
            }
        },
        itemStyle: {
            color: "#fff",
            borderWidth: 1,
            borderColor: "#ccc"
        },
        dayLabel: {
            show: !0,
            firstDay: 0,
            position: "start",
            margin: "50%",
            color: "#000"
        },
        monthLabel: {
            show: !0,
            position: "start",
            margin: 5,
            align: "center",
            formatter: null,
            color: "#000"
        },
        yearLabel: {
            show: !0,
            position: null,
            margin: 30,
            formatter: null,
            color: "#ccc",
            fontFamily: "sans-serif",
            fontWeight: "bolder",
            fontSize: 20
        }
    },
    e
}(qt);
function oU(t, e) {
    var n = t.cellSize, r;
    ke(n) ? r = n : r = t.cellSize = [n, n],
    r.length === 1 && (r[1] = r[0]);
    var a = Le([0, 1], function(i) {
        return JUe(e, i) && (r[i] = "auto"),
        r[i] != null && r[i] !== "auto"
    });
    Eu(t, e, {
        type: "box",
        ignoreSize: a
    })
}
const fct = cct;
var dct = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        var i = this.group;
        i.removeAll();
        var o = n.coordinateSystem
          , l = o.getRangeInfo()
          , s = o.getOrient()
          , u = r.getLocaleModel();
        this._renderDayRect(n, l, i),
        this._renderLines(n, l, s, i),
        this._renderYearText(n, l, s, i),
        this._renderMonthText(n, u, s, i),
        this._renderWeekText(n, u, l, s, i)
    }
    ,
    e.prototype._renderDayRect = function(n, r, a) {
        for (var i = n.coordinateSystem, o = n.getModel("itemStyle").getItemStyle(), l = i.getCellWidth(), s = i.getCellHeight(), u = r.start.time; u <= r.end.time; u = i.getNextNDay(u, 1).time) {
            var c = i.dataToRect([u], !1).tl
              , f = new tn({
                shape: {
                    x: c[0],
                    y: c[1],
                    width: l,
                    height: s
                },
                cursor: "default",
                style: o
            });
            a.add(f)
        }
    }
    ,
    e.prototype._renderLines = function(n, r, a, i) {
        var o = this
          , l = n.coordinateSystem
          , s = n.getModel(["splitLine", "lineStyle"]).getLineStyle()
          , u = n.get(["splitLine", "show"])
          , c = s.lineWidth;
        this._tlpoints = [],
        this._blpoints = [],
        this._firstDayOfMonth = [],
        this._firstDayPoints = [];
        for (var f = r.start, d = 0; f.time <= r.end.time; d++) {
            h(f.formatedDate),
            d === 0 && (f = l.getDateInfo(r.start.y + "-" + r.start.m));
            var v = f.date;
            v.setMonth(v.getMonth() + 1),
            f = l.getDateInfo(v)
        }
        h(l.getNextNDay(r.end.time, 1).formatedDate);
        function h(p) {
            o._firstDayOfMonth.push(l.getDateInfo(p)),
            o._firstDayPoints.push(l.dataToRect([p], !1).tl);
            var g = o._getLinePointsOfOneWeek(n, p, a);
            o._tlpoints.push(g[0]),
            o._blpoints.push(g[g.length - 1]),
            u && o._drawSplitline(g, s, i)
        }
        u && this._drawSplitline(o._getEdgesPoints(o._tlpoints, c, a), s, i),
        u && this._drawSplitline(o._getEdgesPoints(o._blpoints, c, a), s, i)
    }
    ,
    e.prototype._getEdgesPoints = function(n, r, a) {
        var i = [n[0].slice(), n[n.length - 1].slice()]
          , o = a === "horizontal" ? 0 : 1;
        return i[0][o] = i[0][o] - r / 2,
        i[1][o] = i[1][o] + r / 2,
        i
    }
    ,
    e.prototype._drawSplitline = function(n, r, a) {
        var i = new Aa({
            z2: 20,
            shape: {
                points: n
            },
            style: r
        });
        a.add(i)
    }
    ,
    e.prototype._getLinePointsOfOneWeek = function(n, r, a) {
        for (var i = n.coordinateSystem, o = i.getDateInfo(r), l = [], s = 0; s < 7; s++) {
            var u = i.getNextNDay(o.time, s)
              , c = i.dataToRect([u.time], !1);
            l[2 * u.day] = c.tl,
            l[2 * u.day + 1] = c[a === "horizontal" ? "bl" : "tr"]
        }
        return l
    }
    ,
    e.prototype._formatterLabel = function(n, r) {
        return Ge(n) && n ? qUe(n, r) : et(n) ? n(r) : r.nameMap
    }
    ,
    e.prototype._yearTextPositionControl = function(n, r, a, i, o) {
        var l = r[0]
          , s = r[1]
          , u = ["center", "bottom"];
        i === "bottom" ? (s += o,
        u = ["center", "top"]) : i === "left" ? l -= o : i === "right" ? (l += o,
        u = ["center", "top"]) : s -= o;
        var c = 0;
        return (i === "left" || i === "right") && (c = Math.PI / 2),
        {
            rotation: c,
            x: l,
            y: s,
            style: {
                align: u[0],
                verticalAlign: u[1]
            }
        }
    }
    ,
    e.prototype._renderYearText = function(n, r, a, i) {
        var o = n.getModel("yearLabel");
        if (!!o.get("show")) {
            var l = o.get("margin")
              , s = o.get("position");
            s || (s = a !== "horizontal" ? "top" : "left");
            var u = [this._tlpoints[this._tlpoints.length - 1], this._blpoints[0]]
              , c = (u[0][0] + u[1][0]) / 2
              , f = (u[0][1] + u[1][1]) / 2
              , d = a === "horizontal" ? 0 : 1
              , v = {
                top: [c, u[d][1]],
                bottom: [c, u[1 - d][1]],
                left: [u[1 - d][0], f],
                right: [u[d][0], f]
            }
              , h = r.start.y;
            +r.end.y > +r.start.y && (h = h + "-" + r.end.y);
            var p = o.get("formatter")
              , g = {
                start: r.start.y,
                end: r.end.y,
                nameMap: h
            }
              , m = this._formatterLabel(p, g)
              , y = new Jt({
                z2: 30,
                style: In(o, {
                    text: m
                })
            });
            y.attr(this._yearTextPositionControl(y, v[s], a, s, l)),
            i.add(y)
        }
    }
    ,
    e.prototype._monthTextPositionControl = function(n, r, a, i, o) {
        var l = "left"
          , s = "top"
          , u = n[0]
          , c = n[1];
        return a === "horizontal" ? (c = c + o,
        r && (l = "center"),
        i === "start" && (s = "bottom")) : (u = u + o,
        r && (s = "middle"),
        i === "start" && (l = "right")),
        {
            x: u,
            y: c,
            align: l,
            verticalAlign: s
        }
    }
    ,
    e.prototype._renderMonthText = function(n, r, a, i) {
        var o = n.getModel("monthLabel");
        if (!!o.get("show")) {
            var l = o.get("nameMap")
              , s = o.get("margin")
              , u = o.get("position")
              , c = o.get("align")
              , f = [this._tlpoints, this._blpoints];
            (!l || Ge(l)) && (l && (r = DI(l) || r),
            l = r.get(["time", "monthAbbr"]) || []);
            var d = u === "start" ? 0 : 1
              , v = a === "horizontal" ? 0 : 1;
            s = u === "start" ? -s : s;
            for (var h = c === "center", p = 0; p < f[d].length - 1; p++) {
                var g = f[d][p].slice()
                  , m = this._firstDayOfMonth[p];
                if (h) {
                    var y = this._firstDayPoints[p];
                    g[v] = (y[v] + f[0][p + 1][v]) / 2
                }
                var b = o.get("formatter")
                  , x = l[+m.m - 1]
                  , C = {
                    yyyy: m.y,
                    yy: (m.y + "").slice(2),
                    MM: m.m,
                    M: +m.m,
                    nameMap: x
                }
                  , S = this._formatterLabel(b, C)
                  , w = new Jt({
                    z2: 30,
                    style: Me(In(o, {
                        text: S
                    }), this._monthTextPositionControl(g, h, a, u, s))
                });
                i.add(w)
            }
        }
    }
    ,
    e.prototype._weekTextPositionControl = function(n, r, a, i, o) {
        var l = "center"
          , s = "middle"
          , u = n[0]
          , c = n[1]
          , f = a === "start";
        return r === "horizontal" ? (u = u + i + (f ? 1 : -1) * o[0] / 2,
        l = f ? "right" : "left") : (c = c + i + (f ? 1 : -1) * o[1] / 2,
        s = f ? "bottom" : "top"),
        {
            x: u,
            y: c,
            align: l,
            verticalAlign: s
        }
    }
    ,
    e.prototype._renderWeekText = function(n, r, a, i, o) {
        var l = n.getModel("dayLabel");
        if (!!l.get("show")) {
            var s = n.coordinateSystem
              , u = l.get("position")
              , c = l.get("nameMap")
              , f = l.get("margin")
              , d = s.getFirstDayOfWeek();
            if (!c || Ge(c)) {
                c && (r = DI(c) || r);
                var v = r.get(["time", "dayOfWeekShort"]);
                c = v || Le(r.get(["time", "dayOfWeekAbbr"]), function(C) {
                    return C[0]
                })
            }
            var h = s.getNextNDay(a.end.time, 7 - a.lweek).time
              , p = [s.getCellWidth(), s.getCellHeight()];
            f = He(f, Math.min(p[1], p[0])),
            u === "start" && (h = s.getNextNDay(a.start.time, -(7 + a.fweek)).time,
            f = -f);
            for (var g = 0; g < 7; g++) {
                var m = s.getNextNDay(h, g)
                  , y = s.dataToRect([m.time], !1).center
                  , b = g;
                b = Math.abs((g + d) % 7);
                var x = new Jt({
                    z2: 30,
                    style: Me(In(l, {
                        text: c[b]
                    }), this._weekTextPositionControl(y, i, u, f, p))
                });
                o.add(x)
            }
        }
    }
    ,
    e.type = "calendar",
    e
}(Bn);
const vct = dct;
var c3 = 864e5
  , hct = function() {
    function t(e, n, r) {
        this.type = "calendar",
        this.dimensions = t.dimensions,
        this.getDimensionsInfo = t.getDimensionsInfo,
        this._model = e
    }
    return t.getDimensionsInfo = function() {
        return [{
            name: "time",
            type: "time"
        }, "value"]
    }
    ,
    t.prototype.getRangeInfo = function() {
        return this._rangeInfo
    }
    ,
    t.prototype.getModel = function() {
        return this._model
    }
    ,
    t.prototype.getRect = function() {
        return this._rect
    }
    ,
    t.prototype.getCellWidth = function() {
        return this._sw
    }
    ,
    t.prototype.getCellHeight = function() {
        return this._sh
    }
    ,
    t.prototype.getOrient = function() {
        return this._orient
    }
    ,
    t.prototype.getFirstDayOfWeek = function() {
        return this._firstDayOfWeek
    }
    ,
    t.prototype.getDateInfo = function(e) {
        e = ui(e);
        var n = e.getFullYear()
          , r = e.getMonth() + 1
          , a = r < 10 ? "0" + r : "" + r
          , i = e.getDate()
          , o = i < 10 ? "0" + i : "" + i
          , l = e.getDay();
        return l = Math.abs((l + 7 - this.getFirstDayOfWeek()) % 7),
        {
            y: n + "",
            m: a,
            d: o,
            day: l,
            time: e.getTime(),
            formatedDate: n + "-" + a + "-" + o,
            date: e
        }
    }
    ,
    t.prototype.getNextNDay = function(e, n) {
        return n = n || 0,
        n === 0 ? this.getDateInfo(e) : (e = new Date(this.getDateInfo(e).time),
        e.setDate(e.getDate() + n),
        this.getDateInfo(e))
    }
    ,
    t.prototype.update = function(e, n) {
        this._firstDayOfWeek = +this._model.getModel("dayLabel").get("firstDay"),
        this._orient = this._model.get("orient"),
        this._lineWidth = this._model.getModel("itemStyle").getItemStyle().lineWidth || 0,
        this._rangeInfo = this._getRangeInfo(this._initRangeOption());
        var r = this._rangeInfo.weeks || 1
          , a = ["width", "height"]
          , i = this._model.getCellSize().slice()
          , o = this._model.getBoxLayoutParams()
          , l = this._orient === "horizontal" ? [r, 7] : [7, r];
        Z([0, 1], function(f) {
            c(i, f) && (o[a[f]] = i[f] * l[f])
        });
        var s = {
            width: n.getWidth(),
            height: n.getHeight()
        }
          , u = this._rect = xr(o, s);
        Z([0, 1], function(f) {
            c(i, f) || (i[f] = u[a[f]] / l[f])
        });
        function c(f, d) {
            return f[d] != null && f[d] !== "auto"
        }
        this._sw = i[0],
        this._sh = i[1]
    }
    ,
    t.prototype.dataToPoint = function(e, n) {
        ke(e) && (e = e[0]),
        n == null && (n = !0);
        var r = this.getDateInfo(e)
          , a = this._rangeInfo
          , i = r.formatedDate;
        if (n && !(r.time >= a.start.time && r.time < a.end.time + c3))
            return [NaN, NaN];
        var o = r.day
          , l = this._getRangeInfo([a.start.time, i]).nthWeek;
        return this._orient === "vertical" ? [this._rect.x + o * this._sw + this._sw / 2, this._rect.y + l * this._sh + this._sh / 2] : [this._rect.x + l * this._sw + this._sw / 2, this._rect.y + o * this._sh + this._sh / 2]
    }
    ,
    t.prototype.pointToData = function(e) {
        var n = this.pointToDate(e);
        return n && n.time
    }
    ,
    t.prototype.dataToRect = function(e, n) {
        var r = this.dataToPoint(e, n);
        return {
            contentShape: {
                x: r[0] - (this._sw - this._lineWidth) / 2,
                y: r[1] - (this._sh - this._lineWidth) / 2,
                width: this._sw - this._lineWidth,
                height: this._sh - this._lineWidth
            },
            center: r,
            tl: [r[0] - this._sw / 2, r[1] - this._sh / 2],
            tr: [r[0] + this._sw / 2, r[1] - this._sh / 2],
            br: [r[0] + this._sw / 2, r[1] + this._sh / 2],
            bl: [r[0] - this._sw / 2, r[1] + this._sh / 2]
        }
    }
    ,
    t.prototype.pointToDate = function(e) {
        var n = Math.floor((e[0] - this._rect.x) / this._sw) + 1
          , r = Math.floor((e[1] - this._rect.y) / this._sh) + 1
          , a = this._rangeInfo.range;
        return this._orient === "vertical" ? this._getDateByWeeksAndDay(r, n - 1, a) : this._getDateByWeeksAndDay(n, r - 1, a)
    }
    ,
    t.prototype.convertToPixel = function(e, n, r) {
        var a = lU(n);
        return a === this ? a.dataToPoint(r) : null
    }
    ,
    t.prototype.convertFromPixel = function(e, n, r) {
        var a = lU(n);
        return a === this ? a.pointToData(r) : null
    }
    ,
    t.prototype.containPoint = function(e) {
        return !1
    }
    ,
    t.prototype._initRangeOption = function() {
        var e = this._model.get("range"), n;
        if (ke(e) && e.length === 1 && (e = e[0]),
        ke(e))
            n = e;
        else {
            var r = e.toString();
            if (/^\d{4}$/.test(r) && (n = [r + "-01-01", r + "-12-31"]),
            /^\d{4}[\/|-]\d{1,2}$/.test(r)) {
                var a = this.getDateInfo(r)
                  , i = a.date;
                i.setMonth(i.getMonth() + 1);
                var o = this.getNextNDay(i, -1);
                n = [a.formatedDate, o.formatedDate]
            }
            /^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r) && (n = [r, r])
        }
        if (!n)
            return e;
        var l = this._getRangeInfo(n);
        return l.start.time > l.end.time && n.reverse(),
        n
    }
    ,
    t.prototype._getRangeInfo = function(e) {
        var n = [this.getDateInfo(e[0]), this.getDateInfo(e[1])], r;
        n[0].time > n[1].time && (r = !0,
        n.reverse());
        var a = Math.floor(n[1].time / c3) - Math.floor(n[0].time / c3) + 1
          , i = new Date(n[0].time)
          , o = i.getDate()
          , l = n[1].date.getDate();
        i.setDate(o + a - 1);
        var s = i.getDate();
        if (s !== l)
            for (var u = i.getTime() - n[1].time > 0 ? 1 : -1; (s = i.getDate()) !== l && (i.getTime() - n[1].time) * u > 0; )
                a -= u,
                i.setDate(s - u);
        var c = Math.floor((a + n[0].day + 6) / 7)
          , f = r ? -c + 1 : c - 1;
        return r && n.reverse(),
        {
            range: [n[0].formatedDate, n[1].formatedDate],
            start: n[0],
            end: n[1],
            allDay: a,
            weeks: c,
            nthWeek: f,
            fweek: n[0].day,
            lweek: n[1].day
        }
    }
    ,
    t.prototype._getDateByWeeksAndDay = function(e, n, r) {
        var a = this._getRangeInfo(r);
        if (e > a.weeks || e === 0 && n < a.fweek || e === a.weeks && n > a.lweek)
            return null;
        var i = (e - 1) * 7 - a.fweek + n
          , o = new Date(a.start.time);
        return o.setDate(+a.start.d + i),
        this.getDateInfo(o)
    }
    ,
    t.create = function(e, n) {
        var r = [];
        return e.eachComponent("calendar", function(a) {
            var i = new t(a);
            r.push(i),
            a.coordinateSystem = i
        }),
        e.eachSeries(function(a) {
            a.get("coordinateSystem") === "calendar" && (a.coordinateSystem = r[a.get("calendarIndex") || 0])
        }),
        r
    }
    ,
    t.dimensions = ["time", "value"],
    t
}();
function lU(t) {
    var e = t.calendarModel
      , n = t.seriesModel
      , r = e ? e.coordinateSystem : n ? n.coordinateSystem : null;
    return r
}
const pct = hct;
function gct(t) {
    t.registerComponentModel(fct),
    t.registerComponentView(vct),
    t.registerCoordinateSystem("calendar", pct)
}
function mct(t, e) {
    var n = t.existing;
    if (e.id = t.keyInfo.id,
    !e.type && n && (e.type = n.type),
    e.parentId == null) {
        var r = e.parentOption;
        r ? e.parentId = r.id : n && (e.parentId = n.parentId)
    }
    e.parentOption = null
}
function sU(t, e) {
    var n;
    return Z(e, function(r) {
        t[r] != null && t[r] !== "auto" && (n = !0)
    }),
    n
}
function yct(t, e, n) {
    var r = Me({}, n)
      , a = t[e]
      , i = n.$action || "merge";
    i === "merge" ? a ? (At(a, r, !0),
    Eu(a, r, {
        ignoreSize: !0
    }),
    Moe(n, a),
    J1(n, a),
    J1(n, a, "shape"),
    J1(n, a, "style"),
    J1(n, a, "extra"),
    n.clipPath = a.clipPath) : t[e] = r : i === "replace" ? t[e] = r : i === "remove" && a && (t[e] = null)
}
var Kce = ["transition", "enterFrom", "leaveTo"]
  , bct = Kce.concat(["enterAnimation", "updateAnimation", "leaveAnimation"]);
function J1(t, e, n) {
    if (n && (!t[n] && e[n] && (t[n] = {}),
    t = t[n],
    e = e[n]),
    !(!t || !e))
        for (var r = n ? Kce : bct, a = 0; a < r.length; a++) {
            var i = r[a];
            t[i] == null && e[i] != null && (t[i] = e[i])
        }
}
function xct(t, e) {
    if (!!t && (t.hv = e.hv = [sU(e, ["left", "right"]), sU(e, ["top", "bottom"])],
    t.type === "group")) {
        var n = t
          , r = e;
        n.width == null && (n.width = r.width = 0),
        n.height == null && (n.height = r.height = 0)
    }
}
var Sct = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.preventAutoZ = !0,
        n
    }
    return e.prototype.mergeOption = function(n, r) {
        var a = this.option.elements;
        this.option.elements = null,
        t.prototype.mergeOption.call(this, n, r),
        this.option.elements = a
    }
    ,
    e.prototype.optionUpdated = function(n, r) {
        var a = this.option
          , i = (r ? a : n).elements
          , o = a.elements = r ? [] : a.elements
          , l = [];
        this._flatten(i, l, null);
        var s = cie(o, l, "normalMerge")
          , u = this._elOptionsToUpdate = [];
        Z(s, function(c, f) {
            var d = c.newOption;
            !d || (u.push(d),
            mct(c, d),
            yct(o, f, d),
            xct(o[f], d))
        }, this),
        a.elements = pn(o, function(c) {
            return c && delete c.$action,
            c != null
        })
    }
    ,
    e.prototype._flatten = function(n, r, a) {
        Z(n, function(i) {
            if (!!i) {
                a && (i.parentOption = a),
                r.push(i);
                var o = i.children;
                o && o.length && this._flatten(o, r, i),
                delete i.children
            }
        }, this)
    }
    ,
    e.prototype.useElOptionsToUpdate = function() {
        var n = this._elOptionsToUpdate;
        return this._elOptionsToUpdate = null,
        n
    }
    ,
    e.type = "graphic",
    e.defaultOption = {
        elements: []
    },
    e
}(qt)
  , uU = {
    path: null,
    compoundPath: null,
    group: mt,
    image: Kr,
    text: Jt
}
  , Ai = an()
  , Cct = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function() {
        this._elMap = Qe()
    }
    ,
    e.prototype.render = function(n, r, a) {
        n !== this._lastGraphicModel && this._clear(),
        this._lastGraphicModel = n,
        this._updateElements(n),
        this._relocate(n, a)
    }
    ,
    e.prototype._updateElements = function(n) {
        var r = n.useElOptionsToUpdate();
        if (!!r) {
            var a = this._elMap
              , i = this.group
              , o = n.get("z")
              , l = n.get("zlevel");
            Z(r, function(s) {
                var u = _r(s.id, null)
                  , c = u != null ? a.get(u) : null
                  , f = _r(s.parentId, null)
                  , d = f != null ? a.get(f) : i
                  , v = s.type
                  , h = s.style;
                v === "text" && h && s.hv && s.hv[1] && (h.textVerticalAlign = h.textBaseline = h.verticalAlign = h.align = null);
                var p = s.textContent
                  , g = s.textConfig;
                if (h && Tce(h, v, !!g, !!p)) {
                    var m = Pce(h, v, !0);
                    !g && m.textConfig && (g = s.textConfig = m.textConfig),
                    !p && m.textContent && (p = m.textContent)
                }
                var y = wct(s)
                  , b = s.$action || "merge"
                  , x = b === "merge"
                  , C = b === "replace";
                if (x) {
                    var S = !c
                      , w = c;
                    S ? w = cU(u, d, s.type, a) : (w && (Ai(w).isNew = !1),
                    kce(w)),
                    w && (hx(w, y, n, {
                        isInit: S
                    }),
                    fU(w, s, o, l))
                } else if (C) {
                    gx(c, s, a, n);
                    var T = cU(u, d, s.type, a);
                    T && (hx(T, y, n, {
                        isInit: !0
                    }),
                    fU(T, s, o, l))
                } else
                    b === "remove" && (Ace(c, s),
                    gx(c, s, a, n));
                var P = a.get(u);
                if (P && p)
                    if (x) {
                        var M = P.getTextContent();
                        M ? M.attr(p) : P.setTextContent(new Jt(p))
                    } else
                        C && P.setTextContent(new Jt(p));
                if (P) {
                    var A = s.clipPath;
                    if (A) {
                        var O = A.type
                          , k = void 0
                          , S = !1;
                        if (x) {
                            var D = P.getClipPath();
                            S = !D || Ai(D).type !== O,
                            k = S ? _k(O) : D
                        } else
                            C && (S = !0,
                            k = _k(O));
                        P.setClipPath(k),
                        hx(k, A, n, {
                            isInit: S
                        }),
                        iC(k, A.keyframeAnimation, n)
                    }
                    var E = Ai(P);
                    P.setTextConfig(g),
                    E.option = s,
                    _ct(P, n, s),
                    kh({
                        el: P,
                        componentModel: n,
                        itemName: P.name,
                        itemTooltipOption: s.tooltip
                    }),
                    iC(P, s.keyframeAnimation, n)
                }
            })
        }
    }
    ,
    e.prototype._relocate = function(n, r) {
        for (var a = n.option.elements, i = this.group, o = this._elMap, l = r.getWidth(), s = r.getHeight(), u = ["x", "y"], c = 0; c < a.length; c++) {
            var f = a[c]
              , d = _r(f.id, null)
              , v = d != null ? o.get(d) : null;
            if (!(!v || !v.isGroup)) {
                var h = v.parent
                  , p = h === i
                  , g = Ai(v)
                  , m = Ai(h);
                g.width = He(g.option.width, p ? l : m.width) || 0,
                g.height = He(g.option.height, p ? s : m.height) || 0
            }
        }
        for (var c = a.length - 1; c >= 0; c--) {
            var f = a[c]
              , d = _r(f.id, null)
              , v = d != null ? o.get(d) : null;
            if (!!v) {
                var h = v.parent
                  , m = Ai(h)
                  , y = h === i ? {
                    width: l,
                    height: s
                } : {
                    width: m.width,
                    height: m.height
                }
                  , b = {}
                  , x = m2(v, f, y, null, {
                    hv: f.hv,
                    boundingMode: f.bounding
                }, b);
                if (!Ai(v).isNew && x) {
                    for (var C = f.transition, S = {}, w = 0; w < u.length; w++) {
                        var T = u[w]
                          , P = b[T];
                        C && (Pf(C) || Rt(C, T) >= 0) ? S[T] = P : v[T] = P
                    }
                    ln(v, S, n, 0)
                } else
                    v.attr(b)
            }
        }
    }
    ,
    e.prototype._clear = function() {
        var n = this
          , r = this._elMap;
        r.each(function(a) {
            gx(a, Ai(a).option, r, n._lastGraphicModel)
        }),
        this._elMap = Qe()
    }
    ,
    e.prototype.dispose = function() {
        this._clear()
    }
    ,
    e.type = "graphic",
    e
}(Bn);
function _k(t) {
    var e = Ze(uU, t) ? uU[t] : c2(t)
      , n = new e({});
    return Ai(n).type = t,
    n
}
function cU(t, e, n, r) {
    var a = _k(n);
    return e.add(a),
    r.set(t, a),
    Ai(a).id = t,
    Ai(a).isNew = !0,
    a
}
function gx(t, e, n, r) {
    var a = t && t.parent;
    a && (t.type === "group" && t.traverse(function(i) {
        gx(i, e, n, r)
    }),
    L2(t, e, r),
    n.removeKey(Ai(t).id))
}
function fU(t, e, n, r) {
    t.isGroup || Z([["cursor", ji.prototype.cursor], ["zlevel", r || 0], ["z", n || 0], ["z2", 0]], function(a) {
        var i = a[0];
        Ze(e, i) ? t[i] = Ot(e[i], a[1]) : t[i] == null && (t[i] = a[1])
    }),
    Z(Gt(e), function(a) {
        if (a.indexOf("on") === 0) {
            var i = e[a];
            t[a] = et(i) ? i : null
        }
    }),
    Ze(e, "draggable") && (t.draggable = e.draggable),
    e.name != null && (t.name = e.name),
    e.id != null && (t.id = e.id)
}
function wct(t) {
    return t = Me({}, t),
    Z(["id", "parentId", "$action", "hv", "bounding", "textContent", "clipPath"].concat(Poe), function(e) {
        delete t[e]
    }),
    t
}
function _ct(t, e, n) {
    var r = Ct(t).eventData;
    !t.silent && !t.ignore && !r && (r = Ct(t).eventData = {
        componentType: "graphic",
        componentIndex: e.componentIndex,
        name: t.name
    }),
    r && (r.info = n.info)
}
function Tct(t) {
    t.registerComponentModel(Sct),
    t.registerComponentView(Cct),
    t.registerPreprocessor(function(e) {
        var n = e.graphic;
        ke(n) ? !n[0] || !n[0].elements ? e.graphic = [{
            elements: n
        }] : e.graphic = [e.graphic[0]] : n && !n.elements && (e.graphic = [{
            elements: [n]
        }])
    })
}
var dU = ["x", "y", "radius", "angle", "single"]
  , Pct = ["cartesian2d", "polar", "singleAxis"];
function Mct(t) {
    var e = t.get("coordinateSystem");
    return Rt(Pct, e) >= 0
}
function cu(t) {
    return t + "Axis"
}
function Act(t, e) {
    var n = Qe()
      , r = []
      , a = Qe();
    t.eachComponent({
        mainType: "dataZoom",
        query: e
    }, function(c) {
        a.get(c.uid) || l(c)
    });
    var i;
    do
        i = !1,
        t.eachComponent("dataZoom", o);
    while (i);
    function o(c) {
        !a.get(c.uid) && s(c) && (l(c),
        i = !0)
    }
    function l(c) {
        a.set(c.uid, !0),
        r.push(c),
        u(c)
    }
    function s(c) {
        var f = !1;
        return c.eachTargetAxis(function(d, v) {
            var h = n.get(d);
            h && h[v] && (f = !0)
        }),
        f
    }
    function u(c) {
        c.eachTargetAxis(function(f, d) {
            (n.get(f) || n.set(f, []))[d] = !0
        })
    }
    return r
}
function Uce(t) {
    var e = t.ecModel
      , n = {
        infoList: [],
        infoMap: Qe()
    };
    return t.eachTargetAxis(function(r, a) {
        var i = e.getComponent(cu(r), a);
        if (!!i) {
            var o = i.getCoordSysModel();
            if (!!o) {
                var l = o.uid
                  , s = n.infoMap.get(l);
                s || (s = {
                    model: o,
                    axisModels: []
                },
                n.infoList.push(s),
                n.infoMap.set(l, s)),
                s.axisModels.push(i)
            }
        }
    }),
    n
}
var f3 = function() {
    function t() {
        this.indexList = [],
        this.indexMap = []
    }
    return t.prototype.add = function(e) {
        this.indexMap[e] || (this.indexList.push(e),
        this.indexMap[e] = !0)
    }
    ,
    t
}()
  , Ict = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n._autoThrottle = !0,
        n._noTarget = !0,
        n._rangePropMode = ["percent", "percent"],
        n
    }
    return e.prototype.init = function(n, r, a) {
        var i = vU(n);
        this.settledOption = i,
        this.mergeDefaultAndTheme(n, a),
        this._doInit(i)
    }
    ,
    e.prototype.mergeOption = function(n) {
        var r = vU(n);
        At(this.option, n, !0),
        At(this.settledOption, r, !0),
        this._doInit(r)
    }
    ,
    e.prototype._doInit = function(n) {
        var r = this.option;
        this._setDefaultThrottle(n),
        this._updateRangeUse(n);
        var a = this.settledOption;
        Z([["start", "startValue"], ["end", "endValue"]], function(i, o) {
            this._rangePropMode[o] === "value" && (r[i[0]] = a[i[0]] = null)
        }, this),
        this._resetTarget()
    }
    ,
    e.prototype._resetTarget = function() {
        var n = this.get("orient", !0)
          , r = this._targetAxisInfoMap = Qe()
          , a = this._fillSpecifiedTargetAxis(r);
        a ? this._orient = n || this._makeAutoOrientByTargetAxis() : (this._orient = n || "horizontal",
        this._fillAutoTargetAxisByOrient(r, this._orient)),
        this._noTarget = !0,
        r.each(function(i) {
            i.indexList.length && (this._noTarget = !1)
        }, this)
    }
    ,
    e.prototype._fillSpecifiedTargetAxis = function(n) {
        var r = !1;
        return Z(dU, function(a) {
            var i = this.getReferringComponents(cu(a), DGe);
            if (!!i.specified) {
                r = !0;
                var o = new f3;
                Z(i.models, function(l) {
                    o.add(l.componentIndex)
                }),
                n.set(a, o)
            }
        }, this),
        r
    }
    ,
    e.prototype._fillAutoTargetAxisByOrient = function(n, r) {
        var a = this.ecModel
          , i = !0;
        if (i) {
            var o = r === "vertical" ? "y" : "x"
              , l = a.findComponents({
                mainType: o + "Axis"
            });
            s(l, o)
        }
        if (i) {
            var l = a.findComponents({
                mainType: "singleAxis",
                filter: function(c) {
                    return c.get("orient", !0) === r
                }
            });
            s(l, "single")
        }
        function s(u, c) {
            var f = u[0];
            if (!!f) {
                var d = new f3;
                if (d.add(f.componentIndex),
                n.set(c, d),
                i = !1,
                c === "x" || c === "y") {
                    var v = f.getReferringComponents("grid", mr).models[0];
                    v && Z(u, function(h) {
                        f.componentIndex !== h.componentIndex && v === h.getReferringComponents("grid", mr).models[0] && d.add(h.componentIndex)
                    })
                }
            }
        }
        i && Z(dU, function(u) {
            if (!!i) {
                var c = a.findComponents({
                    mainType: cu(u),
                    filter: function(d) {
                        return d.get("type", !0) === "category"
                    }
                });
                if (c[0]) {
                    var f = new f3;
                    f.add(c[0].componentIndex),
                    n.set(u, f),
                    i = !1
                }
            }
        }, this)
    }
    ,
    e.prototype._makeAutoOrientByTargetAxis = function() {
        var n;
        return this.eachTargetAxis(function(r) {
            !n && (n = r)
        }, this),
        n === "y" ? "vertical" : "horizontal"
    }
    ,
    e.prototype._setDefaultThrottle = function(n) {
        if (n.hasOwnProperty("throttle") && (this._autoThrottle = !1),
        this._autoThrottle) {
            var r = this.ecModel.option;
            this.option.throttle = r.animation && r.animationDurationUpdate > 0 ? 100 : 20
        }
    }
    ,
    e.prototype._updateRangeUse = function(n) {
        var r = this._rangePropMode
          , a = this.get("rangeMode");
        Z([["start", "startValue"], ["end", "endValue"]], function(i, o) {
            var l = n[i[0]] != null
              , s = n[i[1]] != null;
            l && !s ? r[o] = "percent" : !l && s ? r[o] = "value" : a ? r[o] = a[o] : l && (r[o] = "percent")
        })
    }
    ,
    e.prototype.noTarget = function() {
        return this._noTarget
    }
    ,
    e.prototype.getFirstTargetAxisModel = function() {
        var n;
        return this.eachTargetAxis(function(r, a) {
            n == null && (n = this.ecModel.getComponent(cu(r), a))
        }, this),
        n
    }
    ,
    e.prototype.eachTargetAxis = function(n, r) {
        this._targetAxisInfoMap.each(function(a, i) {
            Z(a.indexList, function(o) {
                n.call(r, i, o)
            })
        })
    }
    ,
    e.prototype.getAxisProxy = function(n, r) {
        var a = this.getAxisModel(n, r);
        if (a)
            return a.__dzAxisProxy
    }
    ,
    e.prototype.getAxisModel = function(n, r) {
        var a = this._targetAxisInfoMap.get(n);
        if (a && a.indexMap[r])
            return this.ecModel.getComponent(cu(n), r)
    }
    ,
    e.prototype.setRawRange = function(n) {
        var r = this.option
          , a = this.settledOption;
        Z([["start", "startValue"], ["end", "endValue"]], function(i) {
            (n[i[0]] != null || n[i[1]] != null) && (r[i[0]] = a[i[0]] = n[i[0]],
            r[i[1]] = a[i[1]] = n[i[1]])
        }, this),
        this._updateRangeUse(n)
    }
    ,
    e.prototype.setCalculatedRange = function(n) {
        var r = this.option;
        Z(["start", "startValue", "end", "endValue"], function(a) {
            r[a] = n[a]
        })
    }
    ,
    e.prototype.getPercentRange = function() {
        var n = this.findRepresentativeAxisProxy();
        if (n)
            return n.getDataPercentWindow()
    }
    ,
    e.prototype.getValueRange = function(n, r) {
        if (n == null && r == null) {
            var a = this.findRepresentativeAxisProxy();
            if (a)
                return a.getDataValueWindow()
        } else
            return this.getAxisProxy(n, r).getDataValueWindow()
    }
    ,
    e.prototype.findRepresentativeAxisProxy = function(n) {
        if (n)
            return n.__dzAxisProxy;
        for (var r, a = this._targetAxisInfoMap.keys(), i = 0; i < a.length; i++)
            for (var o = a[i], l = this._targetAxisInfoMap.get(o), s = 0; s < l.indexList.length; s++) {
                var u = this.getAxisProxy(o, l.indexList[s]);
                if (u.hostedBy(this))
                    return u;
                r || (r = u)
            }
        return r
    }
    ,
    e.prototype.getRangePropMode = function() {
        return this._rangePropMode.slice()
    }
    ,
    e.prototype.getOrient = function() {
        return this._orient
    }
    ,
    e.type = "dataZoom",
    e.dependencies = ["xAxis", "yAxis", "radiusAxis", "angleAxis", "singleAxis", "series", "toolbox"],
    e.defaultOption = {
        z: 4,
        filterMode: "filter",
        start: 0,
        end: 100
    },
    e
}(qt);
function vU(t) {
    var e = {};
    return Z(["start", "end", "startValue", "endValue", "throttle"], function(n) {
        t.hasOwnProperty(n) && (e[n] = t[n])
    }),
    e
}
const im = Ict;
var kct = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "dataZoom.select",
    e
}(im);
const Oct = kct;
var Dct = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a, i) {
        this.dataZoomModel = n,
        this.ecModel = r,
        this.api = a
    }
    ,
    e.type = "dataZoom",
    e
}(Bn);
const AL = Dct;
var Ect = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "dataZoom.select",
    e
}(AL);
const Lct = Ect;
var qd = Z
  , hU = ri
  , Rct = function() {
    function t(e, n, r, a) {
        this._dimName = e,
        this._axisIndex = n,
        this.ecModel = a,
        this._dataZoomModel = r
    }
    return t.prototype.hostedBy = function(e) {
        return this._dataZoomModel === e
    }
    ,
    t.prototype.getDataValueWindow = function() {
        return this._valueWindow.slice()
    }
    ,
    t.prototype.getDataPercentWindow = function() {
        return this._percentWindow.slice()
    }
    ,
    t.prototype.getTargetSeriesModels = function() {
        var e = [];
        return this.ecModel.eachSeries(function(n) {
            if (Mct(n)) {
                var r = cu(this._dimName)
                  , a = n.getReferringComponents(r, mr).models[0];
                a && this._axisIndex === a.componentIndex && e.push(n)
            }
        }, this),
        e
    }
    ,
    t.prototype.getAxisModel = function() {
        return this.ecModel.getComponent(this._dimName + "Axis", this._axisIndex)
    }
    ,
    t.prototype.getMinMaxSpan = function() {
        return ut(this._minMaxSpan)
    }
    ,
    t.prototype.calculateDataWindow = function(e) {
        var n = this._dataExtent, r = this.getAxisModel(), a = r.axis.scale, i = this._dataZoomModel.getRangePropMode(), o = [0, 100], l = [], s = [], u;
        qd(["start", "end"], function(d, v) {
            var h = e[d]
              , p = e[d + "Value"];
            i[v] === "percent" ? (h == null && (h = o[v]),
            p = a.parse(vn(h, o, n))) : (u = !0,
            p = p == null ? n[v] : a.parse(p),
            h = vn(p, n, o)),
            s[v] = p == null || isNaN(p) ? n[v] : p,
            l[v] = h == null || isNaN(h) ? o[v] : h
        }),
        hU(s),
        hU(l);
        var c = this._minMaxSpan;
        u ? f(s, l, n, o, !1) : f(l, s, o, n, !0);
        function f(d, v, h, p, g) {
            var m = g ? "Span" : "ValueSpan";
            sd(0, d, h, "all", c["min" + m], c["max" + m]);
            for (var y = 0; y < 2; y++)
                v[y] = vn(d[y], h, p, !0),
                g && (v[y] = a.parse(v[y]))
        }
        return {
            valueWindow: s,
            percentWindow: l
        }
    }
    ,
    t.prototype.reset = function(e) {
        if (e === this._dataZoomModel) {
            var n = this.getTargetSeriesModels();
            this._dataExtent = Nct(this, this._dimName, n),
            this._updateMinMaxSpan();
            var r = this.calculateDataWindow(e.settledOption);
            this._valueWindow = r.valueWindow,
            this._percentWindow = r.percentWindow,
            this._setAxisModel()
        }
    }
    ,
    t.prototype.filterData = function(e, n) {
        if (e !== this._dataZoomModel)
            return;
        var r = this._dimName
          , a = this.getTargetSeriesModels()
          , i = e.get("filterMode")
          , o = this._valueWindow;
        if (i === "none")
            return;
        qd(a, function(s) {
            var u = s.getData()
              , c = u.mapDimensionsAll(r);
            if (!!c.length) {
                if (i === "weakFilter") {
                    var f = u.getStore()
                      , d = Le(c, function(v) {
                        return u.getDimensionIndex(v)
                    }, u);
                    u.filterSelf(function(v) {
                        for (var h, p, g, m = 0; m < c.length; m++) {
                            var y = f.get(d[m], v)
                              , b = !isNaN(y)
                              , x = y < o[0]
                              , C = y > o[1];
                            if (b && !x && !C)
                                return !0;
                            b && (g = !0),
                            x && (h = !0),
                            C && (p = !0)
                        }
                        return g && h && p
                    })
                } else
                    qd(c, function(v) {
                        if (i === "empty")
                            s.setData(u = u.map(v, function(p) {
                                return l(p) ? p : NaN
                            }));
                        else {
                            var h = {};
                            h[v] = o,
                            u.selectRange(h)
                        }
                    });
                qd(c, function(v) {
                    u.setApproximateExtent(o, v)
                })
            }
        });
        function l(s) {
            return s >= o[0] && s <= o[1]
        }
    }
    ,
    t.prototype._updateMinMaxSpan = function() {
        var e = this._minMaxSpan = {}
          , n = this._dataZoomModel
          , r = this._dataExtent;
        qd(["min", "max"], function(a) {
            var i = n.get(a + "Span")
              , o = n.get(a + "ValueSpan");
            o != null && (o = this.getAxisModel().axis.scale.parse(o)),
            o != null ? i = vn(r[0] + o, r, [0, 100], !0) : i != null && (o = vn(i, [0, 100], r, !0) - r[0]),
            e[a + "Span"] = i,
            e[a + "ValueSpan"] = o
        }, this)
    }
    ,
    t.prototype._setAxisModel = function() {
        var e = this.getAxisModel()
          , n = this._percentWindow
          , r = this._valueWindow;
        if (!!n) {
            var a = E6(r, [0, 500]);
            a = Math.min(a, 20);
            var i = e.axis.scale.rawExtentInfo;
            n[0] !== 0 && i.setDeterminedMinMax("min", +r[0].toFixed(a)),
            n[1] !== 100 && i.setDeterminedMinMax("max", +r[1].toFixed(a)),
            i.freeze()
        }
    }
    ,
    t
}();
function Nct(t, e, n) {
    var r = [1 / 0, -1 / 0];
    qd(n, function(o) {
        WZe(r, o.getData(), e)
    });
    var a = t.getAxisModel()
      , i = cse(a.axis.scale, a, r).calculate();
    return [i.min, i.max]
}
const $ct = Rct;
var Fct = {
    getTargetSeries: function(t) {
        function e(a) {
            t.eachComponent("dataZoom", function(i) {
                i.eachTargetAxis(function(o, l) {
                    var s = t.getComponent(cu(o), l);
                    a(o, l, s, i)
                })
            })
        }
        e(function(a, i, o, l) {
            o.__dzAxisProxy = null
        });
        var n = [];
        e(function(a, i, o, l) {
            o.__dzAxisProxy || (o.__dzAxisProxy = new $ct(a,i,l,t),
            n.push(o.__dzAxisProxy))
        });
        var r = Qe();
        return Z(n, function(a) {
            Z(a.getTargetSeriesModels(), function(i) {
                r.set(i.uid, i)
            })
        }),
        r
    },
    overallReset: function(t, e) {
        t.eachComponent("dataZoom", function(n) {
            n.eachTargetAxis(function(r, a) {
                n.getAxisProxy(r, a).reset(n)
            }),
            n.eachTargetAxis(function(r, a) {
                n.getAxisProxy(r, a).filterData(n, e)
            })
        }),
        t.eachComponent("dataZoom", function(n) {
            var r = n.findRepresentativeAxisProxy();
            if (r) {
                var a = r.getDataPercentWindow()
                  , i = r.getDataValueWindow();
                n.setCalculatedRange({
                    start: a[0],
                    end: a[1],
                    startValue: i[0],
                    endValue: i[1]
                })
            }
        })
    }
};
const Bct = Fct;
function Vct(t) {
    t.registerAction("dataZoom", function(e, n) {
        var r = Act(n, e);
        Z(r, function(a) {
            a.setRawRange({
                start: e.start,
                end: e.end,
                startValue: e.startValue,
                endValue: e.endValue
            })
        })
    })
}
var pU = !1;
function IL(t) {
    pU || (pU = !0,
    t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER, Bct),
    Vct(t),
    t.registerSubTypeDefaulter("dataZoom", function() {
        return "slider"
    }))
}
function zct(t) {
    t.registerComponentModel(Oct),
    t.registerComponentView(Lct),
    IL(t)
}
var ki = function() {
    function t() {}
    return t
}()
  , Yce = {};
function Xd(t, e) {
    Yce[t] = e
}
function qce(t) {
    return Yce[t]
}
var Hct = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.optionUpdated = function() {
        t.prototype.optionUpdated.apply(this, arguments);
        var n = this.ecModel;
        Z(this.option.feature, function(r, a) {
            var i = qce(a);
            i && (i.getDefaultOption && (i.defaultOption = i.getDefaultOption(n)),
            At(r, i.defaultOption))
        })
    }
    ,
    e.type = "toolbox",
    e.layoutMode = {
        type: "box",
        ignoreSize: !0
    },
    e.defaultOption = {
        show: !0,
        z: 6,
        orient: "horizontal",
        left: "right",
        top: "top",
        backgroundColor: "transparent",
        borderColor: "#ccc",
        borderRadius: 0,
        borderWidth: 0,
        padding: 5,
        itemSize: 15,
        itemGap: 8,
        showTitle: !0,
        iconStyle: {
            borderColor: "#666",
            color: "none"
        },
        emphasis: {
            iconStyle: {
                borderColor: "#3E98C5"
            }
        },
        tooltip: {
            show: !1,
            position: "bottom"
        }
    },
    e
}(qt);
const jct = Hct;
function Wct(t, e, n) {
    var r = e.getBoxLayoutParams()
      , a = e.get("padding")
      , i = {
        width: n.getWidth(),
        height: n.getHeight()
    }
      , o = xr(r, i, a);
    Cf(e.get("orient"), t, e.get("itemGap"), o.width, o.height),
    m2(t, r, i, a)
}
function Xce(t, e) {
    var n = ad(e.get("padding"))
      , r = e.getItemStyle(["color", "opacity"]);
    return r.fill = e.get("backgroundColor"),
    t = new tn({
        shape: {
            x: t.x - n[3],
            y: t.y - n[0],
            width: t.width + n[1] + n[3],
            height: t.height + n[0] + n[2],
            r: e.get("borderRadius")
        },
        style: r,
        silent: !0,
        z2: -1
    }),
    t
}
var Gct = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.render = function(n, r, a, i) {
        var o = this.group;
        if (o.removeAll(),
        !n.get("show"))
            return;
        var l = +n.get("itemSize")
          , s = n.get("orient") === "vertical"
          , u = n.get("feature") || {}
          , c = this._features || (this._features = {})
          , f = [];
        Z(u, function(h, p) {
            f.push(p)
        }),
        new fs(this._featureNames || [],f).add(d).update(d).remove(St(d, null)).execute(),
        this._featureNames = f;
        function d(h, p) {
            var g = f[h], m = f[p], y = u[g], b = new wn(y,n,n.ecModel), x;
            if (i && i.newTitle != null && i.featureName === g && (y.title = i.newTitle),
            g && !m) {
                if (Kct(g))
                    x = {
                        onclick: b.option.onclick,
                        featureName: g
                    };
                else {
                    var C = qce(g);
                    if (!C)
                        return;
                    x = new C
                }
                c[g] = x
            } else if (x = c[m],
            !x)
                return;
            x.uid = Dh("toolbox-feature"),
            x.model = b,
            x.ecModel = r,
            x.api = a;
            var S = x instanceof ki;
            if (!g && m) {
                S && x.dispose && x.dispose(r, a);
                return
            }
            if (!b.get("show") || S && x.unusable) {
                S && x.remove && x.remove(r, a);
                return
            }
            v(b, x, g),
            b.setIconStatus = function(w, T) {
                var P = this.option
                  , M = this.iconPaths;
                P.iconStatus = P.iconStatus || {},
                P.iconStatus[w] = T,
                M[w] && (T === "emphasis" ? us : cs)(M[w])
            }
            ,
            x instanceof ki && x.render && x.render(b, r, a, i)
        }
        function v(h, p, g) {
            var m = h.getModel("iconStyle"), y = h.getModel(["emphasis", "iconStyle"]), b = p instanceof ki && p.getIcons ? p.getIcons() : h.get("icon"), x = h.get("title") || {}, C, S;
            Ge(b) ? (C = {},
            C[g] = b) : C = b,
            Ge(x) ? (S = {},
            S[g] = x) : S = x;
            var w = h.iconPaths = {};
            Z(C, function(T, P) {
                var M = Ih(T, {}, {
                    x: -l / 2,
                    y: -l / 2,
                    width: l,
                    height: l
                });
                M.setStyle(m.getItemStyle());
                var A = M.ensureState("emphasis");
                A.style = y.getItemStyle();
                var O = new Jt({
                    style: {
                        text: S[P],
                        align: y.get("textAlign"),
                        borderRadius: y.get("textBorderRadius"),
                        padding: y.get("textPadding"),
                        fill: null
                    },
                    ignore: !0
                });
                M.setTextContent(O),
                kh({
                    el: M,
                    componentModel: n,
                    itemName: P,
                    formatterParamsExtra: {
                        title: S[P]
                    }
                }),
                M.__title = S[P],
                M.on("mouseover", function() {
                    var k = y.getItemStyle()
                      , D = s ? n.get("right") == null && n.get("left") !== "right" ? "right" : "left" : n.get("bottom") == null && n.get("top") !== "bottom" ? "bottom" : "top";
                    O.setStyle({
                        fill: y.get("textFill") || k.fill || k.stroke || "#000",
                        backgroundColor: y.get("textBackgroundColor")
                    }),
                    M.setTextConfig({
                        position: y.get("textPosition") || D
                    }),
                    O.ignore = !n.get("showTitle"),
                    a.enterEmphasis(this)
                }).on("mouseout", function() {
                    h.get(["iconStatus", P]) !== "emphasis" && a.leaveEmphasis(this),
                    O.hide()
                }),
                (h.get(["iconStatus", P]) === "emphasis" ? us : cs)(M),
                o.add(M),
                M.on("click", qe(p.onclick, p, r, a, P)),
                w[P] = M
            })
        }
        Wct(o, n, a),
        o.add(Xce(o.getBoundingRect(), n)),
        s || o.eachChild(function(h) {
            var p = h.__title
              , g = h.ensureState("emphasis")
              , m = g.textConfig || (g.textConfig = {})
              , y = h.getTextContent()
              , b = y && y.ensureState("emphasis");
            if (b && !et(b) && p) {
                var x = b.style || (b.style = {})
                  , C = Km(p, Jt.makeFont(x))
                  , S = h.x + o.x
                  , w = h.y + o.y + l
                  , T = !1;
                w + C.height > a.getHeight() && (m.position = "top",
                T = !0);
                var P = T ? -5 - C.height : l + 10;
                S + C.width / 2 > a.getWidth() ? (m.position = ["100%", P],
                x.align = "right") : S - C.width / 2 < 0 && (m.position = [0, P],
                x.align = "left")
            }
        })
    }
    ,
    e.prototype.updateView = function(n, r, a, i) {
        Z(this._features, function(o) {
            o instanceof ki && o.updateView && o.updateView(o.model, r, a, i)
        })
    }
    ,
    e.prototype.remove = function(n, r) {
        Z(this._features, function(a) {
            a instanceof ki && a.remove && a.remove(n, r)
        }),
        this.group.removeAll()
    }
    ,
    e.prototype.dispose = function(n, r) {
        Z(this._features, function(a) {
            a instanceof ki && a.dispose && a.dispose(n, r)
        })
    }
    ,
    e.type = "toolbox",
    e
}(Bn);
function Kct(t) {
    return t.indexOf("my") === 0
}
const Uct = Gct;
var Yct = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.onclick = function(n, r) {
        var a = this.model
          , i = a.get("name") || n.get("title.0.text") || "echarts"
          , o = r.getZr().painter.getType() === "svg"
          , l = o ? "svg" : a.get("type", !0) || "png"
          , s = r.getConnectedDataURL({
            type: l,
            backgroundColor: a.get("backgroundColor", !0) || n.get("backgroundColor") || "#fff",
            connectedBackgroundColor: a.get("connectedBackgroundColor"),
            excludeComponents: a.get("excludeComponents"),
            pixelRatio: a.get("pixelRatio")
        })
          , u = nn.browser;
        if (et(MouseEvent) && (u.newEdge || !u.ie && !u.edge)) {
            var c = document.createElement("a");
            c.download = i + "." + l,
            c.target = "_blank",
            c.href = s;
            var f = new MouseEvent("click",{
                view: document.defaultView,
                bubbles: !0,
                cancelable: !1
            });
            c.dispatchEvent(f)
        } else if (window.navigator.msSaveOrOpenBlob || o) {
            var d = s.split(",")
              , v = d[0].indexOf("base64") > -1
              , h = o ? decodeURIComponent(d[1]) : d[1];
            v && (h = window.atob(h));
            var p = i + "." + l;
            if (window.navigator.msSaveOrOpenBlob) {
                for (var g = h.length, m = new Uint8Array(g); g--; )
                    m[g] = h.charCodeAt(g);
                var y = new Blob([m]);
                window.navigator.msSaveOrOpenBlob(y, p)
            } else {
                var b = document.createElement("iframe");
                document.body.appendChild(b);
                var x = b.contentWindow
                  , C = x.document;
                C.open("image/svg+xml", "replace"),
                C.write(h),
                C.close(),
                x.focus(),
                C.execCommand("SaveAs", !0, p),
                document.body.removeChild(b)
            }
        } else {
            var S = a.get("lang")
              , w = '<body style="margin:0;"><img src="' + s + '" style="max-width:100%;" title="' + (S && S[0] || "") + '" /></body>'
              , T = window.open();
            T.document.write(w),
            T.document.title = i
        }
    }
    ,
    e.getDefaultOption = function(n) {
        var r = {
            show: !0,
            icon: "M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",
            title: n.getLocaleModel().get(["toolbox", "saveAsImage", "title"]),
            type: "png",
            connectedBackgroundColor: "#fff",
            name: "",
            excludeComponents: ["toolbox"],
            lang: n.getLocaleModel().get(["toolbox", "saveAsImage", "lang"])
        };
        return r
    }
    ,
    e
}(ki);
const qct = Yct;
var gU = "__ec_magicType_stack__"
  , Xct = [["line", "bar"], ["stack"]]
  , Zct = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.getIcons = function() {
        var n = this.model
          , r = n.get("icon")
          , a = {};
        return Z(n.get("type"), function(i) {
            r[i] && (a[i] = r[i])
        }),
        a
    }
    ,
    e.getDefaultOption = function(n) {
        var r = {
            show: !0,
            type: [],
            icon: {
                line: "M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",
                bar: "M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",
                stack: "M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"
            },
            title: n.getLocaleModel().get(["toolbox", "magicType", "title"]),
            option: {},
            seriesIndex: {}
        };
        return r
    }
    ,
    e.prototype.onclick = function(n, r, a) {
        var i = this.model
          , o = i.get(["seriesIndex", a]);
        if (!!mU[a]) {
            var l = {
                series: []
            }
              , s = function(f) {
                var d = f.subType
                  , v = f.id
                  , h = mU[a](d, v, f, i);
                h && (ot(h, f.option),
                l.series.push(h));
                var p = f.coordinateSystem;
                if (p && p.type === "cartesian2d" && (a === "line" || a === "bar")) {
                    var g = p.getAxesByScale("ordinal")[0];
                    if (g) {
                        var m = g.dim
                          , y = m + "Axis"
                          , b = f.getReferringComponents(y, mr).models[0]
                          , x = b.componentIndex;
                        l[y] = l[y] || [];
                        for (var C = 0; C <= x; C++)
                            l[y][x] = l[y][x] || {};
                        l[y][x].boundaryGap = a === "bar"
                    }
                }
            };
            Z(Xct, function(f) {
                Rt(f, a) >= 0 && Z(f, function(d) {
                    i.setIconStatus(d, "normal")
                })
            }),
            i.setIconStatus(a, "emphasis"),
            n.eachComponent({
                mainType: "series",
                query: o == null ? null : {
                    seriesIndex: o
                }
            }, s);
            var u, c = a;
            a === "stack" && (u = At({
                stack: i.option.title.tiled,
                tiled: i.option.title.stack
            }, i.option.title),
            i.get(["iconStatus", a]) !== "emphasis" && (c = "tiled")),
            r.dispatchAction({
                type: "changeMagicType",
                currentType: c,
                newOption: l,
                newTitle: u,
                featureName: "magicType"
            })
        }
    }
    ,
    e
}(ki)
  , mU = {
    line: function(t, e, n, r) {
        if (t === "bar")
            return At({
                id: e,
                type: "line",
                data: n.get("data"),
                stack: n.get("stack"),
                markPoint: n.get("markPoint"),
                markLine: n.get("markLine")
            }, r.get(["option", "line"]) || {}, !0)
    },
    bar: function(t, e, n, r) {
        if (t === "line")
            return At({
                id: e,
                type: "bar",
                data: n.get("data"),
                stack: n.get("stack"),
                markPoint: n.get("markPoint"),
                markLine: n.get("markLine")
            }, r.get(["option", "bar"]) || {}, !0)
    },
    stack: function(t, e, n, r) {
        var a = n.get("stack") === gU;
        if (t === "line" || t === "bar")
            return r.setIconStatus("stack", a ? "normal" : "emphasis"),
            At({
                id: e,
                stack: a ? "" : gU
            }, r.get(["option", "stack"]) || {}, !0)
    }
};
Oo({
    type: "changeMagicType",
    event: "magicTypeChanged",
    update: "prepareAndUpdate"
}, function(t, e) {
    e.mergeOption(t.newOption)
});
const Qct = Zct;
var R2 = new Array(60).join("-")
  , ah = "	";
function Jct(t) {
    var e = {}
      , n = []
      , r = [];
    return t.eachRawSeries(function(a) {
        var i = a.coordinateSystem;
        if (i && (i.type === "cartesian2d" || i.type === "polar")) {
            var o = i.getBaseAxis();
            if (o.type === "category") {
                var l = o.dim + "_" + o.index;
                e[l] || (e[l] = {
                    categoryAxis: o,
                    valueAxis: i.getOtherAxis(o),
                    series: []
                },
                r.push({
                    axisDim: o.dim,
                    axisIndex: o.index
                })),
                e[l].series.push(a)
            } else
                n.push(a)
        } else
            n.push(a)
    }),
    {
        seriesGroupByCategoryAxis: e,
        other: n,
        meta: r
    }
}
function eft(t) {
    var e = [];
    return Z(t, function(n, r) {
        var a = n.categoryAxis
          , i = n.valueAxis
          , o = i.dim
          , l = [" "].concat(Le(n.series, function(v) {
            return v.name
        }))
          , s = [a.model.getCategories()];
        Z(n.series, function(v) {
            var h = v.getRawData();
            s.push(v.getRawData().mapArray(h.mapDimension(o), function(p) {
                return p
            }))
        });
        for (var u = [l.join(ah)], c = 0; c < s[0].length; c++) {
            for (var f = [], d = 0; d < s.length; d++)
                f.push(s[d][c]);
            u.push(f.join(ah))
        }
        e.push(u.join(`
`))
    }),
    e.join(`

` + R2 + `

`)
}
function tft(t) {
    return Le(t, function(e) {
        var n = e.getRawData()
          , r = [e.name]
          , a = [];
        return n.each(n.dimensions, function() {
            for (var i = arguments.length, o = arguments[i - 1], l = n.getName(o), s = 0; s < i - 1; s++)
                a[s] = arguments[s];
            r.push((l ? l + ah : "") + a.join(ah))
        }),
        r.join(`
`)
    }).join(`

` + R2 + `

`)
}
function nft(t) {
    var e = Jct(t);
    return {
        value: pn([eft(e.seriesGroupByCategoryAxis), tft(e.other)], function(n) {
            return !!n.replace(/[\n\t\s]/g, "")
        }).join(`

` + R2 + `

`),
        meta: e.meta
    }
}
function sC(t) {
    return t.replace(/^\s\s*/, "").replace(/\s\s*$/, "")
}
function rft(t) {
    var e = t.slice(0, t.indexOf(`
`));
    if (e.indexOf(ah) >= 0)
        return !0
}
var Tk = new RegExp("[" + ah + "]+","g");
function aft(t) {
    for (var e = t.split(/\n+/g), n = sC(e.shift()).split(Tk), r = [], a = Le(n, function(s) {
        return {
            name: s,
            data: []
        }
    }), i = 0; i < e.length; i++) {
        var o = sC(e[i]).split(Tk);
        r.push(o.shift());
        for (var l = 0; l < o.length; l++)
            a[l] && (a[l].data[i] = o[l])
    }
    return {
        series: a,
        categories: r
    }
}
function ift(t) {
    for (var e = t.split(/\n+/g), n = sC(e.shift()), r = [], a = 0; a < e.length; a++) {
        var i = sC(e[a]);
        if (!!i) {
            var o = i.split(Tk)
              , l = ""
              , s = void 0
              , u = !1;
            isNaN(o[0]) ? (u = !0,
            l = o[0],
            o = o.slice(1),
            r[a] = {
                name: l,
                value: []
            },
            s = r[a].value) : s = r[a] = [];
            for (var c = 0; c < o.length; c++)
                s.push(+o[c]);
            s.length === 1 && (u ? r[a].value = s[0] : r[a] = s[0])
        }
    }
    return {
        name: n,
        data: r
    }
}
function oft(t, e) {
    var n = t.split(new RegExp(`
*` + R2 + `
*`,"g"))
      , r = {
        series: []
    };
    return Z(n, function(a, i) {
        if (rft(a)) {
            var o = aft(a)
              , l = e[i]
              , s = l.axisDim + "Axis";
            l && (r[s] = r[s] || [],
            r[s][l.axisIndex] = {
                data: o.categories
            },
            r.series = r.series.concat(o.series))
        } else {
            var o = ift(a);
            r.series.push(o)
        }
    }),
    r
}
var lft = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.onclick = function(n, r) {
        setTimeout(function() {
            r.dispatchAction({
                type: "hideTip"
            })
        });
        var a = r.getDom()
          , i = this.model;
        this._dom && a.removeChild(this._dom);
        var o = document.createElement("div");
        o.style.cssText = "position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",
        o.style.backgroundColor = i.get("backgroundColor") || "#fff";
        var l = document.createElement("h4")
          , s = i.get("lang") || [];
        l.innerHTML = s[0] || i.get("title"),
        l.style.cssText = "margin:10px 20px",
        l.style.color = i.get("textColor");
        var u = document.createElement("div")
          , c = document.createElement("textarea");
        u.style.cssText = "overflow:auto";
        var f = i.get("optionToContent")
          , d = i.get("contentToOption")
          , v = nft(n);
        if (et(f)) {
            var h = f(r.getOption());
            Ge(h) ? u.innerHTML = h : qv(h) && u.appendChild(h)
        } else {
            c.readOnly = i.get("readOnly");
            var p = c.style;
            p.cssText = "display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",
            p.color = i.get("textColor"),
            p.borderColor = i.get("textareaBorderColor"),
            p.backgroundColor = i.get("textareaColor"),
            c.value = v.value,
            u.appendChild(c)
        }
        var g = v.meta
          , m = document.createElement("div");
        m.style.cssText = "position:absolute;bottom:5px;left:0;right:0";
        var y = "float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px"
          , b = document.createElement("div")
          , x = document.createElement("div");
        y += ";background-color:" + i.get("buttonColor"),
        y += ";color:" + i.get("buttonTextColor");
        var C = this;
        function S() {
            a.removeChild(o),
            C._dom = null
        }
        rI(b, "click", S),
        rI(x, "click", function() {
            if (d == null && f != null || d != null && f == null) {
                S();
                return
            }
            var w;
            try {
                et(d) ? w = d(u, r.getOption()) : w = oft(c.value, g)
            } catch (T) {
                throw S(),
                new Error("Data view format error " + T)
            }
            w && r.dispatchAction({
                type: "changeDataView",
                newOption: w
            }),
            S()
        }),
        b.innerHTML = s[1],
        x.innerHTML = s[2],
        x.style.cssText = b.style.cssText = y,
        !i.get("readOnly") && m.appendChild(x),
        m.appendChild(b),
        o.appendChild(l),
        o.appendChild(u),
        o.appendChild(m),
        u.style.height = a.clientHeight - 80 + "px",
        a.appendChild(o),
        this._dom = o
    }
    ,
    e.prototype.remove = function(n, r) {
        this._dom && r.getDom().removeChild(this._dom)
    }
    ,
    e.prototype.dispose = function(n, r) {
        this.remove(n, r)
    }
    ,
    e.getDefaultOption = function(n) {
        var r = {
            show: !0,
            readOnly: !1,
            optionToContent: null,
            contentToOption: null,
            icon: "M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",
            title: n.getLocaleModel().get(["toolbox", "dataView", "title"]),
            lang: n.getLocaleModel().get(["toolbox", "dataView", "lang"]),
            backgroundColor: "#fff",
            textColor: "#000",
            textareaColor: "#fff",
            textareaBorderColor: "#333",
            buttonColor: "#c23531",
            buttonTextColor: "#fff"
        };
        return r
    }
    ,
    e
}(ki);
function sft(t, e) {
    return Le(t, function(n, r) {
        var a = e && e[r];
        if (st(a) && !ke(a)) {
            var i = st(n) && !ke(n);
            i || (n = {
                value: n
            });
            var o = a.name != null && n.name == null;
            return n = ot(n, a),
            o && delete n.name,
            n
        } else
            return n
    })
}
Oo({
    type: "changeDataView",
    event: "dataViewChanged",
    update: "prepareAndUpdate"
}, function(t, e) {
    var n = [];
    Z(t.newOption.series, function(r) {
        var a = e.getSeriesByName(r.name)[0];
        if (!a)
            n.push(Me({
                type: "scatter"
            }, r));
        else {
            var i = a.get("data");
            n.push({
                name: r.name,
                data: sft(r.data, i)
            })
        }
    }),
    e.mergeOption(ot({
        series: n
    }, t.newOption))
});
const uft = lft;
var Zce = Z
  , Qce = an();
function cft(t, e) {
    var n = kL(t);
    Zce(e, function(r, a) {
        for (var i = n.length - 1; i >= 0; i--) {
            var o = n[i];
            if (o[a])
                break
        }
        if (i < 0) {
            var l = t.queryComponents({
                mainType: "dataZoom",
                subType: "select",
                id: a
            })[0];
            if (l) {
                var s = l.getPercentRange();
                n[0][a] = {
                    dataZoomId: a,
                    start: s[0],
                    end: s[1]
                }
            }
        }
    }),
    n.push(e)
}
function fft(t) {
    var e = kL(t)
      , n = e[e.length - 1];
    e.length > 1 && e.pop();
    var r = {};
    return Zce(n, function(a, i) {
        for (var o = e.length - 1; o >= 0; o--)
            if (a = e[o][i],
            a) {
                r[i] = a;
                break
            }
    }),
    r
}
function dft(t) {
    Qce(t).snapshots = null
}
function vft(t) {
    return kL(t).length
}
function kL(t) {
    var e = Qce(t);
    return e.snapshots || (e.snapshots = [{}]),
    e.snapshots
}
var hft = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.onclick = function(n, r) {
        dft(n),
        r.dispatchAction({
            type: "restore",
            from: this.uid
        })
    }
    ,
    e.getDefaultOption = function(n) {
        var r = {
            show: !0,
            icon: "M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",
            title: n.getLocaleModel().get(["toolbox", "restore", "title"])
        };
        return r
    }
    ,
    e
}(ki);
Oo({
    type: "restore",
    event: "restore",
    update: "prepareAndUpdate"
}, function(t, e) {
    e.resetOption("recreate")
});
const pft = hft;
var gft = ["grid", "xAxis", "yAxis", "geo", "graph", "polar", "radiusAxis", "angleAxis", "bmap"]
  , mft = function() {
    function t(e, n, r) {
        var a = this;
        this._targetInfoList = [];
        var i = yU(n, e);
        Z(yft, function(o, l) {
            (!r || !r.include || Rt(r.include, l) >= 0) && o(i, a._targetInfoList)
        })
    }
    return t.prototype.setOutputRanges = function(e, n) {
        return this.matchOutputRanges(e, n, function(r, a, i) {
            if ((r.coordRanges || (r.coordRanges = [])).push(a),
            !r.coordRange) {
                r.coordRange = a;
                var o = d3[r.brushType](0, i, a);
                r.__rangeOffset = {
                    offset: CU[r.brushType](o.values, r.range, [1, 1]),
                    xyMinMax: o.xyMinMax
                }
            }
        }),
        e
    }
    ,
    t.prototype.matchOutputRanges = function(e, n, r) {
        Z(e, function(a) {
            var i = this.findTargetInfo(a, n);
            i && i !== !0 && Z(i.coordSyses, function(o) {
                var l = d3[a.brushType](1, o, a.range, !0);
                r(a, l.values, o, n)
            })
        }, this)
    }
    ,
    t.prototype.setInputRanges = function(e, n) {
        Z(e, function(r) {
            var a = this.findTargetInfo(r, n);
            if (r.range = r.range || [],
            a && a !== !0) {
                r.panelId = a.panelId;
                var i = d3[r.brushType](0, a.coordSys, r.coordRange)
                  , o = r.__rangeOffset;
                r.range = o ? CU[r.brushType](i.values, o.offset, bft(i.xyMinMax, o.xyMinMax)) : i.values
            }
        }, this)
    }
    ,
    t.prototype.makePanelOpts = function(e, n) {
        return Le(this._targetInfoList, function(r) {
            var a = r.getPanelRect();
            return {
                panelId: r.panelId,
                defaultBrushType: n ? n(r) : null,
                clipPath: ice(a),
                isTargetByCursor: lce(a, e, r.coordSysModel),
                getLinearBrushOtherExtent: oce(a)
            }
        })
    }
    ,
    t.prototype.controlSeries = function(e, n, r) {
        var a = this.findTargetInfo(e, r);
        return a === !0 || a && Rt(a.coordSyses, n.coordinateSystem) >= 0
    }
    ,
    t.prototype.findTargetInfo = function(e, n) {
        for (var r = this._targetInfoList, a = yU(n, e), i = 0; i < r.length; i++) {
            var o = r[i]
              , l = e.panelId;
            if (l) {
                if (o.panelId === l)
                    return o
            } else
                for (var s = 0; s < bU.length; s++)
                    if (bU[s](a, o))
                        return o
        }
        return !0
    }
    ,
    t
}();
function Pk(t) {
    return t[0] > t[1] && t.reverse(),
    t
}
function yU(t, e) {
    return Fg(t, e, {
        includeMainTypes: gft
    })
}
var yft = {
    grid: function(t, e) {
        var n = t.xAxisModels
          , r = t.yAxisModels
          , a = t.gridModels
          , i = Qe()
          , o = {}
          , l = {};
        !n && !r && !a || (Z(n, function(s) {
            var u = s.axis.grid.model;
            i.set(u.id, u),
            o[u.id] = !0
        }),
        Z(r, function(s) {
            var u = s.axis.grid.model;
            i.set(u.id, u),
            l[u.id] = !0
        }),
        Z(a, function(s) {
            i.set(s.id, s),
            o[s.id] = !0,
            l[s.id] = !0
        }),
        i.each(function(s) {
            var u = s.coordinateSystem
              , c = [];
            Z(u.getCartesians(), function(f, d) {
                (Rt(n, f.getAxis("x").model) >= 0 || Rt(r, f.getAxis("y").model) >= 0) && c.push(f)
            }),
            e.push({
                panelId: "grid--" + s.id,
                gridModel: s,
                coordSysModel: s,
                coordSys: c[0],
                coordSyses: c,
                getPanelRect: xU.grid,
                xAxisDeclared: o[s.id],
                yAxisDeclared: l[s.id]
            })
        }))
    },
    geo: function(t, e) {
        Z(t.geoModels, function(n) {
            var r = n.coordinateSystem;
            e.push({
                panelId: "geo--" + n.id,
                geoModel: n,
                coordSysModel: n,
                coordSys: r,
                coordSyses: [r],
                getPanelRect: xU.geo
            })
        })
    }
}
  , bU = [function(t, e) {
    var n = t.xAxisModel
      , r = t.yAxisModel
      , a = t.gridModel;
    return !a && n && (a = n.axis.grid.model),
    !a && r && (a = r.axis.grid.model),
    a && a === e.gridModel
}
, function(t, e) {
    var n = t.geoModel;
    return n && n === e.geoModel
}
]
  , xU = {
    grid: function() {
        return this.coordSys.master.getRect().clone()
    },
    geo: function() {
        var t = this.coordSys
          , e = t.getBoundingRect().clone();
        return e.applyTransform(Su(t)),
        e
    }
}
  , d3 = {
    lineX: St(SU, 0),
    lineY: St(SU, 1),
    rect: function(t, e, n, r) {
        var a = t ? e.pointToData([n[0][0], n[1][0]], r) : e.dataToPoint([n[0][0], n[1][0]], r)
          , i = t ? e.pointToData([n[0][1], n[1][1]], r) : e.dataToPoint([n[0][1], n[1][1]], r)
          , o = [Pk([a[0], i[0]]), Pk([a[1], i[1]])];
        return {
            values: o,
            xyMinMax: o
        }
    },
    polygon: function(t, e, n, r) {
        var a = [[1 / 0, -1 / 0], [1 / 0, -1 / 0]]
          , i = Le(n, function(o) {
            var l = t ? e.pointToData(o, r) : e.dataToPoint(o, r);
            return a[0][0] = Math.min(a[0][0], l[0]),
            a[1][0] = Math.min(a[1][0], l[1]),
            a[0][1] = Math.max(a[0][1], l[0]),
            a[1][1] = Math.max(a[1][1], l[1]),
            l
        });
        return {
            values: i,
            xyMinMax: a
        }
    }
};
function SU(t, e, n, r) {
    var a = n.getAxis(["x", "y"][t])
      , i = Pk(Le([0, 1], function(l) {
        return e ? a.coordToData(a.toLocalCoord(r[l]), !0) : a.toGlobalCoord(a.dataToCoord(r[l]))
    }))
      , o = [];
    return o[t] = i,
    o[1 - t] = [NaN, NaN],
    {
        values: i,
        xyMinMax: o
    }
}
var CU = {
    lineX: St(wU, 0),
    lineY: St(wU, 1),
    rect: function(t, e, n) {
        return [[t[0][0] - n[0] * e[0][0], t[0][1] - n[0] * e[0][1]], [t[1][0] - n[1] * e[1][0], t[1][1] - n[1] * e[1][1]]]
    },
    polygon: function(t, e, n) {
        return Le(t, function(r, a) {
            return [r[0] - n[0] * e[a][0], r[1] - n[1] * e[a][1]]
        })
    }
};
function wU(t, e, n, r) {
    return [e[0] - r[t] * n[0], e[1] - r[t] * n[1]]
}
function bft(t, e) {
    var n = _U(t)
      , r = _U(e)
      , a = [n[0] / r[0], n[1] / r[1]];
    return isNaN(a[0]) && (a[0] = 1),
    isNaN(a[1]) && (a[1] = 1),
    a
}
function _U(t) {
    return t ? [t[0][1] - t[0][0], t[1][1] - t[1][0]] : [NaN, NaN]
}
const OL = mft;
var Mk = Z
  , xft = MGe("toolbox-dataZoom_")
  , Sft = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.render = function(n, r, a, i) {
        this._brushController || (this._brushController = new fL(a.getZr()),
        this._brushController.on("brush", qe(this._onBrush, this)).mount()),
        _ft(n, r, this, i, a),
        wft(n, r)
    }
    ,
    e.prototype.onclick = function(n, r, a) {
        Cft[a].call(this)
    }
    ,
    e.prototype.remove = function(n, r) {
        this._brushController && this._brushController.unmount()
    }
    ,
    e.prototype.dispose = function(n, r) {
        this._brushController && this._brushController.dispose()
    }
    ,
    e.prototype._onBrush = function(n) {
        var r = n.areas;
        if (!n.isEnd || !r.length)
            return;
        var a = {}
          , i = this.ecModel;
        this._brushController.updateCovers([]);
        var o = new OL(DL(this.model),i,{
            include: ["grid"]
        });
        o.matchOutputRanges(r, i, function(u, c, f) {
            if (f.type === "cartesian2d") {
                var d = u.brushType;
                d === "rect" ? (l("x", f, c[0]),
                l("y", f, c[1])) : l({
                    lineX: "x",
                    lineY: "y"
                }[d], f, c)
            }
        }),
        cft(i, a),
        this._dispatchZoomAction(a);
        function l(u, c, f) {
            var d = c.getAxis(u)
              , v = d.model
              , h = s(u, v, i)
              , p = h.findRepresentativeAxisProxy(v).getMinMaxSpan();
            (p.minValueSpan != null || p.maxValueSpan != null) && (f = sd(0, f.slice(), d.scale.getExtent(), 0, p.minValueSpan, p.maxValueSpan)),
            h && (a[h.id] = {
                dataZoomId: h.id,
                startValue: f[0],
                endValue: f[1]
            })
        }
        function s(u, c, f) {
            var d;
            return f.eachComponent({
                mainType: "dataZoom",
                subType: "select"
            }, function(v) {
                var h = v.getAxisModel(u, c.componentIndex);
                h && (d = v)
            }),
            d
        }
    }
    ,
    e.prototype._dispatchZoomAction = function(n) {
        var r = [];
        Mk(n, function(a, i) {
            r.push(ut(a))
        }),
        r.length && this.api.dispatchAction({
            type: "dataZoom",
            from: this.uid,
            batch: r
        })
    }
    ,
    e.getDefaultOption = function(n) {
        var r = {
            show: !0,
            filterMode: "filter",
            icon: {
                zoom: "M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",
                back: "M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"
            },
            title: n.getLocaleModel().get(["toolbox", "dataZoom", "title"]),
            brushStyle: {
                borderWidth: 0,
                color: "rgba(210,219,238,0.2)"
            }
        };
        return r
    }
    ,
    e
}(ki)
  , Cft = {
    zoom: function() {
        var t = !this._isZoomActive;
        this.api.dispatchAction({
            type: "takeGlobalCursor",
            key: "dataZoomSelect",
            dataZoomSelectActive: t
        })
    },
    back: function() {
        this._dispatchZoomAction(fft(this.ecModel))
    }
};
function DL(t) {
    var e = {
        xAxisIndex: t.get("xAxisIndex", !0),
        yAxisIndex: t.get("yAxisIndex", !0),
        xAxisId: t.get("xAxisId", !0),
        yAxisId: t.get("yAxisId", !0)
    };
    return e.xAxisIndex == null && e.xAxisId == null && (e.xAxisIndex = "all"),
    e.yAxisIndex == null && e.yAxisId == null && (e.yAxisIndex = "all"),
    e
}
function wft(t, e) {
    t.setIconStatus("back", vft(e) > 1 ? "emphasis" : "normal")
}
function _ft(t, e, n, r, a) {
    var i = n._isZoomActive;
    r && r.type === "takeGlobalCursor" && (i = r.key === "dataZoomSelect" ? r.dataZoomSelectActive : !1),
    n._isZoomActive = i,
    t.setIconStatus("zoom", i ? "emphasis" : "normal");
    var o = new OL(DL(t),e,{
        include: ["grid"]
    })
      , l = o.makePanelOpts(a, function(s) {
        return s.xAxisDeclared && !s.yAxisDeclared ? "lineX" : !s.xAxisDeclared && s.yAxisDeclared ? "lineY" : "rect"
    });
    n._brushController.setPanels(l).enableBrush(i && l.length ? {
        brushType: "auto",
        brushStyle: t.getModel("brushStyle").getItemStyle()
    } : !1)
}
iYe("dataZoom", function(t) {
    var e = t.getComponent("toolbox", 0)
      , n = ["feature", "dataZoom"];
    if (!e || e.get(n) == null)
        return;
    var r = e.getModel(n)
      , a = []
      , i = DL(r)
      , o = Fg(t, i);
    Mk(o.xAxisModels, function(s) {
        return l(s, "xAxis", "xAxisIndex")
    }),
    Mk(o.yAxisModels, function(s) {
        return l(s, "yAxis", "yAxisIndex")
    });
    function l(s, u, c) {
        var f = s.componentIndex
          , d = {
            type: "select",
            $fromToolbox: !0,
            filterMode: r.get("filterMode", !0) || "filter",
            id: xft + u + f
        };
        d[c] = f,
        a.push(d)
    }
    return a
});
const Tft = Sft;
function Pft(t) {
    t.registerComponentModel(jct),
    t.registerComponentView(Uct),
    Xd("saveAsImage", qct),
    Xd("magicType", Qct),
    Xd("dataView", uft),
    Xd("dataZoom", Tft),
    Xd("restore", pft),
    Bt(zct)
}
var Mft = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "tooltip",
    e.dependencies = ["axisPointer"],
    e.defaultOption = {
        z: 60,
        show: !0,
        showContent: !0,
        trigger: "item",
        triggerOn: "mousemove|click",
        alwaysShowContent: !1,
        displayMode: "single",
        renderMode: "auto",
        confine: null,
        showDelay: 0,
        hideDelay: 100,
        transitionDuration: .4,
        enterable: !1,
        backgroundColor: "#fff",
        shadowBlur: 10,
        shadowColor: "rgba(0, 0, 0, .2)",
        shadowOffsetX: 1,
        shadowOffsetY: 2,
        borderRadius: 4,
        borderWidth: 1,
        padding: null,
        extraCssText: "",
        axisPointer: {
            type: "line",
            axis: "auto",
            animation: "auto",
            animationDurationUpdate: 200,
            animationEasingUpdate: "exponentialOut",
            crossStyle: {
                color: "#999",
                width: 1,
                type: "dashed",
                textStyle: {}
            }
        },
        textStyle: {
            color: "#666",
            fontSize: 14
        }
    },
    e
}(qt);
const Aft = Mft;
function Jce(t) {
    var e = t.get("confine");
    return e != null ? !!e : t.get("renderMode") === "richText"
}
function efe(t) {
    if (!!nn.domSupported) {
        for (var e = document.documentElement.style, n = 0, r = t.length; n < r; n++)
            if (t[n]in e)
                return t[n]
    }
}
var tfe = efe(["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"])
  , Ift = efe(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]);
function nfe(t, e) {
    if (!t)
        return e;
    e = i5(e, !0);
    var n = t.indexOf(e);
    return t = n === -1 ? e : "-" + t.slice(0, n) + "-" + e,
    t.toLowerCase()
}
function kft(t, e) {
    var n = t.currentStyle || document.defaultView && document.defaultView.getComputedStyle(t);
    return n ? e ? n[e] : n : null
}
var Oft = nfe(Ift, "transition")
  , EL = nfe(tfe, "transform")
  , Dft = "position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;" + (nn.transform3dSupported ? "will-change:transform;" : "");
function Eft(t) {
    return t = t === "left" ? "right" : t === "right" ? "left" : t === "top" ? "bottom" : "top",
    t
}
function Lft(t, e, n) {
    if (!Ge(n) || n === "inside")
        return "";
    var r = t.get("backgroundColor")
      , a = t.get("borderWidth");
    e = Vf(e);
    var i = Eft(n), o = Math.max(Math.round(a) * 1.5, 6), l = "", s = EL + ":", u;
    Rt(["left", "right"], i) > -1 ? (l += "top:50%",
    s += "translateY(-50%) rotate(" + (u = i === "left" ? -225 : -45) + "deg)") : (l += "left:50%",
    s += "translateX(-50%) rotate(" + (u = i === "top" ? 225 : 45) + "deg)");
    var c = u * Math.PI / 180
      , f = o + a
      , d = f * Math.abs(Math.cos(c)) + f * Math.abs(Math.sin(c))
      , v = Math.round(((d - Math.SQRT2 * a) / 2 + Math.SQRT2 * a - (d - f) / 2) * 100) / 100;
    l += ";" + i + ":-" + v + "px";
    var h = e + " solid " + a + "px;"
      , p = ["position:absolute;width:" + o + "px;height:" + o + "px;z-index:-1;", l + ";" + s + ";", "border-bottom:" + h, "border-right:" + h, "background-color:" + r + ";"];
    return '<div style="' + p.join("") + '"></div>'
}
function Rft(t, e) {
    var n = "cubic-bezier(0.23,1,0.32,1)"
      , r = " " + t / 2 + "s " + n
      , a = "opacity" + r + ",visibility" + r;
    return e || (r = " " + t + "s " + n,
    a += nn.transformSupported ? "," + EL + r : ",left" + r + ",top" + r),
    Oft + ":" + a
}
function TU(t, e, n) {
    var r = t.toFixed(0) + "px"
      , a = e.toFixed(0) + "px";
    if (!nn.transformSupported)
        return n ? "top:" + a + ";left:" + r + ";" : [["top", a], ["left", r]];
    var i = nn.transform3dSupported
      , o = "translate" + (i ? "3d" : "") + "(" + r + "," + a + (i ? ",0" : "") + ")";
    return n ? "top:0;left:0;" + EL + ":" + o + ";" : [["top", 0], ["left", 0], [tfe, o]]
}
function Nft(t) {
    var e = []
      , n = t.get("fontSize")
      , r = t.getTextColor();
    r && e.push("color:" + r),
    e.push("font:" + t.getFont()),
    n && e.push("line-height:" + Math.round(n * 3 / 2) + "px");
    var a = t.get("textShadowColor")
      , i = t.get("textShadowBlur") || 0
      , o = t.get("textShadowOffsetX") || 0
      , l = t.get("textShadowOffsetY") || 0;
    return a && i && e.push("text-shadow:" + o + "px " + l + "px " + i + "px " + a),
    Z(["decoration", "align"], function(s) {
        var u = t.get(s);
        u && e.push("text-" + s + ":" + u)
    }),
    e.join(";")
}
function $ft(t, e, n) {
    var r = []
      , a = t.get("transitionDuration")
      , i = t.get("backgroundColor")
      , o = t.get("shadowBlur")
      , l = t.get("shadowColor")
      , s = t.get("shadowOffsetX")
      , u = t.get("shadowOffsetY")
      , c = t.getModel("textStyle")
      , f = ole(t, "html")
      , d = s + "px " + u + "px " + o + "px " + l;
    return r.push("box-shadow:" + d),
    e && a && r.push(Rft(a, n)),
    i && r.push("background-color:" + i),
    Z(["width", "color", "radius"], function(v) {
        var h = "border-" + v
          , p = i5(h)
          , g = t.get(p);
        g != null && r.push(h + ":" + g + (v === "color" ? "" : "px"))
    }),
    r.push(Nft(c)),
    f != null && r.push("padding:" + ad(f).join("px ") + "px"),
    r.join(";") + ";"
}
function PU(t, e, n, r, a) {
    var i = e && e.painter;
    if (n) {
        var o = i && i.getViewportRoot();
        o && Kje(t, o, document.body, r, a)
    } else {
        t[0] = r,
        t[1] = a;
        var l = i && i.getViewportRootOffset();
        l && (t[0] += l.offsetLeft,
        t[1] += l.offsetTop)
    }
    t[2] = t[0] / e.getWidth(),
    t[3] = t[1] / e.getHeight()
}
var Fft = function() {
    function t(e, n, r) {
        if (this._show = !1,
        this._styleCoord = [0, 0, 0, 0],
        this._enterable = !0,
        this._alwaysShowContent = !1,
        this._firstShow = !0,
        this._longHide = !0,
        nn.wxa)
            return null;
        var a = document.createElement("div");
        a.domBelongToZr = !0,
        this.el = a;
        var i = this._zr = n.getZr()
          , o = this._appendToBody = r && r.appendToBody;
        PU(this._styleCoord, i, o, n.getWidth() / 2, n.getHeight() / 2),
        o ? document.body.appendChild(a) : e.appendChild(a),
        this._container = e;
        var l = this;
        a.onmouseenter = function() {
            l._enterable && (clearTimeout(l._hideTimeout),
            l._show = !0),
            l._inContent = !0
        }
        ,
        a.onmousemove = function(s) {
            if (s = s || window.event,
            !l._enterable) {
                var u = i.handler
                  , c = i.painter.getViewportRoot();
                Ti(c, s, !0),
                u.dispatch("mousemove", s)
            }
        }
        ,
        a.onmouseleave = function() {
            l._inContent = !1,
            l._enterable && l._show && l.hideLater(l._hideDelay)
        }
    }
    return t.prototype.update = function(e) {
        var n = this._container
          , r = kft(n, "position")
          , a = n.style;
        a.position !== "absolute" && r !== "absolute" && (a.position = "relative");
        var i = e.get("alwaysShowContent");
        i && this._moveIfResized(),
        this._alwaysShowContent = i,
        this.el.className = e.get("className") || ""
    }
    ,
    t.prototype.show = function(e, n) {
        clearTimeout(this._hideTimeout),
        clearTimeout(this._longHideTimeout);
        var r = this.el
          , a = r.style
          , i = this._styleCoord;
        r.innerHTML ? a.cssText = Dft + $ft(e, !this._firstShow, this._longHide) + TU(i[0], i[1], !0) + ("border-color:" + Vf(n) + ";") + (e.get("extraCssText") || "") + (";pointer-events:" + (this._enterable ? "auto" : "none")) : a.display = "none",
        this._show = !0,
        this._firstShow = !1,
        this._longHide = !1
    }
    ,
    t.prototype.setContent = function(e, n, r, a, i) {
        var o = this.el;
        if (e == null) {
            o.innerHTML = "";
            return
        }
        var l = "";
        if (Ge(i) && r.get("trigger") === "item" && !Jce(r) && (l = Lft(r, a, i)),
        Ge(e))
            o.innerHTML = e + l;
        else if (e) {
            o.innerHTML = "",
            ke(e) || (e = [e]);
            for (var s = 0; s < e.length; s++)
                qv(e[s]) && e[s].parentNode !== o && o.appendChild(e[s]);
            if (l && o.childNodes.length) {
                var u = document.createElement("div");
                u.innerHTML = l,
                o.appendChild(u)
            }
        }
    }
    ,
    t.prototype.setEnterable = function(e) {
        this._enterable = e
    }
    ,
    t.prototype.getSize = function() {
        var e = this.el;
        return [e.offsetWidth, e.offsetHeight]
    }
    ,
    t.prototype.moveTo = function(e, n) {
        var r = this._styleCoord;
        if (PU(r, this._zr, this._appendToBody, e, n),
        r[0] != null && r[1] != null) {
            var a = this.el.style
              , i = TU(r[0], r[1]);
            Z(i, function(o) {
                a[o[0]] = o[1]
            })
        }
    }
    ,
    t.prototype._moveIfResized = function() {
        var e = this._styleCoord[2]
          , n = this._styleCoord[3];
        this.moveTo(e * this._zr.getWidth(), n * this._zr.getHeight())
    }
    ,
    t.prototype.hide = function() {
        var e = this
          , n = this.el.style;
        n.visibility = "hidden",
        n.opacity = "0",
        nn.transform3dSupported && (n.willChange = ""),
        this._show = !1,
        this._longHideTimeout = setTimeout(function() {
            return e._longHide = !0
        }, 500)
    }
    ,
    t.prototype.hideLater = function(e) {
        this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent && (e ? (this._hideDelay = e,
        this._show = !1,
        this._hideTimeout = setTimeout(qe(this.hide, this), e)) : this.hide())
    }
    ,
    t.prototype.isShow = function() {
        return this._show
    }
    ,
    t.prototype.dispose = function() {
        this.el.parentNode.removeChild(this.el)
    }
    ,
    t
}();
const Bft = Fft;
var Vft = function() {
    function t(e) {
        this._show = !1,
        this._styleCoord = [0, 0, 0, 0],
        this._alwaysShowContent = !1,
        this._enterable = !0,
        this._zr = e.getZr(),
        AU(this._styleCoord, this._zr, e.getWidth() / 2, e.getHeight() / 2)
    }
    return t.prototype.update = function(e) {
        var n = e.get("alwaysShowContent");
        n && this._moveIfResized(),
        this._alwaysShowContent = n
    }
    ,
    t.prototype.show = function() {
        this._hideTimeout && clearTimeout(this._hideTimeout),
        this.el.show(),
        this._show = !0
    }
    ,
    t.prototype.setContent = function(e, n, r, a, i) {
        var o = this;
        st(e) && cn(""),
        this.el && this._zr.remove(this.el);
        var l = r.getModel("textStyle");
        this.el = new Jt({
            style: {
                rich: n.richTextStyles,
                text: e,
                lineHeight: 22,
                borderWidth: 1,
                borderColor: a,
                textShadowColor: l.get("textShadowColor"),
                fill: r.get(["textStyle", "color"]),
                padding: ole(r, "richText"),
                verticalAlign: "top",
                align: "left"
            },
            z: r.get("z")
        }),
        Z(["backgroundColor", "borderRadius", "shadowColor", "shadowBlur", "shadowOffsetX", "shadowOffsetY"], function(u) {
            o.el.style[u] = r.get(u)
        }),
        Z(["textShadowBlur", "textShadowOffsetX", "textShadowOffsetY"], function(u) {
            o.el.style[u] = l.get(u) || 0
        }),
        this._zr.add(this.el);
        var s = this;
        this.el.on("mouseover", function() {
            s._enterable && (clearTimeout(s._hideTimeout),
            s._show = !0),
            s._inContent = !0
        }),
        this.el.on("mouseout", function() {
            s._enterable && s._show && s.hideLater(s._hideDelay),
            s._inContent = !1
        })
    }
    ,
    t.prototype.setEnterable = function(e) {
        this._enterable = e
    }
    ,
    t.prototype.getSize = function() {
        var e = this.el
          , n = this.el.getBoundingRect()
          , r = MU(e.style);
        return [n.width + r.left + r.right, n.height + r.top + r.bottom]
    }
    ,
    t.prototype.moveTo = function(e, n) {
        var r = this.el;
        if (r) {
            var a = this._styleCoord;
            AU(a, this._zr, e, n),
            e = a[0],
            n = a[1];
            var i = r.style
              , o = Gs(i.borderWidth || 0)
              , l = MU(i);
            r.x = e + o + l.left,
            r.y = n + o + l.top,
            r.markRedraw()
        }
    }
    ,
    t.prototype._moveIfResized = function() {
        var e = this._styleCoord[2]
          , n = this._styleCoord[3];
        this.moveTo(e * this._zr.getWidth(), n * this._zr.getHeight())
    }
    ,
    t.prototype.hide = function() {
        this.el && this.el.hide(),
        this._show = !1
    }
    ,
    t.prototype.hideLater = function(e) {
        this._show && !(this._inContent && this._enterable) && !this._alwaysShowContent && (e ? (this._hideDelay = e,
        this._show = !1,
        this._hideTimeout = setTimeout(qe(this.hide, this), e)) : this.hide())
    }
    ,
    t.prototype.isShow = function() {
        return this._show
    }
    ,
    t.prototype.dispose = function() {
        this._zr.remove(this.el)
    }
    ,
    t
}();
function Gs(t) {
    return Math.max(0, t)
}
function MU(t) {
    var e = Gs(t.shadowBlur || 0)
      , n = Gs(t.shadowOffsetX || 0)
      , r = Gs(t.shadowOffsetY || 0);
    return {
        left: Gs(e - n),
        right: Gs(e + n),
        top: Gs(e - r),
        bottom: Gs(e + r)
    }
}
function AU(t, e, n, r) {
    t[0] = n,
    t[1] = r,
    t[2] = t[0] / e.getWidth(),
    t[3] = t[1] / e.getHeight()
}
const zft = Vft;
var Hft = new tn({
    shape: {
        x: -1,
        y: -1,
        width: 2,
        height: 2
    }
})
  , jft = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function(n, r) {
        if (!(nn.node || !r.getDom())) {
            var a = n.getComponent("tooltip")
              , i = this._renderMode = LGe(a.get("renderMode"));
            this._tooltipContent = i === "richText" ? new zft(r) : new Bft(r.getDom(),r,{
                appendToBody: a.get("appendToBody", !0)
            })
        }
    }
    ,
    e.prototype.render = function(n, r, a) {
        if (!(nn.node || !a.getDom())) {
            this.group.removeAll(),
            this._tooltipModel = n,
            this._ecModel = r,
            this._api = a;
            var i = this._tooltipContent;
            i.update(n),
            i.setEnterable(n.get("enterable")),
            this._initGlobalListener(),
            this._keepShow(),
            this._renderMode !== "richText" && n.get("transitionDuration") ? Fh(this, "_updatePosition", 50, "fixRate") : U0(this, "_updatePosition")
        }
    }
    ,
    e.prototype._initGlobalListener = function() {
        var n = this._tooltipModel
          , r = n.get("triggerOn");
        Bce("itemTooltip", this._api, qe(function(a, i, o) {
            r !== "none" && (r.indexOf(a) >= 0 ? this._tryShow(i, o) : a === "leave" && this._hide(o))
        }, this))
    }
    ,
    e.prototype._keepShow = function() {
        var n = this._tooltipModel
          , r = this._ecModel
          , a = this._api
          , i = n.get("triggerOn");
        if (this._lastX != null && this._lastY != null && i !== "none" && i !== "click") {
            var o = this;
            clearTimeout(this._refreshUpdateTimeout),
            this._refreshUpdateTimeout = setTimeout(function() {
                !a.isDisposed() && o.manuallyShowTip(n, r, a, {
                    x: o._lastX,
                    y: o._lastY,
                    dataByCoordSys: o._lastDataByCoordSys
                })
            })
        }
    }
    ,
    e.prototype.manuallyShowTip = function(n, r, a, i) {
        if (!(i.from === this.uid || nn.node || !a.getDom())) {
            var o = IU(i, a);
            this._ticket = "";
            var l = i.dataByCoordSys
              , s = Uft(i, r, a);
            if (s) {
                var u = s.el.getBoundingRect().clone();
                u.applyTransform(s.el.transform),
                this._tryShow({
                    offsetX: u.x + u.width / 2,
                    offsetY: u.y + u.height / 2,
                    target: s.el,
                    position: i.position,
                    positionDefault: "bottom"
                }, o)
            } else if (i.tooltip && i.x != null && i.y != null) {
                var c = Hft;
                c.x = i.x,
                c.y = i.y,
                c.update(),
                Ct(c).tooltipConfig = {
                    name: null,
                    option: i.tooltip
                },
                this._tryShow({
                    offsetX: i.x,
                    offsetY: i.y,
                    target: c
                }, o)
            } else if (l)
                this._tryShow({
                    offsetX: i.x,
                    offsetY: i.y,
                    position: i.position,
                    dataByCoordSys: l,
                    tooltipOption: i.tooltipOption
                }, o);
            else if (i.seriesIndex != null) {
                if (this._manuallyAxisShowTip(n, r, a, i))
                    return;
                var f = Vce(i, r)
                  , d = f.point[0]
                  , v = f.point[1];
                d != null && v != null && this._tryShow({
                    offsetX: d,
                    offsetY: v,
                    target: f.el,
                    position: i.position,
                    positionDefault: "bottom"
                }, o)
            } else
                i.x != null && i.y != null && (a.dispatchAction({
                    type: "updateAxisPointer",
                    x: i.x,
                    y: i.y
                }),
                this._tryShow({
                    offsetX: i.x,
                    offsetY: i.y,
                    position: i.position,
                    target: a.getZr().findHover(i.x, i.y).target
                }, o))
        }
    }
    ,
    e.prototype.manuallyHideTip = function(n, r, a, i) {
        var o = this._tooltipContent;
        this._tooltipModel && o.hideLater(this._tooltipModel.get("hideDelay")),
        this._lastX = this._lastY = this._lastDataByCoordSys = null,
        i.from !== this.uid && this._hide(IU(i, a))
    }
    ,
    e.prototype._manuallyAxisShowTip = function(n, r, a, i) {
        var o = i.seriesIndex
          , l = i.dataIndex
          , s = r.getComponent("axisPointer").coordSysAxesInfo;
        if (!(o == null || l == null || s == null)) {
            var u = r.getSeriesByIndex(o);
            if (!!u) {
                var c = u.getData()
                  , f = Ep([c.getItemModel(l), u, (u.coordinateSystem || {}).model], this._tooltipModel);
                if (f.get("trigger") === "axis")
                    return a.dispatchAction({
                        type: "updateAxisPointer",
                        seriesIndex: o,
                        dataIndex: l,
                        position: i.position
                    }),
                    !0
            }
        }
    }
    ,
    e.prototype._tryShow = function(n, r) {
        var a = n.target
          , i = this._tooltipModel;
        if (!!i) {
            this._lastX = n.offsetX,
            this._lastY = n.offsetY;
            var o = n.dataByCoordSys;
            if (o && o.length)
                this._showAxisTooltip(o, n);
            else if (a) {
                this._lastDataByCoordSys = null;
                var l, s;
                of(a, function(u) {
                    if (Ct(u).dataIndex != null)
                        return l = u,
                        !0;
                    if (Ct(u).tooltipConfig != null)
                        return s = u,
                        !0
                }, !0),
                l ? this._showSeriesItemTooltip(n, l, r) : s ? this._showComponentItemTooltip(n, s, r) : this._hide(r)
            } else
                this._lastDataByCoordSys = null,
                this._hide(r)
        }
    }
    ,
    e.prototype._showOrMove = function(n, r) {
        var a = n.get("showDelay");
        r = qe(r, this),
        clearTimeout(this._showTimout),
        a > 0 ? this._showTimout = setTimeout(r, a) : r()
    }
    ,
    e.prototype._showAxisTooltip = function(n, r) {
        var a = this._ecModel
          , i = this._tooltipModel
          , o = [r.offsetX, r.offsetY]
          , l = Ep([r.tooltipOption], i)
          , s = this._renderMode
          , u = []
          , c = $r("section", {
            blocks: [],
            noHeader: !0
        })
          , f = []
          , d = new ZP;
        Z(n, function(y) {
            Z(y.dataByAxis, function(b) {
                var x = a.getComponent(b.axisDim + "Axis", b.axisIndex)
                  , C = b.value;
                if (!(!x || C == null)) {
                    var S = Nce(C, x.axis, a, b.seriesDataIndices, b.valueLabelOpt)
                      , w = $r("section", {
                        header: S,
                        noHeader: !Di(S),
                        sortBlocks: !0,
                        blocks: []
                    });
                    c.blocks.push(w),
                    Z(b.seriesDataIndices, function(T) {
                        var P = a.getSeriesByIndex(T.seriesIndex)
                          , M = T.dataIndexInside
                          , A = P.getDataParams(M);
                        if (!(A.dataIndex < 0)) {
                            A.axisDim = b.axisDim,
                            A.axisIndex = b.axisIndex,
                            A.axisType = b.axisType,
                            A.axisId = b.axisId,
                            A.axisValue = R5(x.axis, {
                                value: C
                            }),
                            A.axisValueLabel = S,
                            A.marker = d.makeTooltipMarker("item", Vf(A.color), s);
                            var O = pj(P.formatTooltip(M, !0, null))
                              , k = O.frag;
                            if (k) {
                                var D = Ep([P], i).get("valueFormatter");
                                w.blocks.push(D ? Me({
                                    valueFormatter: D
                                }, k) : k)
                            }
                            O.text && f.push(O.text),
                            u.push(A)
                        }
                    })
                }
            })
        }),
        c.blocks.reverse(),
        f.reverse();
        var v = r.position
          , h = l.get("order")
          , p = Sj(c, d, s, h, a.get("useUTC"), l.get("textStyle"));
        p && f.unshift(p);
        var g = s === "richText" ? `

` : "<br/>"
          , m = f.join(g);
        this._showOrMove(l, function() {
            this._updateContentNotChangedOnAxis(n, u) ? this._updatePosition(l, v, o[0], o[1], this._tooltipContent, u) : this._showTooltipContent(l, m, u, Math.random() + "", o[0], o[1], v, null, d)
        })
    }
    ,
    e.prototype._showSeriesItemTooltip = function(n, r, a) {
        var i = this._ecModel
          , o = Ct(r)
          , l = o.seriesIndex
          , s = i.getSeriesByIndex(l)
          , u = o.dataModel || s
          , c = o.dataIndex
          , f = o.dataType
          , d = u.getData(f)
          , v = this._renderMode
          , h = n.positionDefault
          , p = Ep([d.getItemModel(c), u, s && (s.coordinateSystem || {}).model], this._tooltipModel, h ? {
            position: h
        } : null)
          , g = p.get("trigger");
        if (!(g != null && g !== "item")) {
            var m = u.getDataParams(c, f)
              , y = new ZP;
            m.marker = y.makeTooltipMarker("item", Vf(m.color), v);
            var b = pj(u.formatTooltip(c, !1, f))
              , x = p.get("order")
              , C = p.get("valueFormatter")
              , S = b.frag
              , w = S ? Sj(C ? Me({
                valueFormatter: C
            }, S) : S, y, v, x, i.get("useUTC"), p.get("textStyle")) : b.text
              , T = "item_" + u.name + "_" + c;
            this._showOrMove(p, function() {
                this._showTooltipContent(p, w, m, T, n.offsetX, n.offsetY, n.position, n.target, y)
            }),
            a({
                type: "showTip",
                dataIndexInside: c,
                dataIndex: d.getRawIndex(c),
                seriesIndex: l,
                from: this.uid
            })
        }
    }
    ,
    e.prototype._showComponentItemTooltip = function(n, r, a) {
        var i = Ct(r)
          , o = i.tooltipConfig
          , l = o.option || {};
        if (Ge(l)) {
            var s = l;
            l = {
                content: s,
                formatter: s
            }
        }
        var u = [l]
          , c = this._ecModel.getComponent(i.componentMainType, i.componentIndex);
        c && u.push(c),
        u.push({
            formatter: l.content
        });
        var f = n.positionDefault
          , d = Ep(u, this._tooltipModel, f ? {
            position: f
        } : null)
          , v = d.get("content")
          , h = Math.random() + ""
          , p = new ZP;
        this._showOrMove(d, function() {
            var g = ut(d.get("formatterParams") || {});
            this._showTooltipContent(d, v, g, h, n.offsetX, n.offsetY, n.position, r, p)
        }),
        a({
            type: "showTip",
            from: this.uid
        })
    }
    ,
    e.prototype._showTooltipContent = function(n, r, a, i, o, l, s, u, c) {
        if (this._ticket = "",
        !(!n.get("showContent") || !n.get("show"))) {
            var f = this._tooltipContent;
            f.setEnterable(n.get("enterable"));
            var d = n.get("formatter");
            s = s || n.get("position");
            var v = r
              , h = this._getNearestPoint([o, l], a, n.get("trigger"), n.get("borderColor"))
              , p = h.color;
            if (d)
                if (Ge(d)) {
                    var g = n.ecModel.get("useUTC")
                      , m = ke(a) ? a[0] : a
                      , y = m && m.axisType && m.axisType.indexOf("time") >= 0;
                    v = d,
                    y && (v = ey(m.axisValue, v, g)),
                    v = o5(v, a, !0)
                } else if (et(d)) {
                    var b = qe(function(x, C) {
                        x === this._ticket && (f.setContent(C, c, n, p, s),
                        this._updatePosition(n, s, o, l, f, a, u))
                    }, this);
                    this._ticket = i,
                    v = d(a, i, b)
                } else
                    v = d;
            f.setContent(v, c, n, p, s),
            f.show(n, p),
            this._updatePosition(n, s, o, l, f, a, u)
        }
    }
    ,
    e.prototype._getNearestPoint = function(n, r, a, i) {
        if (a === "axis" || ke(r))
            return {
                color: i || (this._renderMode === "html" ? "#fff" : "none")
            };
        if (!ke(r))
            return {
                color: i || r.color || r.borderColor
            }
    }
    ,
    e.prototype._updatePosition = function(n, r, a, i, o, l, s) {
        var u = this._api.getWidth()
          , c = this._api.getHeight();
        r = r || n.get("position");
        var f = o.getSize()
          , d = n.get("align")
          , v = n.get("verticalAlign")
          , h = s && s.getBoundingRect().clone();
        if (s && h.applyTransform(s.transform),
        et(r) && (r = r([a, i], l, o.el, h, {
            viewSize: [u, c],
            contentSize: f.slice()
        })),
        ke(r))
            a = He(r[0], u),
            i = He(r[1], c);
        else if (st(r)) {
            var p = r;
            p.width = f[0],
            p.height = f[1];
            var g = xr(p, {
                width: u,
                height: c
            });
            a = g.x,
            i = g.y,
            d = null,
            v = null
        } else if (Ge(r) && s) {
            var m = Kft(r, h, f, n.get("borderWidth"));
            a = m[0],
            i = m[1]
        } else {
            var m = Wft(a, i, o, u, c, d ? null : 20, v ? null : 20);
            a = m[0],
            i = m[1]
        }
        if (d && (a -= kU(d) ? f[0] / 2 : d === "right" ? f[0] : 0),
        v && (i -= kU(v) ? f[1] / 2 : v === "bottom" ? f[1] : 0),
        Jce(n)) {
            var m = Gft(a, i, o, u, c);
            a = m[0],
            i = m[1]
        }
        o.moveTo(a, i)
    }
    ,
    e.prototype._updateContentNotChangedOnAxis = function(n, r) {
        var a = this._lastDataByCoordSys
          , i = this._cbParamsList
          , o = !!a && a.length === n.length;
        return o && Z(a, function(l, s) {
            var u = l.dataByAxis || []
              , c = n[s] || {}
              , f = c.dataByAxis || [];
            o = o && u.length === f.length,
            o && Z(u, function(d, v) {
                var h = f[v] || {}
                  , p = d.seriesDataIndices || []
                  , g = h.seriesDataIndices || [];
                o = o && d.value === h.value && d.axisType === h.axisType && d.axisId === h.axisId && p.length === g.length,
                o && Z(p, function(m, y) {
                    var b = g[y];
                    o = o && m.seriesIndex === b.seriesIndex && m.dataIndex === b.dataIndex
                }),
                i && Z(d.seriesDataIndices, function(m) {
                    var y = m.seriesIndex
                      , b = r[y]
                      , x = i[y];
                    b && x && x.data !== b.data && (o = !1)
                })
            })
        }),
        this._lastDataByCoordSys = n,
        this._cbParamsList = r,
        !!o
    }
    ,
    e.prototype._hide = function(n) {
        this._lastDataByCoordSys = null,
        n({
            type: "hideTip",
            from: this.uid
        })
    }
    ,
    e.prototype.dispose = function(n, r) {
        nn.node || !r.getDom() || (U0(this, "_updatePosition"),
        this._tooltipContent.dispose(),
        Ck("itemTooltip", r))
    }
    ,
    e.type = "tooltip",
    e
}(Bn);
function Ep(t, e, n) {
    var r = e.ecModel, a;
    n ? (a = new wn(n,r,r),
    a = new wn(e.option,a,r)) : a = e;
    for (var i = t.length - 1; i >= 0; i--) {
        var o = t[i];
        o && (o instanceof wn && (o = o.get("tooltip", !0)),
        Ge(o) && (o = {
            formatter: o
        }),
        o && (a = new wn(o,a,r)))
    }
    return a
}
function IU(t, e) {
    return t.dispatchAction || qe(e.dispatchAction, e)
}
function Wft(t, e, n, r, a, i, o) {
    var l = n.getSize()
      , s = l[0]
      , u = l[1];
    return i != null && (t + s + i + 2 > r ? t -= s + i : t += i),
    o != null && (e + u + o > a ? e -= u + o : e += o),
    [t, e]
}
function Gft(t, e, n, r, a) {
    var i = n.getSize()
      , o = i[0]
      , l = i[1];
    return t = Math.min(t + o, r) - o,
    e = Math.min(e + l, a) - l,
    t = Math.max(t, 0),
    e = Math.max(e, 0),
    [t, e]
}
function Kft(t, e, n, r) {
    var a = n[0]
      , i = n[1]
      , o = Math.ceil(Math.SQRT2 * r) + 8
      , l = 0
      , s = 0
      , u = e.width
      , c = e.height;
    switch (t) {
    case "inside":
        l = e.x + u / 2 - a / 2,
        s = e.y + c / 2 - i / 2;
        break;
    case "top":
        l = e.x + u / 2 - a / 2,
        s = e.y - i - o;
        break;
    case "bottom":
        l = e.x + u / 2 - a / 2,
        s = e.y + c + o;
        break;
    case "left":
        l = e.x - a - o,
        s = e.y + c / 2 - i / 2;
        break;
    case "right":
        l = e.x + u + o,
        s = e.y + c / 2 - i / 2
    }
    return [l, s]
}
function kU(t) {
    return t === "center" || t === "middle"
}
function Uft(t, e, n) {
    var r = F6(t).queryOptionMap
      , a = r.keys()[0];
    if (!(!a || a === "series")) {
        var i = Um(e, a, r.get(a), {
            useDefault: !1,
            enableAll: !1,
            enableNone: !1
        })
          , o = i.models[0];
        if (!!o) {
            var l = n.getViewOfComponentModel(o), s;
            if (l.group.traverse(function(u) {
                var c = Ct(u).tooltipConfig;
                if (c && c.name === t.name)
                    return s = u,
                    !0
            }),
            s)
                return {
                    componentMainType: a,
                    componentIndex: o.componentIndex,
                    el: s
                }
        }
    }
}
const Yft = jft;
function qft(t) {
    Bt(fy),
    t.registerComponentModel(Aft),
    t.registerComponentView(Yft),
    t.registerAction({
        type: "showTip",
        event: "showTip",
        update: "tooltip:manuallyShowTip"
    }, nr),
    t.registerAction({
        type: "hideTip",
        event: "hideTip",
        update: "tooltip:manuallyHideTip"
    }, nr)
}
var Xft = ["rect", "polygon", "keep", "clear"];
function Zft(t, e) {
    var n = _n(t ? t.brush : []);
    if (!!n.length) {
        var r = [];
        Z(n, function(s) {
            var u = s.hasOwnProperty("toolbox") ? s.toolbox : [];
            u instanceof Array && (r = r.concat(u))
        });
        var a = t && t.toolbox;
        ke(a) && (a = a[0]),
        a || (a = {
            feature: {}
        },
        t.toolbox = [a]);
        var i = a.feature || (a.feature = {})
          , o = i.brush || (i.brush = {})
          , l = o.type || (o.type = []);
        l.push.apply(l, r),
        Qft(l),
        e && !l.length && l.push.apply(l, Xft)
    }
}
function Qft(t) {
    var e = {};
    Z(t, function(n) {
        e[n] = 1
    }),
    t.length = 0,
    Z(e, function(n, r) {
        t.push(r)
    })
}
var OU = Z;
function DU(t) {
    if (t) {
        for (var e in t)
            if (t.hasOwnProperty(e))
                return !0
    }
}
function Ak(t, e, n) {
    var r = {};
    return OU(e, function(i) {
        var o = r[i] = a();
        OU(t[i], function(l, s) {
            if (!!Xr.isValidType(s)) {
                var u = {
                    type: s,
                    visual: l
                };
                n && n(u, i),
                o[s] = new Xr(u),
                s === "opacity" && (u = ut(u),
                u.type = "colorAlpha",
                o.__hidden.__alphaForOpacity = new Xr(u))
            }
        })
    }),
    r;
    function a() {
        var i = function() {};
        i.prototype.__hidden = i.prototype;
        var o = new i;
        return o
    }
}
function rfe(t, e, n) {
    var r;
    Z(n, function(a) {
        e.hasOwnProperty(a) && DU(e[a]) && (r = !0)
    }),
    r && Z(n, function(a) {
        e.hasOwnProperty(a) && DU(e[a]) ? t[a] = ut(e[a]) : delete t[a]
    })
}
function Jft(t, e, n, r, a, i) {
    var o = {};
    Z(t, function(f) {
        var d = Xr.prepareVisualTypes(e[f]);
        o[f] = d
    });
    var l;
    function s(f) {
        return y5(n, l, f)
    }
    function u(f, d) {
        gle(n, l, f, d)
    }
    i == null ? n.each(c) : n.each([i], c);
    function c(f, d) {
        l = i == null ? f : d;
        var v = n.getRawDataItem(l);
        if (!(v && v.visualMap === !1))
            for (var h = r.call(a, f), p = e[h], g = o[h], m = 0, y = g.length; m < y; m++) {
                var b = g[m];
                p[b] && p[b].applyVisual(f, s, u)
            }
    }
}
function edt(t, e, n, r) {
    var a = {};
    return Z(t, function(i) {
        var o = Xr.prepareVisualTypes(e[i]);
        a[i] = o
    }),
    {
        progress: function(o, l) {
            var s;
            r != null && (s = l.getDimensionIndex(r));
            function u(C) {
                return y5(l, f, C)
            }
            function c(C, S) {
                gle(l, f, C, S)
            }
            for (var f, d = l.getStore(); (f = o.next()) != null; ) {
                var v = l.getRawDataItem(f);
                if (!(v && v.visualMap === !1))
                    for (var h = r != null ? d.get(s, f) : f, p = n(h), g = e[p], m = a[p], y = 0, b = m.length; y < b; y++) {
                        var x = m[y];
                        g[x] && g[x].applyVisual(h, u, c)
                    }
            }
        }
    }
}
function tdt(t) {
    var e = t.brushType
      , n = {
        point: function(r) {
            return EU[e].point(r, n, t)
        },
        rect: function(r) {
            return EU[e].rect(r, n, t)
        }
    };
    return n
}
var EU = {
    lineX: LU(0),
    lineY: LU(1),
    rect: {
        point: function(t, e, n) {
            return t && n.boundingRect.contain(t[0], t[1])
        },
        rect: function(t, e, n) {
            return t && n.boundingRect.intersect(t)
        }
    },
    polygon: {
        point: function(t, e, n) {
            return t && n.boundingRect.contain(t[0], t[1]) && Yc(n.range, t[0], t[1])
        },
        rect: function(t, e, n) {
            var r = n.range;
            if (!t || r.length <= 1)
                return !1;
            var a = t.x
              , i = t.y
              , o = t.width
              , l = t.height
              , s = r[0];
            if (Yc(r, a, i) || Yc(r, a + o, i) || Yc(r, a, i + l) || Yc(r, a + o, i + l) || Dt.create(t).contain(s[0], s[1]) || Zp(a, i, a + o, i, r) || Zp(a, i, a, i + l, r) || Zp(a + o, i, a + o, i + l, r) || Zp(a, i + l, a + o, i + l, r))
                return !0
        }
    }
};
function LU(t) {
    var e = ["x", "y"]
      , n = ["width", "height"];
    return {
        point: function(r, a, i) {
            if (r) {
                var o = i.range
                  , l = r[t];
                return Lp(l, o)
            }
        },
        rect: function(r, a, i) {
            if (r) {
                var o = i.range
                  , l = [r[e[t]], r[e[t]] + r[n[t]]];
                return l[1] < l[0] && l.reverse(),
                Lp(l[0], o) || Lp(l[1], o) || Lp(o[0], l) || Lp(o[1], l)
            }
        }
    }
}
function Lp(t, e) {
    return e[0] <= t && t <= e[1]
}
var RU = ["inBrush", "outOfBrush"]
  , v3 = "__ecBrushSelect"
  , Ik = "__ecInBrushSelectEvent";
function afe(t) {
    t.eachComponent({
        mainType: "brush"
    }, function(e) {
        var n = e.brushTargetManager = new OL(e.option,t);
        n.setInputRanges(e.areas, t)
    })
}
function ndt(t, e, n) {
    var r = [], a, i;
    t.eachComponent({
        mainType: "brush"
    }, function(o) {
        n && n.type === "takeGlobalCursor" && o.setBrushOption(n.key === "brush" ? n.brushOption : {
            brushType: !1
        })
    }),
    afe(t),
    t.eachComponent({
        mainType: "brush"
    }, function(o, l) {
        var s = {
            brushId: o.id,
            brushIndex: l,
            brushName: o.name,
            areas: ut(o.areas),
            selected: []
        };
        r.push(s);
        var u = o.option
          , c = u.brushLink
          , f = []
          , d = []
          , v = []
          , h = !1;
        l || (a = u.throttleType,
        i = u.throttleDelay);
        var p = Le(o.areas, function(C) {
            var S = odt[C.brushType]
              , w = ot({
                boundingRect: S ? S(C) : void 0
            }, C);
            return w.selectors = tdt(w),
            w
        })
          , g = Ak(o.option, RU, function(C) {
            C.mappingMethod = "fixed"
        });
        ke(c) && Z(c, function(C) {
            f[C] = 1
        });
        function m(C) {
            return c === "all" || !!f[C]
        }
        function y(C) {
            return !!C.length
        }
        t.eachSeries(function(C, S) {
            var w = v[S] = [];
            C.subType === "parallel" ? b(C, S) : x(C, S, w)
        });
        function b(C, S) {
            var w = C.coordinateSystem;
            h = h || w.hasAxisBrushed(),
            m(S) && w.eachActiveState(C.getData(), function(T, P) {
                T === "active" && (d[P] = 1)
            })
        }
        function x(C, S, w) {
            if (!(!C.brushSelector || idt(o, S)) && (Z(p, function(P) {
                o.brushTargetManager.controlSeries(P, C, t) && w.push(P),
                h = h || y(w)
            }),
            m(S) && y(w))) {
                var T = C.getData();
                T.each(function(P) {
                    NU(C, w, T, P) && (d[P] = 1)
                })
            }
        }
        t.eachSeries(function(C, S) {
            var w = {
                seriesId: C.id,
                seriesIndex: S,
                seriesName: C.name,
                dataIndex: []
            };
            s.selected.push(w);
            var T = v[S]
              , P = C.getData()
              , M = m(S) ? function(A) {
                return d[A] ? (w.dataIndex.push(P.getRawIndex(A)),
                "inBrush") : "outOfBrush"
            }
            : function(A) {
                return NU(C, T, P, A) ? (w.dataIndex.push(P.getRawIndex(A)),
                "inBrush") : "outOfBrush"
            }
            ;
            (m(S) ? h : y(T)) && Jft(RU, g, P, M)
        })
    }),
    rdt(e, a, i, r, n)
}
function rdt(t, e, n, r, a) {
    if (!!a) {
        var i = t.getZr();
        if (!i[Ik]) {
            i[v3] || (i[v3] = adt);
            var o = Fh(i, v3, n, e);
            o(t, r)
        }
    }
}
function adt(t, e) {
    if (!t.isDisposed()) {
        var n = t.getZr();
        n[Ik] = !0,
        t.dispatchAction({
            type: "brushSelect",
            batch: e
        }),
        n[Ik] = !1
    }
}
function NU(t, e, n, r) {
    for (var a = 0, i = e.length; a < i; a++) {
        var o = e[a];
        if (t.brushSelector(r, n, o.selectors, o))
            return !0
    }
}
function idt(t, e) {
    var n = t.option.seriesIndex;
    return n != null && n !== "all" && (ke(n) ? Rt(n, e) < 0 : e !== n)
}
var odt = {
    rect: function(t) {
        return $U(t.range)
    },
    polygon: function(t) {
        for (var e, n = t.range, r = 0, a = n.length; r < a; r++) {
            e = e || [[1 / 0, -1 / 0], [1 / 0, -1 / 0]];
            var i = n[r];
            i[0] < e[0][0] && (e[0][0] = i[0]),
            i[0] > e[0][1] && (e[0][1] = i[0]),
            i[1] < e[1][0] && (e[1][0] = i[1]),
            i[1] > e[1][1] && (e[1][1] = i[1])
        }
        return e && $U(e)
    }
};
function $U(t) {
    return new Dt(t[0][0],t[1][0],t[0][1] - t[0][0],t[1][1] - t[1][0])
}
var ldt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function(n, r) {
        this.ecModel = n,
        this.api = r,
        this.model,
        (this._brushController = new fL(r.getZr())).on("brush", qe(this._onBrush, this)).mount()
    }
    ,
    e.prototype.render = function(n, r, a, i) {
        this.model = n,
        this._updateController(n, r, a, i)
    }
    ,
    e.prototype.updateTransform = function(n, r, a, i) {
        afe(r),
        this._updateController(n, r, a, i)
    }
    ,
    e.prototype.updateVisual = function(n, r, a, i) {
        this.updateTransform(n, r, a, i)
    }
    ,
    e.prototype.updateView = function(n, r, a, i) {
        this._updateController(n, r, a, i)
    }
    ,
    e.prototype._updateController = function(n, r, a, i) {
        (!i || i.$from !== n.id) && this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())
    }
    ,
    e.prototype.dispose = function() {
        this._brushController.dispose()
    }
    ,
    e.prototype._onBrush = function(n) {
        var r = this.model.id
          , a = this.model.brushTargetManager.setOutputRanges(n.areas, this.ecModel);
        (!n.isEnd || n.removeOnClick) && this.api.dispatchAction({
            type: "brush",
            brushId: r,
            areas: ut(a),
            $from: r
        }),
        n.isEnd && this.api.dispatchAction({
            type: "brushEnd",
            brushId: r,
            areas: ut(a),
            $from: r
        })
    }
    ,
    e.type = "brush",
    e
}(Bn);
const sdt = ldt;
var udt = "#ddd"
  , cdt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.areas = [],
        n.brushOption = {},
        n
    }
    return e.prototype.optionUpdated = function(n, r) {
        var a = this.option;
        !r && rfe(a, n, ["inBrush", "outOfBrush"]);
        var i = a.inBrush = a.inBrush || {};
        a.outOfBrush = a.outOfBrush || {
            color: udt
        },
        i.hasOwnProperty("liftZ") || (i.liftZ = 5)
    }
    ,
    e.prototype.setAreas = function(n) {
        !n || (this.areas = Le(n, function(r) {
            return FU(this.option, r)
        }, this))
    }
    ,
    e.prototype.setBrushOption = function(n) {
        this.brushOption = FU(this.option, n),
        this.brushType = this.brushOption.brushType
    }
    ,
    e.type = "brush",
    e.dependencies = ["geo", "grid", "xAxis", "yAxis", "parallel", "series"],
    e.defaultOption = {
        seriesIndex: "all",
        brushType: "rect",
        brushMode: "single",
        transformable: !0,
        brushStyle: {
            borderWidth: 1,
            color: "rgba(210,219,238,0.3)",
            borderColor: "#D2DBEE"
        },
        throttleType: "fixRate",
        throttleDelay: 0,
        removeOnClick: !0,
        z: 1e4
    },
    e
}(qt);
function FU(t, e) {
    return At({
        brushType: t.brushType,
        brushMode: t.brushMode,
        transformable: t.transformable,
        brushStyle: new wn(t.brushStyle).getItemStyle(),
        removeOnClick: t.removeOnClick,
        z: t.z
    }, e, !0)
}
const fdt = cdt;
var ddt = ["rect", "polygon", "lineX", "lineY", "keep", "clear"]
  , vdt = function(t) {
    ge(e, t);
    function e() {
        return t !== null && t.apply(this, arguments) || this
    }
    return e.prototype.render = function(n, r, a) {
        var i, o, l;
        r.eachComponent({
            mainType: "brush"
        }, function(s) {
            i = s.brushType,
            o = s.brushOption.brushMode || "single",
            l = l || !!s.areas.length
        }),
        this._brushType = i,
        this._brushMode = o,
        Z(n.get("type", !0), function(s) {
            n.setIconStatus(s, (s === "keep" ? o === "multiple" : s === "clear" ? l : s === i) ? "emphasis" : "normal")
        })
    }
    ,
    e.prototype.updateView = function(n, r, a) {
        this.render(n, r, a)
    }
    ,
    e.prototype.getIcons = function() {
        var n = this.model
          , r = n.get("icon", !0)
          , a = {};
        return Z(n.get("type", !0), function(i) {
            r[i] && (a[i] = r[i])
        }),
        a
    }
    ,
    e.prototype.onclick = function(n, r, a) {
        var i = this._brushType
          , o = this._brushMode;
        a === "clear" ? (r.dispatchAction({
            type: "axisAreaSelect",
            intervals: []
        }),
        r.dispatchAction({
            type: "brush",
            command: "clear",
            areas: []
        })) : r.dispatchAction({
            type: "takeGlobalCursor",
            key: "brush",
            brushOption: {
                brushType: a === "keep" ? i : i === a ? !1 : a,
                brushMode: a === "keep" ? o === "multiple" ? "single" : "multiple" : o
            }
        })
    }
    ,
    e.getDefaultOption = function(n) {
        var r = {
            show: !0,
            type: ddt.slice(),
            icon: {
                rect: "M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",
                polygon: "M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",
                lineX: "M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",
                lineY: "M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",
                keep: "M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",
                clear: "M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"
            },
            title: n.getLocaleModel().get(["toolbox", "brush", "title"])
        };
        return r
    }
    ,
    e
}(ki);
const hdt = vdt;
function pdt(t) {
    t.registerComponentView(sdt),
    t.registerComponentModel(fdt),
    t.registerPreprocessor(Zft),
    t.registerVisual(t.PRIORITY.VISUAL.BRUSH, ndt),
    t.registerAction({
        type: "brush",
        event: "brush",
        update: "updateVisual"
    }, function(e, n) {
        n.eachComponent({
            mainType: "brush",
            query: e
        }, function(r) {
            r.setAreas(e.areas)
        })
    }),
    t.registerAction({
        type: "brushSelect",
        event: "brushSelected",
        update: "none"
    }, nr),
    t.registerAction({
        type: "brushEnd",
        event: "brushEnd",
        update: "none"
    }, nr),
    Xd("brush", hdt)
}
var gdt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.layoutMode = {
            type: "box",
            ignoreSize: !0
        },
        n
    }
    return e.type = "title",
    e.defaultOption = {
        z: 6,
        show: !0,
        text: "",
        target: "blank",
        subtext: "",
        subtarget: "blank",
        left: 0,
        top: 0,
        backgroundColor: "rgba(0,0,0,0)",
        borderColor: "#ccc",
        borderWidth: 0,
        padding: 5,
        itemGap: 10,
        textStyle: {
            fontSize: 18,
            fontWeight: "bold",
            color: "#464646"
        },
        subtextStyle: {
            fontSize: 12,
            color: "#6E7079"
        }
    },
    e
}(qt)
  , mdt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.render = function(n, r, a) {
        if (this.group.removeAll(),
        !!n.get("show")) {
            var i = this.group
              , o = n.getModel("textStyle")
              , l = n.getModel("subtextStyle")
              , s = n.get("textAlign")
              , u = Ot(n.get("textBaseline"), n.get("textVerticalAlign"))
              , c = new Jt({
                style: In(o, {
                    text: n.get("text"),
                    fill: o.getTextColor()
                }, {
                    disableBox: !0
                }),
                z2: 10
            })
              , f = c.getBoundingRect()
              , d = n.get("subtext")
              , v = new Jt({
                style: In(l, {
                    text: d,
                    fill: l.getTextColor(),
                    y: f.height + n.get("itemGap"),
                    verticalAlign: "top"
                }, {
                    disableBox: !0
                }),
                z2: 10
            })
              , h = n.get("link")
              , p = n.get("sublink")
              , g = n.get("triggerEvent", !0);
            c.silent = !h && !g,
            v.silent = !p && !g,
            h && c.on("click", function() {
                RS(h, "_" + n.get("target"))
            }),
            p && v.on("click", function() {
                RS(p, "_" + n.get("subtarget"))
            }),
            Ct(c).eventData = Ct(v).eventData = g ? {
                componentType: "title",
                componentIndex: n.componentIndex
            } : null,
            i.add(c),
            d && i.add(v);
            var m = i.getBoundingRect()
              , y = n.getBoxLayoutParams();
            y.width = m.width,
            y.height = m.height;
            var b = xr(y, {
                width: a.getWidth(),
                height: a.getHeight()
            }, n.get("padding"));
            s || (s = n.get("left") || n.get("right"),
            s === "middle" && (s = "center"),
            s === "right" ? b.x += b.width : s === "center" && (b.x += b.width / 2)),
            u || (u = n.get("top") || n.get("bottom"),
            u === "center" && (u = "middle"),
            u === "bottom" ? b.y += b.height : u === "middle" && (b.y += b.height / 2),
            u = u || "top"),
            i.x = b.x,
            i.y = b.y,
            i.markRedraw();
            var x = {
                align: s,
                verticalAlign: u
            };
            c.setStyle(x),
            v.setStyle(x),
            m = i.getBoundingRect();
            var C = b.margin
              , S = n.getItemStyle(["color", "opacity"]);
            S.fill = n.get("backgroundColor");
            var w = new tn({
                shape: {
                    x: m.x - C[3],
                    y: m.y - C[0],
                    width: m.width + C[1] + C[3],
                    height: m.height + C[0] + C[2],
                    r: n.get("borderRadius")
                },
                style: S,
                subPixelOptimize: !0,
                silent: !0
            });
            i.add(w)
        }
    }
    ,
    e.type = "title",
    e
}(Bn);
function ydt(t) {
    t.registerComponentModel(gdt),
    t.registerComponentView(mdt)
}
var bdt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.layoutMode = "box",
        n
    }
    return e.prototype.init = function(n, r, a) {
        this.mergeDefaultAndTheme(n, a),
        this._initData()
    }
    ,
    e.prototype.mergeOption = function(n) {
        t.prototype.mergeOption.apply(this, arguments),
        this._initData()
    }
    ,
    e.prototype.setCurrentIndex = function(n) {
        n == null && (n = this.option.currentIndex);
        var r = this._data.count();
        this.option.loop ? n = (n % r + r) % r : (n >= r && (n = r - 1),
        n < 0 && (n = 0)),
        this.option.currentIndex = n
    }
    ,
    e.prototype.getCurrentIndex = function() {
        return this.option.currentIndex
    }
    ,
    e.prototype.isIndexMax = function() {
        return this.getCurrentIndex() >= this._data.count() - 1
    }
    ,
    e.prototype.setPlayState = function(n) {
        this.option.autoPlay = !!n
    }
    ,
    e.prototype.getPlayState = function() {
        return !!this.option.autoPlay
    }
    ,
    e.prototype._initData = function() {
        var n = this.option, r = n.data || [], a = n.axisType, i = this._names = [], o;
        a === "category" ? (o = [],
        Z(r, function(u, c) {
            var f = _r(Th(u), ""), d;
            st(u) ? (d = ut(u),
            d.value = c) : d = c,
            o.push(d),
            i.push(f)
        })) : o = r;
        var l = {
            category: "ordinal",
            time: "time",
            value: "number"
        }[a] || "number"
          , s = this._data = new oa([{
            name: "value",
            type: l
        }],this);
        s.initData(o, i)
    }
    ,
    e.prototype.getData = function() {
        return this._data
    }
    ,
    e.prototype.getCategories = function() {
        if (this.get("axisType") === "category")
            return this._names.slice()
    }
    ,
    e.type = "timeline",
    e.defaultOption = {
        z: 4,
        show: !0,
        axisType: "time",
        realtime: !0,
        left: "20%",
        top: null,
        right: "20%",
        bottom: 0,
        width: null,
        height: 40,
        padding: 5,
        controlPosition: "left",
        autoPlay: !1,
        rewind: !1,
        loop: !0,
        playInterval: 2e3,
        currentIndex: 0,
        itemStyle: {},
        label: {
            color: "#000"
        },
        data: []
    },
    e
}(qt);
const BU = bdt;
var ife = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "timeline.slider",
    e.defaultOption = Yu(BU.defaultOption, {
        backgroundColor: "rgba(0,0,0,0)",
        borderColor: "#ccc",
        borderWidth: 0,
        orient: "horizontal",
        inverse: !1,
        tooltip: {
            trigger: "item"
        },
        symbol: "circle",
        symbolSize: 12,
        lineStyle: {
            show: !0,
            width: 2,
            color: "#DAE1F5"
        },
        label: {
            position: "auto",
            show: !0,
            interval: "auto",
            rotate: 0,
            color: "#A4B1D7"
        },
        itemStyle: {
            color: "#A4B1D7",
            borderWidth: 1
        },
        checkpointStyle: {
            symbol: "circle",
            symbolSize: 15,
            color: "#316bf3",
            borderColor: "#fff",
            borderWidth: 2,
            shadowBlur: 2,
            shadowOffsetX: 1,
            shadowOffsetY: 1,
            shadowColor: "rgba(0, 0, 0, 0.3)",
            animation: !0,
            animationDuration: 300,
            animationEasing: "quinticInOut"
        },
        controlStyle: {
            show: !0,
            showPlayBtn: !0,
            showPrevBtn: !0,
            showNextBtn: !0,
            itemSize: 24,
            itemGap: 12,
            position: "left",
            playIcon: "path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",
            stopIcon: "path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",
            nextIcon: "M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",
            prevIcon: "M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",
            prevBtnSize: 18,
            nextBtnSize: 18,
            color: "#A4B1D7",
            borderColor: "#A4B1D7",
            borderWidth: 1
        },
        emphasis: {
            label: {
                show: !0,
                color: "#6f778d"
            },
            itemStyle: {
                color: "#316BF3"
            },
            controlStyle: {
                color: "#316BF3",
                borderColor: "#316BF3",
                borderWidth: 2
            }
        },
        progress: {
            lineStyle: {
                color: "#316BF3"
            },
            itemStyle: {
                color: "#316BF3"
            },
            label: {
                color: "#6f778d"
            }
        },
        data: []
    }),
    e
}(BU);
ir(ife, h5.prototype);
const xdt = ife;
var Sdt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "timeline",
    e
}(Bn);
const Cdt = Sdt;
var wdt = function(t) {
    ge(e, t);
    function e(n, r, a, i) {
        var o = t.call(this, n, r, a) || this;
        return o.type = i || "value",
        o
    }
    return e.prototype.getLabelModel = function() {
        return this.model.getModel("label")
    }
    ,
    e.prototype.isHorizontal = function() {
        return this.model.get("orient") === "horizontal"
    }
    ,
    e
}(Yi);
const _dt = wdt;
var h3 = Math.PI
  , VU = an()
  , Tdt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function(n, r) {
        this.api = r
    }
    ,
    e.prototype.render = function(n, r, a) {
        if (this.model = n,
        this.api = a,
        this.ecModel = r,
        this.group.removeAll(),
        n.get("show", !0)) {
            var i = this._layout(n, a)
              , o = this._createGroup("_mainGroup")
              , l = this._createGroup("_labelGroup")
              , s = this._axis = this._createAxis(i, n);
            n.formatTooltip = function(u) {
                var c = s.scale.getLabel({
                    value: u
                });
                return $r("nameValue", {
                    noName: !0,
                    value: c
                })
            }
            ,
            Z(["AxisLine", "AxisTick", "Control", "CurrentPointer"], function(u) {
                this["_render" + u](i, o, s, n)
            }, this),
            this._renderAxisLabel(i, l, s, n),
            this._position(i, n)
        }
        this._doPlayStop(),
        this._updateTicksStatus()
    }
    ,
    e.prototype.remove = function() {
        this._clearTimer(),
        this.group.removeAll()
    }
    ,
    e.prototype.dispose = function() {
        this._clearTimer()
    }
    ,
    e.prototype._layout = function(n, r) {
        var a = n.get(["label", "position"]), i = n.get("orient"), o = Mdt(n, r), l;
        a == null || a === "auto" ? l = i === "horizontal" ? o.y + o.height / 2 < r.getHeight() / 2 ? "-" : "+" : o.x + o.width / 2 < r.getWidth() / 2 ? "+" : "-" : Ge(a) ? l = {
            horizontal: {
                top: "-",
                bottom: "+"
            },
            vertical: {
                left: "-",
                right: "+"
            }
        }[i][a] : l = a;
        var s = {
            horizontal: "center",
            vertical: l >= 0 || l === "+" ? "left" : "right"
        }
          , u = {
            horizontal: l >= 0 || l === "+" ? "top" : "bottom",
            vertical: "middle"
        }
          , c = {
            horizontal: 0,
            vertical: h3 / 2
        }
          , f = i === "vertical" ? o.height : o.width
          , d = n.getModel("controlStyle")
          , v = d.get("show", !0)
          , h = v ? d.get("itemSize") : 0
          , p = v ? d.get("itemGap") : 0
          , g = h + p
          , m = n.get(["label", "rotate"]) || 0;
        m = m * h3 / 180;
        var y, b, x, C = d.get("position", !0), S = v && d.get("showPlayBtn", !0), w = v && d.get("showPrevBtn", !0), T = v && d.get("showNextBtn", !0), P = 0, M = f;
        C === "left" || C === "bottom" ? (S && (y = [0, 0],
        P += g),
        w && (b = [P, 0],
        P += g),
        T && (x = [M - h, 0],
        M -= g)) : (S && (y = [M - h, 0],
        M -= g),
        w && (b = [0, 0],
        P += g),
        T && (x = [M - h, 0],
        M -= g));
        var A = [P, M];
        return n.get("inverse") && A.reverse(),
        {
            viewRect: o,
            mainLength: f,
            orient: i,
            rotation: c[i],
            labelRotation: m,
            labelPosOpt: l,
            labelAlign: n.get(["label", "align"]) || s[i],
            labelBaseline: n.get(["label", "verticalAlign"]) || n.get(["label", "baseline"]) || u[i],
            playPosition: y,
            prevBtnPosition: b,
            nextBtnPosition: x,
            axisExtent: A,
            controlSize: h,
            controlGap: p
        }
    }
    ,
    e.prototype._position = function(n, r) {
        var a = this._mainGroup
          , i = this._labelGroup
          , o = n.viewRect;
        if (n.orient === "vertical") {
            var l = si()
              , s = o.x
              , u = o.y + o.height;
            To(l, l, [-s, -u]),
            Ku(l, l, -h3 / 2),
            To(l, l, [s, u]),
            o = o.clone(),
            o.applyTransform(l)
        }
        var c = y(o)
          , f = y(a.getBoundingRect())
          , d = y(i.getBoundingRect())
          , v = [a.x, a.y]
          , h = [i.x, i.y];
        h[0] = v[0] = c[0][0];
        var p = n.labelPosOpt;
        if (p == null || Ge(p)) {
            var g = p === "+" ? 0 : 1;
            b(v, f, c, 1, g),
            b(h, d, c, 1, 1 - g)
        } else {
            var g = p >= 0 ? 0 : 1;
            b(v, f, c, 1, g),
            h[1] = v[1] + p
        }
        a.setPosition(v),
        i.setPosition(h),
        a.rotation = i.rotation = n.rotation,
        m(a),
        m(i);
        function m(x) {
            x.originX = c[0][0] - x.x,
            x.originY = c[1][0] - x.y
        }
        function y(x) {
            return [[x.x, x.x + x.width], [x.y, x.y + x.height]]
        }
        function b(x, C, S, w, T) {
            x[w] += S[w][T] - C[w][T]
        }
    }
    ,
    e.prototype._createAxis = function(n, r) {
        var a = r.getData()
          , i = r.get("axisType")
          , o = Pdt(r, i);
        o.getTicks = function() {
            return a.mapArray(["value"], function(u) {
                return {
                    value: u
                }
            })
        }
        ;
        var l = a.getDataExtent("value");
        o.setExtent(l[0], l[1]),
        o.calcNiceTicks();
        var s = new _dt("value",o,n.axisExtent,i);
        return s.model = r,
        s
    }
    ,
    e.prototype._createGroup = function(n) {
        var r = this[n] = new mt;
        return this.group.add(r),
        r
    }
    ,
    e.prototype._renderAxisLine = function(n, r, a, i) {
        var o = a.getExtent();
        if (!!i.get(["lineStyle", "show"])) {
            var l = new Or({
                shape: {
                    x1: o[0],
                    y1: 0,
                    x2: o[1],
                    y2: 0
                },
                style: Me({
                    lineCap: "round"
                }, i.getModel("lineStyle").getLineStyle()),
                silent: !0,
                z2: 1
            });
            r.add(l);
            var s = this._progressLine = new Or({
                shape: {
                    x1: o[0],
                    x2: this._currentPointer ? this._currentPointer.x : o[0],
                    y1: 0,
                    y2: 0
                },
                style: ot({
                    lineCap: "round",
                    lineWidth: l.style.lineWidth
                }, i.getModel(["progress", "lineStyle"]).getLineStyle()),
                silent: !0,
                z2: 1
            });
            r.add(s)
        }
    }
    ,
    e.prototype._renderAxisTick = function(n, r, a, i) {
        var o = this
          , l = i.getData()
          , s = a.scale.getTicks();
        this._tickSymbols = [],
        Z(s, function(u) {
            var c = a.dataToCoord(u.value)
              , f = l.getItemModel(u.value)
              , d = f.getModel("itemStyle")
              , v = f.getModel(["emphasis", "itemStyle"])
              , h = f.getModel(["progress", "itemStyle"])
              , p = {
                x: c,
                y: 0,
                onclick: qe(o._changeTimeline, o, u.value)
            }
              , g = zU(f, d, r, p);
            g.ensureState("emphasis").style = v.getItemStyle(),
            g.ensureState("progress").style = h.getItemStyle(),
            xu(g);
            var m = Ct(g);
            f.get("tooltip") ? (m.dataIndex = u.value,
            m.dataModel = i) : m.dataIndex = m.dataModel = null,
            o._tickSymbols.push(g)
        })
    }
    ,
    e.prototype._renderAxisLabel = function(n, r, a, i) {
        var o = this
          , l = a.getLabelModel();
        if (!!l.get("show")) {
            var s = i.getData()
              , u = a.getViewLabels();
            this._tickLabels = [],
            Z(u, function(c) {
                var f = c.tickValue
                  , d = s.getItemModel(f)
                  , v = d.getModel("label")
                  , h = d.getModel(["emphasis", "label"])
                  , p = d.getModel(["progress", "label"])
                  , g = a.dataToCoord(c.tickValue)
                  , m = new Jt({
                    x: g,
                    y: 0,
                    rotation: n.labelRotation - n.rotation,
                    onclick: qe(o._changeTimeline, o, f),
                    silent: !1,
                    style: In(v, {
                        text: c.formattedLabel,
                        align: n.labelAlign,
                        verticalAlign: n.labelBaseline
                    })
                });
                m.ensureState("emphasis").style = In(h),
                m.ensureState("progress").style = In(p),
                r.add(m),
                xu(m),
                VU(m).dataIndex = f,
                o._tickLabels.push(m)
            })
        }
    }
    ,
    e.prototype._renderControl = function(n, r, a, i) {
        var o = n.controlSize
          , l = n.rotation
          , s = i.getModel("controlStyle").getItemStyle()
          , u = i.getModel(["emphasis", "controlStyle"]).getItemStyle()
          , c = i.getPlayState()
          , f = i.get("inverse", !0);
        d(n.nextBtnPosition, "next", qe(this._changeTimeline, this, f ? "-" : "+")),
        d(n.prevBtnPosition, "prev", qe(this._changeTimeline, this, f ? "+" : "-")),
        d(n.playPosition, c ? "stop" : "play", qe(this._handlePlayClick, this, !c), !0);
        function d(v, h, p, g) {
            if (!!v) {
                var m = Po(Ot(i.get(["controlStyle", h + "BtnSize"]), o), o)
                  , y = [0, -m / 2, m, m]
                  , b = Adt(i, h + "Icon", y, {
                    x: v[0],
                    y: v[1],
                    originX: o / 2,
                    originY: 0,
                    rotation: g ? -l : 0,
                    rectHover: !0,
                    style: s,
                    onclick: p
                });
                b.ensureState("emphasis").style = u,
                r.add(b),
                xu(b)
            }
        }
    }
    ,
    e.prototype._renderCurrentPointer = function(n, r, a, i) {
        var o = i.getData()
          , l = i.getCurrentIndex()
          , s = o.getItemModel(l).getModel("checkpointStyle")
          , u = this
          , c = {
            onCreate: function(f) {
                f.draggable = !0,
                f.drift = qe(u._handlePointerDrag, u),
                f.ondragend = qe(u._handlePointerDragend, u),
                HU(f, u._progressLine, l, a, i, !0)
            },
            onUpdate: function(f) {
                HU(f, u._progressLine, l, a, i)
            }
        };
        this._currentPointer = zU(s, s, this._mainGroup, {}, this._currentPointer, c)
    }
    ,
    e.prototype._handlePlayClick = function(n) {
        this._clearTimer(),
        this.api.dispatchAction({
            type: "timelinePlayChange",
            playState: n,
            from: this.uid
        })
    }
    ,
    e.prototype._handlePointerDrag = function(n, r, a) {
        this._clearTimer(),
        this._pointerChangeTimeline([a.offsetX, a.offsetY])
    }
    ,
    e.prototype._handlePointerDragend = function(n) {
        this._pointerChangeTimeline([n.offsetX, n.offsetY], !0)
    }
    ,
    e.prototype._pointerChangeTimeline = function(n, r) {
        var a = this._toAxisCoord(n)[0]
          , i = this._axis
          , o = ri(i.getExtent().slice());
        a > o[1] && (a = o[1]),
        a < o[0] && (a = o[0]),
        this._currentPointer.x = a,
        this._currentPointer.markRedraw();
        var l = this._progressLine;
        l && (l.shape.x2 = a,
        l.dirty());
        var s = this._findNearestTick(a)
          , u = this.model;
        (r || s !== u.getCurrentIndex() && u.get("realtime")) && this._changeTimeline(s)
    }
    ,
    e.prototype._doPlayStop = function() {
        var n = this;
        this._clearTimer(),
        this.model.getPlayState() && (this._timer = setTimeout(function() {
            var r = n.model;
            n._changeTimeline(r.getCurrentIndex() + (r.get("rewind", !0) ? -1 : 1))
        }, this.model.get("playInterval")))
    }
    ,
    e.prototype._toAxisCoord = function(n) {
        var r = this._mainGroup.getLocalTransform();
        return mo(n, r, !0)
    }
    ,
    e.prototype._findNearestTick = function(n) {
        var r = this.model.getData(), a = 1 / 0, i, o = this._axis;
        return r.each(["value"], function(l, s) {
            var u = o.dataToCoord(l)
              , c = Math.abs(u - n);
            c < a && (a = c,
            i = s)
        }),
        i
    }
    ,
    e.prototype._clearTimer = function() {
        this._timer && (clearTimeout(this._timer),
        this._timer = null)
    }
    ,
    e.prototype._changeTimeline = function(n) {
        var r = this.model.getCurrentIndex();
        n === "+" ? n = r + 1 : n === "-" && (n = r - 1),
        this.api.dispatchAction({
            type: "timelineChange",
            currentIndex: n,
            from: this.uid
        })
    }
    ,
    e.prototype._updateTicksStatus = function() {
        var n = this.model.getCurrentIndex()
          , r = this._tickSymbols
          , a = this._tickLabels;
        if (r)
            for (var i = 0; i < r.length; i++)
                r && r[i] && r[i].toggleState("progress", i < n);
        if (a)
            for (var i = 0; i < a.length; i++)
                a && a[i] && a[i].toggleState("progress", VU(a[i]).dataIndex <= n)
    }
    ,
    e.type = "timeline.slider",
    e
}(Cdt);
function Pdt(t, e) {
    if (e = e || t.get("type"),
    e)
        switch (e) {
        case "category":
            return new O5({
                ordinalMeta: t.getCategories(),
                extent: [1 / 0, -1 / 0]
            });
        case "time":
            return new sse({
                locale: t.ecModel.getLocaleModel(),
                useUTC: t.ecModel.get("useUTC")
            });
        default:
            return new Lu
        }
}
function Mdt(t, e) {
    return xr(t.getBoxLayoutParams(), {
        width: e.getWidth(),
        height: e.getHeight()
    }, t.get("padding"))
}
function Adt(t, e, n, r) {
    var a = r.style
      , i = Ih(t.get(["controlStyle", e]), r || {}, new Dt(n[0],n[1],n[2],n[3]));
    return a && i.setStyle(a),
    i
}
function zU(t, e, n, r, a, i) {
    var o = e.get("color");
    if (a)
        a.setColor(o),
        n.add(a),
        i && i.onUpdate(a);
    else {
        var l = t.get("symbol");
        a = fr(l, -1, -1, 2, 2, o),
        a.setStyle("strokeNoScale", !0),
        n.add(a),
        i && i.onCreate(a)
    }
    var s = e.getItemStyle(["color"]);
    a.setStyle(s),
    r = At({
        rectHover: !0,
        z2: 100
    }, r, !0);
    var u = Bh(t.get("symbolSize"));
    r.scaleX = u[0] / 2,
    r.scaleY = u[1] / 2;
    var c = id(t.get("symbolOffset"), u);
    c && (r.x = (r.x || 0) + c[0],
    r.y = (r.y || 0) + c[1]);
    var f = t.get("symbolRotate");
    return r.rotation = (f || 0) * Math.PI / 180 || 0,
    a.attr(r),
    a.updateTransform(),
    a
}
function HU(t, e, n, r, a, i) {
    if (!t.dragging) {
        var o = a.getModel("checkpointStyle")
          , l = r.dataToCoord(a.getData().get("value", n));
        if (i || !o.get("animation", !0))
            t.attr({
                x: l,
                y: 0
            }),
            e && e.attr({
                shape: {
                    x2: l
                }
            });
        else {
            var s = {
                duration: o.get("animationDuration", !0),
                easing: o.get("animationEasing", !0)
            };
            t.stopAnimation(null, !0),
            t.animateTo({
                x: l,
                y: 0
            }, s),
            e && e.animateTo({
                shape: {
                    x2: l
                }
            }, s)
        }
    }
}
const Idt = Tdt;
function kdt(t) {
    t.registerAction({
        type: "timelineChange",
        event: "timelineChanged",
        update: "prepareAndUpdate"
    }, function(e, n, r) {
        var a = n.getComponent("timeline");
        return a && e.currentIndex != null && (a.setCurrentIndex(e.currentIndex),
        !a.get("loop", !0) && a.isIndexMax() && a.getPlayState() && (a.setPlayState(!1),
        r.dispatchAction({
            type: "timelinePlayChange",
            playState: !1,
            from: e.from
        }))),
        n.resetOption("timeline", {
            replaceMerge: a.get("replaceMerge", !0)
        }),
        ot({
            currentIndex: a.option.currentIndex
        }, e)
    }),
    t.registerAction({
        type: "timelinePlayChange",
        event: "timelinePlayChanged",
        update: "update"
    }, function(e, n) {
        var r = n.getComponent("timeline");
        r && e.playState != null && r.setPlayState(e.playState)
    })
}
function Odt(t) {
    var e = t && t.timeline;
    ke(e) || (e = e ? [e] : []),
    Z(e, function(n) {
        !n || Ddt(n)
    })
}
function Ddt(t) {
    var e = t.type
      , n = {
        number: "value",
        time: "time"
    };
    if (n[e] && (t.axisType = n[e],
    delete t.type),
    jU(t),
    Zc(t, "controlPosition")) {
        var r = t.controlStyle || (t.controlStyle = {});
        Zc(r, "position") || (r.position = t.controlPosition),
        r.position === "none" && !Zc(r, "show") && (r.show = !1,
        delete r.position),
        delete t.controlPosition
    }
    Z(t.data || [], function(a) {
        st(a) && !ke(a) && (!Zc(a, "value") && Zc(a, "name") && (a.value = a.name),
        jU(a))
    })
}
function jU(t) {
    var e = t.itemStyle || (t.itemStyle = {})
      , n = e.emphasis || (e.emphasis = {})
      , r = t.label || t.label || {}
      , a = r.normal || (r.normal = {})
      , i = {
        normal: 1,
        emphasis: 1
    };
    Z(r, function(o, l) {
        !i[l] && !Zc(a, l) && (a[l] = o)
    }),
    n.label && !Zc(r, "emphasis") && (r.emphasis = n.label,
    delete n.label)
}
function Zc(t, e) {
    return t.hasOwnProperty(e)
}
function Edt(t) {
    t.registerComponentModel(xdt),
    t.registerComponentView(Idt),
    t.registerSubTypeDefaulter("timeline", function() {
        return "slider"
    }),
    kdt(t),
    t.registerPreprocessor(Odt)
}
function LL(t, e) {
    if (!t)
        return !1;
    for (var n = ke(t) ? t : [t], r = 0; r < n.length; r++)
        if (n[r] && n[r][e])
            return !0;
    return !1
}
function eb(t) {
    Nf(t, "label", ["show"])
}
var tb = an()
  , ofe = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.createdBySelf = !1,
        n
    }
    return e.prototype.init = function(n, r, a) {
        this.mergeDefaultAndTheme(n, a),
        this._mergeOption(n, a, !1, !0)
    }
    ,
    e.prototype.isAnimationEnabled = function() {
        if (nn.node)
            return !1;
        var n = this.__hostSeries;
        return this.getShallow("animation") && n && n.isAnimationEnabled()
    }
    ,
    e.prototype.mergeOption = function(n, r) {
        this._mergeOption(n, r, !1, !1)
    }
    ,
    e.prototype._mergeOption = function(n, r, a, i) {
        var o = this.mainType;
        a || r.eachSeries(function(l) {
            var s = l.get(this.mainType, !0)
              , u = tb(l)[o];
            if (!s || !s.data) {
                tb(l)[o] = null;
                return
            }
            u ? u._mergeOption(s, r, !0) : (i && eb(s),
            Z(s.data, function(c) {
                c instanceof Array ? (eb(c[0]),
                eb(c[1])) : eb(c)
            }),
            u = this.createMarkerModelFromSeries(s, this, r),
            Me(u, {
                mainType: this.mainType,
                seriesIndex: l.seriesIndex,
                name: l.name,
                createdBySelf: !0
            }),
            u.__hostSeries = l),
            tb(l)[o] = u
        }, this)
    }
    ,
    e.prototype.formatTooltip = function(n, r, a) {
        var i = this.getData()
          , o = this.getRawValue(n)
          , l = i.getName(n);
        return $r("section", {
            header: this.name,
            blocks: [$r("nameValue", {
                name: l,
                value: o,
                noName: !l,
                noValue: o == null
            })]
        })
    }
    ,
    e.prototype.getData = function() {
        return this._data
    }
    ,
    e.prototype.setData = function(n) {
        this._data = n
    }
    ,
    e.getMarkerModelFromSeries = function(n, r) {
        return tb(n)[r]
    }
    ,
    e.type = "marker",
    e.dependencies = ["series", "grid", "polar", "geo"],
    e
}(qt);
ir(ofe, h5.prototype);
const $u = ofe;
var Ldt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.createMarkerModelFromSeries = function(n, r, a) {
        return new e(n,r,a)
    }
    ,
    e.type = "markPoint",
    e.defaultOption = {
        z: 5,
        symbol: "pin",
        symbolSize: 50,
        tooltip: {
            trigger: "item"
        },
        label: {
            show: !0,
            position: "inside"
        },
        itemStyle: {
            borderWidth: 2
        },
        emphasis: {
            label: {
                show: !0
            }
        }
    },
    e
}($u);
const Rdt = Ldt;
function kk(t) {
    return !(isNaN(parseFloat(t.x)) && isNaN(parseFloat(t.y)))
}
function Ndt(t) {
    return !isNaN(parseFloat(t.x)) && !isNaN(parseFloat(t.y))
}
function nb(t, e, n, r, a, i) {
    var o = []
      , l = ds(e, r)
      , s = l ? e.getCalculationInfo("stackResultDimension") : r
      , u = RL(e, s, t)
      , c = e.indicesOfNearest(s, u)[0];
    o[a] = e.get(n, c),
    o[i] = e.get(s, c);
    var f = e.get(r, c)
      , d = so(e.get(r, c));
    return d = Math.min(d, 20),
    d >= 0 && (o[i] = +o[i].toFixed(d)),
    [o, f]
}
var p3 = {
    min: St(nb, "min"),
    max: St(nb, "max"),
    average: St(nb, "average"),
    median: St(nb, "median")
};
function om(t, e) {
    if (!!e) {
        var n = t.getData()
          , r = t.coordinateSystem
          , a = r && r.dimensions;
        if (!Ndt(e) && !ke(e.coord) && ke(a)) {
            var i = lfe(e, n, r, t);
            if (e = ut(e),
            e.type && p3[e.type] && i.baseAxis && i.valueAxis) {
                var o = Rt(a, i.baseAxis.dim)
                  , l = Rt(a, i.valueAxis.dim)
                  , s = p3[e.type](n, i.baseDataDim, i.valueDataDim, o, l);
                e.coord = s[0],
                e.value = s[1]
            } else
                e.coord = [e.xAxis != null ? e.xAxis : e.radiusAxis, e.yAxis != null ? e.yAxis : e.angleAxis]
        }
        if (e.coord == null || !ke(a))
            e.coord = [];
        else
            for (var u = e.coord, c = 0; c < 2; c++)
                p3[u[c]] && (u[c] = RL(n, n.mapDimension(a[c]), u[c]));
        return e
    }
}
function lfe(t, e, n, r) {
    var a = {};
    return t.valueIndex != null || t.valueDim != null ? (a.valueDataDim = t.valueIndex != null ? e.getDimension(t.valueIndex) : t.valueDim,
    a.valueAxis = n.getAxis($dt(r, a.valueDataDim)),
    a.baseAxis = n.getOtherAxis(a.valueAxis),
    a.baseDataDim = e.mapDimension(a.baseAxis.dim)) : (a.baseAxis = r.getBaseAxis(),
    a.valueAxis = n.getOtherAxis(a.baseAxis),
    a.baseDataDim = e.mapDimension(a.baseAxis.dim),
    a.valueDataDim = e.mapDimension(a.valueAxis.dim)),
    a
}
function $dt(t, e) {
    var n = t.getData().getDimensionInfo(e);
    return n && n.coordDim
}
function lm(t, e) {
    return t && t.containData && e.coord && !kk(e) ? t.containData(e.coord) : !0
}
function Fdt(t, e, n) {
    return t && t.containZone && e.coord && n.coord && !kk(e) && !kk(n) ? t.containZone(e.coord, n.coord) : !0
}
function sfe(t, e) {
    return t ? function(n, r, a, i) {
        var o = i < 2 ? n.coord && n.coord[i] : n.value;
        return wu(o, e[i])
    }
    : function(n, r, a, i) {
        return wu(n.value, e[i])
    }
}
function RL(t, e, n) {
    if (n === "average") {
        var r = 0
          , a = 0;
        return t.each(e, function(i, o) {
            isNaN(i) || (r += i,
            a++)
        }),
        r / a
    } else
        return n === "median" ? t.getMedian(e) : t.getDataExtent(e)[n === "max" ? 1 : 0]
}
var g3 = an()
  , Bdt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.init = function() {
        this.markerGroupMap = Qe()
    }
    ,
    e.prototype.render = function(n, r, a) {
        var i = this
          , o = this.markerGroupMap;
        o.each(function(l) {
            g3(l).keep = !1
        }),
        r.eachSeries(function(l) {
            var s = $u.getMarkerModelFromSeries(l, i.type);
            s && i.renderSeries(l, s, r, a)
        }),
        o.each(function(l) {
            !g3(l).keep && i.group.remove(l.group)
        })
    }
    ,
    e.prototype.markKeep = function(n) {
        g3(n).keep = !0
    }
    ,
    e.prototype.toggleBlurSeries = function(n, r) {
        var a = this;
        Z(n, function(i) {
            var o = $u.getMarkerModelFromSeries(i, a.type);
            if (o) {
                var l = o.getData();
                l.eachItemGraphicEl(function(s) {
                    s && (r ? Rie(s) : W6(s))
                })
            }
        })
    }
    ,
    e.type = "marker",
    e
}(Bn);
const NL = Bdt;
function WU(t, e, n) {
    var r = e.coordinateSystem;
    t.each(function(a) {
        var i = t.getItemModel(a), o, l = He(i.get("x"), n.getWidth()), s = He(i.get("y"), n.getHeight());
        if (!isNaN(l) && !isNaN(s))
            o = [l, s];
        else if (e.getMarkerPosition)
            o = e.getMarkerPosition(t.getValues(t.dimensions, a));
        else if (r) {
            var u = t.get(r.dimensions[0], a)
              , c = t.get(r.dimensions[1], a);
            o = r.dataToPoint([u, c])
        }
        isNaN(l) || (o[0] = l),
        isNaN(s) || (o[1] = s),
        t.setItemLayout(a, o)
    })
}
var Vdt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.updateTransform = function(n, r, a) {
        r.eachSeries(function(i) {
            var o = $u.getMarkerModelFromSeries(i, "markPoint");
            o && (WU(o.getData(), i, a),
            this.markerGroupMap.get(i.id).updateLayout())
        }, this)
    }
    ,
    e.prototype.renderSeries = function(n, r, a, i) {
        var o = n.coordinateSystem
          , l = n.id
          , s = n.getData()
          , u = this.markerGroupMap
          , c = u.get(l) || u.set(l, new iy)
          , f = zdt(o, n, r);
        r.setData(f),
        WU(r.getData(), n, i),
        f.each(function(d) {
            var v = f.getItemModel(d)
              , h = v.getShallow("symbol")
              , p = v.getShallow("symbolSize")
              , g = v.getShallow("symbolRotate")
              , m = v.getShallow("symbolOffset")
              , y = v.getShallow("symbolKeepAspect");
            if (et(h) || et(p) || et(g) || et(m)) {
                var b = r.getRawValue(d)
                  , x = r.getDataParams(d);
                et(h) && (h = h(b, x)),
                et(p) && (p = p(b, x)),
                et(g) && (g = g(b, x)),
                et(m) && (m = m(b, x))
            }
            var C = v.getModel("itemStyle").getItemStyle()
              , S = ty(s, "color");
            C.fill || (C.fill = S),
            f.setItemVisual(d, {
                symbol: h,
                symbolSize: p,
                symbolRotate: g,
                symbolOffset: m,
                symbolKeepAspect: y,
                style: C
            })
        }),
        c.updateData(f),
        this.group.add(c.group),
        f.eachItemGraphicEl(function(d) {
            d.traverse(function(v) {
                Ct(v).dataModel = r
            })
        }),
        this.markKeep(c),
        c.group.silent = r.get("silent") || n.get("silent")
    }
    ,
    e.type = "markPoint",
    e
}(NL);
function zdt(t, e, n) {
    var r;
    t ? r = Le(t && t.dimensions, function(l) {
        var s = e.getData().getDimensionInfo(e.getData().mapDimension(l)) || {};
        return Me(Me({}, s), {
            name: l,
            ordinalMeta: null
        })
    }) : r = [{
        name: "value",
        type: "float"
    }];
    var a = new oa(r,n)
      , i = Le(n.get("data"), St(om, e));
    t && (i = pn(i, St(lm, t)));
    var o = sfe(!!t, r);
    return a.initData(i, null, o),
    a
}
const Hdt = Vdt;
function jdt(t) {
    t.registerComponentModel(Rdt),
    t.registerComponentView(Hdt),
    t.registerPreprocessor(function(e) {
        LL(e.series, "markPoint") && (e.markPoint = e.markPoint || {})
    })
}
var Wdt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.createMarkerModelFromSeries = function(n, r, a) {
        return new e(n,r,a)
    }
    ,
    e.type = "markLine",
    e.defaultOption = {
        z: 5,
        symbol: ["circle", "arrow"],
        symbolSize: [8, 16],
        symbolOffset: 0,
        precision: 2,
        tooltip: {
            trigger: "item"
        },
        label: {
            show: !0,
            position: "end",
            distance: 5
        },
        lineStyle: {
            type: "dashed"
        },
        emphasis: {
            label: {
                show: !0
            },
            lineStyle: {
                width: 3
            }
        },
        animationEasing: "linear"
    },
    e
}($u);
const Gdt = Wdt;
var rb = an()
  , Kdt = function(t, e, n, r) {
    var a = t.getData(), i;
    if (ke(r))
        i = r;
    else {
        var o = r.type;
        if (o === "min" || o === "max" || o === "average" || o === "median" || r.xAxis != null || r.yAxis != null) {
            var l = void 0
              , s = void 0;
            if (r.yAxis != null || r.xAxis != null)
                l = e.getAxis(r.yAxis != null ? "y" : "x"),
                s = kr(r.yAxis, r.xAxis);
            else {
                var u = lfe(r, a, e, t);
                l = u.valueAxis;
                var c = k5(a, u.valueDataDim);
                s = RL(a, c, o)
            }
            var f = l.dim === "x" ? 0 : 1
              , d = 1 - f
              , v = ut(r)
              , h = {
                coord: []
            };
            v.type = null,
            v.coord = [],
            v.coord[d] = -1 / 0,
            h.coord[d] = 1 / 0;
            var p = n.get("precision");
            p >= 0 && rn(s) && (s = +s.toFixed(Math.min(p, 20))),
            v.coord[f] = h.coord[f] = s,
            i = [v, h, {
                type: o,
                valueIndex: r.valueIndex,
                value: s
            }]
        } else
            i = []
    }
    var g = [om(t, i[0]), om(t, i[1]), Me({}, i[2])];
    return g[2].type = g[2].type || null,
    At(g[2], g[0]),
    At(g[2], g[1]),
    g
};
function uC(t) {
    return !isNaN(t) && !isFinite(t)
}
function GU(t, e, n, r) {
    var a = 1 - t
      , i = r.dimensions[t];
    return uC(e[a]) && uC(n[a]) && e[t] === n[t] && r.getAxis(i).containData(e[t])
}
function Udt(t, e) {
    if (t.type === "cartesian2d") {
        var n = e[0].coord
          , r = e[1].coord;
        if (n && r && (GU(1, n, r, t) || GU(0, n, r, t)))
            return !0
    }
    return lm(t, e[0]) && lm(t, e[1])
}
function m3(t, e, n, r, a) {
    var i = r.coordinateSystem, o = t.getItemModel(e), l, s = He(o.get("x"), a.getWidth()), u = He(o.get("y"), a.getHeight());
    if (!isNaN(s) && !isNaN(u))
        l = [s, u];
    else {
        if (r.getMarkerPosition)
            l = r.getMarkerPosition(t.getValues(t.dimensions, e));
        else {
            var c = i.dimensions
              , f = t.get(c[0], e)
              , d = t.get(c[1], e);
            l = i.dataToPoint([f, d])
        }
        if (od(i, "cartesian2d")) {
            var v = i.getAxis("x")
              , h = i.getAxis("y")
              , c = i.dimensions;
            uC(t.get(c[0], e)) ? l[0] = v.toGlobalCoord(v.getExtent()[n ? 0 : 1]) : uC(t.get(c[1], e)) && (l[1] = h.toGlobalCoord(h.getExtent()[n ? 0 : 1]))
        }
        isNaN(s) || (l[0] = s),
        isNaN(u) || (l[1] = u)
    }
    t.setItemLayout(e, l)
}
var Ydt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.updateTransform = function(n, r, a) {
        r.eachSeries(function(i) {
            var o = $u.getMarkerModelFromSeries(i, "markLine");
            if (o) {
                var l = o.getData()
                  , s = rb(o).from
                  , u = rb(o).to;
                s.each(function(c) {
                    m3(s, c, !0, i, a),
                    m3(u, c, !1, i, a)
                }),
                l.each(function(c) {
                    l.setItemLayout(c, [s.getItemLayout(c), u.getItemLayout(c)])
                }),
                this.markerGroupMap.get(i.id).updateLayout()
            }
        }, this)
    }
    ,
    e.prototype.renderSeries = function(n, r, a, i) {
        var o = n.coordinateSystem
          , l = n.id
          , s = n.getData()
          , u = this.markerGroupMap
          , c = u.get(l) || u.set(l, new iL);
        this.group.add(c.group);
        var f = qdt(o, n, r)
          , d = f.from
          , v = f.to
          , h = f.line;
        rb(r).from = d,
        rb(r).to = v,
        r.setData(h);
        var p = r.get("symbol")
          , g = r.get("symbolSize")
          , m = r.get("symbolRotate")
          , y = r.get("symbolOffset");
        ke(p) || (p = [p, p]),
        ke(g) || (g = [g, g]),
        ke(m) || (m = [m, m]),
        ke(y) || (y = [y, y]),
        f.from.each(function(x) {
            b(d, x, !0),
            b(v, x, !1)
        }),
        h.each(function(x) {
            var C = h.getItemModel(x).getModel("lineStyle").getLineStyle();
            h.setItemLayout(x, [d.getItemLayout(x), v.getItemLayout(x)]),
            C.stroke == null && (C.stroke = d.getItemVisual(x, "style").fill),
            h.setItemVisual(x, {
                fromSymbolKeepAspect: d.getItemVisual(x, "symbolKeepAspect"),
                fromSymbolOffset: d.getItemVisual(x, "symbolOffset"),
                fromSymbolRotate: d.getItemVisual(x, "symbolRotate"),
                fromSymbolSize: d.getItemVisual(x, "symbolSize"),
                fromSymbol: d.getItemVisual(x, "symbol"),
                toSymbolKeepAspect: v.getItemVisual(x, "symbolKeepAspect"),
                toSymbolOffset: v.getItemVisual(x, "symbolOffset"),
                toSymbolRotate: v.getItemVisual(x, "symbolRotate"),
                toSymbolSize: v.getItemVisual(x, "symbolSize"),
                toSymbol: v.getItemVisual(x, "symbol"),
                style: C
            })
        }),
        c.updateData(h),
        f.line.eachItemGraphicEl(function(x) {
            Ct(x).dataModel = r,
            x.traverse(function(C) {
                Ct(C).dataModel = r
            })
        });
        function b(x, C, S) {
            var w = x.getItemModel(C);
            m3(x, C, S, n, i);
            var T = w.getModel("itemStyle").getItemStyle();
            T.fill == null && (T.fill = ty(s, "color")),
            x.setItemVisual(C, {
                symbolKeepAspect: w.get("symbolKeepAspect"),
                symbolOffset: Ot(w.get("symbolOffset", !0), y[S ? 0 : 1]),
                symbolRotate: Ot(w.get("symbolRotate", !0), m[S ? 0 : 1]),
                symbolSize: Ot(w.get("symbolSize"), g[S ? 0 : 1]),
                symbol: Ot(w.get("symbol", !0), p[S ? 0 : 1]),
                style: T
            })
        }
        this.markKeep(c),
        c.group.silent = r.get("silent") || n.get("silent")
    }
    ,
    e.type = "markLine",
    e
}(NL);
function qdt(t, e, n) {
    var r;
    t ? r = Le(t && t.dimensions, function(u) {
        var c = e.getData().getDimensionInfo(e.getData().mapDimension(u)) || {};
        return Me(Me({}, c), {
            name: u,
            ordinalMeta: null
        })
    }) : r = [{
        name: "value",
        type: "float"
    }];
    var a = new oa(r,n)
      , i = new oa(r,n)
      , o = new oa([],n)
      , l = Le(n.get("data"), St(Kdt, e, t, n));
    t && (l = pn(l, St(Udt, t)));
    var s = sfe(!!t, r);
    return a.initData(Le(l, function(u) {
        return u[0]
    }), null, s),
    i.initData(Le(l, function(u) {
        return u[1]
    }), null, s),
    o.initData(Le(l, function(u) {
        return u[2]
    })),
    o.hasItemOption = !0,
    {
        from: a,
        to: i,
        line: o
    }
}
const Xdt = Ydt;
function Zdt(t) {
    t.registerComponentModel(Gdt),
    t.registerComponentView(Xdt),
    t.registerPreprocessor(function(e) {
        LL(e.series, "markLine") && (e.markLine = e.markLine || {})
    })
}
var Qdt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.createMarkerModelFromSeries = function(n, r, a) {
        return new e(n,r,a)
    }
    ,
    e.type = "markArea",
    e.defaultOption = {
        z: 1,
        tooltip: {
            trigger: "item"
        },
        animation: !1,
        label: {
            show: !0,
            position: "top"
        },
        itemStyle: {
            borderWidth: 0
        },
        emphasis: {
            label: {
                show: !0,
                position: "top"
            }
        }
    },
    e
}($u);
const Jdt = Qdt;
var ab = an()
  , evt = function(t, e, n, r) {
    var a = r[0]
      , i = r[1];
    if (!(!a || !i)) {
        var o = om(t, a)
          , l = om(t, i)
          , s = o.coord
          , u = l.coord;
        s[0] = kr(s[0], -1 / 0),
        s[1] = kr(s[1], -1 / 0),
        u[0] = kr(u[0], 1 / 0),
        u[1] = kr(u[1], 1 / 0);
        var c = Uw([{}, o, l]);
        return c.coord = [o.coord, l.coord],
        c.x0 = o.x,
        c.y0 = o.y,
        c.x1 = l.x,
        c.y1 = l.y,
        c
    }
};
function cC(t) {
    return !isNaN(t) && !isFinite(t)
}
function KU(t, e, n, r) {
    var a = 1 - t;
    return cC(e[a]) && cC(n[a])
}
function tvt(t, e) {
    var n = e.coord[0]
      , r = e.coord[1]
      , a = {
        coord: n,
        x: e.x0,
        y: e.y0
    }
      , i = {
        coord: r,
        x: e.x1,
        y: e.y1
    };
    return od(t, "cartesian2d") ? n && r && (KU(1, n, r) || KU(0, n, r)) ? !0 : Fdt(t, a, i) : lm(t, a) || lm(t, i)
}
function UU(t, e, n, r, a) {
    var i = r.coordinateSystem, o = t.getItemModel(e), l, s = He(o.get(n[0]), a.getWidth()), u = He(o.get(n[1]), a.getHeight());
    if (!isNaN(s) && !isNaN(u))
        l = [s, u];
    else {
        if (r.getMarkerPosition) {
            var c = t.getValues(["x0", "y0"], e)
              , f = t.getValues(["x1", "y1"], e)
              , d = i.clampData(c)
              , v = i.clampData(f)
              , h = [];
            n[0] === "x0" ? h[0] = d[0] > v[0] ? f[0] : c[0] : h[0] = d[0] > v[0] ? c[0] : f[0],
            n[1] === "y0" ? h[1] = d[1] > v[1] ? f[1] : c[1] : h[1] = d[1] > v[1] ? c[1] : f[1],
            l = r.getMarkerPosition(h, n, !0)
        } else {
            var p = t.get(n[0], e)
              , g = t.get(n[1], e)
              , m = [p, g];
            i.clampData && i.clampData(m, m),
            l = i.dataToPoint(m, !0)
        }
        if (od(i, "cartesian2d")) {
            var y = i.getAxis("x")
              , b = i.getAxis("y")
              , p = t.get(n[0], e)
              , g = t.get(n[1], e);
            cC(p) ? l[0] = y.toGlobalCoord(y.getExtent()[n[0] === "x0" ? 0 : 1]) : cC(g) && (l[1] = b.toGlobalCoord(b.getExtent()[n[1] === "y0" ? 0 : 1]))
        }
        isNaN(s) || (l[0] = s),
        isNaN(u) || (l[1] = u)
    }
    return l
}
var YU = [["x0", "y0"], ["x1", "y0"], ["x1", "y1"], ["x0", "y1"]]
  , nvt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.updateTransform = function(n, r, a) {
        r.eachSeries(function(i) {
            var o = $u.getMarkerModelFromSeries(i, "markArea");
            if (o) {
                var l = o.getData();
                l.each(function(s) {
                    var u = Le(YU, function(f) {
                        return UU(l, s, f, i, a)
                    });
                    l.setItemLayout(s, u);
                    var c = l.getItemGraphicEl(s);
                    c.setShape("points", u)
                })
            }
        }, this)
    }
    ,
    e.prototype.renderSeries = function(n, r, a, i) {
        var o = n.coordinateSystem
          , l = n.id
          , s = n.getData()
          , u = this.markerGroupMap
          , c = u.get(l) || u.set(l, {
            group: new mt
        });
        this.group.add(c.group),
        this.markKeep(c);
        var f = rvt(o, n, r);
        r.setData(f),
        f.each(function(d) {
            var v = Le(YU, function(T) {
                return UU(f, d, T, n, i)
            })
              , h = o.getAxis("x").scale
              , p = o.getAxis("y").scale
              , g = h.getExtent()
              , m = p.getExtent()
              , y = [h.parse(f.get("x0", d)), h.parse(f.get("x1", d))]
              , b = [p.parse(f.get("y0", d)), p.parse(f.get("y1", d))];
            ri(y),
            ri(b);
            var x = !(g[0] > y[1] || g[1] < y[0] || m[0] > b[1] || m[1] < b[0])
              , C = !x;
            f.setItemLayout(d, {
                points: v,
                allClipped: C
            });
            var S = f.getItemModel(d).getModel("itemStyle").getItemStyle()
              , w = ty(s, "color");
            S.fill || (S.fill = w,
            Ge(S.fill) && (S.fill = L0(S.fill, .4))),
            S.stroke || (S.stroke = w),
            f.setItemVisual(d, "style", S)
        }),
        f.diff(ab(c).data).add(function(d) {
            var v = f.getItemLayout(d);
            if (!v.allClipped) {
                var h = new Ma({
                    shape: {
                        points: v.points
                    }
                });
                f.setItemGraphicEl(d, h),
                c.group.add(h)
            }
        }).update(function(d, v) {
            var h = ab(c).data.getItemGraphicEl(v)
              , p = f.getItemLayout(d);
            p.allClipped ? h && c.group.remove(h) : (h ? ln(h, {
                shape: {
                    points: p.points
                }
            }, r, d) : h = new Ma({
                shape: {
                    points: p.points
                }
            }),
            f.setItemGraphicEl(d, h),
            c.group.add(h))
        }).remove(function(d) {
            var v = ab(c).data.getItemGraphicEl(d);
            c.group.remove(v)
        }).execute(),
        f.eachItemGraphicEl(function(d, v) {
            var h = f.getItemModel(v)
              , p = f.getItemVisual(v, "style");
            d.useStyle(f.getItemVisual(v, "style")),
            ea(d, Nr(h), {
                labelFetcher: r,
                labelDataIndex: v,
                defaultText: f.getName(v) || "",
                inheritColor: Ge(p.fill) ? L0(p.fill, 1) : "#000"
            }),
            Jr(d, h),
            Qn(d, null, null, h.get(["emphasis", "disabled"])),
            Ct(d).dataModel = r
        }),
        ab(c).data = f,
        c.group.silent = r.get("silent") || n.get("silent")
    }
    ,
    e.type = "markArea",
    e
}(NL);
function rvt(t, e, n) {
    var r, a, i = ["x0", "y0", "x1", "y1"];
    if (t) {
        var o = Le(t && t.dimensions, function(u) {
            var c = e.getData()
              , f = c.getDimensionInfo(c.mapDimension(u)) || {};
            return Me(Me({}, f), {
                name: u,
                ordinalMeta: null
            })
        });
        a = Le(i, function(u, c) {
            return {
                name: u,
                type: o[c % 2].type
            }
        }),
        r = new oa(a,n)
    } else
        a = [{
            name: "value",
            type: "float"
        }],
        r = new oa(a,n);
    var l = Le(n.get("data"), St(evt, e, t, n));
    t && (l = pn(l, St(tvt, t)));
    var s = t ? function(u, c, f, d) {
        var v = u.coord[Math.floor(d / 2)][d % 2];
        return wu(v, a[d])
    }
    : function(u, c, f, d) {
        return wu(u.value, a[d])
    }
    ;
    return r.initData(l, null, s),
    r.hasItemOption = !0,
    r
}
const avt = nvt;
function ivt(t) {
    t.registerComponentModel(Jdt),
    t.registerComponentView(avt),
    t.registerPreprocessor(function(e) {
        LL(e.series, "markArea") && (e.markArea = e.markArea || {})
    })
}
var ovt = function(t, e) {
    if (e === "all")
        return {
            type: "all",
            title: t.getLocaleModel().get(["legend", "selector", "all"])
        };
    if (e === "inverse")
        return {
            type: "inverse",
            title: t.getLocaleModel().get(["legend", "selector", "inverse"])
        }
}
  , lvt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.layoutMode = {
            type: "box",
            ignoreSize: !0
        },
        n
    }
    return e.prototype.init = function(n, r, a) {
        this.mergeDefaultAndTheme(n, a),
        n.selected = n.selected || {},
        this._updateSelector(n)
    }
    ,
    e.prototype.mergeOption = function(n, r) {
        t.prototype.mergeOption.call(this, n, r),
        this._updateSelector(n)
    }
    ,
    e.prototype._updateSelector = function(n) {
        var r = n.selector
          , a = this.ecModel;
        r === !0 && (r = n.selector = ["all", "inverse"]),
        ke(r) && Z(r, function(i, o) {
            Ge(i) && (i = {
                type: i
            }),
            r[o] = At(i, ovt(a, i.type))
        })
    }
    ,
    e.prototype.optionUpdated = function() {
        this._updateData(this.ecModel);
        var n = this._data;
        if (n[0] && this.get("selectedMode") === "single") {
            for (var r = !1, a = 0; a < n.length; a++) {
                var i = n[a].get("name");
                if (this.isSelected(i)) {
                    this.select(i),
                    r = !0;
                    break
                }
            }
            !r && this.select(n[0].get("name"))
        }
    }
    ,
    e.prototype._updateData = function(n) {
        var r = []
          , a = [];
        n.eachRawSeries(function(s) {
            var u = s.name;
            a.push(u);
            var c;
            if (s.legendVisualProvider) {
                var f = s.legendVisualProvider
                  , d = f.getAllNames();
                n.isSeriesFiltered(s) || (a = a.concat(d)),
                d.length ? r = r.concat(d) : c = !0
            } else
                c = !0;
            c && $6(s) && r.push(s.name)
        }),
        this._availableNames = a;
        var i = this.get("data") || r
          , o = Qe()
          , l = Le(i, function(s) {
            return (Ge(s) || rn(s)) && (s = {
                name: s
            }),
            o.get(s.name) ? null : (o.set(s.name, !0),
            new wn(s,this,this.ecModel))
        }, this);
        this._data = pn(l, function(s) {
            return !!s
        })
    }
    ,
    e.prototype.getData = function() {
        return this._data
    }
    ,
    e.prototype.select = function(n) {
        var r = this.option.selected
          , a = this.get("selectedMode");
        if (a === "single") {
            var i = this._data;
            Z(i, function(o) {
                r[o.get("name")] = !1
            })
        }
        r[n] = !0
    }
    ,
    e.prototype.unSelect = function(n) {
        this.get("selectedMode") !== "single" && (this.option.selected[n] = !1)
    }
    ,
    e.prototype.toggleSelected = function(n) {
        var r = this.option.selected;
        r.hasOwnProperty(n) || (r[n] = !0),
        this[r[n] ? "unSelect" : "select"](n)
    }
    ,
    e.prototype.allSelect = function() {
        var n = this._data
          , r = this.option.selected;
        Z(n, function(a) {
            r[a.get("name", !0)] = !0
        })
    }
    ,
    e.prototype.inverseSelect = function() {
        var n = this._data
          , r = this.option.selected;
        Z(n, function(a) {
            var i = a.get("name", !0);
            r.hasOwnProperty(i) || (r[i] = !0),
            r[i] = !r[i]
        })
    }
    ,
    e.prototype.isSelected = function(n) {
        var r = this.option.selected;
        return !(r.hasOwnProperty(n) && !r[n]) && Rt(this._availableNames, n) >= 0
    }
    ,
    e.prototype.getOrient = function() {
        return this.get("orient") === "vertical" ? {
            index: 1,
            name: "vertical"
        } : {
            index: 0,
            name: "horizontal"
        }
    }
    ,
    e.type = "legend.plain",
    e.dependencies = ["series"],
    e.defaultOption = {
        z: 4,
        show: !0,
        orient: "horizontal",
        left: "center",
        top: 0,
        align: "auto",
        backgroundColor: "rgba(0,0,0,0)",
        borderColor: "#ccc",
        borderRadius: 0,
        borderWidth: 0,
        padding: 5,
        itemGap: 10,
        itemWidth: 25,
        itemHeight: 14,
        symbolRotate: "inherit",
        symbolKeepAspect: !0,
        inactiveColor: "#ccc",
        inactiveBorderColor: "#ccc",
        inactiveBorderWidth: "auto",
        itemStyle: {
            color: "inherit",
            opacity: "inherit",
            borderColor: "inherit",
            borderWidth: "auto",
            borderCap: "inherit",
            borderJoin: "inherit",
            borderDashOffset: "inherit",
            borderMiterLimit: "inherit"
        },
        lineStyle: {
            width: "auto",
            color: "inherit",
            inactiveColor: "#ccc",
            inactiveWidth: 2,
            opacity: "inherit",
            type: "inherit",
            cap: "inherit",
            join: "inherit",
            dashOffset: "inherit",
            miterLimit: "inherit"
        },
        textStyle: {
            color: "#333"
        },
        selectedMode: !0,
        selector: !1,
        selectorLabel: {
            show: !0,
            borderRadius: 10,
            padding: [3, 5, 3, 5],
            fontSize: 12,
            fontFamily: "sans-serif",
            color: "#666",
            borderWidth: 1,
            borderColor: "#666"
        },
        emphasis: {
            selectorLabel: {
                show: !0,
                color: "#eee",
                backgroundColor: "#666"
            }
        },
        selectorPosition: "auto",
        selectorItemGap: 7,
        selectorButtonGap: 10,
        tooltip: {
            show: !1
        }
    },
    e
}(qt);
const Ok = lvt;
var Rd = St
  , Dk = Z
  , ib = mt
  , svt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.newlineDisabled = !1,
        n
    }
    return e.prototype.init = function() {
        this.group.add(this._contentGroup = new ib),
        this.group.add(this._selectorGroup = new ib),
        this._isFirstRender = !0
    }
    ,
    e.prototype.getContentGroup = function() {
        return this._contentGroup
    }
    ,
    e.prototype.getSelectorGroup = function() {
        return this._selectorGroup
    }
    ,
    e.prototype.render = function(n, r, a) {
        var i = this._isFirstRender;
        if (this._isFirstRender = !1,
        this.resetInner(),
        !!n.get("show", !0)) {
            var o = n.get("align")
              , l = n.get("orient");
            (!o || o === "auto") && (o = n.get("left") === "right" && l === "vertical" ? "right" : "left");
            var s = n.get("selector", !0)
              , u = n.get("selectorPosition", !0);
            s && (!u || u === "auto") && (u = l === "horizontal" ? "end" : "start"),
            this.renderInner(o, n, r, a, s, l, u);
            var c = n.getBoxLayoutParams()
              , f = {
                width: a.getWidth(),
                height: a.getHeight()
            }
              , d = n.get("padding")
              , v = xr(c, f, d)
              , h = this.layoutInner(n, o, v, i, s, u)
              , p = xr(ot({
                width: h.width,
                height: h.height
            }, c), f, d);
            this.group.x = p.x - h.x,
            this.group.y = p.y - h.y,
            this.group.markRedraw(),
            this.group.add(this._backgroundEl = Xce(h, n))
        }
    }
    ,
    e.prototype.resetInner = function() {
        this.getContentGroup().removeAll(),
        this._backgroundEl && this.group.remove(this._backgroundEl),
        this.getSelectorGroup().removeAll()
    }
    ,
    e.prototype.renderInner = function(n, r, a, i, o, l, s) {
        var u = this.getContentGroup()
          , c = Qe()
          , f = r.get("selectedMode")
          , d = [];
        a.eachRawSeries(function(v) {
            !v.get("legendHoverLink") && d.push(v.id)
        }),
        Dk(r.getData(), function(v, h) {
            var p = v.get("name");
            if (!this.newlineDisabled && (p === "" || p === `
`)) {
                var g = new ib;
                g.newline = !0,
                u.add(g);
                return
            }
            var m = a.getSeriesByName(p)[0];
            if (!c.get(p))
                if (m) {
                    var y = m.getData()
                      , b = y.getVisual("legendLineStyle") || {}
                      , x = y.getVisual("legendIcon")
                      , C = y.getVisual("style")
                      , S = this._createItem(m, p, h, v, r, n, b, C, x, f, i);
                    S.on("click", Rd(qU, p, null, i, d)).on("mouseover", Rd(Ek, m.name, null, i, d)).on("mouseout", Rd(Lk, m.name, null, i, d)),
                    c.set(p, !0)
                } else
                    a.eachRawSeries(function(w) {
                        if (!c.get(p) && w.legendVisualProvider) {
                            var T = w.legendVisualProvider;
                            if (!T.containName(p))
                                return;
                            var P = T.indexOfName(p)
                              , M = T.getItemVisual(P, "style")
                              , A = T.getItemVisual(P, "legendIcon")
                              , O = _a(M.fill);
                            O && O[3] === 0 && (O[3] = .2,
                            M = Me(Me({}, M), {
                                fill: go(O, "rgba")
                            }));
                            var k = this._createItem(w, p, h, v, r, n, {}, M, A, f, i);
                            k.on("click", Rd(qU, null, p, i, d)).on("mouseover", Rd(Ek, null, p, i, d)).on("mouseout", Rd(Lk, null, p, i, d)),
                            c.set(p, !0)
                        }
                    }, this)
        }, this),
        o && this._createSelector(o, r, i, l, s)
    }
    ,
    e.prototype._createSelector = function(n, r, a, i, o) {
        var l = this.getSelectorGroup();
        Dk(n, function(u) {
            var c = u.type
              , f = new Jt({
                style: {
                    x: 0,
                    y: 0,
                    align: "center",
                    verticalAlign: "middle"
                },
                onclick: function() {
                    a.dispatchAction({
                        type: c === "all" ? "legendAllSelect" : "legendInverseSelect"
                    })
                }
            });
            l.add(f);
            var d = r.getModel("selectorLabel")
              , v = r.getModel(["emphasis", "selectorLabel"]);
            ea(f, {
                normal: d,
                emphasis: v
            }, {
                defaultText: u.title
            }),
            xu(f)
        })
    }
    ,
    e.prototype._createItem = function(n, r, a, i, o, l, s, u, c, f, d) {
        var v = n.visualDrawType
          , h = o.get("itemWidth")
          , p = o.get("itemHeight")
          , g = o.isSelected(r)
          , m = i.get("symbolRotate")
          , y = i.get("symbolKeepAspect")
          , b = i.get("icon");
        c = b || c || "roundRect";
        var x = uvt(c, i, s, u, v, g, d)
          , C = new ib
          , S = i.getModel("textStyle");
        if (et(n.getLegendIcon) && (!b || b === "inherit"))
            C.add(n.getLegendIcon({
                itemWidth: h,
                itemHeight: p,
                icon: c,
                iconRotate: m,
                itemStyle: x.itemStyle,
                lineStyle: x.lineStyle,
                symbolKeepAspect: y
            }));
        else {
            var w = b === "inherit" && n.getData().getVisual("symbol") ? m === "inherit" ? n.getData().getVisual("symbolRotate") : m : 0;
            C.add(cvt({
                itemWidth: h,
                itemHeight: p,
                icon: c,
                iconRotate: w,
                itemStyle: x.itemStyle,
                lineStyle: x.lineStyle,
                symbolKeepAspect: y
            }))
        }
        var T = l === "left" ? h + 5 : -5
          , P = l
          , M = o.get("formatter")
          , A = r;
        Ge(M) && M ? A = M.replace("{name}", r != null ? r : "") : et(M) && (A = M(r));
        var O = g ? S.getTextColor() : i.get("inactiveColor");
        C.add(new Jt({
            style: In(S, {
                text: A,
                x: T,
                y: p / 2,
                fill: O,
                align: P,
                verticalAlign: "middle"
            }, {
                inheritColor: O
            })
        }));
        var k = new tn({
            shape: C.getBoundingRect(),
            invisible: !0
        })
          , D = i.getModel("tooltip");
        return D.get("show") && kh({
            el: k,
            componentModel: o,
            itemName: r,
            itemTooltipOption: D.option
        }),
        C.add(k),
        C.eachChild(function(E) {
            E.silent = !0
        }),
        k.silent = !f,
        this.getContentGroup().add(C),
        xu(C),
        C.__legendDataIndex = a,
        C
    }
    ,
    e.prototype.layoutInner = function(n, r, a, i, o, l) {
        var s = this.getContentGroup()
          , u = this.getSelectorGroup();
        Cf(n.get("orient"), s, n.get("itemGap"), a.width, a.height);
        var c = s.getBoundingRect()
          , f = [-c.x, -c.y];
        if (u.markRedraw(),
        s.markRedraw(),
        o) {
            Cf("horizontal", u, n.get("selectorItemGap", !0));
            var d = u.getBoundingRect()
              , v = [-d.x, -d.y]
              , h = n.get("selectorButtonGap", !0)
              , p = n.getOrient().index
              , g = p === 0 ? "width" : "height"
              , m = p === 0 ? "height" : "width"
              , y = p === 0 ? "y" : "x";
            l === "end" ? v[p] += c[g] + h : f[p] += d[g] + h,
            v[1 - p] += c[m] / 2 - d[m] / 2,
            u.x = v[0],
            u.y = v[1],
            s.x = f[0],
            s.y = f[1];
            var b = {
                x: 0,
                y: 0
            };
            return b[g] = c[g] + h + d[g],
            b[m] = Math.max(c[m], d[m]),
            b[y] = Math.min(0, d[y] + v[1 - p]),
            b
        } else
            return s.x = f[0],
            s.y = f[1],
            this.group.getBoundingRect()
    }
    ,
    e.prototype.remove = function() {
        this.getContentGroup().removeAll(),
        this._isFirstRender = !0
    }
    ,
    e.type = "legend.plain",
    e
}(Bn);
function uvt(t, e, n, r, a, i, o) {
    function l(g, m) {
        g.lineWidth === "auto" && (g.lineWidth = m.lineWidth > 0 ? 2 : 0),
        Dk(g, function(y, b) {
            g[b] === "inherit" && (g[b] = m[b])
        })
    }
    var s = e.getModel("itemStyle")
      , u = s.getItemStyle()
      , c = t.lastIndexOf("empty", 0) === 0 ? "fill" : "stroke"
      , f = s.getShallow("decal");
    u.decal = !f || f === "inherit" ? r.decal : Jv(f, o),
    u.fill === "inherit" && (u.fill = r[a]),
    u.stroke === "inherit" && (u.stroke = r[c]),
    u.opacity === "inherit" && (u.opacity = (a === "fill" ? r : n).opacity),
    l(u, r);
    var d = e.getModel("lineStyle")
      , v = d.getLineStyle();
    if (l(v, n),
    u.fill === "auto" && (u.fill = r.fill),
    u.stroke === "auto" && (u.stroke = r.fill),
    v.stroke === "auto" && (v.stroke = r.fill),
    !i) {
        var h = e.get("inactiveBorderWidth")
          , p = u[c];
        u.lineWidth = h === "auto" ? r.lineWidth > 0 && p ? 2 : 0 : u.lineWidth,
        u.fill = e.get("inactiveColor"),
        u.stroke = e.get("inactiveBorderColor"),
        v.stroke = d.get("inactiveColor"),
        v.lineWidth = d.get("inactiveWidth")
    }
    return {
        itemStyle: u,
        lineStyle: v
    }
}
function cvt(t) {
    var e = t.icon || "roundRect"
      , n = fr(e, 0, 0, t.itemWidth, t.itemHeight, t.itemStyle.fill, t.symbolKeepAspect);
    return n.setStyle(t.itemStyle),
    n.rotation = (t.iconRotate || 0) * Math.PI / 180,
    n.setOrigin([t.itemWidth / 2, t.itemHeight / 2]),
    e.indexOf("empty") > -1 && (n.style.stroke = n.style.fill,
    n.style.fill = "#fff",
    n.style.lineWidth = 2),
    n
}
function qU(t, e, n, r) {
    Lk(t, e, n, r),
    n.dispatchAction({
        type: "legendToggleSelect",
        name: t != null ? t : e
    }),
    Ek(t, e, n, r)
}
function ufe(t) {
    for (var e = t.getZr().storage.getDisplayList(), n, r = 0, a = e.length; r < a && !(n = e[r].states.emphasis); )
        r++;
    return n && n.hoverLayer
}
function Ek(t, e, n, r) {
    ufe(n) || n.dispatchAction({
        type: "highlight",
        seriesName: t,
        name: e,
        excludeSeriesId: r
    })
}
function Lk(t, e, n, r) {
    ufe(n) || n.dispatchAction({
        type: "downplay",
        seriesName: t,
        name: e,
        excludeSeriesId: r
    })
}
const cfe = svt;
function fvt(t) {
    var e = t.findComponents({
        mainType: "legend"
    });
    e && e.length && t.filterSeries(function(n) {
        for (var r = 0; r < e.length; r++)
            if (!e[r].isSelected(n.name))
                return !1;
        return !0
    })
}
function Rp(t, e, n) {
    var r = {}, a = t === "toggleSelected", i;
    return n.eachComponent("legend", function(o) {
        a && i != null ? o[i ? "select" : "unSelect"](e.name) : t === "allSelect" || t === "inverseSelect" ? o[t]() : (o[t](e.name),
        i = o.isSelected(e.name));
        var l = o.getData();
        Z(l, function(s) {
            var u = s.get("name");
            if (!(u === `
` || u === "")) {
                var c = o.isSelected(u);
                r.hasOwnProperty(u) ? r[u] = r[u] && c : r[u] = c
            }
        })
    }),
    t === "allSelect" || t === "inverseSelect" ? {
        selected: r
    } : {
        name: e.name,
        selected: r
    }
}
function dvt(t) {
    t.registerAction("legendToggleSelect", "legendselectchanged", St(Rp, "toggleSelected")),
    t.registerAction("legendAllSelect", "legendselectall", St(Rp, "allSelect")),
    t.registerAction("legendInverseSelect", "legendinverseselect", St(Rp, "inverseSelect")),
    t.registerAction("legendSelect", "legendselected", St(Rp, "select")),
    t.registerAction("legendUnSelect", "legendunselected", St(Rp, "unSelect"))
}
function ffe(t) {
    t.registerComponentModel(Ok),
    t.registerComponentView(cfe),
    t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER, fvt),
    t.registerSubTypeDefaulter("legend", function() {
        return "plain"
    }),
    dvt(t)
}
var vvt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.setScrollDataIndex = function(n) {
        this.option.scrollDataIndex = n
    }
    ,
    e.prototype.init = function(n, r, a) {
        var i = Eh(n);
        t.prototype.init.call(this, n, r, a),
        XU(this, n, i)
    }
    ,
    e.prototype.mergeOption = function(n, r) {
        t.prototype.mergeOption.call(this, n, r),
        XU(this, this.option, n)
    }
    ,
    e.type = "legend.scroll",
    e.defaultOption = Yu(Ok.defaultOption, {
        scrollDataIndex: 0,
        pageButtonItemGap: 5,
        pageButtonGap: null,
        pageButtonPosition: "end",
        pageFormatter: "{current}/{total}",
        pageIcons: {
            horizontal: ["M0,0L12,-10L12,10z", "M0,0L-12,-10L-12,10z"],
            vertical: ["M0,0L20,0L10,-20z", "M0,0L20,0L10,20z"]
        },
        pageIconColor: "#2f4554",
        pageIconInactiveColor: "#aaa",
        pageIconSize: 15,
        pageTextStyle: {
            color: "#333"
        },
        animationDurationUpdate: 800
    }),
    e
}(Ok);
function XU(t, e, n) {
    var r = t.getOrient()
      , a = [1, 1];
    a[r.index] = 0,
    Eu(e, n, {
        type: "box",
        ignoreSize: !!a
    })
}
const hvt = vvt;
var ZU = mt
  , y3 = ["width", "height"]
  , b3 = ["x", "y"]
  , pvt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.newlineDisabled = !0,
        n._currentIndex = 0,
        n
    }
    return e.prototype.init = function() {
        t.prototype.init.call(this),
        this.group.add(this._containerGroup = new ZU),
        this._containerGroup.add(this.getContentGroup()),
        this.group.add(this._controllerGroup = new ZU)
    }
    ,
    e.prototype.resetInner = function() {
        t.prototype.resetInner.call(this),
        this._controllerGroup.removeAll(),
        this._containerGroup.removeClipPath(),
        this._containerGroup.__rectSize = null
    }
    ,
    e.prototype.renderInner = function(n, r, a, i, o, l, s) {
        var u = this;
        t.prototype.renderInner.call(this, n, r, a, i, o, l, s);
        var c = this._controllerGroup
          , f = r.get("pageIconSize", !0)
          , d = ke(f) ? f : [f, f];
        h("pagePrev", 0);
        var v = r.getModel("pageTextStyle");
        c.add(new Jt({
            name: "pageText",
            style: {
                text: "xx/xx",
                fill: v.getTextColor(),
                font: v.getFont(),
                verticalAlign: "middle",
                align: "center"
            },
            silent: !0
        })),
        h("pageNext", 1);
        function h(p, g) {
            var m = p + "DataIndex"
              , y = Ih(r.get("pageIcons", !0)[r.getOrient().name][g], {
                onclick: qe(u._pageGo, u, m, r, i)
            }, {
                x: -d[0] / 2,
                y: -d[1] / 2,
                width: d[0],
                height: d[1]
            });
            y.name = p,
            c.add(y)
        }
    }
    ,
    e.prototype.layoutInner = function(n, r, a, i, o, l) {
        var s = this.getSelectorGroup()
          , u = n.getOrient().index
          , c = y3[u]
          , f = b3[u]
          , d = y3[1 - u]
          , v = b3[1 - u];
        o && Cf("horizontal", s, n.get("selectorItemGap", !0));
        var h = n.get("selectorButtonGap", !0)
          , p = s.getBoundingRect()
          , g = [-p.x, -p.y]
          , m = ut(a);
        o && (m[c] = a[c] - p[c] - h);
        var y = this._layoutContentAndController(n, i, m, u, c, d, v, f);
        if (o) {
            if (l === "end")
                g[u] += y[c] + h;
            else {
                var b = p[c] + h;
                g[u] -= b,
                y[f] -= b
            }
            y[c] += p[c] + h,
            g[1 - u] += y[v] + y[d] / 2 - p[d] / 2,
            y[d] = Math.max(y[d], p[d]),
            y[v] = Math.min(y[v], p[v] + g[1 - u]),
            s.x = g[0],
            s.y = g[1],
            s.markRedraw()
        }
        return y
    }
    ,
    e.prototype._layoutContentAndController = function(n, r, a, i, o, l, s, u) {
        var c = this.getContentGroup()
          , f = this._containerGroup
          , d = this._controllerGroup;
        Cf(n.get("orient"), c, n.get("itemGap"), i ? a.width : null, i ? null : a.height),
        Cf("horizontal", d, n.get("pageButtonItemGap", !0));
        var v = c.getBoundingRect()
          , h = d.getBoundingRect()
          , p = this._showController = v[o] > a[o]
          , g = [-v.x, -v.y];
        r || (g[i] = c[u]);
        var m = [0, 0]
          , y = [-h.x, -h.y]
          , b = Ot(n.get("pageButtonGap", !0), n.get("itemGap", !0));
        if (p) {
            var x = n.get("pageButtonPosition", !0);
            x === "end" ? y[i] += a[o] - h[o] : m[i] += h[o] + b
        }
        y[1 - i] += v[l] / 2 - h[l] / 2,
        c.setPosition(g),
        f.setPosition(m),
        d.setPosition(y);
        var C = {
            x: 0,
            y: 0
        };
        if (C[o] = p ? a[o] : v[o],
        C[l] = Math.max(v[l], h[l]),
        C[s] = Math.min(0, h[s] + y[1 - i]),
        f.__rectSize = a[o],
        p) {
            var S = {
                x: 0,
                y: 0
            };
            S[o] = Math.max(a[o] - h[o] - b, 0),
            S[l] = C[l],
            f.setClipPath(new tn({
                shape: S
            })),
            f.__rectSize = S[o]
        } else
            d.eachChild(function(T) {
                T.attr({
                    invisible: !0,
                    silent: !0
                })
            });
        var w = this._getPageInfo(n);
        return w.pageIndex != null && ln(c, {
            x: w.contentPosition[0],
            y: w.contentPosition[1]
        }, p ? n : null),
        this._updatePageInfoView(n, w),
        C
    }
    ,
    e.prototype._pageGo = function(n, r, a) {
        var i = this._getPageInfo(r)[n];
        i != null && a.dispatchAction({
            type: "legendScroll",
            scrollDataIndex: i,
            legendId: r.id
        })
    }
    ,
    e.prototype._updatePageInfoView = function(n, r) {
        var a = this._controllerGroup;
        Z(["pagePrev", "pageNext"], function(c) {
            var f = c + "DataIndex"
              , d = r[f] != null
              , v = a.childOfName(c);
            v && (v.setStyle("fill", d ? n.get("pageIconColor", !0) : n.get("pageIconInactiveColor", !0)),
            v.cursor = d ? "pointer" : "default")
        });
        var i = a.childOfName("pageText")
          , o = n.get("pageFormatter")
          , l = r.pageIndex
          , s = l != null ? l + 1 : 0
          , u = r.pageCount;
        i && o && i.setStyle("text", Ge(o) ? o.replace("{current}", s == null ? "" : s + "").replace("{total}", u == null ? "" : u + "") : o({
            current: s,
            total: u
        }))
    }
    ,
    e.prototype._getPageInfo = function(n) {
        var r = n.get("scrollDataIndex", !0)
          , a = this.getContentGroup()
          , i = this._containerGroup.__rectSize
          , o = n.getOrient().index
          , l = y3[o]
          , s = b3[o]
          , u = this._findTargetItemIndex(r)
          , c = a.children()
          , f = c[u]
          , d = c.length
          , v = d ? 1 : 0
          , h = {
            contentPosition: [a.x, a.y],
            pageCount: v,
            pageIndex: v - 1,
            pagePrevDataIndex: null,
            pageNextDataIndex: null
        };
        if (!f)
            return h;
        var p = x(f);
        h.contentPosition[o] = -p.s;
        for (var g = u + 1, m = p, y = p, b = null; g <= d; ++g)
            b = x(c[g]),
            (!b && y.e > m.s + i || b && !C(b, m.s)) && (y.i > m.i ? m = y : m = b,
            m && (h.pageNextDataIndex == null && (h.pageNextDataIndex = m.i),
            ++h.pageCount)),
            y = b;
        for (var g = u - 1, m = p, y = p, b = null; g >= -1; --g)
            b = x(c[g]),
            (!b || !C(y, b.s)) && m.i < y.i && (y = m,
            h.pagePrevDataIndex == null && (h.pagePrevDataIndex = m.i),
            ++h.pageCount,
            ++h.pageIndex),
            m = b;
        return h;
        function x(S) {
            if (S) {
                var w = S.getBoundingRect()
                  , T = w[s] + S[s];
                return {
                    s: T,
                    e: T + w[l],
                    i: S.__legendDataIndex
                }
            }
        }
        function C(S, w) {
            return S.e >= w && S.s <= w + i
        }
    }
    ,
    e.prototype._findTargetItemIndex = function(n) {
        if (!this._showController)
            return 0;
        var r, a = this.getContentGroup(), i;
        return a.eachChild(function(o, l) {
            var s = o.__legendDataIndex;
            i == null && s != null && (i = l),
            s === n && (r = l)
        }),
        r != null ? r : i
    }
    ,
    e.type = "legend.scroll",
    e
}(cfe);
const gvt = pvt;
function mvt(t) {
    t.registerAction("legendScroll", "legendscroll", function(e, n) {
        var r = e.scrollDataIndex;
        r != null && n.eachComponent({
            mainType: "legend",
            subType: "scroll",
            query: e
        }, function(a) {
            a.setScrollDataIndex(r)
        })
    })
}
function yvt(t) {
    Bt(ffe),
    t.registerComponentModel(hvt),
    t.registerComponentView(gvt),
    mvt(t)
}
function bvt(t) {
    Bt(ffe),
    Bt(yvt)
}
var xvt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "dataZoom.inside",
    e.defaultOption = Yu(im.defaultOption, {
        disabled: !1,
        zoomLock: !1,
        zoomOnMouseWheel: !0,
        moveOnMouseMove: !0,
        moveOnMouseWheel: !1,
        preventDefaultMouseMove: !0
    }),
    e
}(im);
const Svt = xvt;
var $L = an();
function Cvt(t, e, n) {
    $L(t).coordSysRecordMap.each(function(r) {
        var a = r.dataZoomInfoMap.get(e.uid);
        a && (a.getRange = n)
    })
}
function wvt(t, e) {
    for (var n = $L(t).coordSysRecordMap, r = n.keys(), a = 0; a < r.length; a++) {
        var i = r[a]
          , o = n.get(i)
          , l = o.dataZoomInfoMap;
        if (l) {
            var s = e.uid
              , u = l.get(s);
            u && (l.removeKey(s),
            l.keys().length || dfe(n, o))
        }
    }
}
function dfe(t, e) {
    if (e) {
        t.removeKey(e.model.uid);
        var n = e.controller;
        n && n.dispose()
    }
}
function _vt(t, e) {
    var n = {
        model: e,
        containsPoint: St(Pvt, e),
        dispatchAction: St(Tvt, t),
        dataZoomInfoMap: null,
        controller: null
    }
      , r = n.controller = new uy(t.getZr());
    return Z(["pan", "zoom", "scrollMove"], function(a) {
        r.on(a, function(i) {
            var o = [];
            n.dataZoomInfoMap.each(function(l) {
                if (!!i.isAvailableBehavior(l.model.option)) {
                    var s = (l.getRange || {})[a]
                      , u = s && s(l.dzReferCoordSysInfo, n.model.mainType, n.controller, i);
                    !l.model.get("disabled", !0) && u && o.push({
                        dataZoomId: l.model.id,
                        start: u[0],
                        end: u[1]
                    })
                }
            }),
            o.length && n.dispatchAction(o)
        })
    }),
    n
}
function Tvt(t, e) {
    t.isDisposed() || t.dispatchAction({
        type: "dataZoom",
        animation: {
            easing: "cubicOut",
            duration: 100
        },
        batch: e
    })
}
function Pvt(t, e, n, r) {
    return t.coordinateSystem.containPoint([n, r])
}
function Mvt(t) {
    var e, n = "type_", r = {
        type_true: 2,
        type_move: 1,
        type_false: 0,
        type_undefined: -1
    }, a = !0;
    return t.each(function(i) {
        var o = i.model
          , l = o.get("disabled", !0) ? !1 : o.get("zoomLock", !0) ? "move" : !0;
        r[n + l] > r[n + e] && (e = l),
        a = a && o.get("preventDefaultMouseMove", !0)
    }),
    {
        controlType: e,
        opt: {
            zoomOnMouseWheel: !0,
            moveOnMouseMove: !0,
            moveOnMouseWheel: !0,
            preventDefaultMouseMove: !!a
        }
    }
}
function Avt(t) {
    t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER, function(e, n) {
        var r = $L(n)
          , a = r.coordSysRecordMap || (r.coordSysRecordMap = Qe());
        a.each(function(i) {
            i.dataZoomInfoMap = null
        }),
        e.eachComponent({
            mainType: "dataZoom",
            subType: "inside"
        }, function(i) {
            var o = Uce(i);
            Z(o.infoList, function(l) {
                var s = l.model.uid
                  , u = a.get(s) || a.set(s, _vt(n, l.model))
                  , c = u.dataZoomInfoMap || (u.dataZoomInfoMap = Qe());
                c.set(i.uid, {
                    dzReferCoordSysInfo: l,
                    model: i,
                    getRange: null
                })
            })
        }),
        a.each(function(i) {
            var o = i.controller, l, s = i.dataZoomInfoMap;
            if (s) {
                var u = s.keys()[0];
                u != null && (l = s.get(u))
            }
            if (!l) {
                dfe(a, i);
                return
            }
            var c = Mvt(s);
            o.enable(c.controlType, c.opt),
            o.setPointerChecker(i.containsPoint),
            Fh(i, "dispatchAction", l.model.get("throttle", !0), "fixRate")
        })
    })
}
var Ivt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = "dataZoom.inside",
        n
    }
    return e.prototype.render = function(n, r, a) {
        if (t.prototype.render.apply(this, arguments),
        n.noTarget()) {
            this._clear();
            return
        }
        this.range = n.getPercentRange(),
        Cvt(a, n, {
            pan: qe(x3.pan, this),
            zoom: qe(x3.zoom, this),
            scrollMove: qe(x3.scrollMove, this)
        })
    }
    ,
    e.prototype.dispose = function() {
        this._clear(),
        t.prototype.dispose.apply(this, arguments)
    }
    ,
    e.prototype._clear = function() {
        wvt(this.api, this.dataZoomModel),
        this.range = null
    }
    ,
    e.type = "dataZoom.inside",
    e
}(AL)
  , x3 = {
    zoom: function(t, e, n, r) {
        var a = this.range
          , i = a.slice()
          , o = t.axisModels[0];
        if (!!o) {
            var l = S3[e](null, [r.originX, r.originY], o, n, t)
              , s = (l.signal > 0 ? l.pixelStart + l.pixelLength - l.pixel : l.pixel - l.pixelStart) / l.pixelLength * (i[1] - i[0]) + i[0]
              , u = Math.max(1 / r.scale, 0);
            i[0] = (i[0] - s) * u + s,
            i[1] = (i[1] - s) * u + s;
            var c = this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
            if (sd(0, i, [0, 100], 0, c.minSpan, c.maxSpan),
            this.range = i,
            a[0] !== i[0] || a[1] !== i[1])
                return i
        }
    },
    pan: QU(function(t, e, n, r, a, i) {
        var o = S3[r]([i.oldX, i.oldY], [i.newX, i.newY], e, a, n);
        return o.signal * (t[1] - t[0]) * o.pixel / o.pixelLength
    }),
    scrollMove: QU(function(t, e, n, r, a, i) {
        var o = S3[r]([0, 0], [i.scrollDelta, i.scrollDelta], e, a, n);
        return o.signal * (t[1] - t[0]) * i.scrollDelta
    })
};
function QU(t) {
    return function(e, n, r, a) {
        var i = this.range
          , o = i.slice()
          , l = e.axisModels[0];
        if (!!l) {
            var s = t(o, l, e, n, r, a);
            if (sd(s, o, [0, 100], "all"),
            this.range = o,
            i[0] !== o[0] || i[1] !== o[1])
                return o
        }
    }
}
var S3 = {
    grid: function(t, e, n, r, a) {
        var i = n.axis
          , o = {}
          , l = a.model.coordinateSystem.getRect();
        return t = t || [0, 0],
        i.dim === "x" ? (o.pixel = e[0] - t[0],
        o.pixelLength = l.width,
        o.pixelStart = l.x,
        o.signal = i.inverse ? 1 : -1) : (o.pixel = e[1] - t[1],
        o.pixelLength = l.height,
        o.pixelStart = l.y,
        o.signal = i.inverse ? -1 : 1),
        o
    },
    polar: function(t, e, n, r, a) {
        var i = n.axis
          , o = {}
          , l = a.model.coordinateSystem
          , s = l.getRadiusAxis().getExtent()
          , u = l.getAngleAxis().getExtent();
        return t = t ? l.pointToCoord(t) : [0, 0],
        e = l.pointToCoord(e),
        n.mainType === "radiusAxis" ? (o.pixel = e[0] - t[0],
        o.pixelLength = s[1] - s[0],
        o.pixelStart = s[0],
        o.signal = i.inverse ? 1 : -1) : (o.pixel = e[1] - t[1],
        o.pixelLength = u[1] - u[0],
        o.pixelStart = u[0],
        o.signal = i.inverse ? -1 : 1),
        o
    },
    singleAxis: function(t, e, n, r, a) {
        var i = n.axis
          , o = a.model.coordinateSystem.getRect()
          , l = {};
        return t = t || [0, 0],
        i.orient === "horizontal" ? (l.pixel = e[0] - t[0],
        l.pixelLength = o.width,
        l.pixelStart = o.x,
        l.signal = i.inverse ? 1 : -1) : (l.pixel = e[1] - t[1],
        l.pixelLength = o.height,
        l.pixelStart = o.y,
        l.signal = i.inverse ? -1 : 1),
        l
    }
};
const kvt = Ivt;
function vfe(t) {
    IL(t),
    t.registerComponentModel(Svt),
    t.registerComponentView(kvt),
    Avt(t)
}
var Ovt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.type = "dataZoom.slider",
    e.layoutMode = "box",
    e.defaultOption = Yu(im.defaultOption, {
        show: !0,
        right: "ph",
        top: "ph",
        width: "ph",
        height: "ph",
        left: null,
        bottom: null,
        borderColor: "#d2dbee",
        borderRadius: 3,
        backgroundColor: "rgba(47,69,84,0)",
        dataBackground: {
            lineStyle: {
                color: "#d2dbee",
                width: .5
            },
            areaStyle: {
                color: "#d2dbee",
                opacity: .2
            }
        },
        selectedDataBackground: {
            lineStyle: {
                color: "#8fb0f7",
                width: .5
            },
            areaStyle: {
                color: "#8fb0f7",
                opacity: .2
            }
        },
        fillerColor: "rgba(135,175,274,0.2)",
        handleIcon: "path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",
        handleSize: "100%",
        handleStyle: {
            color: "#fff",
            borderColor: "#ACB8D1"
        },
        moveHandleSize: 7,
        moveHandleIcon: "path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",
        moveHandleStyle: {
            color: "#D2DBEE",
            opacity: .7
        },
        showDetail: !0,
        showDataShadow: "auto",
        realtime: !0,
        zoomLock: !1,
        textStyle: {
            color: "#6E7079"
        },
        brushSelect: !0,
        brushStyle: {
            color: "rgba(135,175,274,0.15)"
        },
        emphasis: {
            handleStyle: {
                borderColor: "#8FB0F7"
            },
            moveHandleStyle: {
                color: "#8FB0F7"
            }
        }
    }),
    e
}(im);
const Dvt = Ovt;
var Np = tn
  , JU = 7
  , Evt = 1
  , C3 = 30
  , Lvt = 7
  , $p = "horizontal"
  , eY = "vertical"
  , Rvt = 5
  , Nvt = ["line", "bar", "candlestick", "scatter"]
  , $vt = {
    easing: "cubicOut",
    duration: 100,
    delay: 0
}
  , Fvt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n._displayables = {},
        n
    }
    return e.prototype.init = function(n, r) {
        this.api = r,
        this._onBrush = qe(this._onBrush, this),
        this._onBrushEnd = qe(this._onBrushEnd, this)
    }
    ,
    e.prototype.render = function(n, r, a, i) {
        if (t.prototype.render.apply(this, arguments),
        Fh(this, "_dispatchZoomAction", n.get("throttle"), "fixRate"),
        this._orient = n.getOrient(),
        n.get("show") === !1) {
            this.group.removeAll();
            return
        }
        if (n.noTarget()) {
            this._clear(),
            this.group.removeAll();
            return
        }
        (!i || i.type !== "dataZoom" || i.from !== this.uid) && this._buildView(),
        this._updateView()
    }
    ,
    e.prototype.dispose = function() {
        this._clear(),
        t.prototype.dispose.apply(this, arguments)
    }
    ,
    e.prototype._clear = function() {
        U0(this, "_dispatchZoomAction");
        var n = this.api.getZr();
        n.off("mousemove", this._onBrush),
        n.off("mouseup", this._onBrushEnd)
    }
    ,
    e.prototype._buildView = function() {
        var n = this.group;
        n.removeAll(),
        this._brushing = !1,
        this._displayables.brushRect = null,
        this._resetLocation(),
        this._resetInterval();
        var r = this._displayables.sliderGroup = new mt;
        this._renderBackground(),
        this._renderHandle(),
        this._renderDataShadow(),
        n.add(r),
        this._positionGroup()
    }
    ,
    e.prototype._resetLocation = function() {
        var n = this.dataZoomModel
          , r = this.api
          , a = n.get("brushSelect")
          , i = a ? Lvt : 0
          , o = this._findCoordRect()
          , l = {
            width: r.getWidth(),
            height: r.getHeight()
        }
          , s = this._orient === $p ? {
            right: l.width - o.x - o.width,
            top: l.height - C3 - JU - i,
            width: o.width,
            height: C3
        } : {
            right: JU,
            top: o.y,
            width: C3,
            height: o.height
        }
          , u = Eh(n.option);
        Z(["right", "top", "width", "height"], function(f) {
            u[f] === "ph" && (u[f] = s[f])
        });
        var c = xr(u, l);
        this._location = {
            x: c.x,
            y: c.y
        },
        this._size = [c.width, c.height],
        this._orient === eY && this._size.reverse()
    }
    ,
    e.prototype._positionGroup = function() {
        var n = this.group
          , r = this._location
          , a = this._orient
          , i = this.dataZoomModel.getFirstTargetAxisModel()
          , o = i && i.get("inverse")
          , l = this._displayables.sliderGroup
          , s = (this._dataShadowInfo || {}).otherAxisInverse;
        l.attr(a === $p && !o ? {
            scaleY: s ? 1 : -1,
            scaleX: 1
        } : a === $p && o ? {
            scaleY: s ? 1 : -1,
            scaleX: -1
        } : a === eY && !o ? {
            scaleY: s ? -1 : 1,
            scaleX: 1,
            rotation: Math.PI / 2
        } : {
            scaleY: s ? -1 : 1,
            scaleX: -1,
            rotation: Math.PI / 2
        });
        var u = n.getBoundingRect([l]);
        n.x = r.x - u.x,
        n.y = r.y - u.y,
        n.markRedraw()
    }
    ,
    e.prototype._getViewExtent = function() {
        return [0, this._size[0]]
    }
    ,
    e.prototype._renderBackground = function() {
        var n = this.dataZoomModel
          , r = this._size
          , a = this._displayables.sliderGroup
          , i = n.get("brushSelect");
        a.add(new Np({
            silent: !0,
            shape: {
                x: 0,
                y: 0,
                width: r[0],
                height: r[1]
            },
            style: {
                fill: n.get("backgroundColor")
            },
            z2: -40
        }));
        var o = new Np({
            shape: {
                x: 0,
                y: 0,
                width: r[0],
                height: r[1]
            },
            style: {
                fill: "transparent"
            },
            z2: 0,
            onclick: qe(this._onClickPanel, this)
        })
          , l = this.api.getZr();
        i ? (o.on("mousedown", this._onBrushStart, this),
        o.cursor = "crosshair",
        l.on("mousemove", this._onBrush),
        l.on("mouseup", this._onBrushEnd)) : (l.off("mousemove", this._onBrush),
        l.off("mouseup", this._onBrushEnd)),
        a.add(o)
    }
    ,
    e.prototype._renderDataShadow = function() {
        var n = this._dataShadowInfo = this._prepareDataShadowInfo();
        if (this._displayables.dataShadowSegs = [],
        !n)
            return;
        var r = this._size
          , a = this._shadowSize || []
          , i = n.series
          , o = i.getRawData()
          , l = i.getShadowDim && i.getShadowDim()
          , s = l && o.getDimensionInfo(l) ? i.getShadowDim() : n.otherDim;
        if (s == null)
            return;
        var u = this._shadowPolygonPts
          , c = this._shadowPolylinePts;
        if (o !== this._shadowData || s !== this._shadowDim || r[0] !== a[0] || r[1] !== a[1]) {
            var f = o.getDataExtent(s)
              , d = (f[1] - f[0]) * .3;
            f = [f[0] - d, f[1] + d];
            var v = [0, r[1]], h = [0, r[0]], p = [[r[0], 0], [0, 0]], g = [], m = h[1] / (o.count() - 1), y = 0, b = Math.round(o.count() / r[0]), x;
            o.each([s], function(P, M) {
                if (b > 0 && M % b) {
                    y += m;
                    return
                }
                var A = P == null || isNaN(P) || P === ""
                  , O = A ? 0 : vn(P, f, v, !0);
                A && !x && M ? (p.push([p[p.length - 1][0], 0]),
                g.push([g[g.length - 1][0], 0])) : !A && x && (p.push([y, 0]),
                g.push([y, 0])),
                p.push([y, O]),
                g.push([y, O]),
                y += m,
                x = A
            }),
            u = this._shadowPolygonPts = p,
            c = this._shadowPolylinePts = g
        }
        this._shadowData = o,
        this._shadowDim = s,
        this._shadowSize = [r[0], r[1]];
        var C = this.dataZoomModel;
        function S(P) {
            var M = C.getModel(P ? "selectedDataBackground" : "dataBackground")
              , A = new mt
              , O = new Ma({
                shape: {
                    points: u
                },
                segmentIgnoreThreshold: 1,
                style: M.getModel("areaStyle").getAreaStyle(),
                silent: !0,
                z2: -20
            })
              , k = new Aa({
                shape: {
                    points: c
                },
                segmentIgnoreThreshold: 1,
                style: M.getModel("lineStyle").getLineStyle(),
                silent: !0,
                z2: -19
            });
            return A.add(O),
            A.add(k),
            A
        }
        for (var w = 0; w < 3; w++) {
            var T = S(w === 1);
            this._displayables.sliderGroup.add(T),
            this._displayables.dataShadowSegs.push(T)
        }
    }
    ,
    e.prototype._prepareDataShadowInfo = function() {
        var n = this.dataZoomModel
          , r = n.get("showDataShadow");
        if (r !== !1) {
            var a, i = this.ecModel;
            return n.eachTargetAxis(function(o, l) {
                var s = n.getAxisProxy(o, l).getTargetSeriesModels();
                Z(s, function(u) {
                    if (!a && !(r !== !0 && Rt(Nvt, u.get("type")) < 0)) {
                        var c = i.getComponent(cu(o), l).axis, f = Bvt(o), d, v = u.coordinateSystem;
                        f != null && v.getOtherAxis && (d = v.getOtherAxis(c).inverse),
                        f = u.getData().mapDimension(f),
                        a = {
                            thisAxis: c,
                            series: u,
                            thisDim: o,
                            otherDim: f,
                            otherAxisInverse: d
                        }
                    }
                }, this)
            }, this),
            a
        }
    }
    ,
    e.prototype._renderHandle = function() {
        var n = this.group
          , r = this._displayables
          , a = r.handles = [null, null]
          , i = r.handleLabels = [null, null]
          , o = this._displayables.sliderGroup
          , l = this._size
          , s = this.dataZoomModel
          , u = this.api
          , c = s.get("borderRadius") || 0
          , f = s.get("brushSelect")
          , d = r.filler = new Np({
            silent: f,
            style: {
                fill: s.get("fillerColor")
            },
            textConfig: {
                position: "inside"
            }
        });
        o.add(d),
        o.add(new Np({
            silent: !0,
            subPixelOptimize: !0,
            shape: {
                x: 0,
                y: 0,
                width: l[0],
                height: l[1],
                r: c
            },
            style: {
                stroke: s.get("dataBackgroundColor") || s.get("borderColor"),
                lineWidth: Evt,
                fill: "rgba(0,0,0,0)"
            }
        })),
        Z([0, 1], function(b) {
            var x = s.get("handleIcon");
            !FS[x] && x.indexOf("path://") < 0 && x.indexOf("image://") < 0 && (x = "path://" + x);
            var C = fr(x, -1, 0, 2, 2, null, !0);
            C.attr({
                cursor: tY(this._orient),
                draggable: !0,
                drift: qe(this._onDragMove, this, b),
                ondragend: qe(this._onDragEnd, this),
                onmouseover: qe(this._showDataInfo, this, !0),
                onmouseout: qe(this._showDataInfo, this, !1),
                z2: 5
            });
            var S = C.getBoundingRect()
              , w = s.get("handleSize");
            this._handleHeight = He(w, this._size[1]),
            this._handleWidth = S.width / S.height * this._handleHeight,
            C.setStyle(s.getModel("handleStyle").getItemStyle()),
            C.style.strokeNoScale = !0,
            C.rectHover = !0,
            C.ensureState("emphasis").style = s.getModel(["emphasis", "handleStyle"]).getItemStyle(),
            xu(C);
            var T = s.get("handleColor");
            T != null && (C.style.fill = T),
            o.add(a[b] = C);
            var P = s.getModel("textStyle");
            n.add(i[b] = new Jt({
                silent: !0,
                invisible: !0,
                style: In(P, {
                    x: 0,
                    y: 0,
                    text: "",
                    verticalAlign: "middle",
                    align: "center",
                    fill: P.getTextColor(),
                    font: P.getFont()
                }),
                z2: 10
            }))
        }, this);
        var v = d;
        if (f) {
            var h = He(s.get("moveHandleSize"), l[1])
              , p = r.moveHandle = new tn({
                style: s.getModel("moveHandleStyle").getItemStyle(),
                silent: !0,
                shape: {
                    r: [0, 0, 2, 2],
                    y: l[1] - .5,
                    height: h
                }
            })
              , g = h * .8
              , m = r.moveHandleIcon = fr(s.get("moveHandleIcon"), -g / 2, -g / 2, g, g, "#fff", !0);
            m.silent = !0,
            m.y = l[1] + h / 2 - .5,
            p.ensureState("emphasis").style = s.getModel(["emphasis", "moveHandleStyle"]).getItemStyle();
            var y = Math.min(l[1] / 2, Math.max(h, 10));
            v = r.moveZone = new tn({
                invisible: !0,
                shape: {
                    y: l[1] - y,
                    height: h + y
                }
            }),
            v.on("mouseover", function() {
                u.enterEmphasis(p)
            }).on("mouseout", function() {
                u.leaveEmphasis(p)
            }),
            o.add(p),
            o.add(m),
            o.add(v)
        }
        v.attr({
            draggable: !0,
            cursor: tY(this._orient),
            drift: qe(this._onDragMove, this, "all"),
            ondragstart: qe(this._showDataInfo, this, !0),
            ondragend: qe(this._onDragEnd, this),
            onmouseover: qe(this._showDataInfo, this, !0),
            onmouseout: qe(this._showDataInfo, this, !1)
        })
    }
    ,
    e.prototype._resetInterval = function() {
        var n = this._range = this.dataZoomModel.getPercentRange()
          , r = this._getViewExtent();
        this._handleEnds = [vn(n[0], [0, 100], r, !0), vn(n[1], [0, 100], r, !0)]
    }
    ,
    e.prototype._updateInterval = function(n, r) {
        var a = this.dataZoomModel
          , i = this._handleEnds
          , o = this._getViewExtent()
          , l = a.findRepresentativeAxisProxy().getMinMaxSpan()
          , s = [0, 100];
        sd(r, i, o, a.get("zoomLock") ? "all" : n, l.minSpan != null ? vn(l.minSpan, s, o, !0) : null, l.maxSpan != null ? vn(l.maxSpan, s, o, !0) : null);
        var u = this._range
          , c = this._range = ri([vn(i[0], o, s, !0), vn(i[1], o, s, !0)]);
        return !u || u[0] !== c[0] || u[1] !== c[1]
    }
    ,
    e.prototype._updateView = function(n) {
        var r = this._displayables
          , a = this._handleEnds
          , i = ri(a.slice())
          , o = this._size;
        Z([0, 1], function(v) {
            var h = r.handles[v]
              , p = this._handleHeight;
            h.attr({
                scaleX: p / 2,
                scaleY: p / 2,
                x: a[v] + (v ? -1 : 1),
                y: o[1] / 2 - p / 2
            })
        }, this),
        r.filler.setShape({
            x: i[0],
            y: 0,
            width: i[1] - i[0],
            height: o[1]
        });
        var l = {
            x: i[0],
            width: i[1] - i[0]
        };
        r.moveHandle && (r.moveHandle.setShape(l),
        r.moveZone.setShape(l),
        r.moveZone.getBoundingRect(),
        r.moveHandleIcon && r.moveHandleIcon.attr("x", l.x + l.width / 2));
        for (var s = r.dataShadowSegs, u = [0, i[0], i[1], o[0]], c = 0; c < s.length; c++) {
            var f = s[c]
              , d = f.getClipPath();
            d || (d = new tn,
            f.setClipPath(d)),
            d.setShape({
                x: u[c],
                y: 0,
                width: u[c + 1] - u[c],
                height: o[1]
            })
        }
        this._updateDataInfo(n)
    }
    ,
    e.prototype._updateDataInfo = function(n) {
        var r = this.dataZoomModel
          , a = this._displayables
          , i = a.handleLabels
          , o = this._orient
          , l = ["", ""];
        if (r.get("showDetail")) {
            var s = r.findRepresentativeAxisProxy();
            if (s) {
                var u = s.getAxisModel().axis
                  , c = this._range
                  , f = n ? s.calculateDataWindow({
                    start: c[0],
                    end: c[1]
                }).valueWindow : s.getDataValueWindow();
                l = [this._formatLabel(f[0], u), this._formatLabel(f[1], u)]
            }
        }
        var d = ri(this._handleEnds.slice());
        v.call(this, 0),
        v.call(this, 1);
        function v(h) {
            var p = Su(a.handles[h].parent, this.group)
              , g = f2(h === 0 ? "right" : "left", p)
              , m = this._handleWidth / 2 + Rvt
              , y = mo([d[h] + (h === 0 ? -m : m), this._size[1] / 2], p);
            i[h].setStyle({
                x: y[0],
                y: y[1],
                verticalAlign: o === $p ? "middle" : g,
                align: o === $p ? g : "center",
                text: l[h]
            })
        }
    }
    ,
    e.prototype._formatLabel = function(n, r) {
        var a = this.dataZoomModel
          , i = a.get("labelFormatter")
          , o = a.get("labelPrecision");
        (o == null || o === "auto") && (o = r.getPixelPrecision());
        var l = n == null || isNaN(n) ? "" : r.type === "category" || r.type === "time" ? r.scale.getLabel({
            value: Math.round(n)
        }) : n.toFixed(Math.min(o, 20));
        return et(i) ? i(n, l) : Ge(i) ? i.replace("{value}", l) : l
    }
    ,
    e.prototype._showDataInfo = function(n) {
        n = this._dragging || n;
        var r = this._displayables
          , a = r.handleLabels;
        a[0].attr("invisible", !n),
        a[1].attr("invisible", !n),
        r.moveHandle && this.api[n ? "enterEmphasis" : "leaveEmphasis"](r.moveHandle, 1)
    }
    ,
    e.prototype._onDragMove = function(n, r, a, i) {
        this._dragging = !0,
        ss(i.event);
        var o = this._displayables.sliderGroup.getLocalTransform()
          , l = mo([r, a], o, !0)
          , s = this._updateInterval(n, l[0])
          , u = this.dataZoomModel.get("realtime");
        this._updateView(!u),
        s && u && this._dispatchZoomAction(!0)
    }
    ,
    e.prototype._onDragEnd = function() {
        this._dragging = !1,
        this._showDataInfo(!1);
        var n = this.dataZoomModel.get("realtime");
        !n && this._dispatchZoomAction(!1)
    }
    ,
    e.prototype._onClickPanel = function(n) {
        var r = this._size
          , a = this._displayables.sliderGroup.transformCoordToLocal(n.offsetX, n.offsetY);
        if (!(a[0] < 0 || a[0] > r[0] || a[1] < 0 || a[1] > r[1])) {
            var i = this._handleEnds
              , o = (i[0] + i[1]) / 2
              , l = this._updateInterval("all", a[0] - o);
            this._updateView(),
            l && this._dispatchZoomAction(!1)
        }
    }
    ,
    e.prototype._onBrushStart = function(n) {
        var r = n.offsetX
          , a = n.offsetY;
        this._brushStart = new kt(r,a),
        this._brushing = !0,
        this._brushStartTime = +new Date
    }
    ,
    e.prototype._onBrushEnd = function(n) {
        if (!!this._brushing) {
            var r = this._displayables.brushRect;
            if (this._brushing = !1,
            !!r) {
                r.attr("ignore", !0);
                var a = r.shape
                  , i = +new Date;
                if (!(i - this._brushStartTime < 200 && Math.abs(a.width) < 5)) {
                    var o = this._getViewExtent()
                      , l = [0, 100];
                    this._range = ri([vn(a.x, o, l, !0), vn(a.x + a.width, o, l, !0)]),
                    this._handleEnds = [a.x, a.x + a.width],
                    this._updateView(),
                    this._dispatchZoomAction(!1)
                }
            }
        }
    }
    ,
    e.prototype._onBrush = function(n) {
        this._brushing && (ss(n.event),
        this._updateBrushRect(n.offsetX, n.offsetY))
    }
    ,
    e.prototype._updateBrushRect = function(n, r) {
        var a = this._displayables
          , i = this.dataZoomModel
          , o = a.brushRect;
        o || (o = a.brushRect = new Np({
            silent: !0,
            style: i.getModel("brushStyle").getItemStyle()
        }),
        a.sliderGroup.add(o)),
        o.attr("ignore", !1);
        var l = this._brushStart
          , s = this._displayables.sliderGroup
          , u = s.transformCoordToLocal(n, r)
          , c = s.transformCoordToLocal(l.x, l.y)
          , f = this._size;
        u[0] = Math.max(Math.min(f[0], u[0]), 0),
        o.setShape({
            x: c[0],
            y: 0,
            width: u[0] - c[0],
            height: f[1]
        })
    }
    ,
    e.prototype._dispatchZoomAction = function(n) {
        var r = this._range;
        this.api.dispatchAction({
            type: "dataZoom",
            from: this.uid,
            dataZoomId: this.dataZoomModel.id,
            animation: n ? $vt : null,
            start: r[0],
            end: r[1]
        })
    }
    ,
    e.prototype._findCoordRect = function() {
        var n, r = Uce(this.dataZoomModel).infoList;
        if (!n && r.length) {
            var a = r[0].model.coordinateSystem;
            n = a.getRect && a.getRect()
        }
        if (!n) {
            var i = this.api.getWidth()
              , o = this.api.getHeight();
            n = {
                x: i * .2,
                y: o * .2,
                width: i * .6,
                height: o * .6
            }
        }
        return n
    }
    ,
    e.type = "dataZoom.slider",
    e
}(AL);
function Bvt(t) {
    var e = {
        x: "y",
        y: "x",
        radius: "angle",
        angle: "radius"
    };
    return e[t]
}
function tY(t) {
    return t === "vertical" ? "ns-resize" : "ew-resize"
}
const Vvt = Fvt;
function hfe(t) {
    t.registerComponentModel(Dvt),
    t.registerComponentView(Vvt),
    IL(t)
}
function zvt(t) {
    Bt(vfe),
    Bt(hfe)
}
var Hvt = {
    get: function(t, e, n) {
        var r = ut((jvt[t] || {})[e]);
        return n && ke(r) ? r[r.length - 1] : r
    }
}
  , jvt = {
    color: {
        active: ["#006edd", "#e0ffff"],
        inactive: ["rgba(0,0,0,0)"]
    },
    colorHue: {
        active: [0, 360],
        inactive: [0, 0]
    },
    colorSaturation: {
        active: [.3, 1],
        inactive: [0, 0]
    },
    colorLightness: {
        active: [.9, .5],
        inactive: [0, 0]
    },
    colorAlpha: {
        active: [.3, 1],
        inactive: [0, 0]
    },
    opacity: {
        active: [.3, 1],
        inactive: [0, 0]
    },
    symbol: {
        active: ["circle", "roundRect", "diamond"],
        inactive: ["none"]
    },
    symbolSize: {
        active: [10, 50],
        inactive: [0, 0]
    }
};
const pfe = Hvt;
var nY = Xr.mapVisual
  , Wvt = Xr.eachVisual
  , Gvt = ke
  , rY = Z
  , Kvt = ri
  , Uvt = vn
  , Yvt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.stateList = ["inRange", "outOfRange"],
        n.replacableOptionKeys = ["inRange", "outOfRange", "target", "controller", "color"],
        n.layoutMode = {
            type: "box",
            ignoreSize: !0
        },
        n.dataBound = [-1 / 0, 1 / 0],
        n.targetVisuals = {},
        n.controllerVisuals = {},
        n
    }
    return e.prototype.init = function(n, r, a) {
        this.mergeDefaultAndTheme(n, a)
    }
    ,
    e.prototype.optionUpdated = function(n, r) {
        var a = this.option;
        !r && rfe(a, n, this.replacableOptionKeys),
        this.textStyleModel = this.getModel("textStyle"),
        this.resetItemSize(),
        this.completeVisualOption()
    }
    ,
    e.prototype.resetVisual = function(n) {
        var r = this.stateList;
        n = qe(n, this),
        this.controllerVisuals = Ak(this.option.controller, r, n),
        this.targetVisuals = Ak(this.option.target, r, n)
    }
    ,
    e.prototype.getItemSymbol = function() {
        return null
    }
    ,
    e.prototype.getTargetSeriesIndices = function() {
        var n = this.option.seriesIndex
          , r = [];
        return n == null || n === "all" ? this.ecModel.eachSeries(function(a, i) {
            r.push(i)
        }) : r = _n(n),
        r
    }
    ,
    e.prototype.eachTargetSeries = function(n, r) {
        Z(this.getTargetSeriesIndices(), function(a) {
            var i = this.ecModel.getSeriesByIndex(a);
            i && n.call(r, i)
        }, this)
    }
    ,
    e.prototype.isTargetSeries = function(n) {
        var r = !1;
        return this.eachTargetSeries(function(a) {
            a === n && (r = !0)
        }),
        r
    }
    ,
    e.prototype.formatValueText = function(n, r, a) {
        var i = this.option, o = i.precision, l = this.dataBound, s = i.formatter, u;
        a = a || ["<", ">"],
        ke(n) && (n = n.slice(),
        u = !0);
        var c = r ? n : u ? [f(n[0]), f(n[1])] : f(n);
        if (Ge(s))
            return s.replace("{value}", u ? c[0] : c).replace("{value2}", u ? c[1] : c);
        if (et(s))
            return u ? s(n[0], n[1]) : s(n);
        if (u)
            return n[0] === l[0] ? a[0] + " " + c[1] : n[1] === l[1] ? a[1] + " " + c[0] : c[0] + " - " + c[1];
        return c;
        function f(d) {
            return d === l[0] ? "min" : d === l[1] ? "max" : (+d).toFixed(Math.min(o, 20))
        }
    }
    ,
    e.prototype.resetExtent = function() {
        var n = this.option
          , r = Kvt([n.min, n.max]);
        this._dataExtent = r
    }
    ,
    e.prototype.getDataDimensionIndex = function(n) {
        var r = this.option.dimension;
        if (r != null)
            return n.getDimensionIndex(r);
        for (var a = n.dimensions, i = a.length - 1; i >= 0; i--) {
            var o = a[i]
              , l = n.getDimensionInfo(o);
            if (!l.isCalculationCoord)
                return l.storeDimIndex
        }
    }
    ,
    e.prototype.getExtent = function() {
        return this._dataExtent.slice()
    }
    ,
    e.prototype.completeVisualOption = function() {
        var n = this.ecModel
          , r = this.option
          , a = {
            inRange: r.inRange,
            outOfRange: r.outOfRange
        }
          , i = r.target || (r.target = {})
          , o = r.controller || (r.controller = {});
        At(i, a),
        At(o, a);
        var l = this.isCategory();
        s.call(this, i),
        s.call(this, o),
        u.call(this, i, "inRange", "outOfRange"),
        c.call(this, o);
        function s(f) {
            Gvt(r.color) && !f.inRange && (f.inRange = {
                color: r.color.slice().reverse()
            }),
            f.inRange = f.inRange || {
                color: n.get("gradientColor")
            }
        }
        function u(f, d, v) {
            var h = f[d]
              , p = f[v];
            h && !p && (p = f[v] = {},
            rY(h, function(g, m) {
                if (!!Xr.isValidType(m)) {
                    var y = pfe.get(m, "inactive", l);
                    y != null && (p[m] = y,
                    m === "color" && !p.hasOwnProperty("opacity") && !p.hasOwnProperty("colorAlpha") && (p.opacity = [0, 0]))
                }
            }))
        }
        function c(f) {
            var d = (f.inRange || {}).symbol || (f.outOfRange || {}).symbol
              , v = (f.inRange || {}).symbolSize || (f.outOfRange || {}).symbolSize
              , h = this.get("inactiveColor")
              , p = this.getItemSymbol()
              , g = p || "roundRect";
            rY(this.stateList, function(m) {
                var y = this.itemSize
                  , b = f[m];
                b || (b = f[m] = {
                    color: l ? h : [h]
                }),
                b.symbol == null && (b.symbol = d && ut(d) || (l ? g : [g])),
                b.symbolSize == null && (b.symbolSize = v && ut(v) || (l ? y[0] : [y[0], y[0]])),
                b.symbol = nY(b.symbol, function(S) {
                    return S === "none" ? g : S
                });
                var x = b.symbolSize;
                if (x != null) {
                    var C = -1 / 0;
                    Wvt(x, function(S) {
                        S > C && (C = S)
                    }),
                    b.symbolSize = nY(x, function(S) {
                        return Uvt(S, [0, C], [0, y[0]], !0)
                    })
                }
            }, this)
        }
    }
    ,
    e.prototype.resetItemSize = function() {
        this.itemSize = [parseFloat(this.get("itemWidth")), parseFloat(this.get("itemHeight"))]
    }
    ,
    e.prototype.isCategory = function() {
        return !!this.option.categories
    }
    ,
    e.prototype.setSelected = function(n) {}
    ,
    e.prototype.getSelected = function() {
        return null
    }
    ,
    e.prototype.getValueState = function(n) {
        return null
    }
    ,
    e.prototype.getVisualMeta = function(n) {
        return null
    }
    ,
    e.type = "visualMap",
    e.dependencies = ["series"],
    e.defaultOption = {
        show: !0,
        z: 4,
        seriesIndex: "all",
        min: 0,
        max: 200,
        left: 0,
        right: null,
        top: null,
        bottom: 0,
        itemWidth: null,
        itemHeight: null,
        inverse: !1,
        orient: "vertical",
        backgroundColor: "rgba(0,0,0,0)",
        borderColor: "#ccc",
        contentColor: "#5793f3",
        inactiveColor: "#aaa",
        borderWidth: 0,
        padding: 5,
        textGap: 10,
        precision: 0,
        textStyle: {
            color: "#333"
        }
    },
    e
}(qt);
const fC = Yvt;
var aY = [20, 140]
  , qvt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.optionUpdated = function(n, r) {
        t.prototype.optionUpdated.apply(this, arguments),
        this.resetExtent(),
        this.resetVisual(function(a) {
            a.mappingMethod = "linear",
            a.dataExtent = this.getExtent()
        }),
        this._resetRange()
    }
    ,
    e.prototype.resetItemSize = function() {
        t.prototype.resetItemSize.apply(this, arguments);
        var n = this.itemSize;
        (n[0] == null || isNaN(n[0])) && (n[0] = aY[0]),
        (n[1] == null || isNaN(n[1])) && (n[1] = aY[1])
    }
    ,
    e.prototype._resetRange = function() {
        var n = this.getExtent()
          , r = this.option.range;
        !r || r.auto ? (n.auto = 1,
        this.option.range = n) : ke(r) && (r[0] > r[1] && r.reverse(),
        r[0] = Math.max(r[0], n[0]),
        r[1] = Math.min(r[1], n[1]))
    }
    ,
    e.prototype.completeVisualOption = function() {
        t.prototype.completeVisualOption.apply(this, arguments),
        Z(this.stateList, function(n) {
            var r = this.option.controller[n].symbolSize;
            r && r[0] !== r[1] && (r[0] = r[1] / 3)
        }, this)
    }
    ,
    e.prototype.setSelected = function(n) {
        this.option.range = n.slice(),
        this._resetRange()
    }
    ,
    e.prototype.getSelected = function() {
        var n = this.getExtent()
          , r = ri((this.get("range") || []).slice());
        return r[0] > n[1] && (r[0] = n[1]),
        r[1] > n[1] && (r[1] = n[1]),
        r[0] < n[0] && (r[0] = n[0]),
        r[1] < n[0] && (r[1] = n[0]),
        r
    }
    ,
    e.prototype.getValueState = function(n) {
        var r = this.option.range
          , a = this.getExtent();
        return (r[0] <= a[0] || r[0] <= n) && (r[1] >= a[1] || n <= r[1]) ? "inRange" : "outOfRange"
    }
    ,
    e.prototype.findTargetDataIndices = function(n) {
        var r = [];
        return this.eachTargetSeries(function(a) {
            var i = []
              , o = a.getData();
            o.each(this.getDataDimensionIndex(o), function(l, s) {
                n[0] <= l && l <= n[1] && i.push(s)
            }, this),
            r.push({
                seriesId: a.id,
                dataIndex: i
            })
        }, this),
        r
    }
    ,
    e.prototype.getVisualMeta = function(n) {
        var r = iY(this, "outOfRange", this.getExtent())
          , a = iY(this, "inRange", this.option.range.slice())
          , i = [];
        function o(v, h) {
            i.push({
                value: v,
                color: n(v, h)
            })
        }
        for (var l = 0, s = 0, u = a.length, c = r.length; s < c && (!a.length || r[s] <= a[0]); s++)
            r[s] < a[l] && o(r[s], "outOfRange");
        for (var f = 1; l < u; l++,
        f = 0)
            f && i.length && o(a[l], "outOfRange"),
            o(a[l], "inRange");
        for (var f = 1; s < c; s++)
            (!a.length || a[a.length - 1] < r[s]) && (f && (i.length && o(i[i.length - 1].value, "outOfRange"),
            f = 0),
            o(r[s], "outOfRange"));
        var d = i.length;
        return {
            stops: i,
            outerColors: [d ? i[0].color : "transparent", d ? i[d - 1].color : "transparent"]
        }
    }
    ,
    e.type = "visualMap.continuous",
    e.defaultOption = Yu(fC.defaultOption, {
        align: "auto",
        calculable: !1,
        hoverLink: !0,
        realtime: !0,
        handleIcon: "path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",
        handleSize: "120%",
        handleStyle: {
            borderColor: "#fff",
            borderWidth: 1
        },
        indicatorIcon: "circle",
        indicatorSize: "50%",
        indicatorStyle: {
            borderColor: "#fff",
            borderWidth: 2,
            shadowBlur: 2,
            shadowOffsetX: 1,
            shadowOffsetY: 1,
            shadowColor: "rgba(0,0,0,0.2)"
        }
    }),
    e
}(fC);
function iY(t, e, n) {
    if (n[0] === n[1])
        return n.slice();
    for (var r = 200, a = (n[1] - n[0]) / r, i = n[0], o = [], l = 0; l <= r && i < n[1]; l++)
        o.push(i),
        i += a;
    return o.push(n[1]),
    o
}
const Xvt = qvt;
var Zvt = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n.autoPositionValues = {
            left: 1,
            right: 1,
            top: 1,
            bottom: 1
        },
        n
    }
    return e.prototype.init = function(n, r) {
        this.ecModel = n,
        this.api = r
    }
    ,
    e.prototype.render = function(n, r, a, i) {
        if (this.visualMapModel = n,
        n.get("show") === !1) {
            this.group.removeAll();
            return
        }
        this.doRender(n, r, a, i)
    }
    ,
    e.prototype.renderBackground = function(n) {
        var r = this.visualMapModel
          , a = ad(r.get("padding") || 0)
          , i = n.getBoundingRect();
        n.add(new tn({
            z2: -1,
            silent: !0,
            shape: {
                x: i.x - a[3],
                y: i.y - a[0],
                width: i.width + a[3] + a[1],
                height: i.height + a[0] + a[2]
            },
            style: {
                fill: r.get("backgroundColor"),
                stroke: r.get("borderColor"),
                lineWidth: r.get("borderWidth")
            }
        }))
    }
    ,
    e.prototype.getControllerVisual = function(n, r, a) {
        a = a || {};
        var i = a.forceState
          , o = this.visualMapModel
          , l = {};
        if (r === "color") {
            var s = o.get("contentColor");
            l.color = s
        }
        function u(v) {
            return l[v]
        }
        function c(v, h) {
            l[v] = h
        }
        var f = o.controllerVisuals[i || o.getValueState(n)]
          , d = Xr.prepareVisualTypes(f);
        return Z(d, function(v) {
            var h = f[v];
            a.convertOpacityToAlpha && v === "opacity" && (v = "colorAlpha",
            h = f.__alphaForOpacity),
            Xr.dependsOn(v, r) && h && h.applyVisual(n, u, c)
        }),
        l[r]
    }
    ,
    e.prototype.positionGroup = function(n) {
        var r = this.visualMapModel
          , a = this.api;
        m2(n, r.getBoxLayoutParams(), {
            width: a.getWidth(),
            height: a.getHeight()
        })
    }
    ,
    e.prototype.doRender = function(n, r, a, i) {}
    ,
    e.type = "visualMap",
    e
}(Bn);
const gfe = Zvt;
var oY = [["left", "right", "width"], ["top", "bottom", "height"]];
function mfe(t, e, n) {
    var r = t.option
      , a = r.align;
    if (a != null && a !== "auto")
        return a;
    for (var i = {
        width: e.getWidth(),
        height: e.getHeight()
    }, o = r.orient === "horizontal" ? 1 : 0, l = oY[o], s = [0, null, 10], u = {}, c = 0; c < 3; c++)
        u[oY[1 - o][c]] = s[c],
        u[l[c]] = c === 2 ? n[0] : r[l[c]];
    var f = [["x", "width", 3], ["y", "height", 0]][o]
      , d = xr(u, i, r.padding);
    return l[(d.margin[f[2]] || 0) + d[f[0]] + d[f[1]] * .5 < i[f[1]] * .5 ? 0 : 1]
}
function mx(t, e) {
    return Z(t || [], function(n) {
        n.dataIndex != null && (n.dataIndexInside = n.dataIndex,
        n.dataIndex = null),
        n.highlightKey = "visualMap" + (e ? e.componentIndex : "")
    }),
    t
}
var Ko = vn
  , Qvt = Z
  , lY = Math.min
  , w3 = Math.max
  , Jvt = 12
  , eht = 6
  , tht = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n._shapes = {},
        n._dataInterval = [],
        n._handleEnds = [],
        n._hoverLinkDataIndices = [],
        n
    }
    return e.prototype.doRender = function(n, r, a, i) {
        this._api = a,
        (!i || i.type !== "selectDataRange" || i.from !== this.uid) && this._buildView()
    }
    ,
    e.prototype._buildView = function() {
        this.group.removeAll();
        var n = this.visualMapModel
          , r = this.group;
        this._orient = n.get("orient"),
        this._useHandle = n.get("calculable"),
        this._resetInterval(),
        this._renderBar(r);
        var a = n.get("text");
        this._renderEndsText(r, a, 0),
        this._renderEndsText(r, a, 1),
        this._updateView(!0),
        this.renderBackground(r),
        this._updateView(),
        this._enableHoverLinkToSeries(),
        this._enableHoverLinkFromSeries(),
        this.positionGroup(r)
    }
    ,
    e.prototype._renderEndsText = function(n, r, a) {
        if (!!r) {
            var i = r[1 - a];
            i = i != null ? i + "" : "";
            var o = this.visualMapModel
              , l = o.get("textGap")
              , s = o.itemSize
              , u = this._shapes.mainGroup
              , c = this._applyTransform([s[0] / 2, a === 0 ? -l : s[1] + l], u)
              , f = this._applyTransform(a === 0 ? "bottom" : "top", u)
              , d = this._orient
              , v = this.visualMapModel.textStyleModel;
            this.group.add(new Jt({
                style: In(v, {
                    x: c[0],
                    y: c[1],
                    verticalAlign: d === "horizontal" ? "middle" : f,
                    align: d === "horizontal" ? f : "center",
                    text: i
                })
            }))
        }
    }
    ,
    e.prototype._renderBar = function(n) {
        var r = this.visualMapModel
          , a = this._shapes
          , i = r.itemSize
          , o = this._orient
          , l = this._useHandle
          , s = mfe(r, this.api, i)
          , u = a.mainGroup = this._createBarGroup(s)
          , c = new mt;
        u.add(c),
        c.add(a.outOfRange = sY()),
        c.add(a.inRange = sY(null, l ? cY(this._orient) : null, qe(this._dragHandle, this, "all", !1), qe(this._dragHandle, this, "all", !0))),
        c.setClipPath(new tn({
            shape: {
                x: 0,
                y: 0,
                width: i[0],
                height: i[1],
                r: 3
            }
        }));
        var f = r.textStyleModel.getTextRect("\u56FD")
          , d = w3(f.width, f.height);
        l && (a.handleThumbs = [],
        a.handleLabels = [],
        a.handleLabelPoints = [],
        this._createHandle(r, u, 0, i, d, o),
        this._createHandle(r, u, 1, i, d, o)),
        this._createIndicator(r, u, i, d, o),
        n.add(u)
    }
    ,
    e.prototype._createHandle = function(n, r, a, i, o, l) {
        var s = qe(this._dragHandle, this, a, !1)
          , u = qe(this._dragHandle, this, a, !0)
          , c = Po(n.get("handleSize"), i[0])
          , f = fr(n.get("handleIcon"), -c / 2, -c / 2, c, c, null, !0)
          , d = cY(this._orient);
        f.attr({
            cursor: d,
            draggable: !0,
            drift: s,
            ondragend: u,
            onmousemove: function(m) {
                ss(m.event)
            }
        }),
        f.x = i[0] / 2,
        f.useStyle(n.getModel("handleStyle").getItemStyle()),
        f.setStyle({
            strokeNoScale: !0,
            strokeFirst: !0
        }),
        f.style.lineWidth *= 2,
        f.ensureState("emphasis").style = n.getModel(["emphasis", "handleStyle"]).getItemStyle(),
        rf(f, !0),
        r.add(f);
        var v = this.visualMapModel.textStyleModel
          , h = new Jt({
            cursor: d,
            draggable: !0,
            drift: s,
            onmousemove: function(m) {
                ss(m.event)
            },
            ondragend: u,
            style: In(v, {
                x: 0,
                y: 0,
                text: ""
            })
        });
        h.ensureState("blur").style = {
            opacity: .1
        },
        h.stateTransition = {
            duration: 200
        },
        this.group.add(h);
        var p = [c, 0]
          , g = this._shapes;
        g.handleThumbs[a] = f,
        g.handleLabelPoints[a] = p,
        g.handleLabels[a] = h
    }
    ,
    e.prototype._createIndicator = function(n, r, a, i, o) {
        var l = Po(n.get("indicatorSize"), a[0])
          , s = fr(n.get("indicatorIcon"), -l / 2, -l / 2, l, l, null, !0);
        s.attr({
            cursor: "move",
            invisible: !0,
            silent: !0,
            x: a[0] / 2
        });
        var u = n.getModel("indicatorStyle").getItemStyle();
        if (s instanceof Kr) {
            var c = s.style;
            s.useStyle(Me({
                image: c.image,
                x: c.x,
                y: c.y,
                width: c.width,
                height: c.height
            }, u))
        } else
            s.useStyle(u);
        r.add(s);
        var f = this.visualMapModel.textStyleModel
          , d = new Jt({
            silent: !0,
            invisible: !0,
            style: In(f, {
                x: 0,
                y: 0,
                text: ""
            })
        });
        this.group.add(d);
        var v = [(o === "horizontal" ? i / 2 : eht) + a[0] / 2, 0]
          , h = this._shapes;
        h.indicator = s,
        h.indicatorLabel = d,
        h.indicatorLabelPoint = v,
        this._firstShowIndicator = !0
    }
    ,
    e.prototype._dragHandle = function(n, r, a, i) {
        if (!!this._useHandle) {
            if (this._dragging = !r,
            !r) {
                var o = this._applyTransform([a, i], this._shapes.mainGroup, !0);
                this._updateInterval(n, o[1]),
                this._hideIndicator(),
                this._updateView()
            }
            r === !this.visualMapModel.get("realtime") && this.api.dispatchAction({
                type: "selectDataRange",
                from: this.uid,
                visualMapId: this.visualMapModel.id,
                selected: this._dataInterval.slice()
            }),
            r ? !this._hovering && this._clearHoverLinkToSeries() : uY(this.visualMapModel) && this._doHoverLinkToSeries(this._handleEnds[n], !1)
        }
    }
    ,
    e.prototype._resetInterval = function() {
        var n = this.visualMapModel
          , r = this._dataInterval = n.getSelected()
          , a = n.getExtent()
          , i = [0, n.itemSize[1]];
        this._handleEnds = [Ko(r[0], a, i, !0), Ko(r[1], a, i, !0)]
    }
    ,
    e.prototype._updateInterval = function(n, r) {
        r = r || 0;
        var a = this.visualMapModel
          , i = this._handleEnds
          , o = [0, a.itemSize[1]];
        sd(r, i, o, n, 0);
        var l = a.getExtent();
        this._dataInterval = [Ko(i[0], o, l, !0), Ko(i[1], o, l, !0)]
    }
    ,
    e.prototype._updateView = function(n) {
        var r = this.visualMapModel
          , a = r.getExtent()
          , i = this._shapes
          , o = [0, r.itemSize[1]]
          , l = n ? o : this._handleEnds
          , s = this._createBarVisual(this._dataInterval, a, l, "inRange")
          , u = this._createBarVisual(a, a, o, "outOfRange");
        i.inRange.setStyle({
            fill: s.barColor
        }).setShape("points", s.barPoints),
        i.outOfRange.setStyle({
            fill: u.barColor
        }).setShape("points", u.barPoints),
        this._updateHandle(l, s)
    }
    ,
    e.prototype._createBarVisual = function(n, r, a, i) {
        var o = {
            forceState: i,
            convertOpacityToAlpha: !0
        }
          , l = this._makeColorGradient(n, o)
          , s = [this.getControllerVisual(n[0], "symbolSize", o), this.getControllerVisual(n[1], "symbolSize", o)]
          , u = this._createBarPoints(a, s);
        return {
            barColor: new Mh(0,0,0,1,l),
            barPoints: u,
            handlesColor: [l[0].color, l[l.length - 1].color]
        }
    }
    ,
    e.prototype._makeColorGradient = function(n, r) {
        var a = 100
          , i = []
          , o = (n[1] - n[0]) / a;
        i.push({
            color: this.getControllerVisual(n[0], "color", r),
            offset: 0
        });
        for (var l = 1; l < a; l++) {
            var s = n[0] + o * l;
            if (s > n[1])
                break;
            i.push({
                color: this.getControllerVisual(s, "color", r),
                offset: l / a
            })
        }
        return i.push({
            color: this.getControllerVisual(n[1], "color", r),
            offset: 1
        }),
        i
    }
    ,
    e.prototype._createBarPoints = function(n, r) {
        var a = this.visualMapModel.itemSize;
        return [[a[0] - r[0], n[0]], [a[0], n[0]], [a[0], n[1]], [a[0] - r[1], n[1]]]
    }
    ,
    e.prototype._createBarGroup = function(n) {
        var r = this._orient
          , a = this.visualMapModel.get("inverse");
        return new mt(r === "horizontal" && !a ? {
            scaleX: n === "bottom" ? 1 : -1,
            rotation: Math.PI / 2
        } : r === "horizontal" && a ? {
            scaleX: n === "bottom" ? -1 : 1,
            rotation: -Math.PI / 2
        } : r === "vertical" && !a ? {
            scaleX: n === "left" ? 1 : -1,
            scaleY: -1
        } : {
            scaleX: n === "left" ? 1 : -1
        })
    }
    ,
    e.prototype._updateHandle = function(n, r) {
        if (!!this._useHandle) {
            var a = this._shapes
              , i = this.visualMapModel
              , o = a.handleThumbs
              , l = a.handleLabels
              , s = i.itemSize
              , u = i.getExtent();
            Qvt([0, 1], function(c) {
                var f = o[c];
                f.setStyle("fill", r.handlesColor[c]),
                f.y = n[c];
                var d = Ko(n[c], [0, s[1]], u, !0)
                  , v = this.getControllerVisual(d, "symbolSize");
                f.scaleX = f.scaleY = v / s[0],
                f.x = s[0] - v / 2;
                var h = mo(a.handleLabelPoints[c], Su(f, this.group));
                l[c].setStyle({
                    x: h[0],
                    y: h[1],
                    text: i.formatValueText(this._dataInterval[c]),
                    verticalAlign: "middle",
                    align: this._orient === "vertical" ? this._applyTransform("left", a.mainGroup) : "center"
                })
            }, this)
        }
    }
    ,
    e.prototype._showIndicator = function(n, r, a, i) {
        var o = this.visualMapModel
          , l = o.getExtent()
          , s = o.itemSize
          , u = [0, s[1]]
          , c = this._shapes
          , f = c.indicator;
        if (!!f) {
            f.attr("invisible", !1);
            var d = {
                convertOpacityToAlpha: !0
            }
              , v = this.getControllerVisual(n, "color", d)
              , h = this.getControllerVisual(n, "symbolSize")
              , p = Ko(n, l, u, !0)
              , g = s[0] - h / 2
              , m = {
                x: f.x,
                y: f.y
            };
            f.y = p,
            f.x = g;
            var y = mo(c.indicatorLabelPoint, Su(f, this.group))
              , b = c.indicatorLabel;
            b.attr("invisible", !1);
            var x = this._applyTransform("left", c.mainGroup)
              , C = this._orient
              , S = C === "horizontal";
            b.setStyle({
                text: (a || "") + o.formatValueText(r),
                verticalAlign: S ? x : "middle",
                align: S ? "center" : x
            });
            var w = {
                x: g,
                y: p,
                style: {
                    fill: v
                }
            }
              , T = {
                style: {
                    x: y[0],
                    y: y[1]
                }
            };
            if (o.ecModel.isAnimationEnabled() && !this._firstShowIndicator) {
                var P = {
                    duration: 100,
                    easing: "cubicInOut",
                    additive: !0
                };
                f.x = m.x,
                f.y = m.y,
                f.animateTo(w, P),
                b.animateTo(T, P)
            } else
                f.attr(w),
                b.attr(T);
            this._firstShowIndicator = !1;
            var M = this._shapes.handleLabels;
            if (M)
                for (var A = 0; A < M.length; A++)
                    this._api.enterBlur(M[A])
        }
    }
    ,
    e.prototype._enableHoverLinkToSeries = function() {
        var n = this;
        this._shapes.mainGroup.on("mousemove", function(r) {
            if (n._hovering = !0,
            !n._dragging) {
                var a = n.visualMapModel.itemSize
                  , i = n._applyTransform([r.offsetX, r.offsetY], n._shapes.mainGroup, !0, !0);
                i[1] = lY(w3(0, i[1]), a[1]),
                n._doHoverLinkToSeries(i[1], 0 <= i[0] && i[0] <= a[0])
            }
        }).on("mouseout", function() {
            n._hovering = !1,
            !n._dragging && n._clearHoverLinkToSeries()
        })
    }
    ,
    e.prototype._enableHoverLinkFromSeries = function() {
        var n = this.api.getZr();
        this.visualMapModel.option.hoverLink ? (n.on("mouseover", this._hoverLinkFromSeriesMouseOver, this),
        n.on("mouseout", this._hideIndicator, this)) : this._clearHoverLinkFromSeries()
    }
    ,
    e.prototype._doHoverLinkToSeries = function(n, r) {
        var a = this.visualMapModel
          , i = a.itemSize;
        if (!!a.option.hoverLink) {
            var o = [0, i[1]]
              , l = a.getExtent();
            n = lY(w3(o[0], n), o[1]);
            var s = nht(a, l, o)
              , u = [n - s, n + s]
              , c = Ko(n, o, l, !0)
              , f = [Ko(u[0], o, l, !0), Ko(u[1], o, l, !0)];
            u[0] < o[0] && (f[0] = -1 / 0),
            u[1] > o[1] && (f[1] = 1 / 0),
            r && (f[0] === -1 / 0 ? this._showIndicator(c, f[1], "< ", s) : f[1] === 1 / 0 ? this._showIndicator(c, f[0], "> ", s) : this._showIndicator(c, c, "\u2248 ", s));
            var d = this._hoverLinkDataIndices
              , v = [];
            (r || uY(a)) && (v = this._hoverLinkDataIndices = a.findTargetDataIndices(f));
            var h = kGe(d, v);
            this._dispatchHighDown("downplay", mx(h[0], a)),
            this._dispatchHighDown("highlight", mx(h[1], a))
        }
    }
    ,
    e.prototype._hoverLinkFromSeriesMouseOver = function(n) {
        var r;
        if (of(n.target, function(s) {
            var u = Ct(s);
            if (u.dataIndex != null)
                return r = u,
                !0
        }, !0),
        !!r) {
            var a = this.ecModel.getSeriesByIndex(r.seriesIndex)
              , i = this.visualMapModel;
            if (!!i.isTargetSeries(a)) {
                var o = a.getData(r.dataType)
                  , l = o.getStore().get(i.getDataDimensionIndex(o), r.dataIndex);
                isNaN(l) || this._showIndicator(l, l)
            }
        }
    }
    ,
    e.prototype._hideIndicator = function() {
        var n = this._shapes;
        n.indicator && n.indicator.attr("invisible", !0),
        n.indicatorLabel && n.indicatorLabel.attr("invisible", !0);
        var r = this._shapes.handleLabels;
        if (r)
            for (var a = 0; a < r.length; a++)
                this._api.leaveBlur(r[a])
    }
    ,
    e.prototype._clearHoverLinkToSeries = function() {
        this._hideIndicator();
        var n = this._hoverLinkDataIndices;
        this._dispatchHighDown("downplay", mx(n, this.visualMapModel)),
        n.length = 0
    }
    ,
    e.prototype._clearHoverLinkFromSeries = function() {
        this._hideIndicator();
        var n = this.api.getZr();
        n.off("mouseover", this._hoverLinkFromSeriesMouseOver),
        n.off("mouseout", this._hideIndicator)
    }
    ,
    e.prototype._applyTransform = function(n, r, a, i) {
        var o = Su(r, i ? null : this.group);
        return ke(n) ? mo(n, o, a) : f2(n, o, a)
    }
    ,
    e.prototype._dispatchHighDown = function(n, r) {
        r && r.length && this.api.dispatchAction({
            type: n,
            batch: r
        })
    }
    ,
    e.prototype.dispose = function() {
        this._clearHoverLinkFromSeries(),
        this._clearHoverLinkToSeries()
    }
    ,
    e.prototype.remove = function() {
        this._clearHoverLinkFromSeries(),
        this._clearHoverLinkToSeries()
    }
    ,
    e.type = "visualMap.continuous",
    e
}(gfe);
function sY(t, e, n, r) {
    return new Ma({
        shape: {
            points: t
        },
        draggable: !!n,
        cursor: e,
        drift: n,
        onmousemove: function(a) {
            ss(a.event)
        },
        ondragend: r
    })
}
function nht(t, e, n) {
    var r = Jvt / 2
      , a = t.get("hoverLinkDataSize");
    return a && (r = Ko(a, e, n, !0) / 2),
    r
}
function uY(t) {
    var e = t.get("hoverLinkOnHandle");
    return !!(e == null ? t.get("realtime") : e)
}
function cY(t) {
    return t === "vertical" ? "ns-resize" : "ew-resize"
}
const rht = tht;
var aht = {
    type: "selectDataRange",
    event: "dataRangeSelected",
    update: "update"
}
  , iht = function(t, e) {
    e.eachComponent({
        mainType: "visualMap",
        query: t
    }, function(n) {
        n.setSelected(t.selected)
    })
}
  , oht = [{
    createOnAllSeries: !0,
    reset: function(t, e) {
        var n = [];
        return e.eachComponent("visualMap", function(r) {
            var a = t.pipelineContext;
            !r.isTargetSeries(t) || a && a.large || n.push(edt(r.stateList, r.targetVisuals, qe(r.getValueState, r), r.getDataDimensionIndex(t.getData())))
        }),
        n
    }
}, {
    createOnAllSeries: !0,
    reset: function(t, e) {
        var n = t.getData()
          , r = [];
        e.eachComponent("visualMap", function(a) {
            if (a.isTargetSeries(t)) {
                var i = a.getVisualMeta(qe(lht, null, t, a)) || {
                    stops: [],
                    outerColors: []
                }
                  , o = a.getDataDimensionIndex(n);
                o >= 0 && (i.dimension = o,
                r.push(i))
            }
        }),
        t.getData().setVisual("visualMeta", r)
    }
}];
function lht(t, e, n, r) {
    for (var a = e.targetVisuals[r], i = Xr.prepareVisualTypes(a), o = {
        color: ty(t.getData(), "color")
    }, l = 0, s = i.length; l < s; l++) {
        var u = i[l]
          , c = a[u === "opacity" ? "__alphaForOpacity" : u];
        c && c.applyVisual(n, f, d)
    }
    return o.color;
    function f(v) {
        return o[v]
    }
    function d(v, h) {
        o[v] = h
    }
}
var fY = Z;
function sht(t) {
    var e = t && t.visualMap;
    ke(e) || (e = e ? [e] : []),
    fY(e, function(n) {
        if (!!n) {
            Nd(n, "splitList") && !Nd(n, "pieces") && (n.pieces = n.splitList,
            delete n.splitList);
            var r = n.pieces;
            r && ke(r) && fY(r, function(a) {
                st(a) && (Nd(a, "start") && !Nd(a, "min") && (a.min = a.start),
                Nd(a, "end") && !Nd(a, "max") && (a.max = a.end))
            })
        }
    })
}
function Nd(t, e) {
    return t && t.hasOwnProperty && t.hasOwnProperty(e)
}
var dY = !1;
function yfe(t) {
    dY || (dY = !0,
    t.registerSubTypeDefaulter("visualMap", function(e) {
        return !e.categories && (!(e.pieces ? e.pieces.length > 0 : e.splitNumber > 0) || e.calculable) ? "continuous" : "piecewise"
    }),
    t.registerAction(aht, iht),
    Z(oht, function(e) {
        t.registerVisual(t.PRIORITY.VISUAL.COMPONENT, e)
    }),
    t.registerPreprocessor(sht))
}
function bfe(t) {
    t.registerComponentModel(Xvt),
    t.registerComponentView(rht),
    yfe(t)
}
var uht = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n._pieceList = [],
        n
    }
    return e.prototype.optionUpdated = function(n, r) {
        t.prototype.optionUpdated.apply(this, arguments),
        this.resetExtent();
        var a = this._mode = this._determineMode();
        this._pieceList = [],
        cht[this._mode].call(this, this._pieceList),
        this._resetSelected(n, r);
        var i = this.option.categories;
        this.resetVisual(function(o, l) {
            a === "categories" ? (o.mappingMethod = "category",
            o.categories = ut(i)) : (o.dataExtent = this.getExtent(),
            o.mappingMethod = "piecewise",
            o.pieceList = Le(this._pieceList, function(s) {
                return s = ut(s),
                l !== "inRange" && (s.visual = null),
                s
            }))
        })
    }
    ,
    e.prototype.completeVisualOption = function() {
        var n = this.option
          , r = {}
          , a = Xr.listVisualTypes()
          , i = this.isCategory();
        Z(n.pieces, function(l) {
            Z(a, function(s) {
                l.hasOwnProperty(s) && (r[s] = 1)
            })
        }),
        Z(r, function(l, s) {
            var u = !1;
            Z(this.stateList, function(c) {
                u = u || o(n, c, s) || o(n.target, c, s)
            }, this),
            !u && Z(this.stateList, function(c) {
                (n[c] || (n[c] = {}))[s] = pfe.get(s, c === "inRange" ? "active" : "inactive", i)
            })
        }, this);
        function o(l, s, u) {
            return l && l[s] && l[s].hasOwnProperty(u)
        }
        t.prototype.completeVisualOption.apply(this, arguments)
    }
    ,
    e.prototype._resetSelected = function(n, r) {
        var a = this.option
          , i = this._pieceList
          , o = (r ? a : n).selected || {};
        if (a.selected = o,
        Z(i, function(s, u) {
            var c = this.getSelectedMapKey(s);
            o.hasOwnProperty(c) || (o[c] = !0)
        }, this),
        a.selectedMode === "single") {
            var l = !1;
            Z(i, function(s, u) {
                var c = this.getSelectedMapKey(s);
                o[c] && (l ? o[c] = !1 : l = !0)
            }, this)
        }
    }
    ,
    e.prototype.getItemSymbol = function() {
        return this.get("itemSymbol")
    }
    ,
    e.prototype.getSelectedMapKey = function(n) {
        return this._mode === "categories" ? n.value + "" : n.index + ""
    }
    ,
    e.prototype.getPieceList = function() {
        return this._pieceList
    }
    ,
    e.prototype._determineMode = function() {
        var n = this.option;
        return n.pieces && n.pieces.length > 0 ? "pieces" : this.option.categories ? "categories" : "splitNumber"
    }
    ,
    e.prototype.setSelected = function(n) {
        this.option.selected = ut(n)
    }
    ,
    e.prototype.getValueState = function(n) {
        var r = Xr.findPieceIndex(n, this._pieceList);
        return r != null && this.option.selected[this.getSelectedMapKey(this._pieceList[r])] ? "inRange" : "outOfRange"
    }
    ,
    e.prototype.findTargetDataIndices = function(n) {
        var r = []
          , a = this._pieceList;
        return this.eachTargetSeries(function(i) {
            var o = []
              , l = i.getData();
            l.each(this.getDataDimensionIndex(l), function(s, u) {
                var c = Xr.findPieceIndex(s, a);
                c === n && o.push(u)
            }, this),
            r.push({
                seriesId: i.id,
                dataIndex: o
            })
        }, this),
        r
    }
    ,
    e.prototype.getRepresentValue = function(n) {
        var r;
        if (this.isCategory())
            r = n.value;
        else if (n.value != null)
            r = n.value;
        else {
            var a = n.interval || [];
            r = a[0] === -1 / 0 && a[1] === 1 / 0 ? 0 : (a[0] + a[1]) / 2
        }
        return r
    }
    ,
    e.prototype.getVisualMeta = function(n) {
        if (this.isCategory())
            return;
        var r = []
          , a = ["", ""]
          , i = this;
        function o(c, f) {
            var d = i.getRepresentValue({
                interval: c
            });
            f || (f = i.getValueState(d));
            var v = n(d, f);
            c[0] === -1 / 0 ? a[0] = v : c[1] === 1 / 0 ? a[1] = v : r.push({
                value: c[0],
                color: v
            }, {
                value: c[1],
                color: v
            })
        }
        var l = this._pieceList.slice();
        if (!l.length)
            l.push({
                interval: [-1 / 0, 1 / 0]
            });
        else {
            var s = l[0].interval[0];
            s !== -1 / 0 && l.unshift({
                interval: [-1 / 0, s]
            }),
            s = l[l.length - 1].interval[1],
            s !== 1 / 0 && l.push({
                interval: [s, 1 / 0]
            })
        }
        var u = -1 / 0;
        return Z(l, function(c) {
            var f = c.interval;
            f && (f[0] > u && o([u, f[0]], "outOfRange"),
            o(f.slice()),
            u = f[1])
        }, this),
        {
            stops: r,
            outerColors: a
        }
    }
    ,
    e.type = "visualMap.piecewise",
    e.defaultOption = Yu(fC.defaultOption, {
        selected: null,
        minOpen: !1,
        maxOpen: !1,
        align: "auto",
        itemWidth: 20,
        itemHeight: 14,
        itemSymbol: "roundRect",
        pieces: null,
        categories: null,
        splitNumber: 5,
        selectedMode: "multiple",
        itemGap: 10,
        hoverLink: !0
    }),
    e
}(fC)
  , cht = {
    splitNumber: function(t) {
        var e = this.option
          , n = Math.min(e.precision, 20)
          , r = this.getExtent()
          , a = e.splitNumber;
        a = Math.max(parseInt(a, 10), 1),
        e.splitNumber = a;
        for (var i = (r[1] - r[0]) / a; +i.toFixed(n) !== i && n < 5; )
            n++;
        e.precision = n,
        i = +i.toFixed(n),
        e.minOpen && t.push({
            interval: [-1 / 0, r[0]],
            close: [0, 0]
        });
        for (var o = 0, l = r[0]; o < a; l += i,
        o++) {
            var s = o === a - 1 ? r[1] : l + i;
            t.push({
                interval: [l, s],
                close: [1, 1]
            })
        }
        e.maxOpen && t.push({
            interval: [r[1], 1 / 0],
            close: [0, 0]
        }),
        bI(t),
        Z(t, function(u, c) {
            u.index = c,
            u.text = this.formatValueText(u.interval)
        }, this)
    },
    categories: function(t) {
        var e = this.option;
        Z(e.categories, function(n) {
            t.push({
                text: this.formatValueText(n, !0),
                value: n
            })
        }, this),
        vY(e, t)
    },
    pieces: function(t) {
        var e = this.option;
        Z(e.pieces, function(n, r) {
            st(n) || (n = {
                value: n
            });
            var a = {
                text: "",
                index: r
            };
            if (n.label != null && (a.text = n.label),
            n.hasOwnProperty("value")) {
                var i = a.value = n.value;
                a.interval = [i, i],
                a.close = [1, 1]
            } else {
                for (var o = a.interval = [], l = a.close = [0, 0], s = [1, 0, 1], u = [-1 / 0, 1 / 0], c = [], f = 0; f < 2; f++) {
                    for (var d = [["gte", "gt", "min"], ["lte", "lt", "max"]][f], v = 0; v < 3 && o[f] == null; v++)
                        o[f] = n[d[v]],
                        l[f] = s[v],
                        c[f] = v === 2;
                    o[f] == null && (o[f] = u[f])
                }
                c[0] && o[1] === 1 / 0 && (l[0] = 0),
                c[1] && o[0] === -1 / 0 && (l[1] = 0),
                o[0] === o[1] && l[0] && l[1] && (a.value = o[0])
            }
            a.visual = Xr.retrieveVisuals(n),
            t.push(a)
        }, this),
        vY(e, t),
        bI(t),
        Z(t, function(n) {
            var r = n.close
              , a = [["<", "\u2264"][r[1]], [">", "\u2265"][r[0]]];
            n.text = n.text || this.formatValueText(n.value != null ? n.value : n.interval, !1, a)
        }, this)
    }
};
function vY(t, e) {
    var n = t.inverse;
    (t.orient === "vertical" ? !n : n) && e.reverse()
}
const fht = uht;
var dht = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = e.type,
        n
    }
    return e.prototype.doRender = function() {
        var n = this.group;
        n.removeAll();
        var r = this.visualMapModel
          , a = r.get("textGap")
          , i = r.textStyleModel
          , o = i.getFont()
          , l = i.getTextColor()
          , s = this._getItemAlign()
          , u = r.itemSize
          , c = this._getViewData()
          , f = c.endsText
          , d = kr(r.get("showLabel", !0), !f);
        f && this._renderEndsText(n, f[0], u, d, s),
        Z(c.viewPieceList, function(v) {
            var h = v.piece
              , p = new mt;
            p.onclick = qe(this._onItemClick, this, h),
            this._enableHoverLink(p, v.indexInModelPieceList);
            var g = r.getRepresentValue(h);
            if (this._createItemSymbol(p, g, [0, 0, u[0], u[1]]),
            d) {
                var m = this.visualMapModel.getValueState(g);
                p.add(new Jt({
                    style: {
                        x: s === "right" ? -a : u[0] + a,
                        y: u[1] / 2,
                        text: h.text,
                        verticalAlign: "middle",
                        align: s,
                        font: o,
                        fill: l,
                        opacity: m === "outOfRange" ? .5 : 1
                    }
                }))
            }
            n.add(p)
        }, this),
        f && this._renderEndsText(n, f[1], u, d, s),
        Cf(r.get("orient"), n, r.get("itemGap")),
        this.renderBackground(n),
        this.positionGroup(n)
    }
    ,
    e.prototype._enableHoverLink = function(n, r) {
        var a = this;
        n.on("mouseover", function() {
            return i("highlight")
        }).on("mouseout", function() {
            return i("downplay")
        });
        var i = function(o) {
            var l = a.visualMapModel;
            l.option.hoverLink && a.api.dispatchAction({
                type: o,
                batch: mx(l.findTargetDataIndices(r), l)
            })
        }
    }
    ,
    e.prototype._getItemAlign = function() {
        var n = this.visualMapModel
          , r = n.option;
        if (r.orient === "vertical")
            return mfe(n, this.api, n.itemSize);
        var a = r.align;
        return (!a || a === "auto") && (a = "left"),
        a
    }
    ,
    e.prototype._renderEndsText = function(n, r, a, i, o) {
        if (!!r) {
            var l = new mt
              , s = this.visualMapModel.textStyleModel;
            l.add(new Jt({
                style: In(s, {
                    x: i ? o === "right" ? a[0] : 0 : a[0] / 2,
                    y: a[1] / 2,
                    verticalAlign: "middle",
                    align: i ? o : "center",
                    text: r
                })
            })),
            n.add(l)
        }
    }
    ,
    e.prototype._getViewData = function() {
        var n = this.visualMapModel
          , r = Le(n.getPieceList(), function(l, s) {
            return {
                piece: l,
                indexInModelPieceList: s
            }
        })
          , a = n.get("text")
          , i = n.get("orient")
          , o = n.get("inverse");
        return (i === "horizontal" ? o : !o) ? r.reverse() : a && (a = a.slice().reverse()),
        {
            viewPieceList: r,
            endsText: a
        }
    }
    ,
    e.prototype._createItemSymbol = function(n, r, a) {
        n.add(fr(this.getControllerVisual(r, "symbol"), a[0], a[1], a[2], a[3], this.getControllerVisual(r, "color")))
    }
    ,
    e.prototype._onItemClick = function(n) {
        var r = this.visualMapModel
          , a = r.option
          , i = a.selectedMode;
        if (!!i) {
            var o = ut(a.selected)
              , l = r.getSelectedMapKey(n);
            i === "single" || i === !0 ? (o[l] = !0,
            Z(o, function(s, u) {
                o[u] = u === l
            })) : o[l] = !o[l],
            this.api.dispatchAction({
                type: "selectDataRange",
                from: this.uid,
                visualMapId: this.visualMapModel.id,
                selected: o
            })
        }
    }
    ,
    e.type = "visualMap.piecewise",
    e
}(gfe);
const vht = dht;
function xfe(t) {
    t.registerComponentModel(fht),
    t.registerComponentView(vht),
    yfe(t)
}
function hht(t) {
    Bt(bfe),
    Bt(xfe)
}
var pht = {
    label: {
        enabled: !0
    },
    decal: {
        show: !1
    }
}
  , hY = an()
  , ght = {};
function mht(t, e) {
    var n = t.getModel("aria");
    if (!n.get("enabled"))
        return;
    var r = ut(pht);
    At(r.label, t.getLocaleModel().get("aria"), !1),
    At(n.option, r, !1),
    a(),
    i();
    function a() {
        var u = n.getModel("decal")
          , c = u.get("show");
        if (c) {
            var f = Qe();
            t.eachSeries(function(d) {
                if (!d.isColorBySeries()) {
                    var v = f.get(d.type);
                    v || (v = {},
                    f.set(d.type, v)),
                    hY(d).scope = v
                }
            }),
            t.eachRawSeries(function(d) {
                if (t.isSeriesFiltered(d))
                    return;
                if (et(d.enableAriaDecal)) {
                    d.enableAriaDecal();
                    return
                }
                var v = d.getData();
                if (d.isColorBySeries()) {
                    var y = RI(d.ecModel, d.name, ght, t.getSeriesCount())
                      , b = v.getVisual("decal");
                    v.setVisual("decal", x(b, y))
                } else {
                    var h = d.getRawData()
                      , p = {}
                      , g = hY(d).scope;
                    v.each(function(C) {
                        var S = v.getRawIndex(C);
                        p[S] = C
                    });
                    var m = h.count();
                    h.each(function(C) {
                        var S = p[C]
                          , w = h.getName(C) || C + ""
                          , T = RI(d.ecModel, w, g, m)
                          , P = v.getItemVisual(S, "decal");
                        v.setItemVisual(S, "decal", x(P, T))
                    })
                }
                function x(C, S) {
                    var w = C ? Me(Me({}, S), C) : S;
                    return w.dirty = !0,
                    w
                }
            })
        }
    }
    function i() {
        var u = t.getLocaleModel().get("aria")
          , c = n.getModel("label");
        if (c.option = ot(c.option, u),
        !!c.get("enabled")) {
            var f = e.getZr().dom;
            if (c.get("description")) {
                f.setAttribute("aria-label", c.get("description"));
                return
            }
            var d = t.getSeriesCount(), v = c.get(["data", "maxCount"]) || 10, h = c.get(["series", "maxCount"]) || 10, p = Math.min(d, h), g;
            if (!(d < 1)) {
                var m = l();
                if (m) {
                    var y = c.get(["general", "withTitle"]);
                    g = o(y, {
                        title: m
                    })
                } else
                    g = c.get(["general", "withoutTitle"]);
                var b = []
                  , x = d > 1 ? c.get(["series", "multiple", "prefix"]) : c.get(["series", "single", "prefix"]);
                g += o(x, {
                    seriesCount: d
                }),
                t.eachSeries(function(T, P) {
                    if (P < p) {
                        var M = void 0
                          , A = T.get("name")
                          , O = A ? "withName" : "withoutName";
                        M = d > 1 ? c.get(["series", "multiple", O]) : c.get(["series", "single", O]),
                        M = o(M, {
                            seriesId: T.seriesIndex,
                            seriesName: T.get("name"),
                            seriesType: s(T.subType)
                        });
                        var k = T.getData();
                        if (k.count() > v) {
                            var D = c.get(["data", "partialData"]);
                            M += o(D, {
                                displayCnt: v
                            })
                        } else
                            M += c.get(["data", "allData"]);
                        for (var E = c.get(["data", "separator", "middle"]), L = c.get(["data", "separator", "end"]), N = [], R = 0; R < k.count(); R++)
                            if (R < v) {
                                var $ = k.getName(R)
                                  , W = k.getValues(R)
                                  , B = c.get(["data", $ ? "withName" : "withoutName"]);
                                N.push(o(B, {
                                    name: $,
                                    value: W.join(E)
                                }))
                            }
                        M += N.join(E) + L,
                        b.push(M)
                    }
                });
                var C = c.getModel(["series", "multiple", "separator"])
                  , S = C.get("middle")
                  , w = C.get("end");
                g += b.join(S) + w,
                f.setAttribute("aria-label", g)
            }
        }
    }
    function o(u, c) {
        if (!Ge(u))
            return u;
        var f = u;
        return Z(c, function(d, v) {
            f = f.replace(new RegExp("\\{\\s*" + v + "\\s*\\}","g"), d)
        }),
        f
    }
    function l() {
        var u = t.get("title");
        return u && u.length && (u = u[0]),
        u && u.text
    }
    function s(u) {
        return t.getLocaleModel().get(["series", "typeNames"])[u] || "\u81EA\u5B9A\u4E49\u56FE"
    }
}
function yht(t) {
    if (!(!t || !t.aria)) {
        var e = t.aria;
        e.show != null && (e.enabled = e.show),
        e.label = e.label || {},
        Z(["description", "general", "series", "data"], function(n) {
            e[n] != null && (e.label[n] = e[n])
        })
    }
}
function bht(t) {
    t.registerPreprocessor(yht),
    t.registerVisual(t.PRIORITY.VISUAL.ARIA, mht)
}
var pY = {
    value: "eq",
    "<": "lt",
    "<=": "lte",
    ">": "gt",
    ">=": "gte",
    "=": "eq",
    "!=": "ne",
    "<>": "ne"
}
  , xht = function() {
    function t(e) {
        var n = this._condVal = Ge(e) ? new RegExp(e) : xae(e) ? e : null;
        if (n == null) {
            var r = "";
            cn(r)
        }
    }
    return t.prototype.evaluate = function(e) {
        var n = typeof e;
        return Ge(n) ? this._condVal.test(e) : rn(n) ? this._condVal.test(e + "") : !1
    }
    ,
    t
}()
  , Sht = function() {
    function t() {}
    return t.prototype.evaluate = function() {
        return this.value
    }
    ,
    t
}()
  , Cht = function() {
    function t() {}
    return t.prototype.evaluate = function() {
        for (var e = this.children, n = 0; n < e.length; n++)
            if (!e[n].evaluate())
                return !1;
        return !0
    }
    ,
    t
}()
  , wht = function() {
    function t() {}
    return t.prototype.evaluate = function() {
        for (var e = this.children, n = 0; n < e.length; n++)
            if (e[n].evaluate())
                return !0;
        return !1
    }
    ,
    t
}()
  , _ht = function() {
    function t() {}
    return t.prototype.evaluate = function() {
        return !this.child.evaluate()
    }
    ,
    t
}()
  , Tht = function() {
    function t() {}
    return t.prototype.evaluate = function() {
        for (var e = !!this.valueParser, n = this.getValue, r = n(this.valueGetterParam), a = e ? this.valueParser(r) : null, i = 0; i < this.subCondList.length; i++)
            if (!this.subCondList[i].evaluate(e ? a : r))
                return !1;
        return !0
    }
    ,
    t
}();
function FL(t, e) {
    if (t === !0 || t === !1) {
        var n = new Sht;
        return n.value = t,
        n
    }
    var r = "";
    return Sfe(t) || cn(r),
    t.and ? gY("and", t, e) : t.or ? gY("or", t, e) : t.not ? Pht(t, e) : Mht(t, e)
}
function gY(t, e, n) {
    var r = e[t]
      , a = "";
    ke(r) || cn(a),
    r.length || cn(a);
    var i = t === "and" ? new Cht : new wht;
    return i.children = Le(r, function(o) {
        return FL(o, n)
    }),
    i.children.length || cn(a),
    i
}
function Pht(t, e) {
    var n = t.not
      , r = "";
    Sfe(n) || cn(r);
    var a = new _ht;
    return a.child = FL(n, e),
    a.child || cn(r),
    a
}
function Mht(t, e) {
    for (var n = "", r = e.prepareGetValue(t), a = [], i = Gt(t), o = t.parser, l = o ? Uoe(o) : null, s = 0; s < i.length; s++) {
        var u = i[s];
        if (!(u === "parser" || e.valueGetterAttrMap.get(u))) {
            var c = Ze(pY, u) ? pY[u] : u
              , f = t[u]
              , d = l ? l(f) : f
              , v = jYe(c, d) || c === "reg" && new xht(d);
            v || cn(n),
            a.push(v)
        }
    }
    a.length || cn(n);
    var h = new Tht;
    return h.valueGetterParam = r,
    h.valueParser = l,
    h.getValue = e.getValue,
    h.subCondList = a,
    h
}
function Sfe(t) {
    return st(t) && !Qr(t)
}
var Aht = function() {
    function t(e, n) {
        this._cond = FL(e, n)
    }
    return t.prototype.evaluate = function() {
        return this._cond.evaluate()
    }
    ,
    t
}();
function Iht(t, e) {
    return new Aht(t,e)
}
var kht = {
    type: "echarts:filter",
    transform: function(t) {
        for (var e = t.upstream, n, r = Iht(t.config, {
            valueGetterAttrMap: Qe({
                dimension: !0
            }),
            prepareGetValue: function(l) {
                var s = ""
                  , u = l.dimension;
                Ze(l, "dimension") || cn(s);
                var c = e.getDimensionInfo(u);
                return c || cn(s),
                {
                    dimIdx: c.index
                }
            },
            getValue: function(l) {
                return e.retrieveValueFromItem(n, l.dimIdx)
            }
        }), a = [], i = 0, o = e.count(); i < o; i++)
            n = e.getRawDataItem(i),
            r.evaluate() && a.push(n);
        return {
            data: a
        }
    }
}
  , Oht = {
    type: "echarts:sort",
    transform: function(t) {
        var e = t.upstream
          , n = t.config
          , r = ""
          , a = _n(n);
        a.length || cn(r);
        var i = [];
        Z(a, function(c) {
            var f = c.dimension
              , d = c.order
              , v = c.parser
              , h = c.incomparable;
            if (f == null && cn(r),
            d !== "asc" && d !== "desc" && cn(r),
            h && h !== "min" && h !== "max") {
                var p = "";
                cn(p)
            }
            if (d !== "asc" && d !== "desc") {
                var g = "";
                cn(g)
            }
            var m = e.getDimensionInfo(f);
            m || cn(r);
            var y = v ? Uoe(v) : null;
            v && !y && cn(r),
            i.push({
                dimIdx: m.index,
                parser: y,
                comparator: new qoe(d,h)
            })
        });
        var o = e.sourceFormat;
        o !== sa && o !== Ui && cn(r);
        for (var l = [], s = 0, u = e.count(); s < u; s++)
            l.push(e.getRawDataItem(s));
        return l.sort(function(c, f) {
            for (var d = 0; d < i.length; d++) {
                var v = i[d]
                  , h = e.retrieveValueFromItem(c, v.dimIdx)
                  , p = e.retrieveValueFromItem(f, v.dimIdx);
                v.parser && (h = v.parser(h),
                p = v.parser(p));
                var g = v.comparator.evaluate(h, p);
                if (g !== 0)
                    return g
            }
            return 0
        }),
        {
            data: l
        }
    }
};
function Dht(t) {
    t.registerTransform(kht),
    t.registerTransform(Oht)
}
var Eht = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = "dataset",
        n
    }
    return e.prototype.init = function(n, r, a) {
        t.prototype.init.call(this, n, r, a),
        this._sourceManager = new Joe(this),
        bj(this)
    }
    ,
    e.prototype.mergeOption = function(n, r) {
        t.prototype.mergeOption.call(this, n, r),
        bj(this)
    }
    ,
    e.prototype.optionUpdated = function() {
        this._sourceManager.dirty()
    }
    ,
    e.prototype.getSourceManager = function() {
        return this._sourceManager
    }
    ,
    e.type = "dataset",
    e.defaultOption = {
        seriesLayoutBy: dl
    },
    e
}(qt)
  , Lht = function(t) {
    ge(e, t);
    function e() {
        var n = t !== null && t.apply(this, arguments) || this;
        return n.type = "dataset",
        n
    }
    return e.type = "dataset",
    e
}(Bn);
function Rht(t) {
    t.registerComponentModel(Eht),
    t.registerComponentView(Lht)
}
var jo = yl.CMD;
function iv(t, e) {
    return Math.abs(t - e) < 1e-5
}
function Rk(t) {
    var e = t.data, n = t.len(), r = [], a, i = 0, o = 0, l = 0, s = 0;
    function u(k, D) {
        a && a.length > 2 && r.push(a),
        a = [k, D]
    }
    function c(k, D, E, L) {
        iv(k, E) && iv(D, L) || a.push(k, D, E, L, E, L)
    }
    function f(k, D, E, L, N, R) {
        var $ = Math.abs(D - k)
          , W = Math.tan($ / 4) * 4 / 3
          , B = D < k ? -1 : 1
          , G = Math.cos(k)
          , K = Math.sin(k)
          , V = Math.cos(D)
          , U = Math.sin(D)
          , X = G * N + E
          , Y = K * R + L
          , te = V * N + E
          , ne = U * R + L
          , ie = N * W * B
          , ae = R * W * B;
        a.push(X - ie * K, Y + ae * G, te + ie * U, ne - ae * V, te, ne)
    }
    for (var d, v, h, p, g = 0; g < n; ) {
        var m = e[g++]
          , y = g === 1;
        switch (y && (i = e[g],
        o = e[g + 1],
        l = i,
        s = o,
        (m === jo.L || m === jo.C || m === jo.Q) && (a = [l, s])),
        m) {
        case jo.M:
            i = l = e[g++],
            o = s = e[g++],
            u(l, s);
            break;
        case jo.L:
            d = e[g++],
            v = e[g++],
            c(i, o, d, v),
            i = d,
            o = v;
            break;
        case jo.C:
            a.push(e[g++], e[g++], e[g++], e[g++], i = e[g++], o = e[g++]);
            break;
        case jo.Q:
            d = e[g++],
            v = e[g++],
            h = e[g++],
            p = e[g++],
            a.push(i + 2 / 3 * (d - i), o + 2 / 3 * (v - o), h + 2 / 3 * (d - h), p + 2 / 3 * (v - p), h, p),
            i = h,
            o = p;
            break;
        case jo.A:
            var b = e[g++]
              , x = e[g++]
              , C = e[g++]
              , S = e[g++]
              , w = e[g++]
              , T = e[g++] + w;
            g += 1;
            var P = !e[g++];
            d = Math.cos(w) * C + b,
            v = Math.sin(w) * S + x,
            y ? (l = d,
            s = v,
            u(l, s)) : c(i, o, d, v),
            i = Math.cos(T) * C + b,
            o = Math.sin(T) * S + x;
            for (var M = (P ? -1 : 1) * Math.PI / 2, A = w; P ? A > T : A < T; A += M) {
                var O = P ? Math.max(A + M, T) : Math.min(A + M, T);
                f(A, O, b, x, C, S)
            }
            break;
        case jo.R:
            l = i = e[g++],
            s = o = e[g++],
            d = l + e[g++],
            v = s + e[g++],
            u(d, s),
            c(d, s, d, v),
            c(d, v, l, v),
            c(l, v, l, s),
            c(l, s, d, s);
            break;
        case jo.Z:
            a && c(i, o, l, s),
            i = l,
            o = s;
            break
        }
    }
    return a && a.length > 2 && r.push(a),
    r
}
function Nk(t, e, n, r, a, i, o, l, s, u) {
    if (iv(t, n) && iv(e, r) && iv(a, o) && iv(i, l)) {
        s.push(o, l);
        return
    }
    var c = 2 / u
      , f = c * c
      , d = o - t
      , v = l - e
      , h = Math.sqrt(d * d + v * v);
    d /= h,
    v /= h;
    var p = n - t
      , g = r - e
      , m = a - o
      , y = i - l
      , b = p * p + g * g
      , x = m * m + y * y;
    if (b < f && x < f) {
        s.push(o, l);
        return
    }
    var C = d * p + v * g
      , S = -d * m - v * y
      , w = b - C * C
      , T = x - S * S;
    if (w < f && C >= 0 && T < f && S >= 0) {
        s.push(o, l);
        return
    }
    var P = []
      , M = [];
    Ou(t, n, a, o, .5, P),
    Ou(e, r, i, l, .5, M),
    Nk(P[0], M[0], P[1], M[1], P[2], M[2], P[3], M[3], s, u),
    Nk(P[4], M[4], P[5], M[5], P[6], M[6], P[7], M[7], s, u)
}
function Nht(t, e) {
    var n = Rk(t)
      , r = [];
    e = e || 1;
    for (var a = 0; a < n.length; a++) {
        var i = n[a]
          , o = []
          , l = i[0]
          , s = i[1];
        o.push(l, s);
        for (var u = 2; u < i.length; ) {
            var c = i[u++]
              , f = i[u++]
              , d = i[u++]
              , v = i[u++]
              , h = i[u++]
              , p = i[u++];
            Nk(l, s, c, f, d, v, h, p, o, e),
            l = h,
            s = p
        }
        r.push(o)
    }
    return r
}
function Cfe(t, e, n) {
    var r = t[e]
      , a = t[1 - e]
      , i = Math.abs(r / a)
      , o = Math.ceil(Math.sqrt(i * n))
      , l = Math.floor(n / o);
    l === 0 && (l = 1,
    o = n);
    for (var s = [], u = 0; u < o; u++)
        s.push(l);
    var c = o * l
      , f = n - c;
    if (f > 0)
        for (var u = 0; u < f; u++)
            s[u % o] += 1;
    return s
}
function mY(t, e, n) {
    for (var r = t.r0, a = t.r, i = t.startAngle, o = t.endAngle, l = Math.abs(o - i), s = l * a, u = a - r, c = s > Math.abs(u), f = Cfe([s, u], c ? 0 : 1, e), d = (c ? l : u) / f.length, v = 0; v < f.length; v++)
        for (var h = (c ? u : l) / f[v], p = 0; p < f[v]; p++) {
            var g = {};
            c ? (g.startAngle = i + d * v,
            g.endAngle = i + d * (v + 1),
            g.r0 = r + h * p,
            g.r = r + h * (p + 1)) : (g.startAngle = i + h * p,
            g.endAngle = i + h * (p + 1),
            g.r0 = r + d * v,
            g.r = r + d * (v + 1)),
            g.clockwise = t.clockwise,
            g.cx = t.cx,
            g.cy = t.cy,
            n.push(g)
        }
}
function $ht(t, e, n) {
    for (var r = t.width, a = t.height, i = r > a, o = Cfe([r, a], i ? 0 : 1, e), l = i ? "width" : "height", s = i ? "height" : "width", u = i ? "x" : "y", c = i ? "y" : "x", f = t[l] / o.length, d = 0; d < o.length; d++)
        for (var v = t[s] / o[d], h = 0; h < o[d]; h++) {
            var p = {};
            p[u] = d * f,
            p[c] = h * v,
            p[l] = f,
            p[s] = v,
            p.x += t.x,
            p.y += t.y,
            n.push(p)
        }
}
function yY(t, e, n, r) {
    return t * r - n * e
}
function Fht(t, e, n, r, a, i, o, l) {
    var s = n - t
      , u = r - e
      , c = o - a
      , f = l - i
      , d = yY(c, f, s, u);
    if (Math.abs(d) < 1e-6)
        return null;
    var v = t - a
      , h = e - i
      , p = yY(v, h, c, f) / d;
    return p < 0 || p > 1 ? null : new kt(p * s + t,p * u + e)
}
function Bht(t, e, n) {
    var r = new kt;
    kt.sub(r, n, e),
    r.normalize();
    var a = new kt;
    kt.sub(a, t, e);
    var i = a.dot(r);
    return i
}
function $d(t, e) {
    var n = t[t.length - 1];
    n && n[0] === e[0] && n[1] === e[1] || t.push(e)
}
function Vht(t, e, n) {
    for (var r = t.length, a = [], i = 0; i < r; i++) {
        var o = t[i]
          , l = t[(i + 1) % r]
          , s = Fht(o[0], o[1], l[0], l[1], e.x, e.y, n.x, n.y);
        s && a.push({
            projPt: Bht(s, e, n),
            pt: s,
            idx: i
        })
    }
    if (a.length < 2)
        return [{
            points: t
        }, {
            points: t
        }];
    a.sort(function(g, m) {
        return g.projPt - m.projPt
    });
    var u = a[0]
      , c = a[a.length - 1];
    if (c.idx < u.idx) {
        var f = u;
        u = c,
        c = f
    }
    for (var d = [u.pt.x, u.pt.y], v = [c.pt.x, c.pt.y], h = [d], p = [v], i = u.idx + 1; i <= c.idx; i++)
        $d(h, t[i].slice());
    $d(h, v),
    $d(h, d);
    for (var i = c.idx + 1; i <= u.idx + r; i++)
        $d(p, t[i % r].slice());
    return $d(p, d),
    $d(p, v),
    [{
        points: h
    }, {
        points: p
    }]
}
function bY(t) {
    var e = t.points
      , n = []
      , r = [];
    a2(e, n, r);
    var a = new Dt(n[0],n[1],r[0] - n[0],r[1] - n[1])
      , i = a.width
      , o = a.height
      , l = a.x
      , s = a.y
      , u = new kt
      , c = new kt;
    return i > o ? (u.x = c.x = l + i / 2,
    u.y = s,
    c.y = s + o) : (u.y = c.y = s + o / 2,
    u.x = l,
    c.x = l + i),
    Vht(e, u, c)
}
function dC(t, e, n, r) {
    if (n === 1)
        r.push(e);
    else {
        var a = Math.floor(n / 2)
          , i = t(e);
        dC(t, i[0], a, r),
        dC(t, i[1], n - a, r)
    }
    return r
}
function zht(t, e) {
    for (var n = [], r = 0; r < e; r++)
        n.push(K6(t));
    return n
}
function Hht(t, e) {
    e.setStyle(t.style),
    e.z = t.z,
    e.z2 = t.z2,
    e.zlevel = t.zlevel
}
function jht(t) {
    for (var e = [], n = 0; n < t.length; )
        e.push([t[n++], t[n++]]);
    return e
}
function Wht(t, e) {
    var n = [], r = t.shape, a;
    switch (t.type) {
    case "rect":
        $ht(r, e, n),
        a = tn;
        break;
    case "sector":
        mY(r, e, n),
        a = Pa;
        break;
    case "circle":
        mY({
            r0: 0,
            r: r.r,
            startAngle: 0,
            endAngle: Math.PI * 2,
            cx: r.cx,
            cy: r.cy
        }, e, n),
        a = Pa;
        break;
    default:
        var i = t.getComputedTransform()
          , o = i ? Math.sqrt(Math.max(i[0] * i[0] + i[1] * i[1], i[2] * i[2] + i[3] * i[3])) : 1
          , l = Le(Nht(t.getUpdatedPathProxy(), o), function(m) {
            return jht(m)
        })
          , s = l.length;
        if (s === 0)
            dC(bY, {
                points: l[0]
            }, e, n);
        else if (s === e)
            for (var u = 0; u < s; u++)
                n.push({
                    points: l[u]
                });
        else {
            var c = 0
              , f = Le(l, function(m) {
                var y = []
                  , b = [];
                a2(m, y, b);
                var x = (b[1] - y[1]) * (b[0] - y[0]);
                return c += x,
                {
                    poly: m,
                    area: x
                }
            });
            f.sort(function(m, y) {
                return y.area - m.area
            });
            for (var d = e, u = 0; u < s; u++) {
                var v = f[u];
                if (d <= 0)
                    break;
                var h = u === s - 1 ? d : Math.ceil(v.area / c * e);
                h < 0 || (dC(bY, {
                    points: v.poly
                }, h, n),
                d -= h)
            }
        }
        a = Ma;
        break
    }
    if (!a)
        return zht(t, e);
    for (var p = [], u = 0; u < n.length; u++) {
        var g = new a;
        g.setShape(n[u]),
        Hht(t, g),
        p.push(g)
    }
    return p
}
function Ght(t, e) {
    var n = t.length
      , r = e.length;
    if (n === r)
        return [t, e];
    for (var a = [], i = [], o = n < r ? t : e, l = Math.min(n, r), s = Math.abs(r - n) / 6, u = (l - 2) / 6, c = Math.ceil(s / u) + 1, f = [o[0], o[1]], d = s, v = 2; v < l; ) {
        var h = o[v - 2]
          , p = o[v - 1]
          , g = o[v++]
          , m = o[v++]
          , y = o[v++]
          , b = o[v++]
          , x = o[v++]
          , C = o[v++];
        if (d <= 0) {
            f.push(g, m, y, b, x, C);
            continue
        }
        for (var S = Math.min(d, c - 1) + 1, w = 1; w <= S; w++) {
            var T = w / S;
            Ou(h, g, y, x, T, a),
            Ou(p, m, b, C, T, i),
            h = a[3],
            p = i[3],
            f.push(a[1], i[1], a[2], i[2], h, p),
            g = a[5],
            m = i[5],
            y = a[6],
            b = i[6]
        }
        d -= S - 1
    }
    return o === t ? [f, e] : [t, f]
}
function xY(t, e) {
    for (var n = t.length, r = t[n - 2], a = t[n - 1], i = [], o = 0; o < e.length; )
        i[o++] = r,
        i[o++] = a;
    return i
}
function Kht(t, e) {
    for (var n, r, a, i = [], o = [], l = 0; l < Math.max(t.length, e.length); l++) {
        var s = t[l]
          , u = e[l]
          , c = void 0
          , f = void 0;
        s ? u ? (n = Ght(s, u),
        c = n[0],
        f = n[1],
        r = c,
        a = f) : (f = xY(a || s, s),
        c = s) : (c = xY(r || u, u),
        f = u),
        i.push(c),
        o.push(f)
    }
    return [i, o]
}
function SY(t) {
    for (var e = 0, n = 0, r = 0, a = t.length, i = 0, o = a - 2; i < a; o = i,
    i += 2) {
        var l = t[o]
          , s = t[o + 1]
          , u = t[i]
          , c = t[i + 1]
          , f = l * c - u * s;
        e += f,
        n += (l + u) * f,
        r += (s + c) * f
    }
    return e === 0 ? [t[0] || 0, t[1] || 0] : [n / e / 3, r / e / 3, e]
}
function Uht(t, e, n, r) {
    for (var a = (t.length - 2) / 6, i = 1 / 0, o = 0, l = t.length, s = l - 2, u = 0; u < a; u++) {
        for (var c = u * 6, f = 0, d = 0; d < l; d += 2) {
            var v = d === 0 ? c : (c + d - 2) % s + 2
              , h = t[v] - n[0]
              , p = t[v + 1] - n[1]
              , g = e[d] - r[0]
              , m = e[d + 1] - r[1]
              , y = g - h
              , b = m - p;
            f += y * y + b * b
        }
        f < i && (i = f,
        o = u)
    }
    return o
}
function Yht(t) {
    for (var e = [], n = t.length, r = 0; r < n; r += 2)
        e[r] = t[n - r - 2],
        e[r + 1] = t[n - r - 1];
    return e
}
function qht(t, e, n, r) {
    for (var a = [], i, o = 0; o < t.length; o++) {
        var l = t[o]
          , s = e[o]
          , u = SY(l)
          , c = SY(s);
        i == null && (i = u[2] < 0 != c[2] < 0);
        var f = []
          , d = []
          , v = 0
          , h = 1 / 0
          , p = []
          , g = l.length;
        i && (l = Yht(l));
        for (var m = Uht(l, s, u, c) * 6, y = g - 2, b = 0; b < y; b += 2) {
            var x = (m + b) % y + 2;
            f[b + 2] = l[x] - u[0],
            f[b + 3] = l[x + 1] - u[1]
        }
        if (f[0] = l[m] - u[0],
        f[1] = l[m + 1] - u[1],
        n > 0)
            for (var C = r / n, S = -r / 2; S <= r / 2; S += C) {
                for (var w = Math.sin(S), T = Math.cos(S), P = 0, b = 0; b < l.length; b += 2) {
                    var M = f[b]
                      , A = f[b + 1]
                      , O = s[b] - c[0]
                      , k = s[b + 1] - c[1]
                      , D = O * T - k * w
                      , E = O * w + k * T;
                    p[b] = D,
                    p[b + 1] = E;
                    var L = D - M
                      , N = E - A;
                    P += L * L + N * N
                }
                if (P < h) {
                    h = P,
                    v = S;
                    for (var R = 0; R < p.length; R++)
                        d[R] = p[R]
                }
            }
        else
            for (var $ = 0; $ < g; $ += 2)
                d[$] = s[$] - c[0],
                d[$ + 1] = s[$ + 1] - c[1];
        a.push({
            from: f,
            to: d,
            fromCp: u,
            toCp: c,
            rotation: -v
        })
    }
    return a
}
function vC(t) {
    return t.__isCombineMorphing
}
var wfe = "__mOriginal_";
function hC(t, e, n) {
    var r = wfe + e
      , a = t[r] || t[e];
    t[r] || (t[r] = t[e]);
    var i = n.replace
      , o = n.after
      , l = n.before;
    t[e] = function() {
        var s = arguments, u;
        return l && l.apply(this, s),
        i ? u = i.apply(this, s) : u = a.apply(this, s),
        o && o.apply(this, s),
        u
    }
}
function Yg(t, e) {
    var n = wfe + e;
    t[n] && (t[e] = t[n],
    t[n] = null)
}
function CY(t, e) {
    for (var n = 0; n < t.length; n++)
        for (var r = t[n], a = 0; a < r.length; ) {
            var i = r[a]
              , o = r[a + 1];
            r[a++] = e[0] * i + e[2] * o + e[4],
            r[a++] = e[1] * i + e[3] * o + e[5]
        }
}
function _fe(t, e) {
    var n = t.getUpdatedPathProxy()
      , r = e.getUpdatedPathProxy()
      , a = Kht(Rk(n), Rk(r))
      , i = a[0]
      , o = a[1]
      , l = t.getComputedTransform()
      , s = e.getComputedTransform();
    function u() {
        this.transform = null
    }
    l && CY(i, l),
    s && CY(o, s),
    hC(e, "updateTransform", {
        replace: u
    }),
    e.transform = null;
    var c = qht(i, o, 10, Math.PI)
      , f = [];
    hC(e, "buildPath", {
        replace: function(d) {
            for (var v = e.__morphT, h = 1 - v, p = [], g = 0; g < c.length; g++) {
                var m = c[g]
                  , y = m.from
                  , b = m.to
                  , x = m.rotation * v
                  , C = m.fromCp
                  , S = m.toCp
                  , w = Math.sin(x)
                  , T = Math.cos(x);
                Lg(p, C, S, v);
                for (var P = 0; P < y.length; P += 2) {
                    var M = y[P]
                      , A = y[P + 1]
                      , O = b[P]
                      , k = b[P + 1]
                      , D = M * h + O * v
                      , E = A * h + k * v;
                    f[P] = D * T - E * w + p[0],
                    f[P + 1] = D * w + E * T + p[1]
                }
                var L = f[0]
                  , N = f[1];
                d.moveTo(L, N);
                for (var P = 2; P < y.length; ) {
                    var O = f[P++]
                      , k = f[P++]
                      , R = f[P++]
                      , $ = f[P++]
                      , W = f[P++]
                      , B = f[P++];
                    L === O && N === k && R === W && $ === B ? d.lineTo(W, B) : d.bezierCurveTo(O, k, R, $, W, B),
                    L = W,
                    N = B
                }
            }
        }
    })
}
function BL(t, e, n) {
    if (!t || !e)
        return e;
    var r = n.done
      , a = n.during;
    _fe(t, e),
    e.__morphT = 0;
    function i() {
        Yg(e, "buildPath"),
        Yg(e, "updateTransform"),
        e.__morphT = -1,
        e.createPathProxy(),
        e.dirtyShape()
    }
    return e.animateTo({
        __morphT: 1
    }, ot({
        during: function(o) {
            e.dirtyShape(),
            a && a(o)
        },
        done: function() {
            i(),
            r && r()
        }
    }, n)),
    e
}
function Xht(t, e, n, r, a, i) {
    var o = 16;
    t = a === n ? 0 : Math.round(32767 * (t - n) / (a - n)),
    e = i === r ? 0 : Math.round(32767 * (e - r) / (i - r));
    for (var l = 0, s, u = (1 << o) / 2; u > 0; u /= 2) {
        var c = 0
          , f = 0;
        (t & u) > 0 && (c = 1),
        (e & u) > 0 && (f = 1),
        l += u * u * (3 * c ^ f),
        f === 0 && (c === 1 && (t = u - 1 - t,
        e = u - 1 - e),
        s = t,
        t = e,
        e = s)
    }
    return l
}
function pC(t) {
    var e = 1 / 0
      , n = 1 / 0
      , r = -1 / 0
      , a = -1 / 0
      , i = Le(t, function(l) {
        var s = l.getBoundingRect()
          , u = l.getComputedTransform()
          , c = s.x + s.width / 2 + (u ? u[4] : 0)
          , f = s.y + s.height / 2 + (u ? u[5] : 0);
        return e = Math.min(c, e),
        n = Math.min(f, n),
        r = Math.max(c, r),
        a = Math.max(f, a),
        [c, f]
    })
      , o = Le(i, function(l, s) {
        return {
            cp: l,
            z: Xht(l[0], l[1], e, n, r, a),
            path: t[s]
        }
    });
    return o.sort(function(l, s) {
        return l.z - s.z
    }).map(function(l) {
        return l.path
    })
}
function Tfe(t) {
    return Wht(t.path, t.count)
}
function $k() {
    return {
        fromIndividuals: [],
        toIndividuals: [],
        count: 0
    }
}
function Zht(t, e, n) {
    var r = [];
    function a(C) {
        for (var S = 0; S < C.length; S++) {
            var w = C[S];
            vC(w) ? a(w.childrenRef()) : w instanceof jt && r.push(w)
        }
    }
    a(t);
    var i = r.length;
    if (!i)
        return $k();
    var o = n.dividePath || Tfe
      , l = o({
        path: e,
        count: i
    });
    if (l.length !== i)
        return $k();
    r = pC(r),
    l = pC(l);
    for (var s = n.done, u = n.during, c = n.individualDelay, f = new es, d = 0; d < i; d++) {
        var v = r[d]
          , h = l[d];
        h.parent = e,
        h.copyTransform(f),
        c || _fe(v, h)
    }
    e.__isCombineMorphing = !0,
    e.childrenRef = function() {
        return l
    }
    ;
    function p(C) {
        for (var S = 0; S < l.length; S++)
            l[S].addSelfToZr(C)
    }
    hC(e, "addSelfToZr", {
        after: function(C) {
            p(C)
        }
    }),
    hC(e, "removeSelfFromZr", {
        after: function(C) {
            for (var S = 0; S < l.length; S++)
                l[S].removeSelfFromZr(C)
        }
    });
    function g() {
        e.__isCombineMorphing = !1,
        e.__morphT = -1,
        e.childrenRef = null,
        Yg(e, "addSelfToZr"),
        Yg(e, "removeSelfFromZr")
    }
    var m = l.length;
    if (c)
        for (var y = m, b = function() {
            y--,
            y === 0 && (g(),
            s && s())
        }, d = 0; d < m; d++) {
            var x = c ? ot({
                delay: (n.delay || 0) + c(d, m, r[d], l[d]),
                done: b
            }, n) : n;
            BL(r[d], l[d], x)
        }
    else
        e.__morphT = 0,
        e.animateTo({
            __morphT: 1
        }, ot({
            during: function(C) {
                for (var S = 0; S < m; S++) {
                    var w = l[S];
                    w.__morphT = e.__morphT,
                    w.dirtyShape()
                }
                u && u(C)
            },
            done: function() {
                g();
                for (var C = 0; C < t.length; C++)
                    Yg(t[C], "updateTransform");
                s && s()
            }
        }, n));
    return e.__zr && p(e.__zr),
    {
        fromIndividuals: r,
        toIndividuals: l,
        count: m
    }
}
function Qht(t, e, n) {
    var r = e.length
      , a = []
      , i = n.dividePath || Tfe;
    function o(v) {
        for (var h = 0; h < v.length; h++) {
            var p = v[h];
            vC(p) ? o(p.childrenRef()) : p instanceof jt && a.push(p)
        }
    }
    if (vC(t)) {
        o(t.childrenRef());
        var l = a.length;
        if (l < r)
            for (var s = 0, u = l; u < r; u++)
                a.push(K6(a[s++ % l]));
        a.length = r
    } else {
        a = i({
            path: t,
            count: r
        });
        for (var c = t.getComputedTransform(), u = 0; u < a.length; u++)
            a[u].setLocalTransform(c);
        if (a.length !== r)
            return $k()
    }
    a = pC(a),
    e = pC(e);
    for (var f = n.individualDelay, u = 0; u < r; u++) {
        var d = f ? ot({
            delay: (n.delay || 0) + f(u, r, a[u], e[u])
        }, n) : n;
        BL(a[u], e[u], d)
    }
    return {
        fromIndividuals: a,
        toIndividuals: e,
        count: e.length
    }
}
function wY(t) {
    return ke(t[0])
}
function _Y(t, e) {
    for (var n = [], r = t.length, a = 0; a < r; a++)
        n.push({
            one: t[a],
            many: []
        });
    for (var a = 0; a < e.length; a++) {
        var i = e[a].length
          , o = void 0;
        for (o = 0; o < i; o++)
            n[o % r].many.push(e[a][o])
    }
    for (var l = 0, a = r - 1; a >= 0; a--)
        if (!n[a].many.length) {
            var s = n[l].many;
            if (s.length <= 1)
                if (l)
                    l = 0;
                else
                    return n;
            var i = s.length
              , u = Math.ceil(i / 2);
            n[a].many = s.slice(u, i),
            n[l].many = s.slice(0, u),
            l++
        }
    return n
}
var Jht = {
    clone: function(t) {
        for (var e = [], n = 1 - Math.pow(1 - t.path.style.opacity, 1 / t.count), r = 0; r < t.count; r++) {
            var a = K6(t.path);
            a.setStyle("opacity", n),
            e.push(a)
        }
        return e
    },
    split: null
};
function _3(t, e, n, r, a, i) {
    if (!t.length || !e.length)
        return;
    var o = Ah("update", r, a);
    if (!(o && o.duration > 0))
        return;
    var l = r.getModel("universalTransition").get("delay"), s = Object.assign({
        setToFinal: !0
    }, o), u, c;
    wY(t) && (u = t,
    c = e),
    wY(e) && (u = e,
    c = t);
    function f(m, y, b, x, C) {
        var S = m.many
          , w = m.one;
        if (S.length === 1 && !C) {
            var T = y ? S[0] : w
              , P = y ? w : S[0];
            if (vC(T))
                f({
                    many: [T],
                    one: P
                }, !0, b, x, !0);
            else {
                var M = l ? ot({
                    delay: l(b, x)
                }, s) : s;
                BL(T, P, M),
                i(T, P, T, P, M)
            }
        } else
            for (var A = ot({
                dividePath: Jht[n],
                individualDelay: l && function(N, R, $, W) {
                    return l(N + b, x)
                }
            }, s), O = y ? Zht(S, w, A) : Qht(w, S, A), k = O.fromIndividuals, D = O.toIndividuals, E = k.length, L = 0; L < E; L++) {
                var M = l ? ot({
                    delay: l(L, E)
                }, s) : s;
                i(k[L], D[L], y ? S[L] : m.one, y ? m.one : S[L], M)
            }
    }
    for (var d = u ? u === t : t.length > e.length, v = u ? _Y(c, u) : _Y(d ? e : t, [d ? t : e]), h = 0, p = 0; p < v.length; p++)
        h += v[p].many.length;
    for (var g = 0, p = 0; p < v.length; p++)
        f(v[p], d, g, h),
        g += v[p].many.length
}
function Fc(t) {
    if (!t)
        return [];
    if (ke(t)) {
        for (var e = [], n = 0; n < t.length; n++)
            e.push(Fc(t[n]));
        return e
    }
    var r = [];
    return t.traverse(function(a) {
        a instanceof jt && !a.disableMorphing && !a.invisible && !a.ignore && r.push(a)
    }),
    r
}
var Pfe = 1e4
  , ept = an();
function tpt(t) {
    for (var e = t.dimensions, n = 0; n < e.length; n++) {
        var r = t.getDimensionInfo(e[n]);
        if (r && r.otherDims.itemGroupId === 0)
            return e[n]
    }
}
function TY(t) {
    var e = [];
    return Z(t, function(n) {
        var r = n.data;
        if (!(r.count() > Pfe))
            for (var a = r.getIndices(), i = tpt(r), o = 0; o < a.length; o++)
                e.push({
                    dataGroupId: n.dataGroupId,
                    data: r,
                    dim: n.dim || i,
                    divide: n.divide,
                    dataIndex: o
                })
    }),
    e
}
function T3(t, e, n) {
    t.traverse(function(r) {
        r instanceof jt && $n(r, {
            style: {
                opacity: 0
            }
        }, e, {
            dataIndex: n,
            isFrom: !0
        })
    })
}
function P3(t) {
    if (t.parent) {
        var e = t.getComputedTransform();
        t.setLocalTransform(e),
        t.parent.remove(t)
    }
}
function Fd(t) {
    t.stopAnimation(),
    t.isGroup && t.traverse(function(e) {
        e.stopAnimation()
    })
}
function npt(t, e, n) {
    var r = Ah("update", n, e);
    r && t.traverse(function(a) {
        if (a instanceof ji) {
            var i = wUe(a);
            i && a.animateFrom({
                style: i
            }, r)
        }
    })
}
function rpt(t, e) {
    var n = t.length;
    if (n !== e.length)
        return !1;
    for (var r = 0; r < n; r++) {
        var a = t[r]
          , i = e[r];
        if (a.data.getId(a.dataIndex) !== i.data.getId(i.dataIndex))
            return !1
    }
    return !0
}
function Mfe(t, e, n) {
    var r = TY(t)
      , a = TY(e);
    function i(m, y, b, x, C) {
        (b || m) && y.animateFrom({
            style: b && b !== m ? Me(Me({}, b.style), m.style) : m.style
        }, C)
    }
    function o(m) {
        for (var y = 0; y < m.length; y++)
            if (m[y].dim)
                return m[y].dim
    }
    var l = o(r)
      , s = o(a)
      , u = !1;
    function c(m, y) {
        return function(b) {
            var x = b.data
              , C = b.dataIndex;
            if (y)
                return x.getId(C);
            var S = b.dataGroupId
              , w = m ? l || s : s || l
              , T = w && x.getDimensionInfo(w)
              , P = T && T.ordinalMeta;
            if (T) {
                var M = x.get(T.name, C);
                return P && P.categories[M] || M + ""
            }
            var A = x.getRawDataItem(C);
            return A && A.groupId ? A.groupId + "" : S || x.getId(C)
        }
    }
    var f = rpt(r, a)
      , d = {};
    if (!f)
        for (var v = 0; v < a.length; v++) {
            var h = a[v]
              , p = h.data.getItemGraphicEl(h.dataIndex);
            p && (d[p.id] = !0)
        }
    function g(m, y) {
        var b = r[y]
          , x = a[m]
          , C = x.data.hostModel
          , S = b.data.getItemGraphicEl(b.dataIndex)
          , w = x.data.getItemGraphicEl(x.dataIndex);
        if (S === w) {
            w && npt(w, x.dataIndex, C);
            return
        }
        S && d[S.id] || w && (Fd(w),
        S ? (Fd(S),
        P3(S),
        u = !0,
        _3(Fc(S), Fc(w), x.divide, C, m, i)) : T3(w, C, m))
    }
    new fs(r,a,c(!0, f),c(!1, f),null,"multiple").update(g).updateManyToOne(function(m, y) {
        var b = a[m]
          , x = b.data
          , C = x.hostModel
          , S = x.getItemGraphicEl(b.dataIndex)
          , w = pn(Le(y, function(T) {
            return r[T].data.getItemGraphicEl(r[T].dataIndex)
        }), function(T) {
            return T && T !== S && !d[T.id]
        });
        S && (Fd(S),
        w.length ? (Z(w, function(T) {
            Fd(T),
            P3(T)
        }),
        u = !0,
        _3(Fc(w), Fc(S), b.divide, C, m, i)) : T3(S, C, b.dataIndex))
    }).updateOneToMany(function(m, y) {
        var b = r[y]
          , x = b.data.getItemGraphicEl(b.dataIndex);
        if (!(x && d[x.id])) {
            var C = pn(Le(m, function(w) {
                return a[w].data.getItemGraphicEl(a[w].dataIndex)
            }), function(w) {
                return w && w !== x
            })
              , S = a[m[0]].data.hostModel;
            C.length && (Z(C, function(w) {
                return Fd(w)
            }),
            x ? (Fd(x),
            P3(x),
            u = !0,
            _3(Fc(x), Fc(C), b.divide, S, m[0], i)) : Z(C, function(w) {
                return T3(w, S, m[0])
            }))
        }
    }).updateManyToMany(function(m, y) {
        new fs(y,m,function(b) {
            return r[b].data.getId(r[b].dataIndex)
        }
        ,function(b) {
            return a[b].data.getId(a[b].dataIndex)
        }
        ).update(function(b, x) {
            g(m[b], y[x])
        }).execute()
    }).execute(),
    u && Z(e, function(m) {
        var y = m.data
          , b = y.hostModel
          , x = b && n.getViewOfSeriesModel(b)
          , C = Ah("update", b, 0);
        x && b.isAnimationEnabled() && C && C.duration > 0 && x.group.traverse(function(S) {
            S instanceof jt && !S.animators.length && S.animateFrom({
                style: {
                    opacity: 0
                }
            }, C)
        })
    })
}
function PY(t) {
    var e = t.getModel("universalTransition").get("seriesKey");
    return e || t.id
}
function MY(t) {
    return ke(t) ? t.sort().join(",") : t
}
function Xs(t) {
    if (t.hostModel)
        return t.hostModel.getModel("universalTransition").get("divideShape")
}
function apt(t, e) {
    var n = Qe()
      , r = Qe()
      , a = Qe();
    return Z(t.oldSeries, function(i, o) {
        var l = t.oldDataGroupIds[o]
          , s = t.oldData[o]
          , u = PY(i)
          , c = MY(u);
        r.set(c, {
            dataGroupId: l,
            data: s
        }),
        ke(u) && Z(u, function(f) {
            a.set(f, {
                key: c,
                dataGroupId: l,
                data: s
            })
        })
    }),
    Z(e.updatedSeries, function(i) {
        if (i.isUniversalTransitionEnabled() && i.isAnimationEnabled()) {
            var o = i.get("dataGroupId")
              , l = i.getData()
              , s = PY(i)
              , u = MY(s)
              , c = r.get(u);
            if (c)
                n.set(u, {
                    oldSeries: [{
                        dataGroupId: c.dataGroupId,
                        divide: Xs(c.data),
                        data: c.data
                    }],
                    newSeries: [{
                        dataGroupId: o,
                        divide: Xs(l),
                        data: l
                    }]
                });
            else if (ke(s)) {
                var f = [];
                Z(s, function(h) {
                    var p = r.get(h);
                    p.data && f.push({
                        dataGroupId: p.dataGroupId,
                        divide: Xs(p.data),
                        data: p.data
                    })
                }),
                f.length && n.set(u, {
                    oldSeries: f,
                    newSeries: [{
                        dataGroupId: o,
                        data: l,
                        divide: Xs(l)
                    }]
                })
            } else {
                var d = a.get(s);
                if (d) {
                    var v = n.get(d.key);
                    v || (v = {
                        oldSeries: [{
                            dataGroupId: d.dataGroupId,
                            data: d.data,
                            divide: Xs(d.data)
                        }],
                        newSeries: []
                    },
                    n.set(d.key, v)),
                    v.newSeries.push({
                        dataGroupId: o,
                        data: l,
                        divide: Xs(l)
                    })
                }
            }
        }
    }),
    n
}
function AY(t, e) {
    for (var n = 0; n < t.length; n++) {
        var r = e.seriesIndex != null && e.seriesIndex === t[n].seriesIndex || e.seriesId != null && e.seriesId === t[n].id;
        if (r)
            return n
    }
}
function ipt(t, e, n, r) {
    var a = []
      , i = [];
    Z(_n(t.from), function(o) {
        var l = AY(e.oldSeries, o);
        l >= 0 && a.push({
            dataGroupId: e.oldDataGroupIds[l],
            data: e.oldData[l],
            divide: Xs(e.oldData[l]),
            dim: o.dimension
        })
    }),
    Z(_n(t.to), function(o) {
        var l = AY(n.updatedSeries, o);
        if (l >= 0) {
            var s = n.updatedSeries[l].getData();
            i.push({
                dataGroupId: e.oldDataGroupIds[l],
                data: s,
                divide: Xs(s),
                dim: o.dimension
            })
        }
    }),
    a.length > 0 && i.length > 0 && Mfe(a, i, r)
}
function opt(t) {
    t.registerUpdateLifecycle("series:beforeupdate", function(e, n, r) {
        Z(_n(r.seriesTransition), function(a) {
            Z(_n(a.to), function(i) {
                for (var o = r.updatedSeries, l = 0; l < o.length; l++)
                    (i.seriesIndex != null && i.seriesIndex === o[l].seriesIndex || i.seriesId != null && i.seriesId === o[l].id) && (o[l][fx] = !0)
            })
        })
    }),
    t.registerUpdateLifecycle("series:transition", function(e, n, r) {
        var a = ept(n);
        if (a.oldSeries && r.updatedSeries && r.optionChanged) {
            var i = r.seriesTransition;
            if (i)
                Z(_n(i), function(v) {
                    ipt(v, a, r, n)
                });
            else {
                var o = apt(a, r);
                Z(o.keys(), function(v) {
                    var h = o.get(v);
                    Mfe(h.oldSeries, h.newSeries, n)
                })
            }
            Z(r.updatedSeries, function(v) {
                v[fx] && (v[fx] = !1)
            })
        }
        for (var l = e.getSeries(), s = a.oldSeries = [], u = a.oldDataGroupIds = [], c = a.oldData = [], f = 0; f < l.length; f++) {
            var d = l[f].getData();
            d.count() < Pfe && (s.push(l[f]),
            u.push(l[f].get("dataGroupId")),
            c.push(d))
        }
    })
}
Bt([SJe]);
Bt([hJe]);
Bt([GJe, cet, _et, ftt, Att, Cnt, Jnt, Brt, vat, Cat, Eat, $it, cot, wot, jot, Xot, hlt, _lt, $lt, Glt, ast, jst]);
Bt(dut);
Bt(Kut);
Bt(Cue);
Bt(uct);
Bt(sce);
Bt(gct);
Bt(Tct);
Bt(Pft);
Bt(qft);
Bt(fy);
Bt(pdt);
Bt(ydt);
Bt(Edt);
Bt(jdt);
Bt(Zdt);
Bt(ivt);
Bt(bvt);
Bt(zvt);
Bt(vfe);
Bt(hfe);
Bt(hht);
Bt(bfe);
Bt(xfe);
Bt(bht);
Bt(Dht);
Bt(Rht);
Bt(opt);
Bt(LQe);
const rgt = Object.freeze(Object.defineProperty({
    __proto__: null,
    registerLocale: e5,
    version: mXe,
    dependencies: yXe,
    PRIORITY: Ale,
    init: RXe,
    connect: NXe,
    disconnect: Nle,
    disConnect: $Xe,
    dispose: FXe,
    getInstanceByDom: _5,
    getInstanceById: BXe,
    registerTheme: T5,
    registerPreprocessor: P5,
    registerProcessor: M5,
    registerPostInit: $le,
    registerPostUpdate: Fle,
    registerUpdateLifecycle: w2,
    registerAction: Oo,
    registerCoordinateSystem: Ble,
    getCoordinateSystemDimensions: VXe,
    registerLayout: Vle,
    registerVisual: qu,
    registerLoading: I5,
    setCanvasCreator: zXe,
    registerMap: zle,
    getMap: HXe,
    registerTransform: Hle,
    dataTool: jXe,
    throttle: S2,
    use: Bt,
    setPlatformAPI: pae,
    parseGeoJSON: XI,
    parseGeoJson: XI,
    env: nn,
    Model: wn,
    Axis: Yi,
    innerDrawElementOnCanvas: x5,
    zrender: pGe,
    matrix: rWe,
    vector: zje,
    zrUtil: Lje,
    color: OWe,
    helper: XZe,
    number: nQe,
    time: rQe,
    graphic: aQe,
    format: iQe,
    util: oQe,
    List: oa,
    ComponentModel: qt,
    ComponentView: Bn,
    SeriesModel: En,
    ChartView: Tn,
    extendComponentModel: mQe,
    extendComponentView: yQe,
    extendSeriesModel: bQe,
    extendChartView: xQe
}, Symbol.toStringTag, {
    value: "Module"
}));

function encryptByAES(a) {
    return xpt.AES.encrypt(a, "NsFoCus$#").toString()
}

function decryptByAES(a) {
     return xpt.AES.decrypt(a, "NsFoCus$#").toString(mpt)
}