!function (e, t) {
  'object' == typeof exports && 'undefined' != typeof module ? t(exports) : 'function' == typeof define && define.amd ? define(['exports'], t) : t((e = 'undefined' != typeof globalThis ? globalThis : e || self).wangEditor = {});
}(this, (function (e) {
  'use strict';
  var t = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof window ? window : 'undefined' != typeof global ? global : 'undefined' != typeof self ? self : {};

  function n(e) {
    return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, 'default') ? e.default : e;
  }

  function r(e) {
    var t = { exports: {} };
    return e(t, t.exports), t.exports;
  }

  var o,
    i,
    a = function (e) {
      return e && e.Math == Math && e;
    },
    u = a('object' == typeof globalThis && globalThis) || a('object' == typeof window && window) || a('object' == typeof self && self) || a('object' == typeof t && t) || function () {
      return this;
    }() || Function('return this')(),
    s = Function.prototype,
    l = s.apply,
    c = s.bind,
    f = s.call,
    d = 'object' == typeof Reflect && Reflect.apply || (c ? f.bind(l) : function () {
      return f.apply(l, arguments);
    }),
    p = Function.prototype,
    h = p.bind,
    v = p.call,
    g = h && h.bind(v),
    y = h ? function (e) {
      return e && g(v, e);
    } : function (e) {
      return e && function () {
        return v.apply(e, arguments);
      };
    },
    m = function (e) {
      return 'function' == typeof e;
    },
    b = function (e) {
      try {
        return !!e();
      } catch (e) {
        return !0;
      }
    },
    w = !b((function () {
      return 7 != Object.defineProperty({}, 1, {
        get: function () {
          return 7;
        }
      })[1];
    })),
    E = Function.prototype.call,
    D = E.bind ? E.bind(E) : function () {
      return E.apply(E, arguments);
    },
    x = {}.propertyIsEnumerable,
    S = Object.getOwnPropertyDescriptor,
    C = {
      f: S && !x.call({ 1: 2 }, 1) ? function (e) {
        var t = S(this, e);
        return !!t && t.enumerable;
      } : x
    },
    A = function (e, t) {
      return {
        enumerable: !(1 & e),
        configurable: !(2 & e),
        writable: !(4 & e),
        value: t
      };
    },
    O = y({}.toString),
    k = y(''.slice),
    T = function (e) {
      return k(O(e), 8, -1);
    },
    B = u.Object,
    F = y(''.split),
    _ = b((function () {
      return !B('z')
        .propertyIsEnumerable(0);
    })) ? function (e) {
      return 'String' == T(e) ? F(e, '') : B(e);
    } : B,
    P = u.TypeError,
    j = function (e) {
      if (null == e) throw P('Can\'t call method on ' + e);
      return e;
    },
    N = function (e) {
      return _(j(e));
    },
    I = function (e) {
      return 'object' == typeof e ? null !== e : m(e);
    },
    R = {},
    M = function (e) {
      return m(e) ? e : void 0;
    },
    L = function (e, t) {
      return arguments.length < 2 ? M(R[e]) || M(u[e]) : R[e] && R[e][t] || u[e] && u[e][t];
    },
    z = y({}.isPrototypeOf),
    $ = L('navigator', 'userAgent') || '',
    H = u.process,
    V = u.Deno,
    U = H && H.versions || V && V.version,
    W = U && U.v8;
  W && (i = (o = W.split('.'))[0] > 0 && o[0] < 4 ? 1 : +(o[0] + o[1])), !i && $ && (!(o = $.match(/Edge\/(\d+)/)) || o[1] >= 74) && (o = $.match(/Chrome\/(\d+)/)) && (i = +o[1]);
  var G,
    q = i,
    K = !!Object.getOwnPropertySymbols && !b((function () {
      var e = Symbol();
      return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && q && q < 41;
    })),
    Y = K && !Symbol.sham && 'symbol' == typeof Symbol.iterator,
    X = u.Object,
    Z = Y ? function (e) {
      return 'symbol' == typeof e;
    } : function (e) {
      var t = L('Symbol');
      return m(t) && z(t.prototype, X(e));
    },
    J = u.String,
    Q = function (e) {
      try {
        return J(e);
      } catch (e) {
        return 'Object';
      }
    },
    ee = u.TypeError,
    te = function (e) {
      if (m(e)) return e;
      throw ee(Q(e) + ' is not a function');
    },
    ne = function (e, t) {
      var n = e[t];
      return null == n ? void 0 : te(n);
    },
    re = u.TypeError,
    oe = Object.defineProperty,
    ie = '__core-js_shared__',
    ae = u[ie] || function (e, t) {
      try {
        oe(u, e, {
          value: t,
          configurable: !0,
          writable: !0
        });
      } catch (n) {
        u[e] = t;
      }
      return t;
    }(ie, {}),
    ue = ae,
    se = r((function (e) {
      (e.exports = function (e, t) {
        return ue[e] || (ue[e] = void 0 !== t ? t : {});
      })('versions', [])
        .push({
          version: '3.19.3',
          mode: 'pure',
          copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
        });
    })),
    le = u.Object,
    ce = function (e) {
      return le(j(e));
    },
    fe = y({}.hasOwnProperty),
    de = Object.hasOwn || function (e, t) {
      return fe(ce(e), t);
    },
    pe = 0,
    he = Math.random(),
    ve = y(1..toString),
    ge = function (e) {
      return 'Symbol(' + (void 0 === e ? '' : e) + ')_' + ve(++pe + he, 36);
    },
    ye = se('wks'),
    me = u.Symbol,
    be = me && me.for,
    we = Y ? me : me && me.withoutSetter || ge,
    Ee = function (e) {
      if (!de(ye, e) || !K && 'string' != typeof ye[e]) {
        var t = 'Symbol.' + e;
        K && de(me, e) ? ye[e] = me[e] : ye[e] = Y && be ? be(t) : we(t);
      }
      return ye[e];
    },
    De = u.TypeError,
    xe = Ee('toPrimitive'),
    Se = function (e, t) {
      if (!I(e) || Z(e)) return e;
      var n,
        r = ne(e, xe);
      if (r) {
        if (void 0 === t && (t = 'default'), n = D(r, e, t), !I(n) || Z(n)) return n;
        throw De('Can\'t convert object to primitive value');
      }
      return void 0 === t && (t = 'number'), function (e, t) {
        var n,
          r;
        if ('string' === t && m(n = e.toString) && !I(r = D(n, e))) return r;
        if (m(n = e.valueOf) && !I(r = D(n, e))) return r;
        if ('string' !== t && m(n = e.toString) && !I(r = D(n, e))) return r;
        throw re('Can\'t convert object to primitive value');
      }(e, t);
    },
    Ce = function (e) {
      var t = Se(e, 'string');
      return Z(t) ? t : t + '';
    },
    Ae = u.document,
    Oe = I(Ae) && I(Ae.createElement),
    ke = function (e) {
      return Oe ? Ae.createElement(e) : {};
    },
    Te = !w && !b((function () {
      return 7 != Object.defineProperty(ke('div'), 'a', {
        get: function () {
          return 7;
        }
      }).a;
    })),
    Be = Object.getOwnPropertyDescriptor,
    Fe = {
      f: w ? Be : function (e, t) {
        if (e = N(e), t = Ce(t), Te) {
          try {
            return Be(e, t);
          } catch (e) {
          }
        }
        if (de(e, t)) return A(!D(C.f, e, t), e[t]);
      }
    },
    _e = /#|\.prototype\./,
    Pe = function (e, t) {
      var n = Ne[je(e)];
      return n == Re || n != Ie && (m(t) ? b(t) : !!t);
    },
    je = Pe.normalize = function (e) {
      return String(e)
        .replace(_e, '.')
        .toLowerCase();
    },
    Ne = Pe.data = {},
    Ie = Pe.NATIVE = 'N',
    Re = Pe.POLYFILL = 'P',
    Me = Pe,
    Le = y(y.bind),
    ze = function (e, t) {
      return te(e), void 0 === t ? e : Le ? Le(e, t) : function () {
        return e.apply(t, arguments);
      };
    },
    $e = u.String,
    He = u.TypeError,
    Ve = function (e) {
      if (I(e)) return e;
      throw He($e(e) + ' is not an object');
    },
    Ue = u.TypeError,
    We = Object.defineProperty,
    Ge = {
      f: w ? We : function (e, t, n) {
        if (Ve(e), t = Ce(t), Ve(n), Te) {
          try {
            return We(e, t, n);
          } catch (e) {
          }
        }
        if ('get' in n || 'set' in n) throw Ue('Accessors not supported');
        return 'value' in n && (e[t] = n.value), e;
      }
    },
    qe = w ? function (e, t, n) {
      return Ge.f(e, t, A(1, n));
    } : function (e, t, n) {
      return e[t] = n, e;
    },
    Ke = Fe.f,
    Ye = function (e) {
      var t = function (n, r, o) {
        if (this instanceof t) {
          switch (arguments.length) {
            case 0:
              return new e;
            case 1:
              return new e(n);
            case 2:
              return new e(n, r);
          }
          return new e(n, r, o);
        }
        return d(e, this, arguments);
      };
      return t.prototype = e.prototype, t;
    },
    Xe = function (e, t) {
      var n,
        r,
        o,
        i,
        a,
        s,
        l,
        c,
        f = e.target,
        d = e.global,
        p = e.stat,
        h = e.proto,
        v = d ? u : p ? u[f] : (u[f] || {}).prototype,
        g = d ? R : R[f] || qe(R, f, {})[f],
        b = g.prototype;
      for (o in t) n = !Me(d ? o : f + (p ? '.' : '#') + o, e.forced) && v && de(v, o), a = g[o], n && (s = e.noTargetGet ? (c = Ke(v, o)) && c.value : v[o]), i = n && s ? s : t[o], n && typeof a == typeof i || (l = e.bind && n ? ze(i, u) : e.wrap && n ? Ye(i) : h && m(i) ? y(i) : i, (e.sham || i && i.sham || a && a.sham) && qe(l, 'sham', !0), qe(g, o, l), h && (de(R, r = f + 'Prototype') || qe(R, r, {}), qe(R[r], o, i), e.real && b && !b[o] && qe(b, o, i)));
    },
    Ze = se('keys'),
    Je = function (e) {
      return Ze[e] || (Ze[e] = ge(e));
    },
    Qe = !b((function () {
      function e() {
      }

      return e.prototype.constructor = null, Object.getPrototypeOf(new e) !== e.prototype;
    })),
    et = Je('IE_PROTO'),
    tt = u.Object,
    nt = tt.prototype,
    rt = Qe ? tt.getPrototypeOf : function (e) {
      var t = ce(e);
      if (de(t, et)) return t[et];
      var n = t.constructor;
      return m(n) && t instanceof n ? n.prototype : t instanceof tt ? nt : null;
    },
    ot = u.String,
    it = u.TypeError,
    at = Object.setPrototypeOf || ('__proto__' in {} ? function () {
      var e,
        t = !1,
        n = {};
      try {
        (e = y(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set))(n, []), t = n instanceof Array;
      } catch (e) {
      }
      return function (n, r) {
        return Ve(n), function (e) {
          if ('object' == typeof e || m(e)) return e;
          throw it('Can\'t set ' + ot(e) + ' as a prototype');
        }(r), t ? e(n, r) : n.__proto__ = r, n;
      };
    }() : void 0),
    ut = Math.ceil,
    st = Math.floor,
    lt = function (e) {
      var t = +e;
      return t != t || 0 === t ? 0 : (t > 0 ? st : ut)(t);
    },
    ct = Math.max,
    ft = Math.min,
    dt = function (e, t) {
      var n = lt(e);
      return n < 0 ? ct(n + t, 0) : ft(n, t);
    },
    pt = Math.min,
    ht = function (e) {
      return (t = e.length) > 0 ? pt(lt(t), 9007199254740991) : 0;
      var t;
    },
    vt = function (e) {
      return function (t, n, r) {
        var o,
          i = N(t),
          a = ht(i),
          u = dt(r, a);
        if (e && n != n) {
          for (; a > u;) if ((o = i[u++]) != o) return !0;
        } else {
          for (; a > u; u++) if ((e || u in i) && i[u] === n) return e || u || 0;
        }
        return !e && -1;
      };
    },
    gt = {
      includes: vt(!0),
      indexOf: vt(!1)
    },
    yt = {},
    mt = gt.indexOf,
    bt = y([].push),
    wt = function (e, t) {
      var n,
        r = N(e),
        o = 0,
        i = [];
      for (n in r) !de(yt, n) && de(r, n) && bt(i, n);
      for (; t.length > o;) de(r, n = t[o++]) && (~mt(i, n) || bt(i, n));
      return i;
    },
    Et = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'],
    Dt = Et.concat('length', 'prototype'),
    xt = {
      f: Object.getOwnPropertyNames || function (e) {
        return wt(e, Dt);
      }
    },
    St = { f: Object.getOwnPropertySymbols },
    Ct = y([].concat),
    At = L('Reflect', 'ownKeys') || function (e) {
      var t = xt.f(Ve(e)),
        n = St.f;
      return n ? Ct(t, n(e)) : t;
    },
    Ot = Object.keys || function (e) {
      return wt(e, Et);
    },
    kt = w ? Object.defineProperties : function (e, t) {
      Ve(e);
      for (var n, r = N(t), o = Ot(t), i = o.length, a = 0; i > a;) Ge.f(e, n = o[a++], r[n]);
      return e;
    },
    Tt = L('document', 'documentElement'),
    Bt = Je('IE_PROTO'),
    Ft = function () {
    },
    _t = function (e) {
      return '<script>' + e + '</' + 'script>';
    },
    Pt = function (e) {
      e.write(_t('')), e.close();
      var t = e.parentWindow.Object;
      return e = null, t;
    },
    jt = function () {
      try {
        G = new ActiveXObject('htmlfile');
      } catch (e) {
      }
      var e,
        t;
      jt = 'undefined' != typeof document ? document.domain && G ? Pt(G) : ((t = ke('iframe')).style.display = 'none', Tt.appendChild(t), t.src = String('javascript:'), (e = t.contentWindow.document).open(), e.write(_t('document.F=Object')), e.close(), e.F) : Pt(G);
      for (var n = Et.length; n--;) delete jt.prototype[Et[n]];
      return jt();
    };
  yt[Bt] = !0;
  var Nt = Object.create || function (e, t) {
      var n;
      return null !== e ? (Ft.prototype = Ve(e), n = new Ft, Ft.prototype = null, n[Bt] = e) : n = jt(), void 0 === t ? n : kt(n, t);
    },
    It = function (e, t, n) {
      var r = Ce(t);
      r in e ? Ge.f(e, r, A(0, n)) : e[r] = n;
    },
    Rt = u.Array,
    Mt = Math.max,
    Lt = function (e, t, n) {
      for (var r = ht(e), o = dt(t, r), i = dt(void 0 === n ? r : n, r), a = Rt(Mt(i - o, 0)), u = 0; o < i; o++, u++) It(a, u, e[o]);
      return a.length = u, a;
    },
    zt = y(''.replace),
    $t = y(''.split),
    Ht = y([].join),
    Vt = String(Error('zxcasd').stack),
    Ut = /\n\s*at [^:]*:[^\n]*/,
    Wt = Ut.test(Vt),
    Gt = /@[^\n]*\n/.test(Vt) && !/zxcasd/.test(Vt),
    qt = function (e, t) {
      if ('string' != typeof e) return e;
      if (Wt) for (; t--;) e = zt(e, Ut, ''); else if (Gt) return Ht(Lt($t(e, '\n'), t), '\n');
      return e;
    },
    Kt = function (e, t) {
      I(t) && 'cause' in t && qe(e, 'cause', t.cause);
    },
    Yt = {},
    Xt = Ee('iterator'),
    Zt = Array.prototype,
    Jt = {};
  Jt[Ee('toStringTag')] = 'z';
  var Qt = '[object z]' === String(Jt),
    en = Ee('toStringTag'),
    tn = u.Object,
    nn = 'Arguments' == T(function () {
      return arguments;
    }()),
    rn = Qt ? T : function (e) {
      var t,
        n,
        r;
      return void 0 === e ? 'Undefined' : null === e ? 'Null' : 'string' == typeof (n = function (e, t) {
        try {
          return e[t];
        } catch (e) {
        }
      }(t = tn(e), en)) ? n : nn ? T(t) : 'Object' == (r = T(t)) && m(t.callee) ? 'Arguments' : r;
    },
    on = Ee('iterator'),
    an = function (e) {
      if (null != e) return ne(e, on) || ne(e, '@@iterator') || Yt[rn(e)];
    },
    un = u.TypeError,
    sn = function (e, t, n) {
      var r,
        o;
      Ve(e);
      try {
        if (!(r = ne(e, 'return'))) {
          if ('throw' === t) throw n;
          return n;
        }
        r = D(r, e);
      } catch (e) {
        o = !0, r = e;
      }
      if ('throw' === t) throw n;
      if (o) throw r;
      return Ve(r), n;
    },
    ln = u.TypeError,
    cn = function (e, t) {
      this.stopped = e, this.result = t;
    },
    fn = cn.prototype,
    dn = function (e, t, n) {
      var r,
        o,
        i,
        a,
        u,
        s,
        l,
        c,
        f = n && n.that,
        d = !(!n || !n.AS_ENTRIES),
        p = !(!n || !n.IS_ITERATOR),
        h = !(!n || !n.INTERRUPTED),
        v = ze(t, f),
        g = function (e) {
          return r && sn(r, 'normal', e), new cn(!0, e);
        },
        y = function (e) {
          return d ? (Ve(e), h ? v(e[0], e[1], g) : v(e[0], e[1])) : h ? v(e, g) : v(e);
        };
      if (p) {
        r = e;
      } else {
        if (!(o = an(e))) throw ln(Q(e) + ' is not iterable');
        if (void 0 !== (c = o) && (Yt.Array === c || Zt[Xt] === c)) {
          for (i = 0, a = ht(e); a > i; i++) if ((u = y(e[i])) && z(fn, u)) return u;
          return new cn(!1);
        }
        r = function (e, t) {
          var n = arguments.length < 2 ? an(e) : t;
          if (te(n)) return Ve(D(n, e));
          throw un(Q(e) + ' is not iterable');
        }(e, o);
      }
      for (s = r.next; !(l = D(s, r)).done;) {
        try {
          u = y(l.value);
        } catch (e) {
          sn(r, 'throw', e);
        }
        if ('object' == typeof u && u && z(fn, u)) return u;
      }
      return new cn(!1);
    },
    pn = u.String,
    hn = function (e) {
      if ('Symbol' === rn(e)) throw TypeError('Cannot convert a Symbol value to a string');
      return pn(e);
    },
    vn = function (e, t) {
      return void 0 === e ? arguments.length < 2 ? '' : t : hn(e);
    },
    gn = !b((function () {
      var e = Error('a');
      return !('stack' in e) || (Object.defineProperty(e, 'stack', A(1, 7)), 7 !== e.stack);
    })),
    yn = Ee('toStringTag'),
    mn = u.Error,
    bn = [].push,
    wn = function (e, t) {
      var n,
        r = arguments.length > 2 ? arguments[2] : void 0,
        o = z(En, this);
      at ? n = at(new mn(void 0), o ? rt(this) : En) : (n = o ? this : Nt(En), qe(n, yn, 'Error')), qe(n, 'message', vn(t, '')), gn && qe(n, 'stack', qt(n.stack, 1)), Kt(n, r);
      var i = [];
      return dn(e, bn, { that: i }), qe(n, 'errors', i), n;
    };
  at ? at(wn, mn) : function (e, t) {
    for (var n = At(t), r = Ge.f, o = Fe.f, i = 0; i < n.length; i++) {
      var a = n[i];
      de(e, a) || r(e, a, o(t, a));
    }
  }(wn, mn);
  var En = wn.prototype = Nt(mn.prototype, {
    constructor: A(1, wn),
    message: A(1, ''),
    name: A(1, 'AggregateError')
  });
  Xe({ global: !0 }, { AggregateError: wn });
  var Dn = y(Function.toString);
  m(ue.inspectSource) || (ue.inspectSource = function (e) {
    return Dn(e);
  });
  var xn,
    Sn,
    Cn,
    An = ue.inspectSource,
    On = u.WeakMap,
    kn = m(On) && /native code/.test(An(On)),
    Tn = 'Object already initialized',
    Bn = u.TypeError,
    Fn = u.WeakMap;
  if (kn || ue.state) {
    var _n = ue.state || (ue.state = new Fn),
      Pn = y(_n.get),
      jn = y(_n.has),
      Nn = y(_n.set);
    xn = function (e, t) {
      if (jn(_n, e)) throw new Bn(Tn);
      return t.facade = e, Nn(_n, e, t), t;
    }, Sn = function (e) {
      return Pn(_n, e) || {};
    }, Cn = function (e) {
      return jn(_n, e);
    };
  } else {
    var In = Je('state');
    yt[In] = !0, xn = function (e, t) {
      if (de(e, In)) throw new Bn(Tn);
      return t.facade = e, qe(e, In, t), t;
    }, Sn = function (e) {
      return de(e, In) ? e[In] : {};
    }, Cn = function (e) {
      return de(e, In);
    };
  }
  var Rn,
    Mn,
    Ln,
    zn = {
      set: xn,
      get: Sn,
      has: Cn,
      enforce: function (e) {
        return Cn(e) ? Sn(e) : xn(e, {});
      },
      getterFor: function (e) {
        return function (t) {
          var n;
          if (!I(t) || (n = Sn(t)).type !== e) throw Bn('Incompatible receiver, ' + e + ' required');
          return n;
        };
      }
    },
    $n = Function.prototype,
    Hn = w && Object.getOwnPropertyDescriptor,
    Vn = de($n, 'name'),
    Un = {
      EXISTS: Vn,
      PROPER: Vn && 'something' === function () {
      }.name,
      CONFIGURABLE: Vn && (!w || w && Hn($n, 'name').configurable)
    },
    Wn = function (e, t, n, r) {
      r && r.enumerable ? e[t] = n : qe(e, t, n);
    },
    Gn = Ee('iterator'),
    qn = !1;
  [].keys && ('next' in (Ln = [].keys()) ? (Mn = rt(rt(Ln))) !== Object.prototype && (Rn = Mn) : qn = !0);
  var Kn = null == Rn || b((function () {
    var e = {};
    return Rn[Gn].call(e) !== e;
  }));
  Rn = Kn ? {} : Nt(Rn), m(Rn[Gn]) || Wn(Rn, Gn, (function () {
    return this;
  }));
  var Yn = {
      IteratorPrototype: Rn,
      BUGGY_SAFARI_ITERATORS: qn
    },
    Xn = Qt ? {}.toString : function () {
      return '[object ' + rn(this) + ']';
    },
    Zn = Ge.f,
    Jn = Ee('toStringTag'),
    Qn = function (e, t, n, r) {
      if (e) {
        var o = n ? e : e.prototype;
        de(o, Jn) || Zn(o, Jn, {
          configurable: !0,
          value: t
        }), r && !Qt && qe(o, 'toString', Xn);
      }
    },
    er = Yn.IteratorPrototype,
    tr = function () {
      return this;
    },
    nr = Un.PROPER,
    rr = Yn.BUGGY_SAFARI_ITERATORS,
    or = Ee('iterator'),
    ir = 'keys',
    ar = 'values',
    ur = 'entries',
    sr = function () {
      return this;
    },
    lr = function (e, t, n, r, o, i, a) {
      !function (e, t, n, r) {
        var o = t + ' Iterator';
        e.prototype = Nt(er, { next: A(+!r, n) }), Qn(e, o, !1, !0), Yt[o] = tr;
      }(n, t, r);
      var u,
        s,
        l,
        c = function (e) {
          if (e === o && v) return v;
          if (!rr && e in p) return p[e];
          switch (e) {
            case ir:
            case ar:
            case ur:
              return function () {
                return new n(this, e);
              };
          }
          return function () {
            return new n(this);
          };
        },
        f = t + ' Iterator',
        d = !1,
        p = e.prototype,
        h = p[or] || p['@@iterator'] || o && p[o],
        v = !rr && h || c(o),
        g = 'Array' == t && p.entries || h;
      if (g && (u = rt(g.call(new e))) !== Object.prototype && u.next && (Qn(u, f, !0, !0), Yt[f] = sr), nr && o == ar && h && h.name !== ar && (d = !0, v = function () {
        return D(h, this);
      }), o) {
        if (s = {
          values: c(ar),
          keys: i ? v : c(ir),
          entries: c(ur)
        }, a) {
          for (l in s) (rr || d || !(l in p)) && Wn(p, l, s[l]);
        } else {
          Xe({
            target: t,
            proto: !0,
            forced: rr || d
          }, s);
        }
      }
      return a && p[or] !== v && Wn(p, or, v, { name: o }), Yt[t] = v, s;
    },
    cr = 'Array Iterator',
    fr = zn.set,
    dr = zn.getterFor(cr);
  lr(Array, 'Array', (function (e, t) {
    fr(this, {
      type: cr,
      target: N(e),
      index: 0,
      kind: t
    });
  }), (function () {
    var e = dr(this),
      t = e.target,
      n = e.kind,
      r = e.index++;
    return !t || r >= t.length ? (e.target = void 0, {
      value: void 0,
      done: !0
    }) : 'keys' == n ? {
      value: r,
      done: !1
    } : 'values' == n ? {
      value: t[r],
      done: !1
    } : {
      value: [r, t[r]],
      done: !1
    };
  }), 'values'), Yt.Arguments = Yt.Array;
  var pr = y(''.charAt),
    hr = y(''.charCodeAt),
    vr = y(''.slice),
    gr = function (e) {
      return function (t, n) {
        var r,
          o,
          i = hn(j(t)),
          a = lt(n),
          u = i.length;
        return a < 0 || a >= u ? e ? '' : void 0 : (r = hr(i, a)) < 55296 || r > 56319 || a + 1 === u || (o = hr(i, a + 1)) < 56320 || o > 57343 ? e ? pr(i, a) : r : e ? vr(i, a, a + 2) : o - 56320 + (r - 55296 << 10) + 65536;
      };
    },
    yr = {
      codeAt: gr(!1),
      charAt: gr(!0)
    }.charAt,
    mr = 'String Iterator',
    br = zn.set,
    wr = zn.getterFor(mr);
  lr(String, 'String', (function (e) {
    br(this, {
      type: mr,
      string: hn(e),
      index: 0
    });
  }), (function () {
    var e,
      t = wr(this),
      n = t.string,
      r = t.index;
    return r >= n.length ? {
      value: void 0,
      done: !0
    } : (e = yr(n, r), t.index += e.length, {
      value: e,
      done: !1
    });
  }));
  var Er = R.AggregateError,
    Dr = Ee('toStringTag');
  for (var xr in {
    CSSRuleList: 0,
    CSSStyleDeclaration: 0,
    CSSValueList: 0,
    ClientRectList: 0,
    DOMRectList: 0,
    DOMStringList: 0,
    DOMTokenList: 1,
    DataTransferItemList: 0,
    FileList: 0,
    HTMLAllCollection: 0,
    HTMLCollection: 0,
    HTMLFormElement: 0,
    HTMLSelectElement: 0,
    MediaList: 0,
    MimeTypeArray: 0,
    NamedNodeMap: 0,
    NodeList: 1,
    PaintRequestList: 0,
    Plugin: 0,
    PluginArray: 0,
    SVGLengthList: 0,
    SVGNumberList: 0,
    SVGPathSegList: 0,
    SVGPointList: 0,
    SVGStringList: 0,
    SVGTransformList: 0,
    SourceBufferList: 0,
    StyleSheetList: 0,
    TextTrackCueList: 0,
    TextTrackList: 0,
    TouchList: 0
  }) {
    var Sr = u[xr],
      Cr = Sr && Sr.prototype;
    Cr && rn(Cr) !== Dr && qe(Cr, Dr, xr), Yt[xr] = Yt.Array;
  }
  var Ar,
    Or,
    kr = Er,
    Tr = function (e) {
      return e && e.Math == Math && e;
    },
    Br = Tr('object' == typeof globalThis && globalThis) || Tr('object' == typeof window && window) || Tr('object' == typeof self && self) || Tr('object' == typeof t && t) || function () {
      return this;
    }() || Function('return this')(),
    Fr = function (e) {
      try {
        return !!e();
      } catch (e) {
        return !0;
      }
    },
    _r = !Fr((function () {
      return 7 != Object.defineProperty({}, 1, {
        get: function () {
          return 7;
        }
      })[1];
    })),
    Pr = Function.prototype.call,
    jr = Pr.bind ? Pr.bind(Pr) : function () {
      return Pr.apply(Pr, arguments);
    },
    Nr = {}.propertyIsEnumerable,
    Ir = Object.getOwnPropertyDescriptor,
    Rr = {
      f: Ir && !Nr.call({ 1: 2 }, 1) ? function (e) {
        var t = Ir(this, e);
        return !!t && t.enumerable;
      } : Nr
    },
    Mr = function (e, t) {
      return {
        enumerable: !(1 & e),
        configurable: !(2 & e),
        writable: !(4 & e),
        value: t
      };
    },
    Lr = Function.prototype,
    zr = Lr.bind,
    $r = Lr.call,
    Hr = zr && zr.bind($r),
    Vr = zr ? function (e) {
      return e && Hr($r, e);
    } : function (e) {
      return e && function () {
        return $r.apply(e, arguments);
      };
    },
    Ur = Vr({}.toString),
    Wr = Vr(''.slice),
    Gr = function (e) {
      return Wr(Ur(e), 8, -1);
    },
    qr = Br.Object,
    Kr = Vr(''.split),
    Yr = Fr((function () {
      return !qr('z')
        .propertyIsEnumerable(0);
    })) ? function (e) {
      return 'String' == Gr(e) ? Kr(e, '') : qr(e);
    } : qr,
    Xr = Br.TypeError,
    Zr = function (e) {
      if (null == e) throw Xr('Can\'t call method on ' + e);
      return e;
    },
    Jr = function (e) {
      return Yr(Zr(e));
    },
    Qr = function (e) {
      return 'function' == typeof e;
    },
    eo = function (e) {
      return 'object' == typeof e ? null !== e : Qr(e);
    },
    to = function (e) {
      return Qr(e) ? e : void 0;
    },
    no = function (e, t) {
      return arguments.length < 2 ? to(Br[e]) : Br[e] && Br[e][t];
    },
    ro = Vr({}.isPrototypeOf),
    oo = no('navigator', 'userAgent') || '',
    io = Br.process,
    ao = Br.Deno,
    uo = io && io.versions || ao && ao.version,
    so = uo && uo.v8;
  so && (Or = (Ar = so.split('.'))[0] > 0 && Ar[0] < 4 ? 1 : +(Ar[0] + Ar[1])), !Or && oo && (!(Ar = oo.match(/Edge\/(\d+)/)) || Ar[1] >= 74) && (Ar = oo.match(/Chrome\/(\d+)/)) && (Or = +Ar[1]);
  var lo = Or,
    co = !!Object.getOwnPropertySymbols && !Fr((function () {
      var e = Symbol();
      return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && lo && lo < 41;
    })),
    fo = co && !Symbol.sham && 'symbol' == typeof Symbol.iterator,
    po = Br.Object,
    ho = fo ? function (e) {
      return 'symbol' == typeof e;
    } : function (e) {
      var t = no('Symbol');
      return Qr(t) && ro(t.prototype, po(e));
    },
    vo = Br.String,
    go = function (e) {
      try {
        return vo(e);
      } catch (e) {
        return 'Object';
      }
    },
    yo = Br.TypeError,
    mo = function (e) {
      if (Qr(e)) return e;
      throw yo(go(e) + ' is not a function');
    },
    bo = function (e, t) {
      var n = e[t];
      return null == n ? void 0 : mo(n);
    },
    wo = Br.TypeError,
    Eo = Object.defineProperty,
    Do = function (e, t) {
      try {
        Eo(Br, e, {
          value: t,
          configurable: !0,
          writable: !0
        });
      } catch (n) {
        Br[e] = t;
      }
      return t;
    },
    xo = '__core-js_shared__',
    So = Br[xo] || Do(xo, {}),
    Co = r((function (e) {
      (e.exports = function (e, t) {
        return So[e] || (So[e] = void 0 !== t ? t : {});
      })('versions', [])
        .push({
          version: '3.19.3',
          mode: 'global',
          copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
        });
    })),
    Ao = Br.Object,
    Oo = function (e) {
      return Ao(Zr(e));
    },
    ko = Vr({}.hasOwnProperty),
    To = Object.hasOwn || function (e, t) {
      return ko(Oo(e), t);
    },
    Bo = 0,
    Fo = Math.random(),
    _o = Vr(1..toString),
    Po = function (e) {
      return 'Symbol(' + (void 0 === e ? '' : e) + ')_' + _o(++Bo + Fo, 36);
    },
    jo = Co('wks'),
    No = Br.Symbol,
    Io = No && No.for,
    Ro = fo ? No : No && No.withoutSetter || Po,
    Mo = function (e) {
      if (!To(jo, e) || !co && 'string' != typeof jo[e]) {
        var t = 'Symbol.' + e;
        co && To(No, e) ? jo[e] = No[e] : jo[e] = fo && Io ? Io(t) : Ro(t);
      }
      return jo[e];
    },
    Lo = Br.TypeError,
    zo = Mo('toPrimitive'),
    $o = function (e, t) {
      if (!eo(e) || ho(e)) return e;
      var n,
        r = bo(e, zo);
      if (r) {
        if (void 0 === t && (t = 'default'), n = jr(r, e, t), !eo(n) || ho(n)) return n;
        throw Lo('Can\'t convert object to primitive value');
      }
      return void 0 === t && (t = 'number'), function (e, t) {
        var n,
          r;
        if ('string' === t && Qr(n = e.toString) && !eo(r = jr(n, e))) return r;
        if (Qr(n = e.valueOf) && !eo(r = jr(n, e))) return r;
        if ('string' !== t && Qr(n = e.toString) && !eo(r = jr(n, e))) return r;
        throw wo('Can\'t convert object to primitive value');
      }(e, t);
    },
    Ho = function (e) {
      var t = $o(e, 'string');
      return ho(t) ? t : t + '';
    },
    Vo = Br.document,
    Uo = eo(Vo) && eo(Vo.createElement),
    Wo = function (e) {
      return Uo ? Vo.createElement(e) : {};
    },
    Go = !_r && !Fr((function () {
      return 7 != Object.defineProperty(Wo('div'), 'a', {
        get: function () {
          return 7;
        }
      }).a;
    })),
    qo = Object.getOwnPropertyDescriptor,
    Ko = {
      f: _r ? qo : function (e, t) {
        if (e = Jr(e), t = Ho(t), Go) {
          try {
            return qo(e, t);
          } catch (e) {
          }
        }
        if (To(e, t)) return Mr(!jr(Rr.f, e, t), e[t]);
      }
    },
    Yo = Br.String,
    Xo = Br.TypeError,
    Zo = function (e) {
      if (eo(e)) return e;
      throw Xo(Yo(e) + ' is not an object');
    },
    Jo = Br.TypeError,
    Qo = Object.defineProperty,
    ei = {
      f: _r ? Qo : function (e, t, n) {
        if (Zo(e), t = Ho(t), Zo(n), Go) {
          try {
            return Qo(e, t, n);
          } catch (e) {
          }
        }
        if ('get' in n || 'set' in n) throw Jo('Accessors not supported');
        return 'value' in n && (e[t] = n.value), e;
      }
    },
    ti = _r ? function (e, t, n) {
      return ei.f(e, t, Mr(1, n));
    } : function (e, t, n) {
      return e[t] = n, e;
    },
    ni = Vr(Function.toString);
  Qr(So.inspectSource) || (So.inspectSource = function (e) {
    return ni(e);
  });
  var ri,
    oi,
    ii,
    ai = So.inspectSource,
    ui = Br.WeakMap,
    si = Qr(ui) && /native code/.test(ai(ui)),
    li = Co('keys'),
    ci = function (e) {
      return li[e] || (li[e] = Po(e));
    },
    fi = {},
    di = 'Object already initialized',
    pi = Br.TypeError,
    hi = Br.WeakMap;
  if (si || So.state) {
    var vi = So.state || (So.state = new hi),
      gi = Vr(vi.get),
      yi = Vr(vi.has),
      mi = Vr(vi.set);
    ri = function (e, t) {
      if (yi(vi, e)) throw new pi(di);
      return t.facade = e, mi(vi, e, t), t;
    }, oi = function (e) {
      return gi(vi, e) || {};
    }, ii = function (e) {
      return yi(vi, e);
    };
  } else {
    var bi = ci('state');
    fi[bi] = !0, ri = function (e, t) {
      if (To(e, bi)) throw new pi(di);
      return t.facade = e, ti(e, bi, t), t;
    }, oi = function (e) {
      return To(e, bi) ? e[bi] : {};
    }, ii = function (e) {
      return To(e, bi);
    };
  }
  var wi = {
      set: ri,
      get: oi,
      has: ii,
      enforce: function (e) {
        return ii(e) ? oi(e) : ri(e, {});
      },
      getterFor: function (e) {
        return function (t) {
          var n;
          if (!eo(t) || (n = oi(t)).type !== e) throw pi('Incompatible receiver, ' + e + ' required');
          return n;
        };
      }
    },
    Ei = Function.prototype,
    Di = _r && Object.getOwnPropertyDescriptor,
    xi = To(Ei, 'name'),
    Si = {
      EXISTS: xi,
      PROPER: xi && 'something' === function () {
      }.name,
      CONFIGURABLE: xi && (!_r || _r && Di(Ei, 'name').configurable)
    },
    Ci = r((function (e) {
      var t = Si.CONFIGURABLE,
        n = wi.get,
        r = wi.enforce,
        o = String(String)
          .split('String');
      (e.exports = function (e, n, i, a) {
        var u,
          s = !!a && !!a.unsafe,
          l = !!a && !!a.enumerable,
          c = !!a && !!a.noTargetGet,
          f = a && void 0 !== a.name ? a.name : n;
        Qr(i) && ('Symbol(' === String(f)
          .slice(0, 7) && (f = '[' + String(f)
          .replace(/^Symbol\(([^)]*)\)/, '$1') + ']'), (!To(i, 'name') || t && i.name !== f) && ti(i, 'name', f), (u = r(i)).source || (u.source = o.join('string' == typeof f ? f : ''))), e !== Br ? (s ? !c && e[n] && (l = !0) : delete e[n], l ? e[n] = i : ti(e, n, i)) : l ? e[n] = i : Do(n, i);
      })(Function.prototype, 'toString', (function () {
        return Qr(this) && n(this).source || ai(this);
      }));
    })),
    Ai = Math.ceil,
    Oi = Math.floor,
    ki = function (e) {
      var t = +e;
      return t != t || 0 === t ? 0 : (t > 0 ? Oi : Ai)(t);
    },
    Ti = Math.max,
    Bi = Math.min,
    Fi = function (e, t) {
      var n = ki(e);
      return n < 0 ? Ti(n + t, 0) : Bi(n, t);
    },
    _i = Math.min,
    Pi = function (e) {
      return e > 0 ? _i(ki(e), 9007199254740991) : 0;
    },
    ji = function (e) {
      return Pi(e.length);
    },
    Ni = function (e) {
      return function (t, n, r) {
        var o,
          i = Jr(t),
          a = ji(i),
          u = Fi(r, a);
        if (e && n != n) {
          for (; a > u;) if ((o = i[u++]) != o) return !0;
        } else {
          for (; a > u; u++) if ((e || u in i) && i[u] === n) return e || u || 0;
        }
        return !e && -1;
      };
    },
    Ii = {
      includes: Ni(!0),
      indexOf: Ni(!1)
    }.indexOf,
    Ri = Vr([].push),
    Mi = function (e, t) {
      var n,
        r = Jr(e),
        o = 0,
        i = [];
      for (n in r) !To(fi, n) && To(r, n) && Ri(i, n);
      for (; t.length > o;) To(r, n = t[o++]) && (~Ii(i, n) || Ri(i, n));
      return i;
    },
    Li = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'],
    zi = Li.concat('length', 'prototype'),
    $i = {
      f: Object.getOwnPropertyNames || function (e) {
        return Mi(e, zi);
      }
    },
    Hi = { f: Object.getOwnPropertySymbols },
    Vi = Vr([].concat),
    Ui = no('Reflect', 'ownKeys') || function (e) {
      var t = $i.f(Zo(e)),
        n = Hi.f;
      return n ? Vi(t, n(e)) : t;
    },
    Wi = function (e, t) {
      for (var n = Ui(t), r = ei.f, o = Ko.f, i = 0; i < n.length; i++) {
        var a = n[i];
        To(e, a) || r(e, a, o(t, a));
      }
    },
    Gi = /#|\.prototype\./,
    qi = function (e, t) {
      var n = Yi[Ki(e)];
      return n == Zi || n != Xi && (Qr(t) ? Fr(t) : !!t);
    },
    Ki = qi.normalize = function (e) {
      return String(e)
        .replace(Gi, '.')
        .toLowerCase();
    },
    Yi = qi.data = {},
    Xi = qi.NATIVE = 'N',
    Zi = qi.POLYFILL = 'P',
    Ji = qi,
    Qi = Ko.f,
    ea = function (e, t) {
      var n,
        r,
        o,
        i,
        a,
        u = e.target,
        s = e.global,
        l = e.stat;
      if (n = s ? Br : l ? Br[u] || Do(u, {}) : (Br[u] || {}).prototype) {
        for (r in t) {
          if (i = t[r], o = e.noTargetGet ? (a = Qi(n, r)) && a.value : n[r], !Ji(s ? r : u + (l ? '.' : '#') + r, e.forced) && void 0 !== o) {
            if (typeof i == typeof o) continue;
            Wi(i, o);
          }
          (e.sham || o && o.sham) && ti(i, 'sham', !0), Ci(n, r, i, e);
        }
      }
    },
    ta = {};
  ta[Mo('toStringTag')] = 'z';
  var na,
    ra = '[object z]' === String(ta),
    oa = Mo('toStringTag'),
    ia = Br.Object,
    aa = 'Arguments' == Gr(function () {
      return arguments;
    }()),
    ua = ra ? Gr : function (e) {
      var t,
        n,
        r;
      return void 0 === e ? 'Undefined' : null === e ? 'Null' : 'string' == typeof (n = function (e, t) {
        try {
          return e[t];
        } catch (e) {
        }
      }(t = ia(e), oa)) ? n : aa ? Gr(t) : 'Object' == (r = Gr(t)) && Qr(t.callee) ? 'Arguments' : r;
    },
    sa = Br.String,
    la = function (e) {
      if ('Symbol' === ua(e)) throw TypeError('Cannot convert a Symbol value to a string');
      return sa(e);
    },
    ca = function () {
      var e = Zo(this),
        t = '';
      return e.global && (t += 'g'), e.ignoreCase && (t += 'i'), e.multiline && (t += 'm'), e.dotAll && (t += 's'), e.unicode && (t += 'u'), e.sticky && (t += 'y'), t;
    },
    fa = Br.RegExp,
    da = Fr((function () {
      var e = fa('a', 'y');
      return e.lastIndex = 2, null != e.exec('abcd');
    })),
    pa = da || Fr((function () {
      return !fa('a', 'y').sticky;
    })),
    ha = {
      BROKEN_CARET: da || Fr((function () {
        var e = fa('^r', 'gy');
        return e.lastIndex = 2, null != e.exec('str');
      })),
      MISSED_STICKY: pa,
      UNSUPPORTED_Y: da
    },
    va = Object.keys || function (e) {
      return Mi(e, Li);
    },
    ga = _r ? Object.defineProperties : function (e, t) {
      Zo(e);
      for (var n, r = Jr(t), o = va(t), i = o.length, a = 0; i > a;) ei.f(e, n = o[a++], r[n]);
      return e;
    },
    ya = no('document', 'documentElement'),
    ma = ci('IE_PROTO'),
    ba = function () {
    },
    wa = function (e) {
      return '<script>' + e + '</' + 'script>';
    },
    Ea = function (e) {
      e.write(wa('')), e.close();
      var t = e.parentWindow.Object;
      return e = null, t;
    },
    Da = function () {
      try {
        na = new ActiveXObject('htmlfile');
      } catch (e) {
      }
      var e,
        t;
      Da = 'undefined' != typeof document ? document.domain && na ? Ea(na) : ((t = Wo('iframe')).style.display = 'none', ya.appendChild(t), t.src = String('javascript:'), (e = t.contentWindow.document).open(), e.write(wa('document.F=Object')), e.close(), e.F) : Ea(na);
      for (var n = Li.length; n--;) delete Da.prototype[Li[n]];
      return Da();
    };
  fi[ma] = !0;
  var xa,
    Sa,
    Ca = Object.create || function (e, t) {
      var n;
      return null !== e ? (ba.prototype = Zo(e), n = new ba, ba.prototype = null, n[ma] = e) : n = Da(), void 0 === t ? n : ga(n, t);
    },
    Aa = Br.RegExp,
    Oa = Fr((function () {
      var e = Aa('.', 's');
      return !(e.dotAll && e.exec('\n') && 's' === e.flags);
    })),
    ka = Br.RegExp,
    Ta = Fr((function () {
      var e = ka('(?<a>b)', 'g');
      return 'b' !== e.exec('b').groups.a || 'bc' !== 'b'.replace(e, '$<a>c');
    })),
    Ba = wi.get,
    Fa = Co('native-string-replace', String.prototype.replace),
    _a = RegExp.prototype.exec,
    Pa = _a,
    ja = Vr(''.charAt),
    Na = Vr(''.indexOf),
    Ia = Vr(''.replace),
    Ra = Vr(''.slice),
    Ma = (Sa = /b*/g, jr(_a, xa = /a/, 'a'), jr(_a, Sa, 'a'), 0 !== xa.lastIndex || 0 !== Sa.lastIndex),
    La = ha.BROKEN_CARET,
    za = void 0 !== /()??/.exec('')[1];
  (Ma || za || La || Oa || Ta) && (Pa = function (e) {
    var t,
      n,
      r,
      o,
      i,
      a,
      u,
      s = this,
      l = Ba(s),
      c = la(e),
      f = l.raw;
    if (f) return f.lastIndex = s.lastIndex, t = jr(Pa, f, c), s.lastIndex = f.lastIndex, t;
    var d = l.groups,
      p = La && s.sticky,
      h = jr(ca, s),
      v = s.source,
      g = 0,
      y = c;
    if (p && (h = Ia(h, 'y', ''), -1 === Na(h, 'g') && (h += 'g'), y = Ra(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && '\n' !== ja(c, s.lastIndex - 1)) && (v = '(?: ' + v + ')', y = ' ' + y, g++), n = new RegExp('^(?:' + v + ')', h)), za && (n = new RegExp('^' + v + '$(?!\\s)', h)), Ma && (r = s.lastIndex), o = jr(_a, p ? n : s, y), p ? o ? (o.input = Ra(o.input, g), o[0] = Ra(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : Ma && o && (s.lastIndex = s.global ? o.index + o[0].length : r), za && o && o.length > 1 && jr(Fa, o[0], n, (function () {
      for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (o[i] = void 0);
    })), o && d) {
      for (o.groups = a = Ca(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
    }
    return o;
  });
  var $a = Pa;
  ea({
    target: 'RegExp',
    proto: !0,
    forced: /./.exec !== $a
  }, { exec: $a });
  var Ha = Mo('species'),
    Va = RegExp.prototype,
    Ua = Vr(''.charAt),
    Wa = Vr(''.charCodeAt),
    Ga = Vr(''.slice),
    qa = function (e) {
      return function (t, n) {
        var r,
          o,
          i = la(Zr(t)),
          a = ki(n),
          u = i.length;
        return a < 0 || a >= u ? e ? '' : void 0 : (r = Wa(i, a)) < 55296 || r > 56319 || a + 1 === u || (o = Wa(i, a + 1)) < 56320 || o > 57343 ? e ? Ua(i, a) : r : e ? Ga(i, a, a + 2) : o - 56320 + (r - 55296 << 10) + 65536;
      };
    },
    Ka = {
      codeAt: qa(!1),
      charAt: qa(!0)
    },
    Ya = Ka.charAt,
    Xa = function (e, t, n) {
      return t + (n ? Ya(e, t).length : 1);
    },
    Za = Br.TypeError,
    Ja = function (e, t) {
      var n = e.exec;
      if (Qr(n)) {
        var r = jr(n, e, t);
        return null !== r && Zo(r), r;
      }
      if ('RegExp' === Gr(e)) return jr($a, e, t);
      throw Za('RegExp#exec called on incompatible receiver');
    };
  !function (e, t, n, r) {
    var o = Mo(e),
      i = !Fr((function () {
        var t = {};
        return t[o] = function () {
          return 7;
        }, 7 != ''[e](t);
      })),
      a = i && !Fr((function () {
        var t = !1,
          n = /a/;
        return 'split' === e && ((n = {}).constructor = {}, n.constructor[Ha] = function () {
          return n;
        }, n.flags = '', n[o] = /./[o]), n.exec = function () {
          return t = !0, null;
        }, n[o](''), !t;
      }));
    if (!i || !a || n) {
      var u = Vr(/./[o]),
        s = t(o, ''[e], (function (e, t, n, r, o) {
          var a = Vr(e),
            s = t.exec;
          return s === $a || s === Va.exec ? i && !o ? {
            done: !0,
            value: u(t, n, r)
          } : {
            done: !0,
            value: a(n, t, r)
          } : { done: !1 };
        }));
      Ci(String.prototype, e, s[0]), Ci(Va, o, s[1]);
    }
    r && ti(Va[o], 'sham', !0);
  }('match', (function (e, t, n) {
    return [function (t) {
      var n = Zr(this),
        r = null == t ? void 0 : bo(t, e);
      return r ? jr(r, t, n) : new RegExp(t)[e](la(n));
    }, function (e) {
      var r = Zo(this),
        o = la(e),
        i = n(t, r, o);
      if (i.done) return i.value;
      if (!r.global) return Ja(r, o);
      var a = r.unicode;
      r.lastIndex = 0;
      for (var u, s = [], l = 0; null !== (u = Ja(r, o));) {
        var c = la(u[0]);
        s[l] = c, '' === c && (r.lastIndex = Xa(o, Pi(r.lastIndex), a)), l++;
      }
      return 0 === l ? null : s;
    }];
  })), ea({ global: !0 }, { globalThis: Br });
  var Qa = !Fr((function () {
      function e() {
      }

      return e.prototype.constructor = null, Object.getPrototypeOf(new e) !== e.prototype;
    })),
    eu = ci('IE_PROTO'),
    tu = Br.Object,
    nu = tu.prototype,
    ru = Qa ? tu.getPrototypeOf : function (e) {
      var t = Oo(e);
      if (To(t, eu)) return t[eu];
      var n = t.constructor;
      return Qr(n) && t instanceof n ? n.prototype : t instanceof tu ? nu : null;
    },
    ou = Br.String,
    iu = Br.TypeError,
    au = Object.setPrototypeOf || ('__proto__' in {} ? function () {
      var e,
        t = !1,
        n = {};
      try {
        (e = Vr(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set))(n, []), t = n instanceof Array;
      } catch (e) {
      }
      return function (n, r) {
        return Zo(n), function (e) {
          if ('object' == typeof e || Qr(e)) return e;
          throw iu('Can\'t set ' + ou(e) + ' as a prototype');
        }(r), t ? e(n, r) : n.__proto__ = r, n;
      };
    }() : void 0),
    uu = function (e, t, n) {
      var r = Ho(t);
      r in e ? ei.f(e, r, Mr(0, n)) : e[r] = n;
    },
    su = Br.Array,
    lu = Math.max,
    cu = Vr(''.replace),
    fu = Vr(''.split),
    du = Vr([].join),
    pu = String(Error('zxcasd').stack),
    hu = /\n\s*at [^:]*:[^\n]*/,
    vu = hu.test(pu),
    gu = /@[^\n]*\n/.test(pu) && !/zxcasd/.test(pu),
    yu = function (e, t) {
      if ('string' != typeof e) return e;
      if (vu) {
        for (; t--;) e = cu(e, hu, '');
      } else if (gu) {
        return du(function (e, t, n) {
          for (var r = ji(e), o = Fi(t, r), i = Fi(void 0 === n ? r : n, r), a = su(lu(i - o, 0)), u = 0; o < i; o++, u++) uu(a, u, e[o]);
          return a.length = u, a;
        }(fu(e, '\n'), t), '\n');
      }
      return e;
    },
    mu = function (e, t) {
      eo(t) && 'cause' in t && ti(e, 'cause', t.cause);
    },
    bu = Vr(Vr.bind),
    wu = function (e, t) {
      return mo(e), void 0 === t ? e : bu ? bu(e, t) : function () {
        return e.apply(t, arguments);
      };
    },
    Eu = {},
    Du = Mo('iterator'),
    xu = Array.prototype,
    Su = Mo('iterator'),
    Cu = function (e) {
      if (null != e) return bo(e, Su) || bo(e, '@@iterator') || Eu[ua(e)];
    },
    Au = Br.TypeError,
    Ou = function (e, t, n) {
      var r,
        o;
      Zo(e);
      try {
        if (!(r = bo(e, 'return'))) {
          if ('throw' === t) throw n;
          return n;
        }
        r = jr(r, e);
      } catch (e) {
        o = !0, r = e;
      }
      if ('throw' === t) throw n;
      if (o) throw r;
      return Zo(r), n;
    },
    ku = Br.TypeError,
    Tu = function (e, t) {
      this.stopped = e, this.result = t;
    },
    Bu = Tu.prototype,
    Fu = function (e, t, n) {
      var r,
        o,
        i,
        a,
        u,
        s,
        l,
        c,
        f = n && n.that,
        d = !(!n || !n.AS_ENTRIES),
        p = !(!n || !n.IS_ITERATOR),
        h = !(!n || !n.INTERRUPTED),
        v = wu(t, f),
        g = function (e) {
          return r && Ou(r, 'normal', e), new Tu(!0, e);
        },
        y = function (e) {
          return d ? (Zo(e), h ? v(e[0], e[1], g) : v(e[0], e[1])) : h ? v(e, g) : v(e);
        };
      if (p) {
        r = e;
      } else {
        if (!(o = Cu(e))) throw ku(go(e) + ' is not iterable');
        if (void 0 !== (c = o) && (Eu.Array === c || xu[Du] === c)) {
          for (i = 0, a = ji(e); a > i; i++) if ((u = y(e[i])) && ro(Bu, u)) return u;
          return new Tu(!1);
        }
        r = function (e, t) {
          var n = arguments.length < 2 ? Cu(e) : t;
          if (mo(n)) return Zo(jr(n, e));
          throw Au(go(e) + ' is not iterable');
        }(e, o);
      }
      for (s = r.next; !(l = jr(s, r)).done;) {
        try {
          u = y(l.value);
        } catch (e) {
          Ou(r, 'throw', e);
        }
        if ('object' == typeof u && u && ro(Bu, u)) return u;
      }
      return new Tu(!1);
    },
    _u = function (e, t) {
      return void 0 === e ? arguments.length < 2 ? '' : t : la(e);
    },
    Pu = !Fr((function () {
      var e = Error('a');
      return !('stack' in e) || (Object.defineProperty(e, 'stack', Mr(1, 7)), 7 !== e.stack);
    })),
    ju = Mo('toStringTag'),
    Nu = Br.Error,
    Iu = [].push,
    Ru = function (e, t) {
      var n,
        r = arguments.length > 2 ? arguments[2] : void 0,
        o = ro(Mu, this);
      au ? n = au(new Nu(void 0), o ? ru(this) : Mu) : (n = o ? this : Ca(Mu), ti(n, ju, 'Error')), ti(n, 'message', _u(t, '')), Pu && ti(n, 'stack', yu(n.stack, 1)), mu(n, r);
      var i = [];
      return Fu(e, Iu, { that: i }), ti(n, 'errors', i), n;
    };
  au ? au(Ru, Nu) : Wi(Ru, Nu);
  var Mu = Ru.prototype = Ca(Nu.prototype, {
    constructor: Mr(1, Ru),
    message: Mr(1, ''),
    name: Mr(1, 'AggregateError')
  });
  ea({ global: !0 }, { AggregateError: Ru });
  var Lu = Mo('unscopables'),
    zu = Array.prototype;
  null == zu[Lu] && ei.f(zu, Lu, {
    configurable: !0,
    value: Ca(null)
  });
  var $u,
    Hu,
    Vu,
    Uu = function (e) {
      zu[Lu][e] = !0;
    },
    Wu = Mo('iterator'),
    Gu = !1;
  [].keys && ('next' in (Vu = [].keys()) ? (Hu = ru(ru(Vu))) !== Object.prototype && ($u = Hu) : Gu = !0);
  var qu = null == $u || Fr((function () {
    var e = {};
    return $u[Wu].call(e) !== e;
  }));
  qu && ($u = {}), Qr($u[Wu]) || Ci($u, Wu, (function () {
    return this;
  }));
  var Ku = {
      IteratorPrototype: $u,
      BUGGY_SAFARI_ITERATORS: Gu
    },
    Yu = ei.f,
    Xu = Mo('toStringTag'),
    Zu = function (e, t, n) {
      e && !To(e = n ? e : e.prototype, Xu) && Yu(e, Xu, {
        configurable: !0,
        value: t
      });
    },
    Ju = Ku.IteratorPrototype,
    Qu = function () {
      return this;
    },
    es = Si.PROPER,
    ts = Si.CONFIGURABLE,
    ns = Ku.IteratorPrototype,
    rs = Ku.BUGGY_SAFARI_ITERATORS,
    os = Mo('iterator'),
    is = 'keys',
    as = 'values',
    us = 'entries',
    ss = function () {
      return this;
    },
    ls = function (e, t, n, r, o, i, a) {
      !function (e, t, n, r) {
        var o = t + ' Iterator';
        e.prototype = Ca(Ju, { next: Mr(+!r, n) }), Zu(e, o, !1), Eu[o] = Qu;
      }(n, t, r);
      var u,
        s,
        l,
        c = function (e) {
          if (e === o && v) return v;
          if (!rs && e in p) return p[e];
          switch (e) {
            case is:
            case as:
            case us:
              return function () {
                return new n(this, e);
              };
          }
          return function () {
            return new n(this);
          };
        },
        f = t + ' Iterator',
        d = !1,
        p = e.prototype,
        h = p[os] || p['@@iterator'] || o && p[o],
        v = !rs && h || c(o),
        g = 'Array' == t && p.entries || h;
      if (g && (u = ru(g.call(new e))) !== Object.prototype && u.next && (ru(u) !== ns && (au ? au(u, ns) : Qr(u[os]) || Ci(u, os, ss)), Zu(u, f, !0)), es && o == as && h && h.name !== as && (ts ? ti(p, 'name', as) : (d = !0, v = function () {
        return jr(h, this);
      })), o) {
        if (s = {
          values: c(as),
          keys: i ? v : c(is),
          entries: c(us)
        }, a) {
          for (l in s) (rs || d || !(l in p)) && Ci(p, l, s[l]);
        } else {
          ea({
            target: t,
            proto: !0,
            forced: rs || d
          }, s);
        }
      }
      return p[os] !== v && Ci(p, os, v, { name: o }), Eu[t] = v, s;
    },
    cs = 'Array Iterator',
    fs = wi.set,
    ds = wi.getterFor(cs),
    ps = ls(Array, 'Array', (function (e, t) {
      fs(this, {
        type: cs,
        target: Jr(e),
        index: 0,
        kind: t
      });
    }), (function () {
      var e = ds(this),
        t = e.target,
        n = e.kind,
        r = e.index++;
      return !t || r >= t.length ? (e.target = void 0, {
        value: void 0,
        done: !0
      }) : 'keys' == n ? {
        value: r,
        done: !1
      } : 'values' == n ? {
        value: t[r],
        done: !1
      } : {
        value: [r, t[r]],
        done: !1
      };
    }), 'values');
  Eu.Arguments = Eu.Array, Uu('keys'), Uu('values'), Uu('entries');
  var hs = Ka.charAt,
    vs = 'String Iterator',
    gs = wi.set,
    ys = wi.getterFor(vs);
  ls(String, 'String', (function (e) {
    gs(this, {
      type: vs,
      string: la(e),
      index: 0
    });
  }), (function () {
    var e,
      t = ys(this),
      n = t.string,
      r = t.index;
    return r >= n.length ? {
      value: void 0,
      done: !0
    } : (e = hs(n, r), t.index += e.length, {
      value: e,
      done: !1
    });
  }));
  var ms,
    bs = {
      CSSRuleList: 0,
      CSSStyleDeclaration: 0,
      CSSValueList: 0,
      ClientRectList: 0,
      DOMRectList: 0,
      DOMStringList: 0,
      DOMTokenList: 1,
      DataTransferItemList: 0,
      FileList: 0,
      HTMLAllCollection: 0,
      HTMLCollection: 0,
      HTMLFormElement: 0,
      HTMLSelectElement: 0,
      MediaList: 0,
      MimeTypeArray: 0,
      NamedNodeMap: 0,
      NodeList: 1,
      PaintRequestList: 0,
      Plugin: 0,
      PluginArray: 0,
      SVGLengthList: 0,
      SVGNumberList: 0,
      SVGPathSegList: 0,
      SVGPointList: 0,
      SVGStringList: 0,
      SVGTransformList: 0,
      SourceBufferList: 0,
      StyleSheetList: 0,
      TextTrackCueList: 0,
      TextTrackList: 0,
      TouchList: 0
    },
    ws = Wo('span').classList,
    Es = ws && ws.constructor && ws.constructor.prototype,
    Ds = Es === Object.prototype ? void 0 : Es,
    xs = Mo('iterator'),
    Ss = Mo('toStringTag'),
    Cs = ps.values,
    As = function (e, t) {
      if (e) {
        if (e[xs] !== Cs) {
          try {
            ti(e, xs, Cs);
          } catch (t) {
            e[xs] = Cs;
          }
        }
        if (e[Ss] || ti(e, Ss, t), bs[t]) {
          for (var n in ps) {
            if (e[n] !== ps[n]) {
              try {
                ti(e, n, ps[n]);
              } catch (t) {
                e[n] = ps[n];
              }
            }
          }
        }
      }
    };
  for (var Os in bs) As(Br[Os] && Br[Os].prototype, Os);
  if (As(Ds, 'DOMTokenList'), 'undefined' == typeof global) {
    if ('ActiveXObject' in window) {
      '\n Sorry, wangEditor V5+ versions do not support IE browser.', console.error('抱歉，wangEditor V5+ 版本开始，不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser.');
    }
    ks(), Ts();
  } else {
    global && (null === (ms = global.navigator) || void 0 === ms ? void 0 : ms.userAgent.match('QQBrowser')) && (ks(), Ts());
  }

  function ks() {
    'undefined' == typeof globalThis && (window.globalThis = window);
  }

  function Ts() {
    void 0 === kr && (window.AggregateError = function (e, t) {
      var n = new Error(t);
      return n.errors = e, n;
    });
  }

  var Bs,
    Fs = Array.isArray || function (e) {
      return 'Array' == T(e);
    },
    _s = function () {
    },
    Ps = [],
    js = L('Reflect', 'construct'),
    Ns = /^\s*(?:class|function)\b/,
    Is = y(Ns.exec),
    Rs = !Ns.exec(_s),
    Ms = function (e) {
      if (!m(e)) return !1;
      try {
        return js(_s, Ps, e), !0;
      } catch (e) {
        return !1;
      }
    },
    Ls = !js || b((function () {
      var e;
      return Ms(Ms.call) || !Ms(Object) || !Ms((function () {
        e = !0;
      })) || e;
    })) ? function (e) {
      if (!m(e)) return !1;
      switch (rn(e)) {
        case'AsyncFunction':
        case'GeneratorFunction':
        case'AsyncGeneratorFunction':
          return !1;
      }
      return Rs || !!Is(Ns, An(e));
    } : Ms,
    zs = Ee('species'),
    $s = u.Array,
    Hs = function (e, t) {
      return new (function (e) {
        var t;
        return Fs(e) && (t = e.constructor, (Ls(t) && (t === $s || Fs(t.prototype)) || I(t) && null === (t = t[zs])) && (t = void 0)), void 0 === t ? $s : t;
      }(e))(0 === t ? 0 : t);
    },
    Vs = Ee('species'),
    Us = Ee('isConcatSpreadable'),
    Ws = 9007199254740991,
    Gs = 'Maximum allowed index exceeded',
    qs = u.TypeError,
    Ks = q >= 51 || !b((function () {
      var e = [];
      return e[Us] = !1, e.concat()[0] !== e;
    })),
    Ys = (Bs = 'concat', q >= 51 || !b((function () {
      var e = [];
      return (e.constructor = {})[Vs] = function () {
        return { foo: 1 };
      }, 1 !== e[Bs](Boolean).foo;
    }))),
    Xs = function (e) {
      if (!I(e)) return !1;
      var t = e[Us];
      return void 0 !== t ? !!t : Fs(e);
    };
  Xe({
    target: 'Array',
    proto: !0,
    forced: !Ks || !Ys
  }, {
    concat: function (e) {
      var t,
        n,
        r,
        o,
        i,
        a = ce(this),
        u = Hs(a, 0),
        s = 0;
      for (t = -1, r = arguments.length; t < r; t++) {
        if (Xs(i = -1 === t ? a : arguments[t])) {
          if (s + (o = ht(i)) > Ws) throw qs(Gs);
          for (n = 0; n < o; n++, s++) n in i && It(u, s, i[n]);
        } else {
          if (s >= Ws) throw qs(Gs);
          It(u, s++, i);
        }
      }
      return u.length = s, u;
    }
  });
  var Zs = xt.f,
    Js = 'object' == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [],
    Qs = {
      f: function (e) {
        return Js && 'Window' == T(e) ? function (e) {
          try {
            return Zs(e);
          } catch (e) {
            return Lt(Js);
          }
        }(e) : Zs(N(e));
      }
    },
    el = y([].slice),
    tl = { f: Ee },
    nl = Ge.f,
    rl = function (e) {
      var t = R.Symbol || (R.Symbol = {});
      de(t, e) || nl(t, e, { value: tl.f(e) });
    },
    ol = y([].push),
    il = function (e) {
      var t = 1 == e,
        n = 2 == e,
        r = 3 == e,
        o = 4 == e,
        i = 6 == e,
        a = 7 == e,
        u = 5 == e || i;
      return function (s, l, c, f) {
        for (var d, p, h = ce(s), v = _(h), g = ze(l, c), y = ht(v), m = 0, b = f || Hs, w = t ? b(s, y) : n || a ? b(s, 0) : void 0; y > m; m++) {
          if ((u || m in v) && (p = g(d = v[m], m, h), e)) {
            if (t) {
              w[m] = p;
            } else if (p) {
              switch (e) {
                case 3:
                  return !0;
                case 5:
                  return d;
                case 6:
                  return m;
                case 2:
                  ol(w, d);
              }
            } else {
              switch (e) {
                case 4:
                  return !1;
                case 7:
                  ol(w, d);
              }
            }
          }
        }
        return i ? -1 : r || o ? o : w;
      };
    },
    al = {
      forEach: il(0),
      map: il(1),
      filter: il(2),
      some: il(3),
      every: il(4),
      find: il(5),
      findIndex: il(6),
      filterReject: il(7)
    }.forEach,
    ul = Je('hidden'),
    sl = 'Symbol',
    ll = Ee('toPrimitive'),
    cl = zn.set,
    fl = zn.getterFor(sl),
    dl = Object.prototype,
    pl = u.Symbol,
    hl = pl && pl.prototype,
    vl = u.TypeError,
    gl = u.QObject,
    yl = L('JSON', 'stringify'),
    ml = Fe.f,
    bl = Ge.f,
    wl = Qs.f,
    El = C.f,
    Dl = y([].push),
    xl = se('symbols'),
    Sl = se('op-symbols'),
    Cl = se('string-to-symbol-registry'),
    Al = se('symbol-to-string-registry'),
    Ol = se('wks'),
    kl = !gl || !gl.prototype || !gl.prototype.findChild,
    Tl = w && b((function () {
      return 7 != Nt(bl({}, 'a', {
        get: function () {
          return bl(this, 'a', { value: 7 }).a;
        }
      })).a;
    })) ? function (e, t, n) {
      var r = ml(dl, t);
      r && delete dl[t], bl(e, t, n), r && e !== dl && bl(dl, t, r);
    } : bl,
    Bl = function (e, t) {
      var n = xl[e] = Nt(hl);
      return cl(n, {
        type: sl,
        tag: e,
        description: t
      }), w || (n.description = t), n;
    },
    Fl = function (e, t, n) {
      e === dl && Fl(Sl, t, n), Ve(e);
      var r = Ce(t);
      return Ve(n), de(xl, r) ? (n.enumerable ? (de(e, ul) && e[ul][r] && (e[ul][r] = !1), n = Nt(n, { enumerable: A(0, !1) })) : (de(e, ul) || bl(e, ul, A(1, {})), e[ul][r] = !0), Tl(e, r, n)) : bl(e, r, n);
    },
    _l = function (e, t) {
      Ve(e);
      var n = N(t),
        r = Ot(n)
          .concat(Il(n));
      return al(r, (function (t) {
        w && !D(Pl, n, t) || Fl(e, t, n[t]);
      })), e;
    },
    Pl = function (e) {
      var t = Ce(e),
        n = D(El, this, t);
      return !(this === dl && de(xl, t) && !de(Sl, t)) && (!(n || !de(this, t) || !de(xl, t) || de(this, ul) && this[ul][t]) || n);
    },
    jl = function (e, t) {
      var n = N(e),
        r = Ce(t);
      if (n !== dl || !de(xl, r) || de(Sl, r)) {
        var o = ml(n, r);
        return !o || !de(xl, r) || de(n, ul) && n[ul][r] || (o.enumerable = !0), o;
      }
    },
    Nl = function (e) {
      var t = wl(N(e)),
        n = [];
      return al(t, (function (e) {
        de(xl, e) || de(yt, e) || Dl(n, e);
      })), n;
    },
    Il = function (e) {
      var t = e === dl,
        n = wl(t ? Sl : N(e)),
        r = [];
      return al(n, (function (e) {
        !de(xl, e) || t && !de(dl, e) || Dl(r, xl[e]);
      })), r;
    };
  if (K || (pl = function () {
    if (z(hl, this)) throw vl('Symbol is not a constructor');
    var e = arguments.length && void 0 !== arguments[0] ? hn(arguments[0]) : void 0,
      t = ge(e),
      n = function (e) {
        this === dl && D(n, Sl, e), de(this, ul) && de(this[ul], t) && (this[ul][t] = !1), Tl(this, t, A(1, e));
      };
    return w && kl && Tl(dl, t, {
      configurable: !0,
      set: n
    }), Bl(t, e);
  }, hl = pl.prototype, Wn(hl, 'toString', (function () {
    return fl(this).tag;
  })), Wn(pl, 'withoutSetter', (function (e) {
    return Bl(ge(e), e);
  })), C.f = Pl, Ge.f = Fl, Fe.f = jl, xt.f = Qs.f = Nl, St.f = Il, tl.f = function (e) {
    return Bl(Ee(e), e);
  }, w && bl(hl, 'description', {
    configurable: !0,
    get: function () {
      return fl(this).description;
    }
  })), Xe({
    global: !0,
    wrap: !0,
    forced: !K,
    sham: !K
  }, { Symbol: pl }), al(Ot(Ol), (function (e) {
    rl(e);
  })), Xe({
    target: sl,
    stat: !0,
    forced: !K
  }, {
    for: function (e) {
      var t = hn(e);
      if (de(Cl, t)) return Cl[t];
      var n = pl(t);
      return Cl[t] = n, Al[n] = t, n;
    },
    keyFor: function (e) {
      if (!Z(e)) throw vl(e + ' is not a symbol');
      if (de(Al, e)) return Al[e];
    },
    useSetter: function () {
      kl = !0;
    },
    useSimple: function () {
      kl = !1;
    }
  }), Xe({
    target: 'Object',
    stat: !0,
    forced: !K,
    sham: !w
  }, {
    create: function (e, t) {
      return void 0 === t ? Nt(e) : _l(Nt(e), t);
    },
    defineProperty: Fl,
    defineProperties: _l,
    getOwnPropertyDescriptor: jl
  }), Xe({
    target: 'Object',
    stat: !0,
    forced: !K
  }, {
    getOwnPropertyNames: Nl,
    getOwnPropertySymbols: Il
  }), Xe({
    target: 'Object',
    stat: !0,
    forced: b((function () {
      St.f(1);
    }))
  }, {
    getOwnPropertySymbols: function (e) {
      return St.f(ce(e));
    }
  }), yl) {
    var Rl = !K || b((function () {
      var e = pl();
      return '[null]' != yl([e]) || '{}' != yl({ a: e }) || '{}' != yl(Object(e));
    }));
    Xe({
      target: 'JSON',
      stat: !0,
      forced: Rl
    }, {
      stringify: function (e, t, n) {
        var r = el(arguments),
          o = t;
        if ((I(t) || void 0 !== e) && !Z(e)) {
          return Fs(t) || (t = function (e, t) {
            if (m(o) && (t = D(o, this, e, t)), !Z(t)) return t;
          }), r[1] = t, d(yl, null, r);
        }
      }
    });
  }
  if (!hl[ll]) {
    var Ml = hl.valueOf;
    Wn(hl, ll, (function (e) {
      return D(Ml, this);
    }));
  }
  Qn(pl, sl), yt[ul] = !0, rl('asyncIterator'), rl('hasInstance'), rl('isConcatSpreadable'), rl('iterator'), rl('match'), rl('matchAll'), rl('replace'), rl('search'), rl('species'), rl('split'), rl('toPrimitive'), rl('toStringTag'), rl('unscopables'), Qn(u.JSON, 'JSON', !0);
  var Ll = R.Symbol;
  rl('asyncDispose'), rl('dispose'), rl('matcher'), rl('metadata'), rl('observable'), rl('patternMatch'), rl('replaceAll');
  var zl = Ll,
    $l = tl.f('iterator'),
    Hl = r((function (e) {
      function t(n) {
        return 'function' == typeof zl && 'symbol' == typeof $l ? (e.exports = t = function (e) {
          return typeof e;
        }, e.exports.default = e.exports, e.exports.__esModule = !0) : (e.exports = t = function (e) {
          return e && 'function' == typeof zl && e.constructor === zl && e !== zl.prototype ? 'symbol' : typeof e;
        }, e.exports.default = e.exports, e.exports.__esModule = !0), t(n);
      }

      e.exports = t, e.exports.default = e.exports, e.exports.__esModule = !0;
    })),
    Vl = n(Hl),
    Ul = Ko.f,
    Wl = Fr((function () {
      Ul(1);
    }));
  if (ea({
    target: 'Object',
    stat: !0,
    forced: !_r || Wl,
    sham: !_r
  }, {
    getOwnPropertyDescriptor: function (e, t) {
      return Ul(Jr(e), t);
    }
  }), 'object' === ('undefined' == typeof global ? 'undefined' : Vl(global))) {
    var Gl = Object.getOwnPropertyDescriptor(global, 'window');
    global.window && !Gl.set || (global.window = global, global.requestAnimationFrame = function () {
    }, global.navigator = { userAgent: '' }, global.location = {
      hostname: '0.0.0.0',
      port: 0,
      protocol: 'http:'
    }, global.btoa = function () {
    }, global.crypto = {
      getRandomValues: function (e) {
        return nodeCrypto.randomFillSync(e);
      }
    }), null != global.document && null == global.document.getElementsByTagName && (global.document.getElementsByTagName = function () {
      return [];
    });
  }

  /*!
     * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
     *
     * Copyright (c) 2014-2017, Jon Schlinkert.
     * Released under the MIT License.
     */
  function ql(e) {
    return '[object Object]' === Object.prototype.toString.call(e);
  }

  var Kl = function (e) {
      var t,
        n;
      return !1 !== ql(e) && (void 0 === (t = e.constructor) || !1 !== ql(n = t.prototype) && !1 !== n.hasOwnProperty('isPrototypeOf'));
    },
    Yl = Object.defineProperty({ isPlainObject: Kl }, '__esModule', { value: !0 }),
    Xl = r((function (e, t) {
      function n(e) {
        for (var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
        throw Error('[Immer] minified error nr: ' + e + (n.length ? ' ' + n.map((function (e) {
          return '\'' + e + '\'';
        }))
          .join(',') : '') + '. Find the full error at: https://bit.ly/3cXEKWf');
      }

      function r(e) {
        return !!e && !!e[K];
      }

      function o(e) {
        return !!e && (function (e) {
          if (!e || 'object' != typeof e) return !1;
          var t = Object.getPrototypeOf(e);
          if (null === t) return !0;
          var n = Object.hasOwnProperty.call(t, 'constructor') && t.constructor;
          return n === Object || 'function' == typeof n && Function.toString.call(n) === X;
        }(e) || Array.isArray(e) || !!e[q] || !!e.constructor[q] || f(e) || d(e));
      }

      function i(e, t, n) {
        void 0 === n && (n = !1), 0 === a(e) ? (n ? Object.keys : Z)(e)
          .forEach((function (r) {
            n && 'symbol' == typeof r || t(r, e[r], e);
          })) : e.forEach((function (n, r) {
          return t(r, n, e);
        }));
      }

      function a(e) {
        var t = e[K];
        return t ? t.t > 3 ? t.t - 4 : t.t : Array.isArray(e) ? 1 : f(e) ? 2 : d(e) ? 3 : 0;
      }

      function u(e, t) {
        return 2 === a(e) ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
      }

      function s(e, t) {
        return 2 === a(e) ? e.get(t) : e[t];
      }

      function l(e, t, n) {
        var r = a(e);
        2 === r ? e.set(t, n) : 3 === r ? (e.delete(t), e.add(n)) : e[t] = n;
      }

      function c(e, t) {
        return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t;
      }

      function f(e) {
        return V && e instanceof Map;
      }

      function d(e) {
        return U && e instanceof Set;
      }

      function p(e) {
        return e.i || e.u;
      }

      function h(e) {
        if (Array.isArray(e)) return Array.prototype.slice.call(e);
        var t = J(e);
        delete t[K];
        for (var n = Z(t), r = 0; r < n.length; r++) {
          var o = n[r],
            i = t[o];
          !1 === i.writable && (i.writable = !0, i.configurable = !0), (i.get || i.set) && (t[o] = {
            configurable: !0,
            writable: !0,
            enumerable: i.enumerable,
            value: e[o]
          });
        }
        return Object.create(Object.getPrototypeOf(e), t);
      }

      function v(e, t) {
        return void 0 === t && (t = !1), y(e) || r(e) || !o(e) || (a(e) > 1 && (e.set = e.add = e.clear = e.delete = g), Object.freeze(e), t && i(e, (function (e, t) {
          return v(t, !0);
        }), !0)), e;
      }

      function g() {
        n(2);
      }

      function y(e) {
        return null == e || 'object' != typeof e || Object.isFrozen(e);
      }

      function m(e) {
        var t = Q[e];
        return t || n(18, e), t;
      }

      function b(e, t) {
        Q[e] || (Q[e] = t);
      }

      function w() {
        return $;
      }

      function E(e, t) {
        t && (m('Patches'), e.o = [], e.v = [], e.s = t);
      }

      function D(e) {
        x(e), e.p.forEach(C), e.p = null;
      }

      function x(e) {
        e === $ && ($ = e.l);
      }

      function S(e) {
        return $ = {
          p: [],
          l: $,
          h: e,
          _: !0,
          m: 0
        };
      }

      function C(e) {
        var t = e[K];
        0 === t.t || 1 === t.t ? t.j() : t.O = !0;
      }

      function A(e, t) {
        t.m = t.p.length;
        var r = t.p[0],
          i = void 0 !== e && e !== r;
        return t.h.S || m('ES5')
          .M(t, e, i), i ? (r[K].P && (D(t), n(4)), o(e) && (e = O(t, e), t.l || T(t, e)), t.o && m('Patches')
          .g(r[K], e, t.o, t.v)) : e = O(t, r, []), D(t), t.o && t.s(t.o, t.v), e !== G ? e : void 0;
      }

      function O(e, t, n) {
        if (y(t)) return t;
        var r = t[K];
        if (!r) {
          return i(t, (function (o, i) {
            return k(e, r, t, o, i, n);
          }), !0), t;
        }
        if (r.A !== e) return t;
        if (!r.P) return T(e, r.u, !0), r.u;
        if (!r.R) {
          r.R = !0, r.A.m--;
          var o = 4 === r.t || 5 === r.t ? r.i = h(r.k) : r.i;
          i(3 === r.t ? new Set(o) : o, (function (t, i) {
            return k(e, r, o, t, i, n);
          })), T(e, o, !1), n && e.o && m('Patches')
            .F(r, n, e.o, e.v);
        }
        return r.i;
      }

      function k(e, t, n, i, a, s) {
        if (r(a)) {
          var c = O(e, a, s && t && 3 !== t.t && !u(t.D, i) ? s.concat(i) : void 0);
          if (l(n, i, c), !r(c)) return;
          e._ = !1;
        }
        if (o(a) && !y(a)) {
          if (!e.h.K && e.m < 1) return;
          O(e, a), t && t.A.l || T(e, a);
        }
      }

      function T(e, t, n) {
        void 0 === n && (n = !1), e.h.K && e._ && v(t, n);
      }

      function B(e, t) {
        var n = e[K];
        return (n ? p(n) : e)[t];
      }

      function F(e, t) {
        if (t in e) {
          for (var n = Object.getPrototypeOf(e); n;) {
            var r = Object.getOwnPropertyDescriptor(n, t);
            if (r) return r;
            n = Object.getPrototypeOf(n);
          }
        }
      }

      function _(e) {
        e.P || (e.P = !0, e.l && _(e.l));
      }

      function P(e) {
        e.i || (e.i = h(e.u));
      }

      function j(e, t, n) {
        var r = f(t) ? m('MapSet')
          .$(t, n) : d(t) ? m('MapSet')
          .C(t, n) : e.S ? function (e, t) {
          var n = Array.isArray(e),
            r = {
              t: n ? 1 : 0,
              A: t ? t.A : w(),
              P: !1,
              R: !1,
              D: {},
              l: t,
              u: e,
              k: null,
              i: null,
              j: null,
              I: !1
            },
            o = r,
            i = ee;
          n && (o = [r], i = te);
          var a = Proxy.revocable(o, i),
            u = a.revoke,
            s = a.proxy;
          return r.k = s, r.j = u, s;
        }(t, n) : m('ES5')
          .J(t, n);
        return (n ? n.A : w()).p.push(r), r;
      }

      function N(e) {
        return r(e) || n(22, e), function e(t) {
          if (!o(t)) return t;
          var n,
            r = t[K],
            u = a(t);
          if (r) {
            if (!r.P && (r.t < 4 || !m('ES5')
              .N(r))) {
              return r.u;
            }
            r.R = !0, n = I(t, u), r.R = !1;
          } else {
            n = I(t, u);
          }
          return i(n, (function (t, o) {
            r && s(r.u, t) === o || l(n, t, e(o));
          })), 3 === u ? new Set(n) : n;
        }(e);
      }

      function I(e, t) {
        switch (t) {
          case 2:
            return new Map(e);
          case 3:
            return Array.from(e);
        }
        return h(e);
      }

      function R() {
        function e(e, t) {
          var n = a[e];
          return n ? n.enumerable = t : a[e] = n = {
            configurable: !0,
            enumerable: t,
            get: function () {
              return ee.get(this[K], e);
            },
            set: function (t) {
              ee.set(this[K], e, t);
            }
          }, n;
        }

        function t(e) {
          for (var t = e.length - 1; t >= 0; t--) {
            var r = e[t][K];
            if (!r.P) {
              switch (r.t) {
                case 5:
                  o(r) && _(r);
                  break;
                case 4:
                  n(r) && _(r);
              }
            }
          }
        }

        function n(e) {
          for (var t = e.u, n = e.k, r = Z(n), o = r.length - 1; o >= 0; o--) {
            var i = r[o];
            if (i !== K) {
              var a = t[i];
              if (void 0 === a && !u(t, i)) return !0;
              var s = n[i],
                l = s && s[K];
              if (l ? l.u !== a : !c(s, a)) return !0;
            }
          }
          var f = !!t[K];
          return r.length !== Z(t).length + (f ? 0 : 1);
        }

        function o(e) {
          var t = e.k;
          if (t.length !== e.u.length) return !0;
          var n = Object.getOwnPropertyDescriptor(t, t.length - 1);
          return !(!n || n.get);
        }

        var a = {};
        b('ES5', {
          J: function (t, n) {
            var r = Array.isArray(t),
              o = function (t, n) {
                if (t) {
                  for (var r = Array(n.length), o = 0; o < n.length; o++) Object.defineProperty(r, '' + o, e(o, !0));
                  return r;
                }
                var i = J(n);
                delete i[K];
                for (var a = Z(i), u = 0; u < a.length; u++) {
                  var s = a[u];
                  i[s] = e(s, t || !!i[s].enumerable);
                }
                return Object.create(Object.getPrototypeOf(n), i);
              }(r, t),
              i = {
                t: r ? 5 : 4,
                A: n ? n.A : w(),
                P: !1,
                R: !1,
                D: {},
                l: n,
                u: t,
                k: o,
                i: null,
                O: !1,
                I: !1
              };
            return Object.defineProperty(o, K, {
              value: i,
              writable: !0
            }), o;
          },
          M: function (e, n, a) {
            a ? r(n) && n[K].A === e && t(e.p) : (e.o && function e(t) {
              if (t && 'object' == typeof t) {
                var n = t[K];
                if (n) {
                  var r = n.u,
                    a = n.k,
                    s = n.D,
                    l = n.t;
                  if (4 === l) {
                    i(a, (function (t) {
                      t !== K && (void 0 !== r[t] || u(r, t) ? s[t] || e(a[t]) : (s[t] = !0, _(n)));
                    })), i(r, (function (e) {
                      void 0 !== a[e] || u(a, e) || (s[e] = !1, _(n));
                    }));
                  } else if (5 === l) {
                    if (o(n) && (_(n), s.length = !0), a.length < r.length) for (var c = a.length; c < r.length; c++) s[c] = !1; else for (var f = r.length; f < a.length; f++) s[f] = !0;
                    for (var d = Math.min(a.length, r.length), p = 0; p < d; p++) void 0 === s[p] && e(a[p]);
                  }
                }
              }
            }(e.p[0]), t(e.p));
          },
          N: function (e) {
            return 4 === e.t ? n(e) : o(e);
          }
        });
      }

      function M() {
        function e(t) {
          if (!o(t)) return t;
          if (Array.isArray(t)) return t.map(e);
          if (f(t)) {
            return new Map(Array.from(t.entries())
              .map((function (t) {
                return [t[0], e(t[1])];
              })));
          }
          if (d(t)) {
            return new Set(Array.from(t)
              .map(e));
          }
          var n = Object.create(Object.getPrototypeOf(t));
          for (var r in t) n[r] = e(t[r]);
          return u(t, q) && (n[q] = t[q]), n;
        }

        function t(t) {
          return r(t) ? e(t) : t;
        }

        var l = 'add';
        b('Patches', {
          W: function (t, r) {
            return r.forEach((function (r) {
              for (var o = r.path, i = r.op, u = t, c = 0; c < o.length - 1; c++) {
                var f = a(u),
                  d = '' + o[c];
                0 !== f && 1 !== f || '__proto__' !== d && 'constructor' !== d || n(24), 'function' == typeof u && 'prototype' === d && n(24), 'object' != typeof (u = s(u, d)) && n(15, o.join('/'));
              }
              var p = a(u),
                h = e(r.value),
                v = o[o.length - 1];
              switch (i) {
                case'replace':
                  switch (p) {
                    case 2:
                      return u.set(v, h);
                    case 3:
                      n(16);
                    default:
                      return u[v] = h;
                  }
                case l:
                  switch (p) {
                    case 1:
                      return '-' === v ? u.push(h) : u.splice(v, 0, h);
                    case 2:
                      return u.set(v, h);
                    case 3:
                      return u.add(h);
                    default:
                      return u[v] = h;
                  }
                case'remove':
                  switch (p) {
                    case 1:
                      return u.splice(v, 1);
                    case 2:
                      return u.delete(v);
                    case 3:
                      return u.delete(r.value);
                    default:
                      return delete u[v];
                  }
                default:
                  n(17, i);
              }
            })), t;
          },
          F: function (e, n, r, o) {
            switch (e.t) {
              case 0:
              case 4:
              case 2:
                return function (e, n, r, o) {
                  var a = e.u,
                    c = e.i;
                  i(e.D, (function (e, i) {
                    var f = s(a, e),
                      d = s(c, e),
                      p = i ? u(a, e) ? 'replace' : l : 'remove';
                    if (f !== d || 'replace' !== p) {
                      var h = n.concat(e);
                      r.push('remove' === p ? {
                        op: p,
                        path: h
                      } : {
                        op: p,
                        path: h,
                        value: d
                      }), o.push(p === l ? {
                        op: 'remove',
                        path: h
                      } : 'remove' === p ? {
                        op: l,
                        path: h,
                        value: t(f)
                      } : {
                        op: 'replace',
                        path: h,
                        value: t(f)
                      });
                    }
                  }));
                }(e, n, r, o);
              case 5:
              case 1:
                return function (e, n, r, o) {
                  var i = e.u,
                    a = e.D,
                    u = e.i;
                  if (u.length < i.length) {
                    var s = [u, i];
                    i = s[0], u = s[1];
                    var c = [o, r];
                    r = c[0], o = c[1];
                  }
                  for (var f = 0; f < i.length; f++) {
                    if (a[f] && u[f] !== i[f]) {
                      var d = n.concat([f]);
                      r.push({
                        op: 'replace',
                        path: d,
                        value: t(u[f])
                      }), o.push({
                        op: 'replace',
                        path: d,
                        value: t(i[f])
                      });
                    }
                  }
                  for (var p = i.length; p < u.length; p++) {
                    var h = n.concat([p]);
                    r.push({
                      op: l,
                      path: h,
                      value: t(u[p])
                    });
                  }
                  i.length < u.length && o.push({
                    op: 'replace',
                    path: n.concat(['length']),
                    value: i.length
                  });
                }(e, n, r, o);
              case 3:
                return function (e, t, n, r) {
                  var o = e.u,
                    i = e.i,
                    a = 0;
                  o.forEach((function (e) {
                    if (!i.has(e)) {
                      var o = t.concat([a]);
                      n.push({
                        op: 'remove',
                        path: o,
                        value: e
                      }), r.unshift({
                        op: l,
                        path: o,
                        value: e
                      });
                    }
                    a++;
                  })), a = 0, i.forEach((function (e) {
                    if (!o.has(e)) {
                      var i = t.concat([a]);
                      n.push({
                        op: l,
                        path: i,
                        value: e
                      }), r.unshift({
                        op: 'remove',
                        path: i,
                        value: e
                      });
                    }
                    a++;
                  }));
                }(e, n, r, o);
            }
          },
          g: function (e, t, n, r) {
            n.push({
              op: 'replace',
              path: [],
              value: t === G ? void 0 : t
            }), r.push({
              op: 'replace',
              path: [],
              value: e.u
            });
          }
        });
      }

      function L() {
        function e(e, t) {
          function n() {
            this.constructor = e;
          }

          u(e, t), e.prototype = (n.prototype = t.prototype, new n);
        }

        function t(e) {
          e.i || (e.D = new Map, e.i = new Map(e.u));
        }

        function r(e) {
          e.i || (e.i = new Set, e.u.forEach((function (t) {
            if (o(t)) {
              var n = j(e.A.h, t, e);
              e.p.set(t, n), e.i.add(n);
            } else {
              e.i.add(t);
            }
          })));
        }

        function a(e) {
          e.O && n(3, JSON.stringify(p(e)));
        }

        var u = function (e, t) {
            return (u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (e, t) {
              e.__proto__ = t;
            } || function (e, t) {
              for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
            })(e, t);
          },
          s = function () {
            function n(e, t) {
              return this[K] = {
                t: 2,
                l: t,
                A: t ? t.A : w(),
                P: !1,
                R: !1,
                i: void 0,
                D: void 0,
                u: e,
                k: this,
                I: !1,
                O: !1
              }, this;
            }

            e(n, Map);
            var r = n.prototype;
            return Object.defineProperty(r, 'size', {
              get: function () {
                return p(this[K]).size;
              }
            }), r.has = function (e) {
              return p(this[K])
                .has(e);
            }, r.set = function (e, n) {
              var r = this[K];
              return a(r), p(r)
                .has(e) && p(r)
                .get(e) === n || (t(r), _(r), r.D.set(e, !0), r.i.set(e, n), r.D.set(e, !0)), this;
            }, r.delete = function (e) {
              if (!this.has(e)) return !1;
              var n = this[K];
              return a(n), t(n), _(n), n.D.set(e, !1), n.i.delete(e), !0;
            }, r.clear = function () {
              var e = this[K];
              a(e), p(e).size && (t(e), _(e), e.D = new Map, i(e.u, (function (t) {
                e.D.set(t, !1);
              })), e.i.clear());
            }, r.forEach = function (e, t) {
              var n = this;
              p(this[K])
                .forEach((function (r, o) {
                  e.call(t, n.get(o), o, n);
                }));
            }, r.get = function (e) {
              var n = this[K];
              a(n);
              var r = p(n)
                .get(e);
              if (n.R || !o(r)) return r;
              if (r !== n.u.get(e)) return r;
              var i = j(n.A.h, r, n);
              return t(n), n.i.set(e, i), i;
            }, r.keys = function () {
              return p(this[K])
                .keys();
            }, r.values = function () {
              var e,
                t = this,
                n = this.keys();
              return (e = {})[Y] = function () {
                return t.values();
              }, e.next = function () {
                var e = n.next();
                return e.done ? e : {
                  done: !1,
                  value: t.get(e.value)
                };
              }, e;
            }, r.entries = function () {
              var e,
                t = this,
                n = this.keys();
              return (e = {})[Y] = function () {
                return t.entries();
              }, e.next = function () {
                var e = n.next();
                if (e.done) return e;
                var r = t.get(e.value);
                return {
                  done: !1,
                  value: [e.value, r]
                };
              }, e;
            }, r[Y] = function () {
              return this.entries();
            }, n;
          }(),
          l = function () {
            function t(e, t) {
              return this[K] = {
                t: 3,
                l: t,
                A: t ? t.A : w(),
                P: !1,
                R: !1,
                i: void 0,
                u: e,
                k: this,
                p: new Map,
                O: !1,
                I: !1
              }, this;
            }

            e(t, Set);
            var n = t.prototype;
            return Object.defineProperty(n, 'size', {
              get: function () {
                return p(this[K]).size;
              }
            }), n.has = function (e) {
              var t = this[K];
              return a(t), t.i ? !!t.i.has(e) || !(!t.p.has(e) || !t.i.has(t.p.get(e))) : t.u.has(e);
            }, n.add = function (e) {
              var t = this[K];
              return a(t), this.has(e) || (r(t), _(t), t.i.add(e)), this;
            }, n.delete = function (e) {
              if (!this.has(e)) return !1;
              var t = this[K];
              return a(t), r(t), _(t), t.i.delete(e) || !!t.p.has(e) && t.i.delete(t.p.get(e));
            }, n.clear = function () {
              var e = this[K];
              a(e), p(e).size && (r(e), _(e), e.i.clear());
            }, n.values = function () {
              var e = this[K];
              return a(e), r(e), e.i.values();
            }, n.entries = function () {
              var e = this[K];
              return a(e), r(e), e.i.entries();
            }, n.keys = function () {
              return this.values();
            }, n[Y] = function () {
              return this.values();
            }, n.forEach = function (e, t) {
              for (var n = this.values(), r = n.next(); !r.done;) e.call(t, r.value, r.value, this), r = n.next();
            }, t;
          }();
        b('MapSet', {
          $: function (e, t) {
            return new s(e, t);
          },
          C: function (e, t) {
            return new l(e, t);
          }
        });
      }

      var z;
      Object.defineProperty(t, '__esModule', { value: !0 });
      var $,
        H = 'undefined' != typeof Symbol && 'symbol' == typeof Symbol('x'),
        V = 'undefined' != typeof Map,
        U = 'undefined' != typeof Set,
        W = 'undefined' != typeof Proxy && void 0 !== Proxy.revocable && 'undefined' != typeof Reflect,
        G = H ? Symbol.for('immer-nothing') : ((z = {})['immer-nothing'] = !0, z),
        q = H ? Symbol.for('immer-draftable') : '__$immer_draftable',
        K = H ? Symbol.for('immer-state') : '__$immer_state',
        Y = 'undefined' != typeof Symbol && Symbol.iterator || '@@iterator',
        X = '' + Object.prototype.constructor,
        Z = 'undefined' != typeof Reflect && Reflect.ownKeys ? Reflect.ownKeys : void 0 !== Object.getOwnPropertySymbols ? function (e) {
          return Object.getOwnPropertyNames(e)
            .concat(Object.getOwnPropertySymbols(e));
        } : Object.getOwnPropertyNames,
        J = Object.getOwnPropertyDescriptors || function (e) {
          var t = {};
          return Z(e)
            .forEach((function (n) {
              t[n] = Object.getOwnPropertyDescriptor(e, n);
            })), t;
        },
        Q = {},
        ee = {
          get: function (e, t) {
            if (t === K) return e;
            var n = p(e);
            if (!u(n, t)) {
              return function (e, t, n) {
                var r,
                  o = F(t, n);
                return o ? 'value' in o ? o.value : null === (r = o.get) || void 0 === r ? void 0 : r.call(e.k) : void 0;
              }(e, n, t);
            }
            var r = n[t];
            return e.R || !o(r) ? r : r === B(e.u, t) ? (P(e), e.i[t] = j(e.A.h, r, e)) : r;
          },
          has: function (e, t) {
            return t in p(e);
          },
          ownKeys: function (e) {
            return Reflect.ownKeys(p(e));
          },
          set: function (e, t, n) {
            var r = F(p(e), t);
            if (null == r ? void 0 : r.set) return r.set.call(e.k, n), !0;
            if (!e.P) {
              var o = B(p(e), t),
                i = null == o ? void 0 : o[K];
              if (i && i.u === n) return e.i[t] = n, e.D[t] = !1, !0;
              if (c(n, o) && (void 0 !== n || u(e.u, t))) return !0;
              P(e), _(e);
            }
            return e.i[t] === n && 'number' != typeof n && (void 0 !== n || t in e.i) || (e.i[t] = n, e.D[t] = !0, !0);
          },
          deleteProperty: function (e, t) {
            return void 0 !== B(e.u, t) || t in e.u ? (e.D[t] = !1, P(e), _(e)) : delete e.D[t], e.i && delete e.i[t], !0;
          },
          getOwnPropertyDescriptor: function (e, t) {
            var n = p(e),
              r = Reflect.getOwnPropertyDescriptor(n, t);
            return r ? {
              writable: !0,
              configurable: 1 !== e.t || 'length' !== t,
              enumerable: r.enumerable,
              value: n[t]
            } : r;
          },
          defineProperty: function () {
            n(11);
          },
          getPrototypeOf: function (e) {
            return Object.getPrototypeOf(e.u);
          },
          setPrototypeOf: function () {
            n(12);
          }
        },
        te = {};
      i(ee, (function (e, t) {
        te[e] = function () {
          return arguments[0] = arguments[0][0], t.apply(this, arguments);
        };
      })), te.deleteProperty = function (e, t) {
        return ee.deleteProperty.call(this, e[0], t);
      }, te.set = function (e, t, n) {
        return ee.set.call(this, e[0], t, n, e[0]);
      };
      var ne = function () {
          function e(e) {
            var t = this;
            this.S = W, this.K = !0, this.produce = function (e, r, i) {
              if ('function' == typeof e && 'function' != typeof r) {
                var a = r;
                r = e;
                var u = t;
                return function (e) {
                  var t = this;
                  void 0 === e && (e = a);
                  for (var n = arguments.length, o = Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++) o[i - 1] = arguments[i];
                  return u.produce(e, (function (e) {
                    var n;
                    return (n = r).call.apply(n, [t, e].concat(o));
                  }));
                };
              }
              var s;
              if ('function' != typeof r && n(6), void 0 !== i && 'function' != typeof i && n(7), o(e)) {
                var l = S(t),
                  c = j(t, e, void 0),
                  f = !0;
                try {
                  s = r(c), f = !1;
                } finally {
                  f ? D(l) : x(l);
                }
                return 'undefined' != typeof Promise && s instanceof Promise ? s.then((function (e) {
                  return E(l, i), A(e, l);
                }), (function (e) {
                  throw D(l), e;
                })) : (E(l, i), A(s, l));
              }
              if (!e || 'object' != typeof e) {
                if ((s = r(e)) === G) return;
                return void 0 === s && (s = e), t.K && v(s, !0), s;
              }
              n(21, e);
            }, this.produceWithPatches = function (e, n) {
              return 'function' == typeof e ? function (n) {
                for (var r = arguments.length, o = Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) o[i - 1] = arguments[i];
                return t.produceWithPatches(n, (function (t) {
                  return e.apply(void 0, [t].concat(o));
                }));
              } : [t.produce(e, n, (function (e, t) {
                r = e, o = t;
              })), r, o];
              var r,
                o;
            }, 'boolean' == typeof (null == e ? void 0 : e.useProxies) && this.setUseProxies(e.useProxies), 'boolean' == typeof (null == e ? void 0 : e.autoFreeze) && this.setAutoFreeze(e.autoFreeze);
          }

          var t = e.prototype;
          return t.createDraft = function (e) {
            o(e) || n(8), r(e) && (e = N(e));
            var t = S(this),
              i = j(this, e, void 0);
            return i[K].I = !0, x(t), i;
          }, t.finishDraft = function (e, t) {
            var n = (e && e[K]).A;
            return E(n, t), A(void 0, n);
          }, t.setAutoFreeze = function (e) {
            this.K = e;
          }, t.setUseProxies = function (e) {
            e && !W && n(20), this.S = e;
          }, t.applyPatches = function (e, t) {
            var n;
            for (n = t.length - 1; n >= 0; n--) {
              var o = t[n];
              if (0 === o.path.length && 'replace' === o.op) {
                e = o.value;
                break;
              }
            }
            n > -1 && (t = t.slice(n + 1));
            var i = m('Patches').W;
            return r(e) ? i(e, t) : this.produce(e, (function (e) {
              return i(e, t);
            }));
          }, e;
        }(),
        re = new ne,
        oe = re.produce,
        ie = re.produceWithPatches.bind(re),
        ae = re.setAutoFreeze.bind(re),
        ue = re.setUseProxies.bind(re),
        se = re.applyPatches.bind(re),
        le = re.createDraft.bind(re),
        ce = re.finishDraft.bind(re);
      t.Immer = ne, t.applyPatches = se, t.castDraft = function (e) {
        return e;
      }, t.castImmutable = function (e) {
        return e;
      }, t.createDraft = le, t.current = N, t.default = oe, t.enableAllPlugins = function () {
        R(), L(), M();
      }, t.enableES5 = R, t.enableMapSet = L, t.enablePatches = M, t.finishDraft = ce, t.freeze = v, t.immerable = q, t.isDraft = r, t.isDraftable = o, t.nothing = G, t.original = function (e) {
        return r(e) || n(23, e), e[K].u;
      }, t.produce = oe, t.produceWithPatches = ie, t.setAutoFreeze = ae, t.setUseProxies = ue;
    })),
    Zl = Xl,
    Jl = r((function (e) {
      e.exports = Zl;
    })),
    Ql = Yl,
    ec = Jl;

  function tc(e) {
    return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, 'default') ? e.default : e;
  }

  function nc(e, t) {
    return e(t = { exports: {} }, t.exports), t.exports;
  }

  var rc = nc((function (e) {
    e.exports = function (e, t) {
      (null == t || t > e.length) && (t = e.length);
      for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
      return r;
    }, e.exports.default = e.exports, e.exports.__esModule = !0;
  }));
  tc(rc);
  var oc = nc((function (e) {
    e.exports = function (e) {
      if (Array.isArray(e)) return rc(e);
    }, e.exports.default = e.exports, e.exports.__esModule = !0;
  }));
  tc(oc);
  var ic = nc((function (e) {
    e.exports = function (e) {
      if ('undefined' != typeof Symbol && null != e[Symbol.iterator] || null != e['@@iterator']) return Array.from(e);
    }, e.exports.default = e.exports, e.exports.__esModule = !0;
  }));
  tc(ic);
  var ac = nc((function (e) {
    e.exports = function (e, t) {
      if (e) {
        if ('string' == typeof e) return rc(e, t);
        var n = Object.prototype.toString.call(e)
          .slice(8, -1);
        return 'Object' === n && e.constructor && (n = e.constructor.name), 'Map' === n || 'Set' === n ? Array.from(e) : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? rc(e, t) : void 0;
      }
    }, e.exports.default = e.exports, e.exports.__esModule = !0;
  }));
  tc(ac);
  var uc = nc((function (e) {
    e.exports = function () {
      throw new TypeError('Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
    }, e.exports.default = e.exports, e.exports.__esModule = !0;
  }));
  tc(uc);
  var sc = tc(nc((function (e) {
      e.exports = function (e) {
        return oc(e) || ic(e) || ac(e) || uc();
      }, e.exports.default = e.exports, e.exports.__esModule = !0;
    }))),
    lc = nc((function (e) {
      e.exports = function (e) {
        if (Array.isArray(e)) return e;
      }, e.exports.default = e.exports, e.exports.__esModule = !0;
    }));
  tc(lc);
  var cc = nc((function (e) {
    e.exports = function (e, t) {
      var n = null == e ? null : 'undefined' != typeof Symbol && e[Symbol.iterator] || e['@@iterator'];
      if (null != n) {
        var r,
          o,
          i = [],
          a = !0,
          u = !1;
        try {
          for (n = n.call(e); !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t); a = !0) ;
        } catch (e) {
          u = !0, o = e;
        } finally {
          try {
            a || null == n.return || n.return();
          } finally {
            if (u) throw o;
          }
        }
        return i;
      }
    }, e.exports.default = e.exports, e.exports.__esModule = !0;
  }));
  tc(cc);
  var fc = nc((function (e) {
    e.exports = function () {
      throw new TypeError('Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
    }, e.exports.default = e.exports, e.exports.__esModule = !0;
  }));
  tc(fc);
  var dc = tc(nc((function (e) {
      e.exports = function (e, t) {
        return lc(e) || cc(e, t) || ac(e, t) || fc();
      }, e.exports.default = e.exports, e.exports.__esModule = !0;
    }))),
    pc = nc((function (e) {
      e.exports = function (e, t, n) {
        return t in e ? Object.defineProperty(e, t, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        }) : e[t] = n, e;
      }, e.exports.default = e.exports, e.exports.__esModule = !0;
    })),
    hc = tc(pc),
    vc = new WeakMap,
    gc = new WeakMap,
    yc = new WeakMap,
    mc = new WeakMap,
    bc = new WeakMap,
    wc = new WeakMap;

  function Ec(e, t) {
    var n = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var r = Object.getOwnPropertySymbols(e);
      t && (r = r.filter((function (t) {
        return Object.getOwnPropertyDescriptor(e, t).enumerable;
      }))), n.push.apply(n, r);
    }
    return n;
  }

  function Dc(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = null != arguments[t] ? arguments[t] : {};
      t % 2 ? Ec(Object(n), !0)
        .forEach((function (t) {
          hc(e, t, n[t]);
        })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ec(Object(n))
        .forEach((function (t) {
          Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
        }));
    }
    return e;
  }

  function xc(e, t) {
    var n = 'undefined' != typeof Symbol && e[Symbol.iterator] || e['@@iterator'];
    if (!n) {
      if (Array.isArray(e) || (n = function (e, t) {
        if (!e) return;
        if ('string' == typeof e) return Sc(e, t);
        var n = Object.prototype.toString.call(e)
          .slice(8, -1);
        'Object' === n && e.constructor && (n = e.constructor.name);
        if ('Map' === n || 'Set' === n) return Array.from(e);
        if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Sc(e, t);
      }(e)) || t && e && 'number' == typeof e.length) {
        n && (e = n);
        var r = 0,
          o = function () {
          };
        return {
          s: o,
          n: function () {
            return r >= e.length ? { done: !0 } : {
              done: !1,
              value: e[r++]
            };
          },
          e: function (e) {
            throw e;
          },
          f: o
        };
      }
      throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
    }
    var i,
      a = !0,
      u = !1;
    return {
      s: function () {
        n = n.call(e);
      },
      n: function () {
        var e = n.next();
        return a = e.done, e;
      },
      e: function (e) {
        u = !0, i = e;
      },
      f: function () {
        try {
          a || null == n.return || n.return();
        } finally {
          if (u) throw i;
        }
      }
    };
  }

  function Sc(e, t) {
    (null == t || t > e.length) && (t = e.length);
    for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
    return r;
  }

  var Cc = function (e) {
      switch (e.type) {
        case'insert_text':
        case'remove_text':
        case'set_node':
          var t = e.path;
          return Af.levels(t);
        case'insert_node':
          var n = e.node,
            r = e.path,
            o = Af.levels(r),
            i = Vf.isText(n) ? [] : Array.from(Df.nodes(n), (function (e) {
              var t = dc(e, 2)[1];
              return r.concat(t);
            }));
          return [].concat(sc(o), sc(i));
        case'merge_node':
          var a = e.path,
            u = Af.ancestors(a),
            s = Af.previous(a);
          return [].concat(sc(u), [s]);
        case'move_node':
          var l = e.path,
            c = e.newPath;
          if (Af.equals(l, c)) return [];
          var f,
            d = [],
            p = [],
            h = xc(Af.ancestors(l));
          try {
            for (h.s(); !(f = h.n()).done;) {
              var v = f.value,
                g = Af.transform(v, e);
              d.push(g);
            }
          } catch (e) {
            h.e(e);
          } finally {
            h.f();
          }
          var y,
            m = xc(Af.ancestors(c));
          try {
            for (m.s(); !(y = m.n()).done;) {
              var b = y.value,
                w = Af.transform(b, e);
              p.push(w);
            }
          } catch (e) {
            m.e(e);
          } finally {
            m.f();
          }
          var E = p[p.length - 1],
            D = c[c.length - 1],
            x = E.concat(D);
          return [].concat(d, p, [x]);
        case'remove_node':
          var S = e.path,
            C = Af.ancestors(S);
          return sc(C);
        case'split_node':
          var A = e.path,
            O = Af.levels(A),
            k = Af.next(A);
          return [].concat(sc(O), [k]);
        default:
          return [];
      }
    },
    Ac = nc((function (e) {
      e.exports = function (e, t) {
        if (null == e) return {};
        var n,
          r,
          o = {},
          i = Object.keys(e);
        for (r = 0; r < i.length; r++) n = i[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
        return o;
      }, e.exports.default = e.exports, e.exports.__esModule = !0;
    }));
  tc(Ac);
  var Oc = tc(nc((function (e) {
    e.exports = function (e, t) {
      if (null == e) return {};
      var n,
        r,
        o = Ac(e, t);
      if (Object.getOwnPropertySymbols) {
        var i = Object.getOwnPropertySymbols(e);
        for (r = 0; r < i.length; r++) n = i[r], t.indexOf(n) >= 0 || Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]);
      }
      return o;
    }, e.exports.default = e.exports, e.exports.__esModule = !0;
  })));

  function kc(e, t) {
    var n = 'undefined' != typeof Symbol && e[Symbol.iterator] || e['@@iterator'];
    if (!n) {
      if (Array.isArray(e) || (n = function (e, t) {
        if (!e) return;
        if ('string' == typeof e) return Tc(e, t);
        var n = Object.prototype.toString.call(e)
          .slice(8, -1);
        'Object' === n && e.constructor && (n = e.constructor.name);
        if ('Map' === n || 'Set' === n) return Array.from(e);
        if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Tc(e, t);
      }(e)) || t && e && 'number' == typeof e.length) {
        n && (e = n);
        var r = 0,
          o = function () {
          };
        return {
          s: o,
          n: function () {
            return r >= e.length ? { done: !0 } : {
              done: !1,
              value: e[r++]
            };
          },
          e: function (e) {
            throw e;
          },
          f: o
        };
      }
      throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
    }
    var i,
      a = !0,
      u = !1;
    return {
      s: function () {
        n = n.call(e);
      },
      n: function () {
        var e = n.next();
        return a = e.done, e;
      },
      e: function (e) {
        u = !0, i = e;
      },
      f: function () {
        try {
          a || null == n.return || n.return();
        } finally {
          if (u) throw i;
        }
      }
    };
  }

  function Tc(e, t) {
    (null == t || t > e.length) && (t = e.length);
    for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
    return r;
  }

  var Bc,
    Fc = function (e) {
      var t,
        n = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
        r = !n,
        o = n ? Mc(e) : e,
        i = Bc.None,
        a = Bc.None,
        u = 0,
        s = null,
        l = kc(o);
      try {
        for (l.s(); !(t = l.n()).done;) {
          var c = t.value,
            f = c.codePointAt(0);
          if (!f) break;
          var d = Xc(c, f),
            p = r ? [a, d] : [d, i],
            h = dc(p, 2);
          if (i = h[0], a = h[1], Zc(i, Bc.ZWJ) && Zc(a, Bc.ExtPict) && !tf(r ? e.substring(0, u) : e.substring(0, e.length - u))) break;
          if (Zc(i, Bc.RI) && Zc(a, Bc.RI) && !(s = null !== s ? !s : !!r || rf(e.substring(0, e.length - u)))) break;
          if (i !== Bc.None && a !== Bc.None && Qc(i, a)) break;
          u += c.length;
        }
      } catch (e) {
        l.e(e);
      } finally {
        l.f();
      }
      return u || 1;
    },
    _c = /\s/,
    Pc = /[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,
    jc = /['\u2018\u2019]/,
    Nc = function (e) {
      for (var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], n = 0, r = !1; e.length > 0;) {
        var o = Fc(e, t),
          i = Ic(e, o, t),
          a = dc(i, 2),
          u = a[0],
          s = a[1];
        if (Rc(u, s, t)) {
          r = !0, n += o;
        } else {
          if (r) break;
          n += o;
        }
        e = s;
      }
      return n;
    },
    Ic = function (e, t, n) {
      if (n) {
        var r = e.length - t;
        return [e.slice(r, e.length), e.slice(0, r)];
      }
      return [e.slice(0, t), e.slice(t)];
    },
    Rc = function e(t, n) {
      var r = arguments.length > 2 && void 0 !== arguments[2] && arguments[2];
      if (_c.test(t)) return !1;
      if (jc.test(t)) {
        var o = Fc(n, r),
          i = Ic(n, o, r),
          a = dc(i, 2),
          u = a[0],
          s = a[1];
        if (e(u, s, r)) return !0;
      }
      return !Pc.test(t);
    },
    Mc = function* (e) {
      for (var t = e.length - 1, n = 0; n < e.length; n++) {
        var r = e.charAt(t - n);
        if (zc(r.charCodeAt(0))) {
          var o = e.charAt(t - n - 1);
          if (Lc(o.charCodeAt(0))) {
            yield o + r, n++;
            continue;
          }
        }
        yield r;
      }
    },
    Lc = function (e) {
      return e >= 55296 && e <= 56319;
    },
    zc = function (e) {
      return e >= 56320 && e <= 57343;
    };
  !function (e) {
    e[e.None = 0] = 'None', e[e.Extend = 1] = 'Extend', e[e.ZWJ = 2] = 'ZWJ', e[e.RI = 4] = 'RI', e[e.Prepend = 8] = 'Prepend', e[e.SpacingMark = 16] = 'SpacingMark', e[e.L = 32] = 'L', e[e.V = 64] = 'V', e[e.T = 128] = 'T', e[e.LV = 256] = 'LV', e[e.LVT = 512] = 'LVT', e[e.ExtPict = 1024] = 'ExtPict', e[e.Any = 2048] = 'Any';
  }(Bc || (Bc = {}));
  var $c = /^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,
    Hc = /^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,
    Vc = /^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,
    Uc = /^[\u1100-\u115F\uA960-\uA97C]$/,
    Wc = /^[\u1160-\u11A7\uD7B0-\uD7C6]$/,
    Gc = /^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,
    qc = /^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,
    Kc = /^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,
    Yc = /^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,
    Xc = function (e, t) {
      var n = Bc.Any;
      return -1 !== e.search($c) && (n |= Bc.Extend), 8205 === t && (n |= Bc.ZWJ), t >= 127462 && t <= 127487 && (n |= Bc.RI), -1 !== e.search(Hc) && (n |= Bc.Prepend), -1 !== e.search(Vc) && (n |= Bc.SpacingMark), -1 !== e.search(Uc) && (n |= Bc.L), -1 !== e.search(Wc) && (n |= Bc.V), -1 !== e.search(Gc) && (n |= Bc.T), -1 !== e.search(qc) && (n |= Bc.LV), -1 !== e.search(Kc) && (n |= Bc.LVT), -1 !== e.search(Yc) && (n |= Bc.ExtPict), n;
    };

  function Zc(e, t) {
    return 0 != (e & t);
  }

  var Jc = [[Bc.L, Bc.L | Bc.V | Bc.LV | Bc.LVT], [Bc.LV | Bc.V, Bc.V | Bc.T], [Bc.LVT | Bc.T, Bc.T], [Bc.Any, Bc.Extend | Bc.ZWJ], [Bc.Any, Bc.SpacingMark], [Bc.Prepend, Bc.Any], [Bc.ZWJ, Bc.ExtPict], [Bc.RI, Bc.RI]];

  function Qc(e, t) {
    return -1 === Jc.findIndex((function (n) {
      return Zc(e, n[0]) && Zc(t, n[1]);
    }));
  }

  var ef = /(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,
    tf = function (e) {
      return -1 !== e.search(ef);
    },
    nf = /(?:\uD83C[\uDDE6-\uDDFF])+$/g,
    rf = function (e) {
      var t = e.match(nf);
      return null !== t && t[0].length / 2 % 2 == 1;
    },
    of = function (e) {
      return Ql.isPlainObject(e) && Df.isNodeList(e.children) && !hf.isEditor(e);
    },
    af = {
      isAncestor: function (e) {
        return Ql.isPlainObject(e) && Df.isNodeList(e.children);
      },
      isElement: of,
      isElementList: function (e) {
        return Array.isArray(e) && e.every((function (e) {
          return af.isElement(e);
        }));
      },
      isElementProps: function (e) {
        return void 0 !== e.children;
      },
      isElementType: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 'type';
        return of(e) && e[n] === t;
      },
      matches: function (e, t) {
        for (var n in t) if ('children' !== n && e[n] !== t[n]) return !1;
        return !0;
      }
    },
    uf = ['text'],
    sf = ['text'];

  function lf(e, t) {
    var n = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var r = Object.getOwnPropertySymbols(e);
      t && (r = r.filter((function (t) {
        return Object.getOwnPropertyDescriptor(e, t).enumerable;
      }))), n.push.apply(n, r);
    }
    return n;
  }

  function cf(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = null != arguments[t] ? arguments[t] : {};
      t % 2 ? lf(Object(n), !0)
        .forEach((function (t) {
          hc(e, t, n[t]);
        })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lf(Object(n))
        .forEach((function (t) {
          Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
        }));
    }
    return e;
  }

  function ff(e, t) {
    var n = 'undefined' != typeof Symbol && e[Symbol.iterator] || e['@@iterator'];
    if (!n) {
      if (Array.isArray(e) || (n = function (e, t) {
        if (!e) return;
        if ('string' == typeof e) return df(e, t);
        var n = Object.prototype.toString.call(e)
          .slice(8, -1);
        'Object' === n && e.constructor && (n = e.constructor.name);
        if ('Map' === n || 'Set' === n) return Array.from(e);
        if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return df(e, t);
      }(e)) || t && e && 'number' == typeof e.length) {
        n && (e = n);
        var r = 0,
          o = function () {
          };
        return {
          s: o,
          n: function () {
            return r >= e.length ? { done: !0 } : {
              done: !1,
              value: e[r++]
            };
          },
          e: function (e) {
            throw e;
          },
          f: o
        };
      }
      throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
    }
    var i,
      a = !0,
      u = !1;
    return {
      s: function () {
        n = n.call(e);
      },
      n: function () {
        var e = n.next();
        return a = e.done, e;
      },
      e: function (e) {
        u = !0, i = e;
      },
      f: function () {
        try {
          a || null == n.return || n.return();
        } finally {
          if (u) throw i;
        }
      }
    };
  }

  function df(e, t) {
    (null == t || t > e.length) && (t = e.length);
    for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
    return r;
  }

  var pf = new WeakMap,
    hf = {
      above: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.voids,
          r = void 0 !== n && n,
          o = t.mode,
          i = void 0 === o ? 'lowest' : o,
          a = t.at,
          u = void 0 === a ? e.selection : a,
          s = t.match;
        if (u) {
          var l,
            c = hf.path(e, u),
            f = 'lowest' === i,
            d = ff(hf.levels(e, {
              at: c,
              voids: r,
              match: s,
              reverse: f
            }));
          try {
            for (d.s(); !(l = d.n()).done;) {
              var p = dc(l.value, 2),
                h = p[0],
                v = p[1];
              if (!Vf.isText(h) && !Af.equals(c, v)) return [h, v];
            }
          } catch (e) {
            d.e(e);
          } finally {
            d.f();
          }
        }
      },
      addMark: function (e, t, n) {
        e.addMark(t, n);
      },
      after: function (e, t) {
        var n,
          r,
          o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          i = hf.point(e, t, { edge: 'end' }),
          a = hf.end(e, []),
          u = {
            anchor: i,
            focus: a
          },
          s = o.distance,
          l = void 0 === s ? 1 : s,
          c = 0,
          f = ff(hf.positions(e, cf(cf({}, o), {}, { at: u })));
        try {
          for (f.s(); !(r = f.n()).done;) {
            var d = r.value;
            if (c > l) break;
            0 !== c && (n = d), c++;
          }
        } catch (e) {
          f.e(e);
        } finally {
          f.f();
        }
        return n;
      },
      before: function (e, t) {
        var n,
          r,
          o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          i = hf.start(e, []),
          a = hf.point(e, t, { edge: 'start' }),
          u = {
            anchor: i,
            focus: a
          },
          s = o.distance,
          l = void 0 === s ? 1 : s,
          c = 0,
          f = ff(hf.positions(e, cf(cf({}, o), {}, {
            at: u,
            reverse: !0
          })));
        try {
          for (f.s(); !(r = f.n()).done;) {
            var d = r.value;
            if (c > l) break;
            0 !== c && (n = d), c++;
          }
        } catch (e) {
          f.e(e);
        } finally {
          f.f();
        }
        return n;
      },
      deleteBackward: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.unit,
          r = void 0 === n ? 'character' : n;
        e.deleteBackward(r);
      },
      deleteForward: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.unit,
          r = void 0 === n ? 'character' : n;
        e.deleteForward(r);
      },
      deleteFragment: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.direction,
          r = void 0 === n ? 'forward' : n;
        e.deleteFragment(r);
      },
      edges: function (e, t) {
        return [hf.start(e, t), hf.end(e, t)];
      },
      end: function (e, t) {
        return hf.point(e, t, { edge: 'end' });
      },
      first: function (e, t) {
        var n = hf.path(e, t, { edge: 'start' });
        return hf.node(e, n);
      },
      fragment: function (e, t) {
        var n = hf.range(e, t),
          r = Df.fragment(e, n);
        return r;
      },
      hasBlocks: function (e, t) {
        return t.children.some((function (t) {
          return hf.isBlock(e, t);
        }));
      },
      hasInlines: function (e, t) {
        return t.children.some((function (t) {
          return Vf.isText(t) || hf.isInline(e, t);
        }));
      },
      hasTexts: function (e, t) {
        return t.children.every((function (e) {
          return Vf.isText(e);
        }));
      },
      insertBreak: function (e) {
        e.insertBreak();
      },
      insertFragment: function (e, t) {
        e.insertFragment(t);
      },
      insertNode: function (e, t) {
        e.insertNode(t);
      },
      insertText: function (e, t) {
        e.insertText(t);
      },
      isBlock: function (e, t) {
        return af.isElement(t) && !e.isInline(t);
      },
      isEditor: function (e) {
        if (!Ql.isPlainObject(e)) return !1;
        var t = pf.get(e);
        if (void 0 !== t) return t;
        var n = 'function' == typeof e.addMark && 'function' == typeof e.apply && 'function' == typeof e.deleteBackward && 'function' == typeof e.deleteForward && 'function' == typeof e.deleteFragment && 'function' == typeof e.insertBreak && 'function' == typeof e.insertFragment && 'function' == typeof e.insertNode && 'function' == typeof e.insertText && 'function' == typeof e.isInline && 'function' == typeof e.isVoid && 'function' == typeof e.normalizeNode && 'function' == typeof e.onChange && 'function' == typeof e.removeMark && (null === e.marks || Ql.isPlainObject(e.marks)) && (null === e.selection || jf.isRange(e.selection)) && Df.isNodeList(e.children) && Cf.isOperationList(e.operations);
        return pf.set(e, n), n;
      },
      isEnd: function (e, t, n) {
        var r = hf.end(e, n);
        return Bf.equals(t, r);
      },
      isEdge: function (e, t, n) {
        return hf.isStart(e, t, n) || hf.isEnd(e, t, n);
      },
      isEmpty: function (e, t) {
        var n = t.children,
          r = dc(n, 1)[0];
        return 0 === n.length || 1 === n.length && Vf.isText(r) && '' === r.text && !e.isVoid(t);
      },
      isInline: function (e, t) {
        return af.isElement(t) && e.isInline(t);
      },
      isNormalizing: function (e) {
        var t = yc.get(e);
        return void 0 === t || t;
      },
      isStart: function (e, t, n) {
        if (0 !== t.offset) return !1;
        var r = hf.start(e, n);
        return Bf.equals(t, r);
      },
      isVoid: function (e, t) {
        return af.isElement(t) && e.isVoid(t);
      },
      last: function (e, t) {
        var n = hf.path(e, t, { edge: 'end' });
        return hf.node(e, n);
      },
      leaf: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          r = hf.path(e, t, n),
          o = Df.leaf(e, r);
        return [o, r];
      },
      levels: function* (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.at,
          r = void 0 === n ? e.selection : n,
          o = t.reverse,
          i = void 0 !== o && o,
          a = t.voids,
          u = void 0 !== a && a,
          s = t.match;
        if (null == s && (s = function () {
          return !0;
        }), r) {
          var l,
            c = [],
            f = hf.path(e, r),
            d = ff(Df.levels(e, f));
          try {
            for (d.s(); !(l = d.n()).done;) {
              var p = dc(l.value, 2),
                h = p[0],
                v = p[1];
              if (s(h, v) && (c.push([h, v]), !u && hf.isVoid(e, h))) break;
            }
          } catch (e) {
            d.e(e);
          } finally {
            d.f();
          }
          i && c.reverse(), yield* c;
        }
      },
      marks: function (e) {
        var t = e.marks,
          n = e.selection;
        if (!n) return null;
        if (t) return t;
        if (jf.isExpanded(n)) {
          var r = hf.nodes(e, { match: Vf.isText }),
            o = dc(r, 1)[0];
          if (o) {
            var i = dc(o, 1)[0];
            return i.text, Oc(i, uf);
          }
          return {};
        }
        var a = n.anchor,
          u = a.path,
          s = hf.leaf(e, u),
          l = dc(s, 1)[0];
        if (0 === a.offset) {
          var c = hf.previous(e, {
              at: u,
              match: Vf.isText
            }),
            f = hf.above(e, {
              match: function (t) {
                return hf.isBlock(e, t);
              }
            });
          if (c && f) {
            var d = dc(c, 2),
              p = d[0],
              h = d[1],
              v = dc(f, 2)[1];
            Af.isAncestor(v, h) && (l = p);
          }
        }
        var g = l;
        return g.text, Oc(g, sf);
      },
      next: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.mode,
          r = void 0 === n ? 'lowest' : n,
          o = t.voids,
          i = void 0 !== o && o,
          a = t.match,
          u = t.at,
          s = void 0 === u ? e.selection : u;
        if (s) {
          var l = hf.after(e, s, { voids: i });
          if (l) {
            var c = hf.last(e, []),
              f = dc(c, 2),
              d = f[1],
              p = [l.path, d];
            if (Af.isPath(s) && 0 === s.length) throw new Error('Cannot get the next node from the root node!');
            if (null == a) {
              if (Af.isPath(s)) {
                var h = hf.parent(e, s),
                  v = dc(h, 1),
                  g = v[0];
                a = function (e) {
                  return g.children.includes(e);
                };
              } else {
                a = function () {
                  return !0;
                };
              }
            }
            var y = hf.nodes(e, {
                at: p,
                match: a,
                mode: r,
                voids: i
              }),
              m = dc(y, 1),
              b = m[0];
            return b;
          }
        }
      },
      node: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          r = hf.path(e, t, n),
          o = Df.get(e, r);
        return [o, r];
      },
      nodes: function* (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.at,
          r = void 0 === n ? e.selection : n,
          o = t.mode,
          i = void 0 === o ? 'all' : o,
          a = t.universal,
          u = void 0 !== a && a,
          s = t.reverse,
          l = void 0 !== s && s,
          c = t.voids,
          f = void 0 !== c && c,
          d = t.match;
        if (d || (d = function () {
          return !0;
        }), r) {
          var p,
            h;
          if (gf.isSpan(r)) {
            p = r[0], h = r[1];
          } else {
            var v = hf.path(e, r, { edge: 'start' }),
              g = hf.path(e, r, { edge: 'end' });
            p = l ? g : v, h = l ? v : g;
          }
          var y,
            m,
            b = Df.nodes(e, {
              reverse: l,
              from: p,
              to: h,
              pass: function (t) {
                var n = dc(t, 1)[0];
                return !f && hf.isVoid(e, n);
              }
            }),
            w = [],
            E = ff(b);
          try {
            for (E.s(); !(m = E.n()).done;) {
              var D = dc(m.value, 2),
                x = D[0],
                S = D[1],
                C = y && 0 === Af.compare(S, y[1]);
              if ('highest' !== i || !C) {
                if (d(x, S)) {
                  if ('lowest' === i && C) {
                    y = [x, S];
                  } else {
                    var A = 'lowest' === i ? y : [x, S];
                    A && (u ? w.push(A) : yield A), y = [x, S];
                  }
                } else if (u && !C && Vf.isText(x)) return;
              }
            }
          } catch (e) {
            E.e(e);
          } finally {
            E.f();
          }
          'lowest' === i && y && (u ? w.push(y) : yield y), u && (yield* w);
        }
      },
      normalize: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.force,
          r = void 0 !== n && n,
          o = function (e) {
            return vc.get(e) || [];
          };
        if (hf.isNormalizing(e)) {
          if (r) {
            var i = Array.from(Df.nodes(e), (function (e) {
              return dc(e, 2)[1];
            }));
            vc.set(e, i);
          }
          0 !== o(e).length && hf.withoutNormalizing(e, (function () {
            var t,
              n = ff(o(e));
            try {
              for (n.s(); !(t = n.n()).done;) {
                var r = t.value;
                if (Df.has(e, r)) {
                  var i = hf.node(e, r),
                    a = dc(i, 2),
                    u = a[0];
                  a[1];
                  af.isElement(u) && 0 === u.children.length && e.normalizeNode(i);
                }
              }
            } catch (e) {
              n.e(e);
            } finally {
              n.f();
            }
            for (var s = 42 * o(e).length, l = 0; 0 !== o(e).length;) {
              if (l > s) throw new Error('\n            Could not completely normalize the editor after '.concat(s, ' iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n          '));
              var c = o(e)
                .pop();
              if (Df.has(e, c)) {
                var f = hf.node(e, c);
                e.normalizeNode(f);
              }
              l++;
            }
          }));
        }
      },
      parent: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          r = hf.path(e, t, n),
          o = Af.parent(r),
          i = hf.node(e, o);
        return i;
      },
      path: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          r = n.depth,
          o = n.edge;
        if (Af.isPath(t)) {
          if ('start' === o) {
            var i = Df.first(e, t),
              a = dc(i, 2),
              u = a[1];
            t = u;
          } else if ('end' === o) {
            var s = Df.last(e, t),
              l = dc(s, 2),
              c = l[1];
            t = c;
          }
        }
        return jf.isRange(t) && (t = 'start' === o ? jf.start(t) : 'end' === o ? jf.end(t) : Af.common(t.anchor.path, t.focus.path)), Bf.isPoint(t) && (t = t.path), null != r && (t = t.slice(0, r)), t;
      },
      hasPath: function (e, t) {
        return Df.has(e, t);
      },
      pathRef: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          r = n.affinity,
          o = void 0 === r ? 'forward' : r,
          i = {
            current: t,
            affinity: o,
            unref: function () {
              var t = i.current;
              return hf.pathRefs(e)
                .delete(i), i.current = null, t;
            }
          },
          a = hf.pathRefs(e);
        return a.add(i), i;
      },
      pathRefs: function (e) {
        var t = mc.get(e);
        return t || (t = new Set, mc.set(e, t)), t;
      },
      point: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          r = n.edge,
          o = void 0 === r ? 'start' : r;
        if (Af.isPath(t)) {
          var i;
          if ('end' === o) {
            var a = Df.last(e, t),
              u = dc(a, 2),
              s = u[1];
            i = s;
          } else {
            var l = Df.first(e, t),
              c = dc(l, 2),
              f = c[1];
            i = f;
          }
          var d = Df.get(e, i);
          if (!Vf.isText(d)) {
            throw new Error('Cannot get the '.concat(o, ' point in the node at path [')
              .concat(t, '] because it has no ')
              .concat(o, ' text node.'));
          }
          return {
            path: i,
            offset: 'end' === o ? d.text.length : 0
          };
        }
        if (jf.isRange(t)) {
          var p = jf.edges(t),
            h = dc(p, 2),
            v = h[0],
            g = h[1];
          return 'start' === o ? v : g;
        }
        return t;
      },
      pointRef: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          r = n.affinity,
          o = void 0 === r ? 'forward' : r,
          i = {
            current: t,
            affinity: o,
            unref: function () {
              var t = i.current;
              return hf.pointRefs(e)
                .delete(i), i.current = null, t;
            }
          },
          a = hf.pointRefs(e);
        return a.add(i), i;
      },
      pointRefs: function (e) {
        var t = bc.get(e);
        return t || (t = new Set, bc.set(e, t)), t;
      },
      positions: function* (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.at,
          r = void 0 === n ? e.selection : n,
          o = t.unit,
          i = void 0 === o ? 'offset' : o,
          a = t.reverse,
          u = void 0 !== a && a,
          s = t.voids,
          l = void 0 !== s && s;
        if (r) {
          var c,
            f = hf.range(e, r),
            d = jf.edges(f),
            p = dc(d, 2),
            h = p[0],
            v = p[1],
            g = u ? v : h,
            y = !1,
            m = '',
            b = 0,
            w = 0,
            E = 0,
            D = ff(hf.nodes(e, {
              at: r,
              reverse: u,
              voids: l
            }));
          try {
            for (D.s(); !(c = D.n()).done;) {
              var x = dc(c.value, 2),
                S = x[0],
                C = x[1];
              if (af.isElement(S)) {
                if (!l && e.isVoid(S)) {
                  yield hf.start(e, C);
                  continue;
                }
                if (e.isInline(S)) continue;
                if (hf.hasInlines(e, S)) {
                  var A = Af.isAncestor(C, v.path) ? v : hf.end(e, C),
                    O = Af.isAncestor(C, h.path) ? h : hf.start(e, C);
                  m = hf.string(e, {
                    anchor: O,
                    focus: A
                  }, { voids: l }), y = !0;
                }
              }
              if (Vf.isText(S)) {
                var k = Af.equals(C, g.path);
                for (k ? (w = u ? g.offset : S.text.length - g.offset, E = g.offset) : (w = S.text.length, E = u ? w : 0), (k || y || 'offset' === i) && (yield{
                  path: C,
                  offset: E
                }, y = !1); ;) {
                  if (0 === b) {
                    if ('' === m) break;
                    b = T(m, i, u), m = Ic(m, b, u)[1];
                  }
                  if (E = u ? E - b : E + b, (w -= b) < 0) {
                    b = -w;
                    break;
                  }
                  b = 0, yield{
                    path: C,
                    offset: E
                  };
                }
              }
            }
          } catch (e) {
            D.e(e);
          } finally {
            D.f();
          }
        }

        function T(e, t, n) {
          return 'character' === t ? Fc(e, n) : 'word' === t ? Nc(e, n) : 'line' === t || 'block' === t ? e.length : 1;
        }
      },
      previous: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.mode,
          r = void 0 === n ? 'lowest' : n,
          o = t.voids,
          i = void 0 !== o && o,
          a = t.match,
          u = t.at,
          s = void 0 === u ? e.selection : u;
        if (s) {
          var l = hf.before(e, s, { voids: i });
          if (l) {
            var c = hf.first(e, []),
              f = dc(c, 2),
              d = f[1],
              p = [l.path, d];
            if (Af.isPath(s) && 0 === s.length) throw new Error('Cannot get the previous node from the root node!');
            if (null == a) {
              if (Af.isPath(s)) {
                var h = hf.parent(e, s),
                  v = dc(h, 1),
                  g = v[0];
                a = function (e) {
                  return g.children.includes(e);
                };
              } else {
                a = function () {
                  return !0;
                };
              }
            }
            var y = hf.nodes(e, {
                reverse: !0,
                at: p,
                match: a,
                mode: r,
                voids: i
              }),
              m = dc(y, 1),
              b = m[0];
            return b;
          }
        }
      },
      range: function (e, t, n) {
        return jf.isRange(t) && !n ? t : {
          anchor: hf.start(e, t),
          focus: hf.end(e, n || t)
        };
      },
      rangeRef: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          r = n.affinity,
          o = void 0 === r ? 'forward' : r,
          i = {
            current: t,
            affinity: o,
            unref: function () {
              var t = i.current;
              return hf.rangeRefs(e)
                .delete(i), i.current = null, t;
            }
          },
          a = hf.rangeRefs(e);
        return a.add(i), i;
      },
      rangeRefs: function (e) {
        var t = wc.get(e);
        return t || (t = new Set, wc.set(e, t)), t;
      },
      removeMark: function (e, t) {
        e.removeMark(t);
      },
      setNormalizing: function (e, t) {
        yc.set(e, t);
      },
      start: function (e, t) {
        return hf.point(e, t, { edge: 'start' });
      },
      string: function (e, t) {
        var n,
          r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          o = r.voids,
          i = void 0 !== o && o,
          a = hf.range(e, t),
          u = jf.edges(a),
          s = dc(u, 2),
          l = s[0],
          c = s[1],
          f = '',
          d = ff(hf.nodes(e, {
            at: a,
            match: Vf.isText,
            voids: i
          }));
        try {
          for (d.s(); !(n = d.n()).done;) {
            var p = dc(n.value, 2),
              h = p[0],
              v = p[1],
              g = h.text;
            Af.equals(v, c.path) && (g = g.slice(0, c.offset)), Af.equals(v, l.path) && (g = g.slice(l.offset)), f += g;
          }
        } catch (e) {
          d.e(e);
        } finally {
          d.f();
        }
        return f;
      },
      unhangRange: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          r = n.voids,
          o = void 0 !== r && r,
          i = jf.edges(t),
          a = dc(i, 2),
          u = a[0],
          s = a[1];
        if (0 !== u.offset || 0 !== s.offset || jf.isCollapsed(t)) return t;
        var l,
          c = hf.above(e, {
            at: s,
            match: function (t) {
              return hf.isBlock(e, t);
            }
          }),
          f = c ? c[1] : [],
          d = hf.start(e, []),
          p = {
            anchor: d,
            focus: s
          },
          h = !0,
          v = ff(hf.nodes(e, {
            at: p,
            match: Vf.isText,
            reverse: !0,
            voids: o
          }));
        try {
          for (v.s(); !(l = v.n()).done;) {
            var g = dc(l.value, 2),
              y = g[0],
              m = g[1];
            if (h) {
              h = !1;
            } else if ('' !== y.text || Af.isBefore(m, f)) {
              s = {
                path: m,
                offset: y.text.length
              };
              break;
            }
          }
        } catch (e) {
          v.e(e);
        } finally {
          v.f();
        }
        return {
          anchor: u,
          focus: s
        };
      },
      void: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
        return hf.above(e, cf(cf({}, t), {}, {
          match: function (t) {
            return hf.isVoid(e, t);
          }
        }));
      },
      withoutNormalizing: function (e, t) {
        var n = hf.isNormalizing(e);
        hf.setNormalizing(e, !1);
        try {
          t();
        } finally {
          hf.setNormalizing(e, n);
        }
        hf.normalize(e);
      }
    },
    vf = {
      isLocation: function (e) {
        return Af.isPath(e) || Bf.isPoint(e) || jf.isRange(e);
      }
    },
    gf = {
      isSpan: function (e) {
        return Array.isArray(e) && 2 === e.length && e.every(Af.isPath);
      }
    },
    yf = ['children'],
    mf = ['text'];

  function bf(e, t) {
    var n = 'undefined' != typeof Symbol && e[Symbol.iterator] || e['@@iterator'];
    if (!n) {
      if (Array.isArray(e) || (n = function (e, t) {
        if (!e) return;
        if ('string' == typeof e) return wf(e, t);
        var n = Object.prototype.toString.call(e)
          .slice(8, -1);
        'Object' === n && e.constructor && (n = e.constructor.name);
        if ('Map' === n || 'Set' === n) return Array.from(e);
        if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return wf(e, t);
      }(e)) || t && e && 'number' == typeof e.length) {
        n && (e = n);
        var r = 0,
          o = function () {
          };
        return {
          s: o,
          n: function () {
            return r >= e.length ? { done: !0 } : {
              done: !1,
              value: e[r++]
            };
          },
          e: function (e) {
            throw e;
          },
          f: o
        };
      }
      throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
    }
    var i,
      a = !0,
      u = !1;
    return {
      s: function () {
        n = n.call(e);
      },
      n: function () {
        var e = n.next();
        return a = e.done, e;
      },
      e: function (e) {
        u = !0, i = e;
      },
      f: function () {
        try {
          a || null == n.return || n.return();
        } finally {
          if (u) throw i;
        }
      }
    };
  }

  function wf(e, t) {
    (null == t || t > e.length) && (t = e.length);
    for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
    return r;
  }

  var Ef = new WeakMap,
    Df = {
      ancestor: function (e, t) {
        var n = Df.get(e, t);
        if (Vf.isText(n)) {
          throw new Error('Cannot get the ancestor node at path ['.concat(t, '] because it refers to a text node instead: ')
            .concat(n));
        }
        return n;
      },
      ancestors: function* (e, t) {
        var n,
          r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          o = bf(Af.ancestors(t, r));
        try {
          for (o.s(); !(n = o.n()).done;) {
            var i = n.value,
              a = Df.ancestor(e, i),
              u = [a, i];
            yield u;
          }
        } catch (e) {
          o.e(e);
        } finally {
          o.f();
        }
      },
      child: function (e, t) {
        if (Vf.isText(e)) throw new Error('Cannot get the child of a text node: '.concat(JSON.stringify(e)));
        var n = e.children[t];
        if (null == n) {
          throw new Error('Cannot get child at index `'.concat(t, '` in node: ')
            .concat(JSON.stringify(e)));
        }
        return n;
      },
      children: function* (e, t) {
        for (var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, r = n.reverse, o = void 0 !== r && r, i = Df.ancestor(e, t), a = i.children, u = o ? a.length - 1 : 0; o ? u >= 0 : u < a.length;) {
          var s = Df.child(i, u),
            l = t.concat(u);
          yield[s, l], u = o ? u - 1 : u + 1;
        }
      },
      common: function (e, t, n) {
        var r = Af.common(t, n);
        return [Df.get(e, r), r];
      },
      descendant: function (e, t) {
        var n = Df.get(e, t);
        if (hf.isEditor(n)) {
          throw new Error('Cannot get the descendant node at path ['.concat(t, '] because it refers to the root editor node instead: ')
            .concat(n));
        }
        return n;
      },
      descendants: function* (e) {
        var t,
          n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          r = bf(Df.nodes(e, n));
        try {
          for (r.s(); !(t = r.n()).done;) {
            var o = dc(t.value, 2),
              i = o[0],
              a = o[1];
            0 !== a.length && (yield[i, a]);
          }
        } catch (e) {
          r.e(e);
        } finally {
          r.f();
        }
      },
      elements: function* (e) {
        var t,
          n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          r = bf(Df.nodes(e, n));
        try {
          for (r.s(); !(t = r.n()).done;) {
            var o = dc(t.value, 2),
              i = o[0],
              a = o[1];
            af.isElement(i) && (yield[i, a]);
          }
        } catch (e) {
          r.e(e);
        } finally {
          r.f();
        }
      },
      extractProps: function (e) {
        return af.isAncestor(e) ? (e.children, Oc(e, yf)) : (e.text, Oc(e, mf));
      },
      first: function (e, t) {
        for (var n = t.slice(), r = Df.get(e, n); r && !Vf.isText(r) && 0 !== r.children.length;) r = r.children[0], n.push(0);
        return [r, n];
      },
      fragment: function (e, t) {
        if (Vf.isText(e)) throw new Error('Cannot get a fragment starting from a root text node: '.concat(JSON.stringify(e)));
        var n = ec.produce({ children: e.children }, (function (e) {
          var n,
            r = jf.edges(t),
            o = dc(r, 2),
            i = o[0],
            a = o[1],
            u = Df.nodes(e, {
              reverse: !0,
              pass: function (e) {
                var n = dc(e, 2)[1];
                return !jf.includes(t, n);
              }
            }),
            s = bf(u);
          try {
            for (s.s(); !(n = s.n()).done;) {
              var l = dc(n.value, 2)[1];
              if (!jf.includes(t, l)) {
                var c = Df.parent(e, l),
                  f = l[l.length - 1];
                c.children.splice(f, 1);
              }
              if (Af.equals(l, a.path)) {
                var d = Df.leaf(e, l);
                d.text = d.text.slice(0, a.offset);
              }
              if (Af.equals(l, i.path)) {
                var p = Df.leaf(e, l);
                p.text = p.text.slice(i.offset);
              }
            }
          } catch (e) {
            s.e(e);
          } finally {
            s.f();
          }
          hf.isEditor(e) && (e.selection = null);
        }));
        return n.children;
      },
      get: function (e, t) {
        for (var n = e, r = 0; r < t.length; r++) {
          var o = t[r];
          if (Vf.isText(n) || !n.children[o]) {
            throw new Error('Cannot find a descendant at path ['.concat(t, '] in node: ')
              .concat(JSON.stringify(e)));
          }
          n = n.children[o];
        }
        return n;
      },
      has: function (e, t) {
        for (var n = e, r = 0; r < t.length; r++) {
          var o = t[r];
          if (Vf.isText(n) || !n.children[o]) return !1;
          n = n.children[o];
        }
        return !0;
      },
      isNode: function (e) {
        return Vf.isText(e) || af.isElement(e) || hf.isEditor(e);
      },
      isNodeList: function (e) {
        if (!Array.isArray(e)) return !1;
        var t = Ef.get(e);
        if (void 0 !== t) return t;
        var n = e.every((function (e) {
          return Df.isNode(e);
        }));
        return Ef.set(e, n), n;
      },
      last: function (e, t) {
        for (var n = t.slice(), r = Df.get(e, n); r && !Vf.isText(r) && 0 !== r.children.length;) {
          var o = r.children.length - 1;
          r = r.children[o], n.push(o);
        }
        return [r, n];
      },
      leaf: function (e, t) {
        var n = Df.get(e, t);
        if (!Vf.isText(n)) {
          throw new Error('Cannot get the leaf node at path ['.concat(t, '] because it refers to a non-leaf node: ')
            .concat(n));
        }
        return n;
      },
      levels: function* (e, t) {
        var n,
          r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
          o = bf(Af.levels(t, r));
        try {
          for (o.s(); !(n = o.n()).done;) {
            var i = n.value,
              a = Df.get(e, i);
            yield[a, i];
          }
        } catch (e) {
          o.e(e);
        } finally {
          o.f();
        }
      },
      matches: function (e, t) {
        return af.isElement(e) && af.isElementProps(t) && af.matches(e, t) || Vf.isText(e) && Vf.isTextProps(t) && Vf.matches(e, t);
      },
      nodes: function* (e) {
        for (var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.pass, r = t.reverse, o = void 0 !== r && r, i = t.from, a = void 0 === i ? [] : i, u = t.to, s = new Set, l = [], c = e; !u || !(o ? Af.isBefore(l, u) : Af.isAfter(l, u));) {
          if (s.has(c) || (yield[c, l]), s.has(c) || Vf.isText(c) || 0 === c.children.length || null != n && !1 !== n([c, l])) {
            if (0 === l.length) break;
            if (!o) {
              var f = Af.next(l);
              if (Df.has(e, f)) {
                l = f, c = Df.get(e, l);
                continue;
              }
            }
            if (o && 0 !== l[l.length - 1]) {
              var d = Af.previous(l);
              l = d, c = Df.get(e, l);
            } else {
              l = Af.parent(l), c = Df.get(e, l), s.add(c);
            }
          } else {
            s.add(c);
            var p = o ? c.children.length - 1 : 0;
            Af.isAncestor(l, a) && (p = a[l.length]), l = l.concat(p), c = Df.get(e, l);
          }
        }
      },
      parent: function (e, t) {
        var n = Af.parent(t),
          r = Df.get(e, n);
        if (Vf.isText(r)) throw new Error('Cannot get the parent of path ['.concat(t, '] because it does not exist in the root.'));
        return r;
      },
      string: function (e) {
        return Vf.isText(e) ? e.text : e.children.map(Df.string)
          .join('');
      },
      texts: function* (e) {
        var t,
          n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          r = bf(Df.nodes(e, n));
        try {
          for (r.s(); !(t = r.n()).done;) {
            var o = dc(t.value, 2),
              i = o[0],
              a = o[1];
            Vf.isText(i) && (yield[i, a]);
          }
        } catch (e) {
          r.e(e);
        } finally {
          r.f();
        }
      }
    };

  function xf(e, t) {
    var n = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var r = Object.getOwnPropertySymbols(e);
      t && (r = r.filter((function (t) {
        return Object.getOwnPropertyDescriptor(e, t).enumerable;
      }))), n.push.apply(n, r);
    }
    return n;
  }

  function Sf(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = null != arguments[t] ? arguments[t] : {};
      t % 2 ? xf(Object(n), !0)
        .forEach((function (t) {
          hc(e, t, n[t]);
        })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xf(Object(n))
        .forEach((function (t) {
          Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
        }));
    }
    return e;
  }

  var Cf = {
      isNodeOperation: function (e) {
        return Cf.isOperation(e) && e.type.endsWith('_node');
      },
      isOperation: function (e) {
        if (!Ql.isPlainObject(e)) return !1;
        switch (e.type) {
          case'insert_node':
          case'remove_node':
            return Af.isPath(e.path) && Df.isNode(e.node);
          case'insert_text':
          case'remove_text':
            return 'number' == typeof e.offset && 'string' == typeof e.text && Af.isPath(e.path);
          case'merge_node':
            return 'number' == typeof e.position && Af.isPath(e.path) && Ql.isPlainObject(e.properties);
          case'move_node':
            return Af.isPath(e.path) && Af.isPath(e.newPath);
          case'set_node':
            return Af.isPath(e.path) && Ql.isPlainObject(e.properties) && Ql.isPlainObject(e.newProperties);
          case'set_selection':
            return null === e.properties && jf.isRange(e.newProperties) || null === e.newProperties && jf.isRange(e.properties) || Ql.isPlainObject(e.properties) && Ql.isPlainObject(e.newProperties);
          case'split_node':
            return Af.isPath(e.path) && 'number' == typeof e.position && Ql.isPlainObject(e.properties);
          default:
            return !1;
        }
      },
      isOperationList: function (e) {
        return Array.isArray(e) && e.every((function (e) {
          return Cf.isOperation(e);
        }));
      },
      isSelectionOperation: function (e) {
        return Cf.isOperation(e) && e.type.endsWith('_selection');
      },
      isTextOperation: function (e) {
        return Cf.isOperation(e) && e.type.endsWith('_text');
      },
      inverse: function (e) {
        switch (e.type) {
          case'insert_node':
            return Sf(Sf({}, e), {}, { type: 'remove_node' });
          case'insert_text':
            return Sf(Sf({}, e), {}, { type: 'remove_text' });
          case'merge_node':
            return Sf(Sf({}, e), {}, {
              type: 'split_node',
              path: Af.previous(e.path)
            });
          case'move_node':
            var t = e.newPath,
              n = e.path;
            if (Af.equals(t, n)) return e;
            if (Af.isSibling(n, t)) {
              return Sf(Sf({}, e), {}, {
                path: t,
                newPath: n
              });
            }
            var r = Af.transform(n, e),
              o = Af.transform(Af.next(n), e);
            return Sf(Sf({}, e), {}, {
              path: r,
              newPath: o
            });
          case'remove_node':
            return Sf(Sf({}, e), {}, { type: 'insert_node' });
          case'remove_text':
            return Sf(Sf({}, e), {}, { type: 'insert_text' });
          case'set_node':
            var i = e.properties,
              a = e.newProperties;
            return Sf(Sf({}, e), {}, {
              properties: a,
              newProperties: i
            });
          case'set_selection':
            var u = e.properties,
              s = e.newProperties;
            return Sf(Sf({}, e), {}, null == u ? {
              properties: s,
              newProperties: null
            } : null == s ? {
              properties: null,
              newProperties: u
            } : {
              properties: s,
              newProperties: u
            });
          case'split_node':
            return Sf(Sf({}, e), {}, {
              type: 'merge_node',
              path: Af.next(e.path)
            });
        }
      }
    },
    Af = {
      ancestors: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.reverse,
          r = void 0 !== n && n,
          o = Af.levels(e, t);
        return o = r ? o.slice(1) : o.slice(0, -1);
      },
      common: function (e, t) {
        for (var n = [], r = 0; r < e.length && r < t.length; r++) {
          var o = e[r];
          if (o !== t[r]) break;
          n.push(o);
        }
        return n;
      },
      compare: function (e, t) {
        for (var n = Math.min(e.length, t.length), r = 0; r < n; r++) {
          if (e[r] < t[r]) return -1;
          if (e[r] > t[r]) return 1;
        }
        return 0;
      },
      endsAfter: function (e, t) {
        var n = e.length - 1,
          r = e.slice(0, n),
          o = t.slice(0, n),
          i = e[n],
          a = t[n];
        return Af.equals(r, o) && i > a;
      },
      endsAt: function (e, t) {
        var n = e.length,
          r = e.slice(0, n),
          o = t.slice(0, n);
        return Af.equals(r, o);
      },
      endsBefore: function (e, t) {
        var n = e.length - 1,
          r = e.slice(0, n),
          o = t.slice(0, n),
          i = e[n],
          a = t[n];
        return Af.equals(r, o) && i < a;
      },
      equals: function (e, t) {
        return e.length === t.length && e.every((function (e, n) {
          return e === t[n];
        }));
      },
      hasPrevious: function (e) {
        return e[e.length - 1] > 0;
      },
      isAfter: function (e, t) {
        return 1 === Af.compare(e, t);
      },
      isAncestor: function (e, t) {
        return e.length < t.length && 0 === Af.compare(e, t);
      },
      isBefore: function (e, t) {
        return -1 === Af.compare(e, t);
      },
      isChild: function (e, t) {
        return e.length === t.length + 1 && 0 === Af.compare(e, t);
      },
      isCommon: function (e, t) {
        return e.length <= t.length && 0 === Af.compare(e, t);
      },
      isDescendant: function (e, t) {
        return e.length > t.length && 0 === Af.compare(e, t);
      },
      isParent: function (e, t) {
        return e.length + 1 === t.length && 0 === Af.compare(e, t);
      },
      isPath: function (e) {
        return Array.isArray(e) && (0 === e.length || 'number' == typeof e[0]);
      },
      isSibling: function (e, t) {
        if (e.length !== t.length) return !1;
        var n = e.slice(0, -1),
          r = t.slice(0, -1);
        return e[e.length - 1] !== t[t.length - 1] && Af.equals(n, r);
      },
      levels: function (e) {
        for (var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.reverse, r = void 0 !== n && n, o = [], i = 0; i <= e.length; i++) o.push(e.slice(0, i));
        return r && o.reverse(), o;
      },
      next: function (e) {
        if (0 === e.length) throw new Error('Cannot get the next path of a root path ['.concat(e, '], because it has no next index.'));
        var t = e[e.length - 1];
        return e.slice(0, -1)
          .concat(t + 1);
      },
      parent: function (e) {
        if (0 === e.length) throw new Error('Cannot get the parent path of the root path ['.concat(e, '].'));
        return e.slice(0, -1);
      },
      previous: function (e) {
        if (0 === e.length) throw new Error('Cannot get the previous path of a root path ['.concat(e, '], because it has no previous index.'));
        var t = e[e.length - 1];
        if (t <= 0) throw new Error('Cannot get the previous path of a first child path ['.concat(e, '] because it would result in a negative index.'));
        return e.slice(0, -1)
          .concat(t - 1);
      },
      relative: function (e, t) {
        if (!Af.isAncestor(t, e) && !Af.equals(e, t)) {
          throw new Error('Cannot get the relative path of ['.concat(e, '] inside ancestor [')
            .concat(t, '], because it is not above or equal to the path.'));
        }
        return e.slice(t.length);
      },
      transform: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
        return ec.produce(e, (function (r) {
          var o = n.affinity,
            i = void 0 === o ? 'forward' : o;
          if (e && 0 !== (null == e ? void 0 : e.length)) {
            if (null === r) return null;
            switch (t.type) {
              case'insert_node':
                var a = t.path;
                (Af.equals(a, r) || Af.endsBefore(a, r) || Af.isAncestor(a, r)) && (r[a.length - 1] += 1);
                break;
              case'remove_node':
                var u = t.path;
                if (Af.equals(u, r) || Af.isAncestor(u, r)) return null;
                Af.endsBefore(u, r) && (r[u.length - 1] -= 1);
                break;
              case'merge_node':
                var s = t.path,
                  l = t.position;
                Af.equals(s, r) || Af.endsBefore(s, r) ? r[s.length - 1] -= 1 : Af.isAncestor(s, r) && (r[s.length - 1] -= 1, r[s.length] += l);
                break;
              case'split_node':
                var c = t.path,
                  f = t.position;
                if (Af.equals(c, r)) {
                  if ('forward' === i) r[r.length - 1] += 1; else if ('backward' !== i) return null;
                } else {
                  Af.endsBefore(c, r) ? r[c.length - 1] += 1 : Af.isAncestor(c, r) && e[c.length] >= f && (r[c.length - 1] += 1, r[c.length] -= f);
                }
                break;
              case'move_node':
                var d = t.path,
                  p = t.newPath;
                if (Af.equals(d, p)) return;
                if (Af.isAncestor(d, r) || Af.equals(d, r)) {
                  var h = p.slice();
                  return Af.endsBefore(d, p) && d.length < p.length && (h[d.length - 1] -= 1), h.concat(r.slice(d.length));
                }
                Af.isSibling(d, p) && (Af.isAncestor(p, r) || Af.equals(p, r)) ? Af.endsBefore(d, r) ? r[d.length - 1] -= 1 : r[d.length - 1] += 1 : Af.endsBefore(p, r) || Af.equals(p, r) || Af.isAncestor(p, r) ? (Af.endsBefore(d, r) && (r[d.length - 1] -= 1), r[p.length - 1] += 1) : Af.endsBefore(d, r) && (Af.equals(p, r) && (r[p.length - 1] += 1), r[d.length - 1] -= 1);
            }
          }
        }));
      }
    },
    Of = {
      transform: function (e, t) {
        var n = e.current,
          r = e.affinity;
        if (null != n) {
          var o = Af.transform(n, t, { affinity: r });
          e.current = o, null == o && e.unref();
        }
      }
    };

  function kf(e, t) {
    var n = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var r = Object.getOwnPropertySymbols(e);
      t && (r = r.filter((function (t) {
        return Object.getOwnPropertyDescriptor(e, t).enumerable;
      }))), n.push.apply(n, r);
    }
    return n;
  }

  function Tf(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = null != arguments[t] ? arguments[t] : {};
      t % 2 ? kf(Object(n), !0)
        .forEach((function (t) {
          hc(e, t, n[t]);
        })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kf(Object(n))
        .forEach((function (t) {
          Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
        }));
    }
    return e;
  }

  var Bf = {
      compare: function (e, t) {
        var n = Af.compare(e.path, t.path);
        return 0 === n ? e.offset < t.offset ? -1 : e.offset > t.offset ? 1 : 0 : n;
      },
      isAfter: function (e, t) {
        return 1 === Bf.compare(e, t);
      },
      isBefore: function (e, t) {
        return -1 === Bf.compare(e, t);
      },
      equals: function (e, t) {
        return e.offset === t.offset && Af.equals(e.path, t.path);
      },
      isPoint: function (e) {
        return Ql.isPlainObject(e) && 'number' == typeof e.offset && Af.isPath(e.path);
      },
      transform: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
        return ec.produce(e, (function (e) {
          if (null === e) return null;
          var r = n.affinity,
            o = void 0 === r ? 'forward' : r,
            i = e.path,
            a = e.offset;
          switch (t.type) {
            case'insert_node':
            case'move_node':
              e.path = Af.transform(i, t, n);
              break;
            case'insert_text':
              Af.equals(t.path, i) && t.offset <= a && (e.offset += t.text.length);
              break;
            case'merge_node':
              Af.equals(t.path, i) && (e.offset += t.position), e.path = Af.transform(i, t, n);
              break;
            case'remove_text':
              Af.equals(t.path, i) && t.offset <= a && (e.offset -= Math.min(a - t.offset, t.text.length));
              break;
            case'remove_node':
              if (Af.equals(t.path, i) || Af.isAncestor(t.path, i)) return null;
              e.path = Af.transform(i, t, n);
              break;
            case'split_node':
              if (Af.equals(t.path, i)) {
                if (t.position === a && null == o) return null;
                (t.position < a || t.position === a && 'forward' === o) && (e.offset -= t.position, e.path = Af.transform(i, t, Tf(Tf({}, n), {}, { affinity: 'forward' })));
              } else {
                e.path = Af.transform(i, t, n);
              }
          }
        }));
      }
    },
    Ff = {
      transform: function (e, t) {
        var n = e.current,
          r = e.affinity;
        if (null != n) {
          var o = Bf.transform(n, t, { affinity: r });
          e.current = o, null == o && e.unref();
        }
      }
    },
    _f = ['anchor', 'focus'];

  function Pf(e, t) {
    var n = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var r = Object.getOwnPropertySymbols(e);
      t && (r = r.filter((function (t) {
        return Object.getOwnPropertyDescriptor(e, t).enumerable;
      }))), n.push.apply(n, r);
    }
    return n;
  }

  var jf = {
      edges: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          n = t.reverse,
          r = void 0 !== n && n,
          o = e.anchor,
          i = e.focus;
        return jf.isBackward(e) === r ? [o, i] : [i, o];
      },
      end: function (e) {
        var t = jf.edges(e),
          n = dc(t, 2)[1];
        return n;
      },
      equals: function (e, t) {
        return Bf.equals(e.anchor, t.anchor) && Bf.equals(e.focus, t.focus);
      },
      includes: function (e, t) {
        if (jf.isRange(t)) {
          if (jf.includes(e, t.anchor) || jf.includes(e, t.focus)) return !0;
          var n = jf.edges(e),
            r = dc(n, 2),
            o = r[0],
            i = r[1],
            a = jf.edges(t),
            u = dc(a, 2),
            s = u[0],
            l = u[1];
          return Bf.isBefore(o, s) && Bf.isAfter(i, l);
        }
        var c = jf.edges(e),
          f = dc(c, 2),
          d = f[0],
          p = f[1],
          h = !1,
          v = !1;
        return Bf.isPoint(t) ? (h = Bf.compare(t, d) >= 0, v = Bf.compare(t, p) <= 0) : (h = Af.compare(t, d.path) >= 0, v = Af.compare(t, p.path) <= 0), h && v;
      },
      intersection: function (e, t) {
        e.anchor, e.focus;
        var n = Oc(e, _f),
          r = jf.edges(e),
          o = dc(r, 2),
          i = o[0],
          a = o[1],
          u = jf.edges(t),
          s = dc(u, 2),
          l = s[0],
          c = s[1],
          f = Bf.isBefore(i, l) ? l : i,
          d = Bf.isBefore(a, c) ? a : c;
        return Bf.isBefore(d, f) ? null : function (e) {
          for (var t = 1; t < arguments.length; t++) {
            var n = null != arguments[t] ? arguments[t] : {};
            t % 2 ? Pf(Object(n), !0)
              .forEach((function (t) {
                hc(e, t, n[t]);
              })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Pf(Object(n))
              .forEach((function (t) {
                Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
              }));
          }
          return e;
        }({
          anchor: f,
          focus: d
        }, n);
      },
      isBackward: function (e) {
        var t = e.anchor,
          n = e.focus;
        return Bf.isAfter(t, n);
      },
      isCollapsed: function (e) {
        var t = e.anchor,
          n = e.focus;
        return Bf.equals(t, n);
      },
      isExpanded: function (e) {
        return !jf.isCollapsed(e);
      },
      isForward: function (e) {
        return !jf.isBackward(e);
      },
      isRange: function (e) {
        return Ql.isPlainObject(e) && Bf.isPoint(e.anchor) && Bf.isPoint(e.focus);
      },
      points: function* (e) {
        yield[e.anchor, 'anchor'], yield[e.focus, 'focus'];
      },
      start: function (e) {
        var t = jf.edges(e),
          n = dc(t, 1)[0];
        return n;
      },
      transform: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
        return ec.produce(e, (function (e) {
          if (null === e) return null;
          var r,
            o,
            i = n.affinity,
            a = void 0 === i ? 'inward' : i;
          if ('inward' === a) {
            var u = jf.isCollapsed(e);
            jf.isForward(e) ? (r = 'forward', o = u ? r : 'backward') : (r = 'backward', o = u ? r : 'forward');
          } else {
            'outward' === a ? jf.isForward(e) ? (r = 'backward', o = 'forward') : (r = 'forward', o = 'backward') : (r = a, o = a);
          }
          var s = Bf.transform(e.anchor, t, { affinity: r }),
            l = Bf.transform(e.focus, t, { affinity: o });
          if (!s || !l) return null;
          e.anchor = s, e.focus = l;
        }));
      }
    },
    Nf = {
      transform: function (e, t) {
        var n = e.current,
          r = e.affinity;
        if (null != n) {
          var o = jf.transform(n, t, { affinity: r });
          e.current = o, null == o && e.unref();
        }
      }
    },
    If = function e(t, n) {
      for (var r in t) {
        var o = t[r],
          i = n[r];
        if (Ql.isPlainObject(o) && Ql.isPlainObject(i)) {
          if (!e(o, i)) return !1;
        } else if (Array.isArray(o) && Array.isArray(i)) {
          if (o.length !== i.length) return !1;
          for (var a = 0; a < o.length; a++) if (o[a] !== i[a]) return !1;
        } else if (o !== i) return !1;
      }
      for (var u in n) if (void 0 === t[u] && void 0 !== n[u]) return !1;
      return !0;
    },
    Rf = ['text'],
    Mf = ['anchor', 'focus'];

  function Lf(e, t) {
    var n = 'undefined' != typeof Symbol && e[Symbol.iterator] || e['@@iterator'];
    if (!n) {
      if (Array.isArray(e) || (n = function (e, t) {
        if (!e) return;
        if ('string' == typeof e) return zf(e, t);
        var n = Object.prototype.toString.call(e)
          .slice(8, -1);
        'Object' === n && e.constructor && (n = e.constructor.name);
        if ('Map' === n || 'Set' === n) return Array.from(e);
        if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return zf(e, t);
      }(e)) || t && e && 'number' == typeof e.length) {
        n && (e = n);
        var r = 0,
          o = function () {
          };
        return {
          s: o,
          n: function () {
            return r >= e.length ? { done: !0 } : {
              done: !1,
              value: e[r++]
            };
          },
          e: function (e) {
            throw e;
          },
          f: o
        };
      }
      throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
    }
    var i,
      a = !0,
      u = !1;
    return {
      s: function () {
        n = n.call(e);
      },
      n: function () {
        var e = n.next();
        return a = e.done, e;
      },
      e: function (e) {
        u = !0, i = e;
      },
      f: function () {
        try {
          a || null == n.return || n.return();
        } finally {
          if (u) throw i;
        }
      }
    };
  }

  function zf(e, t) {
    (null == t || t > e.length) && (t = e.length);
    for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
    return r;
  }

  function $f(e, t) {
    var n = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var r = Object.getOwnPropertySymbols(e);
      t && (r = r.filter((function (t) {
        return Object.getOwnPropertyDescriptor(e, t).enumerable;
      }))), n.push.apply(n, r);
    }
    return n;
  }

  function Hf(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = null != arguments[t] ? arguments[t] : {};
      t % 2 ? $f(Object(n), !0)
        .forEach((function (t) {
          hc(e, t, n[t]);
        })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $f(Object(n))
        .forEach((function (t) {
          Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
        }));
    }
    return e;
  }

  var Vf = {
    equals: function (e, t) {
      var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
        r = n.loose,
        o = void 0 !== r && r;

      function i(e) {
        return e.text, Oc(e, Rf);
      }

      return If(o ? i(e) : e, o ? i(t) : t);
    },
    isText: function (e) {
      return Ql.isPlainObject(e) && 'string' == typeof e.text;
    },
    isTextList: function (e) {
      return Array.isArray(e) && e.every((function (e) {
        return Vf.isText(e);
      }));
    },
    isTextProps: function (e) {
      return void 0 !== e.text;
    },
    matches: function (e, t) {
      for (var n in t) if ('text' !== n && (!e.hasOwnProperty(n) || e[n] !== t[n])) return !1;
      return !0;
    },
    decorations: function (e, t) {
      var n,
        r = [Hf({}, e)],
        o = Lf(t);
      try {
        for (o.s(); !(n = o.n()).done;) {
          var i,
            a = n.value,
            u = (a.anchor, a.focus, Oc(a, Mf)),
            s = jf.edges(a),
            l = dc(s, 2),
            c = l[0],
            f = l[1],
            d = [],
            p = 0,
            h = Lf(r);
          try {
            for (h.s(); !(i = h.n()).done;) {
              var v = i.value,
                g = v.text.length,
                y = p;
              if (p += g, c.offset <= y && f.offset >= p) {
                Object.assign(v, u), d.push(v);
              } else if (c.offset !== f.offset && (c.offset === p || f.offset === y) || c.offset > p || f.offset < y || f.offset === y && 0 !== y) {
                d.push(v);
              } else {
                var m = v,
                  b = void 0,
                  w = void 0;
                if (f.offset < p) {
                  var E = f.offset - y;
                  w = Hf(Hf({}, m), {}, { text: m.text.slice(E) }), m = Hf(Hf({}, m), {}, { text: m.text.slice(0, E) });
                }
                if (c.offset > y) {
                  var D = c.offset - y;
                  b = Hf(Hf({}, m), {}, { text: m.text.slice(0, D) }), m = Hf(Hf({}, m), {}, { text: m.text.slice(D) });
                }
                Object.assign(m, u), b && d.push(b), d.push(m), w && d.push(w);
              }
            }
          } catch (e) {
            h.e(e);
          } finally {
            h.f();
          }
          r = d;
        }
      } catch (e) {
        o.e(e);
      } finally {
        o.f();
      }
      return r;
    }
  };

  function Uf(e, t) {
    var n = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var r = Object.getOwnPropertySymbols(e);
      t && (r = r.filter((function (t) {
        return Object.getOwnPropertyDescriptor(e, t).enumerable;
      }))), n.push.apply(n, r);
    }
    return n;
  }

  function Wf(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = null != arguments[t] ? arguments[t] : {};
      t % 2 ? Uf(Object(n), !0)
        .forEach((function (t) {
          hc(e, t, n[t]);
        })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Uf(Object(n))
        .forEach((function (t) {
          Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
        }));
    }
    return e;
  }

  function Gf(e, t) {
    var n = 'undefined' != typeof Symbol && e[Symbol.iterator] || e['@@iterator'];
    if (!n) {
      if (Array.isArray(e) || (n = function (e, t) {
        if (!e) return;
        if ('string' == typeof e) return qf(e, t);
        var n = Object.prototype.toString.call(e)
          .slice(8, -1);
        'Object' === n && e.constructor && (n = e.constructor.name);
        if ('Map' === n || 'Set' === n) return Array.from(e);
        if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return qf(e, t);
      }(e)) || t && e && 'number' == typeof e.length) {
        n && (e = n);
        var r = 0,
          o = function () {
          };
        return {
          s: o,
          n: function () {
            return r >= e.length ? { done: !0 } : {
              done: !1,
              value: e[r++]
            };
          },
          e: function (e) {
            throw e;
          },
          f: o
        };
      }
      throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
    }
    var i,
      a = !0,
      u = !1;
    return {
      s: function () {
        n = n.call(e);
      },
      n: function () {
        var e = n.next();
        return a = e.done, e;
      },
      e: function (e) {
        u = !0, i = e;
      },
      f: function () {
        try {
          a || null == n.return || n.return();
        } finally {
          if (u) throw i;
        }
      }
    };
  }

  function qf(e, t) {
    (null == t || t > e.length) && (t = e.length);
    for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
    return r;
  }

  var Kf = {
      transform: function (e, t) {
        e.children = ec.createDraft(e.children);
        var n = e.selection && ec.createDraft(e.selection);
        try {
          n = function (e, t, n) {
            switch (n.type) {
              case'insert_node':
                var r = n.path,
                  o = n.node,
                  i = Df.parent(e, r),
                  a = r[r.length - 1];
                if (a > i.children.length) throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r, '] because the destination is past the end of the node.'));
                if (i.children.splice(a, 0, o), t) {
                  var u,
                    s = Gf(jf.points(t));
                  try {
                    for (s.s(); !(u = s.n()).done;) {
                      var l = dc(u.value, 2),
                        c = l[0];
                      t[l[1]] = Bf.transform(c, n);
                    }
                  } catch (e) {
                    s.e(e);
                  } finally {
                    s.f();
                  }
                }
                break;
              case'insert_text':
                var f = n.path,
                  d = n.offset,
                  p = n.text;
                if (0 === p.length) break;
                var h = Df.leaf(e, f),
                  v = h.text.slice(0, d),
                  g = h.text.slice(d);
                if (h.text = v + p + g, t) {
                  var y,
                    m = Gf(jf.points(t));
                  try {
                    for (m.s(); !(y = m.n()).done;) {
                      var b = dc(y.value, 2),
                        w = b[0];
                      t[b[1]] = Bf.transform(w, n);
                    }
                  } catch (e) {
                    m.e(e);
                  } finally {
                    m.f();
                  }
                }
                break;
              case'merge_node':
                var E = n.path,
                  D = Df.get(e, E),
                  x = Af.previous(E),
                  S = Df.get(e, x),
                  C = Df.parent(e, E),
                  A = E[E.length - 1];
                if (Vf.isText(D) && Vf.isText(S)) {
                  S.text += D.text;
                } else {
                  if (Vf.isText(D) || Vf.isText(S)) {
                    throw new Error('Cannot apply a "merge_node" operation at path ['.concat(E, '] to nodes of different interfaces: ')
                      .concat(D, ' ')
                      .concat(S));
                  }
                  var O;
                  (O = S.children).push.apply(O, sc(D.children));
                }
                if (C.children.splice(A, 1), t) {
                  var k,
                    T = Gf(jf.points(t));
                  try {
                    for (T.s(); !(k = T.n()).done;) {
                      var B = dc(k.value, 2),
                        F = B[0];
                      t[B[1]] = Bf.transform(F, n);
                    }
                  } catch (e) {
                    T.e(e);
                  } finally {
                    T.f();
                  }
                }
                break;
              case'move_node':
                var _ = n.path,
                  P = n.newPath;
                if (Af.isAncestor(_, P)) {
                  throw new Error('Cannot move a path ['.concat(_, '] to new path [')
                    .concat(P, '] because the destination is inside itself.'));
                }
                var j = Df.get(e, _),
                  N = Df.parent(e, _),
                  I = _[_.length - 1];
                N.children.splice(I, 1);
                var R = Af.transform(_, n),
                  M = Df.get(e, Af.parent(R)),
                  L = R[R.length - 1];
                if (M.children.splice(L, 0, j), t) {
                  var z,
                    $ = Gf(jf.points(t));
                  try {
                    for ($.s(); !(z = $.n()).done;) {
                      var H = dc(z.value, 2),
                        V = H[0];
                      t[H[1]] = Bf.transform(V, n);
                    }
                  } catch (e) {
                    $.e(e);
                  } finally {
                    $.f();
                  }
                }
                break;
              case'remove_node':
                var U = n.path,
                  W = U[U.length - 1];
                if (Df.parent(e, U)
                  .children
                  .splice(W, 1), t) {
                  var G,
                    q = Gf(jf.points(t));
                  try {
                    for (q.s(); !(G = q.n()).done;) {
                      var K = dc(G.value, 2),
                        Y = K[0],
                        X = K[1],
                        Z = Bf.transform(Y, n);
                      if (null != t && null != Z) {
                        t[X] = Z;
                      } else {
                        var J,
                          Q = void 0,
                          ee = void 0,
                          te = Gf(Df.texts(e));
                        try {
                          for (te.s(); !(J = te.n()).done;) {
                            var ne = dc(J.value, 2),
                              re = ne[0],
                              oe = ne[1];
                            if (-1 !== Af.compare(oe, U)) {
                              ee = [re, oe];
                              break;
                            }
                            Q = [re, oe];
                          }
                        } catch (e) {
                          te.e(e);
                        } finally {
                          te.f();
                        }
                        var ie = !1;
                        Q && ee && (ie = Af.equals(ee[1], U) ? !Af.hasPrevious(ee[1]) : Af.common(Q[1], U).length < Af.common(ee[1], U).length), Q && !ie ? (Y.path = Q[1], Y.offset = Q[0].text.length) : ee ? (Y.path = ee[1], Y.offset = 0) : t = null;
                      }
                    }
                  } catch (e) {
                    q.e(e);
                  } finally {
                    q.f();
                  }
                }
                break;
              case'remove_text':
                var ae = n.path,
                  ue = n.offset,
                  se = n.text;
                if (0 === se.length) break;
                var le = Df.leaf(e, ae),
                  ce = le.text.slice(0, ue),
                  fe = le.text.slice(ue + se.length);
                if (le.text = ce + fe, t) {
                  var de,
                    pe = Gf(jf.points(t));
                  try {
                    for (pe.s(); !(de = pe.n()).done;) {
                      var he = dc(de.value, 2),
                        ve = he[0];
                      t[he[1]] = Bf.transform(ve, n);
                    }
                  } catch (e) {
                    pe.e(e);
                  } finally {
                    pe.f();
                  }
                }
                break;
              case'set_node':
                var ge = n.path,
                  ye = n.properties,
                  me = n.newProperties;
                if (0 === ge.length) throw new Error('Cannot set properties on the root node!');
                var be = Df.get(e, ge);
                for (var we in me) {
                  if ('children' === we || 'text' === we) throw new Error('Cannot set the "'.concat(we, '" property of nodes!'));
                  var Ee = me[we];
                  null == Ee ? delete be[we] : be[we] = Ee;
                }
                for (var De in ye) me.hasOwnProperty(De) || delete be[De];
                break;
              case'set_selection':
                var xe = n.newProperties;
                if (null == xe) {
                  t = xe;
                } else {
                  if (null == t) {
                    if (!jf.isRange(xe)) throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(xe), ' when there is no current selection.'));
                    t = Wf({}, xe);
                  }
                  for (var Se in xe) {
                    var Ce = xe[Se];
                    if (null == Ce) {
                      if ('anchor' === Se || 'focus' === Se) throw new Error('Cannot remove the "'.concat(Se, '" selection property'));
                      delete t[Se];
                    } else {
                      t[Se] = Ce;
                    }
                  }
                }
                break;
              case'split_node':
                var Ae = n.path,
                  Oe = n.position,
                  ke = n.properties;
                if (0 === Ae.length) throw new Error('Cannot apply a "split_node" operation at path ['.concat(Ae, '] because the root node cannot be split.'));
                var Te,
                  Be = Df.get(e, Ae),
                  Fe = Df.parent(e, Ae),
                  _e = Ae[Ae.length - 1];
                if (Vf.isText(Be)) {
                  var Pe = Be.text.slice(0, Oe),
                    je = Be.text.slice(Oe);
                  Be.text = Pe, Te = Wf(Wf({}, ke), {}, { text: je });
                } else {
                  var Ne = Be.children.slice(0, Oe),
                    Ie = Be.children.slice(Oe);
                  Be.children = Ne, Te = Wf(Wf({}, ke), {}, { children: Ie });
                }
                if (Fe.children.splice(_e + 1, 0, Te), t) {
                  var Re,
                    Me = Gf(jf.points(t));
                  try {
                    for (Me.s(); !(Re = Me.n()).done;) {
                      var Le = dc(Re.value, 2),
                        ze = Le[0];
                      t[Le[1]] = Bf.transform(ze, n);
                    }
                  } catch (e) {
                    Me.e(e);
                  } finally {
                    Me.f();
                  }
                }
            }
            return t;
          }(e, n, t);
        } finally {
          e.children = ec.finishDraft(e.children), e.selection = n ? ec.isDraft(n) ? ec.finishDraft(n) : n : null;
        }
      }
    },
    Yf = ['text'],
    Xf = ['children'];

  function Zf(e, t) {
    var n = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var r = Object.getOwnPropertySymbols(e);
      t && (r = r.filter((function (t) {
        return Object.getOwnPropertyDescriptor(e, t).enumerable;
      }))), n.push.apply(n, r);
    }
    return n;
  }

  function Jf(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = null != arguments[t] ? arguments[t] : {};
      t % 2 ? Zf(Object(n), !0)
        .forEach((function (t) {
          hc(e, t, n[t]);
        })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Zf(Object(n))
        .forEach((function (t) {
          Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
        }));
    }
    return e;
  }

  function Qf(e, t) {
    var n = 'undefined' != typeof Symbol && e[Symbol.iterator] || e['@@iterator'];
    if (!n) {
      if (Array.isArray(e) || (n = function (e, t) {
        if (!e) return;
        if ('string' == typeof e) return ed(e, t);
        var n = Object.prototype.toString.call(e)
          .slice(8, -1);
        'Object' === n && e.constructor && (n = e.constructor.name);
        if ('Map' === n || 'Set' === n) return Array.from(e);
        if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ed(e, t);
      }(e)) || t && e && 'number' == typeof e.length) {
        n && (e = n);
        var r = 0,
          o = function () {
          };
        return {
          s: o,
          n: function () {
            return r >= e.length ? { done: !0 } : {
              done: !1,
              value: e[r++]
            };
          },
          e: function (e) {
            throw e;
          },
          f: o
        };
      }
      throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
    }
    var i,
      a = !0,
      u = !1;
    return {
      s: function () {
        n = n.call(e);
      },
      n: function () {
        var e = n.next();
        return a = e.done, e;
      },
      e: function (e) {
        u = !0, i = e;
      },
      f: function () {
        try {
          a || null == n.return || n.return();
        } finally {
          if (u) throw i;
        }
      }
    };
  }

  function ed(e, t) {
    (null == t || t > e.length) && (t = e.length);
    for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
    return r;
  }

  var td = {
      insertNodes: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
        hf.withoutNormalizing(e, (function () {
          var r = n.hanging,
            o = void 0 !== r && r,
            i = n.voids,
            a = void 0 !== i && i,
            u = n.mode,
            s = void 0 === u ? 'lowest' : u,
            l = n.at,
            c = n.match,
            f = n.select;
          if (Df.isNode(t) && (t = [t]), 0 !== t.length) {
            var d = dc(t, 1)[0];
            if (l || (l = e.selection ? e.selection : e.children.length > 0 ? hf.end(e, []) : [0], f = !0), null == f && (f = !1), jf.isRange(l)) {
              if (o || (l = hf.unhangRange(e, l)), jf.isCollapsed(l)) {
                l = l.anchor;
              } else {
                var p = jf.edges(l),
                  h = dc(p, 2)[1],
                  v = hf.pointRef(e, h);
                pd.delete(e, { at: l }), l = v.unref();
              }
            }
            if (Bf.isPoint(l)) {
              null == c && (c = Vf.isText(d) ? function (e) {
                return Vf.isText(e);
              } : e.isInline(d) ? function (t) {
                return Vf.isText(t) || hf.isInline(e, t);
              } : function (t) {
                return hf.isBlock(e, t);
              });
              var g = hf.nodes(e, {
                  at: l.path,
                  match: c,
                  mode: s,
                  voids: a
                }),
                y = dc(g, 1)[0];
              if (!y) return;
              var m = dc(y, 2)[1],
                b = hf.pathRef(e, m),
                w = hf.isEnd(e, l, m);
              pd.splitNodes(e, {
                at: l,
                match: c,
                mode: s,
                voids: a
              });
              var E = b.unref();
              l = w ? Af.next(E) : E;
            }
            var D = Af.parent(l),
              x = l[l.length - 1];
            if (a || !hf.void(e, { at: D })) {
              var S,
                C = Qf(t);
              try {
                for (C.s(); !(S = C.n()).done;) {
                  var A = S.value,
                    O = D.concat(x);
                  x++, e.apply({
                    type: 'insert_node',
                    path: O,
                    node: A
                  }), l = Af.next(l);
                }
              } catch (e) {
                C.e(e);
              } finally {
                C.f();
              }
              if (l = Af.previous(l), f) {
                var k = hf.end(e, l);
                k && pd.select(e, k);
              }
            }
          }
        }));
      },
      liftNodes: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
        hf.withoutNormalizing(e, (function () {
          var n = t.at,
            r = void 0 === n ? e.selection : n,
            o = t.mode,
            i = void 0 === o ? 'lowest' : o,
            a = t.voids,
            u = void 0 !== a && a,
            s = t.match;
          if (null == s && (s = Af.isPath(r) ? od(e, r) : function (t) {
            return hf.isBlock(e, t);
          }), r) {
            for (var l = hf.nodes(e, {
              at: r,
              match: s,
              mode: i,
              voids: u
            }), c = 0, f = Array.from(l, (function (t) {
              var n = dc(t, 2)[1];
              return hf.pathRef(e, n);
            })); c < f.length; c++) {
              var d = f[c].unref();
              if (d.length < 2) throw new Error('Cannot lift node at a path ['.concat(d, '] because it has a depth of less than `2`.'));
              var p = hf.node(e, Af.parent(d)),
                h = dc(p, 2),
                v = h[0],
                g = h[1],
                y = d[d.length - 1],
                m = v.children.length;
              if (1 === m) {
                var b = Af.next(g);
                pd.moveNodes(e, {
                  at: d,
                  to: b,
                  voids: u
                }), pd.removeNodes(e, {
                  at: g,
                  voids: u
                });
              } else if (0 === y) {
                pd.moveNodes(e, {
                  at: d,
                  to: g,
                  voids: u
                });
              } else if (y === m - 1) {
                var w = Af.next(g);
                pd.moveNodes(e, {
                  at: d,
                  to: w,
                  voids: u
                });
              } else {
                var E = Af.next(d),
                  D = Af.next(g);
                pd.splitNodes(e, {
                  at: E,
                  voids: u
                }), pd.moveNodes(e, {
                  at: d,
                  to: D,
                  voids: u
                });
              }
            }
          }
        }));
      },
      mergeNodes: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
        hf.withoutNormalizing(e, (function () {
          var n = t.match,
            r = t.at,
            o = void 0 === r ? e.selection : r,
            i = t.hanging,
            a = void 0 !== i && i,
            u = t.voids,
            s = void 0 !== u && u,
            l = t.mode,
            c = void 0 === l ? 'lowest' : l;
          if (o) {
            if (null == n) {
              if (Af.isPath(o)) {
                var f = hf.parent(e, o),
                  d = dc(f, 1)[0];
                n = function (e) {
                  return d.children.includes(e);
                };
              } else {
                n = function (t) {
                  return hf.isBlock(e, t);
                };
              }
            }
            if (!a && jf.isRange(o) && (o = hf.unhangRange(e, o)), jf.isRange(o)) {
              if (jf.isCollapsed(o)) {
                o = o.anchor;
              } else {
                var p = jf.edges(o),
                  h = dc(p, 2)[1],
                  v = hf.pointRef(e, h);
                pd.delete(e, { at: o }), o = v.unref(), null == t.at && pd.select(e, o);
              }
            }
            var g = hf.nodes(e, {
                at: o,
                match: n,
                voids: s,
                mode: c
              }),
              y = dc(g, 1)[0],
              m = hf.previous(e, {
                at: o,
                match: n,
                voids: s,
                mode: c
              });
            if (y && m) {
              var b = dc(y, 2),
                w = b[0],
                E = b[1],
                D = dc(m, 2),
                x = D[0],
                S = D[1];
              if (0 !== E.length && 0 !== S.length) {
                var C,
                  A,
                  O = Af.next(S),
                  k = Af.common(E, S),
                  T = Af.isSibling(E, S),
                  B = Array.from(hf.levels(e, { at: E }), (function (e) {
                    return dc(e, 1)[0];
                  }))
                    .slice(k.length)
                    .slice(0, -1),
                  F = hf.above(e, {
                    at: E,
                    mode: 'highest',
                    match: function (t) {
                      return B.includes(t) && nd(e, t);
                    }
                  }),
                  _ = F && hf.pathRef(e, F[1]);
                if (Vf.isText(w) && Vf.isText(x)) {
                  w.text;
                  var P = Oc(w, Yf);
                  A = x.text.length, C = P;
                } else {
                  if (!af.isElement(w) || !af.isElement(x)) {
                    throw new Error('Cannot merge the node at path ['.concat(E, '] with the previous sibling because it is not the same kind: ')
                      .concat(JSON.stringify(w), ' ')
                      .concat(JSON.stringify(x)));
                  }
                  w.children;
                  var j = Oc(w, Xf);
                  A = x.children.length, C = j;
                }
                T || pd.moveNodes(e, {
                  at: E,
                  to: O,
                  voids: s
                }), _ && pd.removeNodes(e, {
                  at: _.current,
                  voids: s
                }), af.isElement(x) && hf.isEmpty(e, x) || Vf.isText(x) && '' === x.text && 0 !== S[S.length - 1] ? pd.removeNodes(e, {
                  at: S,
                  voids: s
                }) : e.apply({
                  type: 'merge_node',
                  path: O,
                  position: A,
                  properties: C
                }), _ && _.unref();
              }
            }
          }
        }));
      },
      moveNodes: function (e, t) {
        hf.withoutNormalizing(e, (function () {
          var n = t.to,
            r = t.at,
            o = void 0 === r ? e.selection : r,
            i = t.mode,
            a = void 0 === i ? 'lowest' : i,
            u = t.voids,
            s = void 0 !== u && u,
            l = t.match;
          if (o) {
            null == l && (l = Af.isPath(o) ? od(e, o) : function (t) {
              return hf.isBlock(e, t);
            });
            for (var c = hf.pathRef(e, n), f = hf.nodes(e, {
              at: o,
              match: l,
              mode: a,
              voids: s
            }), d = 0, p = Array.from(f, (function (t) {
              var n = dc(t, 2)[1];
              return hf.pathRef(e, n);
            })); d < p.length; d++) {
              var h = p[d].unref(),
                v = c.current;
              0 !== h.length && e.apply({
                type: 'move_node',
                path: h,
                newPath: v
              }), c.current && Af.isSibling(v, h) && Af.isAfter(v, h) && (c.current = Af.next(c.current));
            }
            c.unref();
          }
        }));
      },
      removeNodes: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
        hf.withoutNormalizing(e, (function () {
          var n = t.hanging,
            r = void 0 !== n && n,
            o = t.voids,
            i = void 0 !== o && o,
            a = t.mode,
            u = void 0 === a ? 'lowest' : a,
            s = t.at,
            l = void 0 === s ? e.selection : s,
            c = t.match;
          if (l) {
            null == c && (c = Af.isPath(l) ? od(e, l) : function (t) {
              return hf.isBlock(e, t);
            }), !r && jf.isRange(l) && (l = hf.unhangRange(e, l));
            for (var f = hf.nodes(e, {
              at: l,
              match: c,
              mode: u,
              voids: i
            }), d = 0, p = Array.from(f, (function (t) {
              var n = dc(t, 2)[1];
              return hf.pathRef(e, n);
            })); d < p.length; d++) {
              var h = p[d].unref();
              if (h) {
                var v = hf.node(e, h),
                  g = dc(v, 1)[0];
                e.apply({
                  type: 'remove_node',
                  path: h,
                  node: g
                });
              }
            }
          }
        }));
      },
      setNodes: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
        hf.withoutNormalizing(e, (function () {
          var r = n.match,
            o = n.at,
            i = void 0 === o ? e.selection : o,
            a = n.hanging,
            u = void 0 !== a && a,
            s = n.mode,
            l = void 0 === s ? 'lowest' : s,
            c = n.split,
            f = void 0 !== c && c,
            d = n.voids,
            p = void 0 !== d && d;
          if (i) {
            if (null == r && (r = Af.isPath(i) ? od(e, i) : function (t) {
              return hf.isBlock(e, t);
            }), !u && jf.isRange(i) && (i = hf.unhangRange(e, i)), f && jf.isRange(i)) {
              if (jf.isCollapsed(i) && hf.leaf(e, i.anchor)[0].text.length > 0) return;
              var h = hf.rangeRef(e, i, { affinity: 'inward' }),
                v = jf.edges(i),
                g = dc(v, 2),
                y = g[0],
                m = g[1],
                b = 'lowest' === l ? 'lowest' : 'highest',
                w = hf.isEnd(e, m, m.path);
              pd.splitNodes(e, {
                at: m,
                match: r,
                mode: b,
                voids: p,
                always: !w
              });
              var E = hf.isStart(e, y, y.path);
              pd.splitNodes(e, {
                at: y,
                match: r,
                mode: b,
                voids: p,
                always: !E
              }), i = h.unref(), null == n.at && pd.select(e, i);
            }
            var D,
              x = Qf(hf.nodes(e, {
                at: i,
                match: r,
                mode: l,
                voids: p
              }));
            try {
              for (x.s(); !(D = x.n()).done;) {
                var S = dc(D.value, 2),
                  C = S[0],
                  A = S[1],
                  O = {},
                  k = {};
                if (0 !== A.length) {
                  var T = !1;
                  for (var B in t) 'children' !== B && 'text' !== B && t[B] !== C[B] && (T = !0, C.hasOwnProperty(B) && (O[B] = C[B]), null != t[B] && (k[B] = t[B]));
                  T && e.apply({
                    type: 'set_node',
                    path: A,
                    properties: O,
                    newProperties: k
                  });
                }
              }
            } catch (e) {
              x.e(e);
            } finally {
              x.f();
            }
          }
        }));
      },
      splitNodes: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
        hf.withoutNormalizing(e, (function () {
          var n = t.mode,
            r = void 0 === n ? 'lowest' : n,
            o = t.voids,
            i = void 0 !== o && o,
            a = t.match,
            u = t.at,
            s = void 0 === u ? e.selection : u,
            l = t.height,
            c = void 0 === l ? 0 : l,
            f = t.always,
            d = void 0 !== f && f;
          if (null == a && (a = function (t) {
            return hf.isBlock(e, t);
          }), jf.isRange(s) && (s = rd(e, s)), Af.isPath(s)) {
            var p = s,
              h = hf.point(e, p),
              v = hf.parent(e, p),
              g = dc(v, 1)[0];
            a = function (e) {
              return e === g;
            }, c = h.path.length - p.length + 1, s = h, d = !0;
          }
          if (s) {
            var y = hf.pointRef(e, s, { affinity: 'backward' }),
              m = hf.nodes(e, {
                at: s,
                match: a,
                mode: r,
                voids: i
              }),
              b = dc(m, 1)[0];
            if (b) {
              var w = hf.void(e, {
                at: s,
                mode: 'highest'
              });
              if (!i && w) {
                var E = dc(w, 2),
                  D = E[0],
                  x = E[1];
                if (af.isElement(D) && e.isInline(D)) {
                  var S = hf.after(e, x);
                  if (!S) {
                    var C = Af.next(x);
                    pd.insertNodes(e, { text: '' }, {
                      at: C,
                      voids: i
                    }), S = hf.point(e, C);
                  }
                  s = S, d = !0;
                }
                c = s.path.length - x.length + 1, d = !0;
              }
              var A,
                O = hf.pointRef(e, s),
                k = s.path.length - c,
                T = dc(b, 2)[1],
                B = s.path.slice(0, k),
                F = 0 === c ? s.offset : s.path[k] + 0,
                _ = Qf(hf.levels(e, {
                  at: B,
                  reverse: !0,
                  voids: i
                }));
              try {
                for (_.s(); !(A = _.n()).done;) {
                  var P = dc(A.value, 2),
                    j = P[0],
                    N = P[1],
                    I = !1;
                  if (N.length < T.length || 0 === N.length || !i && hf.isVoid(e, j)) break;
                  var R = y.current,
                    M = hf.isEnd(e, R, N);
                  if (d || !y || !hf.isEdge(e, R, N)) {
                    I = !0;
                    var L = Df.extractProps(j);
                    e.apply({
                      type: 'split_node',
                      path: N,
                      position: F,
                      properties: L
                    });
                  }
                  F = N[N.length - 1] + (I || M ? 1 : 0);
                }
              } catch (e) {
                _.e(e);
              } finally {
                _.f();
              }
              if (null == t.at) {
                var z = O.current || hf.end(e, []);
                pd.select(e, z);
              }
              y.unref(), O.unref();
            }
          }
        }));
      },
      unsetNodes: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
        Array.isArray(t) || (t = [t]);
        var r,
          o = {},
          i = Qf(t);
        try {
          for (i.s(); !(r = i.n()).done;) {
            var a = r.value;
            o[a] = null;
          }
        } catch (e) {
          i.e(e);
        } finally {
          i.f();
        }
        pd.setNodes(e, o, n);
      },
      unwrapNodes: function (e) {
        var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
        hf.withoutNormalizing(e, (function () {
          var n = t.mode,
            r = void 0 === n ? 'lowest' : n,
            o = t.split,
            i = void 0 !== o && o,
            a = t.voids,
            u = void 0 !== a && a,
            s = t.at,
            l = void 0 === s ? e.selection : s,
            c = t.match;
          if (l) {
            null == c && (c = Af.isPath(l) ? od(e, l) : function (t) {
              return hf.isBlock(e, t);
            }), Af.isPath(l) && (l = hf.range(e, l));
            var f,
              d = jf.isRange(l) ? hf.rangeRef(e, l) : null,
              p = hf.nodes(e, {
                at: l,
                match: c,
                mode: r,
                voids: u
              }),
              h = Qf(Array.from(p, (function (t) {
                var n = dc(t, 2)[1];
                return hf.pathRef(e, n);
              }))
                .reverse());
            try {
              var v = function () {
                var t = f.value.unref(),
                  n = hf.node(e, t),
                  r = dc(n, 1)[0],
                  o = hf.range(e, t);
                i && d && (o = jf.intersection(d.current, o)), pd.liftNodes(e, {
                  at: o,
                  match: function (e) {
                    return af.isAncestor(r) && r.children.includes(e);
                  },
                  voids: u
                });
              };
              for (h.s(); !(f = h.n()).done;) v();
            } catch (e) {
              h.e(e);
            } finally {
              h.f();
            }
            d && d.unref();
          }
        }));
      },
      wrapNodes: function (e, t) {
        var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
        hf.withoutNormalizing(e, (function () {
          var r = n.mode,
            o = void 0 === r ? 'lowest' : r,
            i = n.split,
            a = void 0 !== i && i,
            u = n.voids,
            s = void 0 !== u && u,
            l = n.match,
            c = n.at,
            f = void 0 === c ? e.selection : c;
          if (f) {
            if (null == l && (l = Af.isPath(f) ? od(e, f) : e.isInline(t) ? function (t) {
              return hf.isInline(e, t) || Vf.isText(t);
            } : function (t) {
              return hf.isBlock(e, t);
            }), a && jf.isRange(f)) {
              var d = jf.edges(f),
                p = dc(d, 2),
                h = p[0],
                v = p[1],
                g = hf.rangeRef(e, f, { affinity: 'inward' });
              pd.splitNodes(e, {
                at: v,
                match: l,
                voids: s
              }), pd.splitNodes(e, {
                at: h,
                match: l,
                voids: s
              }), f = g.unref(), null == n.at && pd.select(e, f);
            }
            for (var y = 0, m = Array.from(hf.nodes(e, {
              at: f,
              match: e.isInline(t) ? function (t) {
                return hf.isBlock(e, t);
              } : function (e) {
                return hf.isEditor(e);
              },
              mode: 'lowest',
              voids: s
            })); y < m.length; y++) {
              var b = dc(m[y], 2)[1],
                w = jf.isRange(f) ? jf.intersection(f, hf.range(e, b)) : f;
              if (w) {
                var E = Array.from(hf.nodes(e, {
                  at: w,
                  match: l,
                  mode: o,
                  voids: s
                }));
                if (E.length > 0) {
                  if ('continue' === function () {
                    var n = dc(E, 1)[0],
                      r = E[E.length - 1],
                      o = dc(n, 2)[1],
                      i = dc(r, 2)[1];
                    if (0 === o.length && 0 === i.length) return 'continue';
                    var a = Af.equals(o, i) ? Af.parent(o) : Af.common(o, i),
                      u = hf.range(e, o, i),
                      l = hf.node(e, a),
                      c = dc(l, 1)[0],
                      f = a.length + 1,
                      d = Af.next(i.slice(0, f)),
                      p = Jf(Jf({}, t), {}, { children: [] });
                    pd.insertNodes(e, p, {
                      at: d,
                      voids: s
                    }), pd.moveNodes(e, {
                      at: u,
                      match: function (e) {
                        return af.isAncestor(c) && c.children.includes(e);
                      },
                      to: d.concat(0),
                      voids: s
                    });
                  }()) {
                    continue;
                  }
                }
              }
            }
          }
        }));
      }
    },
    nd = function e(t, n) {
      if (af.isElement(n)) {
        var r = n;
        return !!hf.isVoid(t, n) || 1 === r.children.length && e(t, r.children[0]);
      }
      return !hf.isEditor(n);
    },
    rd = function (e, t) {
      if (jf.isCollapsed(t)) return t.anchor;
      var n = jf.edges(t),
        r = dc(n, 2)[1],
        o = hf.pointRef(e, r);
      return pd.delete(e, { at: t }), o.unref();
    },
    od = function (e, t) {
      var n = hf.node(e, t),
        r = dc(n, 1)[0];
      return function (e) {
        return e === r;
      };
    };

  function id(e, t) {
    var n = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var r = Object.getOwnPropertySymbols(e);
      t && (r = r.filter((function (t) {
        return Object.getOwnPropertyDescriptor(e, t).enumerable;
      }))), n.push.apply(n, r);
    }
    return n;
  }

  function ad(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = null != arguments[t] ? arguments[t] : {};
      t % 2 ? id(Object(n), !0)
        .forEach((function (t) {
          hc(e, t, n[t]);
        })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : id(Object(n))
        .forEach((function (t) {
          Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
        }));
    }
    return e;
  }

  var ud = {
    collapse: function (e) {
      var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
        n = t.edge,
        r = void 0 === n ? 'anchor' : n,
        o = e.selection;
      if (o) {
        if ('anchor' === r) {
          pd.select(e, o.anchor);
        } else if ('focus' === r) {
          pd.select(e, o.focus);
        } else if ('start' === r) {
          var i = jf.edges(o),
            a = dc(i, 1),
            u = a[0];
          pd.select(e, u);
        } else if ('end' === r) {
          var s = jf.edges(o),
            l = dc(s, 2),
            c = l[1];
          pd.select(e, c);
        }
      }
    },
    deselect: function (e) {
      var t = e.selection;
      t && e.apply({
        type: 'set_selection',
        properties: t,
        newProperties: null
      });
    },
    move: function (e) {
      var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
        n = e.selection,
        r = t.distance,
        o = void 0 === r ? 1 : r,
        i = t.unit,
        a = void 0 === i ? 'character' : i,
        u = t.reverse,
        s = void 0 !== u && u,
        l = t.edge,
        c = void 0 === l ? null : l;
      if (n) {
        'start' === c && (c = jf.isBackward(n) ? 'focus' : 'anchor'), 'end' === c && (c = jf.isBackward(n) ? 'anchor' : 'focus');
        var f = n.anchor,
          d = n.focus,
          p = {
            distance: o,
            unit: a
          },
          h = {};
        if (null == c || 'anchor' === c) {
          var v = s ? hf.before(e, f, p) : hf.after(e, f, p);
          v && (h.anchor = v);
        }
        if (null == c || 'focus' === c) {
          var g = s ? hf.before(e, d, p) : hf.after(e, d, p);
          g && (h.focus = g);
        }
        pd.setSelection(e, h);
      }
    },
    select: function (e, t) {
      var n = e.selection;
      if (t = hf.range(e, t), n) {
        pd.setSelection(e, t);
      } else {
        if (!jf.isRange(t)) throw new Error('When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: '.concat(JSON.stringify(t)));
        e.apply({
          type: 'set_selection',
          properties: n,
          newProperties: t
        });
      }
    },
    setPoint: function (e, t) {
      var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
        r = e.selection,
        o = n.edge,
        i = void 0 === o ? 'both' : o;
      if (r) {
        'start' === i && (i = jf.isBackward(r) ? 'focus' : 'anchor'), 'end' === i && (i = jf.isBackward(r) ? 'anchor' : 'focus');
        var a = r.anchor,
          u = r.focus,
          s = 'anchor' === i ? a : u;
        pd.setSelection(e, hc({}, 'anchor' === i ? 'anchor' : 'focus', ad(ad({}, s), t)));
      }
    },
    setSelection: function (e, t) {
      var n = e.selection,
        r = {},
        o = {};
      if (n) {
        for (var i in t) ('anchor' === i && null != t.anchor && !Bf.equals(t.anchor, n.anchor) || 'focus' === i && null != t.focus && !Bf.equals(t.focus, n.focus) || 'anchor' !== i && 'focus' !== i && t[i] !== n[i]) && (r[i] = n[i], o[i] = t[i]);
        Object.keys(r).length > 0 && e.apply({
          type: 'set_selection',
          properties: r,
          newProperties: o
        });
      }
    }
  };

  function sd(e, t) {
    var n = 'undefined' != typeof Symbol && e[Symbol.iterator] || e['@@iterator'];
    if (!n) {
      if (Array.isArray(e) || (n = function (e, t) {
        if (!e) return;
        if ('string' == typeof e) return ld(e, t);
        var n = Object.prototype.toString.call(e)
          .slice(8, -1);
        'Object' === n && e.constructor && (n = e.constructor.name);
        if ('Map' === n || 'Set' === n) return Array.from(e);
        if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ld(e, t);
      }(e)) || t && e && 'number' == typeof e.length) {
        n && (e = n);
        var r = 0,
          o = function () {
          };
        return {
          s: o,
          n: function () {
            return r >= e.length ? { done: !0 } : {
              done: !1,
              value: e[r++]
            };
          },
          e: function (e) {
            throw e;
          },
          f: o
        };
      }
      throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
    }
    var i,
      a = !0,
      u = !1;
    return {
      s: function () {
        n = n.call(e);
      },
      n: function () {
        var e = n.next();
        return a = e.done, e;
      },
      e: function (e) {
        u = !0, i = e;
      },
      f: function () {
        try {
          a || null == n.return || n.return();
        } finally {
          if (u) throw i;
        }
      }
    };
  }

  function ld(e, t) {
    (null == t || t > e.length) && (t = e.length);
    for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
    return r;
  }

  var cd = {
    delete: function (e) {
      var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
      hf.withoutNormalizing(e, (function () {
        var n = t.reverse,
          r = void 0 !== n && n,
          o = t.unit,
          i = void 0 === o ? 'character' : o,
          a = t.distance,
          u = void 0 === a ? 1 : a,
          s = t.voids,
          l = void 0 !== s && s,
          c = t.at,
          f = void 0 === c ? e.selection : c,
          d = t.hanging,
          p = void 0 !== d && d;
        if (f) {
          if (jf.isRange(f) && jf.isCollapsed(f) && (f = f.anchor), Bf.isPoint(f)) {
            var h = hf.void(e, {
              at: f,
              mode: 'highest'
            });
            if (!l && h) {
              f = dc(h, 2)[1];
            } else {
              var v = {
                unit: i,
                distance: u
              };
              f = {
                anchor: f,
                focus: r ? hf.before(e, f, v) || hf.start(e, []) : hf.after(e, f, v) || hf.end(e, [])
              }, p = !0;
            }
          }
          if (Af.isPath(f)) {
            pd.removeNodes(e, {
              at: f,
              voids: l
            });
          } else if (!jf.isCollapsed(f)) {
            if (!p) {
              var g = jf.edges(f),
                y = dc(g, 2)[1],
                m = hf.end(e, []);
              Bf.equals(y, m) || (f = hf.unhangRange(e, f, { voids: l }));
            }
            var b = jf.edges(f),
              w = dc(b, 2),
              E = w[0],
              D = w[1],
              x = hf.above(e, {
                match: function (t) {
                  return hf.isBlock(e, t);
                },
                at: E,
                voids: l
              }),
              S = hf.above(e, {
                match: function (t) {
                  return hf.isBlock(e, t);
                },
                at: D,
                voids: l
              }),
              C = x && S && !Af.equals(x[1], S[1]),
              A = Af.equals(E.path, D.path),
              O = l ? null : hf.void(e, {
                at: E,
                mode: 'highest'
              }),
              k = l ? null : hf.void(e, {
                at: D,
                mode: 'highest'
              });
            if (O) {
              var T = hf.before(e, E);
              T && x && Af.isAncestor(x[1], T.path) && (E = T);
            }
            if (k) {
              var B = hf.after(e, D);
              B && S && Af.isAncestor(S[1], B.path) && (D = B);
            }
            var F,
              _,
              P = [],
              j = sd(hf.nodes(e, {
                at: f,
                voids: l
              }));
            try {
              for (j.s(); !(_ = j.n()).done;) {
                var N = _.value,
                  I = dc(N, 2),
                  R = I[0],
                  M = I[1];
                F && 0 === Af.compare(M, F) || (!l && hf.isVoid(e, R) || !Af.isCommon(M, E.path) && !Af.isCommon(M, D.path)) && (P.push(N), F = M);
              }
            } catch (e) {
              j.e(e);
            } finally {
              j.f();
            }
            var L = Array.from(P, (function (t) {
                var n = dc(t, 2)[1];
                return hf.pathRef(e, n);
              })),
              z = hf.pointRef(e, E),
              $ = hf.pointRef(e, D);
            if (!A && !O) {
              var H = z.current,
                V = hf.leaf(e, H),
                U = dc(V, 1)[0],
                W = H.path,
                G = E.offset,
                q = U.text.slice(G);
              q.length > 0 && e.apply({
                type: 'remove_text',
                path: W,
                offset: G,
                text: q
              });
            }
            for (var K = 0, Y = L; K < Y.length; K++) {
              var X = Y[K].unref();
              pd.removeNodes(e, {
                at: X,
                voids: l
              });
            }
            if (!k) {
              var Z = $.current,
                J = hf.leaf(e, Z),
                Q = dc(J, 1)[0],
                ee = Z.path,
                te = A ? E.offset : 0,
                ne = Q.text.slice(te, D.offset);
              ne.length > 0 && e.apply({
                type: 'remove_text',
                path: ee,
                offset: te,
                text: ne
              });
            }
            !A && C && $.current && z.current && pd.mergeNodes(e, {
              at: $.current,
              hanging: !0,
              voids: l
            });
            var re = r ? z.unref() || $.unref() : $.unref() || z.unref();
            null == t.at && re && pd.select(e, re);
          }
        }
      }));
    },
    insertFragment: function (e, t) {
      var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
      hf.withoutNormalizing(e, (function () {
        var r = n.hanging,
          o = void 0 !== r && r,
          i = n.voids,
          a = void 0 !== i && i,
          u = n.at,
          s = void 0 === u ? e.selection : u;
        if (t.length && s) {
          if (jf.isRange(s)) {
            if (o || (s = hf.unhangRange(e, s)), jf.isCollapsed(s)) {
              s = s.anchor;
            } else {
              var l = jf.edges(s),
                c = dc(l, 2)[1];
              if (!a && hf.void(e, { at: c })) return;
              var f = hf.pointRef(e, c);
              pd.delete(e, { at: s }), s = f.unref();
            }
          } else {
            Af.isPath(s) && (s = hf.start(e, s));
          }
          if (a || !hf.void(e, { at: s })) {
            var d = hf.above(e, {
              at: s,
              match: function (t) {
                return hf.isInline(e, t);
              },
              mode: 'highest',
              voids: a
            });
            if (d) {
              var p = dc(d, 2)[1];
              if (hf.isEnd(e, s, p)) {
                s = hf.after(e, p);
              } else if (hf.isStart(e, s, p)) {
                s = hf.before(e, p);
              }
            }
            var h,
              v = hf.above(e, {
                match: function (t) {
                  return hf.isBlock(e, t);
                },
                at: s,
                voids: a
              }),
              g = dc(v, 2)[1],
              y = hf.isStart(e, s, g),
              m = hf.isEnd(e, s, g),
              b = y && m,
              w = !y || y && m,
              E = !m,
              D = Df.first({ children: t }, []),
              x = dc(D, 2)[1],
              S = Df.last({ children: t }, []),
              C = dc(S, 2)[1],
              A = [],
              O = function (t) {
                var n = dc(t, 2),
                  r = n[0],
                  o = n[1];
                return !(0 === o.length) && (!!b || !(w && Af.isAncestor(o, x) && af.isElement(r) && !e.isVoid(r) && !e.isInline(r)) && !(E && Af.isAncestor(o, C) && af.isElement(r) && !e.isVoid(r) && !e.isInline(r)));
              },
              k = sd(Df.nodes({ children: t }, { pass: O }));
            try {
              for (k.s(); !(h = k.n()).done;) {
                var T = h.value;
                O(T) && A.push(T);
              }
            } catch (e) {
              k.e(e);
            } finally {
              k.f();
            }
            for (var B = [], F = [], _ = [], P = !0, j = !1, N = 0, I = A; N < I.length; N++) {
              var R = dc(I[N], 1)[0];
              af.isElement(R) && !e.isInline(R) ? (P = !1, j = !0, F.push(R)) : P ? B.push(R) : _.push(R);
            }
            var M = hf.nodes(e, {
                at: s,
                match: function (t) {
                  return Vf.isText(t) || hf.isInline(e, t);
                },
                mode: 'highest',
                voids: a
              }),
              L = dc(M, 1)[0],
              z = dc(L, 2)[1],
              $ = hf.isStart(e, s, z),
              H = hf.isEnd(e, s, z),
              V = hf.pathRef(e, m ? Af.next(g) : g),
              U = hf.pathRef(e, H ? Af.next(z) : z),
              W = hf.pathRef(e, g);
            pd.splitNodes(e, {
              at: s,
              match: function (t) {
                return j ? hf.isBlock(e, t) : Vf.isText(t) || hf.isInline(e, t);
              },
              mode: j ? 'lowest' : 'highest',
              voids: a
            });
            var G = hf.pathRef(e, !$ || $ && H ? Af.next(z) : z);
            if (pd.insertNodes(e, B, {
              at: G.current,
              match: function (t) {
                return Vf.isText(t) || hf.isInline(e, t);
              },
              mode: 'highest',
              voids: a
            }), b && F.length && pd.delete(e, {
              at: W.unref(),
              voids: a
            }), pd.insertNodes(e, F, {
              at: V.current,
              match: function (t) {
                return hf.isBlock(e, t);
              },
              mode: 'lowest',
              voids: a
            }), pd.insertNodes(e, _, {
              at: U.current,
              match: function (t) {
                return Vf.isText(t) || hf.isInline(e, t);
              },
              mode: 'highest',
              voids: a
            }), !n.at) {
              var q;
              q = _.length > 0 ? Af.previous(U.current) : F.length > 0 ? Af.previous(V.current) : Af.previous(G.current);
              var K = hf.end(e, q);
              pd.select(e, K);
            }
            G.unref(), V.unref(), U.unref();
          }
        }
      }));
    },
    insertText: function (e, t) {
      var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
      hf.withoutNormalizing(e, (function () {
        var r = n.voids,
          o = void 0 !== r && r,
          i = n.at,
          a = void 0 === i ? e.selection : i;
        if (a) {
          if (Af.isPath(a) && (a = hf.range(e, a)), jf.isRange(a)) {
            if (jf.isCollapsed(a)) {
              a = a.anchor;
            } else {
              var u = jf.end(a);
              if (!o && hf.void(e, { at: u })) return;
              var s = hf.pointRef(e, u);
              pd.delete(e, {
                at: a,
                voids: o
              }), a = s.unref(), pd.setSelection(e, {
                anchor: a,
                focus: a
              });
            }
          }
          if (o || !hf.void(e, { at: a })) {
            var l = a,
              c = l.path,
              f = l.offset;
            t.length > 0 && e.apply({
              type: 'insert_text',
              path: c,
              offset: f,
              text: t
            });
          }
        }
      }));
    }
  };

  function fd(e, t) {
    var n = Object.keys(e);
    if (Object.getOwnPropertySymbols) {
      var r = Object.getOwnPropertySymbols(e);
      t && (r = r.filter((function (t) {
        return Object.getOwnPropertyDescriptor(e, t).enumerable;
      }))), n.push.apply(n, r);
    }
    return n;
  }

  function dd(e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = null != arguments[t] ? arguments[t] : {};
      t % 2 ? fd(Object(n), !0)
        .forEach((function (t) {
          hc(e, t, n[t]);
        })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fd(Object(n))
        .forEach((function (t) {
          Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
        }));
    }
    return e;
  }

  var pd = dd(dd(dd(dd({}, Kf), td), ud), cd),
    hd = hf,
    vd = af,
    gd = vf,
    yd = Df,
    md = Cf,
    bd = Af,
    wd = Of,
    Ed = Bf,
    Dd = Ff,
    xd = jf,
    Sd = Nf,
    Cd = gf,
    Ad = Vf,
    Od = pd,
    kd = function () {
      var e = {
        children: [],
        operations: [],
        selection: null,
        marks: null,
        isInline: function () {
          return !1;
        },
        isVoid: function () {
          return !1;
        },
        onChange: function () {
        },
        apply: function (t) {
          var n,
            r = xc(hf.pathRefs(e));
          try {
            for (r.s(); !(n = r.n()).done;) {
              var o = n.value;
              Of.transform(o, t);
            }
          } catch (e) {
            r.e(e);
          } finally {
            r.f();
          }
          var i,
            a = xc(hf.pointRefs(e));
          try {
            for (a.s(); !(i = a.n()).done;) {
              var u = i.value;
              Ff.transform(u, t);
            }
          } catch (e) {
            a.e(e);
          } finally {
            a.f();
          }
          var s,
            l = xc(hf.rangeRefs(e));
          try {
            for (l.s(); !(s = l.n()).done;) {
              var c = s.value;
              Nf.transform(c, t);
            }
          } catch (e) {
            l.e(e);
          } finally {
            l.f();
          }
          var f,
            d = new Set,
            p = [],
            h = function (e) {
              if (e) {
                var t = e.join(',');
                d.has(t) || (d.add(t), p.push(e));
              }
            },
            v = vc.get(e) || [],
            g = Cc(t),
            y = xc(v);
          try {
            for (y.s(); !(f = y.n()).done;) {
              var m = f.value;
              h(Af.transform(m, t));
            }
          } catch (e) {
            y.e(e);
          } finally {
            y.f();
          }
          var b,
            w = xc(g);
          try {
            for (w.s(); !(b = w.n()).done;) {
              h(b.value);
            }
          } catch (e) {
            w.e(e);
          } finally {
            w.f();
          }
          vc.set(e, p), pd.transform(e, t), e.operations.push(t), hf.normalize(e), 'set_selection' === t.type && (e.marks = null), gc.get(e) || (gc.set(e, !0), Promise.resolve()
            .then((function () {
              gc.set(e, !1), e.onChange(), e.operations = [];
            })));
        },
        addMark: function (t, n) {
          var r = e.selection;
          if (r) {
            if (jf.isExpanded(r)) {
              pd.setNodes(e, hc({}, t, n), {
                match: Vf.isText,
                split: !0
              });
            } else {
              var o = Dc(Dc({}, hf.marks(e) || {}), {}, hc({}, t, n));
              e.marks = o, gc.get(e) || e.onChange();
            }
          }
        },
        deleteBackward: function (t) {
          var n = e.selection;
          n && jf.isCollapsed(n) && pd.delete(e, {
            unit: t,
            reverse: !0
          });
        },
        deleteForward: function (t) {
          var n = e.selection;
          n && jf.isCollapsed(n) && pd.delete(e, { unit: t });
        },
        deleteFragment: function (t) {
          var n = e.selection;
          n && jf.isExpanded(n) && pd.delete(e, { reverse: 'backward' === t });
        },
        getFragment: function () {
          var t = e.selection;
          return t ? Df.fragment(e, t) : [];
        },
        insertBreak: function () {
          pd.splitNodes(e, { always: !0 });
        },
        insertFragment: function (t) {
          pd.insertFragment(e, t);
        },
        insertNode: function (t) {
          pd.insertNodes(e, t);
        },
        insertText: function (t) {
          var n = e.selection,
            r = e.marks;
          if (n) {
            if (r) {
              var o = Dc({ text: t }, r);
              pd.insertNodes(e, o);
            } else {
              pd.insertText(e, t);
            }
            e.marks = null;
          }
        },
        normalizeNode: function (t) {
          var n = dc(t, 2),
            r = n[0],
            o = n[1];
          if (!Vf.isText(r)) {
            if (af.isElement(r) && 0 === r.children.length) {
              pd.insertNodes(e, { text: '' }, {
                at: o.concat(0),
                voids: !0
              });
            } else {
              for (var i = !hf.isEditor(r) && (af.isElement(r) && (e.isInline(r) || 0 === r.children.length || Vf.isText(r.children[0]) || e.isInline(r.children[0]))), a = 0, u = 0; u < r.children.length; u++, a++) {
                var s = Df.get(e, o);
                if (!Vf.isText(s)) {
                  var l = r.children[u],
                    c = s.children[a - 1],
                    f = u === r.children.length - 1;
                  if ((Vf.isText(l) || af.isElement(l) && e.isInline(l)) !== i) {
                    pd.removeNodes(e, {
                      at: o.concat(a),
                      voids: !0
                    }), a--;
                  } else if (af.isElement(l)) {
                    if (e.isInline(l)) {
                      if (null != c && Vf.isText(c)) {
                        if (f) {
                          pd.insertNodes(e, { text: '' }, {
                            at: o.concat(a + 1),
                            voids: !0
                          }), a++;
                        }
                      } else {
                        pd.insertNodes(e, { text: '' }, {
                          at: o.concat(a),
                          voids: !0
                        }), a++;
                      }
                    }
                  } else {
                    null != c && Vf.isText(c) && (Vf.equals(l, c, { loose: !0 }) ? (pd.mergeNodes(e, {
                      at: o.concat(a),
                      voids: !0
                    }), a--) : '' === c.text ? (pd.removeNodes(e, {
                      at: o.concat(a - 1),
                      voids: !0
                    }), a--) : '' === l.text && (pd.removeNodes(e, {
                      at: o.concat(a),
                      voids: !0
                    }), a--));
                  }
                }
              }
            }
          }
        },
        removeMark: function (t) {
          var n = e.selection;
          if (n) {
            if (jf.isExpanded(n)) {
              pd.unsetNodes(e, t, {
                match: Vf.isText,
                split: !0
              });
            } else {
              var r = Dc({}, hf.marks(e) || {});
              delete r[t], e.marks = r, gc.get(e) || e.onChange();
            }
          }
        }
      };
      return e;
    },
    Td = Object.defineProperty({
      Editor: hd,
      Element: vd,
      Location: gd,
      Node: yd,
      Operation: md,
      Path: bd,
      PathRef: wd,
      Point: Ed,
      PointRef: Dd,
      Range: xd,
      RangeRef: Sd,
      Span: Cd,
      Text: Ad,
      Transforms: Od,
      createEditor: kd
    }, '__esModule', { value: !0 }),
    Bd = 9007199254740991,
    Fd = '[object Arguments]',
    _d = '[object Map]',
    Pd = '[object Promise]',
    jd = '[object Set]',
    Nd = '[object WeakMap]',
    Id = '[object DataView]',
    Rd = /^\[object .+?Constructor\]$/,
    Md = /^(?:0|[1-9]\d*)$/,
    Ld = '[\\ud800-\\udfff]',
    zd = '[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]',
    $d = '\\ud83c[\\udffb-\\udfff]',
    Hd = '[^\\ud800-\\udfff]',
    Vd = '(?:\\ud83c[\\udde6-\\uddff]){2}',
    Ud = '[\\ud800-\\udbff][\\udc00-\\udfff]',
    Wd = '(?:' + zd + '|' + $d + ')' + '?',
    Gd = '[\\ufe0e\\ufe0f]?',
    qd = Gd + Wd + ('(?:\\u200d(?:' + [Hd, Vd, Ud].join('|') + ')' + Gd + Wd + ')*'),
    Kd = '(?:' + [Hd + zd + '?', zd, Vd, Ud, Ld].join('|') + ')',
    Yd = RegExp($d + '(?=' + $d + ')|' + Kd + qd, 'g'),
    Xd = RegExp('[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]'),
    Zd = 'object' == typeof t && t && t.Object === Object && t,
    Jd = 'object' == typeof self && self && self.Object === Object && self,
    Qd = Zd || Jd || Function('return this')();

  function ep(e, t) {
    return function (e, t) {
      for (var n = -1, r = e ? e.length : 0, o = Array(r); ++n < r;) o[n] = t(e[n], n, e);
      return o;
    }(t, (function (t) {
      return e[t];
    }));
  }

  function tp(e) {
    var t = -1,
      n = Array(e.size);
    return e.forEach((function (e, r) {
      n[++t] = [r, e];
    })), n;
  }

  function np(e) {
    var t = -1,
      n = Array(e.size);
    return e.forEach((function (e) {
      n[++t] = e;
    })), n;
  }

  function rp(e) {
    return function (e) {
      return Xd.test(e);
    }(e) ? function (e) {
      return e.match(Yd) || [];
    }(e) : function (e) {
      return e.split('');
    }(e);
  }

  var op = Function.prototype,
    ip = Object.prototype,
    ap = Qd['__core-js_shared__'],
    up = function () {
      var e = /[^.]+$/.exec(ap && ap.keys && ap.keys.IE_PROTO || '');
      return e ? 'Symbol(src)_1.' + e : '';
    }(),
    sp = op.toString,
    lp = ip.hasOwnProperty,
    cp = ip.toString,
    fp = RegExp('^' + sp.call(lp)
      .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
      .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'),
    dp = Qd.Symbol,
    pp = dp ? dp.iterator : void 0,
    hp = ip.propertyIsEnumerable,
    vp = function (e, t) {
      return function (n) {
        return e(t(n));
      };
    }(Object.keys, Object),
    gp = Tp(Qd, 'DataView'),
    yp = Tp(Qd, 'Map'),
    mp = Tp(Qd, 'Promise'),
    bp = Tp(Qd, 'Set'),
    wp = Tp(Qd, 'WeakMap'),
    Ep = _p(gp),
    Dp = _p(yp),
    xp = _p(mp),
    Sp = _p(bp),
    Cp = _p(wp);

  function Ap(e, t) {
    var n = Pp(e) || function (e) {
        return function (e) {
          return Rp(e) && jp(e);
        }(e) && lp.call(e, 'callee') && (!hp.call(e, 'callee') || cp.call(e) == Fd);
      }(e) ? function (e, t) {
        for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
        return r;
      }(e.length, String) : [],
      r = n.length,
      o = !!r;
    for (var i in e) !t && !lp.call(e, i) || o && ('length' == i || Fp(i, r)) || n.push(i);
    return n;
  }

  function Op(e) {
    if (!Ip(e) || (t = e, up && up in t)) return !1;
    var t,
      n = Np(e) || function (e) {
        var t = !1;
        if (null != e && 'function' != typeof e.toString) {
          try {
            t = !!(e + '');
          } catch (e) {
          }
        }
        return t;
      }(e) ? fp : Rd;
    return n.test(_p(e));
  }

  function kp(e) {
    if (!function (e) {
      var t = e && e.constructor,
        n = 'function' == typeof t && t.prototype || ip;
      return e === n;
    }(e)) {
      return vp(e);
    }
    var t = [];
    for (var n in Object(e)) lp.call(e, n) && 'constructor' != n && t.push(n);
    return t;
  }

  function Tp(e, t) {
    var n = function (e, t) {
      return null == e ? void 0 : e[t];
    }(e, t);
    return Op(n) ? n : void 0;
  }

  var Bp = function (e) {
    return cp.call(e);
  };

  function Fp(e, t) {
    return !!(t = null == t ? Bd : t) && ('number' == typeof e || Md.test(e)) && e > -1 && e % 1 == 0 && e < t;
  }

  function _p(e) {
    if (null != e) {
      try {
        return sp.call(e);
      } catch (e) {
      }
      try {
        return e + '';
      } catch (e) {
      }
    }
    return '';
  }

  (gp && Bp(new gp(new ArrayBuffer(1))) != Id || yp && Bp(new yp) != _d || mp && Bp(mp.resolve()) != Pd || bp && Bp(new bp) != jd || wp && Bp(new wp) != Nd) && (Bp = function (e) {
    var t = cp.call(e),
      n = '[object Object]' == t ? e.constructor : void 0,
      r = n ? _p(n) : void 0;
    if (r) {
      switch (r) {
        case Ep:
          return Id;
        case Dp:
          return _d;
        case xp:
          return Pd;
        case Sp:
          return jd;
        case Cp:
          return Nd;
      }
    }
    return t;
  });
  var Pp = Array.isArray;

  function jp(e) {
    return null != e && function (e) {
      return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= Bd;
    }(e.length) && !Np(e);
  }

  function Np(e) {
    var t = Ip(e) ? cp.call(e) : '';
    return '[object Function]' == t || '[object GeneratorFunction]' == t;
  }

  function Ip(e) {
    var t = typeof e;
    return !!e && ('object' == t || 'function' == t);
  }

  function Rp(e) {
    return !!e && 'object' == typeof e;
  }

  function Mp(e) {
    return e ? ep(e, function (e) {
      return jp(e) ? Ap(e) : kp(e);
    }(e)) : [];
  }

  var Lp = function (e) {
      if (!e) return [];
      if (jp(e)) {
        return function (e) {
          return 'string' == typeof e || !Pp(e) && Rp(e) && '[object String]' == cp.call(e);
        }(e) ? rp(e) : function (e, t) {
          var n = -1,
            r = e.length;
          for (t || (t = Array(r)); ++n < r;) t[n] = e[n];
          return t;
        }(e);
      }
      if (pp && e[pp]) {
        return function (e) {
          for (var t, n = []; !(t = e.next()).done;) n.push(t.value);
          return n;
        }(e[pp]());
      }
      var t = Bp(e);
      return (t == _d ? tp : t == jd ? np : Mp)(e);
    },
    zp = r((function (e, t) {
      !function (e) {
        function t(e) {
          return null !== e && 'object' == typeof e && 'constructor' in e && e.constructor === Object;
        }

        function n(e, r) {
          void 0 === e && (e = {}), void 0 === r && (r = {}), Object.keys(r)
            .forEach((function (o) {
              void 0 === e[o] ? e[o] = r[o] : t(r[o]) && t(e[o]) && Object.keys(r[o]).length > 0 && n(e[o], r[o]);
            }));
        }

        var r = {
          body: {},
          addEventListener: function () {
          },
          removeEventListener: function () {
          },
          activeElement: {
            blur: function () {
            },
            nodeName: ''
          },
          querySelector: function () {
            return null;
          },
          querySelectorAll: function () {
            return [];
          },
          getElementById: function () {
            return null;
          },
          createEvent: function () {
            return {
              initEvent: function () {
              }
            };
          },
          createElement: function () {
            return {
              children: [],
              childNodes: [],
              style: {},
              setAttribute: function () {
              },
              getElementsByTagName: function () {
                return [];
              }
            };
          },
          createElementNS: function () {
            return {};
          },
          importNode: function () {
            return null;
          },
          location: {
            hash: '',
            host: '',
            hostname: '',
            href: '',
            origin: '',
            pathname: '',
            protocol: '',
            search: ''
          }
        };

        function o() {
          var e = 'undefined' != typeof document ? document : {};
          return n(e, r), e;
        }

        var i = {
          document: r,
          navigator: { userAgent: '' },
          location: {
            hash: '',
            host: '',
            hostname: '',
            href: '',
            origin: '',
            pathname: '',
            protocol: '',
            search: ''
          },
          history: {
            replaceState: function () {
            },
            pushState: function () {
            },
            go: function () {
            },
            back: function () {
            }
          },
          CustomEvent: function () {
            return this;
          },
          addEventListener: function () {
          },
          removeEventListener: function () {
          },
          getComputedStyle: function () {
            return {
              getPropertyValue: function () {
                return '';
              }
            };
          },
          Image: function () {
          },
          Date: function () {
          },
          screen: {},
          setTimeout: function () {
          },
          clearTimeout: function () {
          },
          matchMedia: function () {
            return {};
          },
          requestAnimationFrame: function (e) {
            return 'undefined' == typeof setTimeout ? (e(), null) : setTimeout(e, 0);
          },
          cancelAnimationFrame: function (e) {
            'undefined' != typeof setTimeout && clearTimeout(e);
          }
        };

        function a() {
          var e = 'undefined' != typeof window ? window : {};
          return n(e, i), e;
        }

        e.extend = n, e.getDocument = o, e.getWindow = a, e.ssrDocument = r, e.ssrWindow = i, Object.defineProperty(e, '__esModule', { value: !0 });
      }(t);
    }));

  function $p(e) {
    return $p = Object.setPrototypeOf ? Object.getPrototypeOf : function (e) {
      return e.__proto__ || Object.getPrototypeOf(e);
    }, $p(e);
  }

  function Hp(e, t) {
    return Hp = Object.setPrototypeOf || function (e, t) {
      return e.__proto__ = t, e;
    }, Hp(e, t);
  }

  function Vp() {
    if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
    if (Reflect.construct.sham) return !1;
    if ('function' == typeof Proxy) return !0;
    try {
      return Date.prototype.toString.call(Reflect.construct(Date, [], (function () {
      }))), !0;
    } catch (e) {
      return !1;
    }
  }

  function Up(e, t, n) {
    return Up = Vp() ? Reflect.construct : function (e, t, n) {
      var r = [null];
      r.push.apply(r, t);
      var o = new (Function.bind.apply(e, r));
      return n && Hp(o, n.prototype), o;
    }, Up.apply(null, arguments);
  }

  function Wp(e) {
    var t = 'function' == typeof Map ? new Map : void 0;
    return Wp = function (e) {
      if (null === e || (n = e, -1 === Function.toString.call(n)
        .indexOf('[native code]'))) {
        return e;
      }
      var n;
      if ('function' != typeof e) throw new TypeError('Super expression must either be null or a function');
      if (void 0 !== t) {
        if (t.has(e)) return t.get(e);
        t.set(e, r);
      }

      function r() {
        return Up(e, arguments, $p(this).constructor);
      }

      return r.prototype = Object.create(e.prototype, {
        constructor: {
          value: r,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), Hp(r, e);
    }, Wp(e);
  }

  var Gp = function (e) {
    var t,
      n;

    function r(t) {
      var n,
        r,
        o;
      return n = e.call.apply(e, [this].concat(t)) || this, r = function (e) {
        if (void 0 === e) throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');
        return e;
      }(n), o = r.__proto__, Object.defineProperty(r, '__proto__', {
        get: function () {
          return o;
        },
        set: function (e) {
          o.__proto__ = e;
        }
      }), n;
    }

    return n = e, (t = r).prototype = Object.create(n.prototype), t.prototype.constructor = t, t.__proto__ = n, r;
  }(Wp(Array));

  function qp(e) {
    void 0 === e && (e = []);
    var t = [];
    return e.forEach((function (e) {
      Array.isArray(e) ? t.push.apply(t, qp(e)) : t.push(e);
    })), t;
  }

  function Kp(e, t) {
    return Array.prototype.filter.call(e, t);
  }

  function Yp(e, t) {
    var n = zp.getWindow(),
      r = zp.getDocument(),
      o = [];
    if (!t && e instanceof Gp) return e;
    if (!e) return new Gp(o);
    if ('string' == typeof e) {
      var i = e.trim();
      if (i.indexOf('<') >= 0 && i.indexOf('>') >= 0) {
        var a = 'div';
        0 === i.indexOf('<li') && (a = 'ul'), 0 === i.indexOf('<tr') && (a = 'tbody'), 0 !== i.indexOf('<td') && 0 !== i.indexOf('<th') || (a = 'tr'), 0 === i.indexOf('<tbody') && (a = 'table'), 0 === i.indexOf('<option') && (a = 'select');
        var u = r.createElement(a);
        u.innerHTML = i;
        for (var s = 0; s < u.childNodes.length; s += 1) o.push(u.childNodes[s]);
      } else {
        o = function (e, t) {
          if ('string' != typeof e) return [e];
          for (var n = [], r = t.querySelectorAll(e), o = 0; o < r.length; o += 1) n.push(r[o]);
          return n;
        }(e.trim(), t || r);
      }
    } else if (e.nodeType || e === n || e === r) {
      o.push(e);
    } else if (Array.isArray(e)) {
      if (e instanceof Gp) return e;
      o = e;
    }
    return new Gp(function (e) {
      for (var t = [], n = 0; n < e.length; n += 1) -1 === t.indexOf(e[n]) && t.push(e[n]);
      return t;
    }(o));
  }

  Yp.fn = Gp.prototype;
  var Xp = 'resize scroll'.split(' ');

  function Zp(e) {
    return function () {
      for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
      if (void 0 === n[0]) {
        for (var o = 0; o < this.length; o += 1) {
          Xp.indexOf(e) < 0 && (e in this[o] ? this[o][e]() : Yp(this[o])
            .trigger(e));
        }
        return this;
      }
      return this.on.apply(this, [e].concat(n));
    };
  }

  var Jp = Zp('click'),
    Qp = Zp('blur'),
    eh = Zp('focus'),
    th = Zp('focusin'),
    nh = Zp('focusout'),
    rh = Zp('keyup'),
    oh = Zp('keydown'),
    ih = Zp('keypress'),
    ah = Zp('submit'),
    uh = Zp('change'),
    sh = Zp('mousedown'),
    lh = Zp('mousemove'),
    ch = Zp('mouseup'),
    fh = Zp('mouseenter'),
    dh = Zp('mouseleave'),
    ph = Zp('mouseout'),
    hh = Zp('mouseover'),
    vh = Zp('touchstart'),
    gh = Zp('touchend'),
    yh = Zp('touchmove'),
    mh = Yp,
    bh = function () {
      for (var e, t, n = this, r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i];
      for (e = 0; e < o.length; e += 1) {
        var a = Yp(o[e]);
        for (t = 0; t < a.length; t += 1) n.push(a[t]);
      }
      return n;
    },
    wh = function () {
      for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
      var r = qp(t.map((function (e) {
        return e.split(' ');
      })));
      return this.forEach((function (e) {
        var t;
        (t = e.classList).add.apply(t, r);
      })), this;
    },
    Eh = function (e, t) {
      var n,
        r = zp.getWindow(),
        o = this,
        i = {
          props: Object.assign({}, e),
          params: Object.assign({
            duration: 300,
            easing: 'swing'
          }, t),
          elements: o,
          animating: !1,
          que: [],
          easingProgress: function (e, t) {
            return 'swing' === e ? .5 - Math.cos(t * Math.PI) / 2 : 'function' == typeof e ? e(t) : t;
          },
          stop: function () {
            i.frameId && r.cancelAnimationFrame(i.frameId), i.animating = !1, i.elements.each((function (e) {
              delete e.dom7AnimateInstance;
            })), i.que = [];
          },
          done: function (e) {
            if (i.animating = !1, i.elements.each((function (e) {
              delete e.dom7AnimateInstance;
            })), e && e(o), i.que.length > 0) {
              var t = i.que.shift();
              i.animate(t[0], t[1]);
            }
          },
          animate: function (e, t) {
            if (i.animating) return i.que.push([e, t]), i;
            var n = [];
            i.elements.each((function (t, o) {
              var a,
                u,
                s,
                l,
                c;
              t.dom7AnimateInstance || (i.elements[o].dom7AnimateInstance = i), n[o] = { container: t }, Object.keys(e)
                .forEach((function (i) {
                  a = r.getComputedStyle(t, null)
                    .getPropertyValue(i)
                    .replace(',', '.'), u = parseFloat(a), s = a.replace(u, ''), l = parseFloat(e[i]), c = e[i] + s, n[o][i] = {
                    initialFullValue: a,
                    initialValue: u,
                    unit: s,
                    finalValue: l,
                    finalFullValue: c,
                    currentValue: u
                  };
                }));
            }));
            var a,
              u,
              s = null,
              l = 0,
              c = 0,
              f = !1;
            return i.animating = !0, i.frameId = r.requestAnimationFrame((function d() {
              var p,
                h;
              a = (new Date).getTime(), f || (f = !0, t.begin && t.begin(o)), null === s && (s = a), t.progress && t.progress(o, Math.max(Math.min((a - s) / t.duration, 1), 0), s + t.duration - a < 0 ? 0 : s + t.duration - a, s), n.forEach((function (r) {
                var o = r;
                u || o.done || Object.keys(e)
                  .forEach((function (r) {
                    if (!u && !o.done) {
                      p = Math.max(Math.min((a - s) / t.duration, 1), 0), h = i.easingProgress(t.easing, p);
                      var f = o[r],
                        d = f.initialValue,
                        v = f.finalValue,
                        g = f.unit;
                      o[r].currentValue = d + h * (v - d);
                      var y = o[r].currentValue;
                      (v > d && y >= v || v < d && y <= v) && (o.container.style[r] = v + g, (c += 1) === Object.keys(e).length && (o.done = !0, l += 1), l === n.length && (u = !0)), u ? i.done(t.complete) : o.container.style[r] = y + g;
                    }
                  }));
              })), u || (i.frameId = r.requestAnimationFrame(d));
            })), i;
          }
        };
      if (0 === i.elements.length) return o;
      for (var a = 0; a < i.elements.length; a += 1) i.elements[a].dom7AnimateInstance ? n = i.elements[a].dom7AnimateInstance : i.elements[a].dom7AnimateInstance = i;
      return n || (n = i), 'stop' === e ? n.stop() : n.animate(i.props, i.params), o;
    },
    Dh = function (e) {
      var t = this;
      return e && t.on('animationend', (function n(r) {
        r.target === this && (e.call(this, r), t.off('animationend', n));
      })), this;
    },
    xh = function () {
      for (var e, t = zp.getDocument(), n = 0; n < arguments.length; n += 1) {
        e = n < 0 || arguments.length <= n ? void 0 : arguments[n];
        for (var r = 0; r < this.length; r += 1) {
          if ('string' == typeof e) {
            var o = t.createElement('div');
            for (o.innerHTML = e; o.firstChild;) this[r].appendChild(o.firstChild);
          } else if (e instanceof Gp) for (var i = 0; i < e.length; i += 1) this[r].appendChild(e[i]); else this[r].appendChild(e);
        }
      }
      return this;
    },
    Sh = function (e) {
      return Yp(e)
        .append(this), this;
    },
    Ch = function (e, t) {
      if (1 === arguments.length && 'string' == typeof e) return this[0] ? this[0].getAttribute(e) : void 0;
      for (var n = 0; n < this.length; n += 1) if (2 === arguments.length) this[n].setAttribute(e, t); else for (var r in e) this[n][r] = e[r], this[n].setAttribute(r, e[r]);
      return this;
    },
    Ah = Qp,
    Oh = uh,
    kh = function (e) {
      for (var t = [], n = 0; n < this.length; n += 1) {
        for (var r = this[n].children, o = 0; o < r.length; o += 1) {
          e && !Yp(r[o])
            .is(e) || t.push(r[o]);
        }
      }
      return Yp(t);
    },
    Th = Jp,
    Bh = function (e) {
      var t = this;
      return void 0 === e ? Yp([]) : (t.is(e) || (t = t.parents(e)
        .eq(0)), t);
    },
    Fh = function (e, t) {
      var n,
        r = zp.getWindow();
      if (1 === arguments.length) {
        if ('string' != typeof e) {
          for (n = 0; n < this.length; n += 1) for (var o in e) this[n].style[o] = e[o];
          return this;
        }
        if (this[0]) {
          return r.getComputedStyle(this[0], null)
            .getPropertyValue(e);
        }
      }
      if (2 === arguments.length && 'string' == typeof e) {
        for (n = 0; n < this.length; n += 1) this[n].style[e] = t;
        return this;
      }
      return this;
    },
    _h = function (e, t) {
      var n;
      if (void 0 === t) {
        if (!(n = this[0])) return;
        if (n.dom7ElementDataStorage && e in n.dom7ElementDataStorage) return n.dom7ElementDataStorage[e];
        var r = n.getAttribute('data-' + e);
        return r || void 0;
      }
      for (var o = 0; o < this.length; o += 1) (n = this[o]).dom7ElementDataStorage || (n.dom7ElementDataStorage = {}), n.dom7ElementDataStorage[e] = t;
      return this;
    },
    Ph = function () {
      var e = this[0];
      if (e) {
        var t,
          n = {};
        if (e.dataset) {
          for (var r in e.dataset) n[r] = e.dataset[r];
        } else {
          for (var o = 0; o < e.attributes.length; o += 1) {
            var i = e.attributes[o];
            i.name.indexOf('data-') >= 0 && (n[(t = i.name.split('data-')[1], t.toLowerCase()
              .replace(/-(.)/g, (function (e, t) {
                return t.toUpperCase();
              })))] = i.value);
          }
        }
        for (var a in n) 'false' === n[a] ? n[a] = !1 : 'true' === n[a] ? n[a] = !0 : parseFloat(n[a]) === 1 * n[a] && (n[a] *= 1);
        return n;
      }
    },
    jh = Yp,
    Nh = function () {
      return this.remove();
    },
    Ih = function (e) {
      return e ? (this.forEach((function (t, n) {
        e.apply(t, [t, n]);
      })), this) : this;
    },
    Rh = function () {
      for (var e = 0; e < this.length; e += 1) {
        var t = this[e];
        if (1 === t.nodeType) {
          for (var n = 0; n < t.childNodes.length; n += 1) t.childNodes[n].parentNode && t.childNodes[n].parentNode.removeChild(t.childNodes[n]);
          t.textContent = '';
        }
      }
      return this;
    },
    Mh = function (e) {
      if (void 0 === e) return this;
      var t = this.length;
      if (e > t - 1) return Yp([]);
      if (e < 0) {
        var n = t + e;
        return Yp(n < 0 ? [] : [this[n]]);
      }
      return Yp([this[e]]);
    },
    Lh = function (e) {
      return Yp(Kp(this, e));
    },
    zh = function (e) {
      for (var t = [], n = 0; n < this.length; n += 1) for (var r = this[n].querySelectorAll(e), o = 0; o < r.length; o += 1) t.push(r[o]);
      return Yp(t);
    },
    $h = eh,
    Hh = th,
    Vh = nh,
    Uh = function () {
      for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
      var r = qp(t.map((function (e) {
        return e.split(' ');
      })));
      return Kp(this, (function (e) {
        return r.filter((function (t) {
          return e.classList.contains(t);
        })).length > 0;
      })).length > 0;
    },
    Wh = function () {
      var e = zp.getWindow();
      return this[0] === e ? e.innerHeight : this.length > 0 ? parseFloat(this.css('height')) : null;
    },
    Gh = function () {
      for (var e = 0; e < this.length; e += 1) this[e].style.display = 'none';
      return this;
    },
    qh = function (e) {
      if (void 0 === e) return this[0] ? this[0].innerHTML : null;
      for (var t = 0; t < this.length; t += 1) this[t].innerHTML = e;
      return this;
    },
    Kh = function () {
      var e,
        t = this[0];
      if (t) {
        for (e = 0; null !== (t = t.previousSibling);) 1 === t.nodeType && (e += 1);
        return e;
      }
    },
    Yh = function (e) {
      for (var t = Yp(e), n = 0; n < this.length; n += 1) if (1 === t.length) t[0].parentNode.insertBefore(this[n], t[0].nextSibling); else if (t.length > 1) for (var r = 0; r < t.length; r += 1) t[r].parentNode.insertBefore(this[n].cloneNode(!0), t[r].nextSibling);
    },
    Xh = function (e) {
      for (var t = Yp(e), n = 0; n < this.length; n += 1) if (1 === t.length) t[0].parentNode.insertBefore(this[n], t[0]); else if (t.length > 1) for (var r = 0; r < t.length; r += 1) t[r].parentNode.insertBefore(this[n].cloneNode(!0), t[r]);
    },
    Zh = function (e) {
      var t,
        n,
        r = zp.getWindow(),
        o = zp.getDocument(),
        i = this[0];
      if (!i || void 0 === e) return !1;
      if ('string' == typeof e) {
        if (i.matches) return i.matches(e);
        if (i.webkitMatchesSelector) return i.webkitMatchesSelector(e);
        if (i.msMatchesSelector) return i.msMatchesSelector(e);
        for (t = Yp(e), n = 0; n < t.length; n += 1) if (t[n] === i) return !0;
        return !1;
      }
      if (e === o) return i === o;
      if (e === r) return i === r;
      if (e.nodeType || e instanceof Gp) {
        for (t = e.nodeType ? [e] : e, n = 0; n < t.length; n += 1) if (t[n] === i) return !0;
        return !1;
      }
      return !1;
    },
    Jh = oh,
    Qh = ih,
    ev = rh,
    tv = sh,
    nv = fh,
    rv = dh,
    ov = lh,
    iv = ph,
    av = hh,
    uv = ch,
    sv = function (e) {
      return this.length > 0 ? e ? this[0].nextElementSibling && Yp(this[0].nextElementSibling)
        .is(e) ? Yp([this[0].nextElementSibling]) : Yp([]) : this[0].nextElementSibling ? Yp([this[0].nextElementSibling]) : Yp([]) : Yp([]);
    },
    lv = function (e) {
      var t = [],
        n = this[0];
      if (!n) return Yp([]);
      for (; n.nextElementSibling;) {
        var r = n.nextElementSibling;
        e ? Yp(r)
          .is(e) && t.push(r) : t.push(r), n = r;
      }
      return Yp(t);
    },
    cv = function () {
      for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
      var r = t[0],
        o = t[1],
        i = t[2],
        a = t[3];
      'function' == typeof t[1] && (r = t[0], i = t[1], a = t[2], o = void 0), a || (a = !1);
      for (var u = r.split(' '), s = 0; s < u.length; s += 1) {
        for (var l = u[s], c = 0; c < this.length; c += 1) {
          var f = this[c],
            d = void 0;
          if (!o && f.dom7Listeners ? d = f.dom7Listeners[l] : o && f.dom7LiveListeners && (d = f.dom7LiveListeners[l]), d && d.length) {
            for (var p = d.length - 1; p >= 0; p -= 1) {
              var h = d[p];
              i && h.listener === i || i && h.listener && h.listener.dom7proxy && h.listener.dom7proxy === i ? (f.removeEventListener(l, h.proxyListener, a), d.splice(p, 1)) : i || (f.removeEventListener(l, h.proxyListener, a), d.splice(p, 1));
            }
          }
        }
      }
      return this;
    },
    fv = function () {
      if (this.length > 0) {
        var e = zp.getWindow(),
          t = zp.getDocument(),
          n = this[0],
          r = n.getBoundingClientRect(),
          o = t.body,
          i = n.clientTop || o.clientTop || 0,
          a = n.clientLeft || o.clientLeft || 0,
          u = n === e ? e.scrollY : n.scrollTop,
          s = n === e ? e.scrollX : n.scrollLeft;
        return {
          top: r.top + u - i,
          left: r.left + s - a
        };
      }
      return null;
    },
    dv = function () {
      for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
      var r = t[0],
        o = t[1],
        i = t[2],
        a = t[3];

      function u(e) {
        var t = e.target;
        if (t) {
          var n = e.target.dom7EventData || [];
          if (n.indexOf(e) < 0 && n.unshift(e), Yp(t)
            .is(o)) {
            i.apply(t, n);
          } else {
            for (var r = Yp(t)
              .parents(), a = 0; a < r.length; a += 1) {
              Yp(r[a])
                .is(o) && i.apply(r[a], n);
            }
          }
        }
      }

      function s(e) {
        var t = e && e.target && e.target.dom7EventData || [];
        t.indexOf(e) < 0 && t.unshift(e), i.apply(this, t);
      }

      'function' == typeof t[1] && (r = t[0], i = t[1], a = t[2], o = void 0), a || (a = !1);
      for (var l, c = r.split(' '), f = 0; f < this.length; f += 1) {
        var d = this[f];
        if (o) {
          for (l = 0; l < c.length; l += 1) {
            var p = c[l];
            d.dom7LiveListeners || (d.dom7LiveListeners = {}), d.dom7LiveListeners[p] || (d.dom7LiveListeners[p] = []), d.dom7LiveListeners[p].push({
              listener: i,
              proxyListener: u
            }), d.addEventListener(p, u, a);
          }
        } else {
          for (l = 0; l < c.length; l += 1) {
            var h = c[l];
            d.dom7Listeners || (d.dom7Listeners = {}), d.dom7Listeners[h] || (d.dom7Listeners[h] = []), d.dom7Listeners[h].push({
              listener: i,
              proxyListener: s
            }), d.addEventListener(h, s, a);
          }
        }
      }
      return this;
    },
    pv = function () {
      for (var e = this, t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
      var o = n[0],
        i = n[1],
        a = n[2],
        u = n[3];

      function s() {
        for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
        a.apply(this, n), e.off(o, i, s, u), s.dom7proxy && delete s.dom7proxy;
      }

      return 'function' == typeof n[1] && (o = n[0], a = n[1], u = n[2], i = void 0), s.dom7proxy = a, e.on(o, i, s, u);
    },
    hv = function (e) {
      if (this.length > 0) {
        if (e) {
          var t = this.styles();
          return this[0].offsetHeight + parseFloat(t.getPropertyValue('margin-top')) + parseFloat(t.getPropertyValue('margin-bottom'));
        }
        return this[0].offsetHeight;
      }
      return null;
    },
    vv = function (e) {
      if (this.length > 0) {
        if (e) {
          var t = this.styles();
          return this[0].offsetWidth + parseFloat(t.getPropertyValue('margin-right')) + parseFloat(t.getPropertyValue('margin-left'));
        }
        return this[0].offsetWidth;
      }
      return null;
    },
    gv = function (e) {
      for (var t = [], n = 0; n < this.length; n += 1) {
        null !== this[n].parentNode && (e ? Yp(this[n].parentNode)
          .is(e) && t.push(this[n].parentNode) : t.push(this[n].parentNode));
      }
      return Yp(t);
    },
    yv = function (e) {
      for (var t = [], n = 0; n < this.length; n += 1) {
        for (var r = this[n].parentNode; r;) {
          e ? Yp(r)
            .is(e) && t.push(r) : t.push(r), r = r.parentNode;
        }
      }
      return Yp(t);
    },
    mv = function (e) {
      var t,
        n,
        r = zp.getDocument();
      for (t = 0; t < this.length; t += 1) {
        if ('string' == typeof e) {
          var o = r.createElement('div');
          for (o.innerHTML = e, n = o.childNodes.length - 1; n >= 0; n -= 1) this[t].insertBefore(o.childNodes[n], this[t].childNodes[0]);
        } else if (e instanceof Gp) for (n = 0; n < e.length; n += 1) this[t].insertBefore(e[n], this[t].childNodes[0]); else this[t].insertBefore(e, this[t].childNodes[0]);
      }
      return this;
    },
    bv = function (e) {
      return Yp(e)
        .prepend(this), this;
    },
    wv = function (e) {
      if (this.length > 0) {
        var t = this[0];
        return e ? t.previousElementSibling && Yp(t.previousElementSibling)
          .is(e) ? Yp([t.previousElementSibling]) : Yp([]) : t.previousElementSibling ? Yp([t.previousElementSibling]) : Yp([]);
      }
      return Yp([]);
    },
    Ev = function (e) {
      var t = [],
        n = this[0];
      if (!n) return Yp([]);
      for (; n.previousElementSibling;) {
        var r = n.previousElementSibling;
        e ? Yp(r)
          .is(e) && t.push(r) : t.push(r), n = r;
      }
      return Yp(t);
    },
    Dv = function (e, t) {
      if (1 !== arguments.length || 'string' != typeof e) {
        for (var n = 0; n < this.length; n += 1) if (2 === arguments.length) this[n][e] = t; else for (var r in e) this[n][r] = e[r];
        return this;
      }
      return this[0] ? this[0][e] : this;
    },
    xv = function () {
      for (var e = 0; e < this.length; e += 1) this[e].parentNode && this[e].parentNode.removeChild(this[e]);
      return this;
    },
    Sv = function (e) {
      for (var t = 0; t < this.length; t += 1) this[t].removeAttribute(e);
      return this;
    },
    Cv = function () {
      for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
      var r = qp(t.map((function (e) {
        return e.split(' ');
      })));
      return this.forEach((function (e) {
        var t;
        (t = e.classList).remove.apply(t, r);
      })), this;
    },
    Av = function (e) {
      for (var t = 0; t < this.length; t += 1) {
        var n = this[t];
        n.dom7ElementDataStorage && n.dom7ElementDataStorage[e] && (n.dom7ElementDataStorage[e] = null, delete n.dom7ElementDataStorage[e]);
      }
    },
    Ov = Zp('resize'),
    kv = Zp('scroll'),
    Tv = function () {
      for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
      var r = t[0],
        o = t[1],
        i = t[2],
        a = t[3];
      3 === t.length && 'function' == typeof i && (r = t[0], o = t[1], a = t[2], i = t[3]);
      var u = this;
      return void 0 === r ? u.length > 0 ? u[0].scrollLeft : null : u.scrollTo(r, void 0, o, i, a);
    },
    Bv = function () {
      for (var e = zp.getWindow(), t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
      var o = n[0],
        i = n[1],
        a = n[2],
        u = n[3],
        s = n[4];
      return 4 === n.length && 'function' == typeof u && (s = u, o = n[0], i = n[1], a = n[2], s = n[3], u = n[4]), void 0 === u && (u = 'swing'), this.each((function () {
        var t,
          n,
          r,
          l,
          c,
          f,
          d,
          p,
          h = this,
          v = i > 0 || 0 === i,
          g = o > 0 || 0 === o;
        if (void 0 === u && (u = 'swing'), v && (t = h.scrollTop, a || (h.scrollTop = i)), g && (n = h.scrollLeft, a || (h.scrollLeft = o)), a) {
          v && (r = h.scrollHeight - h.offsetHeight, c = Math.max(Math.min(i, r), 0)), g && (l = h.scrollWidth - h.offsetWidth, f = Math.max(Math.min(o, l), 0));
          var y = null;
          v && c === t && (v = !1), g && f === n && (g = !1), e.requestAnimationFrame((function r(o) {
            void 0 === o && (o = (new Date).getTime()), null === y && (y = o);
            var i,
              l = Math.max(Math.min((o - y) / a, 1), 0),
              m = 'linear' === u ? l : .5 - Math.cos(l * Math.PI) / 2;
            v && (d = t + m * (c - t)), g && (p = n + m * (f - n)), v && c > t && d >= c && (h.scrollTop = c, i = !0), v && c < t && d <= c && (h.scrollTop = c, i = !0), g && f > n && p >= f && (h.scrollLeft = f, i = !0), g && f < n && p <= f && (h.scrollLeft = f, i = !0), i ? s && s() : (v && (h.scrollTop = d), g && (h.scrollLeft = p), e.requestAnimationFrame(r));
          }));
        }
      }));
    },
    Fv = function () {
      for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
      var r = t[0],
        o = t[1],
        i = t[2],
        a = t[3];
      3 === t.length && 'function' == typeof i && (r = t[0], o = t[1], a = t[2], i = t[3]);
      var u = this;
      return void 0 === r ? u.length > 0 ? u[0].scrollTop : null : u.scrollTo(void 0, r, o, i, a);
    },
    _v = function () {
      for (var e = zp.getWindow(), t = 0; t < this.length; t += 1) {
        var n = this[t];
        'none' === n.style.display && (n.style.display = ''), 'none' === e.getComputedStyle(n, null)
          .getPropertyValue('display') && (n.style.display = 'block');
      }
      return this;
    },
    Pv = function (e) {
      return this.nextAll(e)
        .add(this.prevAll(e));
    },
    jv = function () {
      for (var e = this, t = 0; t < e.length; t += 1) e[t].dom7AnimateInstance && e[t].dom7AnimateInstance.stop();
    },
    Nv = function () {
      var e = zp.getWindow();
      return this[0] ? e.getComputedStyle(this[0], null) : {};
    },
    Iv = ah,
    Rv = function (e) {
      if (void 0 === e) return this[0] ? this[0].textContent.trim() : null;
      for (var t = 0; t < this.length; t += 1) this[t].textContent = e;
      return this;
    },
    Mv = function () {
      for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
      var r = qp(t.map((function (e) {
        return e.split(' ');
      })));
      this.forEach((function (e) {
        r.forEach((function (t) {
          e.classList.toggle(t);
        }));
      }));
    },
    Lv = gh,
    zv = yh,
    $v = vh,
    Hv = function (e) {
      for (var t = 0; t < this.length; t += 1) this[t].style.transform = e;
      return this;
    },
    Vv = function (e) {
      for (var t = 0; t < this.length; t += 1) this[t].style.transitionDuration = 'string' != typeof e ? e + 'ms' : e;
      return this;
    },
    Uv = function (e) {
      var t = this;
      return e && t.on('transitionend', (function n(r) {
        r.target === this && (e.call(this, r), t.off('transitionend', n));
      })), this;
    },
    Wv = function () {
      for (var e = zp.getWindow(), t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
      for (var o = n[0].split(' '), i = n[1], a = 0; a < o.length; a += 1) {
        for (var u = o[a], s = 0; s < this.length; s += 1) {
          var l = this[s];
          if (e.CustomEvent) {
            var c = new e.CustomEvent(u, {
              detail: i,
              bubbles: !0,
              cancelable: !0
            });
            l.dom7EventData = n.filter((function (e, t) {
              return t > 0;
            })), l.dispatchEvent(c), l.dom7EventData = [], delete l.dom7EventData;
          }
        }
      }
      return this;
    },
    Gv = function (e) {
      if (void 0 === e) {
        var t = this[0];
        if (!t) return;
        if (t.multiple && 'select' === t.nodeName.toLowerCase()) {
          for (var n = [], r = 0; r < t.selectedOptions.length; r += 1) n.push(t.selectedOptions[r].value);
          return n;
        }
        return t.value;
      }
      for (var o = 0; o < this.length; o += 1) {
        var i = this[o];
        if (Array.isArray(e) && i.multiple && 'select' === i.nodeName.toLowerCase()) for (var a = 0; a < i.options.length; a += 1) i.options[a].selected = e.indexOf(i.options[a].value) >= 0; else i.value = e;
      }
      return this;
    },
    qv = function (e) {
      return this.val(e);
    },
    Kv = function () {
      var e = zp.getWindow();
      return this[0] === e ? e.innerWidth : this.length > 0 ? parseFloat(this.css('width')) : null;
    },
    Yv = Object.defineProperty({
      $: mh,
      add: bh,
      addClass: wh,
      animate: Eh,
      animationEnd: Dh,
      append: xh,
      appendTo: Sh,
      attr: Ch,
      blur: Ah,
      change: Oh,
      children: kh,
      click: Th,
      closest: Bh,
      css: Fh,
      data: _h,
      dataset: Ph,
      default: jh,
      detach: Nh,
      each: Ih,
      empty: Rh,
      eq: Mh,
      filter: Lh,
      find: zh,
      focus: $h,
      focusin: Hh,
      focusout: Vh,
      hasClass: Uh,
      height: Wh,
      hide: Gh,
      html: qh,
      index: Kh,
      insertAfter: Yh,
      insertBefore: Xh,
      is: Zh,
      keydown: Jh,
      keypress: Qh,
      keyup: ev,
      mousedown: tv,
      mouseenter: nv,
      mouseleave: rv,
      mousemove: ov,
      mouseout: iv,
      mouseover: av,
      mouseup: uv,
      next: sv,
      nextAll: lv,
      off: cv,
      offset: fv,
      on: dv,
      once: pv,
      outerHeight: hv,
      outerWidth: vv,
      parent: gv,
      parents: yv,
      prepend: mv,
      prependTo: bv,
      prev: wv,
      prevAll: Ev,
      prop: Dv,
      remove: xv,
      removeAttr: Sv,
      removeClass: Cv,
      removeData: Av,
      resize: Ov,
      scroll: kv,
      scrollLeft: Tv,
      scrollTo: Bv,
      scrollTop: Fv,
      show: _v,
      siblings: Pv,
      stop: jv,
      styles: Nv,
      submit: Iv,
      text: Rv,
      toggleClass: Mv,
      touchend: Lv,
      touchmove: zv,
      touchstart: $v,
      transform: Hv,
      transition: Vv,
      transitionEnd: Uv,
      trigger: Wv,
      val: Gv,
      value: qv,
      width: Kv
    }, '__esModule', { value: !0 }),
    Xv = 9007199254740991,
    Zv = '[object Arguments]',
    Jv = '[object Function]',
    Qv = '[object GeneratorFunction]',
    eg = /^(?:0|[1-9]\d*)$/;

  function tg(e, t) {
    for (var n = -1, r = e ? e.length : 0; ++n < r && !1 !== t(e[n], n, e);) ;
    return e;
  }

  var ng = Object.prototype,
    rg = ng.hasOwnProperty,
    og = ng.toString,
    ig = ng.propertyIsEnumerable,
    ag = function (e, t) {
      return function (n) {
        return e(t(n));
      };
    }(Object.keys, Object);

  function ug(e, t) {
    var n = hg(e) || function (e) {
        return function (e) {
          return function (e) {
            return !!e && 'object' == typeof e;
          }(e) && vg(e);
        }(e) && rg.call(e, 'callee') && (!ig.call(e, 'callee') || og.call(e) == Zv);
      }(e) ? function (e, t) {
        for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
        return r;
      }(e.length, String) : [],
      r = n.length,
      o = !!r;
    for (var i in e) !t && !rg.call(e, i) || o && ('length' == i || pg(i, r)) || n.push(i);
    return n;
  }

  var sg,
    lg,
    cg = (sg = function (e, t) {
      return e && fg(e, t, gg);
    }, function (e, t) {
      if (null == e) return e;
      if (!vg(e)) return sg(e, t);
      for (var n = e.length, r = lg ? n : -1, o = Object(e); (lg ? r-- : ++r < n) && !1 !== t(o[r], r, o);) ;
      return e;
    }),
    fg = function (e) {
      return function (t, n, r) {
        for (var o = -1, i = Object(t), a = r(t), u = a.length; u--;) {
          var s = a[e ? u : ++o];
          if (!1 === n(i[s], s, i)) break;
        }
        return t;
      };
    }();

  function dg(e) {
    if (!function (e) {
      var t = e && e.constructor,
        n = 'function' == typeof t && t.prototype || ng;
      return e === n;
    }(e)) {
      return ag(e);
    }
    var t = [];
    for (var n in Object(e)) rg.call(e, n) && 'constructor' != n && t.push(n);
    return t;
  }

  function pg(e, t) {
    return !!(t = null == t ? Xv : t) && ('number' == typeof e || eg.test(e)) && e > -1 && e % 1 == 0 && e < t;
  }

  var hg = Array.isArray;

  function vg(e) {
    return null != e && function (e) {
      return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= Xv;
    }(e.length) && !function (e) {
      var t = function (e) {
        var t = typeof e;
        return !!e && ('object' == t || 'function' == t);
      }(e) ? og.call(e) : '';
      return t == Jv || t == Qv;
    }(e);
  }

  function gg(e) {
    return vg(e) ? ug(e) : dg(e);
  }

  function yg(e) {
    return e;
  }

  var mg = function (e, t) {
    return (hg(e) ? tg : cg)(e, 'function' == typeof t ? t : yg);
  };
  var bg = { urlAlphabet: 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict' };
  let { urlAlphabet: wg } = bg,
    Eg = e => crypto.getRandomValues(new Uint8Array(e)),
    Dg = (e, t, n) => {
      let r = (2 << Math.log(e.length - 1) / Math.LN2) - 1,
        o = -~(1.6 * r * t / e.length);
      return () => {
        let i = '';
        for (; ;) {
          let a = n(o),
            u = o;
          for (; u--;) if (i += e[a[u] & r] || '', i.length === t) return i;
        }
      };
    };
  var xg = {
      nanoid: (e = 21) => {
        let t = '',
          n = crypto.getRandomValues(new Uint8Array(e));
        for (; e--;) {
          let r = 63 & n[e];
          t += r < 36 ? r.toString(36) : r < 62 ? (r - 26).toString(36)
            .toUpperCase() : r < 63 ? '_' : '-';
        }
        return t;
      },
      customAlphabet: (e, t) => Dg(e, t, Eg),
      customRandom: Dg,
      urlAlphabet: wg,
      random: Eg
    },
    Sg = 'Expected a function',
    Cg = /^\s+|\s+$/g,
    Ag = /^[-+]0x[0-9a-f]+$/i,
    Og = /^0b[01]+$/i,
    kg = /^0o[0-7]+$/i,
    Tg = parseInt,
    Bg = 'object' == typeof t && t && t.Object === Object && t,
    Fg = 'object' == typeof self && self && self.Object === Object && self,
    _g = Bg || Fg || Function('return this')(),
    Pg = Object.prototype.toString,
    jg = Math.max,
    Ng = Math.min,
    Ig = function () {
      return _g.Date.now();
    };

  function Rg(e, t, n) {
    var r,
      o,
      i,
      a,
      u,
      s,
      l = 0,
      c = !1,
      f = !1,
      d = !0;
    if ('function' != typeof e) throw new TypeError(Sg);

    function p(t) {
      var n = r,
        i = o;
      return r = o = void 0, l = t, a = e.apply(i, n);
    }

    function h(e) {
      return l = e, u = setTimeout(g, t), c ? p(e) : a;
    }

    function v(e) {
      var n = e - s;
      return void 0 === s || n >= t || n < 0 || f && e - l >= i;
    }

    function g() {
      var e = Ig();
      if (v(e)) return y(e);
      u = setTimeout(g, function (e) {
        var n = t - (e - s);
        return f ? Ng(n, i - (e - l)) : n;
      }(e));
    }

    function y(e) {
      return u = void 0, d && r ? p(e) : (r = o = void 0, a);
    }

    function m() {
      var e = Ig(),
        n = v(e);
      if (r = arguments, o = this, s = e, n) {
        if (void 0 === u) return h(s);
        if (f) return u = setTimeout(g, t), p(s);
      }
      return void 0 === u && (u = setTimeout(g, t)), a;
    }

    return t = Lg(t) || 0, Mg(n) && (c = !!n.leading, i = (f = 'maxWait' in n) ? jg(Lg(n.maxWait) || 0, t) : i, d = 'trailing' in n ? !!n.trailing : d), m.cancel = function () {
      void 0 !== u && clearTimeout(u), l = 0, r = s = o = u = void 0;
    }, m.flush = function () {
      return void 0 === u ? a : y(Ig());
    }, m;
  }

  function Mg(e) {
    var t = typeof e;
    return !!e && ('object' == t || 'function' == t);
  }

  function Lg(e) {
    if ('number' == typeof e) return e;
    if (function (e) {
      return 'symbol' == typeof e || function (e) {
        return !!e && 'object' == typeof e;
      }(e) && '[object Symbol]' == Pg.call(e);
    }(e)) {
      return NaN;
    }
    if (Mg(e)) {
      var t = 'function' == typeof e.valueOf ? e.valueOf() : e;
      e = Mg(t) ? t + '' : t;
    }
    if ('string' != typeof e) return 0 === e ? e : +e;
    e = e.replace(Cg, '');
    var n = Og.test(e);
    return n || kg.test(e) ? Tg(e.slice(2), n ? 2 : 8) : Ag.test(e) ? NaN : +e;
  }

  var zg = function (e, t, n) {
      var r = !0,
        o = !0;
      if ('function' != typeof e) throw new TypeError(Sg);
      return Mg(n) && (r = 'leading' in n ? !!n.leading : r, o = 'trailing' in n ? !!n.trailing : o), Rg(e, t, {
        leading: r,
        maxWait: t,
        trailing: o
      });
    },
    $g = r((function (e, t) {
      Object.defineProperty(t, '__esModule', { value: !0 });
      const n = {
        createElement: function (e, t) {
          return document.createElement(e, t);
        },
        createElementNS: function (e, t, n) {
          return document.createElementNS(e, t, n);
        },
        createTextNode: function (e) {
          return document.createTextNode(e);
        },
        createComment: function (e) {
          return document.createComment(e);
        },
        insertBefore: function (e, t, n) {
          e.insertBefore(t, n);
        },
        removeChild: function (e, t) {
          e.removeChild(t);
        },
        appendChild: function (e, t) {
          e.appendChild(t);
        },
        parentNode: function (e) {
          return e.parentNode;
        },
        nextSibling: function (e) {
          return e.nextSibling;
        },
        tagName: function (e) {
          return e.tagName;
        },
        setTextContent: function (e, t) {
          e.textContent = t;
        },
        getTextContent: function (e) {
          return e.textContent;
        },
        isElement: function (e) {
          return 1 === e.nodeType;
        },
        isText: function (e) {
          return 3 === e.nodeType;
        },
        isComment: function (e) {
          return 8 === e.nodeType;
        }
      };

      function r(e, t, n, r, o) {
        return {
          sel: e,
          data: t,
          children: n,
          text: r,
          elm: o,
          key: void 0 === t ? void 0 : t.key
        };
      }

      const o = Array.isArray;

      function i(e) {
        return 'string' == typeof e || 'number' == typeof e || e instanceof String || e instanceof Number;
      }

      function a(e) {
        return void 0 === e;
      }

      function u(e) {
        return void 0 !== e;
      }

      const s = r('', {}, [], void 0, void 0);

      function l(e, t) {
        var n,
          r;
        const o = e.key === t.key,
          i = (null === (n = e.data) || void 0 === n ? void 0 : n.is) === (null === (r = t.data) || void 0 === r ? void 0 : r.is);
        return e.sel === t.sel && o && i;
      }

      function c(e, t, n) {
        var r;
        const o = {};
        for (let i = t; i <= n; ++i) {
          const t = null === (r = e[i]) || void 0 === r ? void 0 : r.key;
          void 0 !== t && (o[t] = i);
        }
        return o;
      }

      const f = ['create', 'update', 'remove', 'destroy', 'pre', 'post'];

      function d(e, t, n) {
        if (e.ns = 'http://www.w3.org/2000/svg', 'foreignObject' !== n && void 0 !== t) {
          for (let e = 0; e < t.length; ++e) {
            const n = t[e].data;
            void 0 !== n && d(n, t[e].children, t[e].sel);
          }
        }
      }

      function p(e, t, n) {
        let a,
          u,
          s,
          l = {};
        if (void 0 !== n ? (null !== t && (l = t), o(n) ? a = n : i(n) ? u = n.toString() : n && n.sel && (a = [n])) : null != t && (o(t) ? a = t : i(t) ? u = t.toString() : t && t.sel ? a = [t] : l = t), void 0 !== a) for (s = 0; s < a.length; ++s) i(a[s]) && (a[s] = r(void 0, void 0, void 0, a[s], void 0));
        return 's' !== e[0] || 'v' !== e[1] || 'g' !== e[2] || 3 !== e.length && '.' !== e[3] && '#' !== e[3] || d(l, a, e), r(e, l, a, u, void 0);
      }

      function h(e, t) {
        e.data.fn = t.data.fn, e.data.args = t.data.args, t.data = e.data, t.children = e.children, t.text = e.text, t.elm = e.elm;
      }

      function v(e) {
        const t = e.data;
        h(t.fn(...t.args), e);
      }

      function g(e, t) {
        let n;
        const r = e.data,
          o = t.data,
          i = r.args,
          a = o.args;
        if (r.fn === o.fn && i.length === a.length) {
          for (n = 0; n < a.length; ++n) if (i[n] !== a[n]) return void h(o.fn(...a), t);
          h(e, t);
        } else {
          h(o.fn(...a), t);
        }
      }

      function y(e, t) {
        const n = e.data.attachData;
        t.data.attachData.placeholder = n.placeholder, t.data.attachData.real = n.real, e.elm = e.data.attachData.real;
      }

      function m(e, t) {
        t.elm = t.data.attachData.placeholder;
      }

      function b(e) {
        void 0 !== e.elm && e.elm.parentNode.removeChild(e.elm), e.elm = e.data.attachData.real;
      }

      function w(e, t) {
        const n = t.elm,
          r = t.data.attachData,
          o = document.createElement('span');
        t.elm = o, r.target.appendChild(n), r.real = n, r.placeholder = o;
      }

      function E(e, t) {
        let n;
        const r = t.elm;
        let o = e.data.attrs,
          i = t.data.attrs;
        if ((o || i) && o !== i) {
          for (n in o = o || {}, i = i || {}, i) {
            const e = i[n];
            o[n] !== e && (!0 === e ? r.setAttribute(n, '') : !1 === e ? r.removeAttribute(n) : 120 !== n.charCodeAt(0) ? r.setAttribute(n, e) : 58 === n.charCodeAt(3) ? r.setAttributeNS('http://www.w3.org/XML/1998/namespace', n, e) : 58 === n.charCodeAt(5) ? r.setAttributeNS('http://www.w3.org/1999/xlink', n, e) : r.setAttribute(n, e));
          }
          for (n in o) n in i || r.removeAttribute(n);
        }
      }

      const D = {
        create: E,
        update: E
      };

      function x(e, t) {
        let n,
          r;
        const o = t.elm;
        let i = e.data.class,
          a = t.data.class;
        if ((i || a) && i !== a) {
          for (r in i = i || {}, a = a || {}, i) i[r] && !Object.prototype.hasOwnProperty.call(a, r) && o.classList.remove(r);
          for (r in a) n = a[r], n !== i[r] && o.classList[n ? 'add' : 'remove'](r);
        }
      }

      const S = {
          create: x,
          update: x
        },
        C = /[A-Z]/g;

      function A(e, t) {
        const n = t.elm;
        let r,
          o = e.data.dataset,
          i = t.data.dataset;
        if (!o && !i) return;
        if (o === i) return;
        o = o || {}, i = i || {};
        const a = n.dataset;
        for (r in o) {
          i[r] || (a ? r in a && delete a[r] : n.removeAttribute('data-' + r.replace(C, '-$&')
            .toLowerCase()));
        }
        for (r in i) {
          o[r] !== i[r] && (a ? a[r] = i[r] : n.setAttribute('data-' + r.replace(C, '-$&')
            .toLowerCase(), i[r]));
        }
      }

      const O = {
        create: A,
        update: A
      };

      function k(e, t, n) {
        if ('function' == typeof e) e.call(t, n, t); else if ('object' == typeof e) for (let r = 0; r < e.length; r++) k(e[r], t, n);
      }

      function T(e, t) {
        const n = e.type,
          r = t.data.on;
        r && r[n] && k(r[n], t, e);
      }

      function B(e, t) {
        const n = e.data.on,
          r = e.listener,
          o = e.elm,
          i = t && t.data.on,
          a = t && t.elm;
        let u;
        if (n !== i) {
          if (n && r) if (i) for (u in n) i[u] || o.removeEventListener(u, r, !1); else for (u in n) o.removeEventListener(u, r, !1);
          if (i) {
            const r = t.listener = e.listener || function e(t) {
              T(t, e.vnode);
            };
            if (r.vnode = t, n) for (u in i) n[u] || a.addEventListener(u, r, !1); else for (u in i) a.addEventListener(u, r, !1);
          }
        }
      }

      const F = {
        create: B,
        update: B,
        destroy: B
      };

      function _(e, t) {
        let n,
          r,
          o;
        const i = t.elm;
        let a = e.data.props,
          u = t.data.props;
        if ((a || u) && a !== u) for (n in a = a || {}, u = u || {}, u) r = u[n], o = a[n], o === r || 'value' === n && i[n] === r || (i[n] = r);
      }

      const P = {
          create: _,
          update: _
        },
        j = 'undefined' != typeof window && window.requestAnimationFrame.bind(window) || setTimeout;
      let N = !1;

      function I(e, t, n) {
        var r;
        r = function () {
          e[t] = n;
        }, j((function () {
          j(r);
        }));
      }

      function R(e, t) {
        let n,
          r;
        const o = t.elm;
        let i = e.data.style,
          a = t.data.style;
        if (!i && !a) return;
        if (i === a) return;
        i = i || {}, a = a || {};
        const u = 'delayed' in i;
        for (r in i) a[r] || ('-' === r[0] && '-' === r[1] ? o.style.removeProperty(r) : o.style[r] = '');
        for (r in a) if (n = a[r], 'delayed' === r && a.delayed) for (const e in a.delayed) n = a.delayed[e], u && n === i.delayed[e] || I(o.style, e, n); else 'remove' !== r && n !== i[r] && ('-' === r[0] && '-' === r[1] ? o.style.setProperty(r, n) : o.style[r] = n);
      }

      const M = {
        pre: function () {
          N = !1;
        },
        create: R,
        update: R,
        destroy: function (e) {
          let t,
            n;
          const r = e.elm,
            o = e.data.style;
          if (o && (t = o.destroy)) for (n in t) r.style[n] = t[n];
        },
        remove: function (e, t) {
          const n = e.data.style;
          if (!n || !n.remove) return void t();
          let r;
          N || (e.elm.offsetLeft, N = !0);
          const o = e.elm;
          let i = 0;
          const a = n.remove;
          let u = 0;
          const s = [];
          for (r in a) s.push(r), o.style[r] = a[r];
          const l = getComputedStyle(o)['transition-property'].split(', ');
          for (; i < l.length; ++i) -1 !== s.indexOf(l[i]) && u++;
          o.addEventListener('transitionend', (function (e) {
            e.target === o && --u, 0 === u && t();
          }));
        }
      };

      function L(e, t) {
        for (const n of e) null != n && !1 !== n && '' !== n && (Array.isArray(n) ? L(n, t) : 'string' == typeof n || 'number' == typeof n || 'boolean' == typeof n ? t.push(r(void 0, void 0, void 0, String(n), void 0)) : t.push(n));
        return t;
      }

      function z(e, t, ...n) {
        const r = L(n, []);
        return 'function' == typeof e ? e(t, r) : 1 === r.length && !r[0].sel && r[0].text ? p(e, t, r[0].text) : p(e, t, r);
      }

      z || (z = {}), t.array = o, t.attachTo = function (e, t) {
        void 0 === t.data && (t.data = {}), void 0 === t.data.hook && (t.data.hook = {});
        const n = t.data,
          r = t.data.hook;
        return n.attachData = {
          target: e,
          placeholder: void 0,
          real: void 0
        }, r.create = w, r.prepatch = y, r.postpatch = m, r.destroy = b, t;
      }, t.attributesModule = D, t.classModule = S, t.datasetModule = O, t.eventListenersModule = F, t.h = p, t.htmlDomApi = n, t.init = function (e, t) {
        const d = {
            create: [],
            update: [],
            remove: [],
            destroy: [],
            pre: [],
            post: []
          },
          p = void 0 !== t ? t : n;
        for (const t of f) {
          for (const n of e) {
            const e = n[t];
            void 0 !== e && d[t].push(e);
          }
        }

        function h(e) {
          const t = e.id ? '#' + e.id : '',
            n = e.getAttribute('class'),
            o = n ? '.' + n.split(' ')
              .join('.') : '';
          return r(p.tagName(e)
            .toLowerCase() + t + o, {}, [], void 0, e);
        }

        function v(e, t) {
          return function () {
            if (0 == --t) {
              const t = p.parentNode(e);
              p.removeChild(t, e);
            }
          };
        }

        function g(e, t) {
          var n,
            r;
          let l,
            c = e.data;
          if (void 0 !== c) {
            const t = null === (n = c.hook) || void 0 === n ? void 0 : n.init;
            u(t) && (t(e), c = e.data);
          }
          const f = e.children,
            h = e.sel;
          if ('!' === h) {
            a(e.text) && (e.text = ''), e.elm = p.createComment(e.text);
          } else if (void 0 !== h) {
            const n = h.indexOf('#'),
              a = h.indexOf('.', n),
              v = n > 0 ? n : h.length,
              y = a > 0 ? a : h.length,
              m = -1 !== n || -1 !== a ? h.slice(0, Math.min(v, y)) : h,
              b = e.elm = u(c) && u(l = c.ns) ? p.createElementNS(l, m, c) : p.createElement(m, c);
            for (v < y && b.setAttribute('id', h.slice(v + 1, y)), a > 0 && b.setAttribute('class', h.slice(y + 1)
              .replace(/\./g, ' ')), l = 0; l < d.create.length; ++l) {
              d.create[l](s, e);
            }
            if (o(f)) {
              for (l = 0; l < f.length; ++l) {
                const e = f[l];
                null != e && p.appendChild(b, g(e, t));
              }
            } else {
              i(e.text) && p.appendChild(b, p.createTextNode(e.text));
            }
            const w = e.data.hook;
            u(w) && (null === (r = w.create) || void 0 === r || r.call(w, s, e), w.insert && t.push(e));
          } else {
            e.elm = p.createTextNode(e.text);
          }
          return e.elm;
        }

        function y(e, t, n, r, o, i) {
          for (; r <= o; ++r) {
            const o = n[r];
            null != o && p.insertBefore(e, g(o, i), t);
          }
        }

        function m(e) {
          var t,
            n;
          const r = e.data;
          if (void 0 !== r) {
            null === (n = null === (t = null == r ? void 0 : r.hook) || void 0 === t ? void 0 : t.destroy) || void 0 === n || n.call(t, e);
            for (let t = 0; t < d.destroy.length; ++t) d.destroy[t](e);
            if (void 0 !== e.children) {
              for (let t = 0; t < e.children.length; ++t) {
                const n = e.children[t];
                null != n && 'string' != typeof n && m(n);
              }
            }
          }
        }

        function b(e, t, n, r) {
          for (var o, i; n <= r; ++n) {
            let r,
              a;
            const s = t[n];
            if (null != s) {
              if (u(s.sel)) {
                m(s), r = d.remove.length + 1, a = v(s.elm, r);
                for (let e = 0; e < d.remove.length; ++e) d.remove[e](s, a);
                const e = null === (i = null === (o = null == s ? void 0 : s.data) || void 0 === o ? void 0 : o.hook) || void 0 === i ? void 0 : i.remove;
                u(e) ? e(s, a) : a();
              } else {
                p.removeChild(e, s.elm);
              }
            }
          }
        }

        function w(e, t, n) {
          var r,
            o,
            i,
            s,
            f;
          const h = null === (r = t.data) || void 0 === r ? void 0 : r.hook;
          null === (o = null == h ? void 0 : h.prepatch) || void 0 === o || o.call(h, e, t);
          const v = t.elm = e.elm,
            m = e.children,
            E = t.children;
          if (e !== t) {
            if (void 0 !== t.data) {
              for (let n = 0; n < d.update.length; ++n) d.update[n](e, t);
              null === (s = null === (i = t.data.hook) || void 0 === i ? void 0 : i.update) || void 0 === s || s.call(i, e, t);
            }
            a(t.text) ? u(m) && u(E) ? m !== E && function (e, t, n, r) {
              let o,
                i,
                u,
                s,
                f = 0,
                d = 0,
                h = t.length - 1,
                v = t[0],
                m = t[h],
                E = n.length - 1,
                D = n[0],
                x = n[E];
              for (; f <= h && d <= E;) null == v ? v = t[++f] : null == m ? m = t[--h] : null == D ? D = n[++d] : null == x ? x = n[--E] : l(v, D) ? (w(v, D, r), v = t[++f], D = n[++d]) : l(m, x) ? (w(m, x, r), m = t[--h], x = n[--E]) : l(v, x) ? (w(v, x, r), p.insertBefore(e, v.elm, p.nextSibling(m.elm)), v = t[++f], x = n[--E]) : l(m, D) ? (w(m, D, r), p.insertBefore(e, m.elm, v.elm), m = t[--h], D = n[++d]) : (void 0 === o && (o = c(t, f, h)), i = o[D.key], a(i) ? p.insertBefore(e, g(D, r), v.elm) : (u = t[i], u.sel !== D.sel ? p.insertBefore(e, g(D, r), v.elm) : (w(u, D, r), t[i] = void 0, p.insertBefore(e, u.elm, v.elm))), D = n[++d]);
              (f <= h || d <= E) && (f > h ? (s = null == n[E + 1] ? null : n[E + 1].elm, y(e, s, n, d, E, r)) : b(e, t, f, h));
            }(v, m, E, n) : u(E) ? (u(e.text) && p.setTextContent(v, ''), y(v, null, E, 0, E.length - 1, n)) : u(m) ? b(v, m, 0, m.length - 1) : u(e.text) && p.setTextContent(v, '') : e.text !== t.text && (u(m) && b(v, m, 0, m.length - 1), p.setTextContent(v, t.text)), null === (f = null == h ? void 0 : h.postpatch) || void 0 === f || f.call(h, e, t);
          }
        }

        return function (e, t) {
          let n,
            r,
            o;
          const i = [];
          for (n = 0; n < d.pre.length; ++n) d.pre[n]();
          for (function (e) {
            return void 0 !== e.sel;
          }(e) || (e = h(e)), l(e, t) ? w(e, t, i) : (r = e.elm, o = p.parentNode(r), g(t, i), null !== o && (p.insertBefore(o, t.elm, p.nextSibling(r)), b(o, [e], 0, 0))), n = 0; n < i.length; ++n) {
            i[n].data.hook.insert(i[n]);
          }
          for (n = 0; n < d.post.length; ++n) d.post[n]();
          return t;
        };
      }, t.jsx = z, t.primitive = i, t.propsModule = P, t.styleModule = M, t.thunk = function (e, t, n, r) {
        return void 0 === r && (r = n, n = t, t = void 0), p(e, {
          key: t,
          hook: {
            init: v,
            prepatch: g
          },
          fn: n,
          args: r
        });
      }, t.toVNode = function e(t, o) {
        const i = void 0 !== o ? o : n;
        let a;
        if (i.isElement(t)) {
          const n = t.id ? '#' + t.id : '',
            a = t.getAttribute('class'),
            u = a ? '.' + a.split(' ')
              .join('.') : '',
            s = i.tagName(t)
              .toLowerCase() + n + u,
            l = {},
            c = [];
          let f,
            d,
            p;
          const h = t.attributes,
            v = t.childNodes;
          for (d = 0, p = h.length; d < p; d++) f = h[d].nodeName, 'id' !== f && 'class' !== f && (l[f] = h[d].nodeValue);
          for (d = 0, p = v.length; d < p; d++) c.push(e(v[d], o));
          return r(s, { attrs: l }, c, void 0, t);
        }
        return i.isText(t) ? (a = i.getTextContent(t), r(void 0, void 0, void 0, a, t)) : i.isComment(t) ? (a = i.getTextContent(t), r('!', {}, [], a, t)) : r('', {}, [], void 0, t);
      }, t.vnode = r;
    })),
    Hg = '[object Symbol]',
    Vg = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,
    Ug = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,
    Wg = '\\u0300-\\u036f\\ufe20-\\ufe23',
    Gg = '\\u2700-\\u27bf',
    qg = 'a-z\\xdf-\\xf6\\xf8-\\xff',
    Kg = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
    Yg = '\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
    Xg = '[\'’]',
    Zg = '[\\ud800-\\udfff]',
    Jg = '[' + Yg + ']',
    Qg = '[' + Wg + '\\u20d0-\\u20f0]',
    ey = '\\d+',
    ty = '[\\u2700-\\u27bf]',
    ny = '[' + qg + ']',
    ry = '[^\\ud800-\\udfff' + Yg + ey + Gg + qg + Kg + ']',
    oy = '\\ud83c[\\udffb-\\udfff]',
    iy = '[^\\ud800-\\udfff]',
    ay = '(?:\\ud83c[\\udde6-\\uddff]){2}',
    uy = '[\\ud800-\\udbff][\\udc00-\\udfff]',
    sy = '[' + Kg + ']',
    ly = '(?:' + ny + '|' + ry + ')',
    cy = '(?:' + sy + '|' + ry + ')',
    fy = '(?:[\'’](?:d|ll|m|re|s|t|ve))?',
    dy = '(?:[\'’](?:D|LL|M|RE|S|T|VE))?',
    py = '(?:' + Qg + '|' + oy + ')' + '?',
    hy = '[\\ufe0e\\ufe0f]?',
    vy = hy + py + ('(?:\\u200d(?:' + [iy, ay, uy].join('|') + ')' + hy + py + ')*'),
    gy = '(?:' + [ty, ay, uy].join('|') + ')' + vy,
    yy = '(?:' + [iy + Qg + '?', Qg, ay, uy, Zg].join('|') + ')',
    my = RegExp(Xg, 'g'),
    by = RegExp(Qg, 'g'),
    wy = RegExp(oy + '(?=' + oy + ')|' + yy + vy, 'g'),
    Ey = RegExp([sy + '?' + ny + '+' + fy + '(?=' + [Jg, sy, '$'].join('|') + ')', cy + '+' + dy + '(?=' + [Jg, sy + ly, '$'].join('|') + ')', sy + '?' + ly + '+' + fy, sy + '+' + dy, ey, gy].join('|'), 'g'),
    Dy = RegExp('[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]'),
    xy = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,
    Sy = 'object' == typeof t && t && t.Object === Object && t,
    Cy = 'object' == typeof self && self && self.Object === Object && self,
    Ay = Sy || Cy || Function('return this')();
  var Oy,
    ky = (Oy = {
      'À': 'A',
      'Á': 'A',
      'Â': 'A',
      'Ã': 'A',
      'Ä': 'A',
      'Å': 'A',
      'à': 'a',
      'á': 'a',
      'â': 'a',
      'ã': 'a',
      'ä': 'a',
      'å': 'a',
      'Ç': 'C',
      'ç': 'c',
      'Ð': 'D',
      'ð': 'd',
      'È': 'E',
      'É': 'E',
      'Ê': 'E',
      'Ë': 'E',
      'è': 'e',
      'é': 'e',
      'ê': 'e',
      'ë': 'e',
      'Ì': 'I',
      'Í': 'I',
      'Î': 'I',
      'Ï': 'I',
      'ì': 'i',
      'í': 'i',
      'î': 'i',
      'ï': 'i',
      'Ñ': 'N',
      'ñ': 'n',
      'Ò': 'O',
      'Ó': 'O',
      'Ô': 'O',
      'Õ': 'O',
      'Ö': 'O',
      'Ø': 'O',
      'ò': 'o',
      'ó': 'o',
      'ô': 'o',
      'õ': 'o',
      'ö': 'o',
      'ø': 'o',
      'Ù': 'U',
      'Ú': 'U',
      'Û': 'U',
      'Ü': 'U',
      'ù': 'u',
      'ú': 'u',
      'û': 'u',
      'ü': 'u',
      'Ý': 'Y',
      'ý': 'y',
      'ÿ': 'y',
      'Æ': 'Ae',
      'æ': 'ae',
      'Þ': 'Th',
      'þ': 'th',
      'ß': 'ss',
      'Ā': 'A',
      'Ă': 'A',
      'Ą': 'A',
      'ā': 'a',
      'ă': 'a',
      'ą': 'a',
      'Ć': 'C',
      'Ĉ': 'C',
      'Ċ': 'C',
      'Č': 'C',
      'ć': 'c',
      'ĉ': 'c',
      'ċ': 'c',
      'č': 'c',
      'Ď': 'D',
      'Đ': 'D',
      'ď': 'd',
      'đ': 'd',
      'Ē': 'E',
      'Ĕ': 'E',
      'Ė': 'E',
      'Ę': 'E',
      'Ě': 'E',
      'ē': 'e',
      'ĕ': 'e',
      'ė': 'e',
      'ę': 'e',
      'ě': 'e',
      'Ĝ': 'G',
      'Ğ': 'G',
      'Ġ': 'G',
      'Ģ': 'G',
      'ĝ': 'g',
      'ğ': 'g',
      'ġ': 'g',
      'ģ': 'g',
      'Ĥ': 'H',
      'Ħ': 'H',
      'ĥ': 'h',
      'ħ': 'h',
      'Ĩ': 'I',
      'Ī': 'I',
      'Ĭ': 'I',
      'Į': 'I',
      'İ': 'I',
      'ĩ': 'i',
      'ī': 'i',
      'ĭ': 'i',
      'į': 'i',
      'ı': 'i',
      'Ĵ': 'J',
      'ĵ': 'j',
      'Ķ': 'K',
      'ķ': 'k',
      'ĸ': 'k',
      'Ĺ': 'L',
      'Ļ': 'L',
      'Ľ': 'L',
      'Ŀ': 'L',
      'Ł': 'L',
      'ĺ': 'l',
      'ļ': 'l',
      'ľ': 'l',
      'ŀ': 'l',
      'ł': 'l',
      'Ń': 'N',
      'Ņ': 'N',
      'Ň': 'N',
      'Ŋ': 'N',
      'ń': 'n',
      'ņ': 'n',
      'ň': 'n',
      'ŋ': 'n',
      'Ō': 'O',
      'Ŏ': 'O',
      'Ő': 'O',
      'ō': 'o',
      'ŏ': 'o',
      'ő': 'o',
      'Ŕ': 'R',
      'Ŗ': 'R',
      'Ř': 'R',
      'ŕ': 'r',
      'ŗ': 'r',
      'ř': 'r',
      'Ś': 'S',
      'Ŝ': 'S',
      'Ş': 'S',
      'Š': 'S',
      'ś': 's',
      'ŝ': 's',
      'ş': 's',
      'š': 's',
      'Ţ': 'T',
      'Ť': 'T',
      'Ŧ': 'T',
      'ţ': 't',
      'ť': 't',
      'ŧ': 't',
      'Ũ': 'U',
      'Ū': 'U',
      'Ŭ': 'U',
      'Ů': 'U',
      'Ű': 'U',
      'Ų': 'U',
      'ũ': 'u',
      'ū': 'u',
      'ŭ': 'u',
      'ů': 'u',
      'ű': 'u',
      'ų': 'u',
      'Ŵ': 'W',
      'ŵ': 'w',
      'Ŷ': 'Y',
      'ŷ': 'y',
      'Ÿ': 'Y',
      'Ź': 'Z',
      'Ż': 'Z',
      'Ž': 'Z',
      'ź': 'z',
      'ż': 'z',
      'ž': 'z',
      'Ĳ': 'IJ',
      'ĳ': 'ij',
      'Œ': 'Oe',
      'œ': 'oe',
      'ŉ': '\'n',
      'ſ': 'ss'
    }, function (e) {
      return null == Oy ? void 0 : Oy[e];
    });

  function Ty(e) {
    return Dy.test(e);
  }

  function By(e) {
    return Ty(e) ? function (e) {
      return e.match(wy) || [];
    }(e) : function (e) {
      return e.split('');
    }(e);
  }

  var Fy = Object.prototype.toString,
    _y = Ay.Symbol,
    Py = _y ? _y.prototype : void 0,
    jy = Py ? Py.toString : void 0;

  function Ny(e) {
    if ('string' == typeof e) return e;
    if (function (e) {
      return 'symbol' == typeof e || function (e) {
        return !!e && 'object' == typeof e;
      }(e) && Fy.call(e) == Hg;
    }(e)) {
      return jy ? jy.call(e) : '';
    }
    var t = e + '';
    return '0' == t && 1 / e == -Infinity ? '-0' : t;
  }

  function Iy(e, t, n) {
    var r = e.length;
    return n = void 0 === n ? r : n, !t && n >= r ? e : function (e, t, n) {
      var r = -1,
        o = e.length;
      t < 0 && (t = -t > o ? 0 : o + t), (n = n > o ? o : n) < 0 && (n += o), o = t > n ? 0 : n - t >>> 0, t >>>= 0;
      for (var i = Array(o); ++r < o;) i[r] = e[r + t];
      return i;
    }(e, t, n);
  }

  function Ry(e) {
    return null == e ? '' : Ny(e);
  }

  var My,
    Ly = (My = function (e, t, n) {
      return t = t.toLowerCase(), e + (n ? $y(Ry(t)
        .toLowerCase()) : t);
    }, function (e) {
      return function (e, t, n, r) {
        var o = -1,
          i = e ? e.length : 0;
        for (r && i && (n = e[++o]); ++o < i;) n = t(n, e[o], o, e);
        return n;
      }(function (e, t, n) {
        return e = Ry(e), void 0 === (t = n ? void 0 : t) ? function (e) {
          return xy.test(e);
        }(e) ? function (e) {
          return e.match(Ey) || [];
        }(e) : function (e) {
          return e.match(Vg) || [];
        }(e) : e.match(t) || [];
      }(function (e) {
        return (e = Ry(e)) && e.replace(Ug, ky)
          .replace(by, '');
      }(e)
        .replace(my, '')), My, '');
    });
  var zy,
    $y = (zy = 'toUpperCase', function (e) {
      var t = Ty(e = Ry(e)) ? By(e) : void 0,
        n = t ? t[0] : e.charAt(0),
        r = t ? Iy(t, 1)
          .join('') : e.slice(1);
      return n[zy]() + r;
    });
  for (var Hy = Ly, Vy = 'undefined' != typeof window && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), Uy = {
    alt: 'altKey',
    control: 'ctrlKey',
    meta: 'metaKey',
    shift: 'shiftKey'
  }, Wy = {
    add: '+',
    break: 'pause',
    cmd: 'meta',
    command: 'meta',
    ctl: 'control',
    ctrl: 'control',
    del: 'delete',
    down: 'arrowdown',
    esc: 'escape',
    ins: 'insert',
    left: 'arrowleft',
    mod: Vy ? 'meta' : 'control',
    opt: 'alt',
    option: 'alt',
    return: 'enter',
    right: 'arrowright',
    space: ' ',
    spacebar: ' ',
    up: 'arrowup',
    win: 'meta',
    windows: 'meta'
  }, Gy = {
    backspace: 8,
    tab: 9,
    enter: 13,
    shift: 16,
    control: 17,
    alt: 18,
    pause: 19,
    capslock: 20,
    escape: 27,
    ' ': 32,
    pageup: 33,
    pagedown: 34,
    end: 35,
    home: 36,
    arrowleft: 37,
    arrowup: 38,
    arrowright: 39,
    arrowdown: 40,
    insert: 45,
    delete: 46,
    meta: 91,
    numlock: 144,
    scrolllock: 145,
    ';': 186,
    '=': 187,
    ',': 188,
    '-': 189,
    '.': 190,
    '/': 191,
    '`': 192,
    '[': 219,
    '\\': 220,
    ']': 221,
    '\'': 222
  }, qy = 1; qy < 20; qy++) {
    Gy['f' + qy] = 111 + qy;
  }

  function Ky(e, t, n) {
    t && !('byKey' in t) && (n = t, t = null), Array.isArray(e) || (e = [e]);
    var r = e.map((function (e) {
        return Yy(e, t);
      })),
      o = function (e) {
        return r.some((function (t) {
          return Xy(t, e);
        }));
      };
    return null == n ? o : o(n);
  }

  function Yy(e, t) {
    var n = t && t.byKey,
      r = {},
      o = (e = e.replace('++', '+add')).split('+'),
      i = o.length;
    for (var a in Uy) r[Uy[a]] = !1;
    var u = !0,
      s = !1,
      l = void 0;
    try {
      for (var c, f = o[Symbol.iterator](); !(u = (c = f.next()).done); u = !0) {
        var d = c.value,
          p = d.endsWith('?') && d.length > 1;
        p && (d = d.slice(0, -1));
        var h = Jy(d),
          v = Uy[h];
        if (d.length > 1 && !v && !Wy[d] && !Gy[h]) throw new TypeError('Unknown modifier: "' + d + '"');
        1 !== i && v || (n ? r.key = h : r.which = Zy(d)), v && (r[v] = !p || null);
      }
    } catch (e) {
      s = !0, l = e;
    } finally {
      try {
        !u && f.return && f.return();
      } finally {
        if (s) throw l;
      }
    }
    return r;
  }

  function Xy(e, t) {
    for (var n in e) {
      var r = e[n],
        o = void 0;
      if (null != r && ((null != (o = 'key' === n && null != t.key ? t.key.toLowerCase() : 'which' === n ? 91 === r && 93 === t.which ? 91 : t.which : t[n]) || !1 !== r) && o !== r)) return !1;
    }
    return !0;
  }

  function Zy(e) {
    return e = Jy(e), Gy[e] || e.toUpperCase()
      .charCodeAt(0);
  }

  function Jy(e) {
    return e = e.toLowerCase(), e = Wy[e] || e;
  }

  var Qy = Ky,
    em = Ky,
    tm = function (e, t) {
      return Ky(e, t);
    },
    nm = function (e, t) {
      return Ky(e, { byKey: !0 }, t);
    },
    rm = Yy,
    om = Xy,
    im = Zy,
    am = Jy,
    um = Object.defineProperty({
      default: Qy,
      isHotkey: em,
      isCodeHotkey: tm,
      isKeyHotkey: nm,
      parseHotkey: rm,
      compareHotkey: om,
      toKeyCode: im,
      toKeyName: am
    }, '__esModule', { value: !0 }),
    sm = /^\s+|\s+$/g,
    lm = /^[-+]0x[0-9a-f]+$/i,
    cm = /^0b[01]+$/i,
    fm = /^0o[0-7]+$/i,
    dm = parseInt,
    pm = 'object' == typeof t && t && t.Object === Object && t,
    hm = 'object' == typeof self && self && self.Object === Object && self,
    vm = pm || hm || Function('return this')(),
    gm = Object.prototype.toString,
    ym = Math.max,
    mm = Math.min,
    bm = function () {
      return vm.Date.now();
    };

  function wm(e) {
    var t = typeof e;
    return !!e && ('object' == t || 'function' == t);
  }

  function Em(e) {
    if ('number' == typeof e) return e;
    if (function (e) {
      return 'symbol' == typeof e || function (e) {
        return !!e && 'object' == typeof e;
      }(e) && '[object Symbol]' == gm.call(e);
    }(e)) {
      return NaN;
    }
    if (wm(e)) {
      var t = 'function' == typeof e.valueOf ? e.valueOf() : e;
      e = wm(t) ? t + '' : t;
    }
    if ('string' != typeof e) return 0 === e ? e : +e;
    e = e.replace(sm, '');
    var n = cm.test(e);
    return n || fm.test(e) ? dm(e.slice(2), n ? 2 : 8) : lm.test(e) ? NaN : +e;
  }

  var Dm,
    xm = function (e, t, n) {
      var r,
        o,
        i,
        a,
        u,
        s,
        l = 0,
        c = !1,
        f = !1,
        d = !0;
      if ('function' != typeof e) throw new TypeError('Expected a function');

      function p(t) {
        var n = r,
          i = o;
        return r = o = void 0, l = t, a = e.apply(i, n);
      }

      function h(e) {
        return l = e, u = setTimeout(g, t), c ? p(e) : a;
      }

      function v(e) {
        var n = e - s;
        return void 0 === s || n >= t || n < 0 || f && e - l >= i;
      }

      function g() {
        var e = bm();
        if (v(e)) return y(e);
        u = setTimeout(g, function (e) {
          var n = t - (e - s);
          return f ? mm(n, i - (e - l)) : n;
        }(e));
      }

      function y(e) {
        return u = void 0, d && r ? p(e) : (r = o = void 0, a);
      }

      function m() {
        var e = bm(),
          n = v(e);
        if (r = arguments, o = this, s = e, n) {
          if (void 0 === u) return h(s);
          if (f) return u = setTimeout(g, t), p(s);
        }
        return void 0 === u && (u = setTimeout(g, t)), a;
      }

      return t = Em(t) || 0, wm(n) && (c = !!n.leading, i = (f = 'maxWait' in n) ? ym(Em(n.maxWait) || 0, t) : i, d = 'trailing' in n ? !!n.trailing : d), m.cancel = function () {
        void 0 !== u && clearTimeout(u), l = 0, r = s = o = u = void 0;
      }, m.flush = function () {
        return void 0 === u ? a : y(bm());
      }, m;
    },
    Sm = r((function (e, n) {
      var r = '__lodash_hash_undefined__',
        o = 9007199254740991,
        i = '[object Arguments]',
        a = '[object Boolean]',
        u = '[object Date]',
        s = '[object Function]',
        l = '[object GeneratorFunction]',
        c = '[object Map]',
        f = '[object Number]',
        d = '[object Object]',
        p = '[object Promise]',
        h = '[object RegExp]',
        v = '[object Set]',
        g = '[object String]',
        y = '[object Symbol]',
        m = '[object WeakMap]',
        b = '[object ArrayBuffer]',
        w = '[object DataView]',
        E = '[object Float32Array]',
        D = '[object Float64Array]',
        x = '[object Int8Array]',
        S = '[object Int16Array]',
        C = '[object Int32Array]',
        A = '[object Uint8Array]',
        O = '[object Uint8ClampedArray]',
        k = '[object Uint16Array]',
        T = '[object Uint32Array]',
        B = /\w*$/,
        F = /^\[object .+?Constructor\]$/,
        _ = /^(?:0|[1-9]\d*)$/,
        P = {};
      P[i] = P['[object Array]'] = P[b] = P[w] = P[a] = P[u] = P[E] = P[D] = P[x] = P[S] = P[C] = P[c] = P[f] = P[d] = P[h] = P[v] = P[g] = P[y] = P[A] = P[O] = P[k] = P[T] = !0, P['[object Error]'] = P[s] = P[m] = !1;
      var j = 'object' == typeof t && t && t.Object === Object && t,
        N = 'object' == typeof self && self && self.Object === Object && self,
        I = j || N || Function('return this')(),
        R = n && !n.nodeType && n,
        M = R && e && !e.nodeType && e,
        L = M && M.exports === R;

      function z(e, t) {
        return e.set(t[0], t[1]), e;
      }

      function $(e, t) {
        return e.add(t), e;
      }

      function H(e, t, n, r) {
        var o = -1,
          i = e ? e.length : 0;
        for (r && i && (n = e[++o]); ++o < i;) n = t(n, e[o], o, e);
        return n;
      }

      function V(e) {
        var t = !1;
        if (null != e && 'function' != typeof e.toString) {
          try {
            t = !!(e + '');
          } catch (e) {
          }
        }
        return t;
      }

      function U(e) {
        var t = -1,
          n = Array(e.size);
        return e.forEach((function (e, r) {
          n[++t] = [r, e];
        })), n;
      }

      function W(e, t) {
        return function (n) {
          return e(t(n));
        };
      }

      function G(e) {
        var t = -1,
          n = Array(e.size);
        return e.forEach((function (e) {
          n[++t] = e;
        })), n;
      }

      var q = Array.prototype,
        K = Function.prototype,
        Y = Object.prototype,
        X = I['__core-js_shared__'],
        Z = function () {
          var e = /[^.]+$/.exec(X && X.keys && X.keys.IE_PROTO || '');
          return e ? 'Symbol(src)_1.' + e : '';
        }(),
        J = K.toString,
        Q = Y.hasOwnProperty,
        ee = Y.toString,
        te = RegExp('^' + J.call(Q)
          .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
          .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'),
        ne = L ? I.Buffer : void 0,
        re = I.Symbol,
        oe = I.Uint8Array,
        ie = W(Object.getPrototypeOf, Object),
        ae = Object.create,
        ue = Y.propertyIsEnumerable,
        se = q.splice,
        le = Object.getOwnPropertySymbols,
        ce = ne ? ne.isBuffer : void 0,
        fe = W(Object.keys, Object),
        de = Re(I, 'DataView'),
        pe = Re(I, 'Map'),
        he = Re(I, 'Promise'),
        ve = Re(I, 'Set'),
        ge = Re(I, 'WeakMap'),
        ye = Re(Object, 'create'),
        me = He(de),
        be = He(pe),
        we = He(he),
        Ee = He(ve),
        De = He(ge),
        xe = re ? re.prototype : void 0,
        Se = xe ? xe.valueOf : void 0;

      function Ce(e) {
        var t = -1,
          n = e ? e.length : 0;
        for (this.clear(); ++t < n;) {
          var r = e[t];
          this.set(r[0], r[1]);
        }
      }

      function Ae(e) {
        var t = -1,
          n = e ? e.length : 0;
        for (this.clear(); ++t < n;) {
          var r = e[t];
          this.set(r[0], r[1]);
        }
      }

      function Oe(e) {
        var t = -1,
          n = e ? e.length : 0;
        for (this.clear(); ++t < n;) {
          var r = e[t];
          this.set(r[0], r[1]);
        }
      }

      function ke(e) {
        this.__data__ = new Ae(e);
      }

      function Te(e, t) {
        var n = Ue(e) || function (e) {
            return function (e) {
              return function (e) {
                return !!e && 'object' == typeof e;
              }(e) && We(e);
            }(e) && Q.call(e, 'callee') && (!ue.call(e, 'callee') || ee.call(e) == i);
          }(e) ? function (e, t) {
            for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
            return r;
          }(e.length, String) : [],
          r = n.length,
          o = !!r;
        for (var a in e) !t && !Q.call(e, a) || o && ('length' == a || ze(a, r)) || n.push(a);
        return n;
      }

      function Be(e, t, n) {
        var r = e[t];
        Q.call(e, t) && Ve(r, n) && (void 0 !== n || t in e) || (e[t] = n);
      }

      function Fe(e, t) {
        for (var n = e.length; n--;) if (Ve(e[n][0], t)) return n;
        return -1;
      }

      function _e(e, t, n, r, o, p, m) {
        var F;
        if (r && (F = p ? r(e, o, p, m) : r(e)), void 0 !== F) return F;
        if (!Ke(e)) return e;
        var _ = Ue(e);
        if (_) {
          if (F = function (e) {
            var t = e.length,
              n = e.constructor(t);
            t && 'string' == typeof e[0] && Q.call(e, 'index') && (n.index = e.index, n.input = e.input);
            return n;
          }(e), !t) {
            return function (e, t) {
              var n = -1,
                r = e.length;
              t || (t = Array(r));
              for (; ++n < r;) t[n] = e[n];
              return t;
            }(e, F);
          }
        } else {
          var j = Le(e),
            N = j == s || j == l;
          if (Ge(e)) {
            return function (e, t) {
              if (t) return e.slice();
              var n = new e.constructor(e.length);
              return e.copy(n), n;
            }(e, t);
          }
          if (j == d || j == i || N && !p) {
            if (V(e)) return p ? e : {};
            if (F = function (e) {
              return 'function' != typeof e.constructor || $e(e) ? {} : (t = ie(e), Ke(t) ? ae(t) : {});
              var t;
            }(N ? {} : e), !t) {
              return function (e, t) {
                return Ne(e, Me(e), t);
              }(e, function (e, t) {
                return e && Ne(t, Ye(t), e);
              }(F, e));
            }
          } else {
            if (!P[j]) return p ? e : {};
            F = function (e, t, n, r) {
              var o = e.constructor;
              switch (t) {
                case b:
                  return je(e);
                case a:
                case u:
                  return new o(+e);
                case w:
                  return function (e, t) {
                    var n = t ? je(e.buffer) : e.buffer;
                    return new e.constructor(n, e.byteOffset, e.byteLength);
                  }(e, r);
                case E:
                case D:
                case x:
                case S:
                case C:
                case A:
                case O:
                case k:
                case T:
                  return function (e, t) {
                    var n = t ? je(e.buffer) : e.buffer;
                    return new e.constructor(n, e.byteOffset, e.length);
                  }(e, r);
                case c:
                  return function (e, t, n) {
                    return H(t ? n(U(e), !0) : U(e), z, new e.constructor);
                  }(e, r, n);
                case f:
                case g:
                  return new o(e);
                case h:
                  return function (e) {
                    var t = new e.constructor(e.source, B.exec(e));
                    return t.lastIndex = e.lastIndex, t;
                  }(e);
                case v:
                  return function (e, t, n) {
                    return H(t ? n(G(e), !0) : G(e), $, new e.constructor);
                  }(e, r, n);
                case y:
                  return function (e) {
                    return Se ? Object(Se.call(e)) : {};
                  }(e);
              }
            }(e, j, _e, t);
          }
        }
        m || (m = new ke);
        var I = m.get(e);
        if (I) return I;
        if (m.set(e, F), !_) {
          var R = n ? function (e) {
            return function (e, t, n) {
              var r = t(e);
              return Ue(e) ? r : function (e, t) {
                for (var n = -1, r = t.length, o = e.length; ++n < r;) e[o + n] = t[n];
                return e;
              }(r, n(e));
            }(e, Ye, Me);
          }(e) : Ye(e);
        }
        return function (e, t) {
          for (var n = -1, r = e ? e.length : 0; ++n < r && !1 !== t(e[n], n, e);) ;
        }(R || e, (function (o, i) {
          R && (o = e[i = o]), Be(F, i, _e(o, t, n, r, i, e, m));
        })), F;
      }

      function Pe(e) {
        return !(!Ke(e) || (t = e, Z && Z in t)) && (qe(e) || V(e) ? te : F).test(He(e));
        var t;
      }

      function je(e) {
        var t = new e.constructor(e.byteLength);
        return new oe(t).set(new oe(e)), t;
      }

      function Ne(e, t, n, r) {
        n || (n = {});
        for (var o = -1, i = t.length; ++o < i;) {
          var a = t[o],
            u = r ? r(n[a], e[a], a, n, e) : void 0;
          Be(n, a, void 0 === u ? e[a] : u);
        }
        return n;
      }

      function Ie(e, t) {
        var n = e.__data__;
        return function (e) {
          var t = typeof e;
          return 'string' == t || 'number' == t || 'symbol' == t || 'boolean' == t ? '__proto__' !== e : null === e;
        }(t) ? n['string' == typeof t ? 'string' : 'hash'] : n.map;
      }

      function Re(e, t) {
        var n = function (e, t) {
          return null == e ? void 0 : e[t];
        }(e, t);
        return Pe(n) ? n : void 0;
      }

      Ce.prototype.clear = function () {
        this.__data__ = ye ? ye(null) : {};
      }, Ce.prototype.delete = function (e) {
        return this.has(e) && delete this.__data__[e];
      }, Ce.prototype.get = function (e) {
        var t = this.__data__;
        if (ye) {
          var n = t[e];
          return n === r ? void 0 : n;
        }
        return Q.call(t, e) ? t[e] : void 0;
      }, Ce.prototype.has = function (e) {
        var t = this.__data__;
        return ye ? void 0 !== t[e] : Q.call(t, e);
      }, Ce.prototype.set = function (e, t) {
        return this.__data__[e] = ye && void 0 === t ? r : t, this;
      }, Ae.prototype.clear = function () {
        this.__data__ = [];
      }, Ae.prototype.delete = function (e) {
        var t = this.__data__,
          n = Fe(t, e);
        return !(n < 0) && (n == t.length - 1 ? t.pop() : se.call(t, n, 1), !0);
      }, Ae.prototype.get = function (e) {
        var t = this.__data__,
          n = Fe(t, e);
        return n < 0 ? void 0 : t[n][1];
      }, Ae.prototype.has = function (e) {
        return Fe(this.__data__, e) > -1;
      }, Ae.prototype.set = function (e, t) {
        var n = this.__data__,
          r = Fe(n, e);
        return r < 0 ? n.push([e, t]) : n[r][1] = t, this;
      }, Oe.prototype.clear = function () {
        this.__data__ = {
          hash: new Ce,
          map: new (pe || Ae),
          string: new Ce
        };
      }, Oe.prototype.delete = function (e) {
        return Ie(this, e)
          .delete(e);
      }, Oe.prototype.get = function (e) {
        return Ie(this, e)
          .get(e);
      }, Oe.prototype.has = function (e) {
        return Ie(this, e)
          .has(e);
      }, Oe.prototype.set = function (e, t) {
        return Ie(this, e)
          .set(e, t), this;
      }, ke.prototype.clear = function () {
        this.__data__ = new Ae;
      }, ke.prototype.delete = function (e) {
        return this.__data__.delete(e);
      }, ke.prototype.get = function (e) {
        return this.__data__.get(e);
      }, ke.prototype.has = function (e) {
        return this.__data__.has(e);
      }, ke.prototype.set = function (e, t) {
        var n = this.__data__;
        if (n instanceof Ae) {
          var r = n.__data__;
          if (!pe || r.length < 199) return r.push([e, t]), this;
          n = this.__data__ = new Oe(r);
        }
        return n.set(e, t), this;
      };
      var Me = le ? W(le, Object) : function () {
          return [];
        },
        Le = function (e) {
          return ee.call(e);
        };

      function ze(e, t) {
        return !!(t = null == t ? o : t) && ('number' == typeof e || _.test(e)) && e > -1 && e % 1 == 0 && e < t;
      }

      function $e(e) {
        var t = e && e.constructor;
        return e === ('function' == typeof t && t.prototype || Y);
      }

      function He(e) {
        if (null != e) {
          try {
            return J.call(e);
          } catch (e) {
          }
          try {
            return e + '';
          } catch (e) {
          }
        }
        return '';
      }

      function Ve(e, t) {
        return e === t || e != e && t != t;
      }

      (de && Le(new de(new ArrayBuffer(1))) != w || pe && Le(new pe) != c || he && Le(he.resolve()) != p || ve && Le(new ve) != v || ge && Le(new ge) != m) && (Le = function (e) {
        var t = ee.call(e),
          n = t == d ? e.constructor : void 0,
          r = n ? He(n) : void 0;
        if (r) {
          switch (r) {
            case me:
              return w;
            case be:
              return c;
            case we:
              return p;
            case Ee:
              return v;
            case De:
              return m;
          }
        }
        return t;
      });
      var Ue = Array.isArray;

      function We(e) {
        return null != e && function (e) {
          return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= o;
        }(e.length) && !qe(e);
      }

      var Ge = ce || function () {
        return !1;
      };

      function qe(e) {
        var t = Ke(e) ? ee.call(e) : '';
        return t == s || t == l;
      }

      function Ke(e) {
        var t = typeof e;
        return !!e && ('object' == t || 'function' == t);
      }

      function Ye(e) {
        return We(e) ? Te(e) : function (e) {
          if (!$e(e)) return fe(e);
          var t = [];
          for (var n in Object(e)) Q.call(e, n) && 'constructor' != n && t.push(n);
          return t;
        }(e);
      }

      e.exports = function (e) {
        return _e(e, !0, !0);
      };
    }));

  function Cm(e, t) {
    if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError('attempted to use private field on non-instance');
    return e;
  }

  var Am = 0;

  function Om(e) {
    return '__private_' + Am++ + '_' + e;
  }

  function km(e, t, n) {
    const r = [];
    return e.forEach((e => 'string' != typeof e ? r.push(e) : t[Symbol.split](e)
      .forEach(((e, t, o) => {
        '' !== e && r.push(e), t < o.length - 1 && r.push(n);
      })))), r;
  }

  /**
   * Takes a string with placeholder variables like `%{smart_count} file selected`
   * and replaces it with values from options `{smart_count: 5}`
   *
   * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
   * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
   *
   * @param {string} phrase that needs interpolation, with placeholders
   * @param {object} options with values that will be used to replace placeholders
   * @returns {any[]} interpolated
   */function Tm(e, t) {
    const n = /\$/g;
    let r = [e];
    if (null == t) return r;
    for (const e of Object.keys(t)) {
      if ('_' !== e) {
        let o = t[e];
        'string' == typeof o && (o = n[Symbol.replace](o, '$$$$')), r = km(r, new RegExp(`%\\{${e}\\}`, 'g'), o);
      }
    }
    return r;
  }

  var Bm = (Dm = Om('apply'), class {
    constructor(e) {
      Object.defineProperty(this, Dm, { value: Fm }), this.locale = {
        strings: {},
        pluralize: e => 1 === e ? 0 : 1
      }, Array.isArray(e) ? e.forEach(Cm(this, Dm)[Dm], this) : Cm(this, Dm)[Dm](e);
    }

    translate(e, t) {
      return this.translateArray(e, t)
        .join('');
    }

    translateArray(e, t) {
      if (!function (e, t) {
        return Object.prototype.hasOwnProperty.call(e, t);
      }(this.locale.strings, e)) {
        throw new Error(`missing string: ${e}`);
      }
      const n = this.locale.strings[e];
      if ('object' == typeof n) {
        if (t && void 0 !== t.smart_count) {
          return Tm(n[this.locale.pluralize(t.smart_count)], t);
        }
        throw new Error('Attempted to use a string with plural forms, but no value was given for %{smart_count}');
      }
      return Tm(n, t);
    }
  });

  function Fm(e) {
    if (null == e || !e.strings) return;
    const t = this.locale;
    this.locale = {
      ...t,
      strings: { ...t.strings, ...e.strings }
    }, this.locale.pluralize = e.pluralize || t.pluralize;
  }

  var _m = function () {
      var e = {},
        t = e._fns = {};
      return e.emit = function (e, n, r, o, i, a, u) {
        var s = function (e) {
          var n = t[e] ? t[e] : [],
            r = e.indexOf(':'),
            o = -1 === r ? [e] : [e.substring(0, r), e.substring(r + 1)],
            i = Object.keys(t),
            a = 0,
            u = i.length;
          for (; a < u; a++) {
            var s = i[a];
            if ('*' === s && (n = n.concat(t[s])), 2 === o.length && o[0] === s) {
              n = n.concat(t[s]);
              break;
            }
          }
          return n;
        }(e);
        s.length && function (e, t, n) {
          var r = 0,
            o = t.length;
          for (; r < o && t[r]; r++) t[r].event = e, t[r].apply(t[r], n);
        }(e, s, [n, r, o, i, a, u]);
      }, e.on = function (e, n) {
        t[e] || (t[e] = []), t[e].push(n);
      }, e.once = function (t, n) {
        this.on(t, (function r() {
          n.apply(this, arguments), e.off(t, r);
        }));
      }, e.off = function (e, t) {
        var n = [];
        if (e && t) for (var r = this._fns[e], o = 0, i = r ? r.length : 0; o < i; o++) r[o] !== t && n.push(r[o]);
        n.length ? this._fns[e] = n : delete this._fns[e];
      }, e;
    },
    Pm = function (e) {
      if ('number' != typeof e || isNaN(e)) throw new TypeError('Expected a number, got ' + typeof e);
      var t = e < 0,
        n = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
      if (t && (e = -e), e < 1) return (t ? '-' : '') + e + ' B';
      var r = Math.min(Math.floor(Math.log(e) / Math.log(1024)), n.length - 1);
      e = Number(e / Math.pow(1024, r));
      var o = n[r];
      return e >= 10 || e % 1 == 0 ? (t ? '-' : '') + e.toFixed(0) + ' ' + o : (t ? '-' : '') + e.toFixed(1) + ' ' + o;
    };

  function jm(e, t) {
    this.text = e = e || '', this.hasWild = ~e.indexOf('*'), this.separator = t, this.parts = e.split(t);
  }

  jm.prototype.match = function (e) {
    var t,
      n,
      r = !0,
      o = this.parts,
      i = o.length;
    if ('string' == typeof e || e instanceof String) {
      if (this.hasWild || this.text == e) {
        for (n = (e || '').split(this.separator), t = 0; r && t < i; t++) '*' !== o[t] && (r = t < n.length && o[t] === n[t]);
        r = r && n;
      } else {
        r = !1;
      }
    } else if ('function' == typeof e.splice) for (r = [], t = e.length; t--;) this.match(e[t]) && (r[r.length] = e[t]); else if ('object' == typeof e) for (var a in r = {}, e) this.match(a) && (r[a] = e[a]);
    return r;
  };
  var Nm = /[\/\+\.]/,
    Im = function (e, t) {
      function n(t) {
        var n = function (e, t, n) {
          var r = new jm(e, n || /[\/\.]/);
          return void 0 !== t ? r.match(t) : r;
        }(t, e, Nm);
        return n && n.length >= 2;
      }

      return t ? n(t.split(';')[0]) : n;
    };
  var Rm = 0;

  function Mm(e) {
    return '__private_' + Rm++ + '_' + e;
  }

  var Lm = Mm('publish');

  class zm {
    constructor() {
      Object.defineProperty(this, Lm, { value: $m }), this.state = {}, this.callbacks = [];
    }

    getState() {
      return this.state;
    }

    setState(e) {
      const t = { ...this.state },
        n = { ...this.state, ...e };
      this.state = n, function (e, t) {
        if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError('attempted to use private field on non-instance');
        return e;
      }(this, Lm)[Lm](t, n, e);
    }

    subscribe(e) {
      return this.callbacks.push(e), () => {
        this.callbacks.splice(this.callbacks.indexOf(e), 1);
      };
    }
  }

  function $m() {
    for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
    this.callbacks.forEach((e => {
      e(...t);
    }));
  }

  zm.VERSION = '2.0.3';
  var Hm = function (e) {
      const t = e.lastIndexOf('.');
      return -1 === t || t === e.length - 1 ? {
        name: e,
        extension: void 0
      } : {
        name: e.slice(0, t),
        extension: e.slice(t + 1)
      };
    },
    Vm = {
      md: 'text/markdown',
      markdown: 'text/markdown',
      mp4: 'video/mp4',
      mp3: 'audio/mp3',
      svg: 'image/svg+xml',
      jpg: 'image/jpeg',
      png: 'image/png',
      gif: 'image/gif',
      heic: 'image/heic',
      heif: 'image/heif',
      yaml: 'text/yaml',
      yml: 'text/yaml',
      csv: 'text/csv',
      tsv: 'text/tab-separated-values',
      tab: 'text/tab-separated-values',
      avi: 'video/x-msvideo',
      mks: 'video/x-matroska',
      mkv: 'video/x-matroska',
      mov: 'video/quicktime',
      doc: 'application/msword',
      docm: 'application/vnd.ms-word.document.macroenabled.12',
      docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
      dot: 'application/msword',
      dotm: 'application/vnd.ms-word.template.macroenabled.12',
      dotx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
      xla: 'application/vnd.ms-excel',
      xlam: 'application/vnd.ms-excel.addin.macroenabled.12',
      xlc: 'application/vnd.ms-excel',
      xlf: 'application/x-xliff+xml',
      xlm: 'application/vnd.ms-excel',
      xls: 'application/vnd.ms-excel',
      xlsb: 'application/vnd.ms-excel.sheet.binary.macroenabled.12',
      xlsm: 'application/vnd.ms-excel.sheet.macroenabled.12',
      xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
      xlt: 'application/vnd.ms-excel',
      xltm: 'application/vnd.ms-excel.template.macroenabled.12',
      xltx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
      xlw: 'application/vnd.ms-excel',
      txt: 'text/plain',
      text: 'text/plain',
      conf: 'text/plain',
      log: 'text/plain',
      pdf: 'application/pdf',
      zip: 'application/zip',
      '7z': 'application/x-7z-compressed',
      rar: 'application/x-rar-compressed',
      tar: 'application/x-tar',
      gz: 'application/gzip',
      dmg: 'application/x-apple-diskimage'
    };

  function Um(e) {
    let t = '';
    return e.replace(/[^A-Z0-9]/gi, (e => (t += `-${function (e) {
      return e.charCodeAt(0)
        .toString(32);
    }(e)}`, '/'))) + t;
  }

  var Wm = function (e) {
    if (null == e && (e = 'undefined' != typeof navigator ? navigator.userAgent : null), !e) return !0;
    const t = /Edge\/(\d+\.\d+)/.exec(e);
    if (!t) return !0;
    const n = t[1];
    let [r, o] = n.split('.');
    return r = parseInt(r, 10), o = parseInt(o, 10), r < 15 || 15 === r && o < 15063 || (r > 18 || 18 === r && o >= 18218);
  };

  function Gm(e) {
    return e < 10 ? `0${e}` : e.toString();
  }

  var qm = function () {
    const e = new Date;
    return `${Gm(e.getHours())}:${Gm(e.getMinutes())}:${Gm(e.getSeconds())}`;
  };
  const Km = {
      debug: () => {
      },
      warn: () => {
      },
      error: function () {
        for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
        return console.error(`[Uppy] [${qm()}]`, ...t);
      }
    },
    Ym = {
      debug: function () {
        for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
        return console.debug(`[Uppy] [${qm()}]`, ...t);
      },
      warn: function () {
        for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
        return console.warn(`[Uppy] [${qm()}]`, ...t);
      },
      error: function () {
        for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
        return console.error(`[Uppy] [${qm()}]`, ...t);
      }
    };
  var Xm = {
      justErrorsLogger: Km,
      debugLogger: Ym
    },
    Zm = {
      strings: {
        addBulkFilesFailed: {
          0: 'Failed to add %{smart_count} file due to an internal error',
          1: 'Failed to add %{smart_count} files due to internal errors'
        },
        youCanOnlyUploadX: {
          0: 'You can only upload %{smart_count} file',
          1: 'You can only upload %{smart_count} files'
        },
        youHaveToAtLeastSelectX: {
          0: 'You have to select at least %{smart_count} file',
          1: 'You have to select at least %{smart_count} files'
        },
        exceedsSize: '%{file} exceeds maximum allowed size of %{size}',
        missingRequiredMetaField: 'Missing required meta fields',
        missingRequiredMetaFieldOnFile: 'Missing required meta fields in %{fileName}',
        inferiorSize: 'This file is smaller than the allowed size of %{size}',
        youCanOnlyUploadFileTypes: 'You can only upload: %{types}',
        noMoreFilesAllowed: 'Cannot add more files',
        noDuplicates: 'Cannot add the duplicate file \'%{fileName}\', it already exists',
        companionError: 'Connection with Companion failed',
        authAborted: 'Authentication aborted',
        companionUnauthorizeHint: 'To unauthorize to your %{provider} account, please go to %{url}',
        failedToUpload: 'Failed to upload %{file}',
        noInternetConnection: 'No Internet connection',
        connectedToInternet: 'Connected to the Internet',
        noFilesFound: 'You have no files or folders here',
        selectX: {
          0: 'Select %{smart_count}',
          1: 'Select %{smart_count}'
        },
        allFilesFromFolderNamed: 'All files from folder %{name}',
        openFolderNamed: 'Open folder %{name}',
        cancel: 'Cancel',
        logOut: 'Log out',
        filter: 'Filter',
        resetFilter: 'Reset filter',
        loading: 'Loading...',
        authenticateWithTitle: 'Please authenticate with %{pluginName} to select files',
        authenticateWith: 'Connect to %{pluginName}',
        signInWithGoogle: 'Sign in with Google',
        searchImages: 'Search for images',
        enterTextToSearch: 'Enter text to search for images',
        backToSearch: 'Back to Search',
        emptyFolderAdded: 'No files were added from empty folder',
        folderAlreadyAdded: 'The folder "%{folder}" was already added',
        folderAdded: {
          0: 'Added %{smart_count} file from %{folder}',
          1: 'Added %{smart_count} files from %{folder}'
        }
      }
    },
    Jm = xg;
  let Qm,
    eb;

  function tb(e, t) {
    if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError('attempted to use private field on non-instance');
    return e;
  }

  var nb = 0;

  function rb(e) {
    return '__private_' + nb++ + '_' + e;
  }

  const { nanoid: ob } = Jm, {
    justErrorsLogger: ib,
    debugLogger: ab
  } = Xm;

  class ub extends Error {
    constructor() {
      super(...arguments), this.isRestriction = !0;
    }
  }

  'undefined' == typeof AggregateError && (globalThis.AggregateError = class extends Error {
    constructor(e, t) {
      super(t), this.errors = e;
    }
  });

  class sb extends AggregateError {
    constructor() {
      super(...arguments), this.isRestriction = !0;
    }
  }

  var lb = rb('plugins'),
    cb = rb('storeUnsubscribe'),
    fb = rb('emitter'),
    db = rb('preProcessors'),
    pb = rb('uploaders'),
    hb = rb('postProcessors'),
    vb = rb('checkRestrictions'),
    gb = rb('checkMinNumberOfFiles'),
    yb = rb('checkRequiredMetaFieldsOnFile'),
    mb = rb('checkRequiredMetaFields'),
    bb = rb('showOrLogErrorAndThrow'),
    wb = rb('assertNewUploadAllowed'),
    Eb = rb('checkAndCreateFileStateObject'),
    Db = rb('startIfAutoProceed'),
    xb = rb('addListeners'),
    Sb = rb('updateOnlineStatus'),
    Cb = rb('createUpload'),
    Ab = rb('getUpload'),
    Ob = rb('removeUpload'),
    kb = rb('runUpload');
  Qm = Symbol.for('uppy test: getPlugins'), eb = Symbol.for('uppy test: createUpload');

  class Tb {
    constructor(e) {
      Object.defineProperty(this, kb, { value: Hb }), Object.defineProperty(this, Ob, { value: $b }), Object.defineProperty(this, Ab, { value: zb }), Object.defineProperty(this, Cb, { value: Lb }), Object.defineProperty(this, xb, { value: Mb }), Object.defineProperty(this, Db, { value: Rb }), Object.defineProperty(this, Eb, { value: Ib }), Object.defineProperty(this, wb, { value: Nb }), Object.defineProperty(this, bb, { value: jb }), Object.defineProperty(this, mb, { value: Pb }), Object.defineProperty(this, yb, { value: _b }), Object.defineProperty(this, gb, { value: Fb }), Object.defineProperty(this, vb, { value: Bb }), Object.defineProperty(this, lb, {
        writable: !0,
        value: Object.create(null)
      }), Object.defineProperty(this, cb, {
        writable: !0,
        value: void 0
      }), Object.defineProperty(this, fb, {
        writable: !0,
        value: _m()
      }), Object.defineProperty(this, db, {
        writable: !0,
        value: new Set
      }), Object.defineProperty(this, pb, {
        writable: !0,
        value: new Set
      }), Object.defineProperty(this, hb, {
        writable: !0,
        value: new Set
      }), Object.defineProperty(this, Sb, {
        writable: !0,
        value: this.updateOnlineStatus.bind(this)
      }), this.defaultLocale = Zm;
      const t = {
        id: 'uppy',
        autoProceed: !1,
        allowMultipleUploads: !0,
        allowMultipleUploadBatches: !0,
        debug: !1,
        restrictions: {
          maxFileSize: null,
          minFileSize: null,
          maxTotalFileSize: null,
          maxNumberOfFiles: null,
          minNumberOfFiles: null,
          allowedFileTypes: null,
          requiredMetaFields: []
        },
        meta: {},
        onBeforeFileAdded: e => e,
        onBeforeUpload: e => e,
        store: new zm,
        logger: ib,
        infoTimeout: 5e3
      };
      if (this.opts = {
        ...t, ...e,
        restrictions: { ...t.restrictions, ...e && e.restrictions }
      }, e && e.logger && e.debug ? this.log('You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.', 'warning') : e && e.debug && (this.opts.logger = ab), this.log(`Using Core v${this.constructor.VERSION}`), this.opts.restrictions.allowedFileTypes && null !== this.opts.restrictions.allowedFileTypes && !Array.isArray(this.opts.restrictions.allowedFileTypes)) {
        throw new TypeError('`restrictions.allowedFileTypes` must be an array');
      }
      this.i18nInit(), this.calculateProgress = zg(this.calculateProgress.bind(this), 500, {
        leading: !0,
        trailing: !0
      }), this.store = this.opts.store, this.setState({
        plugins: {},
        files: {},
        currentUploads: {},
        allowNewUpload: !0,
        capabilities: {
          uploadProgress: Wm(),
          individualCancellation: !0,
          resumableUploads: !1
        },
        totalProgress: 0,
        meta: { ...this.opts.meta },
        info: [],
        recoveredState: null
      }), tb(this, cb)[cb] = this.store.subscribe(((e, t, n) => {
        this.emit('state-update', e, t, n), this.updateAll(t);
      })), this.opts.debug && 'undefined' != typeof window && (window[this.opts.id] = this), tb(this, xb)[xb]();
    }

    emit(e) {
      for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
      tb(this, fb)[fb].emit(e, ...n);
    }

    on(e, t) {
      return tb(this, fb)[fb].on(e, t), this;
    }

    once(e, t) {
      return tb(this, fb)[fb].once(e, t), this;
    }

    off(e, t) {
      return tb(this, fb)[fb].off(e, t), this;
    }

    updateAll(e) {
      this.iteratePlugins((t => {
        t.update(e);
      }));
    }

    setState(e) {
      this.store.setState(e);
    }

    getState() {
      return this.store.getState();
    }

    get state() {
      return this.getState();
    }

    setFileState(e, t) {
      if (!this.getState().files[e]) throw new Error(`Can’t set state for ${e} (the file could have been removed)`);
      this.setState({
        files: {
          ...this.getState().files,
          [e]: { ...this.getState().files[e], ...t }
        }
      });
    }

    i18nInit() {
      const e = new Bm([this.defaultLocale, this.opts.locale]);
      this.i18n = e.translate.bind(e), this.i18nArray = e.translateArray.bind(e), this.locale = e.locale;
    }

    setOptions(e) {
      this.opts = {
        ...this.opts, ...e,
        restrictions: { ...this.opts.restrictions, ...e && e.restrictions }
      }, e.meta && this.setMeta(e.meta), this.i18nInit(), e.locale && this.iteratePlugins((e => {
        e.setOptions();
      })), this.setState();
    }

    resetProgress() {
      const e = {
          percentage: 0,
          bytesUploaded: 0,
          uploadComplete: !1,
          uploadStarted: null
        },
        t = { ...this.getState().files },
        n = {};
      Object.keys(t)
        .forEach((r => {
          const o = { ...t[r] };
          o.progress = { ...o.progress, ...e }, n[r] = o;
        })), this.setState({
        files: n,
        totalProgress: 0
      }), this.emit('reset-progress');
    }

    addPreProcessor(e) {
      tb(this, db)[db].add(e);
    }

    removePreProcessor(e) {
      return tb(this, db)[db].delete(e);
    }

    addPostProcessor(e) {
      tb(this, hb)[hb].add(e);
    }

    removePostProcessor(e) {
      return tb(this, hb)[hb].delete(e);
    }

    addUploader(e) {
      tb(this, pb)[pb].add(e);
    }

    removeUploader(e) {
      return tb(this, pb)[pb].delete(e);
    }

    setMeta(e) {
      const t = { ...this.getState().meta, ...e },
        n = { ...this.getState().files };
      Object.keys(n)
        .forEach((t => {
          n[t] = {
            ...n[t],
            meta: { ...n[t].meta, ...e }
          };
        })), this.log('Adding metadata:'), this.log(e), this.setState({
        meta: t,
        files: n
      });
    }

    setFileMeta(e, t) {
      const n = { ...this.getState().files };
      if (!n[e]) return void this.log('Was trying to set metadata for a file that has been removed: ', e);
      const r = { ...n[e].meta, ...t };
      n[e] = {
        ...n[e],
        meta: r
      }, this.setState({ files: n });
    }

    getFile(e) {
      return this.getState().files[e];
    }

    getFiles() {
      const { files: e } = this.getState();
      return Object.values(e);
    }

    getObjectOfFilesPerState() {
      const {
          files: e,
          totalProgress: t,
          error: n
        } = this.getState(),
        r = Object.values(e),
        o = r.filter((e => {
          let { progress: t } = e;
          return !t.uploadComplete && t.uploadStarted;
        })),
        i = r.filter((e => !e.progress.uploadStarted)),
        a = r.filter((e => e.progress.uploadStarted || e.progress.preprocess || e.progress.postprocess)),
        u = r.filter((e => e.progress.uploadStarted)),
        s = r.filter((e => e.isPaused)),
        l = r.filter((e => e.progress.uploadComplete)),
        c = r.filter((e => e.error)),
        f = o.filter((e => !e.isPaused)),
        d = r.filter((e => e.progress.preprocess || e.progress.postprocess));
      return {
        newFiles: i,
        startedFiles: a,
        uploadStartedFiles: u,
        pausedFiles: s,
        completeFiles: l,
        erroredFiles: c,
        inProgressFiles: o,
        inProgressNotPausedFiles: f,
        processingFiles: d,
        isUploadStarted: u.length > 0,
        isAllComplete: 100 === t && l.length === r.length && 0 === d.length,
        isAllErrored: !!n && c.length === r.length,
        isAllPaused: 0 !== o.length && s.length === o.length,
        isUploadInProgress: o.length > 0,
        isSomeGhost: r.some((e => e.isGhost))
      };
    }

    validateRestrictions(e, t) {
      try {
        return tb(this, vb)[vb](e, t), { result: !0 };
      } catch (e) {
        return {
          result: !1,
          reason: e.message
        };
      }
    }

    checkIfFileAlreadyExists(e) {
      const { files: t } = this.getState();
      return !(!t[e] || t[e].isGhost);
    }

    addFile(e) {
      tb(this, wb)[wb](e);
      const { files: t } = this.getState();
      let n = tb(this, Eb)[Eb](t, e);
      return t[n.id] && t[n.id].isGhost && (n = {
        ...t[n.id],
        data: e.data,
        isGhost: !1
      }, this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)), this.setState({
        files: {
          ...t,
          [n.id]: n
        }
      }), this.emit('file-added', n), this.emit('files-added', [n]), this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`), tb(this, Db)[Db](), n.id;
    }

    addFiles(e) {
      tb(this, wb)[wb]();
      const t = { ...this.getState().files },
        n = [],
        r = [];
      for (let o = 0; o < e.length; o++) {
        try {
          let r = tb(this, Eb)[Eb](t, e[o]);
          t[r.id] && t[r.id].isGhost && (r = {
            ...t[r.id],
            data: e[o].data,
            isGhost: !1
          }, this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)), t[r.id] = r, n.push(r);
        } catch (e) {
          e.isRestriction || r.push(e);
        }
      }
      if (this.setState({ files: t }), n.forEach((e => {
        this.emit('file-added', e);
      })), this.emit('files-added', n), n.length > 5 ? this.log(`Added batch of ${n.length} files`) : Object.keys(n)
        .forEach((e => {
          this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`);
        })), n.length > 0 && tb(this, Db)[Db](), r.length > 0) {
        let e = 'Multiple errors occurred while adding files:\n';
        if (r.forEach((t => {
          e += `\n * ${t.message}`;
        })), this.info({
          message: this.i18n('addBulkFilesFailed', { smart_count: r.length }),
          details: e
        }, 'error', this.opts.infoTimeout), 'function' == typeof AggregateError) {
          throw new AggregateError(r, e);
        }
        {
          const t = new Error(e);
          throw t.errors = r, t;
        }
      }
    }

    removeFiles(e, t) {
      const {
          files: n,
          currentUploads: r
        } = this.getState(),
        o = { ...n },
        i = { ...r },
        a = Object.create(null);

      function u(e) {
        return void 0 === a[e];
      }

      e.forEach((e => {
        n[e] && (a[e] = n[e], delete o[e]);
      })), Object.keys(i)
        .forEach((e => {
          const t = r[e].fileIDs.filter(u);
          0 !== t.length ? i[e] = {
            ...r[e],
            fileIDs: t
          } : delete i[e];
        }));
      const s = {
        currentUploads: i,
        files: o
      };
      0 === Object.keys(o).length && (s.allowNewUpload = !0, s.error = null, s.recoveredState = null), this.setState(s), this.calculateTotalProgress();
      const l = Object.keys(a);
      l.forEach((e => {
        this.emit('file-removed', a[e], t);
      })), l.length > 5 ? this.log(`Removed ${l.length} files`) : this.log(`Removed files: ${l.join(', ')}`);
    }

    removeFile(e, t) {
      void 0 === t && (t = null), this.removeFiles([e], t);
    }

    pauseResume(e) {
      if (!this.getState().capabilities.resumableUploads || this.getFile(e).uploadComplete) return;
      const t = !(this.getFile(e).isPaused || !1);
      return this.setFileState(e, { isPaused: t }), this.emit('upload-pause', e, t), t;
    }

    pauseAll() {
      const e = { ...this.getState().files };
      Object.keys(e)
        .filter((t => !e[t].progress.uploadComplete && e[t].progress.uploadStarted))
        .forEach((t => {
          const n = {
            ...e[t],
            isPaused: !0
          };
          e[t] = n;
        })), this.setState({ files: e }), this.emit('pause-all');
    }

    resumeAll() {
      const e = { ...this.getState().files };
      Object.keys(e)
        .filter((t => !e[t].progress.uploadComplete && e[t].progress.uploadStarted))
        .forEach((t => {
          const n = {
            ...e[t],
            isPaused: !1,
            error: null
          };
          e[t] = n;
        })), this.setState({ files: e }), this.emit('resume-all');
    }

    retryAll() {
      const e = { ...this.getState().files },
        t = Object.keys(e)
          .filter((t => e[t].error));
      if (t.forEach((t => {
        const n = {
          ...e[t],
          isPaused: !1,
          error: null
        };
        e[t] = n;
      })), this.setState({
        files: e,
        error: null
      }), this.emit('retry-all', t), 0 === t.length) {
        return Promise.resolve({
          successful: [],
          failed: []
        });
      }
      const n = tb(this, Cb)[Cb](t, { forceAllowNewUpload: !0 });
      return tb(this, kb)[kb](n);
    }

    cancelAll() {
      this.emit('cancel-all');
      const { files: e } = this.getState(),
        t = Object.keys(e);
      t.length && this.removeFiles(t, 'cancel-all'), this.setState({
        totalProgress: 0,
        error: null,
        recoveredState: null
      });
    }

    retryUpload(e) {
      this.setFileState(e, {
        error: null,
        isPaused: !1
      }), this.emit('upload-retry', e);
      const t = tb(this, Cb)[Cb]([e], { forceAllowNewUpload: !0 });
      return tb(this, kb)[kb](t);
    }

    reset() {
      this.cancelAll();
    }

    logout() {
      this.iteratePlugins((e => {
        e.provider && e.provider.logout && e.provider.logout();
      }));
    }

    calculateProgress(e, t) {
      if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
      const n = Number.isFinite(t.bytesTotal) && t.bytesTotal > 0;
      this.setFileState(e.id, {
        progress: {
          ...this.getFile(e.id).progress,
          bytesUploaded: t.bytesUploaded,
          bytesTotal: t.bytesTotal,
          percentage: n ? Math.round(t.bytesUploaded / t.bytesTotal * 100) : 0
        }
      }), this.calculateTotalProgress();
    }

    calculateTotalProgress() {
      const e = this.getFiles()
        .filter((e => e.progress.uploadStarted || e.progress.preprocess || e.progress.postprocess));
      if (0 === e.length) return this.emit('progress', 0), void this.setState({ totalProgress: 0 });
      const t = e.filter((e => null != e.progress.bytesTotal)),
        n = e.filter((e => null == e.progress.bytesTotal));
      if (0 === t.length) {
        const t = 100 * e.length,
          r = n.reduce(((e, t) => e + t.progress.percentage), 0),
          o = Math.round(r / t * 100);
        return void this.setState({ totalProgress: o });
      }
      let r = t.reduce(((e, t) => e + t.progress.bytesTotal), 0);
      const o = r / t.length;
      r += o * n.length;
      let i = 0;
      t.forEach((e => {
        i += e.progress.bytesUploaded;
      })), n.forEach((e => {
        i += o * (e.progress.percentage || 0) / 100;
      }));
      let a = 0 === r ? 0 : Math.round(i / r * 100);
      a > 100 && (a = 100), this.setState({ totalProgress: a }), this.emit('progress', a);
    }

    updateOnlineStatus() {
      void 0 === window.navigator.onLine || window.navigator.onLine ? (this.emit('is-online'), this.wasOffline && (this.emit('back-online'), this.info(this.i18n('connectedToInternet'), 'success', 3e3), this.wasOffline = !1)) : (this.emit('is-offline'), this.info(this.i18n('noInternetConnection'), 'error', 0), this.wasOffline = !0);
    }

    getID() {
      return this.opts.id;
    }

    use(e, t) {
      if ('function' != typeof e) {
        throw new TypeError(`Expected a plugin class, but got ${null === e ? 'null' : typeof e}. Please verify that the plugin was imported and spelled correctly.`);
      }
      const n = new e(this, t),
        r = n.id;
      if (!r) throw new Error('Your plugin must have an id');
      if (!n.type) throw new Error('Your plugin must have a type');
      const o = this.getPlugin(r);
      if (o) {
        const e = `Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;
        throw new Error(e);
      }
      return e.VERSION && this.log(`Using ${r} v${e.VERSION}`), n.type in tb(this, lb)[lb] ? tb(this, lb)[lb][n.type].push(n) : tb(this, lb)[lb][n.type] = [n], n.install(), this;
    }

    getPlugin(e) {
      for (const t of Object.values(tb(this, lb)[lb])) {
        const n = t.find((t => t.id === e));
        if (null != n) return n;
      }
    }

    [Qm](e) {
      return tb(this, lb)[lb][e];
    }

    iteratePlugins(e) {
      Object.values(tb(this, lb)[lb])
        .flat(1)
        .forEach(e);
    }

    removePlugin(e) {
      this.log(`Removing plugin ${e.id}`), this.emit('plugin-remove', e), e.uninstall && e.uninstall();
      const t = tb(this, lb)[lb][e.type],
        n = t.findIndex((t => t.id === e.id));
      -1 !== n && t.splice(n, 1);
      const r = {
        plugins: {
          ...this.getState().plugins,
          [e.id]: void 0
        }
      };
      this.setState(r);
    }

    close() {
      this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`), this.reset(), tb(this, cb)[cb](), this.iteratePlugins((e => {
        this.removePlugin(e);
      })), 'undefined' != typeof window && window.removeEventListener && (window.removeEventListener('online', tb(this, Sb)[Sb]), window.removeEventListener('offline', tb(this, Sb)[Sb]));
    }

    hideInfo() {
      const { info: e } = this.getState();
      this.setState({ info: e.slice(1) }), this.emit('info-hidden');
    }

    info(e, t, n) {
      void 0 === t && (t = 'info'), void 0 === n && (n = 3e3);
      const r = 'object' == typeof e;
      this.setState({
        info: [...this.getState().info, {
          type: t,
          message: r ? e.message : e,
          details: r ? e.details : null
        }]
      }), setTimeout((() => this.hideInfo()), n), this.emit('info-visible');
    }

    log(e, t) {
      const { logger: n } = this.opts;
      switch (t) {
        case'error':
          n.error(e);
          break;
        case'warning':
          n.warn(e);
          break;
        default:
          n.debug(e);
      }
    }

    restore(e) {
      return this.log(`Core: attempting to restore upload "${e}"`), this.getState().currentUploads[e] ? tb(this, kb)[kb](e) : (tb(this, Ob)[Ob](e), Promise.reject(new Error('Nonexistent upload')));
    }

    [eb]() {
      return tb(this, Cb)[Cb](...arguments);
    }

    addResultData(e, t) {
      if (!tb(this, Ab)[Ab](e)) return void this.log(`Not setting result for an upload that has been removed: ${e}`);
      const { currentUploads: n } = this.getState(),
        r = {
          ...n[e],
          result: { ...n[e].result, ...t }
        };
      this.setState({
        currentUploads: {
          ...n,
          [e]: r
        }
      });
    }

    upload() {
      var e;
      null != (e = tb(this, lb)[lb].uploader) && e.length || this.log('No uploader type plugins are used', 'warning');
      let { files: t } = this.getState();
      const n = this.opts.onBeforeUpload(t);
      return !1 === n ? Promise.reject(new Error('Not starting the upload because onBeforeUpload returned false')) : (n && 'object' == typeof n && (t = n, this.setState({ files: t })), Promise.resolve()
        .then((() => {
          tb(this, gb)[gb](t), tb(this, mb)[mb](t);
        }))
        .catch((e => {
          tb(this, bb)[bb](e);
        }))
        .then((() => {
          const { currentUploads: e } = this.getState(),
            n = Object.values(e)
              .flatMap((e => e.fileIDs)),
            r = [];
          Object.keys(t)
            .forEach((e => {
              const t = this.getFile(e);
              t.progress.uploadStarted || -1 !== n.indexOf(e) || r.push(t.id);
            }));
          const o = tb(this, Cb)[Cb](r);
          return tb(this, kb)[kb](o);
        }))
        .catch((e => {
          tb(this, bb)[bb](e, { showInformer: !1 });
        })));
    }
  }

  function Bb(e, t) {
    void 0 === t && (t = this.getFiles());
    const {
      maxFileSize: n,
      minFileSize: r,
      maxTotalFileSize: o,
      maxNumberOfFiles: i,
      allowedFileTypes: a
    } = this.opts.restrictions;
    if (i && t.length + 1 > i) throw new ub(`${this.i18n('youCanOnlyUploadX', { smart_count: i })}`);
    if (a) {
      if (!a.some((t => t.indexOf('/') > -1 ? !!e.type && Im(e.type.replace(/;.*?$/, ''), t) : !('.' !== t[0] || !e.extension) && e.extension.toLowerCase() === t.substr(1)
        .toLowerCase()))) {
        const e = a.join(', ');
        throw new ub(this.i18n('youCanOnlyUploadFileTypes', { types: e }));
      }
    }
    if (o && null != e.size) {
      let n = 0;
      if (n += e.size, t.forEach((e => {
        n += e.size;
      })), n > o) {
        throw new ub(this.i18n('exceedsSize', {
          size: Pm(o),
          file: e.name
        }));
      }
    }
    if (n && null != e.size && e.size > n) {
      throw new ub(this.i18n('exceedsSize', {
        size: Pm(n),
        file: e.name
      }));
    }
    if (r && null != e.size && e.size < r) throw new ub(this.i18n('inferiorSize', { size: Pm(r) }));
  }

  function Fb(e) {
    const { minNumberOfFiles: t } = this.opts.restrictions;
    if (Object.keys(e).length < t) throw new ub(`${this.i18n('youHaveToAtLeastSelectX', { smart_count: t })}`);
  }

  function _b(e) {
    const { requiredMetaFields: t } = this.opts.restrictions, { hasOwnProperty: n } = Object.prototype,
      r = [],
      o = [];
    for (let i = 0; i < t.length; i++) {
      if (!n.call(e.meta, t[i]) || '' === e.meta[t[i]]) {
        const n = new ub(`${this.i18n('missingRequiredMetaFieldOnFile', { fileName: e.name })}`);
        r.push(n), o.push(t[i]), tb(this, bb)[bb](n, {
          file: e,
          showInformer: !1,
          throwErr: !1
        });
      }
    }
    return this.setFileState(e.id, { missingRequiredMetaFields: o }), r;
  }

  function Pb(e) {
    const t = Object.keys(e)
      .flatMap((e => {
        const t = this.getFile(e);
        return tb(this, yb)[yb](t);
      }));
    if (t.length) throw new sb(t, `${this.i18n('missingRequiredMetaField')}`);
  }

  function jb(e, t) {
    let {
      showInformer: n = !0,
      file: r = null,
      throwErr: o = !0
    } = void 0 === t ? {} : t;
    const i = 'object' == typeof e ? e.message : e,
      a = 'object' == typeof e && e.details ? e.details : '';
    let u = i;
    if (a && (u += ` ${a}`), e.isRestriction ? (this.log(u), this.emit('restriction-failed', r, e)) : this.log(u, 'error'), n && this.info({
      message: i,
      details: a
    }, 'error', this.opts.infoTimeout), o) {
      throw'object' == typeof e ? e : new Error(e);
    }
  }

  function Nb(e) {
    const { allowNewUpload: t } = this.getState();
    !1 === t && tb(this, bb)[bb](new ub(this.i18n('noMoreFilesAllowed')), { file: e });
  }

  function Ib(e, t) {
    const n = function (e) {
        var t;
        if (e.type) return e.type;
        const n = e.name ? null == (t = Hm(e.name).extension) ? void 0 : t.toLowerCase() : null;
        return n && n in Vm ? Vm[n] : 'application/octet-stream';
      }(t),
      r = function (e, t) {
        return t.name ? t.name : 'image' === e.split('/')[0] ? `${e.split('/')[0]}.${e.split('/')[1]}` : 'noname';
      }(n, t),
      o = Hm(r).extension,
      i = Boolean(t.isRemote),
      a = function (e) {
        let t = 'uppy';
        return 'string' == typeof e.name && (t += `-${Um(e.name.toLowerCase())}`), void 0 !== e.type && (t += `-${e.type}`), e.meta && 'string' == typeof e.meta.relativePath && (t += `-${Um(e.meta.relativePath.toLowerCase())}`), void 0 !== e.data.size && (t += `-${e.data.size}`), void 0 !== e.data.lastModified && (t += `-${e.data.lastModified}`), t;
      }({
        ...t,
        type: n
      });
    if (this.checkIfFileAlreadyExists(a)) {
      const e = new ub(this.i18n('noDuplicates', { fileName: r }));
      tb(this, bb)[bb](e, { file: t });
    }
    const u = t.meta || {};
    u.name = r, u.type = n;
    const s = Number.isFinite(t.data.size) ? t.data.size : null;
    let l = {
      source: t.source || '',
      id: a,
      name: r,
      extension: o || '',
      meta: { ...this.getState().meta, ...u },
      type: n,
      data: t.data,
      progress: {
        percentage: 0,
        bytesUploaded: 0,
        bytesTotal: s,
        uploadComplete: !1,
        uploadStarted: null
      },
      size: s,
      isRemote: i,
      remote: t.remote || '',
      preview: t.preview
    };
    const c = this.opts.onBeforeFileAdded(l, e);
    !1 === c ? tb(this, bb)[bb](new ub('Cannot add the file because onBeforeFileAdded returned false.'), {
      showInformer: !1,
      fileDescriptor: t
    }) : 'object' == typeof c && null !== c && (l = c);
    try {
      const t = Object.keys(e)
        .map((t => e[t]));
      tb(this, vb)[vb](l, t);
    } catch (e) {
      tb(this, bb)[bb](e, { file: l });
    }
    return l;
  }

  function Rb() {
    this.opts.autoProceed && !this.scheduledAutoProceed && (this.scheduledAutoProceed = setTimeout((() => {
      this.scheduledAutoProceed = null, this.upload()
        .catch((e => {
          e.isRestriction || this.log(e.stack || e.message || e);
        }));
    }), 4));
  }

  function Mb() {
    const e = (e, t, n) => {
      let r = e.message || 'Unknown error';
      e.details && (r += ` ${e.details}`), this.setState({ error: r }), null != t && t.id in this.getState().files && this.setFileState(t.id, {
        error: r,
        response: n
      });
    };
    this.on('error', e), this.on('upload-error', ((t, n, r) => {
      if (e(n, t, r), 'object' == typeof n && n.message) {
        const e = new Error(n.message);
        e.details = n.message, n.details && (e.details += ` ${n.details}`), e.message = this.i18n('failedToUpload', { file: t.name }), tb(this, bb)[bb](e, { throwErr: !1 });
      } else {
        tb(this, bb)[bb](n, { throwErr: !1 });
      }
    })), this.on('upload', (() => {
      this.setState({ error: null });
    })), this.on('upload-started', (e => {
      this.getFile(e.id) ? this.setFileState(e.id, {
        progress: {
          uploadStarted: Date.now(),
          uploadComplete: !1,
          percentage: 0,
          bytesUploaded: 0,
          bytesTotal: e.size
        }
      }) : this.log(`Not setting progress for a file that has been removed: ${e.id}`);
    })), this.on('upload-progress', this.calculateProgress), this.on('upload-success', ((e, t) => {
      if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
      const n = this.getFile(e.id).progress;
      this.setFileState(e.id, {
        progress: {
          ...n,
          postprocess: tb(this, hb)[hb].size > 0 ? { mode: 'indeterminate' } : null,
          uploadComplete: !0,
          percentage: 100,
          bytesUploaded: n.bytesTotal
        },
        response: t,
        uploadURL: t.uploadURL,
        isPaused: !1
      }), null == e.size && this.setFileState(e.id, { size: t.bytesUploaded || n.bytesTotal }), this.calculateTotalProgress();
    })), this.on('preprocess-progress', ((e, t) => {
      this.getFile(e.id) ? this.setFileState(e.id, {
        progress: {
          ...this.getFile(e.id).progress,
          preprocess: t
        }
      }) : this.log(`Not setting progress for a file that has been removed: ${e.id}`);
    })), this.on('preprocess-complete', (e => {
      if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
      const t = { ...this.getState().files };
      t[e.id] = {
        ...t[e.id],
        progress: { ...t[e.id].progress }
      }, delete t[e.id].progress.preprocess, this.setState({ files: t });
    })), this.on('postprocess-progress', ((e, t) => {
      this.getFile(e.id) ? this.setFileState(e.id, {
        progress: {
          ...this.getState().files[e.id].progress,
          postprocess: t
        }
      }) : this.log(`Not setting progress for a file that has been removed: ${e.id}`);
    })), this.on('postprocess-complete', (e => {
      if (!this.getFile(e.id)) return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);
      const t = { ...this.getState().files };
      t[e.id] = {
        ...t[e.id],
        progress: { ...t[e.id].progress }
      }, delete t[e.id].progress.postprocess, this.setState({ files: t });
    })), this.on('restored', (() => {
      this.calculateTotalProgress();
    })), this.on('dashboard:file-edit-complete', (e => {
      e && tb(this, yb)[yb](e);
    })), 'undefined' != typeof window && window.addEventListener && (window.addEventListener('online', tb(this, Sb)[Sb]), window.addEventListener('offline', tb(this, Sb)[Sb]), setTimeout(tb(this, Sb)[Sb], 3e3));
  }

  function Lb(e, t) {
    void 0 === t && (t = {});
    const { forceAllowNewUpload: n = !1 } = t, {
      allowNewUpload: r,
      currentUploads: o
    } = this.getState();
    if (!r && !n) throw new Error('Cannot create a new upload: already uploading.');
    const i = ob();
    return this.emit('upload', {
      id: i,
      fileIDs: e
    }), this.setState({
      allowNewUpload: !1 !== this.opts.allowMultipleUploadBatches && !1 !== this.opts.allowMultipleUploads,
      currentUploads: {
        ...o,
        [i]: {
          fileIDs: e,
          step: 0,
          result: {}
        }
      }
    }), i;
  }

  function zb(e) {
    const { currentUploads: t } = this.getState();
    return t[e];
  }

  function $b(e) {
    const t = { ...this.getState().currentUploads };
    delete t[e], this.setState({ currentUploads: t });
  }

  async function Hb(e) {
    let { currentUploads: t } = this.getState(),
      n = t[e];
    const r = n.step || 0,
      o = [...tb(this, db)[db], ...tb(this, pb)[pb], ...tb(this, hb)[hb]];
    try {
      for (let i = r; i < o.length && n; i++) {
        const r = o[i],
          a = {
            ...n,
            step: i
          };
        this.setState({
          currentUploads: {
            ...t,
            [e]: a
          }
        }), await r(a.fileIDs, e), t = this.getState().currentUploads, n = t[e];
      }
    } catch (t) {
      throw this.emit('error', t), tb(this, Ob)[Ob](e), t;
    }
    if (n) {
      n.fileIDs.forEach((e => {
        const t = this.getFile(e);
        t && t.progress.postprocess && this.emit('postprocess-complete', t);
      }));
      const r = n.fileIDs.map((e => this.getFile(e))),
        o = r.filter((e => !e.error)),
        i = r.filter((e => e.error));
      await this.addResultData(e, {
        successful: o,
        failed: i,
        uploadID: e
      }), t = this.getState().currentUploads, n = t[e];
    }
    let i;
    return n && (i = n.result, this.emit('complete', i), tb(this, Ob)[Ob](e)), null == i && this.log(`Not setting result for an upload that has been removed: ${e}`), i;
  }

  Tb.VERSION = '2.1.3';
  var Vb = Tb,
    Ub = r((function (e, t) {
      var n,
        r,
        o,
        i,
        a,
        u,
        s,
        l,
        c = {},
        f = [],
        d = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;

      function p(e, t) {
        for (var n in t) e[n] = t[n];
        return e;
      }

      function h(e) {
        var t = e.parentNode;
        t && t.removeChild(e);
      }

      function v(e, t, r) {
        var o,
          i,
          a,
          u = {};
        for (a in t) 'key' == a ? o = t[a] : 'ref' == a ? i = t[a] : u[a] = t[a];
        if (arguments.length > 2 && (u.children = arguments.length > 3 ? n.call(arguments, 2) : r), 'function' == typeof e && null != e.defaultProps) for (a in e.defaultProps) void 0 === u[a] && (u[a] = e.defaultProps[a]);
        return g(e, u, o, i, null);
      }

      function g(e, t, n, i, a) {
        var u = {
          type: e,
          props: t,
          key: n,
          ref: i,
          __k: null,
          __: null,
          __b: 0,
          __e: null,
          __d: void 0,
          __c: null,
          __h: null,
          constructor: void 0,
          __v: null == a ? ++o : a
        };
        return null == a && null != r.vnode && r.vnode(u), u;
      }

      function y(e) {
        return e.children;
      }

      function m(e, t) {
        this.props = e, this.context = t;
      }

      function b(e, t) {
        if (null == t) return e.__ ? b(e.__, e.__.__k.indexOf(e) + 1) : null;
        for (var n; t < e.__k.length; t++) if (null != (n = e.__k[t]) && null != n.__e) return n.__e;
        return 'function' == typeof e.type ? b(e) : null;
      }

      function w(e) {
        var t,
          n;
        if (null != (e = e.__) && null != e.__c) {
          for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) {
            if (null != (n = e.__k[t]) && null != n.__e) {
              e.__e = e.__c.base = n.__e;
              break;
            }
          }
          return w(e);
        }
      }

      function E(e) {
        (!e.__d && (e.__d = !0) && a.push(e) && !D.__r++ || s !== r.debounceRendering) && ((s = r.debounceRendering) || u)(D);
      }

      function D() {
        for (var e; D.__r = a.length;) {
          e = a.sort((function (e, t) {
            return e.__v.__b - t.__v.__b;
          })), a = [], e.some((function (e) {
            var t,
              n,
              r,
              o,
              i,
              a;
            e.__d && (i = (o = (t = e).__v).__e, (a = t.__P) && (n = [], (r = p({}, o)).__v = o.__v + 1, B(a, o, r, t.__n, void 0 !== a.ownerSVGElement, null != o.__h ? [i] : null, n, null == i ? b(o) : i, o.__h), F(n, o), o.__e != i && w(o)));
          }));
        }
      }

      function x(e, t, n, r, o, i, a, u, s, l) {
        var d,
          p,
          h,
          v,
          m,
          w,
          E,
          D = r && r.__k || f,
          x = D.length;
        for (n.__k = [], d = 0; d < t.length; d++) {
          if (null != (v = n.__k[d] = null == (v = t[d]) || 'boolean' == typeof v ? null : 'string' == typeof v || 'number' == typeof v || 'bigint' == typeof v ? g(null, v, null, null, v) : Array.isArray(v) ? g(y, { children: v }, null, null, null) : v.__b > 0 ? g(v.type, v.props, v.key, null, v.__v) : v)) {
            if (v.__ = n, v.__b = n.__b + 1, null === (h = D[d]) || h && v.key == h.key && v.type === h.type) {
              D[d] = void 0;
            } else {
              for (p = 0; p < x; p++) {
                if ((h = D[p]) && v.key == h.key && v.type === h.type) {
                  D[p] = void 0;
                  break;
                }
                h = null;
              }
            }
            B(e, v, h = h || c, o, i, a, u, s, l), m = v.__e, (p = v.ref) && h.ref != p && (E || (E = []), h.ref && E.push(h.ref, null, v), E.push(p, v.__c || m, v)), null != m ? (null == w && (w = m), 'function' == typeof v.type && v.__k === h.__k ? v.__d = s = S(v, s, e) : s = C(e, v, h, D, m, s), 'function' == typeof n.type && (n.__d = s)) : s && h.__e == s && s.parentNode != e && (s = b(h));
          }
        }
        for (n.__e = w, d = x; d--;) null != D[d] && ('function' == typeof n.type && null != D[d].__e && D[d].__e == n.__d && (n.__d = b(r, d + 1)), j(D[d], D[d]));
        if (E) for (d = 0; d < E.length; d++) P(E[d], E[++d], E[++d]);
      }

      function S(e, t, n) {
        for (var r, o = e.__k, i = 0; o && i < o.length; i++) (r = o[i]) && (r.__ = e, t = 'function' == typeof r.type ? S(r, t, n) : C(n, r, r, o, r.__e, t));
        return t;
      }

      function C(e, t, n, r, o, i) {
        var a,
          u,
          s;
        if (void 0 !== t.__d) {
          a = t.__d, t.__d = void 0;
        } else if (null == n || o != i || null == o.parentNode) {
          e:if (null == i || i.parentNode !== e) {
            e.appendChild(o), a = null;
          } else {
            for (u = i, s = 0; (u = u.nextSibling) && s < r.length; s += 2) if (u == o) break e;
            e.insertBefore(o, i), a = i;
          }
        }
        return void 0 !== a ? a : o.nextSibling;
      }

      function A(e, t, n) {
        '-' === t[0] ? e.setProperty(t, n) : e[t] = null == n ? '' : 'number' != typeof n || d.test(t) ? n : n + 'px';
      }

      function O(e, t, n, r, o) {
        var i;
        e:if ('style' === t) {
          if ('string' == typeof n) {
            e.style.cssText = n;
          } else {
            if ('string' == typeof r && (e.style.cssText = r = ''), r) for (t in r) n && t in n || A(e.style, t, '');
            if (n) for (t in n) r && n[t] === r[t] || A(e.style, t, n[t]);
          }
        } else if ('o' === t[0] && 'n' === t[1]) {
          i = t !== (t = t.replace(/Capture$/, '')), t = t.toLowerCase() in e ? t.toLowerCase()
            .slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r || e.addEventListener(t, i ? T : k, i) : e.removeEventListener(t, i ? T : k, i);
        } else if ('dangerouslySetInnerHTML' !== t) {
          if (o) {
            t = t.replace(/xlink[H:h]/, 'h')
              .replace(/sName$/, 's');
          } else if ('href' !== t && 'list' !== t && 'form' !== t && 'tabIndex' !== t && 'download' !== t && t in e) {
            try {
              e[t] = null == n ? '' : n;
              break e;
            } catch (e) {
            }
          }
          'function' == typeof n || (null != n && (!1 !== n || 'a' === t[0] && 'r' === t[1]) ? e.setAttribute(t, n) : e.removeAttribute(t));
        }
      }

      function k(e) {
        this.l[e.type + !1](r.event ? r.event(e) : e);
      }

      function T(e) {
        this.l[e.type + !0](r.event ? r.event(e) : e);
      }

      function B(e, t, n, o, i, a, u, s, l) {
        var c,
          f,
          d,
          h,
          v,
          g,
          b,
          w,
          E,
          D,
          S,
          C = t.type;
        if (void 0 !== t.constructor) return null;
        null != n.__h && (l = n.__h, s = t.__e = n.__e, t.__h = null, a = [s]), (c = r.__b) && c(t);
        try {
          e:if ('function' == typeof C) {
            if (w = t.props, E = (c = C.contextType) && o[c.__c], D = c ? E ? E.props.value : c.__ : o, n.__c ? b = (f = t.__c = n.__c).__ = f.__E : ('prototype' in C && C.prototype.render ? t.__c = f = new C(w, D) : (t.__c = f = new m(w, D), f.constructor = C, f.render = N), E && E.sub(f), f.props = w, f.state || (f.state = {}), f.context = D, f.__n = o, d = f.__d = !0, f.__h = []), null == f.__s && (f.__s = f.state), null != C.getDerivedStateFromProps && (f.__s == f.state && (f.__s = p({}, f.__s)), p(f.__s, C.getDerivedStateFromProps(w, f.__s))), h = f.props, v = f.state, d) {
              null == C.getDerivedStateFromProps && null != f.componentWillMount && f.componentWillMount(), null != f.componentDidMount && f.__h.push(f.componentDidMount);
            } else {
              if (null == C.getDerivedStateFromProps && w !== h && null != f.componentWillReceiveProps && f.componentWillReceiveProps(w, D), !f.__e && null != f.shouldComponentUpdate && !1 === f.shouldComponentUpdate(w, f.__s, D) || t.__v === n.__v) {
                f.props = w, f.state = f.__s, t.__v !== n.__v && (f.__d = !1), f.__v = t, t.__e = n.__e, t.__k = n.__k, t.__k.forEach((function (e) {
                  e && (e.__ = t);
                })), f.__h.length && u.push(f);
                break e;
              }
              null != f.componentWillUpdate && f.componentWillUpdate(w, f.__s, D), null != f.componentDidUpdate && f.__h.push((function () {
                f.componentDidUpdate(h, v, g);
              }));
            }
            f.context = D, f.props = w, f.state = f.__s, (c = r.__r) && c(t), f.__d = !1, f.__v = t, f.__P = e, c = f.render(f.props, f.state, f.context), f.state = f.__s, null != f.getChildContext && (o = p(p({}, o), f.getChildContext())), d || null == f.getSnapshotBeforeUpdate || (g = f.getSnapshotBeforeUpdate(h, v)), S = null != c && c.type === y && null == c.key ? c.props.children : c, x(e, Array.isArray(S) ? S : [S], t, n, o, i, a, u, s, l), f.base = t.__e, t.__h = null, f.__h.length && u.push(f), b && (f.__E = f.__ = null), f.__e = !1;
          } else {
            null == a && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = _(n.__e, t, n, o, i, a, u, l);
          }
          (c = r.diffed) && c(t);
        } catch (e) {
          t.__v = null, (l || null != a) && (t.__e = s, t.__h = !!l, a[a.indexOf(s)] = null), r.__e(e, t, n);
        }
      }

      function F(e, t) {
        r.__c && r.__c(t, e), e.some((function (t) {
          try {
            e = t.__h, t.__h = [], e.some((function (e) {
              e.call(t);
            }));
          } catch (e) {
            r.__e(e, t.__v);
          }
        }));
      }

      function _(e, t, r, o, i, a, u, s) {
        var l,
          f,
          d,
          p = r.props,
          v = t.props,
          g = t.type,
          y = 0;
        if ('svg' === g && (i = !0), null != a) {
          for (; y < a.length; y++) {
            if ((l = a[y]) && 'setAttribute' in l == !!g && (g ? l.localName === g : 3 === l.nodeType)) {
              e = l, a[y] = null;
              break;
            }
          }
        }
        if (null == e) {
          if (null === g) return document.createTextNode(v);
          e = i ? document.createElementNS('http://www.w3.org/2000/svg', g) : document.createElement(g, v.is && v), a = null, s = !1;
        }
        if (null === g) {
          p === v || s && e.data === v || (e.data = v);
        } else {
          if (a = a && n.call(e.childNodes), f = (p = r.props || c).dangerouslySetInnerHTML, d = v.dangerouslySetInnerHTML, !s) {
            if (null != a) for (p = {}, y = 0; y < e.attributes.length; y++) p[e.attributes[y].name] = e.attributes[y].value;
            (d || f) && (d && (f && d.__html == f.__html || d.__html === e.innerHTML) || (e.innerHTML = d && d.__html || ''));
          }
          if (function (e, t, n, r, o) {
            var i;
            for (i in n) 'children' === i || 'key' === i || i in t || O(e, i, null, n[i], r);
            for (i in t) o && 'function' != typeof t[i] || 'children' === i || 'key' === i || 'value' === i || 'checked' === i || n[i] === t[i] || O(e, i, t[i], n[i], r);
          }(e, v, p, i, s), d) {
            t.__k = [];
          } else if (y = t.props.children, x(e, Array.isArray(y) ? y : [y], t, r, o, i && 'foreignObject' !== g, a, u, a ? a[0] : r.__k && b(r, 0), s), null != a) for (y = a.length; y--;) null != a[y] && h(a[y]);
          s || ('value' in v && void 0 !== (y = v.value) && (y !== p.value || y !== e.value || 'progress' === g && !y) && O(e, 'value', y, p.value, !1), 'checked' in v && void 0 !== (y = v.checked) && y !== e.checked && O(e, 'checked', y, p.checked, !1));
        }
        return e;
      }

      function P(e, t, n) {
        try {
          'function' == typeof e ? e(t) : e.current = t;
        } catch (e) {
          r.__e(e, n);
        }
      }

      function j(e, t, n) {
        var o,
          i;
        if (r.unmount && r.unmount(e), (o = e.ref) && (o.current && o.current !== e.__e || P(o, null, t)), null != (o = e.__c)) {
          if (o.componentWillUnmount) {
            try {
              o.componentWillUnmount();
            } catch (e) {
              r.__e(e, t);
            }
          }
          o.base = o.__P = null;
        }
        if (o = e.__k) for (i = 0; i < o.length; i++) o[i] && j(o[i], t, 'function' != typeof e.type);
        n || null == e.__e || h(e.__e), e.__e = e.__d = void 0;
      }

      function N(e, t, n) {
        return this.constructor(e, n);
      }

      function I(e, t, o) {
        var i,
          a,
          u;
        r.__ && r.__(e, t), a = (i = 'function' == typeof o) ? null : o && o.__k || t.__k, u = [], B(t, e = (!i && o || t).__k = v(y, null, [e]), a || c, c, void 0 !== t.ownerSVGElement, !i && o ? [o] : a ? null : t.firstChild ? n.call(t.childNodes) : null, u, !i && o ? o : a ? a.__e : t.firstChild, i), F(u, e);
      }

      n = f.slice, r = {
        __e: function (e, t) {
          for (var n, r, o; t = t.__;) {
            if ((n = t.__c) && !n.__) {
              try {
                if ((r = n.constructor) && null != r.getDerivedStateFromError && (n.setState(r.getDerivedStateFromError(e)), o = n.__d), null != n.componentDidCatch && (n.componentDidCatch(e), o = n.__d), o) return n.__E = n;
              } catch (t) {
                e = t;
              }
            }
          }
          throw e;
        }
      }, o = 0, i = function (e) {
        return null != e && void 0 === e.constructor;
      }, m.prototype.setState = function (e, t) {
        var n;
        n = null != this.__s && this.__s !== this.state ? this.__s : this.__s = p({}, this.state), 'function' == typeof e && (e = e(p({}, n), this.props)), e && p(n, e), null != e && this.__v && (t && this.__h.push(t), E(this));
      }, m.prototype.forceUpdate = function (e) {
        this.__v && (this.__e = !0, e && this.__h.push(e), E(this));
      }, m.prototype.render = y, a = [], u = 'function' == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, D.__r = 0, l = 0, t.Component = m, t.Fragment = y, t.cloneElement = function (e, t, r) {
        var o,
          i,
          a,
          u = p({}, e.props);
        for (a in t) 'key' == a ? o = t[a] : 'ref' == a ? i = t[a] : u[a] = t[a];
        return arguments.length > 2 && (u.children = arguments.length > 3 ? n.call(arguments, 2) : r), g(e.type, u, o || e.key, i || e.ref, null);
      }, t.createContext = function (e, t) {
        var n = {
          __c: t = '__cC' + l++,
          __: e,
          Consumer: function (e, t) {
            return e.children(t);
          },
          Provider: function (e) {
            var n,
              r;
            return this.getChildContext || (n = [], (r = {})[t] = this, this.getChildContext = function () {
              return r;
            }, this.shouldComponentUpdate = function (e) {
              this.props.value !== e.value && n.some(E);
            }, this.sub = function (e) {
              n.push(e);
              var t = e.componentWillUnmount;
              e.componentWillUnmount = function () {
                n.splice(n.indexOf(e), 1), t && t.call(e);
              };
            }), e.children;
          }
        };
        return n.Provider.__ = n.Consumer.contextType = n;
      }, t.createElement = v, t.createRef = function () {
        return { current: null };
      }, t.h = v, t.hydrate = function e(t, n) {
        I(t, n, e);
      }, t.isValidElement = i, t.options = r, t.render = I, t.toChildArray = function e(t, n) {
        return n = n || [], null == t || 'boolean' == typeof t || (Array.isArray(t) ? t.some((function (t) {
          e(t, n);
        })) : n.push(t)), n;
      };
    })),
    Wb = function (e, t) {
      return void 0 === t && (t = document), 'string' == typeof e ? t.querySelector(e) : (null == (n = e) ? void 0 : n.nodeType) === Node.ELEMENT_NODE ? e : null;
      var n;
    },
    Gb = class {
      constructor(e, t) {
        void 0 === t && (t = {}), this.uppy = e, this.opts = t;
      }

      getPluginState() {
        const { plugins: e } = this.uppy.getState();
        return e[this.id] || {};
      }

      setPluginState(e) {
        const { plugins: t } = this.uppy.getState();
        this.uppy.setState({
          plugins: {
            ...t,
            [this.id]: { ...t[this.id], ...e }
          }
        });
      }

      setOptions(e) {
        this.opts = { ...this.opts, ...e }, this.setPluginState(), this.i18nInit();
      }

      i18nInit() {
        const e = new Bm([this.defaultLocale, this.uppy.locale, this.opts.locale]);
        this.i18n = e.translate.bind(e), this.i18nArray = e.translateArray.bind(e), this.setPluginState();
      }

      addTarget() {
        throw new Error('Extend the addTarget method to add your plugin to another plugin\'s target');
      }

      install() {
      }

      uninstall() {
      }

      render() {
        throw new Error('Extend the render method to add your plugin to a DOM element');
      }

      update() {
      }

      afterUpdate() {
      }
    };

  function qb(e, t) {
    if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError('attempted to use private field on non-instance');
    return e;
  }

  var Kb = 0;

  function Yb(e) {
    return '__private_' + Kb++ + '_' + e;
  }

  const { render: Xb } = Ub;
  var Zb = Yb('updateUI');

  class Jb extends Gb {
    constructor() {
      super(...arguments), Object.defineProperty(this, Zb, {
        writable: !0,
        value: void 0
      });
    }

    mount(e, t) {
      const n = t.id,
        r = Wb(e);
      if (r) {
        this.isTargetDOMEl = !0;
        const t = document.createDocumentFragment();
        return qb(this, Zb)[Zb] = function (e) {
          let t = null,
            n = null;
          return function () {
            for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i];
            return n = o, t || (t = Promise.resolve()
              .then((() => (t = null, e(...n))))), t;
          };
        }((e => {
          this.uppy.getPlugin(this.id) && (Xb(this.render(e), t), this.afterUpdate());
        })), this.uppy.log(`Installing ${n} to a DOM element '${e}'`), this.opts.replaceTargetContent && (r.innerHTML = ''), Xb(this.render(this.uppy.getState()), t), this.el = t.firstElementChild, r.appendChild(t), this.onMount(), this.el;
      }
      let o;
      if ('object' == typeof e && e instanceof Jb) {
        o = e;
      } else if ('function' == typeof e) {
        const t = e;
        this.uppy.iteratePlugins((e => {
          if (e instanceof t) return o = e, !1;
        }));
      }
      if (o) return this.uppy.log(`Installing ${n} to ${o.id}`), this.parent = o, this.el = o.addTarget(t), this.onMount(), this.el;
      this.uppy.log(`Not installing ${n}`);
      let i = `Invalid target option given to ${n}.`;
      throw i += 'function' == typeof e ? ' The given target is not a Plugin class. Please check that you\'re not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.' : 'If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.', new Error(i);
    }

    update(e) {
      var t,
        n;
      null != this.el && (null == (t = (n = qb(this, Zb))[Zb]) || t.call(n, e));
    }

    unmount() {
      var e;
      this.isTargetDOMEl && (null == (e = this.el) || e.remove());
      this.onUnmount();
    }

    onMount() {
    }

    onUnmount() {
    }
  }

  var Qb = Jb;
  const { debugLogger: ew } = Xm;
  var tw = Vb,
    nw = Vb,
    rw = Qb,
    ow = Gb,
    iw = ew;
  tw.Uppy = nw, tw.UIPlugin = rw, tw.BasePlugin = ow, tw.debugLogger = iw;

  class aw extends Error {
    constructor(e, t) {
      void 0 === t && (t = null), super('This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.'), this.cause = e, this.isNetworkError = !0, this.request = t;
    }
  }

  var uw = aw,
    sw = function () {
      return fetch(...arguments)
        .catch((e => {
          throw'AbortError' === e.name ? e : new uw(e);
        }));
    };

  class lw extends Error {
    constructor() {
      super('Authorization required'), this.name = 'AuthError', this.isAuthError = !0;
    }
  }

  var cw,
    fw,
    dw,
    pw,
    hw,
    vw = lw;

  function gw(e, t) {
    if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError('attempted to use private field on non-instance');
    return e;
  }

  var yw = 0;

  function mw(e) {
    return '__private_' + yw++ + '_' + e;
  }

  async function bw(e) {
    if (401 === e.status) throw new vw;
    const t = e.json();
    if (e.status < 200 || e.status > 300) {
      let n = `Failed request with status: ${e.status}. ${e.statusText}`;
      try {
        const e = await t;
        n = e.message ? `${n} message: ${e.message}` : n, n = e.requestId ? `${n} request-Id: ${e.requestId}` : n;
      } finally {
        throw new Error(n);
      }
    }
    return t;
  }

  var ww = (fw = mw('getPostResponseFunc'), dw = mw('getUrl'), pw = mw('errorHandler'), hw = cw = class e {
    constructor(e, t) {
      Object.defineProperty(this, pw, { value: Dw }), Object.defineProperty(this, dw, { value: Ew }), Object.defineProperty(this, fw, {
        writable: !0,
        value: e => t => e ? t : this.onReceiveResponse(t)
      }), this.uppy = e, this.opts = t, this.onReceiveResponse = this.onReceiveResponse.bind(this), this.allowedHeaders = ['accept', 'content-type', 'uppy-auth-token'], this.preflightDone = !1;
    }

    get hostname() {
      const { companion: e } = this.uppy.getState(),
        t = this.opts.companionUrl;
      return (e && e[t] ? e[t] : t).replace(/\/$/, '');
    }

    headers() {
      const t = this.opts.companionHeaders || {};
      return Promise.resolve({ ...e.defaultHeaders, ...t });
    }

    onReceiveResponse(e) {
      const t = this.uppy.getState().companion || {},
        n = this.opts.companionUrl, { headers: r } = e;
      return r.has('i-am') && r.get('i-am') !== t[n] && this.uppy.setState({
        companion: {
          ...t,
          [n]: r.get('i-am')
        }
      }), e;
    }

    preflight(e) {
      return this.preflightDone ? Promise.resolve(this.allowedHeaders.slice()) : fetch(gw(this, dw)[dw](e), { method: 'OPTIONS' })
        .then((e => (e.headers.has('access-control-allow-headers') && (this.allowedHeaders = e.headers.get('access-control-allow-headers')
          .split(',')
          .map((e => e.trim()
            .toLowerCase()))), this.preflightDone = !0, this.allowedHeaders.slice())))
        .catch((e => (this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`, 'warning'), this.preflightDone = !0, this.allowedHeaders.slice())));
    }

    preflightAndHeaders(e) {
      return Promise.all([this.preflight(e), this.headers()])
        .then((e => {
          let [t, n] = e;
          return Object.keys(n)
            .forEach((e => {
              t.includes(e.toLowerCase()) || (this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`), delete n[e]);
            })), n;
        }));
    }

    get(e, t) {
      return this.preflightAndHeaders(e)
        .then((t => sw(gw(this, dw)[dw](e), {
          method: 'get',
          headers: t,
          credentials: this.opts.companionCookiesRule || 'same-origin'
        })))
        .then(gw(this, fw)[fw](t))
        .then(bw)
        .catch(gw(this, pw)[pw]('get', e));
    }

    post(e, t, n) {
      const r = 'post';
      return this.preflightAndHeaders(e)
        .then((n => sw(gw(this, dw)[dw](e), {
          method: r,
          headers: n,
          credentials: this.opts.companionCookiesRule || 'same-origin',
          body: JSON.stringify(t)
        })))
        .then(gw(this, fw)[fw](n))
        .then(bw)
        .catch(gw(this, pw)[pw](r, e));
    }

    delete(e, t, n) {
      const r = 'delete';
      return this.preflightAndHeaders(e)
        .then((n => sw(`${this.hostname}/${e}`, {
          method: r,
          headers: n,
          credentials: this.opts.companionCookiesRule || 'same-origin',
          body: t ? JSON.stringify(t) : null
        })))
        .then(gw(this, fw)[fw](n))
        .then(bw)
        .catch(gw(this, pw)[pw](r, e));
    }
  }, cw.VERSION = '2.0.4', cw.defaultHeaders = {
    Accept: 'application/json',
    'Content-Type': 'application/json',
    'Uppy-Versions': `@uppy/companion-client=${cw.VERSION}`
  }, hw);

  function Ew(e) {
    return /^(https?:|)\/\//.test(e) ? e : `${this.hostname}/${e}`;
  }

  function Dw(e, t) {
    return n => {
      var r;
      if (null == (r = n) || !r.isAuthError) {
        const r = new Error(`Could not ${e} ${gw(this, dw)[dw](t)}`);
        r.cause = n, n = r;
      }
      return Promise.reject(n);
    };
  }

  var xw = {
    setItem: (e, t) => new Promise((n => {
      localStorage.setItem(e, t), n();
    })),
    getItem: e => Promise.resolve(localStorage.getItem(e)),
    removeItem: e => new Promise((t => {
      localStorage.removeItem(e), t();
    }))
  };
  var Sw,
    Cw,
    Aw,
    Ow,
    kw;
  let Tw,
    Bw;

  function Fw(e, t) {
    if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError('attempted to use private field on non-instance');
    return e;
  }

  var _w = 0;

  function Pw(e) {
    return '__private_' + _w++ + '_' + e;
  }

  var jw = (Sw = Pw('queued'), Cw = Pw('emitter'), Aw = Pw('isOpen'), Ow = Pw('socket'), kw = Pw('handleMessage'), Tw = Symbol.for('uppy test: getSocket'), Bw = Symbol.for('uppy test: getQueued'), class {
      constructor(e) {
        Object.defineProperty(this, Sw, {
          writable: !0,
          value: []
        }), Object.defineProperty(this, Cw, {
          writable: !0,
          value: _m()
        }), Object.defineProperty(this, Aw, {
          writable: !0,
          value: !1
        }), Object.defineProperty(this, Ow, {
          writable: !0,
          value: void 0
        }), Object.defineProperty(this, kw, {
          writable: !0,
          value: e => {
            try {
              const t = JSON.parse(e.data);
              this.emit(t.action, t.payload);
            } catch (e) {
              console.log(e);
            }
          }
        }), this.opts = e, e && !1 === e.autoOpen || this.open();
      }

      get isOpen() {
        return Fw(this, Aw)[Aw];
      }

      [Tw]() {
        return Fw(this, Ow)[Ow];
      }

      [Bw]() {
        return Fw(this, Sw)[Sw];
      }

      open() {
        Fw(this, Ow)[Ow] = new WebSocket(this.opts.target), Fw(this, Ow)[Ow].onopen = () => {
          for (Fw(this, Aw)[Aw] = !0; Fw(this, Sw)[Sw].length > 0 && Fw(this, Aw)[Aw];) {
            const e = Fw(this, Sw)[Sw].shift();
            this.send(e.action, e.payload);
          }
        }, Fw(this, Ow)[Ow].onclose = () => {
          Fw(this, Aw)[Aw] = !1;
        }, Fw(this, Ow)[Ow].onmessage = Fw(this, kw)[kw];
      }

      close() {
        var e;
        null == (e = Fw(this, Ow)[Ow]) || e.close();
      }

      send(e, t) {
        Fw(this, Aw)[Aw] ? Fw(this, Ow)[Ow].send(JSON.stringify({
          action: e,
          payload: t
        })) : Fw(this, Sw)[Sw].push({
          action: e,
          payload: t
        });
      }

      on(e, t) {
        Fw(this, Cw)[Cw].on(e, t);
      }

      emit(e, t) {
        Fw(this, Cw)[Cw].emit(e, t);
      }

      once(e, t) {
        Fw(this, Cw)[Cw].once(e, t);
      }
    }),
    Nw = {
      RequestClient: ww,
      Provider: class extends ww {
        constructor(e, t) {
          super(e, t), this.provider = t.provider, this.id = this.provider, this.name = this.opts.name || (e => e.split('-')
            .map((e => e.charAt(0)
              .toUpperCase() + e.slice(1)))
            .join(' '))(this.id), this.pluginId = this.opts.pluginId, this.tokenKey = `companion-${this.pluginId}-auth-token`, this.companionKeysParams = this.opts.companionKeysParams, this.preAuthToken = null;
        }

        headers() {
          return Promise.all([super.headers(), this.getAuthToken()])
            .then((e => {
              let [t, n] = e;
              const r = {};
              return n && (r['uppy-auth-token'] = n), this.companionKeysParams && (r['uppy-credentials-params'] = btoa(JSON.stringify({ params: this.companionKeysParams }))), { ...t, ...r };
            }));
        }

        onReceiveResponse(e) {
          e = super.onReceiveResponse(e);
          const t = this.uppy.getPlugin(this.pluginId),
            n = t.getPluginState().authenticated ? 401 !== e.status : e.status < 400;
          return t.setPluginState({ authenticated: n }), e;
        }

        setAuthToken(e) {
          return this.uppy.getPlugin(this.pluginId)
            .storage
            .setItem(this.tokenKey, e);
        }

        getAuthToken() {
          return this.uppy.getPlugin(this.pluginId)
            .storage
            .getItem(this.tokenKey);
        }

        authUrl(e) {
          return void 0 === e && (e = {}), this.preAuthToken && (e.uppyPreAuthToken = this.preAuthToken), `${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`;
        }

        fileUrl(e) {
          return `${this.hostname}/${this.id}/get/${e}`;
        }

        fetchPreAuthToken() {
          return this.companionKeysParams ? this.post(`${this.id}/preauth/`, { params: this.companionKeysParams })
            .then((e => {
              this.preAuthToken = e.token;
            }))
            .catch((e => {
              this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`, 'warning');
            })) : Promise.resolve();
        }

        list(e) {
          return this.get(`${this.id}/list/${e || ''}`);
        }

        logout() {
          return this.get(`${this.id}/logout`)
            .then((e => Promise.all([e, this.uppy.getPlugin(this.pluginId)
              .storage
              .removeItem(this.tokenKey)])))
            .then((e => {
              let [t] = e;
              return t;
            }));
        }

        static initPlugin(e, t, n) {
          if (e.type = 'acquirer', e.files = [], n && (e.opts = { ...n, ...t }), t.serverUrl || t.serverPattern) throw new Error('`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`');
          if (t.companionAllowedHosts) {
            const n = t.companionAllowedHosts;
            if (!('string' == typeof n || Array.isArray(n) || n instanceof RegExp)) throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);
            e.opts.companionAllowedHosts = n;
          } else {
            /^(?!https?:\/\/).*$/i.test(t.companionUrl) ? e.opts.companionAllowedHosts = `https://${t.companionUrl.replace(/^\/\//, '')}` : e.opts.companionAllowedHosts = new URL(t.companionUrl).origin;
          }
          e.storage = e.opts.storage || xw;
        }
      },
      SearchProvider: class extends ww {
        constructor(e, t) {
          super(e, t), this.provider = t.provider, this.id = this.provider, this.name = this.opts.name || (e => e.split('-')
            .map((e => e.charAt(0)
              .toUpperCase() + e.slice(1)))
            .join(' '))(this.id), this.pluginId = this.opts.pluginId;
        }

        fileUrl(e) {
          return `${this.hostname}/search/${this.id}/get/${e}`;
        }

        search(e, t) {
          return t = t ? `&${t}` : '', this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`);
        }
      },
      Socket: jw
    };
  var Iw,
    Rw,
    Mw = zg((function (e, t, n) {
      const {
        progress: r,
        bytesUploaded: o,
        bytesTotal: i
      } = t;
      r && (e.uppy.log(`Upload progress: ${r}`), e.uppy.emit('upload-progress', n, {
        uploader: e,
        bytesUploaded: o,
        bytesTotal: i
      }));
    }), 300, {
      leading: !0,
      trailing: !0
    });

  function Lw(e, t) {
    if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError('attempted to use private field on non-instance');
    return e;
  }

  var zw = 0;

  function $w(e) {
    return '__private_' + zw++ + '_' + e;
  }

  var Hw = (Iw = $w('emitter'), Rw = $w('events'), class {
    constructor(e) {
      Object.defineProperty(this, Iw, {
        writable: !0,
        value: void 0
      }), Object.defineProperty(this, Rw, {
        writable: !0,
        value: []
      }), Lw(this, Iw)[Iw] = e;
    }

    on(e, t) {
      return Lw(this, Rw)[Rw].push([e, t]), Lw(this, Iw)[Iw].on(e, t);
    }

    remove() {
      for (const [e, t] of Lw(this, Rw)[Rw].splice(0)) Lw(this, Iw)[Iw].off(e, t);
    }
  });

  function Vw(e, t) {
    if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError('attempted to use private field on non-instance');
    return e;
  }

  var Uw = 0;

  function Ww(e) {
    return '__private_' + Uw++ + '_' + e;
  }

  var Gw = Ww('aliveTimer'),
    qw = Ww('isDone'),
    Kw = Ww('onTimedOut'),
    Yw = Ww('timeout');
  var Xw = class {
    constructor(e, t) {
      Object.defineProperty(this, Gw, {
        writable: !0,
        value: void 0
      }), Object.defineProperty(this, qw, {
        writable: !0,
        value: !1
      }), Object.defineProperty(this, Kw, {
        writable: !0,
        value: void 0
      }), Object.defineProperty(this, Yw, {
        writable: !0,
        value: void 0
      }), Vw(this, Yw)[Yw] = e, Vw(this, Kw)[Kw] = t;
    }

    progress() {
      Vw(this, qw)[qw] || Vw(this, Yw)[Yw] > 0 && (clearTimeout(Vw(this, Gw)[Gw]), Vw(this, Gw)[Gw] = setTimeout(Vw(this, Kw)[Kw], Vw(this, Yw)[Yw]));
    }

    done() {
      Vw(this, qw)[qw] || (clearTimeout(Vw(this, Gw)[Gw]), Vw(this, Gw)[Gw] = null, Vw(this, qw)[qw] = !0);
    }
  };

  function Zw(e, t) {
    if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError('attempted to use private field on non-instance');
    return e;
  }

  var Jw = 0;

  function Qw(e) {
    return '__private_' + Jw++ + '_' + e;
  }

  function eE() {
    return new Error('Cancelled');
  }

  var tE = Qw('activeRequests'),
    nE = Qw('queuedHandlers'),
    rE = Qw('call'),
    oE = Qw('queueNext'),
    iE = Qw('next'),
    aE = Qw('queue'),
    uE = Qw('dequeue');

  function sE(e) {
    Zw(this, tE)[tE] += 1;
    let t,
      n = !1;
    try {
      t = e();
    } catch (e) {
      throw Zw(this, tE)[tE] -= 1, e;
    }
    return {
      abort: () => {
        n || (n = !0, Zw(this, tE)[tE] -= 1, t(), Zw(this, oE)[oE]());
      },
      done: () => {
        n || (n = !0, Zw(this, tE)[tE] -= 1, Zw(this, oE)[oE]());
      }
    };
  }

  function lE() {
    queueMicrotask((() => Zw(this, iE)[iE]()));
  }

  function cE() {
    if (Zw(this, tE)[tE] >= this.limit) return;
    if (0 === Zw(this, nE)[nE].length) return;
    const e = Zw(this, nE)[nE].shift(),
      t = Zw(this, rE)[rE](e.fn);
    e.abort = t.abort, e.done = t.done;
  }

  function fE(e, t) {
    void 0 === t && (t = {});
    const n = {
        fn: e,
        priority: t.priority || 0,
        abort: () => {
          Zw(this, uE)[uE](n);
        },
        done: () => {
          throw new Error('Cannot mark a queued request as done: this indicates a bug');
        }
      },
      r = Zw(this, nE)[nE].findIndex((e => n.priority > e.priority));
    return -1 === r ? Zw(this, nE)[nE].push(n) : Zw(this, nE)[nE].splice(r, 0, n), n;
  }

  function dE(e) {
    const t = Zw(this, nE)[nE].indexOf(e);
    -1 !== t && Zw(this, nE)[nE].splice(t, 1);
  }

  var pE = {
    RateLimitedQueue: class {
      constructor(e) {
        Object.defineProperty(this, uE, { value: dE }), Object.defineProperty(this, aE, { value: fE }), Object.defineProperty(this, iE, { value: cE }), Object.defineProperty(this, oE, { value: lE }), Object.defineProperty(this, rE, { value: sE }), Object.defineProperty(this, tE, {
          writable: !0,
          value: 0
        }), Object.defineProperty(this, nE, {
          writable: !0,
          value: []
        }), this.limit = 'number' != typeof e || 0 === e ? 1 / 0 : e;
      }

      run(e, t) {
        return Zw(this, tE)[tE] < this.limit ? Zw(this, rE)[rE](e) : Zw(this, aE)[aE](e, t);
      }

      wrapPromiseFunction(e, t) {
        var n = this;
        return function () {
          for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i];
          let a;
          const u = new Promise(((r, i) => {
            a = n.run((() => {
              let t,
                n;
              try {
                n = Promise.resolve(e(...o));
              } catch (e) {
                n = Promise.reject(e);
              }
              return n.then((e => {
                t ? i(t) : (a.done(), r(e));
              }), (e => {
                t ? i(t) : (a.done(), i(e));
              })), () => {
                t = eE();
              };
            }), t);
          }));
          return u.abort = () => {
            a.abort();
          }, u;
        };
      }
    },
    internalRateLimitedQueue: Symbol('__queue')
  };
  var hE,
    vE,
    gE = function (e) {
      return !!e && (0 !== e.readyState && 4 !== e.readyState || 0 === e.status);
    },
    yE = { strings: { timedOut: 'Upload stalled for %{seconds} seconds, aborting.' } };
  const { nanoid: mE } = Jm, {
    Provider: bE,
    RequestClient: wE,
    Socket: EE
  } = Nw, {
    RateLimitedQueue: DE,
    internalRateLimitedQueue: xE
  } = pE;

  function SE(e, t) {
    let n = t;
    return n || (n = new Error('Upload error')), 'string' == typeof n && (n = new Error(n)), n instanceof Error || (n = Object.assign(new Error('Upload error'), { data: n })), gE(e) ? (n = new uw(n, e), n) : (n.request = e, n);
  }

  function CE(e) {
    return e.data.slice(0, e.data.size, e.meta.type);
  }

  var AE = (vE = hE = class extends Gb {
      constructor(e, t) {
        super(e, t), this.type = 'uploader', this.id = this.opts.id || 'XHRUpload', this.title = 'XHRUpload', this.defaultLocale = yE;
        const n = {
          formData: !0,
          fieldName: t.bundle ? 'files[]' : 'file',
          method: 'post',
          metaFields: null,
          responseUrlFieldName: 'url',
          bundle: !1,
          headers: {},
          timeout: 3e4,
          limit: 5,
          withCredentials: !1,
          responseType: '',
          getResponseData(t) {
            let n = {};
            try {
              n = JSON.parse(t);
            } catch (t) {
              e.log(t);
            }
            return n;
          },
          getResponseError(e, t) {
            let n = new Error('Upload error');
            return gE(t) && (n = new uw(n, t)), n;
          },
          validateStatus: e => e >= 200 && e < 300
        };
        if (this.opts = { ...n, ...t }, this.i18nInit(), this.handleUpload = this.handleUpload.bind(this), xE in this.opts ? this.requests = this.opts[xE] : this.requests = new DE(this.opts.limit), this.opts.bundle && !this.opts.formData) throw new Error('`opts.formData` must be true when `opts.bundle` is enabled.');
        this.uploaderEvents = Object.create(null);
      }

      getOptions(e) {
        const t = this.uppy.getState().xhrUpload, { headers: n } = this.opts,
          r = {
            ...this.opts, ...t || {}, ...e.xhrUpload || {},
            headers: {}
          };
        return 'function' == typeof n ? r.headers = n(e) : Object.assign(r.headers, this.opts.headers), t && Object.assign(r.headers, t.headers), e.xhrUpload && Object.assign(r.headers, e.xhrUpload.headers), r;
      }

      addMetadata(e, t, n) {
        (Array.isArray(n.metaFields) ? n.metaFields : Object.keys(t)).forEach((n => {
          e.append(n, t[n]);
        }));
      }

      createFormDataUpload(e, t) {
        const n = new FormData;
        this.addMetadata(n, e.meta, t);
        const r = CE(e);
        return e.name ? n.append(t.fieldName, r, e.meta.name) : n.append(t.fieldName, r), n;
      }

      createBundledUpload(e, t) {
        const n = new FormData, { meta: r } = this.uppy.getState();
        return this.addMetadata(n, r, t), e.forEach((e => {
          const t = this.getOptions(e),
            r = CE(e);
          e.name ? n.append(t.fieldName, r, e.name) : n.append(t.fieldName, r);
        })), n;
      }

      upload(e, t, n) {
        const r = this.getOptions(e);
        return this.uppy.log(`uploading ${t} of ${n}`), new Promise(((t, n) => {
          this.uppy.emit('upload-started', e);
          const o = r.formData ? this.createFormDataUpload(e, r) : e.data,
            i = new XMLHttpRequest;
          this.uploaderEvents[e.id] = new Hw(this.uppy);
          const a = new Xw(r.timeout, (() => {
              i.abort(), s.done();
              const t = new Error(this.i18n('timedOut', { seconds: Math.ceil(r.timeout / 1e3) }));
              this.uppy.emit('upload-error', e, t), n(t);
            })),
            u = mE();
          i.upload.addEventListener('loadstart', (() => {
            this.uppy.log(`[XHRUpload] ${u} started`);
          })), i.upload.addEventListener('progress', (t => {
            this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`), a.progress(), t.lengthComputable && this.uppy.emit('upload-progress', e, {
              uploader: this,
              bytesUploaded: t.loaded,
              bytesTotal: t.total
            });
          })), i.addEventListener('load', (o => {
            if (this.uppy.log(`[XHRUpload] ${u} finished`), a.done(), s.done(), this.uploaderEvents[e.id] && (this.uploaderEvents[e.id].remove(), this.uploaderEvents[e.id] = null), r.validateStatus(o.target.status, i.responseText, i)) {
              const n = r.getResponseData(i.responseText, i),
                a = n[r.responseUrlFieldName],
                u = {
                  status: o.target.status,
                  body: n,
                  uploadURL: a
                };
              return this.uppy.emit('upload-success', e, u), a && this.uppy.log(`Download ${e.name} from ${a}`), t(e);
            }
            const l = r.getResponseData(i.responseText, i),
              c = SE(i, r.getResponseError(i.responseText, i)),
              f = {
                status: o.target.status,
                body: l
              };
            return this.uppy.emit('upload-error', e, c, f), n(c);
          })), i.addEventListener('error', (() => {
            this.uppy.log(`[XHRUpload] ${u} errored`), a.done(), s.done(), this.uploaderEvents[e.id] && (this.uploaderEvents[e.id].remove(), this.uploaderEvents[e.id] = null);
            const t = SE(i, r.getResponseError(i.responseText, i));
            return this.uppy.emit('upload-error', e, t), n(t);
          })), i.open(r.method.toUpperCase(), r.endpoint, !0), i.withCredentials = r.withCredentials, '' !== r.responseType && (i.responseType = r.responseType);
          const s = this.requests.run((() => {
            this.uppy.emit('upload-started', e);
            const t = this.getOptions(e);
            return Object.keys(t.headers)
              .forEach((e => {
                i.setRequestHeader(e, t.headers[e]);
              })), i.send(o), () => {
              a.done(), i.abort();
            };
          }));
          this.onFileRemove(e.id, (() => {
            s.abort(), n(new Error('File removed'));
          })), this.onCancelAll(e.id, (() => {
            s.abort(), n(new Error('Upload cancelled'));
          }));
        }));
      }

      uploadRemote(e) {
        const t = this.getOptions(e);
        return new Promise(((n, r) => {
          this.uppy.emit('upload-started', e);
          const o = {};
          (Array.isArray(t.metaFields) ? t.metaFields : Object.keys(e.meta)).forEach((t => {
            o[t] = e.meta[t];
          }));
          new (e.remote.providerOptions.provider ? bE : wE)(this.uppy, e.remote.providerOptions).post(e.remote.url, {
            ...e.remote.body,
            endpoint: t.endpoint,
            size: e.data.size,
            fieldname: t.fieldName,
            metadata: o,
            httpMethod: t.method,
            useFormData: t.formData,
            headers: t.headers
          })
            .then((o => {
              const { token: i } = o,
                a = function (e) {
                  const t = /^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];
                  return `${/^http:\/\//i.test(e) ? 'ws' : 'wss'}://${t}`;
                }(e.remote.companionUrl),
                u = new EE({
                  target: `${a}/api/${i}`,
                  autoOpen: !1
                });
              this.uploaderEvents[e.id] = new Hw(this.uppy), this.onFileRemove(e.id, (() => {
                u.send('cancel', {}), s.abort(), n(`upload ${e.id} was removed`);
              })), this.onCancelAll(e.id, (() => {
                u.send('cancel', {}), s.abort(), n(`upload ${e.id} was canceled`);
              })), this.onRetry(e.id, (() => {
                u.send('pause', {}), u.send('resume', {});
              })), this.onRetryAll(e.id, (() => {
                u.send('pause', {}), u.send('resume', {});
              })), u.on('progress', (t => Mw(this, t, e))), u.on('success', (r => {
                const o = t.getResponseData(r.response.responseText, r.response),
                  i = o[t.responseUrlFieldName],
                  a = {
                    status: r.response.status,
                    body: o,
                    uploadURL: i
                  };
                return this.uppy.emit('upload-success', e, a), s.done(), this.uploaderEvents[e.id] && (this.uploaderEvents[e.id].remove(), this.uploaderEvents[e.id] = null), n();
              })), u.on('error', (n => {
                const o = n.response,
                  i = o ? t.getResponseError(o.responseText, o) : Object.assign(new Error(n.error.message), { cause: n.error });
                this.uppy.emit('upload-error', e, i), s.done(), this.uploaderEvents[e.id] && (this.uploaderEvents[e.id].remove(), this.uploaderEvents[e.id] = null), r(i);
              }));
              const s = this.requests.run((() => (u.open(), e.isPaused && u.send('pause', {}), () => u.close())));
            }))
            .catch((t => {
              this.uppy.emit('upload-error', e, t), r(t);
            }));
        }));
      }

      uploadBundle(e) {
        return new Promise(((t, n) => {
          const { endpoint: r } = this.opts, { method: o } = this.opts,
            i = this.uppy.getState().xhrUpload,
            a = this.createBundledUpload(e, { ...this.opts, ...i || {} }),
            u = new XMLHttpRequest,
            s = new Xw(this.opts.timeout, (() => {
              u.abort();
              const e = new Error(this.i18n('timedOut', { seconds: Math.ceil(this.opts.timeout / 1e3) }));
              l(e), n(e);
            })),
            l = t => {
              e.forEach((e => {
                this.uppy.emit('upload-error', e, t);
              }));
            };
          u.upload.addEventListener('loadstart', (() => {
            this.uppy.log('[XHRUpload] started uploading bundle'), s.progress();
          })), u.upload.addEventListener('progress', (t => {
            s.progress(), t.lengthComputable && e.forEach((e => {
              this.uppy.emit('upload-progress', e, {
                uploader: this,
                bytesUploaded: t.loaded / t.total * e.size,
                bytesTotal: e.size
              });
            }));
          })), u.addEventListener('load', (r => {
            if (s.done(), this.opts.validateStatus(r.target.status, u.responseText, u)) {
              const n = this.opts.getResponseData(u.responseText, u),
                o = {
                  status: r.target.status,
                  body: n
                };
              return e.forEach((e => {
                this.uppy.emit('upload-success', e, o);
              })), t();
            }
            const o = this.opts.getResponseError(u.responseText, u) || new Error('Upload error');
            return o.request = u, l(o), n(o);
          })), u.addEventListener('error', (() => {
            s.done();
            const e = this.opts.getResponseError(u.responseText, u) || new Error('Upload error');
            return l(e), n(e);
          })), this.uppy.on('cancel-all', (() => {
            s.done(), u.abort();
          })), u.open(o.toUpperCase(), r, !0), u.withCredentials = this.opts.withCredentials, '' !== this.opts.responseType && (u.responseType = this.opts.responseType), Object.keys(this.opts.headers)
            .forEach((e => {
              u.setRequestHeader(e, this.opts.headers[e]);
            })), u.send(a), e.forEach((e => {
            this.uppy.emit('upload-started', e);
          }));
        }));
      }

      uploadFiles(e) {
        return function (e) {
          const t = [],
            n = [];

          function r(e) {
            t.push(e);
          }

          function o(e) {
            n.push(e);
          }

          return Promise.all(e.map((e => e.then(r, o))))
            .then((() => ({
              successful: t,
              failed: n
            })));
        }(e.map(((t, n) => {
          const r = parseInt(n, 10) + 1,
            o = e.length;
          return t.error ? Promise.reject(new Error(t.error)) : t.isRemote ? this.uploadRemote(t, r, o) : this.upload(t, r, o);
        })));
      }

      onFileRemove(e, t) {
        this.uploaderEvents[e].on('file-removed', (n => {
          e === n.id && t(n.id);
        }));
      }

      onRetry(e, t) {
        this.uploaderEvents[e].on('upload-retry', (n => {
          e === n && t();
        }));
      }

      onRetryAll(e, t) {
        this.uploaderEvents[e].on('retry-all', (() => {
          this.uppy.getFile(e) && t();
        }));
      }

      onCancelAll(e, t) {
        this.uploaderEvents[e].on('cancel-all', (() => {
          this.uppy.getFile(e) && t();
        }));
      }

      handleUpload(e) {
        if (0 === e.length) return this.uppy.log('[XHRUpload] No files to upload!'), Promise.resolve();
        0 !== this.opts.limit || this.opts[xE] || this.uppy.log('[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0', 'warning'), this.uppy.log('[XHRUpload] Uploading...');
        const t = e.map((e => this.uppy.getFile(e)));
        if (this.opts.bundle) {
          if (t.some((e => e.isRemote))) throw new Error('Can’t upload remote files when the `bundle: true` option is set');
          if ('function' == typeof this.opts.headers) throw new TypeError('`headers` may not be a function when the `bundle: true` option is set');
          return this.uploadBundle(t);
        }
        return this.uploadFiles(t)
          .then((() => null));
      }

      install() {
        if (this.opts.bundle) {
          const { capabilities: e } = this.uppy.getState();
          this.uppy.setState({
            capabilities: {
              ...e,
              individualCancellation: !1
            }
          });
        }
        this.uppy.addUploader(this.handleUpload);
      }

      uninstall() {
        if (this.opts.bundle) {
          const { capabilities: e } = this.uppy.getState();
          this.uppy.setState({
            capabilities: {
              ...e,
              individualCancellation: !0
            }
          });
        }
        this.uppy.removeUploader(this.handleUpload);
      }
    }, hE.VERSION = '2.0.6', vE),
    OE = Td,
    kE = Yv,
    TE = $g,
    BE = r((function (e, n) {
      !function (e, n, r, o, i, a, u, s, l, c, f, d, p, h) {
        function v(e) {
          return e && 'object' == typeof e && 'default' in e ? e : { default: e };
        }

        var g = v(n),
          y = v(r),
          m = v(o),
          b = v(i),
          w = v(u),
          E = v(l),
          D = v(f),
          x = v(d),
          S = v(p),
          C = v(h),
          A = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof window ? window : void 0 !== t ? t : 'undefined' != typeof self ? self : {};

        function O(e) {
          return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, 'default') ? e.default : e;
        }

        function k(e) {
          var t = { exports: {} };
          return e(t, t.exports), t.exports;
        }

        var T,
          B,
          F = function (e) {
            return e && e.Math == Math && e;
          },
          _ = F('object' == typeof globalThis && globalThis) || F('object' == typeof window && window) || F('object' == typeof self && self) || F('object' == typeof A && A) || function () {
            return this;
          }() || Function('return this')(),
          P = Object.defineProperty,
          j = function (e, t) {
            try {
              P(_, e, {
                value: t,
                configurable: !0,
                writable: !0
              });
            } catch (n) {
              _[e] = t;
            }
            return t;
          },
          N = '__core-js_shared__',
          I = _[N] || j(N, {}),
          R = k((function (e) {
            (e.exports = function (e, t) {
              return I[e] || (I[e] = void 0 !== t ? t : {});
            })('versions', [])
              .push({
                version: '3.19.3',
                mode: 'global',
                copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
              });
          })),
          M = Function.prototype,
          L = M.bind,
          z = M.call,
          $ = L && L.bind(z),
          H = L ? function (e) {
            return e && $(z, e);
          } : function (e) {
            return e && function () {
              return z.apply(e, arguments);
            };
          },
          V = _.TypeError,
          U = function (e) {
            if (null == e) throw V('Can\'t call method on ' + e);
            return e;
          },
          W = _.Object,
          G = function (e) {
            return W(U(e));
          },
          q = H({}.hasOwnProperty),
          K = Object.hasOwn || function (e, t) {
            return q(G(e), t);
          },
          Y = 0,
          X = Math.random(),
          Z = H(1..toString),
          J = function (e) {
            return 'Symbol(' + (void 0 === e ? '' : e) + ')_' + Z(++Y + X, 36);
          },
          Q = function (e) {
            return 'function' == typeof e;
          },
          ee = function (e) {
            return Q(e) ? e : void 0;
          },
          te = function (e, t) {
            return arguments.length < 2 ? ee(_[e]) : _[e] && _[e][t];
          },
          ne = te('navigator', 'userAgent') || '',
          re = _.process,
          oe = _.Deno,
          ie = re && re.versions || oe && oe.version,
          ae = ie && ie.v8;
        ae && (B = (T = ae.split('.'))[0] > 0 && T[0] < 4 ? 1 : +(T[0] + T[1])), !B && ne && (!(T = ne.match(/Edge\/(\d+)/)) || T[1] >= 74) && (T = ne.match(/Chrome\/(\d+)/)) && (B = +T[1]);
        var ue = B,
          se = function (e) {
            try {
              return !!e();
            } catch (e) {
              return !0;
            }
          },
          le = !!Object.getOwnPropertySymbols && !se((function () {
            var e = Symbol();
            return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && ue && ue < 41;
          })),
          ce = le && !Symbol.sham && 'symbol' == typeof Symbol.iterator,
          fe = R('wks'),
          de = _.Symbol,
          pe = de && de.for,
          he = ce ? de : de && de.withoutSetter || J,
          ve = function (e) {
            if (!K(fe, e) || !le && 'string' != typeof fe[e]) {
              var t = 'Symbol.' + e;
              le && K(de, e) ? fe[e] = de[e] : fe[e] = ce && pe ? pe(t) : he(t);
            }
            return fe[e];
          },
          ge = {};
        ge[ve('toStringTag')] = 'z';
        var ye = '[object z]' === String(ge),
          me = !se((function () {
            return 7 != Object.defineProperty({}, 1, {
              get: function () {
                return 7;
              }
            })[1];
          })),
          be = function (e) {
            return 'object' == typeof e ? null !== e : Q(e);
          },
          we = _.document,
          Ee = be(we) && be(we.createElement),
          De = function (e) {
            return Ee ? we.createElement(e) : {};
          },
          xe = !me && !se((function () {
            return 7 != Object.defineProperty(De('div'), 'a', {
              get: function () {
                return 7;
              }
            }).a;
          })),
          Se = _.String,
          Ce = _.TypeError,
          Ae = function (e) {
            if (be(e)) return e;
            throw Ce(Se(e) + ' is not an object');
          },
          Oe = Function.prototype.call,
          ke = Oe.bind ? Oe.bind(Oe) : function () {
            return Oe.apply(Oe, arguments);
          },
          Te = H({}.isPrototypeOf),
          Be = _.Object,
          Fe = ce ? function (e) {
            return 'symbol' == typeof e;
          } : function (e) {
            var t = te('Symbol');
            return Q(t) && Te(t.prototype, Be(e));
          },
          _e = _.String,
          Pe = function (e) {
            try {
              return _e(e);
            } catch (e) {
              return 'Object';
            }
          },
          je = _.TypeError,
          Ne = function (e) {
            if (Q(e)) return e;
            throw je(Pe(e) + ' is not a function');
          },
          Ie = function (e, t) {
            var n = e[t];
            return null == n ? void 0 : Ne(n);
          },
          Re = _.TypeError,
          Me = _.TypeError,
          Le = ve('toPrimitive'),
          ze = function (e, t) {
            if (!be(e) || Fe(e)) return e;
            var n,
              r = Ie(e, Le);
            if (r) {
              if (void 0 === t && (t = 'default'), n = ke(r, e, t), !be(n) || Fe(n)) return n;
              throw Me('Can\'t convert object to primitive value');
            }
            return void 0 === t && (t = 'number'), function (e, t) {
              var n,
                r;
              if ('string' === t && Q(n = e.toString) && !be(r = ke(n, e))) return r;
              if (Q(n = e.valueOf) && !be(r = ke(n, e))) return r;
              if ('string' !== t && Q(n = e.toString) && !be(r = ke(n, e))) return r;
              throw Re('Can\'t convert object to primitive value');
            }(e, t);
          },
          $e = function (e) {
            var t = ze(e, 'string');
            return Fe(t) ? t : t + '';
          },
          He = _.TypeError,
          Ve = Object.defineProperty,
          Ue = {
            f: me ? Ve : function (e, t, n) {
              if (Ae(e), t = $e(t), Ae(n), xe) {
                try {
                  return Ve(e, t, n);
                } catch (e) {
                }
              }
              if ('get' in n || 'set' in n) throw He('Accessors not supported');
              return 'value' in n && (e[t] = n.value), e;
            }
          },
          We = function (e, t) {
            return {
              enumerable: !(1 & e),
              configurable: !(2 & e),
              writable: !(4 & e),
              value: t
            };
          },
          Ge = me ? function (e, t, n) {
            return Ue.f(e, t, We(1, n));
          } : function (e, t, n) {
            return e[t] = n, e;
          },
          qe = H(Function.toString);
        Q(I.inspectSource) || (I.inspectSource = function (e) {
          return qe(e);
        });
        var Ke,
          Ye,
          Xe,
          Ze = I.inspectSource,
          Je = _.WeakMap,
          Qe = Q(Je) && /native code/.test(Ze(Je)),
          et = R('keys'),
          tt = function (e) {
            return et[e] || (et[e] = J(e));
          },
          nt = {},
          rt = 'Object already initialized',
          ot = _.TypeError,
          it = _.WeakMap;
        if (Qe || I.state) {
          var at = I.state || (I.state = new it),
            ut = H(at.get),
            st = H(at.has),
            lt = H(at.set);
          Ke = function (e, t) {
            if (st(at, e)) throw new ot(rt);
            return t.facade = e, lt(at, e, t), t;
          }, Ye = function (e) {
            return ut(at, e) || {};
          }, Xe = function (e) {
            return st(at, e);
          };
        } else {
          var ct = tt('state');
          nt[ct] = !0, Ke = function (e, t) {
            if (K(e, ct)) throw new ot(rt);
            return t.facade = e, Ge(e, ct, t), t;
          }, Ye = function (e) {
            return K(e, ct) ? e[ct] : {};
          }, Xe = function (e) {
            return K(e, ct);
          };
        }
        var ft = {
            set: Ke,
            get: Ye,
            has: Xe,
            enforce: function (e) {
              return Xe(e) ? Ye(e) : Ke(e, {});
            },
            getterFor: function (e) {
              return function (t) {
                var n;
                if (!be(t) || (n = Ye(t)).type !== e) throw ot('Incompatible receiver, ' + e + ' required');
                return n;
              };
            }
          },
          dt = Function.prototype,
          pt = me && Object.getOwnPropertyDescriptor,
          ht = K(dt, 'name'),
          vt = {
            EXISTS: ht,
            PROPER: ht && 'something' === function () {
            }.name,
            CONFIGURABLE: ht && (!me || me && pt(dt, 'name').configurable)
          },
          gt = k((function (e) {
            var t = vt.CONFIGURABLE,
              n = ft.get,
              r = ft.enforce,
              o = String(String)
                .split('String');
            (e.exports = function (e, n, i, a) {
              var u,
                s = !!a && !!a.unsafe,
                l = !!a && !!a.enumerable,
                c = !!a && !!a.noTargetGet,
                f = a && void 0 !== a.name ? a.name : n;
              Q(i) && ('Symbol(' === String(f)
                .slice(0, 7) && (f = '[' + String(f)
                .replace(/^Symbol\(([^)]*)\)/, '$1') + ']'), (!K(i, 'name') || t && i.name !== f) && Ge(i, 'name', f), (u = r(i)).source || (u.source = o.join('string' == typeof f ? f : ''))), e !== _ ? (s ? !c && e[n] && (l = !0) : delete e[n], l ? e[n] = i : Ge(e, n, i)) : l ? e[n] = i : j(n, i);
            })(Function.prototype, 'toString', (function () {
              return Q(this) && n(this).source || Ze(this);
            }));
          })),
          yt = H({}.toString),
          mt = H(''.slice),
          bt = function (e) {
            return mt(yt(e), 8, -1);
          },
          wt = ve('toStringTag'),
          Et = _.Object,
          Dt = 'Arguments' == bt(function () {
            return arguments;
          }()),
          xt = ye ? bt : function (e) {
            var t,
              n,
              r;
            return void 0 === e ? 'Undefined' : null === e ? 'Null' : 'string' == typeof (n = function (e, t) {
              try {
                return e[t];
              } catch (e) {
              }
            }(t = Et(e), wt)) ? n : Dt ? bt(t) : 'Object' == (r = bt(t)) && Q(t.callee) ? 'Arguments' : r;
          },
          St = ye ? {}.toString : function () {
            return '[object ' + xt(this) + ']';
          };
        ye || gt(Object.prototype, 'toString', St, { unsafe: !0 });
        var Ct = {
            CSSRuleList: 0,
            CSSStyleDeclaration: 0,
            CSSValueList: 0,
            ClientRectList: 0,
            DOMRectList: 0,
            DOMStringList: 0,
            DOMTokenList: 1,
            DataTransferItemList: 0,
            FileList: 0,
            HTMLAllCollection: 0,
            HTMLCollection: 0,
            HTMLFormElement: 0,
            HTMLSelectElement: 0,
            MediaList: 0,
            MimeTypeArray: 0,
            NamedNodeMap: 0,
            NodeList: 1,
            PaintRequestList: 0,
            Plugin: 0,
            PluginArray: 0,
            SVGLengthList: 0,
            SVGNumberList: 0,
            SVGPathSegList: 0,
            SVGPointList: 0,
            SVGStringList: 0,
            SVGTransformList: 0,
            SourceBufferList: 0,
            StyleSheetList: 0,
            TextTrackCueList: 0,
            TextTrackList: 0,
            TouchList: 0
          },
          At = De('span').classList,
          Ot = At && At.constructor && At.constructor.prototype,
          kt = Ot === Object.prototype ? void 0 : Ot,
          Tt = H(H.bind),
          Bt = function (e, t) {
            return Ne(e), void 0 === t ? e : Tt ? Tt(e, t) : function () {
              return e.apply(t, arguments);
            };
          },
          Ft = _.Object,
          _t = H(''.split),
          Pt = se((function () {
            return !Ft('z')
              .propertyIsEnumerable(0);
          })) ? function (e) {
            return 'String' == bt(e) ? _t(e, '') : Ft(e);
          } : Ft,
          jt = Math.ceil,
          Nt = Math.floor,
          It = function (e) {
            var t = +e;
            return t != t || 0 === t ? 0 : (t > 0 ? Nt : jt)(t);
          },
          Rt = Math.min,
          Mt = function (e) {
            return e > 0 ? Rt(It(e), 9007199254740991) : 0;
          },
          Lt = function (e) {
            return Mt(e.length);
          },
          zt = Array.isArray || function (e) {
            return 'Array' == bt(e);
          },
          $t = function () {
          },
          Ht = [],
          Vt = te('Reflect', 'construct'),
          Ut = /^\s*(?:class|function)\b/,
          Wt = H(Ut.exec),
          Gt = !Ut.exec($t),
          qt = function (e) {
            if (!Q(e)) return !1;
            try {
              return Vt($t, Ht, e), !0;
            } catch (e) {
              return !1;
            }
          },
          Kt = !Vt || se((function () {
            var e;
            return qt(qt.call) || !qt(Object) || !qt((function () {
              e = !0;
            })) || e;
          })) ? function (e) {
            if (!Q(e)) return !1;
            switch (xt(e)) {
              case'AsyncFunction':
              case'GeneratorFunction':
              case'AsyncGeneratorFunction':
                return !1;
            }
            return Gt || !!Wt(Ut, Ze(e));
          } : qt,
          Yt = ve('species'),
          Xt = _.Array,
          Zt = function (e, t) {
            return new (function (e) {
              var t;
              return zt(e) && (t = e.constructor, (Kt(t) && (t === Xt || zt(t.prototype)) || be(t) && null === (t = t[Yt])) && (t = void 0)), void 0 === t ? Xt : t;
            }(e))(0 === t ? 0 : t);
          },
          Jt = H([].push),
          Qt = function (e) {
            var t = 1 == e,
              n = 2 == e,
              r = 3 == e,
              o = 4 == e,
              i = 6 == e,
              a = 7 == e,
              u = 5 == e || i;
            return function (s, l, c, f) {
              for (var d, p, h = G(s), v = Pt(h), g = Bt(l, c), y = Lt(v), m = 0, b = f || Zt, w = t ? b(s, y) : n || a ? b(s, 0) : void 0; y > m; m++) {
                if ((u || m in v) && (p = g(d = v[m], m, h), e)) {
                  if (t) {
                    w[m] = p;
                  } else if (p) {
                    switch (e) {
                      case 3:
                        return !0;
                      case 5:
                        return d;
                      case 6:
                        return m;
                      case 2:
                        Jt(w, d);
                    }
                  } else {
                    switch (e) {
                      case 4:
                        return !1;
                      case 7:
                        Jt(w, d);
                    }
                  }
                }
              }
              return i ? -1 : r || o ? o : w;
            };
          },
          en = {
            forEach: Qt(0),
            map: Qt(1),
            filter: Qt(2),
            some: Qt(3),
            every: Qt(4),
            find: Qt(5),
            findIndex: Qt(6),
            filterReject: Qt(7)
          },
          tn = function (e, t) {
            var n = [][e];
            return !!n && se((function () {
              n.call(null, t || function () {
                throw 1;
              }, 1);
            }));
          },
          nn = en.forEach,
          rn = tn('forEach') ? [].forEach : function (e) {
            return nn(this, e, arguments.length > 1 ? arguments[1] : void 0);
          },
          on = function (e) {
            if (e && e.forEach !== rn) {
              try {
                Ge(e, 'forEach', rn);
              } catch (t) {
                e.forEach = rn;
              }
            }
          };
        for (var an in Ct) Ct[an] && on(_[an] && _[an].prototype);
        on(kt);
        var un = {}.propertyIsEnumerable,
          sn = Object.getOwnPropertyDescriptor,
          ln = sn && !un.call({ 1: 2 }, 1) ? function (e) {
            var t = sn(this, e);
            return !!t && t.enumerable;
          } : un,
          cn = { f: ln },
          fn = function (e) {
            return Pt(U(e));
          },
          dn = Object.getOwnPropertyDescriptor,
          pn = {
            f: me ? dn : function (e, t) {
              if (e = fn(e), t = $e(t), xe) {
                try {
                  return dn(e, t);
                } catch (e) {
                }
              }
              if (K(e, t)) return We(!ke(cn.f, e, t), e[t]);
            }
          },
          hn = Math.max,
          vn = Math.min,
          gn = function (e, t) {
            var n = It(e);
            return n < 0 ? hn(n + t, 0) : vn(n, t);
          },
          yn = function (e) {
            return function (t, n, r) {
              var o,
                i = fn(t),
                a = Lt(i),
                u = gn(r, a);
              if (e && n != n) {
                for (; a > u;) if ((o = i[u++]) != o) return !0;
              } else {
                for (; a > u; u++) if ((e || u in i) && i[u] === n) return e || u || 0;
              }
              return !e && -1;
            };
          },
          mn = {
            includes: yn(!0),
            indexOf: yn(!1)
          },
          bn = mn.indexOf,
          wn = H([].push),
          En = function (e, t) {
            var n,
              r = fn(e),
              o = 0,
              i = [];
            for (n in r) !K(nt, n) && K(r, n) && wn(i, n);
            for (; t.length > o;) K(r, n = t[o++]) && (~bn(i, n) || wn(i, n));
            return i;
          },
          Dn = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'],
          xn = Dn.concat('length', 'prototype'),
          Sn = {
            f: Object.getOwnPropertyNames || function (e) {
              return En(e, xn);
            }
          },
          Cn = { f: Object.getOwnPropertySymbols },
          An = H([].concat),
          On = te('Reflect', 'ownKeys') || function (e) {
            var t = Sn.f(Ae(e)),
              n = Cn.f;
            return n ? An(t, n(e)) : t;
          },
          kn = function (e, t) {
            for (var n = On(t), r = Ue.f, o = pn.f, i = 0; i < n.length; i++) {
              var a = n[i];
              K(e, a) || r(e, a, o(t, a));
            }
          },
          Tn = /#|\.prototype\./,
          Bn = function (e, t) {
            var n = _n[Fn(e)];
            return n == jn || n != Pn && (Q(t) ? se(t) : !!t);
          },
          Fn = Bn.normalize = function (e) {
            return String(e)
              .replace(Tn, '.')
              .toLowerCase();
          },
          _n = Bn.data = {},
          Pn = Bn.NATIVE = 'N',
          jn = Bn.POLYFILL = 'P',
          Nn = Bn,
          In = pn.f,
          Rn = function (e, t) {
            var n,
              r,
              o,
              i,
              a,
              u = e.target,
              s = e.global,
              l = e.stat;
            if (n = s ? _ : l ? _[u] || j(u, {}) : (_[u] || {}).prototype) {
              for (r in t) {
                if (i = t[r], o = e.noTargetGet ? (a = In(n, r)) && a.value : n[r], !Nn(s ? r : u + (l ? '.' : '#') + r, e.forced) && void 0 !== o) {
                  if (typeof i == typeof o) continue;
                  kn(i, o);
                }
                (e.sham || o && o.sham) && Ge(i, 'sham', !0), gt(n, r, i, e);
              }
            }
          },
          Mn = ve('species'),
          Ln = function (e) {
            return ue >= 51 || !se((function () {
              var t = [];
              return (t.constructor = {})[Mn] = function () {
                return { foo: 1 };
              }, 1 !== t[e](Boolean).foo;
            }));
          },
          zn = en.map,
          $n = Ln('map');
        Rn({
          target: 'Array',
          proto: !0,
          forced: !$n
        }, {
          map: function (e) {
            return zn(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        });
        var Hn = function (e, t, n) {
            var r,
              o;
            Ae(e);
            try {
              if (!(r = Ie(e, 'return'))) {
                if ('throw' === t) throw n;
                return n;
              }
              r = ke(r, e);
            } catch (e) {
              o = !0, r = e;
            }
            if ('throw' === t) throw n;
            if (o) throw r;
            return Ae(r), n;
          },
          Vn = function (e, t, n, r) {
            try {
              return r ? t(Ae(n)[0], n[1]) : t(n);
            } catch (t) {
              Hn(e, 'throw', t);
            }
          },
          Un = {},
          Wn = ve('iterator'),
          Gn = Array.prototype,
          qn = function (e) {
            return void 0 !== e && (Un.Array === e || Gn[Wn] === e);
          },
          Kn = function (e, t, n) {
            var r = $e(t);
            r in e ? Ue.f(e, r, We(0, n)) : e[r] = n;
          },
          Yn = ve('iterator'),
          Xn = function (e) {
            if (null != e) return Ie(e, Yn) || Ie(e, '@@iterator') || Un[xt(e)];
          },
          Zn = _.TypeError,
          Jn = function (e, t) {
            var n = arguments.length < 2 ? Xn(e) : t;
            if (Ne(n)) return Ae(ke(n, e));
            throw Zn(Pe(e) + ' is not iterable');
          },
          Qn = _.Array,
          er = ve('iterator'),
          tr = !1;
        try {
          var nr = 0,
            rr = {
              next: function () {
                return { done: !!nr++ };
              },
              return: function () {
                tr = !0;
              }
            };
          rr[er] = function () {
            return this;
          }, Array.from(rr, (function () {
            throw 2;
          }));
        } catch (e) {
        }
        var or = function (e, t) {
            if (!t && !tr) return !1;
            var n = !1;
            try {
              var r = {};
              r[er] = function () {
                return {
                  next: function () {
                    return { done: n = !0 };
                  }
                };
              }, e(r);
            } catch (e) {
            }
            return n;
          },
          ir = !or((function (e) {
            Array.from(e);
          }));
        Rn({
          target: 'Array',
          stat: !0,
          forced: ir
        }, {
          from: function (e) {
            var t = G(e),
              n = Kt(this),
              r = arguments.length,
              o = r > 1 ? arguments[1] : void 0,
              i = void 0 !== o;
            i && (o = Bt(o, r > 2 ? arguments[2] : void 0));
            var a,
              u,
              s,
              l,
              c,
              f,
              d = Xn(t),
              p = 0;
            if (!d || this == Qn && qn(d)) for (a = Lt(t), u = n ? new this(a) : Qn(a); a > p; p++) f = i ? o(t[p], p) : t[p], Kn(u, p, f); else for (c = (l = Jn(t, d)).next, u = n ? new this : []; !(s = ke(c, l)).done; p++) f = i ? Vn(l, o, [s.value, p], !0) : s.value, Kn(u, p, f);
            return u.length = p, u;
          }
        });
        var ar,
          ur = _.String,
          sr = function (e) {
            if ('Symbol' === xt(e)) throw TypeError('Cannot convert a Symbol value to a string');
            return ur(e);
          },
          lr = H(''.charAt),
          cr = H(''.charCodeAt),
          fr = H(''.slice),
          dr = function (e) {
            return function (t, n) {
              var r,
                o,
                i = sr(U(t)),
                a = It(n),
                u = i.length;
              return a < 0 || a >= u ? e ? '' : void 0 : (r = cr(i, a)) < 55296 || r > 56319 || a + 1 === u || (o = cr(i, a + 1)) < 56320 || o > 57343 ? e ? lr(i, a) : r : e ? fr(i, a, a + 2) : o - 56320 + (r - 55296 << 10) + 65536;
            };
          },
          pr = {
            codeAt: dr(!1),
            charAt: dr(!0)
          },
          hr = Object.keys || function (e) {
            return En(e, Dn);
          },
          vr = me ? Object.defineProperties : function (e, t) {
            Ae(e);
            for (var n, r = fn(t), o = hr(t), i = o.length, a = 0; i > a;) Ue.f(e, n = o[a++], r[n]);
            return e;
          },
          gr = te('document', 'documentElement'),
          yr = tt('IE_PROTO'),
          mr = function () {
          },
          br = function (e) {
            return '<script>' + e + '<\/script>';
          },
          wr = function (e) {
            e.write(br('')), e.close();
            var t = e.parentWindow.Object;
            return e = null, t;
          },
          Er = function () {
            try {
              ar = new ActiveXObject('htmlfile');
            } catch (e) {
            }
            var e,
              t;
            Er = 'undefined' != typeof document ? document.domain && ar ? wr(ar) : ((t = De('iframe')).style.display = 'none', gr.appendChild(t), t.src = String('javascript:'), (e = t.contentWindow.document).open(), e.write(br('document.F=Object')), e.close(), e.F) : wr(ar);
            for (var n = Dn.length; n--;) delete Er.prototype[Dn[n]];
            return Er();
          };
        nt[yr] = !0;
        var Dr,
          xr,
          Sr,
          Cr = Object.create || function (e, t) {
            var n;
            return null !== e ? (mr.prototype = Ae(e), n = new mr, mr.prototype = null, n[yr] = e) : n = Er(), void 0 === t ? n : vr(n, t);
          },
          Ar = !se((function () {
            function e() {
            }

            return e.prototype.constructor = null, Object.getPrototypeOf(new e) !== e.prototype;
          })),
          Or = tt('IE_PROTO'),
          kr = _.Object,
          Tr = kr.prototype,
          Br = Ar ? kr.getPrototypeOf : function (e) {
            var t = G(e);
            if (K(t, Or)) return t[Or];
            var n = t.constructor;
            return Q(n) && t instanceof n ? n.prototype : t instanceof kr ? Tr : null;
          },
          Fr = ve('iterator'),
          _r = !1;
        [].keys && ('next' in (Sr = [].keys()) ? (xr = Br(Br(Sr))) !== Object.prototype && (Dr = xr) : _r = !0);
        var Pr = null == Dr || se((function () {
          var e = {};
          return Dr[Fr].call(e) !== e;
        }));
        Pr && (Dr = {}), Q(Dr[Fr]) || gt(Dr, Fr, (function () {
          return this;
        }));
        var jr = {
            IteratorPrototype: Dr,
            BUGGY_SAFARI_ITERATORS: _r
          },
          Nr = Ue.f,
          Ir = ve('toStringTag'),
          Rr = function (e, t, n) {
            e && !K(e = n ? e : e.prototype, Ir) && Nr(e, Ir, {
              configurable: !0,
              value: t
            });
          },
          Mr = jr.IteratorPrototype,
          Lr = function () {
            return this;
          },
          zr = _.String,
          $r = _.TypeError,
          Hr = Object.setPrototypeOf || ('__proto__' in {} ? function () {
            var e,
              t = !1,
              n = {};
            try {
              (e = H(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set))(n, []), t = n instanceof Array;
            } catch (e) {
            }
            return function (n, r) {
              return Ae(n), function (e) {
                if ('object' == typeof e || Q(e)) return e;
                throw $r('Can\'t set ' + zr(e) + ' as a prototype');
              }(r), t ? e(n, r) : n.__proto__ = r, n;
            };
          }() : void 0),
          Vr = vt.PROPER,
          Ur = vt.CONFIGURABLE,
          Wr = jr.IteratorPrototype,
          Gr = jr.BUGGY_SAFARI_ITERATORS,
          qr = ve('iterator'),
          Kr = 'keys',
          Yr = 'values',
          Xr = 'entries',
          Zr = function () {
            return this;
          },
          Jr = function (e, t, n, r, o, i, a) {
            !function (e, t, n, r) {
              var o = t + ' Iterator';
              e.prototype = Cr(Mr, { next: We(+!r, n) }), Rr(e, o, !1), Un[o] = Lr;
            }(n, t, r);
            var u,
              s,
              l,
              c = function (e) {
                if (e === o && v) return v;
                if (!Gr && e in p) return p[e];
                switch (e) {
                  case Kr:
                  case Yr:
                  case Xr:
                    return function () {
                      return new n(this, e);
                    };
                }
                return function () {
                  return new n(this);
                };
              },
              f = t + ' Iterator',
              d = !1,
              p = e.prototype,
              h = p[qr] || p['@@iterator'] || o && p[o],
              v = !Gr && h || c(o),
              g = 'Array' == t && p.entries || h;
            if (g && (u = Br(g.call(new e))) !== Object.prototype && u.next && (Br(u) !== Wr && (Hr ? Hr(u, Wr) : Q(u[qr]) || gt(u, qr, Zr)), Rr(u, f, !0)), Vr && o == Yr && h && h.name !== Yr && (Ur ? Ge(p, 'name', Yr) : (d = !0, v = function () {
              return ke(h, this);
            })), o) {
              if (s = {
                values: c(Yr),
                keys: i ? v : c(Kr),
                entries: c(Xr)
              }, a) {
                for (l in s) (Gr || d || !(l in p)) && gt(p, l, s[l]);
              } else {
                Rn({
                  target: t,
                  proto: !0,
                  forced: Gr || d
                }, s);
              }
            }
            return p[qr] !== v && gt(p, qr, v, { name: o }), Un[t] = v, s;
          },
          Qr = pr.charAt,
          eo = 'String Iterator',
          to = ft.set,
          no = ft.getterFor(eo);
        Jr(String, 'String', (function (e) {
          to(this, {
            type: eo,
            string: sr(e),
            index: 0
          });
        }), (function () {
          var e,
            t = no(this),
            n = t.string,
            r = t.index;
          return r >= n.length ? {
            value: void 0,
            done: !0
          } : (e = Qr(n, r), t.index += e.length, {
            value: e,
            done: !1
          });
        }));
        var ro = se((function () {
          hr(1);
        }));

        /*!
         * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
         *
         * Copyright (c) 2014-2017, Jon Schlinkert.
         * Released under the MIT License.
         */
        function oo(e) {
          return '[object Object]' === Object.prototype.toString.call(e);
        }

        Rn({
          target: 'Object',
          stat: !0,
          forced: ro
        }, {
          keys: function (e) {
            return hr(G(e));
          }
        });
        var io = function (e) {
            var t,
              n;
            return !1 !== oo(e) && (void 0 === (t = e.constructor) || !1 !== oo(n = t.prototype) && !1 !== n.hasOwnProperty('isPrototypeOf'));
          },
          ao = Object.defineProperty({ isPlainObject: io }, '__esModule', { value: !0 }),
          uo = function (e) {
            return ao.isPlainObject(e) && Array.isArray(e.redos) && Array.isArray(e.undos) && (0 === e.redos.length || g.default.Operation.isOperationList(e.redos[0])) && (0 === e.undos.length || g.default.Operation.isOperationList(e.undos[0]));
          },
          so = new WeakMap,
          lo = new WeakMap,
          co = {
            isHistoryEditor: function (e) {
              return uo(e.history) && g.default.Editor.isEditor(e);
            },
            isMerging: function (e) {
              return lo.get(e);
            },
            isSaving: function (e) {
              return so.get(e);
            },
            redo: function (e) {
              e.redo();
            },
            undo: function (e) {
              e.undo();
            },
            withoutMerging: function (e, t) {
              var n = co.isMerging(e);
              lo.set(e, !1), t(), lo.set(e, n);
            },
            withoutSaving: function (e, t) {
              var n = co.isSaving(e);
              so.set(e, !1), t(), so.set(e, n);
            }
          };

        function fo(e, t) {
          var n = 'undefined' != typeof Symbol && e[Symbol.iterator] || e['@@iterator'];
          if (!n) {
            if (Array.isArray(e) || (n = function (e, t) {
              if (e) {
                if ('string' == typeof e) return po(e, t);
                var n = Object.prototype.toString.call(e)
                  .slice(8, -1);
                return 'Object' === n && e.constructor && (n = e.constructor.name), 'Map' === n || 'Set' === n ? Array.from(e) : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? po(e, t) : void 0;
              }
            }(e)) || t && e && 'number' == typeof e.length) {
              n && (e = n);
              var r = 0,
                o = function () {
                };
              return {
                s: o,
                n: function () {
                  return r >= e.length ? { done: !0 } : {
                    done: !1,
                    value: e[r++]
                  };
                },
                e: function (e) {
                  throw e;
                },
                f: o
              };
            }
            throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
          }
          var i,
            a = !0,
            u = !1;
          return {
            s: function () {
              n = n.call(e);
            },
            n: function () {
              var e = n.next();
              return a = e.done, e;
            },
            e: function (e) {
              u = !0, i = e;
            },
            f: function () {
              try {
                a || null == n.return || n.return();
              } finally {
                if (u) throw i;
              }
            }
          };
        }

        function po(e, t) {
          (null == t || t > e.length) && (t = e.length);
          for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
          return r;
        }

        var ho = function (e, t) {
            return 'set_selection' === e.type || !(!t || 'insert_text' !== e.type || 'insert_text' !== t.type || e.offset !== t.offset + t.text.length || !g.default.Path.equals(e.path, t.path)) || !(!t || 'remove_text' !== e.type || 'remove_text' !== t.type || e.offset + e.text.length !== t.offset || !g.default.Path.equals(e.path, t.path));
          },
          vo = function (e, t) {
            return 'set_selection' !== e.type || null != e.properties && null != e.newProperties;
          },
          go = function (e, t) {
            return !(!t || 'set_selection' !== e.type || 'set_selection' !== t.type);
          },
          yo = function (e) {
            return 'set_selection' !== e.type;
          },
          mo = function (e) {
            var t = e,
              n = t.apply;
            return t.history = {
              undos: [],
              redos: []
            }, t.redo = function () {
              var e = t.history,
                n = e.redos;
              if (n.length > 0) {
                var r = n[n.length - 1];
                co.withoutSaving(t, (function () {
                  g.default.Editor.withoutNormalizing(t, (function () {
                    var e,
                      n = fo(r);
                    try {
                      for (n.s(); !(e = n.n()).done;) {
                        var o = e.value;
                        t.apply(o);
                      }
                    } catch (e) {
                      n.e(e);
                    } finally {
                      n.f();
                    }
                  }));
                })), e.redos.pop(), e.undos.push(r);
              }
            }, t.undo = function () {
              var e = t.history,
                n = e.undos;
              if (n.length > 0) {
                var r = n[n.length - 1];
                co.withoutSaving(t, (function () {
                  g.default.Editor.withoutNormalizing(t, (function () {
                    var e,
                      n = fo(r.map(g.default.Operation.inverse)
                        .reverse());
                    try {
                      for (n.s(); !(e = n.n()).done;) {
                        var o = e.value;
                        t.apply(o);
                      }
                    } catch (e) {
                      n.e(e);
                    } finally {
                      n.f();
                    }
                  }));
                })), e.redos.push(r), e.undos.pop();
              }
            }, t.apply = function (e) {
              var r = t.operations,
                o = t.history,
                i = o.undos,
                a = i[i.length - 1],
                u = a && a[a.length - 1],
                s = go(e, u),
                l = co.isSaving(t),
                c = co.isMerging(t);
              if (null == l && (l = vo(e)), l) {
                if (null == c && (c = null != a && (0 !== r.length || ho(e, u) || s)), a && c) {
                  s && a.pop(), a.push(e);
                } else {
                  var f = [e];
                  i.push(f);
                }
                for (; i.length > 100;) i.shift();
                yo(e) && (o.redos = []);
              }
              n(e);
            }, t;
          },
          bo = function () {
            var e = Ae(this),
              t = '';
            return e.global && (t += 'g'), e.ignoreCase && (t += 'i'), e.multiline && (t += 'm'), e.dotAll && (t += 's'), e.unicode && (t += 'u'), e.sticky && (t += 'y'), t;
          },
          wo = vt.PROPER,
          Eo = 'toString',
          Do = RegExp.prototype,
          xo = Do.toString,
          So = H(bo),
          Co = se((function () {
            return '/a/b' != xo.call({
              source: 'a',
              flags: 'b'
            });
          })),
          Ao = wo && xo.name != Eo;
        (Co || Ao) && gt(RegExp.prototype, Eo, (function () {
          var e = Ae(this),
            t = sr(e.source),
            n = e.flags;
          return '/' + t + '/' + sr(void 0 === n && Te(Do, e) && !('flags' in Do) ? So(e) : n);
        }), { unsafe: !0 });
        var Oo = ve('unscopables'),
          ko = Array.prototype;
        null == ko[Oo] && Ue.f(ko, Oo, {
          configurable: !0,
          value: Cr(null)
        });
        var To = function (e) {
            ko[Oo][e] = !0;
          },
          Bo = mn.includes;
        Rn({
          target: 'Array',
          proto: !0
        }, {
          includes: function (e) {
            return Bo(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        }), To('includes');
        var Fo = ve('match'),
          _o = function (e) {
            var t;
            return be(e) && (void 0 !== (t = e[Fo]) ? !!t : 'RegExp' == bt(e));
          },
          Po = _.TypeError,
          jo = function (e) {
            if (_o(e)) throw Po('The method doesn\'t accept regular expressions');
            return e;
          },
          No = ve('match'),
          Io = function (e) {
            var t = /./;
            try {
              '/./'[e](t);
            } catch (n) {
              try {
                return t[No] = !1, '/./'[e](t);
              } catch (e) {
              }
            }
            return !1;
          },
          Ro = H(''.indexOf);
        Rn({
          target: 'String',
          proto: !0,
          forced: !Io('includes')
        }, {
          includes: function (e) {
            return !!~Ro(sr(U(this)), sr(jo(e)), arguments.length > 1 ? arguments[1] : void 0);
          }
        });
        var Mo,
          Lo = /"/g,
          zo = H(''.replace);
        Rn({
          target: 'String',
          proto: !0,
          forced: (Mo = 'anchor', se((function () {
            var e = ''[Mo]('"');
            return e !== e.toLowerCase() || e.split('"').length > 3;
          })))
        }, {
          anchor: function (e) {
            return t = 'a', n = 'name', r = e, o = sr(U(this)), i = '<' + t, '' !== n && (i += ' ' + n + '="' + zo(sr(r), Lo, '&quot;') + '"'), i + '>' + o + '</' + t + '>';
            var t,
              n,
              r,
              o,
              i;
          }
        });
        var $o,
          Ho = pn.f,
          Vo = H(''.endsWith),
          Uo = H(''.slice),
          Wo = Math.min,
          Go = Io('endsWith'),
          qo = !(Go || ($o = Ho(String.prototype, 'endsWith'), !$o || $o.writable));
        Rn({
          target: 'String',
          proto: !0,
          forced: !qo && !Go
        }, {
          endsWith: function (e) {
            var t = sr(U(this));
            jo(e);
            var n = arguments.length > 1 ? arguments[1] : void 0,
              r = t.length,
              o = void 0 === n ? r : Wo(Mt(n), r),
              i = sr(e);
            return Vo ? Vo(t, i, o) : Uo(t, o - i.length, o) === i;
          }
        });
        var Ko = H([].join),
          Yo = Pt != Object,
          Xo = tn('join', ',');
        Rn({
          target: 'Array',
          proto: !0,
          forced: Yo || !Xo
        }, {
          join: function (e) {
            return Ko(fn(this), void 0 === e ? ',' : e);
          }
        });
        var Zo = _.RegExp,
          Jo = se((function () {
            var e = Zo('a', 'y');
            return e.lastIndex = 2, null != e.exec('abcd');
          })),
          Qo = Jo || se((function () {
            return !Zo('a', 'y').sticky;
          })),
          ei = {
            BROKEN_CARET: Jo || se((function () {
              var e = Zo('^r', 'gy');
              return e.lastIndex = 2, null != e.exec('str');
            })),
            MISSED_STICKY: Qo,
            UNSUPPORTED_Y: Jo
          },
          ti = _.RegExp,
          ni = se((function () {
            var e = ti('.', 's');
            return !(e.dotAll && e.exec('\n') && 's' === e.flags);
          })),
          ri = _.RegExp,
          oi = se((function () {
            var e = ri('(?<a>b)', 'g');
            return 'b' !== e.exec('b').groups.a || 'bc' !== 'b'.replace(e, '$<a>c');
          })),
          ii = ft.get,
          ai = R('native-string-replace', String.prototype.replace),
          ui = RegExp.prototype.exec,
          si = ui,
          li = H(''.charAt),
          ci = H(''.indexOf),
          fi = H(''.replace),
          di = H(''.slice),
          pi = function () {
            var e = /a/,
              t = /b*/g;
            return ke(ui, e, 'a'), ke(ui, t, 'a'), 0 !== e.lastIndex || 0 !== t.lastIndex;
          }(),
          hi = ei.BROKEN_CARET,
          vi = void 0 !== /()??/.exec('')[1];
        (pi || vi || hi || ni || oi) && (si = function (e) {
          var t,
            n,
            r,
            o,
            i,
            a,
            u,
            s = this,
            l = ii(s),
            c = sr(e),
            f = l.raw;
          if (f) return f.lastIndex = s.lastIndex, t = ke(si, f, c), s.lastIndex = f.lastIndex, t;
          var d = l.groups,
            p = hi && s.sticky,
            h = ke(bo, s),
            v = s.source,
            g = 0,
            y = c;
          if (p && (h = fi(h, 'y', ''), -1 === ci(h, 'g') && (h += 'g'), y = di(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && '\n' !== li(c, s.lastIndex - 1)) && (v = '(?: ' + v + ')', y = ' ' + y, g++), n = new RegExp('^(?:' + v + ')', h)), vi && (n = new RegExp('^' + v + '$(?!\\s)', h)), pi && (r = s.lastIndex), o = ke(ui, p ? n : s, y), p ? o ? (o.input = di(o.input, g), o[0] = di(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : pi && o && (s.lastIndex = s.global ? o.index + o[0].length : r), vi && o && o.length > 1 && ke(ai, o[0], n, (function () {
            for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (o[i] = void 0);
          })), o && d) {
            for (o.groups = a = Cr(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
          }
          return o;
        });
        var gi = si;
        Rn({
          target: 'RegExp',
          proto: !0,
          forced: /./.exec !== gi
        }, { exec: gi });
        var yi = Function.prototype,
          mi = yi.apply,
          bi = yi.bind,
          wi = yi.call,
          Ei = 'object' == typeof Reflect && Reflect.apply || (bi ? wi.bind(mi) : function () {
            return wi.apply(mi, arguments);
          }),
          Di = ve('species'),
          xi = RegExp.prototype,
          Si = function (e, t, n, r) {
            var o = ve(e),
              i = !se((function () {
                var t = {};
                return t[o] = function () {
                  return 7;
                }, 7 != ''[e](t);
              })),
              a = i && !se((function () {
                var t = !1,
                  n = /a/;
                return 'split' === e && ((n = {}).constructor = {}, n.constructor[Di] = function () {
                  return n;
                }, n.flags = '', n[o] = /./[o]), n.exec = function () {
                  return t = !0, null;
                }, n[o](''), !t;
              }));
            if (!i || !a || n) {
              var u = H(/./[o]),
                s = t(o, ''[e], (function (e, t, n, r, o) {
                  var a = H(e),
                    s = t.exec;
                  return s === gi || s === xi.exec ? i && !o ? {
                    done: !0,
                    value: u(t, n, r)
                  } : {
                    done: !0,
                    value: a(n, t, r)
                  } : { done: !1 };
                }));
              gt(String.prototype, e, s[0]), gt(xi, o, s[1]);
            }
            r && Ge(xi[o], 'sham', !0);
          },
          Ci = pr.charAt,
          Ai = function (e, t, n) {
            return t + (n ? Ci(e, t).length : 1);
          },
          Oi = Math.floor,
          ki = H(''.charAt),
          Ti = H(''.replace),
          Bi = H(''.slice),
          Fi = /\$([$&'`]|\d{1,2}|<[^>]*>)/g,
          _i = /\$([$&'`]|\d{1,2})/g,
          Pi = function (e, t, n, r, o, i) {
            var a = n + e.length,
              u = r.length,
              s = _i;
            return void 0 !== o && (o = G(o), s = Fi), Ti(i, s, (function (i, s) {
              var l;
              switch (ki(s, 0)) {
                case'$':
                  return '$';
                case'&':
                  return e;
                case'`':
                  return Bi(t, 0, n);
                case'\'':
                  return Bi(t, a);
                case'<':
                  l = o[Bi(s, 1, -1)];
                  break;
                default:
                  var c = +s;
                  if (0 === c) return i;
                  if (c > u) {
                    var f = Oi(c / 10);
                    return 0 === f ? i : f <= u ? void 0 === r[f - 1] ? ki(s, 1) : r[f - 1] + ki(s, 1) : i;
                  }
                  l = r[c - 1];
              }
              return void 0 === l ? '' : l;
            }));
          },
          ji = _.TypeError,
          Ni = function (e, t) {
            var n = e.exec;
            if (Q(n)) {
              var r = ke(n, e, t);
              return null !== r && Ae(r), r;
            }
            if ('RegExp' === bt(e)) return ke(gi, e, t);
            throw ji('RegExp#exec called on incompatible receiver');
          },
          Ii = ve('replace'),
          Ri = Math.max,
          Mi = Math.min,
          Li = H([].concat),
          zi = H([].push),
          $i = H(''.indexOf),
          Hi = H(''.slice),
          Vi = '$0' === 'a'.replace(/./, '$0'),
          Ui = !!/./[Ii] && '' === /./[Ii]('a', '$0');
        Si('replace', (function (e, t, n) {
          var r = Ui ? '$' : '$0';
          return [function (e, n) {
            var r = U(this),
              o = null == e ? void 0 : Ie(e, Ii);
            return o ? ke(o, e, r, n) : ke(t, sr(r), e, n);
          }, function (e, o) {
            var i = Ae(this),
              a = sr(e);
            if ('string' == typeof o && -1 === $i(o, r) && -1 === $i(o, '$<')) {
              var u = n(t, i, a, o);
              if (u.done) return u.value;
            }
            var s = Q(o);
            s || (o = sr(o));
            var l = i.global;
            if (l) {
              var c = i.unicode;
              i.lastIndex = 0;
            }
            for (var f = []; ;) {
              var d = Ni(i, a);
              if (null === d) break;
              if (zi(f, d), !l) break;
              '' === sr(d[0]) && (i.lastIndex = Ai(a, Mt(i.lastIndex), c));
            }
            for (var p, h = '', v = 0, g = 0; g < f.length; g++) {
              for (var y = sr((d = f[g])[0]), m = Ri(Mi(It(d.index), a.length), 0), b = [], w = 1; w < d.length; w++) zi(b, void 0 === (p = d[w]) ? p : String(p));
              var E = d.groups;
              if (s) {
                var D = Li([y], b, m, a);
                void 0 !== E && zi(D, E);
                var x = sr(Ei(o, void 0, D));
              } else {
                x = Pi(y, a, m, b, E, o);
              }
              m >= v && (h += Hi(a, v, m) + x, v = m + y.length);
            }
            return h + Hi(a, v);
          }];
        }), !!se((function () {
          var e = /./;
          return e.exec = function () {
            var e = [];
            return e.groups = { a: '7' }, e;
          }, '7' !== ''.replace(e, '$<a>');
        })) || !Vi || Ui);
        /*! *****************************************************************************
        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 Wi = function (e, t) {
          return Wi = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (e, t) {
            e.__proto__ = t;
          } || function (e, t) {
            for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
          }, Wi(e, t);
        };

        function Gi(e, t) {
          if ('function' != typeof t && null !== t) throw new TypeError('Class extends value ' + String(t) + ' is not a constructor or null');

          function n() {
            this.constructor = e;
          }

          Wi(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n);
        }

        var qi = function () {
          return qi = Object.assign || function (e) {
            for (var t, n = 1, r = arguments.length; n < r; n++) for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
            return e;
          }, qi.apply(this, arguments);
        };

        function Ki(e) {
          var t = 'function' == typeof Symbol && Symbol.iterator,
            n = t && e[t],
            r = 0;
          if (n) return n.call(e);
          if (e && 'number' == typeof e.length) {
            return {
              next: function () {
                return e && r >= e.length && (e = void 0), {
                  value: e && e[r++],
                  done: !e
                };
              }
            };
          }
          throw new TypeError(t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.');
        }

        function Yi(e, t) {
          var n = 'function' == typeof Symbol && e[Symbol.iterator];
          if (!n) return e;
          var r,
            o,
            i = n.call(e),
            a = [];
          try {
            for (; (void 0 === t || t-- > 0) && !(r = i.next()).done;) a.push(r.value);
          } catch (e) {
            o = { error: e };
          } finally {
            try {
              r && !r.done && (n = i.return) && n.call(i);
            } finally {
              if (o) throw o.error;
            }
          }
          return a;
        }

        function Xi(e, t) {
          for (var n = 0, r = t.length, o = e.length; n < r; n++, o++) e[o] = t[n];
          return e;
        }

        var Zi = 0,
          Ji = function () {
            this.id = '' + Zi++;
          },
          Qi = 'Array Iterator',
          ea = ft.set,
          ta = ft.getterFor(Qi),
          na = Jr(Array, 'Array', (function (e, t) {
            ea(this, {
              type: Qi,
              target: fn(e),
              index: 0,
              kind: t
            });
          }), (function () {
            var e = ta(this),
              t = e.target,
              n = e.kind,
              r = e.index++;
            return !t || r >= t.length ? (e.target = void 0, {
              value: void 0,
              done: !0
            }) : 'keys' == n ? {
              value: r,
              done: !1
            } : 'values' == n ? {
              value: t[r],
              done: !1
            } : {
              value: [r, t[r]],
              done: !1
            };
          }), 'values');
        Un.Arguments = Un.Array, To('keys'), To('values'), To('entries');
        var ra = function (e, t, n) {
            for (var r in t) gt(e, r, t[r], n);
            return e;
          },
          oa = _.Array,
          ia = Math.max,
          aa = function (e, t, n) {
            for (var r = Lt(e), o = gn(t, r), i = gn(void 0 === n ? r : n, r), a = oa(ia(i - o, 0)), u = 0; o < i; o++, u++) Kn(a, u, e[o]);
            return a.length = u, a;
          },
          ua = Sn.f,
          sa = 'object' == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [],
          la = {
            f: function (e) {
              return sa && 'Window' == bt(e) ? function (e) {
                try {
                  return ua(e);
                } catch (e) {
                  return aa(sa);
                }
              }(e) : ua(fn(e));
            }
          },
          ca = se((function () {
            if ('function' == typeof ArrayBuffer) {
              var e = new ArrayBuffer(8);
              Object.isExtensible(e) && Object.defineProperty(e, 'a', { value: 8 });
            }
          })),
          fa = Object.isExtensible,
          da = se((function () {
            fa(1);
          })) || ca ? function (e) {
            return !!be(e) && (!ca || 'ArrayBuffer' != bt(e)) && (!fa || fa(e));
          } : fa,
          pa = !se((function () {
            return Object.isExtensible(Object.preventExtensions({}));
          })),
          ha = k((function (e) {
            var t = Ue.f,
              n = !1,
              r = J('meta'),
              o = 0,
              i = function (e) {
                t(e, r, {
                  value: {
                    objectID: 'O' + o++,
                    weakData: {}
                  }
                });
              },
              a = e.exports = {
                enable: function () {
                  a.enable = function () {
                  }, n = !0;
                  var e = Sn.f,
                    t = H([].splice),
                    o = {};
                  o[r] = 1, e(o).length && (Sn.f = function (n) {
                    for (var o = e(n), i = 0, a = o.length; i < a; i++) {
                      if (o[i] === r) {
                        t(o, i, 1);
                        break;
                      }
                    }
                    return o;
                  }, Rn({
                    target: 'Object',
                    stat: !0,
                    forced: !0
                  }, { getOwnPropertyNames: la.f }));
                },
                fastKey: function (e, t) {
                  if (!be(e)) return 'symbol' == typeof e ? e : ('string' == typeof e ? 'S' : 'P') + e;
                  if (!K(e, r)) {
                    if (!da(e)) return 'F';
                    if (!t) return 'E';
                    i(e);
                  }
                  return e[r].objectID;
                },
                getWeakData: function (e, t) {
                  if (!K(e, r)) {
                    if (!da(e)) return !0;
                    if (!t) return !1;
                    i(e);
                  }
                  return e[r].weakData;
                },
                onFreeze: function (e) {
                  return pa && n && da(e) && !K(e, r) && i(e), e;
                }
              };
            nt[r] = !0;
          })),
          va = _.TypeError,
          ga = function (e, t) {
            this.stopped = e, this.result = t;
          },
          ya = ga.prototype,
          ma = function (e, t, n) {
            var r,
              o,
              i,
              a,
              u,
              s,
              l,
              c = n && n.that,
              f = !(!n || !n.AS_ENTRIES),
              d = !(!n || !n.IS_ITERATOR),
              p = !(!n || !n.INTERRUPTED),
              h = Bt(t, c),
              v = function (e) {
                return r && Hn(r, 'normal', e), new ga(!0, e);
              },
              g = function (e) {
                return f ? (Ae(e), p ? h(e[0], e[1], v) : h(e[0], e[1])) : p ? h(e, v) : h(e);
              };
            if (d) {
              r = e;
            } else {
              if (!(o = Xn(e))) throw va(Pe(e) + ' is not iterable');
              if (qn(o)) {
                for (i = 0, a = Lt(e); a > i; i++) if ((u = g(e[i])) && Te(ya, u)) return u;
                return new ga(!1);
              }
              r = Jn(e, o);
            }
            for (s = r.next; !(l = ke(s, r)).done;) {
              try {
                u = g(l.value);
              } catch (e) {
                Hn(r, 'throw', e);
              }
              if ('object' == typeof u && u && Te(ya, u)) return u;
            }
            return new ga(!1);
          },
          ba = _.TypeError,
          wa = function (e, t) {
            if (Te(t, e)) return e;
            throw ba('Incorrect invocation');
          },
          Ea = function (e, t, n) {
            var r,
              o;
            return Hr && Q(r = t.constructor) && r !== n && be(o = r.prototype) && o !== n.prototype && Hr(e, o), e;
          },
          Da = function (e, t, n) {
            var r = -1 !== e.indexOf('Map'),
              o = -1 !== e.indexOf('Weak'),
              i = r ? 'set' : 'add',
              a = _[e],
              u = a && a.prototype,
              s = a,
              l = {},
              c = function (e) {
                var t = H(u[e]);
                gt(u, e, 'add' == e ? function (e) {
                  return t(this, 0 === e ? 0 : e), this;
                } : 'delete' == e ? function (e) {
                  return !(o && !be(e)) && t(this, 0 === e ? 0 : e);
                } : 'get' == e ? function (e) {
                  return o && !be(e) ? void 0 : t(this, 0 === e ? 0 : e);
                } : 'has' == e ? function (e) {
                  return !(o && !be(e)) && t(this, 0 === e ? 0 : e);
                } : function (e, n) {
                  return t(this, 0 === e ? 0 : e, n), this;
                });
              };
            if (Nn(e, !Q(a) || !(o || u.forEach && !se((function () {
              (new a).entries()
                .next();
            }))))) {
              s = n.getConstructor(t, e, r, i), ha.enable();
            } else if (Nn(e, !0)) {
              var f = new s,
                d = f[i](o ? {} : -0, 1) != f,
                p = se((function () {
                  f.has(1);
                })),
                h = or((function (e) {
                  new a(e);
                })),
                v = !o && se((function () {
                  for (var e = new a, t = 5; t--;) e[i](t, t);
                  return !e.has(-0);
                }));
              h || ((s = t((function (e, t) {
                wa(e, u);
                var n = Ea(new a, e, s);
                return null != t && ma(t, n[i], {
                  that: n,
                  AS_ENTRIES: r
                }), n;
              }))).prototype = u, u.constructor = s), (p || v) && (c('delete'), c('has'), r && c('get')), (v || d) && c(i), o && u.clear && delete u.clear;
            }
            return l[e] = s, Rn({
              global: !0,
              forced: s != a
            }, l), Rr(s, e), o || n.setStrong(s, e, r), s;
          },
          xa = ha.getWeakData,
          Sa = ft.set,
          Ca = ft.getterFor,
          Aa = en.find,
          Oa = en.findIndex,
          ka = H([].splice),
          Ta = 0,
          Ba = function (e) {
            return e.frozen || (e.frozen = new Fa);
          },
          Fa = function () {
            this.entries = [];
          },
          _a = function (e, t) {
            return Aa(e.entries, (function (e) {
              return e[0] === t;
            }));
          };
        Fa.prototype = {
          get: function (e) {
            var t = _a(this, e);
            if (t) return t[1];
          },
          has: function (e) {
            return !!_a(this, e);
          },
          set: function (e, t) {
            var n = _a(this, e);
            n ? n[1] = t : this.entries.push([e, t]);
          },
          delete: function (e) {
            var t = Oa(this.entries, (function (t) {
              return t[0] === e;
            }));
            return ~t && ka(this.entries, t, 1), !!~t;
          }
        };
        var Pa,
          ja = {
            getConstructor: function (e, t, n, r) {
              var o = e((function (e, o) {
                  wa(e, i), Sa(e, {
                    type: t,
                    id: Ta++,
                    frozen: void 0
                  }), null != o && ma(o, e[r], {
                    that: e,
                    AS_ENTRIES: n
                  });
                })),
                i = o.prototype,
                a = Ca(t),
                u = function (e, t, n) {
                  var r = a(e),
                    o = xa(Ae(t), !0);
                  return !0 === o ? Ba(r)
                    .set(t, n) : o[r.id] = n, e;
                };
              return ra(i, {
                delete: function (e) {
                  var t = a(this);
                  if (!be(e)) return !1;
                  var n = xa(e);
                  return !0 === n ? Ba(t)
                    .delete(e) : n && K(n, t.id) && delete n[t.id];
                },
                has: function (e) {
                  var t = a(this);
                  if (!be(e)) return !1;
                  var n = xa(e);
                  return !0 === n ? Ba(t)
                    .has(e) : n && K(n, t.id);
                }
              }), ra(i, n ? {
                get: function (e) {
                  var t = a(this);
                  if (be(e)) {
                    var n = xa(e);
                    return !0 === n ? Ba(t)
                      .get(e) : n ? n[t.id] : void 0;
                  }
                },
                set: function (e, t) {
                  return u(this, e, t);
                }
              } : {
                add: function (e) {
                  return u(this, e, !0);
                }
              }), o;
            }
          },
          Na = ft.enforce,
          Ia = !_.ActiveXObject && 'ActiveXObject' in _,
          Ra = function (e) {
            return function () {
              return e(this, arguments.length ? arguments[0] : void 0);
            };
          },
          Ma = Da('WeakMap', Ra, ja);
        if (Qe && Ia) {
          Pa = ja.getConstructor(Ra, 'WeakMap', !0), ha.enable();
          var La = Ma.prototype,
            za = H(La.delete),
            $a = H(La.has),
            Ha = H(La.get),
            Va = H(La.set);
          ra(La, {
            delete: function (e) {
              if (be(e) && !da(e)) {
                var t = Na(this);
                return t.frozen || (t.frozen = new Pa), za(this, e) || t.frozen.delete(e);
              }
              return za(this, e);
            },
            has: function (e) {
              if (be(e) && !da(e)) {
                var t = Na(this);
                return t.frozen || (t.frozen = new Pa), $a(this, e) || t.frozen.has(e);
              }
              return $a(this, e);
            },
            get: function (e) {
              if (be(e) && !da(e)) {
                var t = Na(this);
                return t.frozen || (t.frozen = new Pa), $a(this, e) ? Ha(this, e) : t.frozen.get(e);
              }
              return Ha(this, e);
            },
            set: function (e, t) {
              if (be(e) && !da(e)) {
                var n = Na(this);
                n.frozen || (n.frozen = new Pa), $a(this, e) ? Va(this, e, t) : n.frozen.set(e, t);
              } else {
                Va(this, e, t);
              }
              return this;
            }
          });
        }
        var Ua = ve('iterator'),
          Wa = ve('toStringTag'),
          Ga = na.values,
          qa = function (e, t) {
            if (e) {
              if (e[Ua] !== Ga) {
                try {
                  Ge(e, Ua, Ga);
                } catch (t) {
                  e[Ua] = Ga;
                }
              }
              if (e[Wa] || Ge(e, Wa, t), Ct[t]) {
                for (var n in na) {
                  if (e[n] !== na[n]) {
                    try {
                      Ge(e, n, na[n]);
                    } catch (t) {
                      e[n] = na[n];
                    }
                  }
                }
              }
            }
          };
        for (var Ka in Ct) qa(_[Ka] && _[Ka].prototype, Ka);
        qa(kt, 'DOMTokenList');
        var Ya = new WeakMap,
          Xa = new WeakMap,
          Za = new WeakMap,
          Ja = new WeakMap,
          Qa = new WeakMap,
          eu = new WeakMap,
          tu = new WeakMap,
          nu = new WeakMap,
          ru = new WeakMap,
          ou = new WeakMap,
          iu = new WeakMap,
          au = new WeakMap,
          uu = new WeakMap,
          su = new WeakMap,
          lu = new WeakMap,
          cu = new WeakMap,
          fu = new WeakMap,
          du = new WeakMap,
          pu = new WeakMap,
          hu = new WeakMap,
          vu = new WeakMap,
          gu = new WeakMap,
          yu = new WeakMap,
          mu = new WeakMap,
          bu = new WeakMap,
          wu = en.find,
          Eu = 'find',
          Du = !0;
        Eu in [] && Array(1)
          .find((function () {
            Du = !1;
          })), Rn({
          target: 'Array',
          proto: !0,
          forced: Du
        }, {
          find: function (e) {
            return wu(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        }), To(Eu), Rn({ global: !0 }, { globalThis: _ });
        const xu = ['area', 'base', 'basefont', 'bgsound', 'br', 'col', 'command', 'embed', 'frame', 'hr', 'image', 'img', 'input', 'isindex', 'keygen', 'link', 'menuitem', 'meta', 'nextid', 'param', 'source', 'track', 'wbr'];
        o.css && (m.default.fn.css = o.css), o.append && (m.default.fn.append = o.append), o.addClass && (m.default.fn.addClass = o.addClass), o.removeClass && (m.default.fn.removeClass = o.removeClass), o.hasClass && (m.default.fn.hasClass = o.hasClass), o.on && (m.default.fn.on = o.on), o.focus && (m.default.fn.focus = o.focus), o.attr && (m.default.fn.attr = o.attr), o.removeAttr && (m.default.fn.removeAttr = o.removeAttr), o.hide && (m.default.fn.hide = o.hide), o.show && (m.default.fn.show = o.show), o.offset && (m.default.fn.offset = o.offset), o.width && (m.default.fn.width = o.width), o.height && (m.default.fn.height = o.height), o.parent && (m.default.fn.parent = o.parent), o.parents && (m.default.fn.parents = o.parents), o.is && (m.default.fn.is = o.is), o.dataset && (m.default.fn.dataset = o.dataset), o.val && (m.default.fn.val = o.val), o.text && (m.default.fn.text = o.text), o.html && (m.default.fn.html = o.html), o.children && (m.default.fn.children = o.children), o.remove && (m.default.fn.remove = o.remove), o.find && (m.default.fn.find = o.find), o.each && (m.default.fn.each = o.each), o.empty && (m.default.fn.empty = o.empty);
        var Su,
          Cu = function (e) {
            return e && e.ownerDocument && e.ownerDocument.defaultView || null;
          },
          Au = function (e) {
            return Ou(e) && 1 === e.nodeType;
          },
          Ou = function (e) {
            var t = Cu(e);
            return !!t && e instanceof t.Node;
          },
          ku = function (e) {
            var t = e && e.anchorNode && Cu(e.anchorNode);
            return !!t && e instanceof t.Selection;
          },
          Tu = function (e) {
            return Ou(e) && 3 === e.nodeType;
          },
          Bu = function (e) {
            var t,
              n,
              r;
            return null !== (t = window.document.getElementById(e)) && void 0 !== t ? t : (null === (r = null === (n = window.document.activeElement) || void 0 === n ? void 0 : n.shadowRoot) || void 0 === r ? void 0 : r.getElementById(e)) || null;
          },
          Fu = function (e, t, n) {
            for (var r, o = e.childNodes, i = o[t], a = t, u = !1, s = !1; (Ou(r = i) && 8 === r.nodeType || Au(i) && 0 === i.childNodes.length || Au(i) && "false" === i.getAttribute("contenteditable")) && (!u || !s);) a >= o.length ? (u = !0, a = t - 1, n = 'backward') : a < 0 ? (s = !0, a = t + 1, n = 'forward') : (i = o[a], t = a, a += 'forward' === n ? 1 : -1);
            return [i, t];
          },
          _u = function (e, t, n) {
            return Yi(Fu(e, t, n), 1)[0];
          },
          Pu = function e(t) {
            var n,
              r,
              o = '';
            if (Tu(t) && t.nodeValue) return t.nodeValue;
            if (Au(t)) {
              try {
                for (var i = Ki(Array.from(t.childNodes)), a = i.next(); !a.done; a = i.next()) o += e(a.value);
              } catch (e) {
                n = { error: e };
              } finally {
                try {
                  a && !a.done && (r = i.return) && r.call(i);
                } finally {
                  if (n) throw n.error;
                }
              }
              var u = getComputedStyle(t)
                .getPropertyValue('display');
              'block' !== u && 'list' !== u && 'table-row' !== u && 'BR' !== t.tagName || (o += '\n');
            }
            return o;
          };

        function ju(e, t) {
          if (!(e instanceof HTMLElement && 'true' === e.dataset.slateVoid)) {
            for (var n = e.childNodes, r = n.length; r--;) {
              var o = n[r],
                i = o.nodeType;
              3 == i ? t(o, e) : 1 != i && 9 != i && 11 != i || ju(o, t);
            }
          }
        }

        function Nu(e) {
          if (0 === e.length) return '';
          var t = e[0];
          return t.nodeType !== Su.ELEMENT_NODE ? '' : t.tagName.toLowerCase();
        }

        !function (e) {
          e[e.ELEMENT_NODE = 1] = 'ELEMENT_NODE', e[e.TEXT_NODE = 3] = 'TEXT_NODE', e[e.CDATA_SECTION_NODE = 4] = 'CDATA_SECTION_NODE', e[e.PROCESSING_INSTRUCTION_NODE = 7] = 'PROCESSING_INSTRUCTION_NODE', e[e.COMMENT_NODE = 8] = 'COMMENT_NODE', e[e.DOCUMENT_NODE = 9] = 'DOCUMENT_NODE', e[e.DOCUMENT_TYPE_NODE = 10] = 'DOCUMENT_TYPE_NODE', e[e.DOCUMENT_FRAGMENT_NODE = 11] = 'DOCUMENT_FRAGMENT_NODE';
        }(Su || (Su = {})), void 0 !== globalThis.navigator && void 0 !== globalThis.window && /iPad|iPhone|iPod/.test(navigator.userAgent) && globalThis.window.MSStream;
        var Iu = 'undefined' != typeof navigator && /Mac OS X/.test(navigator.userAgent),
          Ru = 'undefined' != typeof navigator && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);
        'undefined' != typeof navigator && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);
        var Mu = 'undefined' != typeof navigator && /Version\/[\d\.]+.*Safari/.test(navigator.userAgent),
          Lu = 'undefined' != typeof navigator && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),
          zu = 'undefined' != typeof navigator && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),
          $u = 'undefined' != typeof navigator && /Chrome/i.test(navigator.userAgent);
        'undefined' != typeof navigator && /.*QQBrowser/.test(navigator.userAgent);
        var Hu = !zu && !Lu && 'undefined' != typeof globalThis && globalThis.InputEvent && 'function' == typeof globalThis.InputEvent.prototype.getTargetRanges,
          Vu = {
            getWindow: function (e) {
              var t = vu.get(e);
              if (!t) throw new Error('Unable to find a host window element for this editor');
              return t;
            },
            findKey: function (e, t) {
              var n = hu.get(t);
              return n || (n = new Ji, hu.set(t, n)), n;
            },
            setNewKey: function (e) {
              var t = new Ji;
              hu.set(e, t);
            },
            findPath: function (e, t) {
              for (var r = [], o = t; ;) {
                var i = lu.get(o);
                if (null == i) {
                  if (n.Editor.isEditor(o)) return r;
                  break;
                }
                var a = su.get(o);
                if (null == a) break;
                r.unshift(a), o = i;
              }
              throw new Error('Unable to find the path for Slate node: ' + JSON.stringify(t));
            },
            findDocumentOrShadowRoot: function (e) {
              if (e.isDestroyed) return window.document;
              var t = Vu.toDOMNode(e, e),
                n = t.getRootNode();
              return (n instanceof Document || n instanceof ShadowRoot) && null != n.getSelection ? n : t.ownerDocument;
            },
            getParentNode: function (e, t) {
              return lu.get(t) || null;
            },
            getParentsNodes: function (e, t) {
              for (var n = [], r = t; r !== e && null != r;) {
                var o = Vu.getParentNode(e, r);
                if (null == o) break;
                n.push(o), r = o;
              }
              return n;
            },
            getTopNode: function (e, t) {
              var r = [Vu.findPath(e, t)[0]];
              return n.Node.get(e, r);
            },
            toDOMNode: function (e, t) {
              var r;
              if (n.Editor.isEditor(t)) {
                r = cu.get(e);
              } else {
                var o = Vu.findKey(e, t);
                r = du.get(o);
              }
              if (!r) throw new Error('Cannot resolve a DOM node from Slate node: ' + JSON.stringify(t));
              return r;
            },
            hasDOMNode: function (e, t, n) {
              void 0 === n && (n = {});
              var r,
                o = n.editable,
                i = void 0 !== o && o,
                a = Vu.toDOMNode(e, e);
              try {
                r = Au(t) ? t : t.parentElement;
              } catch (e) {
                if (!e.message.includes('Permission denied to access property "nodeType"')) throw e;
              }
              return !!r && r.closest('[data-slate-editor]') === a && (!i || r.isContentEditable || !!r.getAttribute('data-slate-zero-width'));
            },
            toDOMRange: function (e, t) {
              var r = t.anchor,
                o = t.focus,
                i = n.Range.isBackward(t),
                a = Vu.toDOMPoint(e, r),
                u = n.Range.isCollapsed(t) ? a : Vu.toDOMPoint(e, o),
                s = Vu.getWindow(e)
                  .document
                  .createRange(),
                l = Yi(i ? u : a, 2),
                c = l[0],
                f = l[1],
                d = Yi(i ? a : u, 2),
                p = d[0],
                h = d[1],
                v = !!(Au(c) ? c : c.parentElement).getAttribute('data-slate-zero-width'),
                g = !!(Au(p) ? p : p.parentElement).getAttribute('data-slate-zero-width');
              return s.setStart(c, v ? 1 : f), s.setEnd(p, g ? 1 : h), s;
            },
            toDOMPoint: function (e, t) {
              var r,
                o,
                i,
                a = Yi(n.Editor.node(e, t.path), 1)[0],
                u = Vu.toDOMNode(e, a);
              n.Editor.void(e, { at: t }) && (t = {
                path: t.path,
                offset: 0
              });
              var s = Array.from(u.querySelectorAll('[data-slate-string], [data-slate-zero-width]')),
                l = 0;
              try {
                for (var c = Ki(s), f = c.next(); !f.done; f = c.next()) {
                  var d = f.value,
                    p = d.childNodes[0];
                  if (null != p && null != p.textContent) {
                    var h = p.textContent.length,
                      v = d.getAttribute('data-slate-length'),
                      g = l + (null == v ? h : parseInt(v, 10));
                    if (t.offset <= g) {
                      i = [p, Math.min(h, Math.max(0, t.offset - l))];
                      break;
                    }
                    l = g;
                  }
                }
              } catch (e) {
                r = { error: e };
              } finally {
                try {
                  f && !f.done && (o = c.return) && o.call(c);
                } finally {
                  if (r) throw r.error;
                }
              }
              if (!i) throw new Error('Cannot resolve a DOM point from Slate point: ' + JSON.stringify(t));
              return i;
            },
            toSlateNode: function (e, t) {
              var n = Au(t) ? t : t.parentElement;
              n && !n.hasAttribute('data-slate-node') && (n = n.closest('[data-slate-node]'));
              var r = n ? fu.get(n) : null;
              if (!r) throw new Error('Cannot resolve a Slate node from DOM node: ' + n);
              return r;
            },
            findEventRange: function (e, t) {
              'nativeEvent' in t && (t = t.nativeEvent);
              var r = t.clientX,
                o = t.clientY,
                i = t.target;
              if (null == r || null == o) throw new Error('Cannot resolve a Slate range from a DOM event: ' + t);
              var a,
                u = Vu.toSlateNode(e, t.target),
                s = Vu.findPath(e, u);
              if (n.Editor.isVoid(e, u)) {
                var l = i.getBoundingClientRect(),
                  c = e.isInline(u) ? r - l.left < l.left + l.width - r : o - l.top < l.top + l.height - o,
                  f = n.Editor.point(e, s, { edge: c ? 'start' : 'end' }),
                  d = c ? n.Editor.before(e, f) : n.Editor.after(e, f);
                if (d) return n.Editor.range(e, d);
              }
              var p = this.getWindow(e).document;
              if (p.caretRangeFromPoint) {
                a = p.caretRangeFromPoint(r, o);
              } else {
                var h = p.caretPositionFromPoint(r, o);
                h && ((a = p.createRange()).setStart(h.offsetNode, h.offset), a.setEnd(h.offsetNode, h.offset));
              }
              if (!a) throw new Error('Cannot resolve a Slate range from a DOM event: ' + t);
              return Vu.toSlateRange(e, a, {
                exactMatch: !1,
                suppressThrow: !1
              });
            },
            toSlateRange: function (e, t, r) {
              var o,
                i,
                a,
                u,
                s,
                l = r.exactMatch,
                c = r.suppressThrow;
              if ((ku(t) ? t.anchorNode : t.startContainer) && (ku(t) ? (o = t.anchorNode, i = t.anchorOffset, a = t.focusNode, u = t.focusOffset, s = $u && window.document.activeElement && window.document.activeElement.shadowRoot ? t.anchorNode === t.focusNode && t.anchorOffset === t.focusOffset : t.isCollapsed) : (o = t.startContainer, i = t.startOffset, a = t.endContainer, u = t.endOffset, s = t.collapsed)), null == o || null == a || null == i || null == u) throw new Error('Cannot resolve a Slate range from DOM range: ' + t);
              var f = Vu.toSlatePoint(e, [o, i], {
                exactMatch: l,
                suppressThrow: c
              });
              if (!f) return null;
              var d = s ? f : Vu.toSlatePoint(e, [a, u], {
                exactMatch: l,
                suppressThrow: c
              });
              if (!d) return null;
              var p = {
                anchor: f,
                focus: d
              };
              return n.Range.isExpanded(p) && n.Range.isForward(p) && Au(a) && n.Editor.void(e, {
                at: p.focus,
                mode: 'highest'
              }) && (p = n.Editor.unhangRange(e, p, { voids: !0 })), p;
            },
            toSlatePoint: function (e, t, n) {
              var r,
                o = n.exactMatch,
                i = n.suppressThrow,
                a = Yi(o ? t : function (e) {
                  var t,
                    n = Yi(e, 2),
                    r = n[0],
                    o = n[1];
                  if (Au(r) && r.childNodes.length) {
                    var i = o === r.childNodes.length,
                      a = i ? o - 1 : o;
                    for (r = (t = Yi(Fu(r, a, i ? 'backward' : 'forward'), 2))[0], i = (a = t[1]) < o; Au(r) && r.childNodes.length;) {
                      var u = i ? r.childNodes.length - 1 : 0;
                      r = _u(r, u, i ? 'backward' : 'forward');
                    }
                    o = i && null != r.textContent ? r.textContent.length : 0;
                  }
                  return [r, o];
                }(t), 2),
                u = a[0],
                s = a[1],
                l = u.parentNode,
                c = null,
                f = 0;
              if (l) {
                var d = l.closest('[data-slate-void="true"]'),
                  p = l.closest('[data-slate-leaf]'),
                  h = null;
                if (p) {
                  c = p.closest('[data-slate-node="text"]');
                  var v = Vu.getWindow(e)
                    .document
                    .createRange();
                  v.setStart(c, 0), v.setEnd(u, s);
                  var g = v.cloneContents();
                  Xi(Xi([], Yi(y.default(g.querySelectorAll('[data-slate-zero-width]')))), Yi(y.default(g.querySelectorAll('[contenteditable=false]'))))
                    .forEach((function (e) {
                      e.parentNode.removeChild(e);
                    })), f = g.textContent.length, h = c;
                } else {
                  d && ((p = d.querySelector('[data-slate-leaf]')) ? (c = p.closest('[data-slate-node="text"]'), f = (h = p).textContent.length, h.querySelectorAll('[data-slate-zero-width]')
                    .forEach((function (e) {
                      f -= e.textContent.length;
                    }))) : f = 1);
                }
                h && f === h.textContent.length && (l.hasAttribute('data-slate-zero-width') || Ru && (null === (r = h.textContent) || void 0 === r ? void 0 : r.endsWith('\n'))) && f--;
              }
              if (!c) {
                if (i) return null;
                throw new Error('Cannot resolve a Slate point from DOM point: ' + t);
              }
              var m = Vu.toSlateNode(e, c);
              return {
                path: Vu.findPath(e, m),
                offset: f
              };
            },
            hasRange: function (e, t) {
              var r = t.anchor,
                o = t.focus;
              return n.Editor.hasPath(e, r.path) && n.Editor.hasPath(e, o.path);
            },
            getNodeType: function (e) {
              return n.Element.isElement(e) ? e.type : '';
            },
            checkNodeType: function (e, t) {
              return this.getNodeType(e) === t;
            },
            getNodesStr: function (e) {
              return e.map((function (e) {
                return n.Node.string(e);
              }))
                .join('');
            },
            getSelectedElems: function (e) {
              var t,
                r,
                o = [],
                i = n.Editor.nodes(e, { universal: !0 });
              try {
                for (var a = Ki(i), u = a.next(); !u.done; u = a.next()) {
                  var s = Yi(u.value, 1)[0];
                  n.Element.isElement(s) && o.push(s);
                }
              } catch (e) {
                t = { error: e };
              } finally {
                try {
                  u && !u.done && (r = a.return) && r.call(a);
                } finally {
                  if (t) throw t.error;
                }
              }
              return o;
            },
            getSelectedNodeByType: function (e, t) {
              var r = this,
                o = Yi(n.Editor.nodes(e, {
                  match: function (e) {
                    return r.checkNodeType(e, t);
                  },
                  universal: !0
                }), 1),
                i = o[0];
              return null == i ? null : i[0];
            },
            getSelectedTextNode: function (e) {
              var t = Yi(n.Editor.nodes(e, {
                  match: function (e) {
                    return n.Text.isText(e);
                  },
                  universal: !0
                }), 1),
                r = t[0];
              return null == r ? null : r[0];
            },
            isNodeSelected: function (e, t) {
              var r = Yi(n.Editor.nodes(e, {
                  match: function (e) {
                    return e === t;
                  },
                  universal: !0
                }), 1),
                o = r[0];
              return null != o && Yi(o, 1)[0] === t;
            },
            isSelectionAtLineEnd: function (e, t) {
              var r = e.selection;
              return !!r && (n.Editor.isEnd(e, r.anchor, t) || n.Editor.isEnd(e, r.focus, t));
            },
            getTextarea: function (e) {
              var t = Ya.get(e);
              if (null == t) throw new Error('Cannot find textarea instance by editor');
              return t;
            },
            getToolbar: function (e) {
              return Ja.get(e) || null;
            },
            getHoverbar: function (e) {
              return eu.get(e) || null;
            },
            normalizeContent: function (e) {
              e.children.forEach((function (t, n) {
                e.normalizeNode([t, [n]]);
              }));
            },
            getLeftLengthOfMaxLength: function (e) {
              var t = e.getConfig(),
                n = t.maxLength,
                r = t.onMaxLength;
              if ('number' != typeof n || n <= 0) return 1 / 0;
              var o = n - e.getText()
                .replace(/\r|\n|(\r\n)/g, '').length;
              return o <= 0 && r && r(e), o;
            },
            cleanExposedTexNodeInSelectionBlock: function (e) {
              var t,
                r,
                o,
                i,
                a = Vu.getTextarea(e).$textArea,
                u = null == a ? void 0 : a[0].childNodes;
              if (u) {
                try {
                  for (var s = Ki(Array.from(u)), l = s.next(); !l.done; l = s.next()) {
                    var c = l.value;
                    if (3 !== c.nodeType) break;
                    c.remove();
                  }
                } catch (e) {
                  t = { error: e };
                } finally {
                  try {
                    l && !l.done && (r = s.return) && r.call(s);
                  } finally {
                    if (t) throw t.error;
                  }
                }
              }
              var f = n.Editor.nodes(e, {
                match: function (t) {
                  return !(!n.Element.isElement(t) || e.isInline(t));
                },
                universal: !0
              });
              try {
                for (var d = Ki(f), p = d.next(); !p.done; p = d.next()) {
                  var h = p.value;
                  if (null != h) {
                    var v = h[0];
                    ju(Vu.toDOMNode(e, v), (function (e, t) {
                      var n = m.default(t);
                      n.attr('data-slate-string') || n.attr('data-slate-zero-width') || t.removeChild(e);
                    }));
                  }
                }
              } catch (e) {
                o = { error: e };
              } finally {
                try {
                  p && !p.done && (i = d.return) && i.call(d);
                } finally {
                  if (o) throw o.error;
                }
              }
            },
            isLastNode: function (e, t) {
              var n = e.children || [];
              return n[n.length - 1] === t;
            },
            genEmptyParagraph: function () {
              return {
                type: 'paragraph',
                children: [{ text: '' }]
              };
            },
            isSelectedVoidNode: function (e) {
              var t,
                r,
                o = n.Editor.nodes(e, {
                  match: function (t) {
                    return e.isVoid(t);
                  }
                }),
                i = 0;
              try {
                for (var a = Ki(o), u = a.next(); !u.done; u = a.next()) u.value, i++;
              } catch (e) {
                t = { error: e };
              } finally {
                try {
                  u && !u.done && (r = a.return) && r.call(a);
                } finally {
                  if (t) throw t.error;
                }
              }
              return i > 0;
            },
            isSelectedEmptyParagraph: function (e) {
              var t = e.selection;
              if (null == t) return !1;
              if (n.Range.isExpanded(t)) return !1;
              var r = Vu.getSelectedNodeByType(e, 'paragraph');
              if (null === r) return !1;
              var o = r.children;
              return 1 === o.length && ('' === o[0].text || void 0);
            }
          },
          Uu = 1,
          Wu = {},
          Gu = {},
          qu = ve('species'),
          Ku = function (e) {
            var t = te(e),
              n = Ue.f;
            me && t && !t[qu] && n(t, qu, {
              configurable: !0,
              get: function () {
                return this;
              }
            });
          },
          Yu = Ue.f,
          Xu = ha.fastKey,
          Zu = ft.set,
          Ju = ft.getterFor,
          Qu = {
            getConstructor: function (e, t, n, r) {
              var o = e((function (e, o) {
                  wa(e, i), Zu(e, {
                    type: t,
                    index: Cr(null),
                    first: void 0,
                    last: void 0,
                    size: 0
                  }), me || (e.size = 0), null != o && ma(o, e[r], {
                    that: e,
                    AS_ENTRIES: n
                  });
                })),
                i = o.prototype,
                a = Ju(t),
                u = function (e, t, n) {
                  var r,
                    o,
                    i = a(e),
                    u = s(e, t);
                  return u ? u.value = n : (i.last = u = {
                    index: o = Xu(t, !0),
                    key: t,
                    value: n,
                    previous: r = i.last,
                    next: void 0,
                    removed: !1
                  }, i.first || (i.first = u), r && (r.next = u), me ? i.size++ : e.size++, 'F' !== o && (i.index[o] = u)), e;
                },
                s = function (e, t) {
                  var n,
                    r = a(e),
                    o = Xu(t);
                  if ('F' !== o) return r.index[o];
                  for (n = r.first; n; n = n.next) if (n.key == t) return n;
                };
              return ra(i, {
                clear: function () {
                  for (var e = a(this), t = e.index, n = e.first; n;) n.removed = !0, n.previous && (n.previous = n.previous.next = void 0), delete t[n.index], n = n.next;
                  e.first = e.last = void 0, me ? e.size = 0 : this.size = 0;
                },
                delete: function (e) {
                  var t = this,
                    n = a(t),
                    r = s(t, e);
                  if (r) {
                    var o = r.next,
                      i = r.previous;
                    delete n.index[r.index], r.removed = !0, i && (i.next = o), o && (o.previous = i), n.first == r && (n.first = o), n.last == r && (n.last = i), me ? n.size-- : t.size--;
                  }
                  return !!r;
                },
                forEach: function (e) {
                  for (var t, n = a(this), r = Bt(e, arguments.length > 1 ? arguments[1] : void 0); t = t ? t.next : n.first;) for (r(t.value, t.key, this); t && t.removed;) t = t.previous;
                },
                has: function (e) {
                  return !!s(this, e);
                }
              }), ra(i, n ? {
                get: function (e) {
                  var t = s(this, e);
                  return t && t.value;
                },
                set: function (e, t) {
                  return u(this, 0 === e ? 0 : e, t);
                }
              } : {
                add: function (e) {
                  return u(this, e = 0 === e ? 0 : e, e);
                }
              }), me && Yu(i, 'size', {
                get: function () {
                  return a(this).size;
                }
              }), o;
            },
            setStrong: function (e, t, n) {
              var r = t + ' Iterator',
                o = Ju(t),
                i = Ju(r);
              Jr(e, t, (function (e, t) {
                Zu(this, {
                  type: r,
                  target: e,
                  state: o(e),
                  kind: t,
                  last: void 0
                });
              }), (function () {
                for (var e = i(this), t = e.kind, n = e.last; n && n.removed;) n = n.previous;
                return e.target && (e.last = n = n ? n.next : e.state.first) ? 'keys' == t ? {
                  value: n.key,
                  done: !1
                } : 'values' == t ? {
                  value: n.value,
                  done: !1
                } : {
                  value: [n.key, n.value],
                  done: !1
                } : (e.target = void 0, {
                  value: void 0,
                  done: !0
                });
              }), n ? 'entries' : 'values', !n, !0), Ku(t);
            }
          };
        Da('Set', (function (e) {
          return function () {
            return e(this, arguments.length ? arguments[0] : void 0);
          };
        }), Qu);
        var es = en.filter,
          ts = Ln('filter');
        Rn({
          target: 'Array',
          proto: !0,
          forced: !ts
        }, {
          filter: function (e) {
            return es(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        });
        var ns = '\t\n\v\f\r                　\u2028\u2029\ufeff',
          rs = H(''.replace),
          os = '[' + ns + ']',
          is = RegExp('^' + os + os + '*'),
          as = RegExp(os + os + '*$'),
          us = function (e) {
            return function (t) {
              var n = sr(U(t));
              return 1 & e && (n = rs(n, is, '')), 2 & e && (n = rs(n, as, '')), n;
            };
          },
          ss = {
            start: us(1),
            end: us(2),
            trim: us(3)
          },
          ls = vt.PROPER,
          cs = ss.trim;
        Rn({
          target: 'String',
          proto: !0,
          forced: function (e) {
            return se((function () {
              return !!ns[e]() || '​᠎' !== '​᠎'[e]() || ls && ns[e].name !== e;
            }));
          }('trim')
        }, {
          trim: function () {
            return cs(this);
          }
        });
        var fs = [],
          ds = {};

        function ps(e, t, n) {
          var r = n.isInline(e) ? 'span' : 'div';
          return '<' + r + '>' + t + '</' + r + '>';
        }

        function hs(e, t) {
          var r = e.type,
            o = void 0 === r ? '' : r,
            i = e.children,
            a = void 0 === i ? [] : i,
            u = n.Editor.isVoid(t, e),
            s = '';
          u || (s = a.map((function (e) {
            return Jl(e, t);
          }))
            .join(''));
          var l = function (e) {
              return ds[e] || ps;
            }(o),
            c = l(e, s, t);
          return u || fs.forEach((function (t) {
            return c = t(e, c);
          })), c;
        }

        var vs,
          gs,
          ys,
          ms,
          bs = _.Promise,
          ws = _.TypeError,
          Es = ve('species'),
          Ds = function (e, t) {
            var n,
              r = Ae(e).constructor;
            return void 0 === r || null == (n = Ae(r)[Es]) ? t : function (e) {
              if (Kt(e)) return e;
              throw ws(Pe(e) + ' is not a constructor');
            }(n);
          },
          xs = H([].slice),
          Ss = /(?:ipad|iphone|ipod).*applewebkit/i.test(ne),
          Cs = 'process' == bt(_.process),
          As = _.setImmediate,
          Os = _.clearImmediate,
          ks = _.process,
          Ts = _.Dispatch,
          Bs = _.Function,
          Fs = _.MessageChannel,
          _s = _.String,
          Ps = 0,
          js = {},
          Ns = 'onreadystatechange';
        try {
          vs = _.location;
        } catch (e) {
        }
        var Is = function (e) {
            if (K(js, e)) {
              var t = js[e];
              delete js[e], t();
            }
          },
          Rs = function (e) {
            return function () {
              Is(e);
            };
          },
          Ms = function (e) {
            Is(e.data);
          },
          Ls = function (e) {
            _.postMessage(_s(e), vs.protocol + '//' + vs.host);
          };
        As && Os || (As = function (e) {
          var t = xs(arguments, 1);
          return js[++Ps] = function () {
            Ei(Q(e) ? e : Bs(e), void 0, t);
          }, gs(Ps), Ps;
        }, Os = function (e) {
          delete js[e];
        }, Cs ? gs = function (e) {
          ks.nextTick(Rs(e));
        } : Ts && Ts.now ? gs = function (e) {
          Ts.now(Rs(e));
        } : Fs && !Ss ? (ms = (ys = new Fs).port2, ys.port1.onmessage = Ms, gs = Bt(ms.postMessage, ms)) : _.addEventListener && Q(_.postMessage) && !_.importScripts && vs && 'file:' !== vs.protocol && !se(Ls) ? (gs = Ls, _.addEventListener('message', Ms, !1)) : gs = Ns in De('script') ? function (e) {
          gr.appendChild(De('script')).onreadystatechange = function () {
            gr.removeChild(this), Is(e);
          };
        } : function (e) {
          setTimeout(Rs(e), 0);
        });
        var zs,
          $s,
          Hs,
          Vs,
          Us,
          Ws,
          Gs,
          qs,
          Ks = {
            set: As,
            clear: Os
          },
          Ys = /ipad|iphone|ipod/i.test(ne) && void 0 !== _.Pebble,
          Xs = /web0s(?!.*chrome)/i.test(ne),
          Zs = pn.f,
          Js = Ks.set,
          Qs = _.MutationObserver || _.WebKitMutationObserver,
          el = _.document,
          tl = _.process,
          nl = _.Promise,
          rl = Zs(_, 'queueMicrotask'),
          ol = rl && rl.value;
        ol || (zs = function () {
          var e,
            t;
          for (Cs && (e = tl.domain) && e.exit(); $s;) {
            t = $s.fn, $s = $s.next;
            try {
              t();
            } catch (e) {
              throw $s ? Vs() : Hs = void 0, e;
            }
          }
          Hs = void 0, e && e.enter();
        }, Ss || Cs || Xs || !Qs || !el ? !Ys && nl && nl.resolve ? ((Gs = nl.resolve(void 0)).constructor = nl, qs = Bt(Gs.then, Gs), Vs = function () {
          qs(zs);
        }) : Cs ? Vs = function () {
          tl.nextTick(zs);
        } : (Js = Bt(Js, _), Vs = function () {
          Js(zs);
        }) : (Us = !0, Ws = el.createTextNode(''), new Qs(zs).observe(Ws, { characterData: !0 }), Vs = function () {
          Ws.data = Us = !Us;
        }));
        var il,
          al,
          ul,
          sl,
          ll = ol || function (e) {
            var t = {
              fn: e,
              next: void 0
            };
            Hs && (Hs.next = t), $s || ($s = t, Vs()), Hs = t;
          },
          cl = function (e) {
            var t,
              n;
            this.promise = new e((function (e, r) {
              if (void 0 !== t || void 0 !== n) throw TypeError('Bad Promise constructor');
              t = e, n = r;
            })), this.resolve = Ne(t), this.reject = Ne(n);
          },
          fl = {
            f: function (e) {
              return new cl(e);
            }
          },
          dl = function (e) {
            try {
              return {
                error: !1,
                value: e()
              };
            } catch (e) {
              return {
                error: !0,
                value: e
              };
            }
          },
          pl = 'object' == typeof window,
          hl = Ks.set,
          vl = ve('species'),
          gl = 'Promise',
          yl = ft.getterFor(gl),
          ml = ft.set,
          bl = ft.getterFor(gl),
          wl = bs && bs.prototype,
          El = bs,
          Dl = wl,
          xl = _.TypeError,
          Sl = _.document,
          Cl = _.process,
          Al = fl.f,
          Ol = Al,
          kl = !!(Sl && Sl.createEvent && _.dispatchEvent),
          Tl = Q(_.PromiseRejectionEvent),
          Bl = 'unhandledrejection',
          Fl = !1,
          _l = Nn(gl, (function () {
            var e = Ze(El),
              t = e !== String(El);
            if (!t && 66 === ue) return !0;
            if (ue >= 51 && /native code/.test(e)) return !1;
            var n = new El((function (e) {
                e(1);
              })),
              r = function (e) {
                e((function () {
                }), (function () {
                }));
              };
            return (n.constructor = {})[vl] = r, !(Fl = n.then((function () {
            })) instanceof r) || !t && pl && !Tl;
          })),
          Pl = _l || !or((function (e) {
            El.all(e)
              .catch((function () {
              }));
          })),
          jl = function (e) {
            var t;
            return !(!be(e) || !Q(t = e.then)) && t;
          },
          Nl = function (e, t) {
            if (!e.notified) {
              e.notified = !0;
              var n = e.reactions;
              ll((function () {
                for (var r = e.value, o = 1 == e.state, i = 0; n.length > i;) {
                  var a,
                    u,
                    s,
                    l = n[i++],
                    c = o ? l.ok : l.fail,
                    f = l.resolve,
                    d = l.reject,
                    p = l.domain;
                  try {
                    c ? (o || (2 === e.rejection && Ll(e), e.rejection = 1), !0 === c ? a = r : (p && p.enter(), a = c(r), p && (p.exit(), s = !0)), a === l.promise ? d(xl('Promise-chain cycle')) : (u = jl(a)) ? ke(u, a, f, d) : f(a)) : d(r);
                  } catch (e) {
                    p && !s && p.exit(), d(e);
                  }
                }
                e.reactions = [], e.notified = !1, t && !e.rejection && Rl(e);
              }));
            }
          },
          Il = function (e, t, n) {
            var r,
              o;
            kl ? ((r = Sl.createEvent('Event')).promise = t, r.reason = n, r.initEvent(e, !1, !0), _.dispatchEvent(r)) : r = {
              promise: t,
              reason: n
            }, !Tl && (o = _['on' + e]) ? o(r) : e === Bl && function (e, t) {
              var n = _.console;
              n && n.error && (1 == arguments.length ? n.error(e) : n.error(e, t));
            }('Unhandled promise rejection', n);
          },
          Rl = function (e) {
            ke(hl, _, (function () {
              var t,
                n = e.facade,
                r = e.value;
              if (Ml(e) && (t = dl((function () {
                Cs ? Cl.emit('unhandledRejection', r, n) : Il(Bl, n, r);
              })), e.rejection = Cs || Ml(e) ? 2 : 1, t.error)) {
                throw t.value;
              }
            }));
          },
          Ml = function (e) {
            return 1 !== e.rejection && !e.parent;
          },
          Ll = function (e) {
            ke(hl, _, (function () {
              var t = e.facade;
              Cs ? Cl.emit('rejectionHandled', t) : Il('rejectionhandled', t, e.value);
            }));
          },
          zl = function (e, t, n) {
            return function (r) {
              e(t, r, n);
            };
          },
          $l = function (e, t, n) {
            e.done || (e.done = !0, n && (e = n), e.value = t, e.state = 2, Nl(e, !0));
          },
          Hl = function (e, t, n) {
            if (!e.done) {
              e.done = !0, n && (e = n);
              try {
                if (e.facade === t) throw xl('Promise can\'t be resolved itself');
                var r = jl(t);
                r ? ll((function () {
                  var n = { done: !1 };
                  try {
                    ke(r, t, zl(Hl, n, e), zl($l, n, e));
                  } catch (t) {
                    $l(n, t, e);
                  }
                })) : (e.value = t, e.state = 1, Nl(e, !1));
              } catch (t) {
                $l({ done: !1 }, t, e);
              }
            }
          };
        if (_l && (Dl = (El = function (e) {
          wa(this, Dl), Ne(e), ke(il, this);
          var t = yl(this);
          try {
            e(zl(Hl, t), zl($l, t));
          } catch (e) {
            $l(t, e);
          }
        }).prototype, (il = function (e) {
          ml(this, {
            type: gl,
            done: !1,
            notified: !1,
            parent: !1,
            reactions: [],
            rejection: !1,
            state: 0,
            value: void 0
          });
        }).prototype = ra(Dl, {
          then: function (e, t) {
            var n = bl(this),
              r = n.reactions,
              o = Al(Ds(this, El));
            return o.ok = !Q(e) || e, o.fail = Q(t) && t, o.domain = Cs ? Cl.domain : void 0, n.parent = !0, r[r.length] = o, 0 != n.state && Nl(n, !1), o.promise;
          },
          catch: function (e) {
            return this.then(void 0, e);
          }
        }), al = function () {
          var e = new il,
            t = yl(e);
          this.promise = e, this.resolve = zl(Hl, t), this.reject = zl($l, t);
        }, fl.f = Al = function (e) {
          return e === El || e === ul ? new al(e) : Ol(e);
        }, Q(bs) && wl !== Object.prototype)) {
          sl = wl.then, Fl || (gt(wl, 'then', (function (e, t) {
            var n = this;
            return new El((function (e, t) {
              ke(sl, n, e, t);
            })).then(e, t);
          }), { unsafe: !0 }), gt(wl, 'catch', Dl.catch, { unsafe: !0 }));
          try {
            delete wl.constructor;
          } catch (e) {
          }
          Hr && Hr(wl, Dl);
        }
        Rn({
          global: !0,
          wrap: !0,
          forced: _l
        }, { Promise: El }), Rr(El, gl, !1), Ku(gl), ul = te(gl), Rn({
          target: gl,
          stat: !0,
          forced: _l
        }, {
          reject: function (e) {
            var t = Al(this);
            return ke(t.reject, void 0, e), t.promise;
          }
        }), Rn({
          target: gl,
          stat: !0,
          forced: _l
        }, {
          resolve: function (e) {
            return function (e, t) {
              if (Ae(e), be(t) && t.constructor === e) return t;
              var n = fl.f(e);
              return (0, n.resolve)(t), n.promise;
            }(this, e);
          }
        }), Rn({
          target: gl,
          stat: !0,
          forced: Pl
        }, {
          all: function (e) {
            var t = this,
              n = Al(t),
              r = n.resolve,
              o = n.reject,
              i = dl((function () {
                var n = Ne(t.resolve),
                  i = [],
                  a = 0,
                  u = 1;
                ma(e, (function (e) {
                  var s = a++,
                    l = !1;
                  u++, ke(n, t, e)
                    .then((function (e) {
                      l || (l = !0, i[s] = e, --u || r(i));
                    }), o);
                })), --u || r(i);
              }));
            return i.error && o(i.value), n.promise;
          },
          race: function (e) {
            var t = this,
              n = Al(t),
              r = n.reject,
              o = dl((function () {
                var o = Ne(t.resolve);
                ma(e, (function (e) {
                  ke(o, t, e)
                    .then(n.resolve, r);
                }));
              }));
            return o.error && r(o.value), n.promise;
          }
        });
        var Vl = ei.UNSUPPORTED_Y,
          Ul = 4294967295,
          Wl = Math.min,
          Gl = [].push,
          ql = H(/./.exec),
          Kl = H(Gl),
          Yl = H(''.slice),
          Xl = !se((function () {
            var e = /(?:)/,
              t = e.exec;
            e.exec = function () {
              return t.apply(this, arguments);
            };
            var n = 'ab'.split(e);
            return 2 !== n.length || 'a' !== n[0] || 'b' !== n[1];
          }));

        function Zl(e) {
          Promise.resolve()
            .then(e);
        }

        function Jl(e, t) {
          return n.Element.isElement(e) ? hs(e, t) : function (e, t) {
            var n = e.text;
            if (null == n) throw new Error('Current node is not slate Text ' + JSON.stringify(e));
            var r = n;
            r = function (e) {
              return e.replace(/ {2}/g, ' &nbsp;')
                .replace(/</g, '&lt;')
                .replace(/>/g, '&gt;')
                .replace(/®/g, '&reg;')
                .replace(/©/g, '&copy;')
                .replace(/™/g, '&trade;');
            }(r);
            var o = Vu.getParentsNodes(t, e)
              .some((function (e) {
                return 'pre' === Vu.getNodeType(e);
              }));
            if (o || (r = r.replace(/\r\n|\r|\n/g, '<br>')), o && (r = r.replace(/&nbsp;/g, ' ')), '' === r) {
              var i = Vu.getParentNode(null, e);
              if (!i || 0 !== i.children.length) return r;
              r = '<br>';
            }
            return fs.forEach((function (t) {
              return r = t(e, r);
            })), r;
          }(e, t);
        }

        function Ql(e) {
          return 'w-e-element-' + e;
        }

        Si('split', (function (e, t, n) {
          var r;
          return r = 'c' == 'abbc'.split(/(b)*/)[1] || 4 != 'test'.split(/(?:)/, -1).length || 2 != 'ab'.split(/(?:ab)*/).length || 4 != '.'.split(/(.?)(.?)/).length || '.'.split(/()()/).length > 1 || ''.split(/.?/).length ? function (e, n) {
            var r = sr(U(this)),
              o = void 0 === n ? Ul : n >>> 0;
            if (0 === o) return [];
            if (void 0 === e) return [r];
            if (!_o(e)) return ke(t, r, e, o);
            for (var i, a, u, s = [], l = (e.ignoreCase ? 'i' : '') + (e.multiline ? 'm' : '') + (e.unicode ? 'u' : '') + (e.sticky ? 'y' : ''), c = 0, f = new RegExp(e.source, l + 'g'); (i = ke(gi, f, r)) && !((a = f.lastIndex) > c && (Kl(s, Yl(r, c, i.index)), i.length > 1 && i.index < r.length && Ei(Gl, s, aa(i, 1)), u = i[0].length, c = a, s.length >= o));) f.lastIndex === i.index && f.lastIndex++;
            return c === r.length ? !u && ql(f, '') || Kl(s, '') : Kl(s, Yl(r, c)), s.length > o ? aa(s, 0, o) : s;
          } : '0'.split(void 0, 0).length ? function (e, n) {
            return void 0 === e && 0 === n ? [] : ke(t, this, e, n);
          } : t, [function (t, n) {
            var o = U(this),
              i = null == t ? void 0 : Ie(t, e);
            return i ? ke(i, t, o, n) : ke(r, sr(o), t, n);
          }, function (e, o) {
            var i = Ae(this),
              a = sr(e),
              u = n(r, i, a, o, r !== t);
            if (u.done) return u.value;
            var s = Ds(i, RegExp),
              l = i.unicode,
              c = (i.ignoreCase ? 'i' : '') + (i.multiline ? 'm' : '') + (i.unicode ? 'u' : '') + (Vl ? 'g' : 'y'),
              f = new s(Vl ? '^(?:' + i.source + ')' : i, c),
              d = void 0 === o ? Ul : o >>> 0;
            if (0 === d) return [];
            if (0 === a.length) return null === Ni(f, a) ? [a] : [];
            for (var p = 0, h = 0, v = []; h < a.length;) {
              f.lastIndex = Vl ? 0 : h;
              var g,
                y = Ni(f, Vl ? Yl(a, h) : a);
              if (null === y || (g = Wl(Mt(f.lastIndex + (Vl ? h : 0)), a.length)) === p) {
                h = Ai(a, h, l);
              } else {
                if (Kl(v, Yl(a, p, h)), v.length === d) return v;
                for (var m = 1; m <= y.length - 1; m++) if (Kl(v, y[m]), v.length === d) return v;
                h = p = g;
              }
            }
            return Kl(v, Yl(a, p)), v;
          }];
        }), !Xl, Vl);
        var ec = function (e, t) {
            var n = (t.top + t.bottom) / 2;
            return e.top <= n && e.bottom >= n;
          },
          tc = function (e, t, n) {
            var r = Vu.toDOMRange(e, t)
                .getBoundingClientRect(),
              o = Vu.toDOMRange(e, n)
                .getBoundingClientRect();
            return ec(r, o) && ec(o, r);
          },
          nc = ['span', 'b', 'strong', 'i', 'em', 's', 'strike', 'u', 'font', 'sub', 'sup'],
          rc = [],
          oc = [],
          ic = {},
          ac = Ue.f,
          uc = Sn.f,
          sc = ft.enforce,
          lc = ve('match'),
          cc = _.RegExp,
          fc = cc.prototype,
          dc = _.SyntaxError,
          pc = H(bo),
          hc = H(fc.exec),
          vc = H(''.charAt),
          gc = H(''.replace),
          yc = H(''.indexOf),
          mc = H(''.slice),
          bc = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,
          wc = /a/g,
          Ec = /a/g,
          Dc = new cc(wc) !== wc,
          xc = ei.MISSED_STICKY,
          Sc = ei.UNSUPPORTED_Y,
          Cc = me && (!Dc || xc || ni || oi || se((function () {
            return Ec[lc] = !1, cc(wc) != wc || cc(Ec) == Ec || '/a/i' != cc(wc, 'i');
          })));
        if (Nn('RegExp', Cc)) {
          for (var Ac = function (e, t) {
            var n,
              r,
              o,
              i,
              a,
              u,
              s = Te(fc, this),
              l = _o(e),
              c = void 0 === t,
              f = [],
              d = e;
            if (!s && l && c && e.constructor === Ac) return e;
            if ((l || Te(fc, e)) && (e = e.source, c && (t = 'flags' in d ? d.flags : pc(d))), e = void 0 === e ? '' : sr(e), t = void 0 === t ? '' : sr(t), d = e, ni && 'dotAll' in wc && (r = !!t && yc(t, 's') > -1) && (t = gc(t, /s/g, '')), n = t, xc && 'sticky' in wc && (o = !!t && yc(t, 'y') > -1) && Sc && (t = gc(t, /y/g, '')), oi && (i = function (e) {
              for (var t, n = e.length, r = 0, o = '', i = [], a = {}, u = !1, s = !1, l = 0, c = ''; r <= n; r++) {
                if ('\\' === (t = vc(e, r))) {
                  t += vc(e, ++r);
                } else if (']' === t) {
                  u = !1;
                } else if (!u) {
                  switch (!0) {
                    case'[' === t:
                      u = !0;
                      break;
                    case'(' === t:
                      hc(bc, mc(e, r + 1)) && (r += 2, s = !0), o += t, l++;
                      continue;
                    case'>' === t && s:
                      if ('' === c || K(a, c)) throw new dc('Invalid capture group name');
                      a[c] = !0, i[i.length] = [c, l], s = !1, c = '';
                      continue;
                  }
                }
                s ? c += t : o += t;
              }
              return [o, i];
            }(e), e = i[0], f = i[1]), a = Ea(cc(e, t), s ? this : fc, Ac), (r || o || f.length) && (u = sc(a), r && (u.dotAll = !0, u.raw = Ac(function (e) {
              for (var t, n = e.length, r = 0, o = '', i = !1; r <= n; r++) '\\' !== (t = vc(e, r)) ? i || '.' !== t ? ('[' === t ? i = !0 : ']' === t && (i = !1), o += t) : o += '[\\s\\S]' : o += t + vc(e, ++r);
              return o;
            }(e), n)), o && (u.sticky = !0), f.length && (u.groups = f)), e !== d) {
              try {
                Ge(a, 'source', '' === d ? '(?:)' : d);
              } catch (e) {
              }
            }
            return a;
          }, Oc = function (e) {
            e in Ac || ac(Ac, e, {
              configurable: !0,
              get: function () {
                return cc[e];
              },
              set: function (t) {
                cc[e] = t;
              }
            });
          }, kc = uc(cc), Tc = 0; kc.length > Tc;) {
            Oc(kc[Tc++]);
          }
          fc.constructor = Ac, Ac.prototype = fc, gt(_, 'RegExp', Ac);
        }
        Ku('RegExp');
        var Bc = new RegExp(String.fromCharCode(160), 'g');

        function Fc(e) {
          return e.replace(Bc, ' ');
        }

        function _c(e, t) {
          var r = e.length;
          if (r) {
            var o = e[r - 1];
            if (n.Text.isText(o)) {
              var i = Object.keys(o);
              if (1 === i.length && 'text' === i[0]) return o.text = o.text + t, !0;
            }
          }
          return !1;
        }

        function Pc(e, t, n) {
          return {
            type: 'paragraph',
            children: [{
              text: m.default(e)
                .text()
                .replace(/\s+/gm, ' ')
            }]
          };
        }

        function jc(e, t) {
          var r = function (e, t) {
              var n = [];
              if (null != e.attr('data-w-e-is-void')) return n;
              var r = e[0].childNodes;
              return 1 === r.length && 'BR' === r[0].nodeName ? (n.push({ text: '' }), n) : (r.forEach((function (e) {
                if (e.nodeType !== Su.ELEMENT_NODE) {
                  if (e.nodeType !== Su.TEXT_NODE) {
                    ;
                  } else {
                    var r = e.textContent || '';
                    if ('' === r.trim() && r.indexOf('\n') >= 0) return;
                    r && (r = Fc(r), _c(n, r) || n.push({ text: r }));
                  }
                } else {
                  if ('BR' === e.nodeName) return void (_c(n, '\n') || n.push({ text: '\n' }));
                  var o = m.default(e);
                  n.push(Ic(o, t));
                }
              })), n);
            }(e, t),
            o = function (e) {
              for (var t in ic) if (e[0].matches(t)) return ic[t];
              return Pc;
            }(e),
            i = o(e[0], r, t);
          return n.Editor.isVoid(t, i) || (0 === r.length && (i.children = [{
            text: e.text()
              .replace(/\s+/gm, ' ')
          }]), oc.forEach((function (n) {
            i = n(e[0], i, t);
          }))), i;
        }

        function Nc(e, t) {
          0 === e.parents('pre').length && (e[0].innerHTML = e[0].innerHTML.replace(/\s+/gm, ' ')
            .replace(/<br>/g, '\n'));
          var n = e[0].textContent || '';
          n = function (e) {
            return e.replace(/&nbsp;/g, ' ')
              .replace(/&lt;/g, '<')
              .replace(/&gt;/g, '>')
              .replace(/&reg;/g, '®')
              .replace(/&copy;/g, '©')
              .replace(/&trade;/g, '™');
          }(n);
          var r = { text: n = Fc(n) };
          return oc.forEach((function (n) {
            r = n(e[0], r, t);
          })), r;
        }

        function Ic(e, t) {
          rc.forEach((function (t) {
            var n = t.selector,
              r = t.preParseHtml;
            e[0].matches(n) && (e = m.default(r(e[0])));
          }));
          var n = Nu(e);
          return 'span' === n ? e.attr('data-w-e-type') ? jc(e, t) : Nc(e, t) : 'code' === n ? 'pre' === Nu(e.parent()) ? jc(e, t) : Nc(e, t) : nc.includes(n) ? Nc(e, t) : jc(e, t);
        }

        var Rc = new Set(['doctype', '!doctype', 'meta', 'script', 'style', 'link', 'frame', 'iframe', 'title', 'svg']),
          Mc = function (e) {
            var t = e,
              r = t.onChange,
              o = t.insertText,
              i = t.apply,
              a = t.deleteBackward;
            return t.insertText = function (e) {
              t.getConfig().readOnly || o(e);
            }, t.apply = function (e) {
              var r,
                o,
                a,
                u,
                s,
                l,
                c,
                f,
                d = [];
              switch (e.type) {
                case'insert_text':
                case'remove_text':
                case'set_node':
                  try {
                    for (var p = Ki(n.Editor.levels(t, { at: e.path })), h = p.next(); !h.done; h = p.next()) {
                      var v = Yi(h.value, 2),
                        g = v[0],
                        y = v[1],
                        m = Vu.findKey(t, g);
                      d.push([y, m]);
                    }
                  } catch (e) {
                    r = { error: e };
                  } finally {
                    try {
                      h && !h.done && (o = p.return) && o.call(p);
                    } finally {
                      if (r) throw r.error;
                    }
                  }
                  break;
                case'insert_node':
                case'remove_node':
                case'merge_node':
                case'split_node':
                  try {
                    for (var b = Ki(n.Editor.levels(t, { at: n.Path.parent(e.path) })), w = b.next(); !w.done; w = b.next()) {
                      var E = Yi(w.value, 2);
                      g = E[0], y = E[1], m = Vu.findKey(t, g), d.push([y, m]);
                    }
                  } catch (e) {
                    a = { error: e };
                  } finally {
                    try {
                      w && !w.done && (u = b.return) && u.call(b);
                    } finally {
                      if (a) throw a.error;
                    }
                  }
                  break;
                case'move_node':
                  try {
                    for (var D = Ki(n.Editor.levels(t, { at: n.Path.common(n.Path.parent(e.path), n.Path.parent(e.newPath)) })), x = D.next(); !x.done; x = D.next()) {
                      var S = Yi(x.value, 2);
                      g = S[0], y = S[1], m = Vu.findKey(t, g), d.push([y, m]);
                    }
                  } catch (e) {
                    s = { error: e };
                  } finally {
                    try {
                      x && !x.done && (l = D.return) && l.call(D);
                    } finally {
                      if (s) throw s.error;
                    }
                  }
              }
              i(e);
              try {
                for (var C = Ki(d), A = C.next(); !A.done; A = C.next()) {
                  var O = Yi(A.value, 2);
                  y = O[0], m = O[1], g = Yi(n.Editor.node(t, y), 1)[0], hu.set(g, m);
                }
              } catch (e) {
                c = { error: e };
              } finally {
                try {
                  A && !A.done && (f = C.return) && f.call(C);
                } finally {
                  if (c) throw c.error;
                }
              }
            }, t.deleteBackward = function (r) {
              if ('line' !== r) return a(r);
              if (e.selection && n.Range.isCollapsed(e.selection)) {
                var o = n.Editor.above(e, {
                  match: function (t) {
                    return n.Editor.isBlock(e, t);
                  },
                  at: e.selection
                });
                if (o) {
                  var i = Yi(o, 2)[1],
                    u = n.Editor.range(e, i, e.selection.anchor),
                    s = function (e, t) {
                      var r = n.Editor.range(e, n.Range.end(t)),
                        o = Array.from(n.Editor.positions(e, { at: t })),
                        i = 0,
                        a = o.length,
                        u = Math.floor(a / 2);
                      if (tc(e, n.Editor.range(e, o[i]), r)) return n.Editor.range(e, o[i], r);
                      if (o.length < 2) return n.Editor.range(e, o[o.length - 1], r);
                      for (; u !== o.length && u !== i;) tc(e, n.Editor.range(e, o[u]), r) ? a = u : i = u, u = Math.floor((i + a) / 2);
                      return n.Editor.range(e, o[a], r);
                    }(t, u);
                  n.Range.isCollapsed(s) || n.Transforms.delete(e, { at: s });
                }
              }
            }, t.onChange = function () {
              var e = t.selection;
              null != e && yu.set(t, e), t.emit('change'), r();
            }, t.handleTab = function () {
              t.insertText('    ');
            }, t.getHtml = function () {
              var e = t.children;
              return (void 0 === e ? [] : e).map((function (e) {
                return Jl(e, t);
              }))
                .join('');
            }, t.getText = function () {
              var e = t.children;
              return (void 0 === e ? [] : e).map((function (e) {
                return n.Node.string(e);
              }))
                .join('\n');
            }, t.getSelectionText = function () {
              var r = t.selection;
              return null == r ? '' : n.Editor.string(e, r);
            }, t.getElemsByType = function (e, r) {
              var o,
                i;
              void 0 === r && (r = !1);
              var a = [],
                u = n.Editor.nodes(t, {
                  at: [],
                  universal: !0
                });
              try {
                for (var s = Ki(u), l = s.next(); !l.done; l = s.next()) {
                  var c = Yi(l.value, 1)[0];
                  if (n.Element.isElement(c) && (r ? c.type.indexOf(e) >= 0 : c.type === e)) {
                    var f = Ql(Vu.findKey(t, c).id);
                    a.push(qi(qi({}, c), { id: f }));
                  }
                }
              } catch (e) {
                o = { error: e };
              } finally {
                try {
                  l && !l.done && (i = s.return) && i.call(s);
                } finally {
                  if (o) throw o.error;
                }
              }
              return a;
            }, t.getElemsByTypePrefix = function (e) {
              return t.getElemsByType(e, !0);
            }, t.isEmpty = function () {
              var e = t.children,
                r = void 0 === e ? [] : e;
              if (r.length > 1) return !1;
              var o = r[0];
              if (null == o) return !0;
              if (n.Element.isElement(o) && 'paragraph' === o.type) {
                var i = o.children,
                  a = void 0 === i ? [] : i;
                if (a.length > 1) return !1;
                var u = a[0];
                if (null == u) return !0;
                if (n.Text.isText(u) && '' === u.text) return !0;
              }
              return !1;
            }, t.clear = function () {
              n.Transforms.removeNodes(t, {
                at: {
                  anchor: n.Editor.start(t, []),
                  focus: n.Editor.end(t, [])
                },
                mode: 'highest'
              }), 0 === t.children.length && n.Transforms.insertNodes(t, [{
                type: 'paragraph',
                children: [{ text: '' }]
              }]);
            }, t.getParentNode = function (e) {
              return Vu.getParentNode(t, e);
            }, t.dangerouslyInsertHtml = function (r) {
              if (void 0 === r && (r = ''), r) {
                var o = document.createElement('div');
                o.innerHTML = r;
                var i = Array.from(o.childNodes);
                i = i.filter((function (e) {
                  var t = e.nodeType,
                    n = e.nodeName;
                  return t === Su.TEXT_NODE || t === Su.ELEMENT_NODE && !Rc.has(n.toLowerCase());
                })), 0 !== i.length && (o.setAttribute('hidden', 'true'), document.body.appendChild(o), i.forEach((function (r) {
                  if (null != t.selection) {
                    var o = r.nodeType,
                      i = r.nodeName,
                      a = r.textContent,
                      u = void 0 === a ? '' : a;
                    if (o !== Su.TEXT_NODE) {
                      if ('BR' !== i) {
                        var s = r,
                          l = !1;
                        if (nc.includes(i.toLowerCase())) {
                          l = !0;
                        } else {
                          for (var c in ic) {
                            if (s.matches(c)) {
                              l = !0;
                              break;
                            }
                          }
                        }
                        if (l) {
                          var f = Ic(m.default(s), t);
                          return t.isInline(f) ? t.insertNode(f) : n.Transforms.insertNodes(t, f, { mode: 'highest' }), void (Vu.isSelectedVoidNode(t) && t.move(1));
                        }
                        var d = window.getComputedStyle(s).display;
                        Vu.isSelectedEmptyParagraph(t) || d.indexOf('inline') < 0 && t.insertBreak(), t.dangerouslyInsertHtml(s.innerHTML);
                      } else {
                        e.insertText('\n');
                      }
                    } else {
                      if (!u || !u.trim()) return;
                      t.insertNode({ text: u });
                    }
                  }
                })), o.remove());
              }
            }, t.setHtml = function (r) {
              if (void 0 === r && (r = ''), r) {
                var o = t.isDisabled(),
                  i = t.isFocused(),
                  a = JSON.stringify(t.selection);
                if (t.enable(), t.focus(), t.select([]), t.deleteFragment(), n.Transforms.setNodes(e, { type: 'paragraph' }, { mode: 'highest' }), t.dangerouslyInsertHtml(r), i || (t.deselect(), t.blur()), o && (t.deselect(), t.disable()), t.isFocused()) {
                  try {
                    t.select(JSON.parse(a));
                  } catch (e) {
                    t.select(n.Editor.start(t, []));
                  }
                }
              }
            }, t;
          },
          Lc = function (e) {
            var t = e,
              r = t.insertText;
            return t.insertFragment, t.setFragmentData = function (e) {
              var r = t.selection;
              if (r) {
                var o = Yi(n.Range.edges(r), 2),
                  i = o[0],
                  a = o[1],
                  u = n.Editor.void(t, { at: i.path }),
                  s = n.Editor.void(t, { at: a.path });
                if (!n.Range.isCollapsed(r) || u) {
                  var l = Vu.toDOMRange(t, r),
                    c = l.cloneContents(),
                    f = c.childNodes[0];
                  if (c.childNodes.forEach((function (e) {
                    e.textContent && '' !== e.textContent.trim() && (f = e);
                  })), s) {
                    var d = Yi(s, 1)[0],
                      p = l.cloneRange(),
                      h = Vu.toDOMNode(t, d);
                    p.setEndAfter(h), c = p.cloneContents();
                  }
                  if (u && (f = c.querySelector('[data-slate-spacer]')), Array.from(c.querySelectorAll('[data-slate-zero-width]'))
                    .forEach((function (e) {
                      var t = 'n' === e.getAttribute('data-slate-zero-width');
                      e.textContent = t ? '\n' : '';
                    })), Tu(f)) {
                    var v = f.ownerDocument.createElement('span');
                    v.style.whiteSpace = 'pre', v.appendChild(f), c.appendChild(v), f = v;
                  }
                  var g = t.getFragment(),
                    y = JSON.stringify(g),
                    m = window.btoa(encodeURIComponent(y));
                  f.setAttribute('data-slate-fragment', m), e.setData('application/x-slate-fragment', m);
                  var b = c.ownerDocument.createElement('div');
                  return b.appendChild(c), b.setAttribute('hidden', 'true'), c.ownerDocument.body.appendChild(b), e.setData('text/html', b.innerHTML), e.setData('text/plain', Pu(b)), c.ownerDocument.body.removeChild(b), e;
                }
              }
            }, t.insertData = function (e) {
              var o,
                i,
                a = e.getData('application/x-slate-fragment');
              if (a) {
                var u = decodeURIComponent(window.atob(a)),
                  s = JSON.parse(u);
                t.insertFragment(s);
              } else {
                var l = e.getData('text/plain'),
                  c = e.getData('text/html');
                if (c) {
                  t.dangerouslyInsertHtml(c);
                } else if (l) {
                  var f = l.split(/\r\n|\r|\n/),
                    d = !1;
                  try {
                    for (var p = Ki(f), h = p.next(); !h.done; h = p.next()) {
                      var v = h.value;
                      d && n.Transforms.splitNodes(t, { always: !0 }), r(v), d = !0;
                    }
                  } catch (e) {
                    o = { error: e };
                  } finally {
                    try {
                      h && !h.done && (i = p.return) && i.call(p);
                    } finally {
                      if (o) throw o.error;
                    }
                  }
                }
              }
            }, t;
          },
          zc = function (e) {
            return null != e;
          },
          $c = {
            object: !0,
            function: !0,
            undefined: !0
          },
          Hc = function (e) {
            if (!function (e) {
              return !!zc(e) && hasOwnProperty.call($c, typeof e);
            }(e)) {
              return !1;
            }
            try {
              return !!e.constructor && e.constructor.prototype === e;
            } catch (e) {
              return !1;
            }
          },
          Vc = /^\s*class[\s{/}]/,
          Uc = Function.prototype.toString,
          Wc = function (e) {
            return !!function (e) {
              if ('function' != typeof e) return !1;
              if (!hasOwnProperty.call(e, 'length')) return !1;
              try {
                if ('number' != typeof e.length) return !1;
                if ('function' != typeof e.call) return !1;
                if ('function' != typeof e.apply) return !1;
              } catch (e) {
                return !1;
              }
              return !Hc(e);
            }(e) && !Vc.test(Uc.call(e));
          },
          Gc = function (e) {
            return null != e;
          },
          qc = Object.keys,
          Kc = function () {
            try {
              return Object.keys('primitive'), !0;
            } catch (e) {
              return !1;
            }
          }() ? Object.keys : function (e) {
            return qc(Gc(e) ? Object(e) : e);
          },
          Yc = function (e) {
            if (!Gc(e)) throw new TypeError('Cannot use null or undefined');
            return e;
          },
          Xc = Math.max,
          Zc = function () {
            var e,
              t = Object.assign;
            return 'function' == typeof t && (t(e = { foo: 'raz' }, { bar: 'dwa' }, { trzy: 'trzy' }), e.foo + e.bar + e.trzy === 'razdwatrzy');
          }() ? Object.assign : function (e, t) {
            var n,
              r,
              o,
              i = Xc(arguments.length, 2);
            for (e = Object(Yc(e)), o = function (r) {
              try {
                e[r] = t[r];
              } catch (e) {
                n || (n = e);
              }
            }, r = 1; r < i; ++r) {
              Kc(t = arguments[r])
                .forEach(o);
            }
            if (void 0 !== n) throw n;
            return e;
          },
          Jc = Array.prototype.forEach,
          Qc = Object.create,
          ef = function (e, t) {
            var n;
            for (n in e) t[n] = e[n];
          },
          tf = function (e) {
            var t = Qc(null);
            return Jc.call(arguments, (function (e) {
              Gc(e) && ef(Object(e), t);
            })), t;
          },
          nf = 'razdwatrzy',
          rf = String.prototype.indexOf,
          of = 'function' == typeof nf.contains && !0 === nf.contains('dwa') && !1 === nf.contains('foo') ? String.prototype.contains : function (e) {
            return rf.call(this, e, arguments[1]) > -1;
          },
          af = k((function (e) {
            var t = e.exports = function (e, t) {
              var n,
                r,
                o,
                i,
                a;
              return arguments.length < 2 || 'string' != typeof e ? (i = t, t = e, e = null) : i = arguments[2], zc(e) ? (n = of.call(e, 'c'), r = of.call(e, 'e'), o = of.call(e, 'w')) : (n = o = !0, r = !1), a = {
                value: t,
                configurable: n,
                enumerable: r,
                writable: o
              }, i ? Zc(tf(i), a) : a;
            };
            t.gs = function (e, t, n) {
              var r,
                o,
                i,
                a;
              return 'string' != typeof e ? (i = n, n = t, t = e, e = null) : i = arguments[3], zc(t) ? Wc(t) ? zc(n) ? Wc(n) || (i = n, n = void 0) : n = void 0 : (i = t, t = n = void 0) : t = void 0, zc(e) ? (r = of.call(e, 'c'), o = of.call(e, 'e')) : (r = !0, o = !1), a = {
                get: t,
                set: n,
                configurable: r,
                enumerable: o
              }, i ? Zc(tf(i), a) : a;
            };
          })),
          uf = function (e) {
            if ('function' != typeof e) throw new TypeError(e + ' is not a function');
            return e;
          },
          sf = k((function (e, t) {
            var n,
              r,
              o,
              i,
              a,
              u,
              s,
              l = Function.prototype.apply,
              c = Function.prototype.call,
              f = Object.create,
              d = Object.defineProperty,
              p = Object.defineProperties,
              h = Object.prototype.hasOwnProperty,
              v = {
                configurable: !0,
                enumerable: !1,
                writable: !0
              };
            n = function (e, t) {
              var n;
              return uf(t), h.call(this, '__ee__') ? n = this.__ee__ : (n = v.value = f(null), d(this, '__ee__', v), v.value = null), n[e] ? 'object' == typeof n[e] ? n[e].push(t) : n[e] = [n[e], t] : n[e] = t, this;
            }, r = function (e, t) {
              var r,
                i;
              return uf(t), i = this, n.call(this, e, r = function () {
                o.call(i, e, r), l.call(t, this, arguments);
              }), r.__eeOnceListener__ = t, this;
            }, o = function (e, t) {
              var n,
                r,
                o,
                i;
              if (uf(t), !h.call(this, '__ee__')) return this;
              if (!(n = this.__ee__)[e]) return this;
              if ('object' == typeof (r = n[e])) for (i = 0; o = r[i]; ++i) o !== t && o.__eeOnceListener__ !== t || (2 === r.length ? n[e] = r[i ? 0 : 1] : r.splice(i, 1)); else r !== t && r.__eeOnceListener__ !== t || delete n[e];
              return this;
            }, i = function (e) {
              var t,
                n,
                r,
                o,
                i;
              if (h.call(this, '__ee__') && (o = this.__ee__[e])) {
                if ('object' == typeof o) {
                  for (n = arguments.length, i = new Array(n - 1), t = 1; t < n; ++t) i[t - 1] = arguments[t];
                  for (o = o.slice(), t = 0; r = o[t]; ++t) l.call(r, this, i);
                } else {
                  switch (arguments.length) {
                    case 1:
                      c.call(o, this);
                      break;
                    case 2:
                      c.call(o, this, arguments[1]);
                      break;
                    case 3:
                      c.call(o, this, arguments[1], arguments[2]);
                      break;
                    default:
                      for (n = arguments.length, i = new Array(n - 1), t = 1; t < n; ++t) i[t - 1] = arguments[t];
                      l.call(o, this, i);
                  }
                }
              }
            }, a = {
              on: n,
              once: r,
              off: o,
              emit: i
            }, u = {
              on: af(n),
              once: af(r),
              off: af(o),
              emit: af(i)
            }, s = p({}, u), e.exports = t = function (e) {
              return null == e ? f(s) : p(Object(e), u);
            }, t.methods = a;
          }));

        function lf(e) {
          var t = mu.get(e);
          return null == t && (t = sf(), mu.set(e, t)), t;
        }

        var cf = new WeakMap;

        function ff(e, t) {
          var n = cf.get(e);
          null == n && (n = new Set, cf.set(e, n)), n.add(t);
        }

        function df(e) {
          return cf.get(e) || new Set;
        }

        function pf(e) {
          cf.set(e, new Set);
        }

        function hf(e) {
          var t = Vu.getTextarea(e).$textAreaContainer,
            n = t.width(),
            r = t.height(),
            o = t.offset();
          return {
            top: o.top,
            left: o.left,
            width: n,
            height: r
          };
        }

        function vf(e) {
          var t = {
              top: '0',
              left: '0'
            },
            n = e.selection;
          if (null == n) return t;
          var r = hf(e);
          if (null == r) return t;
          var o = r.top,
            i = r.left,
            a = r.width,
            u = r.height,
            s = Vu.toDOMRange(e, n)
              .getClientRects()[0];
          if (null == s) return t;
          s.width;
          var l = s.height,
            c = {},
            f = s.top - o,
            d = s.left - i;
          if (d > a / 2) {
            var p = a - d;
            c.right = p + 5 + 'px';
          } else {
            c.left = d + 5 + 'px';
          }
          if (f > u / 2) {
            var h = u - f;
            c.bottom = h + 5 + 'px';
          } else {
            var v = f + l;
            v < 0 && (v = 0), c.top = v + 5 + 'px';
          }
          return c;
        }

        function gf(e, t, r) {
          void 0 === r && (r = 'modal');
          var o = {
            top: '0',
            left: '0'
          };
          if (null == e.selection) return o;
          var i = n.Element.isElement(t) && e.isVoid(t),
            a = n.Element.isElement(t) && e.isInline(t),
            u = pu.get(t);
          if (null == u) return o;
          var s = u.getBoundingClientRect(),
            l = s.top,
            c = s.left,
            f = s.height,
            d = s.width;
          if (i) {
            var p = function (e) {
              var t = [];
              t.push(e);
              for (var n = 0; t.length > 0;) {
                var r = t.pop();
                if (null == r) break;
                if (++n > 1e4) break;
                var o = r.nodeName;
                if (1 === r.nodeType) {
                  var i = o.toLowerCase();
                  if (xu.includes(i) || 'iframe' === i || 'video' === i) return r;
                  var a = r.children || [],
                    u = a.length;
                  if (u) for (var s = u - 1; s >= 0; s--) t.push(a[s]);
                }
              }
              return null;
            }(u);
            if (null != p) {
              var h = p.getBoundingClientRect();
              l = h.top, f = h.height;
            }
          }
          var v = hf(e);
          if (null == v) return o;
          var g,
            y = v.top,
            m = v.left,
            b = v.width,
            w = v.height,
            E = {},
            D = l - y,
            x = c - m;
          if ('bar' === r) return E.left = x + 'px', D > 40 ? E.bottom = w - D + 5 + 'px' : E.top = D + f + 5 + 'px', E;
          if ('modal' === r) return i ? a ? x > (b - d) / 2 ? E.right = b - x + 5 + 'px' : E.left = x + d + 5 + 'px' : E.left = '20px' : E.left = x + 'px', i ? ((g = D) < 0 && (g = 0), E.top = g + 'px') : D > (w - f) / 2 ? E.bottom = w - D + 5 + 'px' : ((g = D + f) < 0 && (g = 0), E.top = g + 5 + 'px'), E;
          throw new Error('type \'' + r + '\' is invalid');
        }

        function yf(e, t) {
          Zl((function () {
            var n = hf(e);
            if (null != n) {
              var r,
                o = n.top,
                i = n.left,
                a = n.width,
                u = n.height,
                s = t.offset(),
                l = s.top,
                c = s.left,
                f = t.width(),
                d = t.height(),
                p = l - o,
                h = c - i,
                v = t.attr('style');
              if (v.indexOf('top') >= 0 && (r = p + d - u) > 0) {
                var g = t.css('top'),
                  y = parseInt(g.toString()) - r;
                y < 0 && (y = 0), t.css('top', y + 'px');
              }
              if (v.indexOf('bottom') >= 0 && l < 0) {
                var m = t.css('bottom'),
                  b = parseInt(m.toString()) - Math.abs(l);
                t.css('bottom', b + 'px');
              }
              if (v.indexOf('left') >= 0 && (r = h + f - a) > 0) {
                var w = t.css('left'),
                  E = parseInt(w.toString()) - r;
                E < 0 && (E = 0), t.css('left', E + 'px');
              }
              if (v.indexOf('right') >= 0 && c < 0) {
                var D = t.css('right'),
                  x = parseInt(D.toString()) - Math.abs(c);
                t.css('right', x + 'px');
              }
            }
          }));
        }

        var mf = Ln('slice'),
          bf = ve('species'),
          wf = _.Array,
          Ef = Math.max;
        Rn({
          target: 'Array',
          proto: !0,
          forced: !mf
        }, {
          slice: function (e, t) {
            var n,
              r,
              o,
              i = fn(this),
              a = Lt(i),
              u = gn(e, a),
              s = gn(void 0 === t ? a : t, a);
            if (zt(i) && (n = i.constructor, (Kt(n) && (n === wf || zt(n.prototype)) || be(n) && null === (n = n[bf])) && (n = void 0), n === wf || void 0 === n)) return xs(i, u, s);
            for (r = new (void 0 === n ? wf : n)(Ef(s - u, 0)), o = 0; u < s; u++, o++) u in i && Kn(r, o, i[u]);
            return r.length = o, r;
          }
        });
        var Df = pn.f,
          xf = H(''.startsWith),
          Sf = H(''.slice),
          Cf = Math.min,
          Af = Io('startsWith'),
          Of = !Af && !!function () {
            var e = Df(String.prototype, 'startsWith');
            return e && !e.writable;
          }();
        Rn({
          target: 'String',
          proto: !0,
          forced: !Of && !Af
        }, {
          startsWith: function (e) {
            var t = sr(U(this));
            jo(e);
            var n = Mt(Cf(arguments.length > 1 ? arguments[1] : void 0, t.length)),
              r = sr(e);
            return xf ? xf(t, r, n) : Sf(t, n, n + r.length) === r;
          }
        });
        var kf = Object.assign,
          Tf = Object.defineProperty,
          Bf = H([].concat),
          Ff = !kf || se((function () {
            if (me && 1 !== kf({ b: 1 }, kf(Tf({}, 'a', {
              enumerable: !0,
              get: function () {
                Tf(this, 'b', {
                  value: 3,
                  enumerable: !1
                });
              }
            }), { b: 2 })).b) {
              return !0;
            }
            var e = {},
              t = {},
              n = Symbol(),
              r = 'abcdefghijklmnopqrst';
            return e[n] = 7, r.split('')
              .forEach((function (e) {
                t[e] = e;
              })), 7 != kf({}, e)[n] || hr(kf({}, t))
              .join('') != r;
          })) ? function (e, t) {
            for (var n = G(e), r = arguments.length, o = 1, i = Cn.f, a = cn.f; r > o;) for (var u, s = Pt(arguments[o++]), l = i ? Bf(hr(s), i(s)) : hr(s), c = l.length, f = 0; c > f;) u = l[f++], me && !ke(a, s, u) || (n[u] = s[u]);
            return n;
          } : kf;
        Rn({
          target: 'Object',
          stat: !0,
          forced: Object.assign !== Ff
        }, { assign: Ff });
        var _f = ['props', 'attrs', 'style', 'dataset', 'on', 'hook'];

        function Pf(e) {
          var t = e.data,
            n = void 0 === t ? {} : t,
            r = e.children,
            o = void 0 === r ? [] : r;
          Object.keys(n)
            .forEach((function (t) {
              var r,
                o,
                i = n[t];
              if ('key' !== t) {
                if (!_f.includes(t)) {
                  if (t.startsWith('data-')) {
                    var a = t.slice(5);
                    return a = E.default(a), function (e, t) {
                      null == e.data && (e.data = {});
                      var n = e.data;
                      null == n.dataset && (n.dataset = {}), Object.assign(n.dataset, t);
                    }(e, ((r = {})[a] = i, r)), void delete n[t];
                  }
                  !function (e, t) {
                    null == e.data && (e.data = {});
                    var n = e.data;
                    null == n.props && (n.props = {}), Object.assign(n.props, t);
                  }(e, (o = {}, o[t] = i, o)), delete n[t];
                }
              } else {
                e.key = i;
              }
            })), o.length > 0 && o.forEach((function (e) {
            'string' != typeof e && Pf(e);
          }));
        }

        var jf = [],
          Nf = {};

        function If(e, t, n) {
          var r = n.isInline(e) ? 'span' : 'div';
          return s.jsx(r, null, t);
        }

        function Rf(e, t) {
          var r,
            o = Vu.findKey(t, e),
            i = t.isInline(e),
            a = n.Editor.isVoid(t, e),
            u = Ql(o.id),
            l = {
              id: u,
              key: o.id,
              'data-slate-node': 'element',
              'data-slate-inline': i
            },
            c = e.type,
            f = e.children,
            d = void 0 === f ? [] : f,
            p = function (e) {
              return Nf[e] || If;
            }(c);
          r = a ? null : d.map((function (n, r) {
            return $f(n, r, e, t);
          }));
          var h = p(e, r, t);
          if (a) {
            l['data-slate-void'] = !0;
            var v = i ? 'span' : 'div',
              g = Yi(n.Node.texts(e), 1),
              y = Yi(g[0], 1)[0],
              m = $f(y, 0, e, t),
              b = s.jsx(v, {
                'data-slate-spacer': !0,
                style: {
                  height: '0',
                  color: 'transparent',
                  outline: 'none',
                  position: 'absolute'
                }
              }, m);
            h = s.jsx(v, { style: { position: 'relative' } }, h, b), su.set(y, 0), lu.set(y, e);
          }
          return null == h.data && (h.data = {}), Object.assign(h.data, l), a || i || (h = function (e, t) {
            var n = t;
            return jf.forEach((function (r) {
              n = r(e, t);
            })), n;
          }(e, h)), Zl((function () {
            var t = Bu(u);
            null != t && (du.set(o, t), pu.set(e, t), fu.set(t, e));
          })), h;
        }

        function Mf(e, t) {
          return void 0 === t && (t = !1), s.jsx('span', { 'data-slate-string': !0 }, t ? e + '\n' : e);
        }

        function Lf(e, t) {
          return void 0 === e && (e = 0), void 0 === t && (t = !1), s.jsx('span', {
            'data-slate-zero-width': t ? 'n' : 'z',
            'data-slate-length': e
          }, '\ufeff', t ? s.jsx('br', null) : null);
        }

        function zf(e, t, r) {
          if (null == e.text) throw new Error('Current node is not slate Text ' + JSON.stringify(e));
          var o = Vu.findKey(r, e),
            i = r.getConfig().decorate;
          if (null == i) throw new Error('Can not get config.decorate');
          var a = Vu.findPath(r, e),
            u = i([e, a]),
            l = n.Text.decorations(e, u),
            c = l.map((function (o, i) {
              var a = function (e, t, r, o, i) {
                void 0 === t && (t = !1);
                var a = e.text,
                  u = Vu.findPath(i, r),
                  s = n.Path.parent(u);
                if (n.Editor.isEditor(o)) throw new Error('Text node ' + JSON.stringify(r) + ' parent is Editor');
                return i.isVoid(o) ? Lf(n.Node.string(o).length) : '' !== a || o.children[o.children.length - 1] !== r || i.isInline(o) || '' !== n.Editor.string(i, s) ? '' === a ? Lf() : t && '\n' === a.slice(-1) ? Mf(a, !0) : Mf(a) : Lf(0, !0);
              }(o, i === l.length - 1, e, t, r);
              return a = function (e, t) {
                var n = t;
                return jf.forEach((function (t) {
                  n = t(e, n);
                })), n;
              }(o, a), s.jsx('span', { 'data-slate-leaf': !0 }, a);
            })),
            f = function (e) {
              return 'w-e-text-' + e;
            }(o.id),
            d = s.jsx('span', {
              'data-slate-node': 'text',
              id: f,
              key: o.id
            }, c);
          return Zl((function () {
            var t = Bu(f);
            null != t && (du.set(o, t), pu.set(e, t), fu.set(t, e));
          })), d;
        }

        function $f(e, t, r, o) {
          return su.set(e, t), lu.set(e, r), n.Element.isElement(e) ? Rf(e, o) : zf(e, r, o);
        }

        function Hf(e, t) {
          var n,
            r = e.$scroll,
            o = function (e) {
              return 'w-e-textarea-' + e;
            }(e.id),
            i = t.getConfig(),
            a = i.readOnly,
            u = i.autoFocus,
            l = function (e, t) {
              return void 0 === t && (t = !1), s.h('div#' + e, { props: { contentEditable: !t } });
            }(o, a),
            c = t.children || [];
          l.children = c.map((function (e, n) {
            var r = $f(e, n, t, t);
            return Pf(r), r;
          }));
          var f = iu.get(e);
          if (null == f && (f = !0), f) {
            var d = function (e, t) {
              return m.default('<div\n        id="' + e + '"\n        data-slate-editor\n        data-slate-node="value"\n        suppressContentEditableWarning\n        role="textarea"\n        spellCheck="true"\n        autoCorrect="true"\n        autoCapitalize="true"\n    ></div>');
            }(o);
            r.append(d), e.$textArea = d, n = d[0], (h = s.init([s.classModule, s.propsModule, s.styleModule, s.datasetModule, s.eventListenersModule]))(n, l), iu.set(e, !1), au.set(e, h);
          } else {
            var p = uu.get(e),
              h = au.get(e);
            if (null == p || null == h) return;
            n = p.elm, h(p, l);
          }
          if (null != n || null != (n = Bu(o))) {
            if ((f ? u : t.isFocused()) && n.focus({ preventScroll: !0 }), f) {
              var v = Cu(n);
              v && vu.set(t, v);
            }
            cu.set(t, n), pu.set(t, n), fu.set(n, t), uu.set(e, l);
          }
        }

        function Vf(e) {
          return 'object' == typeof e && null != e && 1 === e.nodeType;
        }

        function Uf(e, t) {
          return (!t || 'hidden' !== e) && 'visible' !== e && 'clip' !== e;
        }

        function Wf(e, t) {
          if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
            var n = getComputedStyle(e, null);
            return Uf(n.overflowY, t) || Uf(n.overflowX, t) || function (e) {
              var t = function (e) {
                if (!e.ownerDocument || !e.ownerDocument.defaultView) return null;
                try {
                  return e.ownerDocument.defaultView.frameElement;
                } catch (e) {
                  return null;
                }
              }(e);
              return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth);
            }(e);
          }
          return !1;
        }

        function Gf(e, t, n, r, o, i, a, u) {
          return i < e && a > t || i > e && a < t ? 0 : i <= e && u <= n || a >= t && u >= n ? i - e - r : a > t && u < n || i < e && u > n ? a - t + o : 0;
        }

        var qf = function (e, t) {
            var n = window,
              r = t.scrollMode,
              o = t.block,
              i = t.inline,
              a = t.boundary,
              u = t.skipOverflowHiddenElements,
              s = 'function' == typeof a ? a : function (e) {
                return e !== a;
              };
            if (!Vf(e)) throw new TypeError('Invalid target');
            for (var l = document.scrollingElement || document.documentElement, c = [], f = e; Vf(f) && s(f);) {
              if ((f = f.parentElement) === l) {
                c.push(f);
                break;
              }
              null != f && f === document.body && Wf(f) && !Wf(document.documentElement) || null != f && Wf(f, u) && c.push(f);
            }
            for (var d = n.visualViewport ? n.visualViewport.width : innerWidth, p = n.visualViewport ? n.visualViewport.height : innerHeight, h = window.scrollX || pageXOffset, v = window.scrollY || pageYOffset, g = e.getBoundingClientRect(), y = g.height, m = g.width, b = g.top, w = g.right, E = g.bottom, D = g.left, x = 'start' === o || 'nearest' === o ? b : 'end' === o ? E : b + y / 2, S = 'center' === i ? D + m / 2 : 'end' === i ? w : D, C = [], A = 0; A < c.length; A++) {
              var O = c[A],
                k = O.getBoundingClientRect(),
                T = k.height,
                B = k.width,
                F = k.top,
                _ = k.right,
                P = k.bottom,
                j = k.left;
              if ('if-needed' === r && b >= 0 && D >= 0 && E <= p && w <= d && b >= F && E <= P && D >= j && w <= _) return C;
              var N = getComputedStyle(O),
                I = parseInt(N.borderLeftWidth, 10),
                R = parseInt(N.borderTopWidth, 10),
                M = parseInt(N.borderRightWidth, 10),
                L = parseInt(N.borderBottomWidth, 10),
                z = 0,
                $ = 0,
                H = 'offsetWidth' in O ? O.offsetWidth - O.clientWidth - I - M : 0,
                V = 'offsetHeight' in O ? O.offsetHeight - O.clientHeight - R - L : 0;
              if (l === O) {
                z = 'start' === o ? x : 'end' === o ? x - p : 'nearest' === o ? Gf(v, v + p, p, R, L, v + x, v + x + y, y) : x - p / 2, $ = 'start' === i ? S : 'center' === i ? S - d / 2 : 'end' === i ? S - d : Gf(h, h + d, d, I, M, h + S, h + S + m, m), z = Math.max(0, z + v), $ = Math.max(0, $ + h);
              } else {
                z = 'start' === o ? x - F - R : 'end' === o ? x - P + L + V : 'nearest' === o ? Gf(F, P, T, R, L + V, x, x + y, y) : x - (F + T / 2) + V / 2, $ = 'start' === i ? S - j - I : 'center' === i ? S - (j + B / 2) + H / 2 : 'end' === i ? S - _ + M + H : Gf(j, _, B, I, M + H, S, S + m, m);
                var U = O.scrollLeft,
                  W = O.scrollTop;
                x += W - (z = Math.max(0, Math.min(W + z, O.scrollHeight - T + V))), S += U - ($ = Math.max(0, Math.min(U + $, O.scrollWidth - B + H)));
              }
              C.push({
                el: O,
                top: z,
                left: $
              });
            }
            return C;
          },
          Kf = k((function (e, t) {
            t.__esModule = !0, t.default = void 0;
            var n,
              r = (n = qf) && n.__esModule ? n : { default: n };

            function o(e) {
              return e === Object(e) && 0 !== Object.keys(e).length;
            }

            var i = function (e, t) {
              var n = !e.ownerDocument.documentElement.contains(e);
              if (o(t) && 'function' == typeof t.behavior) return t.behavior(n ? [] : (0, r.default)(e, t));
              if (!n) {
                var i = function (e) {
                  return !1 === e ? {
                    block: 'end',
                    inline: 'nearest'
                  } : o(e) ? e : {
                    block: 'start',
                    inline: 'nearest'
                  };
                }(t);
                return function (e, t) {
                  void 0 === t && (t = 'auto');
                  var n = 'scrollBehavior' in document.body.style;
                  e.forEach((function (e) {
                    var r = e.el,
                      o = e.top,
                      i = e.left;
                    r.scroll && n ? r.scroll({
                      top: o,
                      left: i,
                      behavior: t
                    }) : (r.scrollTop = o, r.scrollLeft = i);
                  }));
                }((0, r.default)(e, i), i.behavior);
              }
            };
            t.default = i, e.exports = t.default;
          })),
          Yf = O(Kf);

        function Xf(e, t) {
          return Ou(t) && Vu.hasDOMNode(e, t, { editable: !0 });
        }

        function Zf(e, t) {
          if (e.getConfig().readOnly) return !1;
          var r = Jf(e, t) && Vu.toSlateNode(e, t);
          return n.Editor.isVoid(e, r);
        }

        function Jf(e, t) {
          return Ou(t) && Vu.hasDOMNode(e, t);
        }

        function Qf(e, t, r) {
          void 0 === r && (r = !1);
          var o = t.selection,
            i = t.getConfig(),
            a = Vu.findDocumentOrShadowRoot(t)
              .getSelection();
          if (a && (!e.isComposing || r) && t.isFocused()) {
            var u = 'None' !== a.type;
            if (o || u) {
              var s = cu.get(t),
                l = !1;
              if (s.contains(a.anchorNode) && s.contains(a.focusNode) && (l = !0), u && l && o) {
                var c = Vu.toSlateRange(t, a, {
                  exactMatch: !0,
                  suppressThrow: !0
                });
                if (c && n.Range.equals(c, o)) {
                  var f = !0;
                  if (n.Range.isCollapsed(o)) {
                    var d = a.anchorNode,
                      p = a.anchorOffset;
                    if (d === s) {
                      var h = s.childNodes,
                        v = void 0;
                      (v = h[p]) && v.matches('table') && (f = !1), (v = h[p - 1]) && v.matches('table') && (f = !1);
                    }
                  }
                  if (f) return;
                }
              }
              if (!o || Vu.hasRange(t, o)) {
                e.isUpdatingSelection = !0;
                var g = o && Vu.toDOMRange(t, o);
                if (g) {
                  n.Range.isBackward(o) ? a.setBaseAndExtent(g.endContainer, g.endOffset, g.startContainer, g.startOffset) : a.setBaseAndExtent(g.startContainer, g.startOffset, g.endContainer, g.endOffset);
                  var y = g.startContainer.parentElement;
                  if (!y.closest('[data-slate-spacer]')) {
                    y.getBoundingClientRect = g.getBoundingClientRect.bind(g);
                    var m = document.body;
                    Yf(y, {
                      scrollMode: 'if-needed',
                      boundary: i.scroll ? s.parentElement : m,
                      block: 'end',
                      behavior: 'smooth'
                    }), delete y.getBoundingClientRect;
                  }
                } else {
                  a.removeAllRanges();
                }
                setTimeout((function () {
                  g && Ru && s.focus(), e.isUpdatingSelection = !1;
                }));
              } else {
                t.selection = Vu.toSlateRange(t, a, {
                  exactMatch: !1,
                  suppressThrow: !1
                });
              }
            }
          }
        }

        var ed = new WeakMap,
          td = new WeakMap,
          nd = {
            bold: 'mod+b',
            compose: ['down', 'left', 'right', 'up', 'backspace', 'enter'],
            moveBackward: 'left',
            moveForward: 'right',
            moveWordBackward: 'ctrl+left',
            moveWordForward: 'ctrl+right',
            deleteBackward: 'shift?+backspace',
            deleteForward: 'shift?+delete',
            extendBackward: 'shift+left',
            extendForward: 'shift+right',
            italic: 'mod+i',
            splitBlock: 'shift?+enter',
            undo: 'mod+z',
            tab: 'tab',
            selectAll: 'mod+a'
          },
          rd = {
            moveLineBackward: 'opt+up',
            moveLineForward: 'opt+down',
            moveWordBackward: 'opt+left',
            moveWordForward: 'opt+right',
            deleteBackward: ['ctrl+backspace', 'ctrl+h'],
            deleteForward: ['ctrl+delete', 'ctrl+d'],
            deleteLineBackward: 'cmd+shift?+backspace',
            deleteLineForward: ['cmd+shift?+delete', 'ctrl+k'],
            deleteWordBackward: 'opt+shift?+backspace',
            deleteWordForward: 'opt+shift?+delete',
            extendLineBackward: 'opt+shift+up',
            extendLineForward: 'opt+shift+down',
            redo: 'cmd+shift+z',
            transposeCharacter: 'ctrl+t'
          },
          od = {
            deleteWordBackward: 'ctrl+shift?+backspace',
            deleteWordForward: 'ctrl+shift?+delete',
            redo: ['ctrl+y', 'ctrl+shift+z']
          },
          id = function (e) {
            var t = nd[e],
              n = rd[e],
              r = od[e],
              o = t && c.isKeyHotkey(t),
              i = n && c.isKeyHotkey(n),
              a = r && c.isKeyHotkey(r);
            return function (e) {
              return !(!o || !o(e)) || !!(Iu && i && i(e)) || !(Iu || !a || !a(e));
            };
          },
          ad = {
            isBold: id('bold'),
            isCompose: id('compose'),
            isMoveBackward: id('moveBackward'),
            isMoveForward: id('moveForward'),
            isDeleteBackward: id('deleteBackward'),
            isDeleteForward: id('deleteForward'),
            isDeleteLineBackward: id('deleteLineBackward'),
            isDeleteLineForward: id('deleteLineForward'),
            isDeleteWordBackward: id('deleteWordBackward'),
            isDeleteWordForward: id('deleteWordForward'),
            isExtendBackward: id('extendBackward'),
            isExtendForward: id('extendForward'),
            isExtendLineBackward: id('extendLineBackward'),
            isExtendLineForward: id('extendLineForward'),
            isItalic: id('italic'),
            isMoveLineBackward: id('moveLineBackward'),
            isMoveLineForward: id('moveLineForward'),
            isMoveWordBackward: id('moveWordBackward'),
            isMoveWordForward: id('moveWordForward'),
            isRedo: id('redo'),
            isSplitBlock: id('splitBlock'),
            isTransposeCharacter: id('transposeCharacter'),
            isUndo: id('undo'),
            isTab: id('tab'),
            isSelectAll: id('selectAll')
          };

        function ud(e) {
          e.preventDefault();
        }

        var sd = {
            beforeinput: function (e, t, r) {
              var o = e,
                i = r.getConfig().readOnly;
              if (Hu && !i && Xf(r, o.target)) {
                var a = r.selection,
                  u = o.inputType,
                  s = o.dataTransfer || o.data || void 0;
                if ('insertCompositionText' !== u && 'deleteCompositionText' !== u) {
                  if (o.preventDefault(), !u.startsWith('delete') || u.startsWith('deleteBy')) {
                    var l = Yi(o.getTargetRanges(), 1)[0];
                    if (l) {
                      var c = Vu.toSlateRange(r, l, {
                        exactMatch: !1,
                        suppressThrow: !1
                      });
                      a && n.Range.equals(a, c) || n.Transforms.select(r, c);
                    }
                  }
                  if (a && n.Range.isExpanded(a) && u.startsWith('delete')) {
                    var f = u.endsWith('Backward') ? 'backward' : 'forward';
                    n.Editor.deleteFragment(r, { direction: f });
                  } else {
                    switch (u) {
                      case'deleteByComposition':
                      case'deleteByCut':
                      case'deleteByDrag':
                        n.Editor.deleteFragment(r);
                        break;
                      case'deleteContent':
                      case'deleteContentForward':
                        n.Editor.deleteForward(r);
                        break;
                      case'deleteContentBackward':
                        n.Editor.deleteBackward(r);
                        break;
                      case'deleteEntireSoftLine':
                        n.Editor.deleteBackward(r, { unit: 'line' }), n.Editor.deleteForward(r, { unit: 'line' });
                        break;
                      case'deleteHardLineBackward':
                        n.Editor.deleteBackward(r, { unit: 'block' });
                        break;
                      case'deleteSoftLineBackward':
                        n.Editor.deleteBackward(r, { unit: 'line' });
                        break;
                      case'deleteHardLineForward':
                        n.Editor.deleteForward(r, { unit: 'block' });
                        break;
                      case'deleteSoftLineForward':
                        n.Editor.deleteForward(r, { unit: 'line' });
                        break;
                      case'deleteWordBackward':
                        n.Editor.deleteBackward(r, { unit: 'word' });
                        break;
                      case'deleteWordForward':
                        n.Editor.deleteForward(r, { unit: 'word' });
                        break;
                      case'insertLineBreak':
                      case'insertParagraph':
                        n.Editor.insertBreak(r);
                        break;
                      case'insertFromDrop':
                      case'insertFromPaste':
                      case'insertFromYank':
                      case'insertReplacementText':
                      case'insertText':
                        if ('insertFromPaste' === u && !bu.get(r)) break;
                        s instanceof DataTransfer ? r.insertData(s) : 'string' == typeof s && n.Editor.insertText(r, s);
                    }
                  }
                }
              }
            },
            blur: function (e, t, r) {
              var o = e,
                i = t.isUpdatingSelection,
                a = t.latestElement;
              if (!r.getConfig().readOnly && !i && Xf(r, o.target)) {
                var u = Vu.findDocumentOrShadowRoot(r);
                if (a !== u.activeElement) {
                  var s = o.relatedTarget;
                  if (!(s === Vu.toDOMNode(r, r) || Au(s) && s.hasAttribute('data-slate-spacer'))) {
                    if (null != s && Ou(s) && Vu.hasDOMNode(r, s)) {
                      var l = Vu.toSlateNode(r, s);
                      if (n.Element.isElement(l) && !r.isVoid(l)) return;
                    }
                    if (Mu) {
                      var c = u.getSelection();
                      null == c || c.removeAllRanges();
                    }
                    gu.delete(r);
                  }
                }
              }
            },
            focus: function (e, t, n) {
              var r = Vu.toDOMNode(n, n),
                o = Vu.findDocumentOrShadowRoot(n);
              t.latestElement = o.activeElement, Ru && e.target !== r ? r.focus() : gu.set(n, !0);
            },
            click: function (e, t, r) {
              if (!r.getConfig().readOnly && Jf(r, e.target) && Ou(e.target)) {
                var o = Vu.toSlateNode(r, e.target),
                  i = Vu.findPath(r, o);
                if (n.Editor.hasPath(r, i) && n.Node.get(r, i) === o) {
                  var a = n.Editor.start(r, i),
                    u = n.Editor.end(r, i),
                    s = n.Editor.void(r, { at: a }),
                    l = n.Editor.void(r, { at: u });
                  if (s && l && n.Path.equals(s[1], l[1])) {
                    var c = n.Editor.range(r, a);
                    n.Transforms.select(r, c);
                  }
                }
              }
            },
            compositionstart: function (e, t, r) {
              if (Xf(r, e.target)) {
                var o = r.selection;
                if (o && n.Range.isExpanded(o) && (n.Editor.deleteFragment(r), Promise.resolve()
                  .then((function () {
                    Qf(t, r, !0);
                  }))), o && n.Range.isCollapsed(o)) {
                  var i = Vu.toDOMRange(r, o).startContainer,
                    a = i.textContent || '';
                  ed.set(r, a), td.set(r, i);
                }
                t.isComposing = !0, function (e, t) {
                  var n;
                  t.getConfig().placeholder && t.isEmpty() && e.showPlaceholder && (null === (n = e.$placeholder) || void 0 === n || n.hide(), e.showPlaceholder = !1);
                }(t, r);
              }
            },
            compositionend: function (e, t, r) {
              var o = e;
              if (Xf(r, o.target)) {
                t.isComposing = !1;
                var i = r.selection;
                if (null != i) {
                  ($u || Ru) && Vu.cleanExposedTexNodeInSelectionBlock(r);
                  for (var a = n.Range.isBackward(i) ? i.focus : i.anchor, u = Yi(n.Editor.node(r, [a.path[0]]), 1)[0], s = 0; s < a.path.length; s++) {
                    var l = Yi(n.Editor.node(r, a.path.slice(0, s + 1)), 1)[0];
                    if (n.Element.isElement(l) && ((Mu || Ru) && 'link' === l.type || 'code' === l.type)) {
                      Vu.setNewKey(u);
                      break;
                    }
                  }
                  var c = o.data;
                  if (c) {
                    if (r.getConfig().maxLength) {
                      var f = Vu.getLeftLengthOfMaxLength(r);
                      f < c.length ? (Vu.toDOMRange(r, i).startContainer.textContent = ed.get(r) || '', f > 0 && n.Editor.insertText(r, c.slice(0, f)), t.changeViewState()) : n.Editor.insertText(r, c);
                    } else {
                      n.Editor.insertText(r, c);
                    }
                    Mu || setTimeout((function () {
                      var e = r.selection;
                      if (null != e) {
                        var t = td.get(r);
                        null != t && Vu.toDOMRange(r, e).startContainer !== t && (t.textContent = ed.get(r) || '');
                      }
                    }));
                  }
                }
              }
            },
            compositionupdate: function (e, t, n) {
              Xf(n, e.target) && (t.isComposing = !0);
            },
            keydown: function (e, t, r) {
              var o = e,
                i = r.selection;
              if (!r.getConfig().readOnly && !t.isComposing && Xf(r, o.target)) {
                if (function (e, t) {
                  var n = Ja.get(e),
                    r = n && n.getMenus(),
                    o = eu.get(e),
                    i = o && o.getMenus(),
                    a = qi(qi({}, r), i);
                  for (var u in a) {
                    var s = a[u],
                      l = s.hotkey;
                    if (l && c.isHotkey(l, t) && !s.isDisabled(e)) {
                      var f = s.getValue(e);
                      s.exec(e, f);
                    }
                  }
                }(r, o), ad.isTab(o)) {
                  return ud(o), void r.handleTab();
                }
                if (ad.isRedo(o)) return ud(o), void ('function' == typeof r.redo && r.redo());
                if (ad.isUndo(o)) return ud(o), void ('function' == typeof r.undo && r.undo());
                if (ad.isMoveLineBackward(o)) {
                  return ud(o), void n.Transforms.move(r, {
                    unit: 'line',
                    reverse: !0
                  });
                }
                if (ad.isMoveLineForward(o)) return ud(o), void n.Transforms.move(r, { unit: 'line' });
                if (ad.isExtendLineBackward(o)) {
                  return ud(o), void n.Transforms.move(r, {
                    unit: 'line',
                    edge: 'focus',
                    reverse: !0
                  });
                }
                if (ad.isExtendLineForward(o)) {
                  return ud(o), void n.Transforms.move(r, {
                    unit: 'line',
                    edge: 'focus'
                  });
                }
                if (ad.isMoveBackward(o)) return ud(o), void (i && n.Range.isCollapsed(i) ? n.Transforms.move(r, { reverse: !0 }) : n.Transforms.collapse(r, { edge: 'start' }));
                if (ad.isMoveForward(o)) return ud(o), void (i && n.Range.isCollapsed(i) ? n.Transforms.move(r) : n.Transforms.collapse(r, { edge: 'end' }));
                if (ad.isMoveWordBackward(o)) {
                  return ud(o), i && n.Range.isExpanded(i) && n.Transforms.collapse(r, { edge: 'focus' }), void n.Transforms.move(r, {
                    unit: 'word',
                    reverse: !0
                  });
                }
                if (ad.isMoveWordForward(o)) return ud(o), i && n.Range.isExpanded(i) && n.Transforms.collapse(r, { edge: 'focus' }), void n.Transforms.move(r, { unit: 'word' });
                if (ad.isSelectAll(o)) return ud(o), void r.selectAll();
                if (Hu) {
                  if (($u || Mu) && i && (ad.isDeleteBackward(o) || ad.isDeleteForward(o)) && n.Range.isCollapsed(i)) {
                    var a = n.Node.parent(r, i.anchor.path);
                    if (n.Element.isElement(a) && n.Editor.isVoid(r, a) && n.Editor.isInline(r, a)) return o.preventDefault(), void n.Transforms.delete(r, { unit: 'block' });
                  }
                } else {
                  if (ad.isBold(o) || ad.isItalic(o) || ad.isTransposeCharacter(o)) return void ud(o);
                  if (ad.isSplitBlock(o)) return ud(o), void n.Editor.insertBreak(r);
                  if (ad.isDeleteBackward(o)) return ud(o), void (i && n.Range.isExpanded(i) ? n.Editor.deleteFragment(r, { direction: 'backward' }) : n.Editor.deleteBackward(r));
                  if (ad.isDeleteForward(o)) return ud(o), void (i && n.Range.isExpanded(i) ? n.Editor.deleteFragment(r, { direction: 'forward' }) : n.Editor.deleteForward(r));
                  if (ad.isDeleteLineBackward(o)) return ud(o), void (i && n.Range.isExpanded(i) ? n.Editor.deleteFragment(r, { direction: 'backward' }) : n.Editor.deleteBackward(r, { unit: 'line' }));
                  if (ad.isDeleteLineForward(o)) return ud(o), void (i && n.Range.isExpanded(i) ? n.Editor.deleteFragment(r, { direction: 'forward' }) : n.Editor.deleteForward(r, { unit: 'line' }));
                  if (ad.isDeleteWordBackward(o)) return ud(o), void (i && n.Range.isExpanded(i) ? n.Editor.deleteFragment(r, { direction: 'backward' }) : n.Editor.deleteBackward(r, { unit: 'word' }));
                  if (ad.isDeleteWordForward(o)) return ud(o), void (i && n.Range.isExpanded(i) ? n.Editor.deleteFragment(r, { direction: 'forward' }) : n.Editor.deleteForward(r, { unit: 'word' }));
                }
              }
            },
            keypress: function (e, t, r) {
              if (!Hu && !r.getConfig().readOnly && Xf(r, e.target)) {
                e.preventDefault();
                var o = e.key;
                n.Editor.insertText(r, o);
              }
            },
            copy: function (e, t, n) {
              var r = e;
              if (Xf(n, r.target)) {
                r.preventDefault();
                var o = r.clipboardData;
                null != o && n.setFragmentData(o);
              }
            },
            cut: function (e, t, r) {
              var o = e,
                i = r.selection;
              if (!r.getConfig().readOnly && Xf(r, o.target)) {
                o.preventDefault();
                var a = o.clipboardData;
                if (null != a && (r.setFragmentData(a), i)) {
                  if (n.Range.isExpanded(i)) {
                    n.Editor.deleteFragment(r);
                  } else {
                    var u = n.Node.parent(r, i.anchor.path);
                    n.Editor.isVoid(r, u) && n.Transforms.delete(r);
                  }
                }
              }
            },
            paste: function (e, t, n) {
              bu.set(n, !0);
              var r = e;
              if (!n.getConfig().readOnly && Xf(n, r.target)) {
                var o = n.getConfig().customPaste;
                if (o && !1 === o(n, r)) return void bu.set(n, !1);
                if (!Hu || function (e) {
                  return e.clipboardData && '' !== e.clipboardData.getData('text/plain') && 1 === e.clipboardData.types.length;
                }(r)) {
                  r.preventDefault();
                  var i = r.clipboardData;
                  null != i && n.insertData(i);
                }
              }
            },
            dragover: function (e, t, r) {
              if (Jf(r, e.target)) {
                var o = Vu.toSlateNode(r, e.target);
                n.Editor.isVoid(r, o) && e.preventDefault();
              }
            },
            dragstart: function (e, t, r) {
              var o = e;
              if (Jf(r, o.target) && !r.getConfig().readOnly) {
                var i = Vu.toSlateNode(r, o.target),
                  a = Vu.findPath(r, i);
                if (n.Editor.isVoid(r, i) || n.Editor.void(r, {
                  at: a,
                  voids: !0
                })) {
                  var u = n.Editor.range(r, a);
                  n.Transforms.select(r, u);
                }
                var s = o.dataTransfer;
                null != s && (t.isDraggingInternally = !0, r.setFragmentData(s));
              }
            },
            dragend: function (e, t, n) {
              var r = e;
              n.getConfig().readOnly || t.isDraggingInternally && Jf(n, r.target) && (t.isDraggingInternally = !1);
            },
            drop: function (e, t, r) {
              var o = e,
                i = o.dataTransfer;
              if (!r.getConfig().readOnly && Jf(r, o.target) && null != i && !(Hu && Mu && i.files.length > 0)) {
                o.preventDefault();
                var a = r.selection,
                  u = Vu.findEventRange(r, o);
                n.Transforms.select(r, u), t.isDraggingInternally && (a && n.Transforms.delete(r, { at: a }), t.isDraggingInternally = !1), r.insertData(i), r.isFocused() || r.focus();
              }
            }
          },
          ld = 1,
          cd = function () {
            function e(e) {
              var t = this;
              this.id = ld++, this.$textArea = null, this.$progressBar = m.default('<div class="w-e-progress-bar"></div>'), this.$maxLengthInfo = m.default('<div class="w-e-max-length-info"></div>'), this.isComposing = !1, this.isUpdatingSelection = !1, this.isDraggingInternally = !1, this.latestElement = null, this.showPlaceholder = !1, this.$placeholder = null, this.latestEditorSelection = null, this.onDOMSelectionChange = w.default((function () {
                var e = t.editorInstance;
                !function (e, t) {
                  var r = e.isComposing,
                    o = e.isUpdatingSelection,
                    i = e.isDraggingInternally;
                  if (!(t.getConfig().readOnly || r || o || i)) {
                    var a = Vu.findDocumentOrShadowRoot(t),
                      u = a.activeElement,
                      s = Vu.toDOMNode(t, t),
                      l = a.getSelection();
                    if (u === s ? (e.latestElement = u, gu.set(t, !0)) : gu.delete(t), !l) return n.Transforms.deselect(t);
                    var c = l.anchorNode,
                      f = l.focusNode,
                      d = Xf(t, c) || Zf(t, c),
                      p = Xf(t, f) || Zf(t, f);
                    if (d && p) {
                      var h = Vu.toSlateRange(t, l, {
                        exactMatch: !1,
                        suppressThrow: !1
                      });
                      n.Transforms.select(t, h);
                    } else {
                      n.Transforms.deselect(t);
                    }
                  }
                }(t, e);
              }), 100);
              var r = m.default(e);
              if (0 === r.length) throw new Error('Cannot find textarea DOM by selector \'' + e + '\'');
              this.$box = r;
              var o = m.default('<div class="w-e-text-container"></div>');
              o.append(this.$progressBar), o.append(this.$maxLengthInfo), r.append(o);
              var i = m.default('<div class="w-e-scroll"></div>');
              o.append(i), this.$scroll = i, this.$textAreaContainer = o, Zl((function () {
                var e = t.editorInstance,
                  n = Vu.getWindow(e);
                n.document.addEventListener('selectionchange', t.onDOMSelectionChange), e.on('destroyed', (function () {
                  n.document.removeEventListener('selectionchange', t.onDOMSelectionChange);
                })), o.on('click', (function () {
                  return e.hidePanelOrModal();
                })), e.on('change', t.changeViewState.bind(t));
                var r = e.getConfig().onChange;
                r && e.on('change', (function () {
                  return r(e);
                })), t.onFocusAndOnBlur(), e.on('change', t.changeMaxLengthInfo.bind(t)), t.bindEvent();
              }));
            }

            return Object.defineProperty(e.prototype, 'editorInstance', {
              get: function () {
                var e = Xa.get(this);
                if (null == e) throw new Error('Can not get editor instance');
                return e;
              },
              enumerable: !1,
              configurable: !0
            }), e.prototype.bindEvent = function () {
              var e = this,
                t = this.$textArea,
                n = this.$scroll,
                r = this.editorInstance;
              null != t && (b.default(sd, (function (n, o) {
                t.on(o, (function (t) {
                  n(t, e, r);
                }));
              })), r.getConfig().scroll && (n.css('overflow-y', 'auto'), n.on('scroll', w.default((function () {
                r.emit('scroll');
              }), 100))));
            }, e.prototype.onFocusAndOnBlur = function () {
              var e = this,
                t = this.editorInstance,
                n = t.getConfig(),
                r = n.onBlur,
                o = n.onFocus;
              this.latestEditorSelection = t.selection, t.on('change', (function () {
                null == e.latestEditorSelection && null != t.selection ? o && o(t) : null != e.latestEditorSelection && null == t.selection && r && r(t), e.latestEditorSelection = t.selection;
              }));
            }, e.prototype.changeMaxLengthInfo = function () {
              var e = this.editorInstance,
                t = e.getConfig().maxLength;
              if (t) {
                var n = t - Vu.getLeftLengthOfMaxLength(e);
                this.$maxLengthInfo[0].innerHTML = n + '/' + t;
              }
            }, e.prototype.changeProgress = function (e) {
              var t = this.$progressBar;
              t.css('width', e + '%'), e >= 100 && setTimeout((function () {
                t.hide(), t.css('width', '0'), t.show();
              }), 1e3);
            }, e.prototype.changeViewState = function () {
              var e = this,
                t = this.editorInstance;
              Hf(this, t), function (e, t) {
                var n,
                  r = t.getConfig().placeholder;
                if (r) {
                  var o = t.isEmpty();
                  if (o && !e.showPlaceholder && !e.isComposing) {
                    if (null == e.$placeholder) {
                      var i = m.default('<div class="w-e-text-placeholder">' + r + '</div>');
                      e.$textAreaContainer.append(i), e.$placeholder = i;
                    }
                    return e.$placeholder.show(), void (e.showPlaceholder = !0);
                  }
                  !o && e.showPlaceholder && (null === (n = e.$placeholder) || void 0 === n || n.hide(), e.showPlaceholder = !1);
                }
              }(this, t), Zl((function () {
                Qf(e, t);
              }));
            }, e.prototype.destroy = function () {
              this.$textAreaContainer.remove();
            }, e;
          }();

        function fd(e) {
          e.removeAttr('width'), e.removeAttr('height'), e.removeAttr('fill'), e.removeAttr('class'), e.removeAttr('t'), e.removeAttr('p-id');
          var t = e.children();
          t.length && fd(t);
        }

        function dd() {
          return m.default('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>');
        }

        function pd() {
          return m.default('<div class="w-e-bar-divider"></div>');
        }

        function hd(e, t, n, r, o) {
          if (void 0 === o && (o = !1), t) {
            if (r) {
              var i = Iu ? 'cmd' : 'ctrl';
              r = r.replace('mod', i);
            }
            if (o) {
              r && (e.attr('data-tooltip', r), e.addClass('w-e-menu-tooltip-v5'), e.addClass('tooltip-right'));
            } else {
              var a = r ? n + '\n' + r : n;
              e.attr('data-tooltip', a), e.addClass('w-e-menu-tooltip-v5');
            }
          }
        }

        Si('match', (function (e, t, n) {
          return [function (t) {
            var n = U(this),
              r = null == t ? void 0 : Ie(t, e);
            return r ? ke(r, t, n) : new RegExp(t)[e](sr(n));
          }, function (e) {
            var r = Ae(this),
              o = sr(e),
              i = n(t, r, o);
            if (i.done) return i.value;
            if (!r.global) return Ni(r, o);
            var a = r.unicode;
            r.lastIndex = 0;
            for (var u, s = [], l = 0; null !== (u = Ni(r, o));) {
              var c = sr(u[0]);
              s[l] = c, '' === c && (r.lastIndex = Ai(o, Mt(r.lastIndex), a)), l++;
            }
            return 0 === l ? null : s;
          }];
        }));
        var vd = function () {
            function e(e, t) {
              var n = this;
              void 0 === t && (t = !1), this.$elem = m.default('<div class="w-e-bar-item"></div>'), this.$button = m.default('<button type="button"></button>'), this.disabled = !1, this.menu = e;
              var r = e.tag,
                o = e.width;
              if ('button' !== r) throw new Error('Invalid tag \'' + r + '\', expected \'button\'');
              var i = e.title,
                a = e.hotkey,
                u = void 0 === a ? '' : a,
                s = e.iconSvg,
                l = void 0 === s ? '' : s,
                c = this.$button;
              if (l) {
                var f = m.default(l);
                fd(f), c.append(f);
              } else {
                c.text(i);
              }
              hd(c, l, i, u, t), t && l && c.append(m.default('<span class="title">' + i + '</span>')), o && c.css('width', o + 'px'), this.$elem.append(c), Zl((function () {
                return n.init();
              }));
            }

            return e.prototype.init = function () {
              var e = this;
              this.setActive(), this.setDisabled(), this.$button.on('click', (function (t) {
                t.preventDefault(), Ad(e)
                  .hidePanelOrModal(), e.disabled || (e.exec(), e.onButtonClick());
              }));
            }, e.prototype.exec = function () {
              var e = Ad(this),
                t = this.menu,
                n = t.getValue(e);
              t.exec(e, n);
            }, e.prototype.setActive = function () {
              var e = Ad(this),
                t = this.$button,
                n = 'active';
              this.menu.isActive(e) ? t.addClass(n) : t.removeClass(n);
            }, e.prototype.setDisabled = function () {
              var e = Ad(this),
                t = this.$button,
                n = this.menu.isDisabled(e);
              (null == e.selection || e.isDisabled()) && (n = !0), this.menu.alwaysEnable && (n = !1);
              var r = 'disabled';
              n ? t.addClass(r) : t.removeClass(r), this.disabled = n;
            }, e.prototype.changeMenuState = function () {
              this.setActive(), this.setDisabled();
            }, e;
          }(),
          gd = function (e) {
            function t(t, n) {
              return void 0 === n && (n = !1), e.call(this, t, n) || this;
            }

            return Gi(t, e), t.prototype.onButtonClick = function () {
            }, t;
          }(vd),
          yd = function () {
            function e(e) {
              this.isShow = !1, this.showTime = 0, this.record(e);
            }

            return e.prototype.record = function (e) {
              var t = nu.get(e);
              null == t && (t = new Set, nu.set(e, t)), t.add(this), ru.set(this, e);
            }, e.prototype.renderContent = function (e) {
              var t = this.$elem;
              t.empty(), t.append(e);
              var n = this.genSelfElem();
              n && t.append(n);
            }, e.prototype.appendTo = function (e) {
              var t = this.$elem;
              e.append(t);
            }, e.prototype.show = function () {
              if (!this.isShow) {
                this.showTime = Date.now(), this.$elem.show(), this.isShow = !0;
                var e = ru.get(this);
                e && e.emit('modalOrPanelShow', this);
              }
            }, e.prototype.hide = function () {
              if (this.isShow && !(Date.now() - this.showTime < 200)) {
                this.$elem.hide(), this.isShow = !1;
                var e = ru.get(this);
                e && e.emit('modalOrPanelHide');
              }
            }, e;
          }(),
          md = function (e) {
            function t(t) {
              var n = e.call(this, t) || this;
              return n.type = 'dropPanel', n.$elem = m.default('<div class="w-e-drop-panel"></div>'), n;
            }

            return Gi(t, e), t.prototype.genSelfElem = function () {
              return null;
            }, t;
          }(yd),
          bd = function (e) {
            function t(t, n) {
              void 0 === n && (n = !1);
              var r = e.call(this, t, n) || this;
              if (r.dropPanel = null, r.menu = t, t.showDropPanel) {
                var o = dd();
                r.$button.append(o);
              }
              return r;
            }

            return Gi(t, e), t.prototype.onButtonClick = function () {
              this.menu.showDropPanel && this.handleDropPanel();
            }, t.prototype.handleDropPanel = function () {
              var e = this.menu;
              if (null != e.getPanelContentElem) {
                var t = Ad(this);
                if (null == this.dropPanel) {
                  var n = new md(t),
                    r = e.getPanelContentElem(t);
                  n.renderContent(r), n.appendTo(this.$elem), n.show(), this.dropPanel = n;
                } else {
                  var o = this.dropPanel;
                  o.isShow ? o.hide() : (r = e.getPanelContentElem(t), o.renderContent(r), o.show());
                }
                var i = this.dropPanel;
                if (i.isShow) {
                  var a = this.$elem,
                    u = a.offset().left,
                    s = a.parents('.w-e-bar');
                  u - s.offset().left >= s.width() / 2 ? i.$elem.css({
                    left: 'none',
                    right: '0'
                  }) : i.$elem.css({
                    left: '0',
                    right: 'none'
                  });
                }
              }
            }, t;
          }(vd),
          wd = function (e) {
            function t(t, n) {
              void 0 === n && (n = 0);
              var r = e.call(this, t) || this;
              r.type = 'modal', r.$elem = m.default('<div class="w-e-modal"></div>'), r.width = 0, n && (r.width = n);
              var o = r.$elem;
              return o.on('click', (function (e) {
                return e.stopPropagation();
              })), o.on('keyup', (function (e) {
                'Escape' === e.code && (r.hide(), t.restoreSelection());
              })), r;
            }

            return Gi(t, e), t.prototype.genSelfElem = function () {
              var e = this,
                t = m.default('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),
                n = ru.get(this);
              return t.on('click', (function () {
                e.hide(), null == n || n.restoreSelection();
              })), t;
            }, t.prototype.setStyle = function (e) {
              var t = this.width,
                n = this.$elem;
              n.attr('style', ''), t && n.css('width', t + 'px'), n.css(e);
            }, t;
          }(yd),
          Ed = function (e) {
            function t(t, n) {
              void 0 === n && (n = !1);
              var r = e.call(this, t, n) || this;
              return r.$body = m.default('body'), r.modal = null, r.menu = t, r;
            }

            return Gi(t, e), t.prototype.onButtonClick = function () {
              this.menu.showModal && this.handleModal();
            }, t.prototype.getPosition = function () {
              var e = Ad(this),
                t = this.menu.getModalPositionNode(e);
              return n.Element.isElement(t) ? gf(e, t, 'modal') : vf(e);
            }, t.prototype.handleModal = function () {
              var e = Ad(this),
                t = this.menu;
              if (null == this.modal) {
                var n = new wd(e, t.modalWidth);
                this.renderAndShowModal(n, !0), this.modal = n;
              } else {
                (n = this.modal).isShow ? n.hide() : this.renderAndShowModal(n, !1);
              }
            }, t.prototype.renderAndShowModal = function (e, t) {
              void 0 === t && (t = !1);
              var n = Ad(this),
                r = this.menu;
              if (null != r.getModalContentElem) {
                var o = Vu.getTextarea(n),
                  i = Vu.getToolbar(n),
                  a = ((null == i ? void 0 : i.getConfig()) || {}).modalAppendToBody,
                  u = r.getModalContentElem(n);
                if (e.renderContent(u), a) {
                  e.setStyle({
                    left: '0',
                    right: '0'
                  });
                } else {
                  var s = this.getPosition();
                  e.setStyle(s);
                }
                t && (a ? e.appendTo(this.$body) : e.appendTo(o.$textAreaContainer)), e.show(), a || yf(n, e.$elem), setTimeout((function () {
                  n.blur();
                }));
              }
            }, t;
          }(vd),
          Dd = function (e) {
            function t(t, n) {
              var r = e.call(this, t) || this;
              return r.type = 'selectList', r.$elem = m.default('<div class="w-e-select-list"></div>'), n && r.$elem.css('width', n + 'px'), r.$elem.on('click', (function (e) {
                e.stopPropagation();
              })), r;
            }

            return Gi(t, e), t.prototype.renderList = function (e) {
              var t = this.$elem;
              t.empty();
              var n = m.default('<ul></ul>');
              e.forEach((function (e) {
                var t = e.value,
                  r = e.text,
                  o = e.selected,
                  i = e.styleForRenderMenuList,
                  a = m.default('<li data-value="' + t + '"></li>');
                if (i && a.css(i), o) {
                  var u = m.default('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');
                  a.append(u), a.addClass('selected');
                }
                a.append(m.default('<span data-value="' + t + '">' + r + '</span>')), a.attr('title', r), n.append(a);
              })), t.append(n);
            }, t.prototype.genSelfElem = function () {
              return null;
            }, t;
          }(yd),
          xd = function () {
            function e(e, t) {
              var n = this;
              void 0 === t && (t = !1), this.$elem = m.default('<div class="w-e-bar-item"></div>'), this.$button = m.default('<button type="button" class="select-button"></button>'), this.disabled = !1, this.selectList = null;
              var r = e.tag,
                o = e.title,
                i = e.width,
                a = e.iconSvg,
                u = void 0 === a ? '' : a,
                s = e.hotkey,
                l = void 0 === s ? '' : s;
              if ('select' !== r) throw new Error('Invalid tag \'' + r + '\', expected \'select\'');
              var c = this.$button;
              i && c.css('width', i + 'px'), hd(c, u, o, l, t), this.$elem.append(c), this.menu = e, Zl((function () {
                return n.init();
              }));
            }

            return e.prototype.init = function () {
              var e = this;
              this.setSelectedValue(), this.$button.on('click', (function (t) {
                t.preventDefault(), Ad(e)
                  .hidePanelOrModal(), e.trigger();
              }));
            }, e.prototype.trigger = function () {
              var e = this,
                t = Ad(this);
              if (!t.isDisabled() && !this.disabled) {
                var n = this.menu;
                if (null == this.selectList) {
                  this.selectList = new Dd(t, n.selectPanelWidth);
                  var r = this.selectList,
                    o = n.getOptions(t);
                  r.renderList(o), r.appendTo(this.$elem), r.show(), r.$elem.on('click', 'li', (function (t) {
                    var n = t.target;
                    if (null != n) {
                      t.preventDefault();
                      var r = m.default(n)
                        .attr('data-value');
                      e.onChange(r);
                    }
                  }));
                } else {
                  (r = this.selectList).isShow ? r.hide() : (o = n.getOptions(t), r.renderList(o), r.show());
                }
              }
            }, e.prototype.onChange = function (e) {
              var t = Ad(this),
                n = this.menu;
              n.exec && n.exec(t, e);
            }, e.prototype.setSelectedValue = function () {
              var e = Ad(this),
                t = this.menu,
                n = t.getValue(e),
                r = function (e, t) {
                  for (var n = e.length, r = '', o = 0; o < n; o++) {
                    var i = e[o];
                    if (i.value === t) {
                      r = i.text;
                      break;
                    }
                  }
                  return r;
                }(t.getOptions(e), n.toString()),
                o = this.$button,
                i = dd();
              o.empty(), o.text(r), o.append(i);
            }, e.prototype.setDisabled = function () {
              var e = Ad(this),
                t = this.menu.isDisabled(e),
                n = this.$button;
              (null == e.selection || e.isDisabled()) && (t = !0);
              var r = 'disabled';
              t ? n.addClass(r) : n.removeClass(r), this.disabled = t;
            }, e.prototype.changeMenuState = function () {
              this.setSelectedValue(), this.setDisabled();
            }, e;
          }(),
          Sd = function () {
            function e(e) {
              this.$elem = m.default('<div class="w-e-bar-item w-e-bar-item-group"></div>'), this.$container = m.default('<div class="w-e-bar-item-menus-container"></div>'), this.$button = m.default('<button type="button"></button>');
              var t = e.iconSvg,
                n = e.title,
                r = this.$elem,
                o = this.$button;
              if (t) {
                var i = m.default(t);
                fd(i), o.append(i);
              } else {
                o.text(n);
              }
              var a = dd();
              o.append(a), r.append(o);
              var u = this.$container;
              r.append(u);
              var s = this.createObserver();
              this.observe(s);
            }

            return e.prototype.appendBarItem = function (e) {
              var t = e.$elem;
              this.$container.append(t);
            }, e.prototype.observe = function (e) {
              var t = this.$container;
              e.observe(t[0], {
                childList: !0,
                subtree: !0,
                attributes: !0
              });
            }, e.prototype.createObserver = function () {
              var e = this,
                t = this.$container,
                n = this.$button,
                r = new MutationObserver((function () {
                  var o = t.find('button'),
                    i = o.length;
                  if (0 !== i) {
                    var a = 0;
                    o.each((function (e) {
                      m.default(e)
                        .hasClass('disabled') && a++;
                    })), r.disconnect(), a === i ? n.addClass('disabled') : n.removeClass('disabled'), e.observe(r);
                  }
                }));
              return r;
            }, e;
          }(),
          Cd = new WeakMap;

        function Ad(e) {
          var t = tu.get(e);
          if (null == t) throw new Error('Can not get editor instance');
          return t;
        }

        function Od(e, t) {
          void 0 === t && (t = !1);
          var n = Cd.get(e);
          if (n) return n;
          var r = e.tag;
          if ('button' === r) {
            var o = e.showDropPanel,
              i = e.showModal;
            n = o ? new bd(e, t) : i ? new Ed(e, t) : new gd(e, t);
          }
          if ('select' === r && (n = new xd(e, t)), null == n) throw new Error('Invalid tag in menu ' + JSON.stringify(e));
          return Cd.set(e, n), n;
        }

        function kd(e, t) {
          var r = e.selection;
          return null != r && !n.Range.isCollapsed(r) && !Vu.getSelectedElems(e)
            .some((function (t) {
              if (e.isVoid(t)) return !0;
              var n = t.type;
              return !!['pre', 'code', 'table'].includes(n) || void 0;
            })) && !!n.Text.isText(t);
        }

        var Td = function () {
          function e() {
            var e = this;
            this.$elem = m.default('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'), this.menus = {}, this.hoverbarItems = [], this.prevSelectedNode = null, this.isShow = !1, this.changeHoverbarState = D.default((function () {
              var t = e.isShow,
                r = e.getSelectedNodeAndMenuKeys() || {},
                o = r.node,
                i = void 0 === o ? null : o,
                a = r.menuKeys,
                u = void 0 === a ? [] : a;
              null != i && e.changeItemsState(), i && n.Element.isElement(i) && t && e.isSamePath(i, e.prevSelectedNode) || (e.hideAndClean(), null != i && (e.registerItems(u), e.setPosition(i), e.show()), e.prevSelectedNode = i);
            }), 200), Zl((function () {
              var t = e.getEditorInstance(),
                n = e.$elem;
              n.on('mousedown', (function (e) {
                return e.preventDefault();
              })), Vu.getTextarea(t)
                .$textAreaContainer
                .append(n), t.on('change', e.changeHoverbarState);
              var r = e.hideAndClean.bind(e);
              t.on('scroll', r), t.on('fullScreen', r), t.on('unFullScreen', r);
            }));
          }

          return e.prototype.getMenus = function () {
            return this.menus;
          }, e.prototype.hideAndClean = function () {
            var e = this.$elem;
            e.removeClass('w-e-bar-show')
              .addClass('w-e-bar-hidden'), this.hoverbarItems = [], e.empty(), this.isShow = !1;
          }, e.prototype.checkPositionBottom = function () {
            var e = this.$elem,
              t = !1,
              n = window.innerHeight;
            n && n >= 360 && n - e[0].getBoundingClientRect().bottom < 360 && (t = !0), t ? e.addClass('w-e-bar-bottom') : e.removeClass('w-e-bar-bottom');
          }, e.prototype.show = function () {
            this.$elem.removeClass('w-e-bar-hidden')
              .addClass('w-e-bar-show'), this.isShow = !0, this.checkPositionBottom();
          }, e.prototype.changeItemsState = function () {
            var e = this;
            Zl((function () {
              e.hoverbarItems.forEach((function (e) {
                e.changeMenuState();
              }));
            }));
          }, e.prototype.registerItems = function (e) {
            var t = this,
              n = this.$elem;
            e.forEach((function (e) {
              if ('|' !== e) {
                t.registerSingleItem(e);
              } else {
                var r = pd();
                n.append(r);
              }
            }));
          }, e.prototype.registerSingleItem = function (e) {
            var t = this.getEditorInstance(),
              n = this.menus,
              r = n[e];
            if (null == r) {
              var o = Gu[e];
              if (null == o) throw new Error('Not found menu item factory by key \'' + e + '\'');
              if ('function' != typeof o) throw new Error('Menu item factory (key=\'' + e + '\') is not a function');
              r = o(), n[e] = r;
            }
            var i = Od(r);
            this.hoverbarItems.push(i), tu.set(i, t), this.$elem.append(i.$elem);
          }, e.prototype.setPosition = function (e) {
            var t = this.getEditorInstance(),
              r = this.$elem;
            if (r.attr('style', ''), n.Element.isElement(e)) {
              var o = gf(t, e, 'bar');
              return r.css(o), void yf(t, r);
            }
            if (n.Text.isText(e)) return o = vf(t), r.css(o), void yf(t, r);
            throw new Error('hoverbar.setPosition error, current selected node is not elem nor text');
          }, e.prototype.getSelectedNodeAndMenuKeys = function () {
            var e = this.getEditorInstance();
            if (null == e.selection) return null;
            var t = this.getHoverbarKeysConf(),
              r = null,
              o = [],
              i = function (i) {
                var a = t[i],
                  u = a.match,
                  s = a.menuKeys,
                  l = void 0 === s ? [] : s,
                  c = u || function (e, t) {
                    return Vu.checkNodeType(t, i);
                  },
                  f = Yi(n.Editor.nodes(e, {
                    match: function (t) {
                      return c(e, t);
                    },
                    universal: !0
                  }), 1)[0];
                if (null != f) return r = f[0], o = l, 'break';
              };
            for (var a in t) if ('break' === i(a)) break;
            return null == r || 0 === o.length ? null : {
              node: r,
              menuKeys: o
            };
          }, e.prototype.getEditorInstance = function () {
            var e = Qa.get(this);
            if (null == e) throw new Error('Can not get editor instance');
            return e;
          }, e.prototype.getHoverbarKeysConf = function () {
            var e = this.getEditorInstance()
                .getConfig().hoverbarKeys,
              t = void 0 === e ? {} : e,
              n = t.text;
            return n && null == n.match && (n.match = kd), t;
          }, e.prototype.isSamePath = function (e, t) {
            if (null == e || null == t) return !1;
            var r = Vu.findPath(null, e),
              o = Vu.findPath(null, t);
            return n.Path.equals(r, o);
          }, e.prototype.destroy = function () {
            this.changeHoverbarState.cancel(), this.$elem.remove(), this.menus = {}, this.hoverbarItems = [], this.prevSelectedNode = null;
          }, e;
        }();

        function Bd(e, t, n) {
          var r = m.default(n);
          return !!r.attr(t) || (r.attr(t, 'true'), e.on('destroyed', (function () {
            r.removeAttr(t);
          })), !1);
        }

        function Fd(e, t, r, o) {
          if (su.set(e, t), lu.set(e, r), n.Element.isElement(e)) {
            var i = e.children;
            if ((void 0 === i ? [] : i).forEach((function (t, n) {
              return Fd(t, n, e, o);
            })), n.Editor.isVoid(o, e)) {
              var a = Yi(n.Node.texts(e), 1),
                u = Yi(a[0], 1)[0];
              su.set(u, 0), lu.set(u, e);
            }
          }
        }

        var _d = Ln('splice'),
          Pd = _.TypeError,
          jd = Math.max,
          Nd = Math.min,
          Id = 9007199254740991,
          Rd = 'Maximum allowed length exceeded';
        Rn({
          target: 'Array',
          proto: !0,
          forced: !_d
        }, {
          splice: function (e, t) {
            var n,
              r,
              o,
              i,
              a,
              u,
              s = G(this),
              l = Lt(s),
              c = gn(e, l),
              f = arguments.length;
            if (0 === f ? n = r = 0 : 1 === f ? (n = 0, r = l - c) : (n = f - 2, r = Nd(jd(It(t), 0), l - c)), l + n - r > Id) throw Pd(Rd);
            for (o = Zt(s, r), i = 0; i < r; i++) (a = c + i) in s && Kn(o, i, s[a]);
            if (o.length = r, n < r) {
              for (i = c; i < l - r; i++) u = i + n, (a = i + r) in s ? s[u] = s[a] : delete s[u];
              for (i = l; i > l - r + n; i--) delete s[i - 1];
            } else if (n > r) for (i = l - r; i > c; i--) u = i + n - 1, (a = i + r - 1) in s ? s[u] = s[a] : delete s[u];
            for (i = 0; i < n; i++) s[i + c] = arguments[i + 2];
            return s.length = l - r + n, o;
          }
        });
        var Md = function () {
            function e(e, t) {
              var n = this;
              this.$toolbar = m.default('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'), this.menus = {}, this.toolbarItems = [], this.config = {}, this.changeToolbarState = D.default((function () {
                n.toolbarItems.forEach((function (e) {
                  e.changeMenuState();
                }));
              }), 200), this.config = t;
              var r = m.default(e);
              if (0 === r.length) throw new Error('Cannot find toolbar DOM by selector \'' + e + '\'');
              this.$box = r;
              var o = this.$toolbar;
              o.on('mousedown', (function (e) {
                return e.preventDefault();
              })), r.append(o), Zl((function () {
                n.registerItems(), n.changeToolbarState(), n.getEditorInstance()
                  .on('change', n.changeToolbarState);
              }));
            }

            return e.prototype.getMenus = function () {
              return this.menus;
            }, e.prototype.getConfig = function () {
              return this.config;
            }, e.prototype.registerItems = function () {
              var e = this,
                t = '',
                n = this.$toolbar,
                r = this.config,
                o = r.toolbarKeys,
                i = void 0 === o ? [] : o,
                a = r.insertKeys,
                u = void 0 === a ? {
                  index: 0,
                  keys: []
                } : a,
                s = r.excludeKeys,
                l = void 0 === s ? [] : s,
                c = x.default(i);
              u.keys.length > 0 && ('string' == typeof u.keys && (u.keys = [u.keys]), u.keys.forEach((function (e, t) {
                c.splice(u.index + t, 0, e);
              })));
              var f = c.filter((function (e) {
                  if ('string' == typeof e) {
                    if (l.includes(e)) return !1;
                  } else if (l.includes(e.key)) return !1;
                  return !0;
                })),
                d = f.length;
              f.forEach((function (r, o) {
                if ('|' === r) {
                  if (0 === o) return;
                  if (o + 1 === d) return;
                  if ('|' === t) return;
                  var i = pd();
                  return n.append(i), void (t = r);
                }
                if ('string' == typeof r) return e.registerSingleItem(r, e), void (t = r);
                e.registerGroup(r), t = 'group';
              }));
            }, e.prototype.registerGroup = function (e) {
              var t = this,
                n = this.$toolbar,
                r = function (e) {
                  return new Sd(e);
                }(e),
                o = e.menuKeys,
                i = void 0 === o ? [] : o,
                a = this.config.excludeKeys,
                u = void 0 === a ? [] : a;
              i.forEach((function (e) {
                u.includes(e) || t.registerSingleItem(e, r);
              })), n.append(r.$elem);
            }, e.prototype.registerSingleItem = function (e, t) {
              var n = this.getEditorInstance(),
                r = t instanceof Sd,
                o = this.menus,
                i = o[e];
              if (null == i) {
                var a = Gu[e];
                if (null == a) throw new Error('Not found menu item factory by key \'' + e + '\'');
                if ('function' != typeof a) throw new Error('Menu item factory (key=\'' + e + '\') is not a function');
                i = a(), o[e] = i;
              } else {
                console.warn('Duplicated toolbar menu key \'' + e + '\'\n重复注册了菜单栏 menu \'' + e + '\'');
              }
              var u = Od(i, r);
              this.toolbarItems.push(u), tu.set(u, n), r ? t.appendBarItem(u) : t.$toolbar.append(u.$elem);
            }, e.prototype.getEditorInstance = function () {
              var e = Za.get(this);
              if (null == e) throw new Error('Can not get editor instance');
              return e;
            }, e.prototype.destroy = function () {
              this.$toolbar.remove(), this.menus = {}, this.toolbarItems = [];
            }, e;
          }(),
          Ld = vt.EXISTS,
          zd = Ue.f,
          $d = Function.prototype,
          Hd = H($d.toString),
          Vd = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,
          Ud = H(Vd.exec);
        me && !Ld && zd($d, 'name', {
          configurable: !0,
          get: function () {
            try {
              return Ud(Vd, Hd(this))[1];
            } catch (e) {
              return '';
            }
          }
        });
        var Wd = k((function (e) {
            function t(n) {
              return 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? (e.exports = t = function (e) {
                return typeof e;
              }, e.exports.default = e.exports, e.exports.__esModule = !0) : (e.exports = t = function (e) {
                return e && 'function' == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? 'symbol' : typeof e;
              }, e.exports.default = e.exports, e.exports.__esModule = !0), t(n);
            }

            e.exports = t, e.exports.default = e.exports, e.exports.__esModule = !0;
          })),
          Gd = k((function (e) {
            e.exports = function (e, t, n) {
              return t in e ? Object.defineProperty(e, t, {
                value: n,
                enumerable: !0,
                configurable: !0,
                writable: !0
              }) : e[t] = n, e;
            }, e.exports.default = e.exports, e.exports.__esModule = !0;
          })),
          qd = k((function (e) {
            e.exports = function (e) {
              for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? Object(arguments[t]) : {},
                  r = Object.keys(n);
                'function' == typeof Object.getOwnPropertySymbols && r.push.apply(r, Object.getOwnPropertySymbols(n)
                  .filter((function (e) {
                    return Object.getOwnPropertyDescriptor(n, e).enumerable;
                  }))), r.forEach((function (t) {
                  Gd(e, t, n[t]);
                }));
              }
              return e;
            }, e.exports.default = e.exports, e.exports.__esModule = !0;
          })),
          Kd = k((function (e) {
            e.exports = function (e, t) {
              if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function');
            }, e.exports.default = e.exports, e.exports.__esModule = !0;
          })),
          Yd = k((function (e) {
            function t(e, t) {
              for (var n = 0; n < t.length; n++) {
                var r = t[n];
                r.enumerable = r.enumerable || !1, r.configurable = !0, 'value' in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
              }
            }

            e.exports = function (e, n, r) {
              return n && t(e.prototype, n), r && t(e, r), e;
            }, e.exports.default = e.exports, e.exports.__esModule = !0;
          })),
          Xd = k((function (e) {
            e.exports = function (e) {
              if (void 0 === e) throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');
              return e;
            }, e.exports.default = e.exports, e.exports.__esModule = !0;
          })),
          Zd = k((function (e) {
            var t = Wd.default;
            e.exports = function (e, n) {
              if (n && ('object' === t(n) || 'function' == typeof n)) return n;
              if (void 0 !== n) throw new TypeError('Derived constructors may only return object or undefined');
              return Xd(e);
            }, e.exports.default = e.exports, e.exports.__esModule = !0;
          })),
          Jd = k((function (e) {
            function t(n) {
              return e.exports = t = Object.setPrototypeOf ? Object.getPrototypeOf : function (e) {
                return e.__proto__ || Object.getPrototypeOf(e);
              }, e.exports.default = e.exports, e.exports.__esModule = !0, t(n);
            }

            e.exports = t, e.exports.default = e.exports, e.exports.__esModule = !0;
          })),
          Qd = k((function (e) {
            function t(n, r) {
              return e.exports = t = Object.setPrototypeOf || function (e, t) {
                return e.__proto__ = t, e;
              }, e.exports.default = e.exports, e.exports.__esModule = !0, t(n, r);
            }

            e.exports = t, e.exports.default = e.exports, e.exports.__esModule = !0;
          })),
          ep = k((function (e) {
            e.exports = function (e, t) {
              if ('function' != typeof t && null !== t) throw new TypeError('Super expression must either be null or a function');
              e.prototype = Object.create(t && t.prototype, {
                constructor: {
                  value: e,
                  writable: !0,
                  configurable: !0
                }
              }), t && Qd(e, t);
            }, e.exports.default = e.exports, e.exports.__esModule = !0;
          }));

        function tp(e) {
          return e && 'object' == typeof e && 'default' in e ? e : { default: e };
        }

        var np = tp(Wd),
          rp = tp(qd),
          op = tp(Kd),
          ip = tp(Yd),
          ap = tp(Zd),
          up = tp(Jd),
          sp = tp(Xd),
          lp = tp(ep),
          cp = {
            type: 'logger',
            log: function (e) {
              this.output('log', e);
            },
            warn: function (e) {
              this.output('warn', e);
            },
            error: function (e) {
              this.output('error', e);
            },
            output: function (e, t) {
              console && console[e] && console[e].apply(console, t);
            }
          },
          fp = function () {
            function e(t) {
              var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
              op.default(this, e), this.init(t, n);
            }

            return ip.default(e, [{
              key: 'init',
              value: function (e) {
                var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
                this.prefix = t.prefix || 'i18next:', this.logger = e || cp, this.options = t, this.debug = t.debug;
              }
            }, {
              key: 'setDebug',
              value: function (e) {
                this.debug = e;
              }
            }, {
              key: 'log',
              value: function () {
                for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
                return this.forward(t, 'log', '', !0);
              }
            }, {
              key: 'warn',
              value: function () {
                for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
                return this.forward(t, 'warn', '', !0);
              }
            }, {
              key: 'error',
              value: function () {
                for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
                return this.forward(t, 'error', '');
              }
            }, {
              key: 'deprecate',
              value: function () {
                for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
                return this.forward(t, 'warn', 'WARNING DEPRECATED: ', !0);
              }
            }, {
              key: 'forward',
              value: function (e, t, n, r) {
                return r && !this.debug ? null : ('string' == typeof e[0] && (e[0] = ''.concat(n)
                  .concat(this.prefix, ' ')
                  .concat(e[0])), this.logger[t](e));
              }
            }, {
              key: 'create',
              value: function (t) {
                return new e(this.logger, rp.default({}, {
                  prefix: ''.concat(this.prefix, ':')
                    .concat(t, ':')
                }, this.options));
              }
            }]), e;
          }(),
          dp = new fp,
          pp = function () {
            function e() {
              op.default(this, e), this.observers = {};
            }

            return ip.default(e, [{
              key: 'on',
              value: function (e, t) {
                var n = this;
                return e.split(' ')
                  .forEach((function (e) {
                    n.observers[e] = n.observers[e] || [], n.observers[e].push(t);
                  })), this;
              }
            }, {
              key: 'off',
              value: function (e, t) {
                this.observers[e] && (t ? this.observers[e] = this.observers[e].filter((function (e) {
                  return e !== t;
                })) : delete this.observers[e]);
              }
            }, {
              key: 'emit',
              value: function (e) {
                for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
                this.observers[e] && [].concat(this.observers[e])
                  .forEach((function (e) {
                    e.apply(void 0, n);
                  })), this.observers['*'] && [].concat(this.observers['*'])
                  .forEach((function (t) {
                    t.apply(t, [e].concat(n));
                  }));
              }
            }]), e;
          }();

        function hp() {
          var e,
            t,
            n = new Promise((function (n, r) {
              e = n, t = r;
            }));
          return n.resolve = e, n.reject = t, n;
        }

        function vp(e) {
          return null == e ? '' : '' + e;
        }

        function gp(e, t, n) {
          e.forEach((function (e) {
            t[e] && (n[e] = t[e]);
          }));
        }

        function yp(e, t, n) {
          function r(e) {
            return e && e.indexOf('###') > -1 ? e.replace(/###/g, '.') : e;
          }

          function o() {
            return !e || 'string' == typeof e;
          }

          for (var i = 'string' != typeof t ? [].concat(t) : t.split('.'); i.length > 1;) {
            if (o()) return {};
            var a = r(i.shift());
            !e[a] && n && (e[a] = new n), e = Object.prototype.hasOwnProperty.call(e, a) ? e[a] : {};
          }
          return o() ? {} : {
            obj: e,
            k: r(i.shift())
          };
        }

        function mp(e, t, n) {
          var r = yp(e, t, Object);
          r.obj[r.k] = n;
        }

        function bp(e, t) {
          var n = yp(e, t),
            r = n.obj,
            o = n.k;
          if (r) return r[o];
        }

        function wp(e, t, n) {
          var r = bp(e, n);
          return void 0 !== r ? r : bp(t, n);
        }

        function Ep(e, t, n) {
          for (var r in t) '__proto__' !== r && 'constructor' !== r && (r in e ? 'string' == typeof e[r] || e[r] instanceof String || 'string' == typeof t[r] || t[r] instanceof String ? n && (e[r] = t[r]) : Ep(e[r], t[r], n) : e[r] = t[r]);
          return e;
        }

        function Dp(e) {
          return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
        }

        var xp = {
          '&': '&amp;',
          '<': '&lt;',
          '>': '&gt;',
          '"': '&quot;',
          '\'': '&#39;',
          '/': '&#x2F;'
        };

        function Sp(e) {
          return 'string' == typeof e ? e.replace(/[&<>"'\/]/g, (function (e) {
            return xp[e];
          })) : e;
        }

        var Cp = 'undefined' != typeof window && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf('MSIE') > -1;

        function Ap(e, t) {
          var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : '.';
          if (e) {
            if (e[t]) return e[t];
            for (var r = t.split(n), o = e, i = 0; i < r.length; ++i) {
              if (!o) return;
              if ('string' == typeof o[r[i]] && i + 1 < r.length) return;
              if (void 0 === o[r[i]]) {
                for (var a = 2, u = r.slice(i, i + a)
                  .join(n), s = o[u]; void 0 === s && r.length > i + a;) {
                  a++, s = o[u = r.slice(i, i + a)
                    .join(n)];
                }
                if (void 0 === s) return;
                if ('string' == typeof s) return s;
                if (u && 'string' == typeof s[u]) return s[u];
                var l = r.slice(i + a)
                  .join(n);
                return l ? Ap(s, l, n) : void 0;
              }
              o = o[r[i]];
            }
            return o;
          }
        }

        var Op = function (e) {
            function t(e) {
              var n,
                r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {
                  ns: ['translation'],
                  defaultNS: 'translation'
                };
              return op.default(this, t), n = ap.default(this, up.default(t)
                .call(this)), Cp && pp.call(sp.default(n)), n.data = e || {}, n.options = r, void 0 === n.options.keySeparator && (n.options.keySeparator = '.'), void 0 === n.options.ignoreJSONStructure && (n.options.ignoreJSONStructure = !0), n;
            }

            return lp.default(t, e), ip.default(t, [{
              key: 'addNamespaces',
              value: function (e) {
                this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
              }
            }, {
              key: 'removeNamespaces',
              value: function (e) {
                var t = this.options.ns.indexOf(e);
                t > -1 && this.options.ns.splice(t, 1);
              }
            }, {
              key: 'getResource',
              value: function (e, t, n) {
                var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {},
                  o = void 0 !== r.keySeparator ? r.keySeparator : this.options.keySeparator,
                  i = void 0 !== r.ignoreJSONStructure ? r.ignoreJSONStructure : this.options.ignoreJSONStructure,
                  a = [e, t];
                n && 'string' != typeof n && (a = a.concat(n)), n && 'string' == typeof n && (a = a.concat(o ? n.split(o) : n)), e.indexOf('.') > -1 && (a = e.split('.'));
                var u = bp(this.data, a);
                return u || !i || 'string' != typeof n ? u : Ap(this.data && this.data[e] && this.data[e][t], n, o);
              }
            }, {
              key: 'addResource',
              value: function (e, t, n, r) {
                var o = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : { silent: !1 },
                  i = this.options.keySeparator;
                void 0 === i && (i = '.');
                var a = [e, t];
                n && (a = a.concat(i ? n.split(i) : n)), e.indexOf('.') > -1 && (r = t, t = (a = e.split('.'))[1]), this.addNamespaces(t), mp(this.data, a, r), o.silent || this.emit('added', e, t, n, r);
              }
            }, {
              key: 'addResources',
              value: function (e, t, n) {
                var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : { silent: !1 };
                for (var o in n) 'string' != typeof n[o] && '[object Array]' !== Object.prototype.toString.apply(n[o]) || this.addResource(e, t, o, n[o], { silent: !0 });
                r.silent || this.emit('added', e, t, n);
              }
            }, {
              key: 'addResourceBundle',
              value: function (e, t, n, r, o) {
                var i = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : { silent: !1 },
                  a = [e, t];
                e.indexOf('.') > -1 && (r = n, n = t, t = (a = e.split('.'))[1]), this.addNamespaces(t);
                var u = bp(this.data, a) || {};
                r ? Ep(u, n, o) : u = rp.default({}, u, n), mp(this.data, a, u), i.silent || this.emit('added', e, t, n);
              }
            }, {
              key: 'removeResourceBundle',
              value: function (e, t) {
                this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit('removed', e, t);
              }
            }, {
              key: 'hasResourceBundle',
              value: function (e, t) {
                return void 0 !== this.getResource(e, t);
              }
            }, {
              key: 'getResourceBundle',
              value: function (e, t) {
                return t || (t = this.options.defaultNS), 'v1' === this.options.compatibilityAPI ? rp.default({}, {}, this.getResource(e, t)) : this.getResource(e, t);
              }
            }, {
              key: 'getDataByLanguage',
              value: function (e) {
                return this.data[e];
              }
            }, {
              key: 'toJSON',
              value: function () {
                return this.data;
              }
            }]), t;
          }(pp),
          kp = {
            processors: {},
            addPostProcessor: function (e) {
              this.processors[e.name] = e;
            },
            handle: function (e, t, n, r, o) {
              var i = this;
              return e.forEach((function (e) {
                i.processors[e] && (t = i.processors[e].process(t, n, r, o));
              })), t;
            }
          },
          Tp = {},
          Bp = function (e) {
            function t(e) {
              var n,
                r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
              return op.default(this, t), n = ap.default(this, up.default(t)
                .call(this)), Cp && pp.call(sp.default(n)), gp(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], e, sp.default(n)), n.options = r, void 0 === n.options.keySeparator && (n.options.keySeparator = '.'), n.logger = dp.create('translator'), n;
            }

            return lp.default(t, e), ip.default(t, [{
              key: 'changeLanguage',
              value: function (e) {
                e && (this.language = e);
              }
            }, {
              key: 'exists',
              value: function (e) {
                var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { interpolation: {} };
                if (null == e) return !1;
                var n = this.resolve(e, t);
                return n && void 0 !== n.res;
              }
            }, {
              key: 'extractFromKey',
              value: function (e, t) {
                var n = void 0 !== t.nsSeparator ? t.nsSeparator : this.options.nsSeparator;
                void 0 === n && (n = ':');
                var r = void 0 !== t.keySeparator ? t.keySeparator : this.options.keySeparator,
                  o = t.ns || this.options.defaultNS;
                if (n && e.indexOf(n) > -1) {
                  var i = e.match(this.interpolator.nestingRegexp);
                  if (i && i.length > 0) {
                    return {
                      key: e,
                      namespaces: o
                    };
                  }
                  var a = e.split(n);
                  (n !== r || n === r && this.options.ns.indexOf(a[0]) > -1) && (o = a.shift()), e = a.join(r);
                }
                return 'string' == typeof o && (o = [o]), {
                  key: e,
                  namespaces: o
                };
              }
            }, {
              key: 'translate',
              value: function (e, n, r) {
                var o = this;
                if ('object' !== np.default(n) && this.options.overloadTranslationOptionHandler && (n = this.options.overloadTranslationOptionHandler(arguments)), n || (n = {}), null == e) return '';
                Array.isArray(e) || (e = [String(e)]);
                var i = void 0 !== n.keySeparator ? n.keySeparator : this.options.keySeparator,
                  a = this.extractFromKey(e[e.length - 1], n),
                  u = a.key,
                  s = a.namespaces,
                  l = s[s.length - 1],
                  c = n.lng || this.language,
                  f = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
                if (c && 'cimode' === c.toLowerCase()) {
                  if (f) {
                    var d = n.nsSeparator || this.options.nsSeparator;
                    return l + d + u;
                  }
                  return u;
                }
                var p = this.resolve(e, n),
                  h = p && p.res,
                  v = p && p.usedKey || u,
                  g = p && p.exactUsedKey || u,
                  y = Object.prototype.toString.apply(h),
                  m = ['[object Number]', '[object Function]', '[object RegExp]'],
                  b = void 0 !== n.joinArrays ? n.joinArrays : this.options.joinArrays,
                  w = !this.i18nFormat || this.i18nFormat.handleAsObject;
                if (w && h && 'string' != typeof h && 'boolean' != typeof h && 'number' != typeof h && m.indexOf(y) < 0 && ('string' != typeof b || '[object Array]' !== y)) {
                  if (!n.returnObjects && !this.options.returnObjects) {
                    return this.options.returnedObjectHandler || this.logger.warn('accessing an object - but returnObjects options is not enabled!'), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, h, rp.default({}, n, { ns: s })) : 'key \''.concat(u, ' (')
                      .concat(this.language, ')\' returned an object instead of string.');
                  }
                  if (i) {
                    var E = '[object Array]' === y,
                      D = E ? [] : {},
                      x = E ? g : v;
                    for (var S in h) {
                      if (Object.prototype.hasOwnProperty.call(h, S)) {
                        var C = ''.concat(x)
                          .concat(i)
                          .concat(S);
                        D[S] = this.translate(C, rp.default({}, n, {
                          joinArrays: !1,
                          ns: s
                        })), D[S] === C && (D[S] = h[S]);
                      }
                    }
                    h = D;
                  }
                } else if (w && 'string' == typeof b && '[object Array]' === y) {
                  (h = h.join(b)) && (h = this.extendTranslation(h, e, n, r));
                } else {
                  var A = !1,
                    O = !1,
                    k = void 0 !== n.count && 'string' != typeof n.count,
                    T = t.hasDefaultValue(n),
                    B = k ? this.pluralResolver.getSuffix(c, n.count) : '',
                    F = n['defaultValue'.concat(B)] || n.defaultValue;
                  !this.isValidLookup(h) && T && (A = !0, h = F), this.isValidLookup(h) || (O = !0, h = u);
                  var _ = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && O ? void 0 : h,
                    P = T && F !== h && this.options.updateMissing;
                  if (O || A || P) {
                    if (this.logger.log(P ? 'updateKey' : 'missingKey', c, l, u, P ? F : h), i) {
                      var j = this.resolve(u, rp.default({}, n, { keySeparator: !1 }));
                      j && j.res && this.logger.warn('Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.');
                    }
                    var N = [],
                      I = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
                    if ('fallback' === this.options.saveMissingTo && I && I[0]) for (var R = 0; R < I.length; R++) N.push(I[R]); else 'all' === this.options.saveMissingTo ? N = this.languageUtils.toResolveHierarchy(n.lng || this.language) : N.push(n.lng || this.language);
                    var M = function (e, t, r) {
                      o.options.missingKeyHandler ? o.options.missingKeyHandler(e, l, t, P ? r : _, P, n) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(e, l, t, P ? r : _, P, n), o.emit('missingKey', e, l, t, h);
                    };
                    this.options.saveMissing && (this.options.saveMissingPlurals && k ? N.forEach((function (e) {
                      o.pluralResolver.getSuffixes(e)
                        .forEach((function (t) {
                          M([e], u + t, n['defaultValue'.concat(t)] || F);
                        }));
                    })) : M(N, u, F));
                  }
                  h = this.extendTranslation(h, e, n, p, r), O && h === u && this.options.appendNamespaceToMissingKey && (h = ''.concat(l, ':')
                    .concat(u)), (O || A) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(h));
                }
                return h;
              }
            }, {
              key: 'extendTranslation',
              value: function (e, t, n, r, o) {
                var i = this;
                if (this.i18nFormat && this.i18nFormat.parse) {
                  e = this.i18nFormat.parse(e, n, r.usedLng, r.usedNS, r.usedKey, { resolved: r });
                } else if (!n.skipInterpolation) {
                  n.interpolation && this.interpolator.init(rp.default({}, n, { interpolation: rp.default({}, this.options.interpolation, n.interpolation) }));
                  var a,
                    u = n.interpolation && n.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
                  if (u) {
                    var s = e.match(this.interpolator.nestingRegexp);
                    a = s && s.length;
                  }
                  var l = n.replace && 'string' != typeof n.replace ? n.replace : n;
                  if (this.options.interpolation.defaultVariables && (l = rp.default({}, this.options.interpolation.defaultVariables, l)), e = this.interpolator.interpolate(e, l, n.lng || this.language, n), u) {
                    var c = e.match(this.interpolator.nestingRegexp);
                    a < (c && c.length) && (n.nest = !1);
                  }
                  !1 !== n.nest && (e = this.interpolator.nest(e, (function () {
                    for (var e = arguments.length, r = new Array(e), a = 0; a < e; a++) r[a] = arguments[a];
                    return o && o[0] === r[0] && !n.context ? (i.logger.warn('It seems you are nesting recursively key: '.concat(r[0], ' in key: ')
                      .concat(t[0])), null) : i.translate.apply(i, r.concat([t]));
                  }), n)), n.interpolation && this.interpolator.reset();
                }
                var f = n.postProcess || this.options.postProcess,
                  d = 'string' == typeof f ? [f] : f;
                return null != e && d && d.length && !1 !== n.applyPostProcessor && (e = kp.handle(d, e, t, this.options && this.options.postProcessPassResolved ? rp.default({ i18nResolved: r }, n) : n, this)), e;
              }
            }, {
              key: 'resolve',
              value: function (e) {
                var t,
                  n,
                  r,
                  o,
                  i,
                  a = this,
                  u = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
                return 'string' == typeof e && (e = [e]), e.forEach((function (e) {
                  if (!a.isValidLookup(t)) {
                    var s = a.extractFromKey(e, u),
                      l = s.key;
                    n = l;
                    var c = s.namespaces;
                    a.options.fallbackNS && (c = c.concat(a.options.fallbackNS));
                    var f = void 0 !== u.count && 'string' != typeof u.count,
                      d = void 0 !== u.context && ('string' == typeof u.context || 'number' == typeof u.context) && '' !== u.context,
                      p = u.lngs ? u.lngs : a.languageUtils.toResolveHierarchy(u.lng || a.language, u.fallbackLng);
                    c.forEach((function (e) {
                      a.isValidLookup(t) || (i = e, !Tp[''.concat(p[0], '-')
                        .concat(e)] && a.utils && a.utils.hasLoadedNamespace && !a.utils.hasLoadedNamespace(i) && (Tp[''.concat(p[0], '-')
                        .concat(e)] = !0, a.logger.warn('key "'.concat(n, '" for languages "')
                        .concat(p.join(', '), '" won\'t get resolved as namespace "')
                        .concat(i, '" was not yet loaded'), 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!')), p.forEach((function (n) {
                        if (!a.isValidLookup(t)) {
                          o = n;
                          var i,
                            s,
                            c = l,
                            p = [c];
                          for (a.i18nFormat && a.i18nFormat.addLookupKeys ? a.i18nFormat.addLookupKeys(p, l, n, e, u) : (f && (i = a.pluralResolver.getSuffix(n, u.count)), f && d && p.push(c + i), d && p.push(c += ''.concat(a.options.contextSeparator)
                            .concat(u.context)), f && p.push(c += i)); s = p.pop();) {
                            a.isValidLookup(t) || (r = s, t = a.getResource(n, e, s, u));
                          }
                        }
                      })));
                    }));
                  }
                })), {
                  res: t,
                  usedKey: n,
                  exactUsedKey: r,
                  usedLng: o,
                  usedNS: i
                };
              }
            }, {
              key: 'isValidLookup',
              value: function (e) {
                return !(void 0 === e || !this.options.returnNull && null === e || !this.options.returnEmptyString && '' === e);
              }
            }, {
              key: 'getResource',
              value: function (e, t, n) {
                var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {};
                return this.i18nFormat && this.i18nFormat.getResource ? this.i18nFormat.getResource(e, t, n, r) : this.resourceStore.getResource(e, t, n, r);
              }
            }], [{
              key: 'hasDefaultValue',
              value: function (e) {
                var t = 'defaultValue';
                for (var n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t === n.substring(0, t.length) && void 0 !== e[n]) return !0;
                return !1;
              }
            }]), t;
          }(pp);

        function Fp(e) {
          return e.charAt(0)
            .toUpperCase() + e.slice(1);
        }

        var _p = function () {
            function e(t) {
              op.default(this, e), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = dp.create('languageUtils');
            }

            return ip.default(e, [{
              key: 'getScriptPartFromCode',
              value: function (e) {
                if (!e || e.indexOf('-') < 0) return null;
                var t = e.split('-');
                return 2 === t.length ? null : (t.pop(), 'x' === t[t.length - 1].toLowerCase() ? null : this.formatLanguageCode(t.join('-')));
              }
            }, {
              key: 'getLanguagePartFromCode',
              value: function (e) {
                if (!e || e.indexOf('-') < 0) return e;
                var t = e.split('-');
                return this.formatLanguageCode(t[0]);
              }
            }, {
              key: 'formatLanguageCode',
              value: function (e) {
                if ('string' == typeof e && e.indexOf('-') > -1) {
                  var t = ['hans', 'hant', 'latn', 'cyrl', 'cans', 'mong', 'arab'],
                    n = e.split('-');
                  return this.options.lowerCaseLng ? n = n.map((function (e) {
                    return e.toLowerCase();
                  })) : 2 === n.length ? (n[0] = n[0].toLowerCase(), n[1] = n[1].toUpperCase(), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = Fp(n[1].toLowerCase()))) : 3 === n.length && (n[0] = n[0].toLowerCase(), 2 === n[1].length && (n[1] = n[1].toUpperCase()), 'sgn' !== n[0] && 2 === n[2].length && (n[2] = n[2].toUpperCase()), t.indexOf(n[1].toLowerCase()) > -1 && (n[1] = Fp(n[1].toLowerCase())), t.indexOf(n[2].toLowerCase()) > -1 && (n[2] = Fp(n[2].toLowerCase()))), n.join('-');
                }
                return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
              }
            }, {
              key: 'isWhitelisted',
              value: function (e) {
                return this.logger.deprecate('languageUtils.isWhitelisted', 'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'), this.isSupportedCode(e);
              }
            }, {
              key: 'isSupportedCode',
              value: function (e) {
                return ('languageOnly' === this.options.load || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1;
              }
            }, {
              key: 'getBestMatchFromCodes',
              value: function (e) {
                var t,
                  n = this;
                return e ? (e.forEach((function (e) {
                  if (!t) {
                    var r = n.formatLanguageCode(e);
                    n.options.supportedLngs && !n.isSupportedCode(r) || (t = r);
                  }
                })), !t && this.options.supportedLngs && e.forEach((function (e) {
                  if (!t) {
                    var r = n.getLanguagePartFromCode(e);
                    if (n.isSupportedCode(r)) return t = r;
                    t = n.options.supportedLngs.find((function (e) {
                      if (0 === e.indexOf(r)) return e;
                    }));
                  }
                })), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t) : null;
              }
            }, {
              key: 'getFallbackCodes',
              value: function (e, t) {
                if (!e) return [];
                if ('function' == typeof e && (e = e(t)), 'string' == typeof e && (e = [e]), '[object Array]' === Object.prototype.toString.apply(e)) return e;
                if (!t) return e.default || [];
                var n = e[t];
                return n || (n = e[this.getScriptPartFromCode(t)]), n || (n = e[this.formatLanguageCode(t)]), n || (n = e[this.getLanguagePartFromCode(t)]), n || (n = e.default), n || [];
              }
            }, {
              key: 'toResolveHierarchy',
              value: function (e, t) {
                var n = this,
                  r = this.getFallbackCodes(t || this.options.fallbackLng || [], e),
                  o = [],
                  i = function (e) {
                    e && (n.isSupportedCode(e) ? o.push(e) : n.logger.warn('rejecting language code not found in supportedLngs: '.concat(e)));
                  };
                return 'string' == typeof e && e.indexOf('-') > -1 ? ('languageOnly' !== this.options.load && i(this.formatLanguageCode(e)), 'languageOnly' !== this.options.load && 'currentOnly' !== this.options.load && i(this.getScriptPartFromCode(e)), 'currentOnly' !== this.options.load && i(this.getLanguagePartFromCode(e))) : 'string' == typeof e && i(this.formatLanguageCode(e)), r.forEach((function (e) {
                  o.indexOf(e) < 0 && i(n.formatLanguageCode(e));
                })), o;
              }
            }]), e;
          }(),
          Pp = [{
            lngs: ['ach', 'ak', 'am', 'arn', 'br', 'fil', 'gun', 'ln', 'mfe', 'mg', 'mi', 'oc', 'pt', 'pt-BR', 'tg', 'tl', 'ti', 'tr', 'uz', 'wa'],
            nr: [1, 2],
            fc: 1
          }, {
            lngs: ['af', 'an', 'ast', 'az', 'bg', 'bn', 'ca', 'da', 'de', 'dev', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fi', 'fo', 'fur', 'fy', 'gl', 'gu', 'ha', 'hi', 'hu', 'hy', 'ia', 'it', 'kk', 'kn', 'ku', 'lb', 'mai', 'ml', 'mn', 'mr', 'nah', 'nap', 'nb', 'ne', 'nl', 'nn', 'no', 'nso', 'pa', 'pap', 'pms', 'ps', 'pt-PT', 'rm', 'sco', 'se', 'si', 'so', 'son', 'sq', 'sv', 'sw', 'ta', 'te', 'tk', 'ur', 'yo'],
            nr: [1, 2],
            fc: 2
          }, {
            lngs: ['ay', 'bo', 'cgg', 'fa', 'ht', 'id', 'ja', 'jbo', 'ka', 'km', 'ko', 'ky', 'lo', 'ms', 'sah', 'su', 'th', 'tt', 'ug', 'vi', 'wo', 'zh'],
            nr: [1],
            fc: 3
          }, {
            lngs: ['be', 'bs', 'cnr', 'dz', 'hr', 'ru', 'sr', 'uk'],
            nr: [1, 2, 5],
            fc: 4
          }, {
            lngs: ['ar'],
            nr: [0, 1, 2, 3, 11, 100],
            fc: 5
          }, {
            lngs: ['cs', 'sk'],
            nr: [1, 2, 5],
            fc: 6
          }, {
            lngs: ['csb', 'pl'],
            nr: [1, 2, 5],
            fc: 7
          }, {
            lngs: ['cy'],
            nr: [1, 2, 3, 8],
            fc: 8
          }, {
            lngs: ['fr'],
            nr: [1, 2],
            fc: 9
          }, {
            lngs: ['ga'],
            nr: [1, 2, 3, 7, 11],
            fc: 10
          }, {
            lngs: ['gd'],
            nr: [1, 2, 3, 20],
            fc: 11
          }, {
            lngs: ['is'],
            nr: [1, 2],
            fc: 12
          }, {
            lngs: ['jv'],
            nr: [0, 1],
            fc: 13
          }, {
            lngs: ['kw'],
            nr: [1, 2, 3, 4],
            fc: 14
          }, {
            lngs: ['lt'],
            nr: [1, 2, 10],
            fc: 15
          }, {
            lngs: ['lv'],
            nr: [1, 2, 0],
            fc: 16
          }, {
            lngs: ['mk'],
            nr: [1, 2],
            fc: 17
          }, {
            lngs: ['mnk'],
            nr: [0, 1, 2],
            fc: 18
          }, {
            lngs: ['mt'],
            nr: [1, 2, 11, 20],
            fc: 19
          }, {
            lngs: ['or'],
            nr: [2, 1],
            fc: 2
          }, {
            lngs: ['ro'],
            nr: [1, 2, 20],
            fc: 20
          }, {
            lngs: ['sl'],
            nr: [5, 1, 2, 3],
            fc: 21
          }, {
            lngs: ['he', 'iw'],
            nr: [1, 2, 20, 21],
            fc: 22
          }],
          jp = {
            1: function (e) {
              return Number(e > 1);
            },
            2: function (e) {
              return Number(1 != e);
            },
            3: function (e) {
              return 0;
            },
            4: function (e) {
              return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2);
            },
            5: function (e) {
              return Number(0 == e ? 0 : 1 == e ? 1 : 2 == e ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e % 100 >= 11 ? 4 : 5);
            },
            6: function (e) {
              return Number(1 == e ? 0 : e >= 2 && e <= 4 ? 1 : 2);
            },
            7: function (e) {
              return Number(1 == e ? 0 : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2);
            },
            8: function (e) {
              return Number(1 == e ? 0 : 2 == e ? 1 : 8 != e && 11 != e ? 2 : 3);
            },
            9: function (e) {
              return Number(e >= 2);
            },
            10: function (e) {
              return Number(1 == e ? 0 : 2 == e ? 1 : e < 7 ? 2 : e < 11 ? 3 : 4);
            },
            11: function (e) {
              return Number(1 == e || 11 == e ? 0 : 2 == e || 12 == e ? 1 : e > 2 && e < 20 ? 2 : 3);
            },
            12: function (e) {
              return Number(e % 10 != 1 || e % 100 == 11);
            },
            13: function (e) {
              return Number(0 !== e);
            },
            14: function (e) {
              return Number(1 == e ? 0 : 2 == e ? 1 : 3 == e ? 2 : 3);
            },
            15: function (e) {
              return Number(e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2);
            },
            16: function (e) {
              return Number(e % 10 == 1 && e % 100 != 11 ? 0 : 0 !== e ? 1 : 2);
            },
            17: function (e) {
              return Number(1 == e || e % 10 == 1 && e % 100 != 11 ? 0 : 1);
            },
            18: function (e) {
              return Number(0 == e ? 0 : 1 == e ? 1 : 2);
            },
            19: function (e) {
              return Number(1 == e ? 0 : 0 == e || e % 100 > 1 && e % 100 < 11 ? 1 : e % 100 > 10 && e % 100 < 20 ? 2 : 3);
            },
            20: function (e) {
              return Number(1 == e ? 0 : 0 == e || e % 100 > 0 && e % 100 < 20 ? 1 : 2);
            },
            21: function (e) {
              return Number(e % 100 == 1 ? 1 : e % 100 == 2 ? 2 : e % 100 == 3 || e % 100 == 4 ? 3 : 0);
            },
            22: function (e) {
              return Number(1 == e ? 0 : 2 == e ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3);
            }
          };

        function Np() {
          var e = {};
          return Pp.forEach((function (t) {
            t.lngs.forEach((function (n) {
              e[n] = {
                numbers: t.nr,
                plurals: jp[t.fc]
              };
            }));
          })), e;
        }

        var Ip = function () {
            function e(t) {
              var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
              op.default(this, e), this.languageUtils = t, this.options = n, this.logger = dp.create('pluralResolver'), this.rules = Np();
            }

            return ip.default(e, [{
              key: 'addRule',
              value: function (e, t) {
                this.rules[e] = t;
              }
            }, {
              key: 'getRule',
              value: function (e) {
                return this.rules[e] || this.rules[this.languageUtils.getLanguagePartFromCode(e)];
              }
            }, {
              key: 'needsPlural',
              value: function (e) {
                var t = this.getRule(e);
                return t && t.numbers.length > 1;
              }
            }, {
              key: 'getPluralFormsOfKey',
              value: function (e, t) {
                return this.getSuffixes(e)
                  .map((function (e) {
                    return t + e;
                  }));
              }
            }, {
              key: 'getSuffixes',
              value: function (e) {
                var t = this,
                  n = this.getRule(e);
                return n ? n.numbers.map((function (n) {
                  return t.getSuffix(e, n);
                })) : [];
              }
            }, {
              key: 'getSuffix',
              value: function (e, t) {
                var n = this,
                  r = this.getRule(e);
                if (r) {
                  var o = r.noAbs ? r.plurals(t) : r.plurals(Math.abs(t)),
                    i = r.numbers[o];
                  this.options.simplifyPluralSuffix && 2 === r.numbers.length && 1 === r.numbers[0] && (2 === i ? i = 'plural' : 1 === i && (i = ''));
                  var a = function () {
                    return n.options.prepend && i.toString() ? n.options.prepend + i.toString() : i.toString();
                  };
                  return 'v1' === this.options.compatibilityJSON ? 1 === i ? '' : 'number' == typeof i ? '_plural_'.concat(i.toString()) : a() : 'v2' === this.options.compatibilityJSON || this.options.simplifyPluralSuffix && 2 === r.numbers.length && 1 === r.numbers[0] ? a() : this.options.prepend && o.toString() ? this.options.prepend + o.toString() : o.toString();
                }
                return this.logger.warn('no plural rule found for: '.concat(e)), '';
              }
            }]), e;
          }(),
          Rp = function () {
            function e() {
              var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
              op.default(this, e), this.logger = dp.create('interpolator'), this.options = t, this.format = t.interpolation && t.interpolation.format || function (e) {
                return e;
              }, this.init(t);
            }

            return ip.default(e, [{
              key: 'init',
              value: function () {
                var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
                e.interpolation || (e.interpolation = { escapeValue: !0 });
                var t = e.interpolation;
                this.escape = void 0 !== t.escape ? t.escape : Sp, this.escapeValue = void 0 === t.escapeValue || t.escapeValue, this.useRawValueToEscape = void 0 !== t.useRawValueToEscape && t.useRawValueToEscape, this.prefix = t.prefix ? Dp(t.prefix) : t.prefixEscaped || '{{', this.suffix = t.suffix ? Dp(t.suffix) : t.suffixEscaped || '}}', this.formatSeparator = t.formatSeparator ? t.formatSeparator : t.formatSeparator || ',', this.unescapePrefix = t.unescapeSuffix ? '' : t.unescapePrefix || '-', this.unescapeSuffix = this.unescapePrefix ? '' : t.unescapeSuffix || '', this.nestingPrefix = t.nestingPrefix ? Dp(t.nestingPrefix) : t.nestingPrefixEscaped || Dp('$t('), this.nestingSuffix = t.nestingSuffix ? Dp(t.nestingSuffix) : t.nestingSuffixEscaped || Dp(')'), this.nestingOptionsSeparator = t.nestingOptionsSeparator ? t.nestingOptionsSeparator : t.nestingOptionsSeparator || ',', this.maxReplaces = t.maxReplaces ? t.maxReplaces : 1e3, this.alwaysFormat = void 0 !== t.alwaysFormat && t.alwaysFormat, this.resetRegExp();
              }
            }, {
              key: 'reset',
              value: function () {
                this.options && this.init(this.options);
              }
            }, {
              key: 'resetRegExp',
              value: function () {
                var e = ''.concat(this.prefix, '(.+?)')
                  .concat(this.suffix);
                this.regexp = new RegExp(e, 'g');
                var t = ''.concat(this.prefix)
                  .concat(this.unescapePrefix, '(.+?)')
                  .concat(this.unescapeSuffix)
                  .concat(this.suffix);
                this.regexpUnescape = new RegExp(t, 'g');
                var n = ''.concat(this.nestingPrefix, '(.+?)')
                  .concat(this.nestingSuffix);
                this.nestingRegexp = new RegExp(n, 'g');
              }
            }, {
              key: 'interpolate',
              value: function (e, t, n, r) {
                var o,
                  i,
                  a,
                  u = this,
                  s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};

                function l(e) {
                  return e.replace(/\$/g, '$$$$');
                }

                var c = function (e) {
                  if (e.indexOf(u.formatSeparator) < 0) {
                    var o = wp(t, s, e);
                    return u.alwaysFormat ? u.format(o, void 0, n, rp.default({}, r, t, { interpolationkey: e })) : o;
                  }
                  var i = e.split(u.formatSeparator),
                    a = i.shift()
                      .trim(),
                    l = i.join(u.formatSeparator)
                      .trim();
                  return u.format(wp(t, s, a), l, n, rp.default({}, r, t, { interpolationkey: a }));
                };
                this.resetRegExp();
                var f = r && r.missingInterpolationHandler || this.options.missingInterpolationHandler,
                  d = r && r.interpolation && r.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables;
                return [{
                  regex: this.regexpUnescape,
                  safeValue: function (e) {
                    return l(e);
                  }
                }, {
                  regex: this.regexp,
                  safeValue: function (e) {
                    return u.escapeValue ? l(u.escape(e)) : l(e);
                  }
                }].forEach((function (t) {
                  for (a = 0; o = t.regex.exec(e);) {
                    if (void 0 === (i = c(o[1].trim()))) {
                      if ('function' == typeof f) {
                        var n = f(e, o, r);
                        i = 'string' == typeof n ? n : '';
                      } else {
                        if (d) {
                          i = o[0];
                          continue;
                        }
                        u.logger.warn('missed to pass in variable '.concat(o[1], ' for interpolating ')
                          .concat(e)), i = '';
                      }
                    } else {
                      'string' == typeof i || u.useRawValueToEscape || (i = vp(i));
                    }
                    var s = t.safeValue(i);
                    if (e = e.replace(o[0], s), d ? (t.regex.lastIndex += s.length, t.regex.lastIndex -= o[0].length) : t.regex.lastIndex = 0, ++a >= u.maxReplaces) break;
                  }
                })), e;
              }
            }, {
              key: 'nest',
              value: function (e, t) {
                var n,
                  r,
                  o = this,
                  i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
                  a = rp.default({}, i);

                function u(e, t) {
                  var n = this.nestingOptionsSeparator;
                  if (e.indexOf(n) < 0) return e;
                  var r = e.split(new RegExp(''.concat(n, '[ ]*{'))),
                    o = '{'.concat(r[1]);
                  e = r[0], o = (o = this.interpolate(o, a)).replace(/'/g, '"');
                  try {
                    a = JSON.parse(o), t && (a = rp.default({}, t, a));
                  } catch (t) {
                    return this.logger.warn('failed parsing options string in nesting for key '.concat(e), t), ''.concat(e)
                      .concat(n)
                      .concat(o);
                  }
                  return delete a.defaultValue, e;
                }

                for (a.applyPostProcessor = !1, delete a.defaultValue; n = this.nestingRegexp.exec(e);) {
                  var s = [],
                    l = !1;
                  if (-1 !== n[0].indexOf(this.formatSeparator) && !/{.*}/.test(n[1])) {
                    var c = n[1].split(this.formatSeparator)
                      .map((function (e) {
                        return e.trim();
                      }));
                    n[1] = c.shift(), s = c, l = !0;
                  }
                  if ((r = t(u.call(this, n[1].trim(), a), a)) && n[0] === e && 'string' != typeof r) return r;
                  'string' != typeof r && (r = vp(r)), r || (this.logger.warn('missed to resolve '.concat(n[1], ' for nesting ')
                    .concat(e)), r = ''), l && (r = s.reduce((function (e, t) {
                    return o.format(e, t, i.lng, rp.default({}, i, { interpolationkey: n[1].trim() }));
                  }), r.trim())), e = e.replace(n[0], r), this.regexp.lastIndex = 0;
                }
                return e;
              }
            }]), e;
          }(),
          Mp = function (e) {
            function t(e, n, r) {
              var o,
                i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {};
              return op.default(this, t), o = ap.default(this, up.default(t)
                .call(this)), Cp && pp.call(sp.default(o)), o.backend = e, o.store = n, o.services = r, o.languageUtils = r.languageUtils, o.options = i, o.logger = dp.create('backendConnector'), o.state = {}, o.queue = [], o.backend && o.backend.init && o.backend.init(r, i.backend, i), o;
            }

            return lp.default(t, e), ip.default(t, [{
              key: 'queueLoad',
              value: function (e, t, n, r) {
                var o = this,
                  i = [],
                  a = [],
                  u = [],
                  s = [];
                return e.forEach((function (e) {
                  var r = !0;
                  t.forEach((function (t) {
                    var u = ''.concat(e, '|')
                      .concat(t);
                    !n.reload && o.store.hasResourceBundle(e, t) ? o.state[u] = 2 : o.state[u] < 0 || (1 === o.state[u] ? a.indexOf(u) < 0 && a.push(u) : (o.state[u] = 1, r = !1, a.indexOf(u) < 0 && a.push(u), i.indexOf(u) < 0 && i.push(u), s.indexOf(t) < 0 && s.push(t)));
                  })), r || u.push(e);
                })), (i.length || a.length) && this.queue.push({
                  pending: a,
                  loaded: {},
                  errors: [],
                  callback: r
                }), {
                  toLoad: i,
                  pending: a,
                  toLoadLanguages: u,
                  toLoadNamespaces: s
                };
              }
            }, {
              key: 'loaded',
              value: function (e, t, n) {
                var r = e.split('|'),
                  o = r[0],
                  i = r[1];
                t && this.emit('failedLoading', o, i, t), n && this.store.addResourceBundle(o, i, n), this.state[e] = t ? -1 : 2;
                var a = {};
                this.queue.forEach((function (n) {
                  !function (e, t, n, r) {
                    var o = yp(e, t, Object),
                      i = o.obj,
                      a = o.k;
                    i[a] = i[a] || [], r && (i[a] = i[a].concat(n)), r || i[a].push(n);
                  }(n.loaded, [o], i), function (e, t) {
                    for (var n = e.indexOf(t); -1 !== n;) e.splice(n, 1), n = e.indexOf(t);
                  }(n.pending, e), t && n.errors.push(t), 0 !== n.pending.length || n.done || (Object.keys(n.loaded)
                    .forEach((function (e) {
                      a[e] || (a[e] = []), n.loaded[e].length && n.loaded[e].forEach((function (t) {
                        a[e].indexOf(t) < 0 && a[e].push(t);
                      }));
                    })), n.done = !0, n.errors.length ? n.callback(n.errors) : n.callback());
                })), this.emit('loaded', a), this.queue = this.queue.filter((function (e) {
                  return !e.done;
                }));
              }
            }, {
              key: 'read',
              value: function (e, t, n) {
                var r = this,
                  o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0,
                  i = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 350,
                  a = arguments.length > 5 ? arguments[5] : void 0;
                return e.length ? this.backend[n](e, t, (function (u, s) {
                  u && s && o < 5 ? setTimeout((function () {
                    r.read.call(r, e, t, n, o + 1, 2 * i, a);
                  }), i) : a(u, s);
                })) : a(null, {});
              }
            }, {
              key: 'prepareLoading',
              value: function (e, t) {
                var n = this,
                  r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
                  o = arguments.length > 3 ? arguments[3] : void 0;
                if (!this.backend) return this.logger.warn('No backend was added via i18next.use. Will not load resources.'), o && o();
                'string' == typeof e && (e = this.languageUtils.toResolveHierarchy(e)), 'string' == typeof t && (t = [t]);
                var i = this.queueLoad(e, t, r, o);
                if (!i.toLoad.length) return i.pending.length || o(), null;
                i.toLoad.forEach((function (e) {
                  n.loadOne(e);
                }));
              }
            }, {
              key: 'load',
              value: function (e, t, n) {
                this.prepareLoading(e, t, {}, n);
              }
            }, {
              key: 'reload',
              value: function (e, t, n) {
                this.prepareLoading(e, t, { reload: !0 }, n);
              }
            }, {
              key: 'loadOne',
              value: function (e) {
                var t = this,
                  n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : '',
                  r = e.split('|'),
                  o = r[0],
                  i = r[1];
                this.read(o, i, 'read', void 0, void 0, (function (r, a) {
                  r && t.logger.warn(''.concat(n, 'loading namespace ')
                    .concat(i, ' for language ')
                    .concat(o, ' failed'), r), !r && a && t.logger.log(''.concat(n, 'loaded namespace ')
                    .concat(i, ' for language ')
                    .concat(o), a), t.loaded(e, r, a);
                }));
              }
            }, {
              key: 'saveMissing',
              value: function (e, t, n, r, o) {
                var i = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : {};
                this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t) ? this.logger.warn('did not save key "'.concat(n, '" as the namespace "')
                  .concat(t, '" was not yet loaded'), 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!') : null != n && '' !== n && (this.backend && this.backend.create && this.backend.create(e, t, n, r, null, rp.default({}, i, { isUpdate: o })), e && e[0] && this.store.addResource(e[0], t, n, r));
              }
            }]), t;
          }(pp);

        function Lp() {
          return {
            debug: !1,
            initImmediate: !0,
            ns: ['translation'],
            defaultNS: ['translation'],
            fallbackLng: ['dev'],
            fallbackNS: !1,
            whitelist: !1,
            nonExplicitWhitelist: !1,
            supportedLngs: !1,
            nonExplicitSupportedLngs: !1,
            load: 'all',
            preload: !1,
            simplifyPluralSuffix: !0,
            keySeparator: '.',
            nsSeparator: ':',
            pluralSeparator: '_',
            contextSeparator: '_',
            partialBundledLanguages: !1,
            saveMissing: !1,
            updateMissing: !1,
            saveMissingTo: 'fallback',
            saveMissingPlurals: !0,
            missingKeyHandler: !1,
            missingInterpolationHandler: !1,
            postProcess: !1,
            postProcessPassResolved: !1,
            returnNull: !0,
            returnEmptyString: !0,
            returnObjects: !1,
            joinArrays: !1,
            returnedObjectHandler: !1,
            parseMissingKeyHandler: !1,
            appendNamespaceToMissingKey: !1,
            appendNamespaceToCIMode: !1,
            overloadTranslationOptionHandler: function (e) {
              var t = {};
              if ('object' === np.default(e[1]) && (t = e[1]), 'string' == typeof e[1] && (t.defaultValue = e[1]), 'string' == typeof e[2] && (t.tDescription = e[2]), 'object' === np.default(e[2]) || 'object' === np.default(e[3])) {
                var n = e[3] || e[2];
                Object.keys(n)
                  .forEach((function (e) {
                    t[e] = n[e];
                  }));
              }
              return t;
            },
            interpolation: {
              escapeValue: !0,
              format: function (e, t, n, r) {
                return e;
              },
              prefix: '{{',
              suffix: '}}',
              formatSeparator: ',',
              unescapePrefix: '-',
              nestingPrefix: '$t(',
              nestingSuffix: ')',
              nestingOptionsSeparator: ',',
              maxReplaces: 1e3,
              skipOnVariables: !1
            }
          };
        }

        function zp(e) {
          return 'string' == typeof e.ns && (e.ns = [e.ns]), 'string' == typeof e.fallbackLng && (e.fallbackLng = [e.fallbackLng]), 'string' == typeof e.fallbackNS && (e.fallbackNS = [e.fallbackNS]), e.whitelist && (e.whitelist && e.whitelist.indexOf('cimode') < 0 && (e.whitelist = e.whitelist.concat(['cimode'])), e.supportedLngs = e.whitelist), e.nonExplicitWhitelist && (e.nonExplicitSupportedLngs = e.nonExplicitWhitelist), e.supportedLngs && e.supportedLngs.indexOf('cimode') < 0 && (e.supportedLngs = e.supportedLngs.concat(['cimode'])), e;
        }

        function $p() {
        }

        var Hp = function (e) {
            function t() {
              var e,
                n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
                r = arguments.length > 1 ? arguments[1] : void 0;
              if (op.default(this, t), e = ap.default(this, up.default(t)
                .call(this)), Cp && pp.call(sp.default(e)), e.options = zp(n), e.services = {}, e.logger = dp, e.modules = { external: [] }, r && !e.isInitialized && !n.isClone) {
                if (!e.options.initImmediate) return e.init(n, r), ap.default(e, sp.default(e));
                setTimeout((function () {
                  e.init(n, r);
                }), 0);
              }
              return e;
            }

            return lp.default(t, e), ip.default(t, [{
              key: 'init',
              value: function () {
                var e = this,
                  t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
                  n = arguments.length > 1 ? arguments[1] : void 0;

                function r(e) {
                  return e ? 'function' == typeof e ? new e : e : null;
                }

                if ('function' == typeof t && (n = t, t = {}), t.whitelist && !t.supportedLngs && this.logger.deprecate('whitelist', 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), t.nonExplicitWhitelist && !t.nonExplicitSupportedLngs && this.logger.deprecate('whitelist', 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = rp.default({}, Lp(), this.options, zp(t)), this.format = this.options.interpolation.format, n || (n = $p), !this.options.isClone) {
                  this.modules.logger ? dp.init(r(this.modules.logger), this.options) : dp.init(null, this.options);
                  var o = new _p(this.options);
                  this.store = new Op(this.options.resources, this.options);
                  var i = this.services;
                  i.logger = dp, i.resourceStore = this.store, i.languageUtils = o, i.pluralResolver = new Ip(o, {
                    prepend: this.options.pluralSeparator,
                    compatibilityJSON: this.options.compatibilityJSON,
                    simplifyPluralSuffix: this.options.simplifyPluralSuffix
                  }), i.interpolator = new Rp(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Mp(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on('*', (function (t) {
                    for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) r[o - 1] = arguments[o];
                    e.emit.apply(e, [t].concat(r));
                  })), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new Bp(this.services, this.options), this.translator.on('*', (function (t) {
                    for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) r[o - 1] = arguments[o];
                    e.emit.apply(e, [t].concat(r));
                  })), this.modules.external.forEach((function (t) {
                    t.init && t.init(e);
                  }));
                }
                if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
                  var a = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
                  a.length > 0 && 'dev' !== a[0] && (this.options.lng = a[0]);
                }
                this.services.languageDetector || this.options.lng || this.logger.warn('init: no languageDetector is used and no lng is defined'), ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'].forEach((function (t) {
                  e[t] = function () {
                    var n;
                    return (n = e.store)[t].apply(n, arguments);
                  };
                })), ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'].forEach((function (t) {
                  e[t] = function () {
                    var n;
                    return (n = e.store)[t].apply(n, arguments), e;
                  };
                }));
                var u = hp(),
                  s = function () {
                    var t = function (t, r) {
                      e.isInitialized && !e.initializedStoreOnce && e.logger.warn('init: i18next is already initialized. You should call init just once!'), e.isInitialized = !0, e.options.isClone || e.logger.log('initialized', e.options), e.emit('initialized', e.options), u.resolve(r), n(t, r);
                    };
                    if (e.languages && 'v1' !== e.options.compatibilityAPI && !e.isInitialized) return t(null, e.t.bind(e));
                    e.changeLanguage(e.options.lng, t);
                  };
                return this.options.resources || !this.options.initImmediate ? s() : setTimeout(s, 0), u;
              }
            }, {
              key: 'loadResources',
              value: function (e) {
                var t = this,
                  n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : $p,
                  r = 'string' == typeof e ? e : this.language;
                if ('function' == typeof e && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
                  if (r && 'cimode' === r.toLowerCase()) return n();
                  var o = [],
                    i = function (e) {
                      e && t.services.languageUtils.toResolveHierarchy(e)
                        .forEach((function (e) {
                          o.indexOf(e) < 0 && o.push(e);
                        }));
                    };
                  r ? i(r) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng)
                    .forEach((function (e) {
                      return i(e);
                    })), this.options.preload && this.options.preload.forEach((function (e) {
                    return i(e);
                  })), this.services.backendConnector.load(o, this.options.ns, n);
                } else {
                  n(null);
                }
              }
            }, {
              key: 'reloadResources',
              value: function (e, t, n) {
                var r = hp();
                return e || (e = this.languages), t || (t = this.options.ns), n || (n = $p), this.services.backendConnector.reload(e, t, (function (e) {
                  r.resolve(), n(e);
                })), r;
              }
            }, {
              key: 'use',
              value: function (e) {
                if (!e) throw new Error('You are passing an undefined module! Please check the object you are passing to i18next.use()');
                if (!e.type) throw new Error('You are passing a wrong module! Please check the object you are passing to i18next.use()');
                return 'backend' === e.type && (this.modules.backend = e), ('logger' === e.type || e.log && e.warn && e.error) && (this.modules.logger = e), 'languageDetector' === e.type && (this.modules.languageDetector = e), 'i18nFormat' === e.type && (this.modules.i18nFormat = e), 'postProcessor' === e.type && kp.addPostProcessor(e), '3rdParty' === e.type && this.modules.external.push(e), this;
              }
            }, {
              key: 'changeLanguage',
              value: function (e, t) {
                var n = this;
                this.isLanguageChangingTo = e;
                var r = hp();
                this.emit('languageChanging', e);
                var o = function (o) {
                  e || o || !n.services.languageDetector || (o = []);
                  var i = 'string' == typeof o ? o : n.services.languageUtils.getBestMatchFromCodes(o);
                  i && (n.language || (n.language = i, n.languages = n.services.languageUtils.toResolveHierarchy(i)), n.translator.language || n.translator.changeLanguage(i), n.services.languageDetector && n.services.languageDetector.cacheUserLanguage(i)), n.loadResources(i, (function (e) {
                    !function (e, o) {
                      o ? (n.language = o, n.languages = n.services.languageUtils.toResolveHierarchy(o), n.translator.changeLanguage(o), n.isLanguageChangingTo = void 0, n.emit('languageChanged', o), n.logger.log('languageChanged', o)) : n.isLanguageChangingTo = void 0, r.resolve((function () {
                        return n.t.apply(n, arguments);
                      })), t && t(e, (function () {
                        return n.t.apply(n, arguments);
                      }));
                    }(e, i);
                  }));
                };
                return e || !this.services.languageDetector || this.services.languageDetector.async ? !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect(o) : o(e) : o(this.services.languageDetector.detect()), r;
              }
            }, {
              key: 'getFixedT',
              value: function (e, t, n) {
                var r = this,
                  o = function e(t, o) {
                    var i;
                    if ('object' !== np.default(o)) {
                      for (var a = arguments.length, u = new Array(a > 2 ? a - 2 : 0), s = 2; s < a; s++) u[s - 2] = arguments[s];
                      i = r.options.overloadTranslationOptionHandler([t, o].concat(u));
                    } else {
                      i = rp.default({}, o);
                    }
                    i.lng = i.lng || e.lng, i.lngs = i.lngs || e.lngs, i.ns = i.ns || e.ns;
                    var l = r.options.keySeparator || '.',
                      c = n ? ''.concat(n)
                        .concat(l)
                        .concat(t) : t;
                    return r.t(c, i);
                  };
                return 'string' == typeof e ? o.lng = e : o.lngs = e, o.ns = t, o.keyPrefix = n, o;
              }
            }, {
              key: 't',
              value: function () {
                var e;
                return this.translator && (e = this.translator).translate.apply(e, arguments);
              }
            }, {
              key: 'exists',
              value: function () {
                var e;
                return this.translator && (e = this.translator).exists.apply(e, arguments);
              }
            }, {
              key: 'setDefaultNamespace',
              value: function (e) {
                this.options.defaultNS = e;
              }
            }, {
              key: 'hasLoadedNamespace',
              value: function (e) {
                var t = this,
                  n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
                if (!this.isInitialized) return this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages), !1;
                if (!this.languages || !this.languages.length) return this.logger.warn('hasLoadedNamespace: i18n.languages were undefined or empty', this.languages), !1;
                var r = this.languages[0],
                  o = !!this.options && this.options.fallbackLng,
                  i = this.languages[this.languages.length - 1];
                if ('cimode' === r.toLowerCase()) return !0;
                var a = function (e, n) {
                  var r = t.services.backendConnector.state[''.concat(e, '|')
                    .concat(n)];
                  return -1 === r || 2 === r;
                };
                if (n.precheck) {
                  var u = n.precheck(this, a);
                  if (void 0 !== u) return u;
                }
                return !!this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || !(!a(r, e) || o && !a(i, e));
              }
            }, {
              key: 'loadNamespaces',
              value: function (e, t) {
                var n = this,
                  r = hp();
                return this.options.ns ? ('string' == typeof e && (e = [e]), e.forEach((function (e) {
                  n.options.ns.indexOf(e) < 0 && n.options.ns.push(e);
                })), this.loadResources((function (e) {
                  r.resolve(), t && t(e);
                })), r) : (t && t(), Promise.resolve());
              }
            }, {
              key: 'loadLanguages',
              value: function (e, t) {
                var n = hp();
                'string' == typeof e && (e = [e]);
                var r = this.options.preload || [],
                  o = e.filter((function (e) {
                    return r.indexOf(e) < 0;
                  }));
                return o.length ? (this.options.preload = r.concat(o), this.loadResources((function (e) {
                  n.resolve(), t && t(e);
                })), n) : (t && t(), Promise.resolve());
              }
            }, {
              key: 'dir',
              value: function (e) {
                return e || (e = this.languages && this.languages.length > 0 ? this.languages[0] : this.language), e ? ['ar', 'shu', 'sqr', 'ssh', 'xaa', 'yhd', 'yud', 'aao', 'abh', 'abv', 'acm', 'acq', 'acw', 'acx', 'acy', 'adf', 'ads', 'aeb', 'aec', 'afb', 'ajp', 'apc', 'apd', 'arb', 'arq', 'ars', 'ary', 'arz', 'auz', 'avl', 'ayh', 'ayl', 'ayn', 'ayp', 'bbz', 'pga', 'he', 'iw', 'ps', 'pbt', 'pbu', 'pst', 'prp', 'prd', 'ug', 'ur', 'ydd', 'yds', 'yih', 'ji', 'yi', 'hbo', 'men', 'xmn', 'fa', 'jpr', 'peo', 'pes', 'prs', 'dv', 'sam'].indexOf(this.services.languageUtils.getLanguagePartFromCode(e)) >= 0 ? 'rtl' : 'ltr' : 'rtl';
              }
            }, {
              key: 'createInstance',
              value: function () {
                return new t(arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, arguments.length > 1 ? arguments[1] : void 0);
              }
            }, {
              key: 'cloneInstance',
              value: function () {
                var e = this,
                  n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
                  r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : $p,
                  o = rp.default({}, this.options, n, { isClone: !0 }),
                  i = new t(o);
                return ['store', 'services', 'language'].forEach((function (t) {
                  i[t] = e[t];
                })), i.services = rp.default({}, this.services), i.services.utils = { hasLoadedNamespace: i.hasLoadedNamespace.bind(i) }, i.translator = new Bp(i.services, i.options), i.translator.on('*', (function (e) {
                  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
                  i.emit.apply(i, [e].concat(n));
                })), i.init(o, r), i.translator.options = i.options, i.translator.backendConnector.services.utils = { hasLoadedNamespace: i.hasLoadedNamespace.bind(i) }, i;
              }
            }, {
              key: 'toJSON',
              value: function () {
                return {
                  options: this.options,
                  store: this.store,
                  language: this.language,
                  languages: this.languages
                };
              }
            }]), t;
          }(pp),
          Vp = new Hp,
          Up = 'translation';
        Vp.init({
          lng: 'zh-CN',
          resources: {}
        });
        var Wp = Vp.t.bind(Vp);
        e.DomEditor = Vu, e.ELEM_TO_HTML_CONF = ds, e.PARSE_ELEM_HTML_CONF = ic, e.PARSE_STYLE_HTML_FN_LIST = oc, e.PRE_PARSE_HTML_CONF_LIST = rc, e.RENDER_ELEM_CONF = Nf, e.RENDER_STYLE_HANDLER_LIST = jf, e.STYLE_TO_HTML_FN_LIST = fs, e.TEXT_TAGS = nc, e.Toolbar = Md, e.coreCreateEditor = function (e) {
          var t = e.selector,
            r = void 0 === t ? '' : t,
            o = e.config,
            i = void 0 === o ? {} : o,
            a = e.content,
            u = e.html,
            s = e.plugins,
            l = void 0 === s ? [] : s,
            c = mo(function (e) {
              var t = e,
                r = t.insertText,
                o = t.insertNode,
                i = t.insertFragment;
              return t.insertText = function (e) {
                if (t.getConfig().maxLength) {
                  var n = Vu.getLeftLengthOfMaxLength(t);
                  n <= 0 || (n < e.length ? r(e.slice(0, n)) : r(e));
                } else {
                  r(e);
                }
              }, t.insertNode = function (e) {
                if (t.getConfig().maxLength) {
                  var r = Vu.getLeftLengthOfMaxLength(t);
                  r <= 0 || r < n.Node.string(e).length || o(e);
                } else {
                  o(e);
                }
              }, t.insertFragment = function (e) {
                t.getConfig().maxLength ? e.forEach((function (e) {
                  t.insertNode(e);
                })) : i(e);
              }, t;
            }(function (e) {
              var t = e;
              return t.on = function (e, n) {
                var r = lf(t);
                if (r.on(e, n), 'destroyed' === e && ff(t, n), 'destroyed' !== e) {
                  var o = function () {
                    return r.off(e, n);
                  };
                  r.on('destroyed', o), ff(t, o);
                }
              }, t.once = function (e, n) {
                lf(t)
                  .once(e, n);
              }, t.off = function (e, n) {
                lf(t)
                  .off(e, n);
              }, t.emit = function (e) {
                for (var n = [], r = 1; r < arguments.length; r++) n[r - 1] = arguments[r];
                var o = lf(t);
                o.emit.apply(o, Xi([e], Yi(n))), 'destroyed' === e && (df(t)
                  .forEach((function (e) {
                    return o.off('destroyed', e);
                  })), pf(t));
              }, t;
            }(function (e) {
              var t = e;
              return t.select = function (e) {
                n.Transforms.select(t, e);
              }, t.deselect = function () {
                var r = t.selection,
                  o = Vu.findDocumentOrShadowRoot(t)
                    .getSelection();
                o && o.rangeCount > 0 && o.removeAllRanges(), r && n.Transforms.deselect(e);
              }, t.move = function (t, r) {
                void 0 === r && (r = !1), t && (t < 0 || n.Transforms.move(e, {
                  distance: t,
                  unit: 'character',
                  reverse: r
                }));
              }, t.moveReverse = function (e) {
                t.move(e, !0);
              }, t.restoreSelection = function () {
                var e = yu.get(t);
                null != e && (t.focus(), n.Transforms.select(t, e));
              }, t.getSelectionPosition = function () {
                return vf(t);
              }, t.getNodePosition = function (e) {
                return gf(t, e);
              }, t.isSelectedAll = function () {
                var e = t.selection;
                if (null == e) return !1;
                var r = Yi(n.Range.edges(e), 2),
                  o = r[0],
                  i = r[1],
                  a = Yi(n.Editor.edges(t, []), 2),
                  u = a[0],
                  s = a[1];
                return !(!n.Point.equals(o, u) || !n.Point.equals(i, s));
              }, t.selectAll = function () {
                var e = n.Editor.start(t, []),
                  r = n.Editor.end(t, []);
                n.Transforms.select(t, {
                  anchor: e,
                  focus: r
                });
              }, t;
            }(Mc(function (e) {
              var t = e;
              return t.getAllMenuKeys = function () {
                var e = [];
                for (var t in Gu) e.push(t);
                return e;
              }, t.getConfig = function () {
                var e = ou.get(t);
                if (null == e) throw new Error('Can not get editor config');
                return e;
              }, t.getMenuConfig = function (e) {
                var n = t.getConfig().MENU_CONF;
                return (void 0 === n ? {} : n)[e] || {};
              }, t.alert = function (e, n) {
                void 0 === n && (n = 'info');
                var r = t.getConfig().customAlert;
                r && r(e, n);
              }, t;
            }(function (e) {
              var t = e;
              return t.id = 'wangEditor-' + Uu++, t.isDestroyed = !1, t.isFullScreen = !1, t.focus = function (e) {
                if (Vu.toDOMNode(t, t)
                  .focus({ preventScroll: !0 }), gu.set(t, !0), e) {
                  var r = n.Editor.end(t, []);
                  n.Transforms.select(t, r);
                } else {
                  var o = yu.get(t);
                  o ? n.Transforms.select(t, o) : n.Transforms.select(t, n.Editor.start(t, []));
                }
              }, t.isFocused = function () {
                return !!gu.get(t);
              }, t.blur = function () {
                Vu.toDOMNode(t, t)
                  .blur(), n.Transforms.deselect(t), gu.set(t, !1);
              }, t.updateView = function () {
                Vu.getTextarea(t)
                  .changeViewState();
                var e = Vu.getToolbar(t);
                e && e.changeToolbarState();
                var n = Vu.getHoverbar(t);
                n && n.changeHoverbarState();
              }, t.destroy = function () {
                if (!t.isDestroyed) {
                  var e = Vu.getTextarea(t);
                  e.destroy(), Ya.delete(t), Xa.delete(e);
                  var n = Vu.getToolbar(t);
                  n && (n.destroy(), Ja.delete(t), Za.delete(n));
                  var r = Vu.getHoverbar(t);
                  r && (r.destroy(), eu.delete(t), Qa.delete(r)), t.isDestroyed = !0, t.emit('destroyed');
                }
              }, t.scrollToElem = function (e) {
                if (!t.getConfig().scroll) {
                  var n = '编辑器禁用了 scroll ，编辑器内容无法滚动，请自行实现该功能';
                  return n += '\nYou has disabled editor scroll, please do this yourself', void console.warn(n);
                }
                var r = m.default('#' + e);
                if (0 !== r.length) {
                  var o = r[0];
                  if (!Vu.hasDOMNode(t, o)) return n = 'Element (found by id is \'' + e + '\') is not in editor DOM', n += '\n 通过 id \'' + e + '\' 找到的 element 不在 editor DOM 之内', void console.error(n, o);
                  var i = Vu.getTextarea(t),
                    a = i.$textAreaContainer,
                    u = i.$scroll,
                    s = r.offset().top,
                    l = a.offset().top;
                  u[0].scrollBy({
                    top: s - l,
                    behavior: 'smooth'
                  });
                }
              }, t.showProgressBar = function (e) {
                e < 1 || Vu.getTextarea(t)
                  .changeProgress(e);
              }, t.hidePanelOrModal = function () {
                var e = nu.get(t);
                null != e && e.forEach((function (e) {
                  return e.hide();
                }));
              }, t.enable = function () {
                t.getConfig().readOnly = !1, t.updateView();
              }, t.disable = function () {
                t.getConfig().readOnly = !0, t.updateView();
              }, t.isDisabled = function () {
                return t.getConfig().readOnly;
              }, t.toDOMNode = function (e) {
                return Vu.toDOMNode(t, e);
              }, t.fullScreen = function () {
                if (!t.isFullScreen) {
                  var e = null,
                    n = Vu.getToolbar(t);
                  n && (e = n.$box);
                  var r = Vu.getTextarea(t)
                    .$box
                    .parent();
                  if (e && e.parent()[0] !== r[0]) throw new Error('Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏，因为 toolbar DOM 父节点和 textarea DOM 父节点不一致');
                  r.addClass('w-e-full-screen-container');
                  var o = r.css('z-index');
                  r.attr('data-z-index', o.toString()), t.isFullScreen = !0, t.emit('fullScreen');
                }
              }, t.unFullScreen = function () {
                if (t.isFullScreen) {
                  var e = Vu.getTextarea(t)
                    .$box
                    .parent();
                  setTimeout((function () {
                    e.removeClass('w-e-full-screen-container'), t.isFullScreen = !1, t.emit('unFullScreen');
                  }), 200);
                }
              }, t.getEditableContainer = function () {
                return Vu.getTextarea(t).$textAreaContainer[0];
              }, t;
            }(Lc(n.createEditor()))))))));
          if (r && function (e, t) {
            return Bd(e, 'data-w-e-textarea', t);
          }(c, r)) {
            throw new Error('Repeated create editor by selector \'' + r + '\'');
          }
          var f = function (e) {
            void 0 === e && (e = {});
            var t = x.default(Wu),
              n = {},
              r = e.MENU_CONF,
              o = void 0 === r ? {} : r;
            return b.default(t, (function (e, t) {
              n[t] = qi(qi({}, e), o[t] || {});
            })), delete e.MENU_CONF, qi({
              scroll: !0,
              readOnly: !1,
              autoFocus: !0,
              decorate: function () {
                return [];
              },
              maxLength: 0,
              MENU_CONF: n,
              hoverbarKeys: {},
              customAlert: function (e, t) {
                window.alert(t + ':\n' + e);
              }
            }, e);
          }(i);
          ou.set(c, f);
          var d = f.hoverbarKeys,
            p = void 0 === d ? {} : d;
          if (l.forEach((function (e) {
            c = e(c);
          })), u) {
            var h = m.default('<div>' + u + '</div>');
            c.children = Array.from(h.children())
              .map((function (e) {
                return Ic(m.default(e), c);
              }));
          }
          if (a && a.length && (c.children = a), 0 === c.children.length && (c.children = [{
            type: 'paragraph',
            children: [{ text: '' }]
          }]), Vu.normalizeContent(c), r) {
            var v = new cd(r);
            Ya.set(c, v), Xa.set(v, c), v.changeViewState(), Zl((function () {
              var e = v.$scroll;
              null != e && e.height() < 300 && console.warn('编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error', e);
            }));
            var g = void 0;
            Object.keys(p).length > 0 && (g = new Td, Qa.set(g, c), eu.set(c, g)), c.on('change', (function () {
              c.hidePanelOrModal();
            })), c.on('scroll', (function () {
              c.hidePanelOrModal();
            }));
          } else {
            c.children.forEach((function (e, t) {
              return Fd(e, t, c, c);
            }));
          }
          var y = f.onCreated,
            w = f.onDestroyed;
          return y && c.on('created', (function () {
            return y(c);
          })), w && c.on('destroyed', (function () {
            return w(c);
          })), Zl((function () {
            return c.emit('created');
          })), c;
        }, e.coreCreateToolbar = function (e, t) {
          if (null == e) throw new Error('Cannot create toolbar, because editor is null');
          var n = t.selector,
            r = t.config,
            o = void 0 === r ? {} : r;
          if (function (e, t) {
            return Bd(e, 'data-w-e-toolbar', t);
          }(e, n)) {
            throw new Error('Repeated create toolbar by selector \'' + n + '\'');
          }
          var i = qi({
              toolbarKeys: [],
              excludeKeys: [],
              insertKeys: {
                index: 0,
                keys: []
              },
              modalAppendToBody: !1
            }, o || {}),
            a = new Md(n, i);
          return Za.set(a, e), Ja.set(e, a), a;
        }, e.createUploader = function (e) {
          var t = e.server,
            n = void 0 === t ? '' : t,
            r = e.fieldName,
            o = void 0 === r ? '' : r,
            i = e.maxFileSize,
            a = void 0 === i ? 10485760 : i,
            u = e.maxNumberOfFiles,
            s = void 0 === u ? 100 : u,
            l = e.meta,
            c = void 0 === l ? {} : l,
            f = e.metaWithUrl,
            d = void 0 !== f && f,
            p = e.headers,
            h = void 0 === p ? {} : p,
            v = e.withCredentials,
            g = void 0 !== v && v,
            y = e.timeout,
            m = void 0 === y ? 1e4 : y,
            w = e.onBeforeUpload,
            E = void 0 === w ? function (e) {
              return e;
            } : w,
            D = e.onSuccess,
            x = void 0 === D ? function (e, t) {
            } : D,
            A = e.onError,
            O = void 0 === A ? function (e, t, n) {
              console.error(e.name + ' upload error', t, n);
            } : A,
            k = e.onProgress,
            T = void 0 === k ? function (e) {
            } : k;
          if (!n) throw new Error('Cannot get upload server address\n没有配置上传地址');
          if (!o) throw new Error('Cannot get fieldName\n没有配置 fieldName');
          var B = n;
          d && (B = function (e, t) {
            var n = Yi(e.split('#'), 2),
              r = n[0],
              o = n[1],
              i = [];
            b.default(t, (function (e, t) {
              i.push(t + '=' + e);
            }));
            var a = i.join('&');
            return r = r.indexOf('?') > 0 ? r + '&' + a : r + '?' + a, o ? r + '#' + o : r;
          }(B, c));
          var F = new S.default({
            onBeforeUpload: E,
            restrictions: {
              maxFileSize: a,
              maxNumberOfFiles: s
            },
            meta: c
          }).use(C.default, {
            endpoint: B,
            headers: h,
            formData: !0,
            fieldName: o,
            bundle: !0,
            withCredentials: g,
            timeout: m
          });
          return F.on('upload-success', (function (e, t) {
            var n = t.body;
            x(e, void 0 === n ? {} : n), F.removeFile(e.id);
          })), F.on('progress', (function (e) {
            e < 1 || T(e);
          })), F.on('error', (function (e) {
            console.error('wangEditor file upload error', e.stack);
          })), F.on('upload-error', (function (e, t, n) {
            O(e, t, n), F.removeFile(e.id);
          })), F.on('restriction-failed', (function (e, t) {
            O(e, t), F.removeFile(e.id);
          })), F;
        }, e.genModalButtonElems = function (e, t) {
          var n = m.default('<div class="button-container"></div>'),
            r = m.default('<button type="button" id="' + e + '">' + t + '</button>');
          return n.append(r), [n[0], r[0]];
        }, e.genModalInputElems = function (e, t, n) {
          var r = m.default('<label class="babel-container"></label>');
          r.append('<span>' + e + '</span>');
          var o = m.default('<input type="text" id="' + t + '" placeholder="' + (n || '') + '">');
          return r.append(o), [r[0], o[0]];
        }, e.genModalTextareaElems = function (e, t, n) {
          var r = m.default('<label class="babel-container"></label>');
          r.append('<span>' + e + '</span>');
          var o = m.default('<textarea type="text" id="' + t + '" placeholder="' + (n || '') + '"></textarea>');
          return r.append(o), [r[0], o[0]];
        }, e.i18nAddResources = function (e, t) {
          Vp.addResourceBundle(e, Up, t, !0, !0);
        }, e.i18nChangeLanguage = function (e) {
          Vp.changeLanguage(e);
        }, e.i18nGetResources = function (e) {
          return Vp.getResourceBundle(e, Up);
        }, e.registerElemToHtmlConf = function (e) {
          var t = e.type,
            n = e.elemToHtml;
          ds[t || ''] = n;
        },
          e.registerMenu = function (e, t) {
          var n = e.key,
            r = e.factory,
            o = e.config,
            i = qi(qi({}, o), t || {});
          console.log(Gu, n);
          if (null != Gu[n]) {
           // throw new Error('Duplicated key \'' + n + '\' in menu items');
          }else{
            Gu[n] = r, function (e, t) {
              null != t && (Wu[e] = t);
            }(n, i);
          }

        },
          e.registerParseElemHtmlConf = function (e) {
          var t = e.selector,
            n = e.parseElemHtml;
          ic[t] = n;
        },
          e.registerParseStyleHtmlHandler = function (e) {
          oc.push(e);
        },
          e.registerPreParseHtmlConf = function (e) {
          rc.push(e);
        },
          e.registerRenderElemConf = function (e) {
          var t = e.type,
            n = e.renderElem;
          Nf[t || ''] = n;
        }, e.registerStyleHandler = function (e) {
          jf.push(e);
        }, e.registerStyleToHtmlHandler = function (e) {
          fs.push(e);
        }, e.t = Wp, Object.defineProperty(e, '__esModule', { value: !0 });
      }(n, OE, Lp, kE, mg, 0, zg, TE, Hy, um, xm, Sm, tw, AE);
    }));
  BE.i18nAddResources('en', {
    editor: {
      more: 'More',
      justify: 'Justify',
      indent: 'Indent',
      image: 'Image',
      video: 'Video'
    }
  }), BE.i18nAddResources('zh-CN', {
    editor: {
      more: '更多',
      justify: '对齐',
      indent: '缩进',
      image: '图片',
      video: '视频'
    }
  });
  var FE = ra ? {}.toString : function () {
    return '[object ' + ua(this) + ']';
  };
  ra || Ci(Object.prototype, 'toString', FE, { unsafe: !0 });
  var _E = Array.isArray || function (e) {
      return 'Array' == Gr(e);
    },
    PE = function () {
    },
    jE = [],
    NE = no('Reflect', 'construct'),
    IE = /^\s*(?:class|function)\b/,
    RE = Vr(IE.exec),
    ME = !IE.exec(PE),
    LE = function (e) {
      if (!Qr(e)) return !1;
      try {
        return NE(PE, jE, e), !0;
      } catch (e) {
        return !1;
      }
    },
    zE = !NE || Fr((function () {
      var e;
      return LE(LE.call) || !LE(Object) || !LE((function () {
        e = !0;
      })) || e;
    })) ? function (e) {
      if (!Qr(e)) return !1;
      switch (ua(e)) {
        case'AsyncFunction':
        case'GeneratorFunction':
        case'AsyncGeneratorFunction':
          return !1;
      }
      return ME || !!RE(IE, ai(e));
    } : LE,
    $E = Mo('species'),
    HE = Br.Array,
    VE = function (e, t) {
      return new (function (e) {
        var t;
        return _E(e) && (t = e.constructor, (zE(t) && (t === HE || _E(t.prototype)) || eo(t) && null === (t = t[$E])) && (t = void 0)), void 0 === t ? HE : t;
      }(e))(0 === t ? 0 : t);
    },
    UE = Vr([].push),
    WE = function (e) {
      var t = 1 == e,
        n = 2 == e,
        r = 3 == e,
        o = 4 == e,
        i = 6 == e,
        a = 7 == e,
        u = 5 == e || i;
      return function (s, l, c, f) {
        for (var d, p, h = Oo(s), v = Yr(h), g = wu(l, c), y = ji(v), m = 0, b = f || VE, w = t ? b(s, y) : n || a ? b(s, 0) : void 0; y > m; m++) {
          if ((u || m in v) && (p = g(d = v[m], m, h), e)) {
            if (t) {
              w[m] = p;
            } else if (p) {
              switch (e) {
                case 3:
                  return !0;
                case 5:
                  return d;
                case 6:
                  return m;
                case 2:
                  UE(w, d);
              }
            } else {
              switch (e) {
                case 4:
                  return !1;
                case 7:
                  UE(w, d);
              }
            }
          }
        }
        return i ? -1 : r || o ? o : w;
      };
    },
    GE = {
      forEach: WE(0),
      map: WE(1),
      filter: WE(2),
      some: WE(3),
      every: WE(4),
      find: WE(5),
      findIndex: WE(6),
      filterReject: WE(7)
    }.forEach,
    qE = function (e, t) {
      var n = [][e];
      return !!n && Fr((function () {
        n.call(null, t || function () {
          throw 1;
        }, 1);
      }));
    }('forEach'),
    KE = qE ? [].forEach : function (e) {
      return GE(this, e, arguments.length > 1 ? arguments[1] : void 0);
    },
    YE = function (e) {
      if (e && e.forEach !== KE) {
        try {
          ti(e, 'forEach', KE);
        } catch (t) {
          e.forEach = KE;
        }
      }
    };
  for (var XE in bs) bs[XE] && YE(Br[XE] && Br[XE].prototype);
  YE(Ds);
  var ZE = r((function (e, n) {
      !function (e, n, r, o, i, a, u) {
        function s(e) {
          return e && 'object' == typeof e && 'default' in e ? e : { default: e };
        }

        var l = s(i),
          c = s(u);
        n.i18nAddResources('en', {
          common: {
            ok: 'OK',
            delete: 'Delete',
            enter: 'Enter'
          },
          blockQuote: { title: 'Quote' },
          codeBlock: { title: 'Code block' },
          color: {
            color: 'Font color',
            bgColor: 'Back color',
            default: 'Default color',
            clear: 'Clear back color'
          },
          divider: { title: 'Divider' },
          emotion: { title: 'Emotion' },
          fontSize: {
            title: 'Font size',
            default: 'Default'
          },
          fontFamily: {
            title: 'Font family',
            default: 'Default'
          },
          fullScreen: { title: 'Full screen' },
          header: {
            title: 'Header',
            text: 'Text'
          },
          image: {
            netImage: 'Net image',
            delete: 'Delete image',
            edit: 'Edit image',
            viewLink: 'View link',
            src: 'Image src',
            desc: 'Description',
            link: 'Image link'
          },
          indent: {
            decrease: 'Decrease',
            increase: 'Increase'
          },
          justify: {
            left: 'Left',
            right: 'Right',
            center: 'Center',
            justify: 'Justify'
          },
          lineHeight: {
            title: 'Line height',
            default: 'Default'
          },
          link: {
            insert: 'Insert link',
            text: 'Link text',
            url: 'Link source',
            unLink: 'Unlink',
            edit: 'Edit link',
            view: 'View link'
          },
          textStyle: {
            bold: 'Bold',
            clear: 'Clear styles',
            code: 'Inline code',
            italic: 'Italic',
            sub: 'Sub',
            sup: 'Sup',
            through: 'Through',
            underline: 'Underline'
          },
          undo: {
            undo: 'undo',
            redo: 'Redo'
          },
          todo: { todo: 'Todo' }
        }), n.i18nAddResources('zh-CN', {
          common: {
            ok: '确定',
            delete: '删除',
            enter: '回车'
          },
          blockQuote: { title: '引用' },
          codeBlock: { title: '代码块' },
          color: {
            color: '文字颜色',
            bgColor: '背景色',
            default: '默认颜色',
            clear: '清除背景色'
          },
          divider: { title: '分割线' },
          emotion: { title: '表情' },
          fontSize: {
            title: '字号',
            default: '默认字号'
          },
          fontFamily: {
            title: '字体',
            default: '默认字体'
          },
          fullScreen: { title: '全屏' },
          header: {
            title: '标题',
            text: '正文'
          },
          image: {
            netImage: '网络图片',
            delete: '删除图片',
            edit: '编辑图片',
            viewLink: '查看链接',
            src: '图片地址',
            desc: '图片描述',
            link: '图片链接'
          },
          indent: {
            decrease: '减少缩进',
            increase: '增加缩进'
          },
          justify: {
            left: '左对齐',
            right: '右对齐',
            center: '居中对齐',
            justify: '两端对齐'
          },
          lineHeight: {
            title: '行高',
            default: '默认行高'
          },
          link: {
            insert: '插入链接',
            text: '链接文本',
            url: '链接地址',
            unLink: '取消链接',
            edit: '修改链接',
            view: '查看链接'
          },
          textStyle: {
            bold: '粗体',
            clear: '清除格式',
            code: '行内代码',
            italic: '斜体',
            sub: '下标',
            sup: '上标',
            through: '删除线',
            underline: '下划线'
          },
          undo: {
            undo: '撤销',
            redo: '重做'
          },
          todo: { todo: '待办' }
        });
        var f = {
            type: 'paragraph',
            renderElem: function (e, t, n) {
              return r.jsx('p', null, t);
            }
          },
          d = {
            type: 'paragraph',
            elemToHtml: function (e, t) {
              return '' === t ? '<p><br></p>' : '<p>' + t + '</p>';
            }
          },
          p = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof window ? window : void 0 !== t ? t : 'undefined' != typeof self ? self : {};

        function h(e) {
          return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, 'default') ? e.default : e;
        }

        function v(e) {
          var t = { exports: {} };
          return e(t, t.exports), t.exports;
        }

        var g,
          y,
          m = function (e) {
            return e && e.Math == Math && e;
          },
          b = m('object' == typeof globalThis && globalThis) || m('object' == typeof window && window) || m('object' == typeof self && self) || m('object' == typeof p && p) || function () {
            return this;
          }() || Function('return this')(),
          w = function (e) {
            try {
              return !!e();
            } catch (e) {
              return !0;
            }
          },
          E = !w((function () {
            return 7 != Object.defineProperty({}, 1, {
              get: function () {
                return 7;
              }
            })[1];
          })),
          D = Function.prototype.call,
          x = D.bind ? D.bind(D) : function () {
            return D.apply(D, arguments);
          },
          S = {}.propertyIsEnumerable,
          C = Object.getOwnPropertyDescriptor,
          A = C && !S.call({ 1: 2 }, 1) ? function (e) {
            var t = C(this, e);
            return !!t && t.enumerable;
          } : S,
          O = { f: A },
          k = function (e, t) {
            return {
              enumerable: !(1 & e),
              configurable: !(2 & e),
              writable: !(4 & e),
              value: t
            };
          },
          T = Function.prototype,
          B = T.bind,
          F = T.call,
          _ = B && B.bind(F),
          P = B ? function (e) {
            return e && _(F, e);
          } : function (e) {
            return e && function () {
              return F.apply(e, arguments);
            };
          },
          j = P({}.toString),
          N = P(''.slice),
          I = function (e) {
            return N(j(e), 8, -1);
          },
          R = b.Object,
          M = P(''.split),
          L = w((function () {
            return !R('z')
              .propertyIsEnumerable(0);
          })) ? function (e) {
            return 'String' == I(e) ? M(e, '') : R(e);
          } : R,
          z = b.TypeError,
          $ = function (e) {
            if (null == e) throw z('Can\'t call method on ' + e);
            return e;
          },
          H = function (e) {
            return L($(e));
          },
          V = function (e) {
            return 'function' == typeof e;
          },
          U = function (e) {
            return 'object' == typeof e ? null !== e : V(e);
          },
          W = function (e) {
            return V(e) ? e : void 0;
          },
          G = function (e, t) {
            return arguments.length < 2 ? W(b[e]) : b[e] && b[e][t];
          },
          q = P({}.isPrototypeOf),
          K = G('navigator', 'userAgent') || '',
          Y = b.process,
          X = b.Deno,
          Z = Y && Y.versions || X && X.version,
          J = Z && Z.v8;
        J && (y = (g = J.split('.'))[0] > 0 && g[0] < 4 ? 1 : +(g[0] + g[1])), !y && K && (!(g = K.match(/Edge\/(\d+)/)) || g[1] >= 74) && (g = K.match(/Chrome\/(\d+)/)) && (y = +g[1]);
        var Q = y,
          ee = !!Object.getOwnPropertySymbols && !w((function () {
            var e = Symbol();
            return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && Q && Q < 41;
          })),
          te = ee && !Symbol.sham && 'symbol' == typeof Symbol.iterator,
          ne = b.Object,
          re = te ? function (e) {
            return 'symbol' == typeof e;
          } : function (e) {
            var t = G('Symbol');
            return V(t) && q(t.prototype, ne(e));
          },
          oe = b.String,
          ie = function (e) {
            try {
              return oe(e);
            } catch (e) {
              return 'Object';
            }
          },
          ae = b.TypeError,
          ue = function (e) {
            if (V(e)) return e;
            throw ae(ie(e) + ' is not a function');
          },
          se = function (e, t) {
            var n = e[t];
            return null == n ? void 0 : ue(n);
          },
          le = b.TypeError,
          ce = Object.defineProperty,
          fe = function (e, t) {
            try {
              ce(b, e, {
                value: t,
                configurable: !0,
                writable: !0
              });
            } catch (n) {
              b[e] = t;
            }
            return t;
          },
          de = '__core-js_shared__',
          pe = b[de] || fe(de, {}),
          he = v((function (e) {
            (e.exports = function (e, t) {
              return pe[e] || (pe[e] = void 0 !== t ? t : {});
            })('versions', [])
              .push({
                version: '3.19.3',
                mode: 'global',
                copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
              });
          })),
          ve = b.Object,
          ge = function (e) {
            return ve($(e));
          },
          ye = P({}.hasOwnProperty),
          me = Object.hasOwn || function (e, t) {
            return ye(ge(e), t);
          },
          be = 0,
          we = Math.random(),
          Ee = P(1..toString),
          De = function (e) {
            return 'Symbol(' + (void 0 === e ? '' : e) + ')_' + Ee(++be + we, 36);
          },
          xe = he('wks'),
          Se = b.Symbol,
          Ce = Se && Se.for,
          Ae = te ? Se : Se && Se.withoutSetter || De,
          Oe = function (e) {
            if (!me(xe, e) || !ee && 'string' != typeof xe[e]) {
              var t = 'Symbol.' + e;
              ee && me(Se, e) ? xe[e] = Se[e] : xe[e] = te && Ce ? Ce(t) : Ae(t);
            }
            return xe[e];
          },
          ke = b.TypeError,
          Te = Oe('toPrimitive'),
          Be = function (e, t) {
            if (!U(e) || re(e)) return e;
            var n,
              r = se(e, Te);
            if (r) {
              if (void 0 === t && (t = 'default'), n = x(r, e, t), !U(n) || re(n)) return n;
              throw ke('Can\'t convert object to primitive value');
            }
            return void 0 === t && (t = 'number'), function (e, t) {
              var n,
                r;
              if ('string' === t && V(n = e.toString) && !U(r = x(n, e))) return r;
              if (V(n = e.valueOf) && !U(r = x(n, e))) return r;
              if ('string' !== t && V(n = e.toString) && !U(r = x(n, e))) return r;
              throw le('Can\'t convert object to primitive value');
            }(e, t);
          },
          Fe = function (e) {
            var t = Be(e, 'string');
            return re(t) ? t : t + '';
          },
          _e = b.document,
          Pe = U(_e) && U(_e.createElement),
          je = function (e) {
            return Pe ? _e.createElement(e) : {};
          },
          Ne = !E && !w((function () {
            return 7 != Object.defineProperty(je('div'), 'a', {
              get: function () {
                return 7;
              }
            }).a;
          })),
          Ie = Object.getOwnPropertyDescriptor,
          Re = {
            f: E ? Ie : function (e, t) {
              if (e = H(e), t = Fe(t), Ne) {
                try {
                  return Ie(e, t);
                } catch (e) {
                }
              }
              if (me(e, t)) return k(!x(O.f, e, t), e[t]);
            }
          },
          Me = b.String,
          Le = b.TypeError,
          ze = function (e) {
            if (U(e)) return e;
            throw Le(Me(e) + ' is not an object');
          },
          $e = b.TypeError,
          He = Object.defineProperty,
          Ve = {
            f: E ? He : function (e, t, n) {
              if (ze(e), t = Fe(t), ze(n), Ne) {
                try {
                  return He(e, t, n);
                } catch (e) {
                }
              }
              if ('get' in n || 'set' in n) throw $e('Accessors not supported');
              return 'value' in n && (e[t] = n.value), e;
            }
          },
          Ue = E ? function (e, t, n) {
            return Ve.f(e, t, k(1, n));
          } : function (e, t, n) {
            return e[t] = n, e;
          },
          We = P(Function.toString);
        V(pe.inspectSource) || (pe.inspectSource = function (e) {
          return We(e);
        });
        var Ge,
          qe,
          Ke,
          Ye = pe.inspectSource,
          Xe = b.WeakMap,
          Ze = V(Xe) && /native code/.test(Ye(Xe)),
          Je = he('keys'),
          Qe = function (e) {
            return Je[e] || (Je[e] = De(e));
          },
          et = {},
          tt = 'Object already initialized',
          nt = b.TypeError,
          rt = b.WeakMap;
        if (Ze || pe.state) {
          var ot = pe.state || (pe.state = new rt),
            it = P(ot.get),
            at = P(ot.has),
            ut = P(ot.set);
          Ge = function (e, t) {
            if (at(ot, e)) throw new nt(tt);
            return t.facade = e, ut(ot, e, t), t;
          }, qe = function (e) {
            return it(ot, e) || {};
          }, Ke = function (e) {
            return at(ot, e);
          };
        } else {
          var st = Qe('state');
          et[st] = !0, Ge = function (e, t) {
            if (me(e, st)) throw new nt(tt);
            return t.facade = e, Ue(e, st, t), t;
          }, qe = function (e) {
            return me(e, st) ? e[st] : {};
          }, Ke = function (e) {
            return me(e, st);
          };
        }
        var lt = {
            set: Ge,
            get: qe,
            has: Ke,
            enforce: function (e) {
              return Ke(e) ? qe(e) : Ge(e, {});
            },
            getterFor: function (e) {
              return function (t) {
                var n;
                if (!U(t) || (n = qe(t)).type !== e) throw nt('Incompatible receiver, ' + e + ' required');
                return n;
              };
            }
          },
          ct = Function.prototype,
          ft = E && Object.getOwnPropertyDescriptor,
          dt = me(ct, 'name'),
          pt = {
            EXISTS: dt,
            PROPER: dt && 'something' === function () {
            }.name,
            CONFIGURABLE: dt && (!E || E && ft(ct, 'name').configurable)
          },
          ht = v((function (e) {
            var t = pt.CONFIGURABLE,
              n = lt.get,
              r = lt.enforce,
              o = String(String)
                .split('String');
            (e.exports = function (e, n, i, a) {
              var u,
                s = !!a && !!a.unsafe,
                l = !!a && !!a.enumerable,
                c = !!a && !!a.noTargetGet,
                f = a && void 0 !== a.name ? a.name : n;
              V(i) && ('Symbol(' === String(f)
                .slice(0, 7) && (f = '[' + String(f)
                .replace(/^Symbol\(([^)]*)\)/, '$1') + ']'), (!me(i, 'name') || t && i.name !== f) && Ue(i, 'name', f), (u = r(i)).source || (u.source = o.join('string' == typeof f ? f : ''))), e !== b ? (s ? !c && e[n] && (l = !0) : delete e[n], l ? e[n] = i : Ue(e, n, i)) : l ? e[n] = i : fe(n, i);
            })(Function.prototype, 'toString', (function () {
              return V(this) && n(this).source || Ye(this);
            }));
          })),
          vt = Math.ceil,
          gt = Math.floor,
          yt = function (e) {
            var t = +e;
            return t != t || 0 === t ? 0 : (t > 0 ? gt : vt)(t);
          },
          mt = Math.max,
          bt = Math.min,
          wt = function (e, t) {
            var n = yt(e);
            return n < 0 ? mt(n + t, 0) : bt(n, t);
          },
          Et = Math.min,
          Dt = function (e) {
            return e > 0 ? Et(yt(e), 9007199254740991) : 0;
          },
          xt = function (e) {
            return Dt(e.length);
          },
          St = function (e) {
            return function (t, n, r) {
              var o,
                i = H(t),
                a = xt(i),
                u = wt(r, a);
              if (e && n != n) {
                for (; a > u;) if ((o = i[u++]) != o) return !0;
              } else {
                for (; a > u; u++) if ((e || u in i) && i[u] === n) return e || u || 0;
              }
              return !e && -1;
            };
          },
          Ct = {
            includes: St(!0),
            indexOf: St(!1)
          },
          At = Ct.indexOf,
          Ot = P([].push),
          kt = function (e, t) {
            var n,
              r = H(e),
              o = 0,
              i = [];
            for (n in r) !me(et, n) && me(r, n) && Ot(i, n);
            for (; t.length > o;) me(r, n = t[o++]) && (~At(i, n) || Ot(i, n));
            return i;
          },
          Tt = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'],
          Bt = Tt.concat('length', 'prototype'),
          Ft = {
            f: Object.getOwnPropertyNames || function (e) {
              return kt(e, Bt);
            }
          },
          _t = { f: Object.getOwnPropertySymbols },
          Pt = P([].concat),
          jt = G('Reflect', 'ownKeys') || function (e) {
            var t = Ft.f(ze(e)),
              n = _t.f;
            return n ? Pt(t, n(e)) : t;
          },
          Nt = function (e, t) {
            for (var n = jt(t), r = Ve.f, o = Re.f, i = 0; i < n.length; i++) {
              var a = n[i];
              me(e, a) || r(e, a, o(t, a));
            }
          },
          It = /#|\.prototype\./,
          Rt = function (e, t) {
            var n = Lt[Mt(e)];
            return n == $t || n != zt && (V(t) ? w(t) : !!t);
          },
          Mt = Rt.normalize = function (e) {
            return String(e)
              .replace(It, '.')
              .toLowerCase();
          },
          Lt = Rt.data = {},
          zt = Rt.NATIVE = 'N',
          $t = Rt.POLYFILL = 'P',
          Ht = Rt,
          Vt = Re.f,
          Ut = function (e, t) {
            var n,
              r,
              o,
              i,
              a,
              u = e.target,
              s = e.global,
              l = e.stat;
            if (n = s ? b : l ? b[u] || fe(u, {}) : (b[u] || {}).prototype) {
              for (r in t) {
                if (i = t[r], o = e.noTargetGet ? (a = Vt(n, r)) && a.value : n[r], !Ht(s ? r : u + (l ? '.' : '#') + r, e.forced) && void 0 !== o) {
                  if (typeof i == typeof o) continue;
                  Nt(i, o);
                }
                (e.sham || o && o.sham) && Ue(i, 'sham', !0), ht(n, r, i, e);
              }
            }
          },
          Wt = P(P.bind),
          Gt = Array.isArray || function (e) {
            return 'Array' == I(e);
          },
          qt = {};
        qt[Oe('toStringTag')] = 'z';
        var Kt = '[object z]' === String(qt),
          Yt = Oe('toStringTag'),
          Xt = b.Object,
          Zt = 'Arguments' == I(function () {
            return arguments;
          }()),
          Jt = Kt ? I : function (e) {
            var t,
              n,
              r;
            return void 0 === e ? 'Undefined' : null === e ? 'Null' : 'string' == typeof (n = function (e, t) {
              try {
                return e[t];
              } catch (e) {
              }
            }(t = Xt(e), Yt)) ? n : Zt ? I(t) : 'Object' == (r = I(t)) && V(t.callee) ? 'Arguments' : r;
          },
          Qt = function () {
          },
          en = [],
          tn = G('Reflect', 'construct'),
          nn = /^\s*(?:class|function)\b/,
          rn = P(nn.exec),
          on = !nn.exec(Qt),
          an = function (e) {
            if (!V(e)) return !1;
            try {
              return tn(Qt, en, e), !0;
            } catch (e) {
              return !1;
            }
          },
          un = !tn || w((function () {
            var e;
            return an(an.call) || !an(Object) || !an((function () {
              e = !0;
            })) || e;
          })) ? function (e) {
            if (!V(e)) return !1;
            switch (Jt(e)) {
              case'AsyncFunction':
              case'GeneratorFunction':
              case'AsyncGeneratorFunction':
                return !1;
            }
            return on || !!rn(nn, Ye(e));
          } : an,
          sn = Oe('species'),
          ln = b.Array,
          cn = function (e, t) {
            return new (function (e) {
              var t;
              return Gt(e) && (t = e.constructor, (un(t) && (t === ln || Gt(t.prototype)) || U(t) && null === (t = t[sn])) && (t = void 0)), void 0 === t ? ln : t;
            }(e))(0 === t ? 0 : t);
          },
          fn = P([].push),
          dn = function (e) {
            var t = 1 == e,
              n = 2 == e,
              r = 3 == e,
              o = 4 == e,
              i = 6 == e,
              a = 7 == e,
              u = 5 == e || i;
            return function (s, l, c, f) {
              for (var d, p, h = ge(s), v = L(h), g = function (e, t) {
                return ue(e), void 0 === t ? e : Wt ? Wt(e, t) : function () {
                  return e.apply(t, arguments);
                };
              }(l, c), y = xt(v), m = 0, b = f || cn, w = t ? b(s, y) : n || a ? b(s, 0) : void 0; y > m; m++) {
                if ((u || m in v) && (p = g(d = v[m], m, h), e)) {
                  if (t) {
                    w[m] = p;
                  } else if (p) {
                    switch (e) {
                      case 3:
                        return !0;
                      case 5:
                        return d;
                      case 6:
                        return m;
                      case 2:
                        fn(w, d);
                    }
                  } else {
                    switch (e) {
                      case 4:
                        return !1;
                      case 7:
                        fn(w, d);
                    }
                  }
                }
              }
              return i ? -1 : r || o ? o : w;
            };
          },
          pn = {
            forEach: dn(0),
            map: dn(1),
            filter: dn(2),
            some: dn(3),
            every: dn(4),
            find: dn(5),
            findIndex: dn(6),
            filterReject: dn(7)
          },
          hn = Oe('species'),
          vn = function (e) {
            return Q >= 51 || !w((function () {
              var t = [];
              return (t.constructor = {})[hn] = function () {
                return { foo: 1 };
              }, 1 !== t[e](Boolean).foo;
            }));
          },
          gn = pn.filter;
        Ut({
          target: 'Array',
          proto: !0,
          forced: !vn('filter')
        }, {
          filter: function (e) {
            return gn(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        });
        var yn = Kt ? {}.toString : function () {
          return '[object ' + Jt(this) + ']';
        };
        Kt || ht(Object.prototype, 'toString', yn, { unsafe: !0 });
        var mn,
          bn = b.String,
          wn = function (e) {
            if ('Symbol' === Jt(e)) throw TypeError('Cannot convert a Symbol value to a string');
            return bn(e);
          },
          En = function () {
            var e = ze(this),
              t = '';
            return e.global && (t += 'g'), e.ignoreCase && (t += 'i'), e.multiline && (t += 'm'), e.dotAll && (t += 's'), e.unicode && (t += 'u'), e.sticky && (t += 'y'), t;
          },
          Dn = b.RegExp,
          xn = w((function () {
            var e = Dn('a', 'y');
            return e.lastIndex = 2, null != e.exec('abcd');
          })),
          Sn = xn || w((function () {
            return !Dn('a', 'y').sticky;
          })),
          Cn = {
            BROKEN_CARET: xn || w((function () {
              var e = Dn('^r', 'gy');
              return e.lastIndex = 2, null != e.exec('str');
            })),
            MISSED_STICKY: Sn,
            UNSUPPORTED_Y: xn
          },
          An = Object.keys || function (e) {
            return kt(e, Tt);
          },
          On = E ? Object.defineProperties : function (e, t) {
            ze(e);
            for (var n, r = H(t), o = An(t), i = o.length, a = 0; i > a;) Ve.f(e, n = o[a++], r[n]);
            return e;
          },
          kn = G('document', 'documentElement'),
          Tn = Qe('IE_PROTO'),
          Bn = function () {
          },
          Fn = function (e) {
            return '<script>' + e + '<\/script>';
          },
          _n = function (e) {
            e.write(Fn('')), e.close();
            var t = e.parentWindow.Object;
            return e = null, t;
          },
          Pn = function () {
            try {
              mn = new ActiveXObject('htmlfile');
            } catch (e) {
            }
            var e,
              t;
            Pn = 'undefined' != typeof document ? document.domain && mn ? _n(mn) : ((t = je('iframe')).style.display = 'none', kn.appendChild(t), t.src = String('javascript:'), (e = t.contentWindow.document).open(), e.write(Fn('document.F=Object')), e.close(), e.F) : _n(mn);
            for (var n = Tt.length; n--;) delete Pn.prototype[Tt[n]];
            return Pn();
          };
        et[Tn] = !0;
        var jn,
          Nn,
          In = Object.create || function (e, t) {
            var n;
            return null !== e ? (Bn.prototype = ze(e), n = new Bn, Bn.prototype = null, n[Tn] = e) : n = Pn(), void 0 === t ? n : On(n, t);
          },
          Rn = b.RegExp,
          Mn = w((function () {
            var e = Rn('.', 's');
            return !(e.dotAll && e.exec('\n') && 's' === e.flags);
          })),
          Ln = b.RegExp,
          zn = w((function () {
            var e = Ln('(?<a>b)', 'g');
            return 'b' !== e.exec('b').groups.a || 'bc' !== 'b'.replace(e, '$<a>c');
          })),
          $n = lt.get,
          Hn = he('native-string-replace', String.prototype.replace),
          Vn = RegExp.prototype.exec,
          Un = Vn,
          Wn = P(''.charAt),
          Gn = P(''.indexOf),
          qn = P(''.replace),
          Kn = P(''.slice),
          Yn = (Nn = /b*/g, x(Vn, jn = /a/, 'a'), x(Vn, Nn, 'a'), 0 !== jn.lastIndex || 0 !== Nn.lastIndex),
          Xn = Cn.BROKEN_CARET,
          Zn = void 0 !== /()??/.exec('')[1];
        (Yn || Zn || Xn || Mn || zn) && (Un = function (e) {
          var t,
            n,
            r,
            o,
            i,
            a,
            u,
            s = this,
            l = $n(s),
            c = wn(e),
            f = l.raw;
          if (f) return f.lastIndex = s.lastIndex, t = x(Un, f, c), s.lastIndex = f.lastIndex, t;
          var d = l.groups,
            p = Xn && s.sticky,
            h = x(En, s),
            v = s.source,
            g = 0,
            y = c;
          if (p && (h = qn(h, 'y', ''), -1 === Gn(h, 'g') && (h += 'g'), y = Kn(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && '\n' !== Wn(c, s.lastIndex - 1)) && (v = '(?: ' + v + ')', y = ' ' + y, g++), n = new RegExp('^(?:' + v + ')', h)), Zn && (n = new RegExp('^' + v + '$(?!\\s)', h)), Yn && (r = s.lastIndex), o = x(Vn, p ? n : s, y), p ? o ? (o.input = Kn(o.input, g), o[0] = Kn(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : Yn && o && (s.lastIndex = s.global ? o.index + o[0].length : r), Zn && o && o.length > 1 && x(Hn, o[0], n, (function () {
            for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (o[i] = void 0);
          })), o && d) {
            for (o.groups = a = In(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
          }
          return o;
        });
        var Jn = Un;
        Ut({
          target: 'RegExp',
          proto: !0,
          forced: /./.exec !== Jn
        }, { exec: Jn });
        var Qn = Function.prototype,
          er = Qn.apply,
          tr = Qn.bind,
          nr = Qn.call,
          rr = 'object' == typeof Reflect && Reflect.apply || (tr ? nr.bind(er) : function () {
            return nr.apply(er, arguments);
          }),
          or = Oe('species'),
          ir = RegExp.prototype,
          ar = function (e, t, n, r) {
            var o = Oe(e),
              i = !w((function () {
                var t = {};
                return t[o] = function () {
                  return 7;
                }, 7 != ''[e](t);
              })),
              a = i && !w((function () {
                var t = !1,
                  n = /a/;
                return 'split' === e && ((n = {}).constructor = {}, n.constructor[or] = function () {
                  return n;
                }, n.flags = '', n[o] = /./[o]), n.exec = function () {
                  return t = !0, null;
                }, n[o](''), !t;
              }));
            if (!i || !a || n) {
              var u = P(/./[o]),
                s = t(o, ''[e], (function (e, t, n, r, o) {
                  var a = P(e),
                    s = t.exec;
                  return s === Jn || s === ir.exec ? i && !o ? {
                    done: !0,
                    value: u(t, n, r)
                  } : {
                    done: !0,
                    value: a(n, t, r)
                  } : { done: !1 };
                }));
              ht(String.prototype, e, s[0]), ht(ir, o, s[1]);
            }
            r && Ue(ir[o], 'sham', !0);
          },
          ur = P(''.charAt),
          sr = P(''.charCodeAt),
          lr = P(''.slice),
          cr = function (e) {
            return function (t, n) {
              var r,
                o,
                i = wn($(t)),
                a = yt(n),
                u = i.length;
              return a < 0 || a >= u ? e ? '' : void 0 : (r = sr(i, a)) < 55296 || r > 56319 || a + 1 === u || (o = sr(i, a + 1)) < 56320 || o > 57343 ? e ? ur(i, a) : r : e ? lr(i, a, a + 2) : o - 56320 + (r - 55296 << 10) + 65536;
            };
          },
          fr = (cr(!1), cr(!0)),
          dr = function (e, t, n) {
            return t + (n ? fr(e, t).length : 1);
          },
          pr = Math.floor,
          hr = P(''.charAt),
          vr = P(''.replace),
          gr = P(''.slice),
          yr = /\$([$&'`]|\d{1,2}|<[^>]*>)/g,
          mr = /\$([$&'`]|\d{1,2})/g,
          br = function (e, t, n, r, o, i) {
            var a = n + e.length,
              u = r.length,
              s = mr;
            return void 0 !== o && (o = ge(o), s = yr), vr(i, s, (function (i, s) {
              var l;
              switch (hr(s, 0)) {
                case'$':
                  return '$';
                case'&':
                  return e;
                case'`':
                  return gr(t, 0, n);
                case'\'':
                  return gr(t, a);
                case'<':
                  l = o[gr(s, 1, -1)];
                  break;
                default:
                  var c = +s;
                  if (0 === c) return i;
                  if (c > u) {
                    var f = pr(c / 10);
                    return 0 === f ? i : f <= u ? void 0 === r[f - 1] ? hr(s, 1) : r[f - 1] + hr(s, 1) : i;
                  }
                  l = r[c - 1];
              }
              return void 0 === l ? '' : l;
            }));
          },
          wr = b.TypeError,
          Er = function (e, t) {
            var n = e.exec;
            if (V(n)) {
              var r = x(n, e, t);
              return null !== r && ze(r), r;
            }
            if ('RegExp' === I(e)) return x(Jn, e, t);
            throw wr('RegExp#exec called on incompatible receiver');
          },
          Dr = Oe('replace'),
          xr = Math.max,
          Sr = Math.min,
          Cr = P([].concat),
          Ar = P([].push),
          Or = P(''.indexOf),
          kr = P(''.slice),
          Tr = '$0' === 'a'.replace(/./, '$0'),
          Br = !!/./[Dr] && '' === /./[Dr]('a', '$0');
        ar('replace', (function (e, t, n) {
          var r = Br ? '$' : '$0';
          return [function (e, n) {
            var r = $(this),
              o = null == e ? void 0 : se(e, Dr);
            return o ? x(o, e, r, n) : x(t, wn(r), e, n);
          }, function (e, o) {
            var i = ze(this),
              a = wn(e);
            if ('string' == typeof o && -1 === Or(o, r) && -1 === Or(o, '$<')) {
              var u = n(t, i, a, o);
              if (u.done) return u.value;
            }
            var s = V(o);
            s || (o = wn(o));
            var l = i.global;
            if (l) {
              var c = i.unicode;
              i.lastIndex = 0;
            }
            for (var f = []; ;) {
              var d = Er(i, a);
              if (null === d) break;
              if (Ar(f, d), !l) break;
              '' === wn(d[0]) && (i.lastIndex = dr(a, Dt(i.lastIndex), c));
            }
            for (var p, h = '', v = 0, g = 0; g < f.length; g++) {
              for (var y = wn((d = f[g])[0]), m = xr(Sr(yt(d.index), a.length), 0), b = [], w = 1; w < d.length; w++) Ar(b, void 0 === (p = d[w]) ? p : String(p));
              var E = d.groups;
              if (s) {
                var D = Cr([y], b, m, a);
                void 0 !== E && Ar(D, E);
                var x = wn(rr(o, void 0, D));
              } else {
                x = br(y, a, m, b, E, o);
              }
              m >= v && (h += kr(a, v, m) + x, v = m + y.length);
            }
            return h + kr(a, v);
          }];
        }), !!w((function () {
          var e = /./;
          return e.exec = function () {
            var e = [];
            return e.groups = { a: '7' }, e;
          }, '7' !== ''.replace(e, '$<a>');
        })) || !Tr || Br);
        var Fr = Oe('unscopables'),
          _r = Array.prototype;
        null == _r[Fr] && Ve.f(_r, Fr, {
          configurable: !0,
          value: In(null)
        });
        var Pr = function (e) {
            _r[Fr][e] = !0;
          },
          jr = pn.find,
          Nr = 'find',
          Ir = !0;
        Nr in [] && Array(1)
          .find((function () {
            Ir = !1;
          })), Ut({
          target: 'Array',
          proto: !0,
          forced: Ir
        }, {
          find: function (e) {
            return jr(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        }), Pr(Nr);
        var Rr = Oe('match'),
          Mr = function (e) {
            var t;
            return U(e) && (void 0 !== (t = e[Rr]) ? !!t : 'RegExp' == I(e));
          },
          Lr = b.TypeError,
          zr = Oe('species'),
          $r = function (e, t) {
            var n,
              r = ze(e).constructor;
            return void 0 === r || null == (n = ze(r)[zr]) ? t : function (e) {
              if (un(e)) return e;
              throw Lr(ie(e) + ' is not a constructor');
            }(n);
          },
          Hr = function (e, t, n) {
            var r = Fe(t);
            r in e ? Ve.f(e, r, k(0, n)) : e[r] = n;
          },
          Vr = b.Array,
          Ur = Math.max,
          Wr = function (e, t, n) {
            for (var r = xt(e), o = wt(t, r), i = wt(void 0 === n ? r : n, r), a = Vr(Ur(i - o, 0)), u = 0; o < i; o++, u++) Hr(a, u, e[o]);
            return a.length = u, a;
          },
          Gr = Cn.UNSUPPORTED_Y,
          qr = 4294967295,
          Kr = Math.min,
          Yr = [].push,
          Xr = P(/./.exec),
          Zr = P(Yr),
          Jr = P(''.slice),
          Qr = !w((function () {
            var e = /(?:)/,
              t = e.exec;
            e.exec = function () {
              return t.apply(this, arguments);
            };
            var n = 'ab'.split(e);
            return 2 !== n.length || 'a' !== n[0] || 'b' !== n[1];
          }));
        ar('split', (function (e, t, n) {
          var r;
          return r = 'c' == 'abbc'.split(/(b)*/)[1] || 4 != 'test'.split(/(?:)/, -1).length || 2 != 'ab'.split(/(?:ab)*/).length || 4 != '.'.split(/(.?)(.?)/).length || '.'.split(/()()/).length > 1 || ''.split(/.?/).length ? function (e, n) {
            var r = wn($(this)),
              o = void 0 === n ? qr : n >>> 0;
            if (0 === o) return [];
            if (void 0 === e) return [r];
            if (!Mr(e)) return x(t, r, e, o);
            for (var i, a, u, s = [], l = (e.ignoreCase ? 'i' : '') + (e.multiline ? 'm' : '') + (e.unicode ? 'u' : '') + (e.sticky ? 'y' : ''), c = 0, f = new RegExp(e.source, l + 'g'); (i = x(Jn, f, r)) && !((a = f.lastIndex) > c && (Zr(s, Jr(r, c, i.index)), i.length > 1 && i.index < r.length && rr(Yr, s, Wr(i, 1)), u = i[0].length, c = a, s.length >= o));) f.lastIndex === i.index && f.lastIndex++;
            return c === r.length ? !u && Xr(f, '') || Zr(s, '') : Zr(s, Jr(r, c)), s.length > o ? Wr(s, 0, o) : s;
          } : '0'.split(void 0, 0).length ? function (e, n) {
            return void 0 === e && 0 === n ? [] : x(t, this, e, n);
          } : t, [function (t, n) {
            var o = $(this),
              i = null == t ? void 0 : se(t, e);
            return i ? x(i, t, o, n) : x(r, wn(o), t, n);
          }, function (e, o) {
            var i = ze(this),
              a = wn(e),
              u = n(r, i, a, o, r !== t);
            if (u.done) return u.value;
            var s = $r(i, RegExp),
              l = i.unicode,
              c = (i.ignoreCase ? 'i' : '') + (i.multiline ? 'm' : '') + (i.unicode ? 'u' : '') + (Gr ? 'g' : 'y'),
              f = new s(Gr ? '^(?:' + i.source + ')' : i, c),
              d = void 0 === o ? qr : o >>> 0;
            if (0 === d) return [];
            if (0 === a.length) return null === Er(f, a) ? [a] : [];
            for (var p = 0, h = 0, v = []; h < a.length;) {
              f.lastIndex = Gr ? 0 : h;
              var g,
                y = Er(f, Gr ? Jr(a, h) : a);
              if (null === y || (g = Kr(Dt(f.lastIndex + (Gr ? h : 0)), a.length)) === p) {
                h = dr(a, h, l);
              } else {
                if (Zr(v, Jr(a, p, h)), v.length === d) return v;
                for (var m = 1; m <= y.length - 1; m++) if (Zr(v, y[m]), v.length === d) return v;
                h = p = g;
              }
            }
            return Zr(v, Jr(a, p)), v;
          }];
        }), !Qr, Gr);
        var eo,
          to = '\t\n\v\f\r                　\u2028\u2029\ufeff',
          no = P(''.replace),
          ro = '[' + to + ']',
          oo = RegExp('^' + ro + ro + '*'),
          io = RegExp(ro + ro + '*$'),
          ao = function (e) {
            return function (t) {
              var n = wn($(t));
              return 1 & e && (n = no(n, oo, '')), 2 & e && (n = no(n, io, '')), n;
            };
          },
          uo = {
            start: ao(1),
            end: ao(2),
            trim: ao(3)
          },
          so = pt.PROPER,
          lo = uo.trim;

        function co(e) {
          return 0 === l.default('<div>' + e + '</div>')
            .children()
            .filter((function (e) {
              return 'BR' !== e.tagName;
            })).length;
        }

        function fo(e) {
          return 0 === e.length ? '' : e[0].outerHTML;
        }

        function po(e) {
          return e.length ? e[0].tagName.toLowerCase() : '';
        }

        function ho(e, t) {
          for (var n = '', r = (e.attr('style') || '').split(';'), o = r.length, i = 0; i < o; i++) {
            var a = r[i];
            if (a) {
              var u = a.split(':');
              u[0].trim() === t && (n = u[1].trim());
            }
          }
          return n;
        }

        Ut({
          target: 'String',
          proto: !0,
          forced: (eo = 'trim', w((function () {
            return !!to[eo]() || '​᠎' !== '​᠎'[eo]() || so && to[eo].name !== eo;
          })))
        }, {
          trim: function () {
            return lo(this);
          }
        }), Ut({ global: !0 }, { globalThis: b }), i.css && (l.default.fn.css = i.css), i.append && (l.default.fn.append = i.append), i.prepend && (l.default.fn.prepend = i.prepend), i.addClass && (l.default.fn.addClass = i.addClass), i.removeClass && (l.default.fn.removeClass = i.removeClass), i.hasClass && (l.default.fn.hasClass = i.hasClass), i.on && (l.default.fn.on = i.on), i.off && (l.default.fn.off = i.off), i.focus && (l.default.fn.focus = i.focus), i.attr && (l.default.fn.attr = i.attr), i.removeAttr && (l.default.fn.removeAttr = i.removeAttr), i.hide && (l.default.fn.hide = i.hide), i.show && (l.default.fn.show = i.show), i.parents && (l.default.fn.parents = i.parents), i.dataset && (l.default.fn.dataset = i.dataset), i.val && (l.default.fn.val = i.val), i.text && (l.default.fn.text = i.text), i.html && (l.default.fn.html = i.html), i.children && (l.default.fn.children = i.children), i.remove && (l.default.fn.remove = i.remove), i.find && (l.default.fn.find = i.find), i.width && (l.default.fn.width = i.width), i.height && (l.default.fn.height = i.height), i.filter && (l.default.fn.filter = i.filter), i.empty && (l.default.fn.empty = i.empty);
        var vo = function (e, t) {
          return vo = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (e, t) {
            e.__proto__ = t;
          } || function (e, t) {
            for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
          }, vo(e, t);
          /*! *****************************************************************************
        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.
        ***************************************************************************** */
        };

        function go(e, t) {
          if ('function' != typeof t && null !== t) throw new TypeError('Class extends value ' + String(t) + ' is not a constructor or null');

          function n() {
            this.constructor = e;
          }

          vo(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n);
        }

        var yo = function () {
          return yo = Object.assign || function (e) {
            for (var t, n = 1, r = arguments.length; n < r; n++) for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
            return e;
          }, yo.apply(this, arguments);
        };

        function mo(e, t, n, r) {
          return new (n || (n = Promise))((function (o, i) {
            function a(e) {
              try {
                s(r.next(e));
              } catch (e) {
                i(e);
              }
            }

            function u(e) {
              try {
                s(r.throw(e));
              } catch (e) {
                i(e);
              }
            }

            function s(e) {
              var t;
              e.done ? o(e.value) : (t = e.value, t instanceof n ? t : new n((function (e) {
                e(t);
              }))).then(a, u);
            }

            s((r = r.apply(e, t || [])).next());
          }));
        }

        function bo(e, t) {
          var n,
            r,
            o,
            i,
            a = {
              label: 0,
              sent: function () {
                if (1 & o[0]) throw o[1];
                return o[1];
              },
              trys: [],
              ops: []
            };
          return i = {
            next: u(0),
            throw: u(1),
            return: u(2)
          }, 'function' == typeof Symbol && (i[Symbol.iterator] = function () {
            return this;
          }), i;

          function u(i) {
            return function (u) {
              return function (i) {
                if (n) throw new TypeError('Generator is already executing.');
                for (; a;) {
                  try {
                    if (n = 1, r && (o = 2 & i[0] ? r.return : i[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, i[1])).done) return o;
                    switch (r = 0, o && (i = [2 & i[0], o.value]), i[0]) {
                      case 0:
                      case 1:
                        o = i;
                        break;
                      case 4:
                        return a.label++, {
                          value: i[1],
                          done: !1
                        };
                      case 5:
                        a.label++, r = i[1], i = [0];
                        continue;
                      case 7:
                        i = a.ops.pop(), a.trys.pop();
                        continue;
                      default:
                        if (!((o = (o = a.trys).length > 0 && o[o.length - 1]) || 6 !== i[0] && 2 !== i[0])) {
                          a = 0;
                          continue;
                        }
                        if (3 === i[0] && (!o || i[1] > o[0] && i[1] < o[3])) {
                          a.label = i[1];
                          break;
                        }
                        if (6 === i[0] && a.label < o[1]) {
                          a.label = o[1], o = i;
                          break;
                        }
                        if (o && a.label < o[2]) {
                          a.label = o[2], a.ops.push(i);
                          break;
                        }
                        o[2] && a.ops.pop(), a.trys.pop();
                        continue;
                    }
                    i = t.call(e, a);
                  } catch (e) {
                    i = [6, e], r = 0;
                  } finally {
                    n = o = 0;
                  }
                }
                if (5 & i[0]) throw i[1];
                return {
                  value: i[0] ? i[1] : void 0,
                  done: !0
                };
              }([i, u]);
            };
          }
        }

        function wo(e) {
          var t = 'function' == typeof Symbol && Symbol.iterator,
            n = t && e[t],
            r = 0;
          if (n) return n.call(e);
          if (e && 'number' == typeof e.length) {
            return {
              next: function () {
                return e && r >= e.length && (e = void 0), {
                  value: e && e[r++],
                  done: !e
                };
              }
            };
          }
          throw new TypeError(t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.');
        }

        function Eo(e, t) {
          var n = 'function' == typeof Symbol && e[Symbol.iterator];
          if (!n) return e;
          var r,
            o,
            i = n.call(e),
            a = [];
          try {
            for (; (void 0 === t || t-- > 0) && !(r = i.next()).done;) a.push(r.value);
          } catch (e) {
            o = { error: e };
          } finally {
            try {
              r && !r.done && (n = i.return) && n.call(i);
            } finally {
              if (o) throw o.error;
            }
          }
          return a;
        }

        function Do(e) {
          var t = Eo(o.Editor.nodes(e, {
            match: function (t) {
              return e.children[0] === t;
            },
            mode: 'highest'
          }), 1)[0];
          if (null == t) return !1;
          var n = t[0];
          if (!o.Element.isElement(n)) return !1;
          if ('paragraph' === n.type) return !1;
          if ('' !== o.Node.string(n)) return !1;
          var r = n.children,
            i = void 0 === r ? [] : r;
          return !!o.Text.isText(i[0]) && (o.Transforms.setNodes(e, { type: 'paragraph' }), !0);
        }

        var xo = {
            renderElems: [f],
            elemsToHtml: [d],
            parseElemsHtml: [{
              selector: 'p',
              parseElemHtml: function (e, t, n) {
                var r = l.default(e);
                return 0 === (t = t.filter((function (e) {
                  return !!o.Text.isText(e) || !!n.isInline(e);
                }))).length && (t = [{
                  text: r.text()
                    .replace(/\s+/gm, ' ')
                }]), {
                  type: 'paragraph',
                  children: t
                };
              }
            }],
            editorPlugin: function (e) {
              var t = e.deleteBackward,
                n = e.deleteForward;
              e.insertText, e.insertBreak;
              var r = e;
              return r.deleteBackward = function (e) {
                Do(r) || t(e);
              }, r.deleteForward = function (e) {
                Do(r) || n(e);
              }, r;
            }
          },
          So = /"/g,
          Co = P(''.replace),
          Ao = function (e, t, n, r) {
            var o = wn($(e)),
              i = '<' + t;
            return '' !== n && (i += ' ' + n + '="' + Co(wn(r), So, '&quot;') + '"'), i + '>' + o + '</' + t + '>';
          },
          Oo = function (e) {
            return w((function () {
              var t = ''[e]('"');
              return t !== t.toLowerCase() || t.split('"').length > 3;
            }));
          };

        function ko(e, t) {
          var n = t,
            r = e,
            o = r.bold,
            i = r.italic,
            a = r.underline;
          return o && (n = '<strong>' + n + '</strong>'), r.code && (n = '<code>' + n + '</code>'), i && (n = '<em>' + n + '</em>'), a && (n = '<u>' + n + '</u>'), r.through && (n = '<s>' + n + '</s>'), r.sub && (n = '<sub>' + n + '</sub>'), r.sup && (n = '<sup>' + n + '</sup>'), n;
        }

        function To(e, t) {
          return 0 !== e.length && (!!e[0].matches(t) || e.find(t).length > 0);
        }

        Ut({
          target: 'String',
          proto: !0,
          forced: Oo('bold')
        }, {
          bold: function () {
            return Ao(this, 'b', '', '');
          }
        }), Ut({
          target: 'String',
          proto: !0,
          forced: Oo('italics')
        }, {
          italics: function () {
            return Ao(this, 'i', '', '');
          }
        }), Ut({
          target: 'String',
          proto: !0,
          forced: Oo('sub')
        }, {
          sub: function () {
            return Ao(this, 'sub', '', '');
          }
        }), Ut({
          target: 'String',
          proto: !0,
          forced: Oo('sup')
        }, {
          sup: function () {
            return Ao(this, 'sup', '', '');
          }
        });
        var Bo = {
            CSSRuleList: 0,
            CSSStyleDeclaration: 0,
            CSSValueList: 0,
            ClientRectList: 0,
            DOMRectList: 0,
            DOMStringList: 0,
            DOMTokenList: 1,
            DataTransferItemList: 0,
            FileList: 0,
            HTMLAllCollection: 0,
            HTMLCollection: 0,
            HTMLFormElement: 0,
            HTMLSelectElement: 0,
            MediaList: 0,
            MimeTypeArray: 0,
            NamedNodeMap: 0,
            NodeList: 1,
            PaintRequestList: 0,
            Plugin: 0,
            PluginArray: 0,
            SVGLengthList: 0,
            SVGNumberList: 0,
            SVGPathSegList: 0,
            SVGPointList: 0,
            SVGStringList: 0,
            SVGTransformList: 0,
            SourceBufferList: 0,
            StyleSheetList: 0,
            TextTrackCueList: 0,
            TextTrackList: 0,
            TouchList: 0
          },
          Fo = je('span').classList,
          _o = Fo && Fo.constructor && Fo.constructor.prototype,
          Po = _o === Object.prototype ? void 0 : _o,
          jo = function (e, t) {
            var n = [][e];
            return !!n && w((function () {
              n.call(null, t || function () {
                throw 1;
              }, 1);
            }));
          },
          No = pn.forEach,
          Io = jo('forEach') ? [].forEach : function (e) {
            return No(this, e, arguments.length > 1 ? arguments[1] : void 0);
          },
          Ro = function (e) {
            if (e && e.forEach !== Io) {
              try {
                Ue(e, 'forEach', Io);
              } catch (t) {
                e.forEach = Io;
              }
            }
          };
        for (var Mo in Bo) Bo[Mo] && Ro(b[Mo] && b[Mo].prototype);

        function Lo(e, t) {
          return null == e.selection || !!Eo(o.Editor.nodes(e, {
            match: function (t) {
              return 'pre' === n.DomEditor.getNodeType(t) || !!o.Editor.isVoid(e, t);
            },
            universal: !0
          }), 1)[0];
        }

        function zo(e, t) {
          Object.keys(t)
            .forEach((function (t) {
              'text' !== t && o.Editor.removeMark(e, t);
            }));
        }

        Ro(Po), Ut({
          target: 'Object',
          stat: !0,
          forced: w((function () {
            An(1);
          }))
        }, {
          keys: function (e) {
            return An(ge(e));
          }
        });
        var $o = function () {
            function e() {
              this.marksNeedToRemove = [], this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              var t = this.mark,
                n = o.Editor.marks(e);
              return n ? n[t] : !!Eo(o.Editor.nodes(e, {
                match: function (e) {
                  return !0 === e[t];
                }
              }), 1)[0];
            }, e.prototype.isActive = function (e) {
              return !!this.getValue(e);
            }, e.prototype.isDisabled = function (e) {
              return Lo(e, this.mark);
            }, e.prototype.exec = function (e, t) {
              var n = this.mark,
                r = this.marksNeedToRemove;
              t ? e.removeMark(n) : (e.addMark(n, !0), r && r.forEach((function (t) {
                return e.removeMark(t);
              })));
            }, e;
          }(),
          Ho = '<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',
          Vo = '<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',
          Uo = '<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',
          Wo = '<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',
          Go = '<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',
          qo = '<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',
          Ko = '<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',
          Yo = '<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',
          Xo = '<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',
          Zo = '<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',
          Jo = '<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',
          Qo = '<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',
          ei = '<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',
          ti = '<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',
          ni = '<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',
          ri = '<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',
          oi = '<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',
          ii = '<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',
          ai = '<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',
          ui = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.mark = 'bold', t.title = n.t('textStyle.bold'), t.iconSvg = Ho, t.hotkey = 'mod+b', t;
            }

            return go(t, e), t;
          }($o),
          si = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.mark = 'code', t.title = n.t('textStyle.code'), t.iconSvg = Go, t.hotkey = 'mod+e', t;
            }

            return go(t, e), t;
          }($o),
          li = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.mark = 'italic', t.title = n.t('textStyle.italic'), t.iconSvg = Uo, t.hotkey = 'mod+i', t;
            }

            return go(t, e), t;
          }($o),
          ci = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.mark = 'through', t.title = n.t('textStyle.through'), t.iconSvg = Wo, t.hotkey = 'mod+shift+x', t;
            }

            return go(t, e), t;
          }($o),
          fi = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.mark = 'underline', t.title = n.t('textStyle.underline'), t.iconSvg = Vo, t.hotkey = 'mod+u', t;
            }

            return go(t, e), t;
          }($o),
          di = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.mark = 'sub', t.marksNeedToRemove = ['sup'], t.title = n.t('textStyle.sub'), t.iconSvg = ai, t.hotkey = '', t;
            }

            return go(t, e), t;
          }($o),
          pi = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.mark = 'sup', t.marksNeedToRemove = ['sub'], t.title = n.t('textStyle.sup'), t.iconSvg = ii, t.hotkey = '', t;
            }

            return go(t, e), t;
          }($o),
          hi = function () {
            function e() {
              this.title = n.t('textStyle.clear'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>', this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.isDisabled = function (e) {
              return Lo(e);
            }, e.prototype.exec = function (e, t) {
              var n,
                r,
                i = o.Editor.nodes(e, {
                  match: function (e) {
                    return o.Text.isText(e);
                  },
                  universal: !0
                });
              try {
                for (var a = wo(i), u = a.next(); !u.done; u = a.next()) zo(e, u.value[0]);
              } catch (e) {
                n = { error: e };
              } finally {
                try {
                  u && !u.done && (r = a.return) && r.call(a);
                } finally {
                  if (n) throw n.error;
                }
              }
            }, e;
          }(),
          vi = {
            renderStyle: function (e, t) {
              var n = e,
                o = n.bold,
                i = n.italic,
                a = n.underline,
                u = n.code,
                s = n.through,
                l = n.sub,
                c = n.sup,
                f = t;
              return o && (f = r.jsx('strong', null, f)), u && (f = r.jsx('code', null, f)), i && (f = r.jsx('em', null, f)), a && (f = r.jsx('u', null, f)), s && (f = r.jsx('s', null, f)), l && (f = r.jsx('sub', null, f)), c && (f = r.jsx('sup', null, f)), f;
            },
            menus: [{
              key: 'bold',
              factory: function () {
                return new ui;
              }
            }, {
              key: 'underline',
              factory: function () {
                return new fi;
              }
            }, {
              key: 'italic',
              factory: function () {
                return new li;
              }
            }, {
              key: 'through',
              factory: function () {
                return new ci;
              }
            }, {
              key: 'code',
              factory: function () {
                return new si;
              }
            }, {
              key: 'sub',
              factory: function () {
                return new di;
              }
            }, {
              key: 'sup',
              factory: function () {
                return new pi;
              }
            }, {
              key: 'clearStyle',
              factory: function () {
                return new hi;
              }
            }],
            styleToHtml: function (e, t) {
              if (!o.Text.isText(e)) return t;
              if (co(t)) return ko(e, t);
              var n = l.default(t);
              if ('br' === po(n)) return ko(e, '<br>');
              var r = n.html();
              return r = ko(e, r), n.html(r), fo(n);
            },
            parseStyleHtml: function (e, t, n) {
              var r = l.default(e);
              if (!o.Text.isText(t)) return t;
              var i = t;
              return To(r, 'b,strong') && (i.bold = !0), To(r, 'i,em') && (i.italic = !0), To(r, 'u') && (i.underline = !0), To(r, 's,strike') && (i.through = !0), To(r, 'sub') && (i.sub = !0), To(r, 'sup') && (i.sup = !0), To(r, 'code') && (i.code = !0), i;
            }
          };

        function gi(e) {
          return function (t, n, o) {
            var i = 'h' + e;
            return r.jsx(i, null, n);
          };
        }

        var yi = {
            type: 'header1',
            renderElem: gi(1)
          },
          mi = {
            type: 'header2',
            renderElem: gi(2)
          },
          bi = {
            type: 'header3',
            renderElem: gi(3)
          },
          wi = {
            type: 'header4',
            renderElem: gi(4)
          },
          Ei = {
            type: 'header5',
            renderElem: gi(5)
          },
          Di = pt.PROPER,
          xi = 'toString',
          Si = RegExp.prototype,
          Ci = Si.toString,
          Ai = P(En),
          Oi = w((function () {
            return '/a/b' != Ci.call({
              source: 'a',
              flags: 'b'
            });
          })),
          ki = Di && Ci.name != xi;
        (Oi || ki) && ht(RegExp.prototype, xi, (function () {
          var e = ze(this),
            t = wn(e.source),
            n = e.flags;
          return '/' + t + '/' + wn(void 0 === n && q(Si, e) && !('flags' in Si) ? Ai(e) : n);
        }), { unsafe: !0 });
        var Ti,
          Bi = b.TypeError,
          Fi = function (e) {
            if (Mr(e)) throw Bi('The method doesn\'t accept regular expressions');
            return e;
          },
          _i = Oe('match'),
          Pi = function (e) {
            var t = /./;
            try {
              '/./'[e](t);
            } catch (n) {
              try {
                return t[_i] = !1, '/./'[e](t);
              } catch (e) {
              }
            }
            return !1;
          },
          ji = Re.f,
          Ni = P(''.startsWith),
          Ii = P(''.slice),
          Ri = Math.min,
          Mi = Pi('startsWith');

        function Li(e) {
          var t = Eo(o.Editor.nodes(e, {
              match: function (e) {
                return n.DomEditor.getNodeType(e)
                  .startsWith('header');
              },
              universal: !0
            }), 1),
            r = t[0];
          if (null == r) return 'paragraph';
          var i = Eo(r, 1)[0];
          return n.DomEditor.getNodeType(i);
        }

        function zi(e) {
          return null == e.selection || !Eo(o.Editor.nodes(e, {
            match: function (e) {
              var t = n.DomEditor.getNodeType(e);
              return 'paragraph' === t || !!t.startsWith('header');
            },
            universal: !0,
            mode: 'highest'
          }), 1)[0];
        }

        function $i(e, t) {
          t && o.Transforms.setNodes(e, { type: t });
        }

        Ut({
          target: 'String',
          proto: !0,
          forced: !(!Mi && (Ti = ji(String.prototype, 'startsWith'), Ti && !Ti.writable) || Mi)
        }, {
          startsWith: function (e) {
            var t = wn($(this));
            Fi(e);
            var n = Dt(Ri(arguments.length > 1 ? arguments[1] : void 0, t.length)),
              r = wn(e);
            return Ni ? Ni(t, r, n) : Ii(t, n, n + r.length) === r;
          }
        });
        var Hi = function () {
            function e() {
              this.title = n.t('header.title'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>', this.tag = 'select', this.width = 60;
            }

            return e.prototype.getOptions = function (e) {
              var t = [{
                  value: 'header1',
                  text: 'H1',
                  styleForRenderMenuList: {
                    'font-size': '32px',
                    'font-weight': 'bold'
                  }
                }, {
                  value: 'header2',
                  text: 'H2',
                  styleForRenderMenuList: {
                    'font-size': '24px',
                    'font-weight': 'bold'
                  }
                }, {
                  value: 'header3',
                  text: 'H3',
                  styleForRenderMenuList: {
                    'font-size': '18px',
                    'font-weight': 'bold'
                  }
                }, {
                  value: 'header4',
                  text: 'H4',
                  styleForRenderMenuList: {
                    'font-size': '16px',
                    'font-weight': 'bold'
                  }
                }, {
                  value: 'header5',
                  text: 'H5',
                  styleForRenderMenuList: {
                    'font-size': '13px',
                    'font-weight': 'bold'
                  }
                }, {
                  value: 'paragraph',
                  text: n.t('header.text')
                }],
                r = this.getValue(e)
                  .toString();
              return t.forEach((function (e) {
                e.value === r ? e.selected = !0 : delete e.selected;
              })), t;
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.getValue = function (e) {
              return Li(e);
            }, e.prototype.isDisabled = function (e) {
              return zi(e);
            }, e.prototype.exec = function (e, t) {
              $i(e, t.toString());
            }, e;
          }(),
          Vi = function () {
            function e() {
              this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return Li(e);
            }, e.prototype.isActive = function (e) {
              return this.getValue(e) === this.type;
            }, e.prototype.isDisabled = function (e) {
              return zi(e);
            }, e.prototype.exec = function (e, t) {
              var n = this.type;
              $i(e, t === n ? 'paragraph' : n);
            }, e;
          }(),
          Ui = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = 'H1', t.type = 'header1', t;
            }

            return go(t, e), t;
          }(Vi),
          Wi = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = 'H2', t.type = 'header2', t;
            }

            return go(t, e), t;
          }(Vi),
          Gi = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = 'H3', t.type = 'header3', t;
            }

            return go(t, e), t;
          }(Vi),
          qi = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = 'H4', t.type = 'header4', t;
            }

            return go(t, e), t;
          }(Vi),
          Ki = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = 'H5', t.type = 'header5', t;
            }

            return go(t, e), t;
          }(Vi),
          Yi = {
            key: 'headerSelect',
            factory: function () {
              return new Hi;
            }
          },
          Xi = {
            key: 'header1',
            factory: function () {
              return new Ui;
            }
          },
          Zi = {
            key: 'header2',
            factory: function () {
              return new Wi;
            }
          },
          Ji = {
            key: 'header3',
            factory: function () {
              return new Gi;
            }
          },
          Qi = {
            key: 'header4',
            factory: function () {
              return new qi;
            }
          },
          ea = {
            key: 'header5',
            factory: function () {
              return new Ki;
            }
          };

        function ta(e) {
          return function (t, n) {
            return '<h' + e + '>' + n + '</h' + e + '>';
          };
        }

        function na(e) {
          return function (t, n, r) {
            var i = l.default(t);
            return 0 === (n = n.filter((function (e) {
              return !!o.Text.isText(e) || !!r.isInline(e);
            }))).length && (n = [{
              text: i.text()
                .replace(/\s+/gm, ' ')
            }]), {
              type: 'header' + e,
              children: n
            };
          };
        }

        var ra = {
            renderElems: [yi, mi, bi, wi, Ei],
            elemsToHtml: [{
              type: 'header1',
              elemToHtml: ta(1)
            }, {
              type: 'header2',
              elemToHtml: ta(2)
            }, {
              type: 'header3',
              elemToHtml: ta(3)
            }, {
              type: 'header4',
              elemToHtml: ta(4)
            }, {
              type: 'header5',
              elemToHtml: ta(5)
            }],
            parseElemsHtml: [{
              selector: 'h1',
              parseElemHtml: na(1)
            }, {
              selector: 'h2',
              parseElemHtml: na(2)
            }, {
              selector: 'h3',
              parseElemHtml: na(3)
            }, {
              selector: 'h4',
              parseElemHtml: na(4)
            }, {
              selector: 'h5',
              parseElemHtml: na(5)
            }],
            menus: [Yi, Xi, Zi, Ji, Qi, ea],
            editorPlugin: function (e) {
              var t = e.insertBreak;
              e.insertNode;
              var r = e;
              return r.insertBreak = function () {
                var i = Eo(o.Editor.nodes(r, {
                  match: function (e) {
                    return n.DomEditor.getNodeType(e)
                      .startsWith('header');
                  },
                  universal: !0
                }), 1)[0];
                i && n.DomEditor.isSelectionAtLineEnd(e, i[1]) ? o.Transforms.insertNodes(r, {
                  type: 'paragraph',
                  children: [{ text: '' }]
                }, { mode: 'highest' }) : t();
              }, r;
            }
          },
          oa = Object.assign,
          ia = Object.defineProperty,
          aa = P([].concat),
          ua = !oa || w((function () {
            if (E && 1 !== oa({ b: 1 }, oa(ia({}, 'a', {
              enumerable: !0,
              get: function () {
                ia(this, 'b', {
                  value: 3,
                  enumerable: !1
                });
              }
            }), { b: 2 })).b) {
              return !0;
            }
            var e = {},
              t = {},
              n = Symbol(),
              r = 'abcdefghijklmnopqrst';
            return e[n] = 7, r.split('')
              .forEach((function (e) {
                t[e] = e;
              })), 7 != oa({}, e)[n] || An(oa({}, t))
              .join('') != r;
          })) ? function (e, t) {
            for (var n = ge(e), r = arguments.length, o = 1, i = _t.f, a = O.f; r > o;) for (var u, s = L(arguments[o++]), l = i ? aa(An(s), i(s)) : An(s), c = l.length, f = 0; c > f;) u = l[f++], E && !x(a, s, u) || (n[u] = s[u]);
            return n;
          } : oa;

        function sa(e, t) {
          null == e.data && (e.data = {});
          var n = e.data;
          null == n.style && (n.style = {}), Object.assign(n.style, t);
        }

        Ut({
          target: 'Object',
          stat: !0,
          forced: Object.assign !== ua
        }, { assign: ua });
        var la = {
            selector: 'font',
            preParseHtml: function (e) {
              var t = l.default(e);
              if ('font' !== po(t)) return e;
              var n = t.attr('color') || '';
              return n && (t.removeAttr('color'), t.css('color', n)), t[0];
            }
          },
          ca = function () {
            function e() {
              this.tag = 'button', this.showDropPanel = !0, this.$content = null;
            }

            return e.prototype.exec = function (e, t) {
            }, e.prototype.getValue = function (e) {
              var t = this.mark,
                n = o.Editor.marks(e);
              return n && n[t] ? n[t] : '';
            }, e.prototype.isActive = function (e) {
              return !!this.getValue(e);
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || !!Eo(o.Editor.nodes(e, {
                match: function (t) {
                  return 'pre' === n.DomEditor.getNodeType(t) || !!o.Editor.isVoid(e, t);
                },
                universal: !0
              }), 1)[0];
            }, e.prototype.getPanelContentElem = function (e) {
              var t = this.mark;
              if (null == this.$content) {
                var r = l.default('<ul class="w-e-panel-content-color"></ul>');
                r.on('click', 'li', (function (n) {
                  var r = n.target;
                  if (null != r && (n.preventDefault(), null != e.selection)) {
                    var i = l.default(r)
                      .attr('data-value');
                    '0' === i ? o.Editor.removeMark(e, t) : o.Editor.addMark(e, t, i);
                  }
                })), this.$content = r;
              }
              var i = this.$content;
              if (null == i) return document.createElement('ul');
              i.empty();
              var a = this.getValue(e),
                u = e.getMenuConfig(t).colors;
              (void 0 === u ? [] : u).forEach((function (e) {
                var t = l.default('<div class="color-block" data-value="' + e + '"></div>');
                t.css('background-color', e);
                var n = l.default('<li data-value="' + e + '"></li>');
                a === e && n.addClass('active'), n.append(t), i.append(n);
              }));
              var s = '';
              'color' === t && (s = n.t('color.default')), 'bgColor' === t && (s = n.t('color.clear'));
              var c = l.default('\n      <li data-value="0" class="clear">\n        <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n        ' + s + '\n      </li>\n    ');
              return i.prepend(c), i[0];
            }, e;
          }(),
          fa = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = n.t('color.color'), t.iconSvg = Yo, t.mark = 'color', t;
            }

            return go(t, e), t;
          }(ca),
          da = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = n.t('color.bgColor'), t.iconSvg = Xo, t.mark = 'bgColor', t;
            }

            return go(t, e), t;
          }(ca),
          pa = ['rgb(0, 0, 0)', 'rgb(38, 38, 38)', 'rgb(89, 89, 89)', 'rgb(140, 140, 140)', 'rgb(191, 191, 191)', 'rgb(217, 217, 217)', 'rgb(233, 233, 233)', 'rgb(245, 245, 245)', 'rgb(250, 250, 250)', 'rgb(255, 255, 255)', 'rgb(225, 60, 57)', 'rgb(231, 95, 51)', 'rgb(235, 144, 58)', 'rgb(245, 219, 77)', 'rgb(114, 192, 64)', 'rgb(89, 191, 192)', 'rgb(66, 144, 247)', 'rgb(54, 88, 226)', 'rgb(106, 57, 201)', 'rgb(216, 68, 147)', 'rgb(251, 233, 230)', 'rgb(252, 237, 225)', 'rgb(252, 239, 212)', 'rgb(252, 251, 207)', 'rgb(231, 246, 213)', 'rgb(218, 244, 240)', 'rgb(217, 237, 250)', 'rgb(224, 232, 250)', 'rgb(237, 225, 248)', 'rgb(246, 226, 234)', 'rgb(255, 163, 158)', 'rgb(255, 187, 150)', 'rgb(255, 213, 145)', 'rgb(255, 251, 143)', 'rgb(183, 235, 143)', 'rgb(135, 232, 222)', 'rgb(145, 213, 255)', 'rgb(173, 198, 255)', 'rgb(211, 173, 247)', 'rgb(255, 173, 210)', 'rgb(255, 77, 79)', 'rgb(255, 122, 69)', 'rgb(255, 169, 64)', 'rgb(255, 236, 61)', 'rgb(115, 209, 61)', 'rgb(54, 207, 201)', 'rgb(64, 169, 255)', 'rgb(89, 126, 247)', 'rgb(146, 84, 222)', 'rgb(247, 89, 171)', 'rgb(207, 19, 34)', 'rgb(212, 56, 13)', 'rgb(212, 107, 8)', 'rgb(212, 177, 6)', 'rgb(56, 158, 13)', 'rgb(8, 151, 156)', 'rgb(9, 109, 217)', 'rgb(29, 57, 196)', 'rgb(83, 29, 171)', 'rgb(196, 29, 127)', 'rgb(130, 0, 20)', 'rgb(135, 20, 0)', 'rgb(135, 56, 0)', 'rgb(97, 71, 0)', 'rgb(19, 82, 0)', 'rgb(0, 71, 79)', 'rgb(0, 58, 140)', 'rgb(6, 17, 120)', 'rgb(34, 7, 94)', 'rgb(120, 6, 80)'],
          ha = {
            renderStyle: function (e, t) {
              var n = e,
                r = n.color,
                o = n.bgColor,
                i = t;
              return r && sa(i, { color: r }), o && sa(i, { backgroundColor: o }), i;
            },
            styleToHtml: function (e, t) {
              if (!o.Text.isText(e)) return t;
              var n,
                r = e,
                i = r.color,
                a = r.bgColor;
              return i || a ? ((co(t) || 'span' !== po(n = l.default(t))) && (n = l.default('<span>' + t + '</span>')), i && n.css('color', i), a && n.css('background-color', a), fo(n)) : t;
            },
            preParseHtml: [la],
            parseStyleHtml: function (e, t, n) {
              var r = l.default(e);
              if (!o.Text.isText(t)) return t;
              var i = t,
                a = ho(r, 'color');
              a && (i.color = a);
              var u = ho(r, 'background-color');
              return u || (u = ho(r, 'background')), u && (i.bgColor = u), i;
            },
            menus: [{
              key: 'color',
              factory: function () {
                return new fa;
              },
              config: { colors: pa }
            }, {
              key: 'bgColor',
              factory: function () {
                return new da;
              },
              config: { colors: pa }
            }]
          },
          va = function (e) {
            if ('string' != typeof e) return !1;
            var t = e.match(ga);
            if (!t) return !1;
            var n = t[1];
            return !(!n || !ya.test(n) && !ma.test(n));
          },
          ga = /^(?:\w+:)?\/\/(\S+)$/,
          ya = /^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,
          ma = /^[^\s\.]+\.\S{2,}$/,
          ba = Ct.includes;

        function wa(e) {
          return void 0 === e && (e = 'r'), e + '-' + a.nanoid();
        }

        function Ea(e) {
          return e.replace(/</g, '&lt;')
            .replace(/>/g, '&gt;');
        }

        function Da(e, t, n, r) {
          return mo(this, void 0, void 0, (function () {
            var o,
              i;
            return bo(this, (function (a) {
              switch (a.label) {
                case 0:
                  return (o = t.getMenuConfig(e).checkLink) ? [4, o(n, r)] : [3, 2];
                case 1:
                  if ('string' == typeof (i = a.sent())) return t.alert(i, 'error'), [2, !1];
                  if (null == i) return [2, !1];
                  a.label = 2;
                case 2:
                  return [2, !0];
              }
            }));
          }));
        }

        function xa(e, t, n) {
          return mo(this, void 0, void 0, (function () {
            var r;
            return bo(this, (function (o) {
              switch (o.label) {
                case 0:
                  return (r = t.getMenuConfig(e).parseLinkUrl) ? [4, r(n)] : [3, 2];
                case 1:
                  return [2, o.sent()];
                case 2:
                  return [2, n];
              }
            }));
          }));
        }

        function Sa(e) {
          return null == e.selection || !!n.DomEditor.getSelectedElems(e)
            .some((function (t) {
              var n = t.type;
              return !!e.isVoid(t) || !!['pre', 'code', 'link'].includes(n) || void 0;
            }));
        }

        function Ca(e, t) {
          return {
            type: 'link',
            url: Ea(e),
            children: t ? [{ text: t }] : []
          };
        }

        function Aa(e, t, n) {
          return mo(this, void 0, void 0, (function () {
            var r,
              i,
              a;
            return bo(this, (function (u) {
              switch (u.label) {
                case 0:
                  return n ? (t || (t = n), e.restoreSelection(), Sa(e) ? [2] : [4, Da('insertLink', e, t, n)]) : [2];
                case 1:
                  return u.sent() ? [4, xa('insertLink', e, n)] : [2];
                case 2:
                  return r = u.sent(), null == (i = e.selection) || (o.Range.isCollapsed(i) ? (e.insertText(' '), a = Ca(r, t), o.Transforms.insertNodes(e, a), e.insertFragment([{ text: ' ' }])) : o.Editor.string(e, i) !== t ? (e.deleteFragment(), a = Ca(r, t), o.Transforms.insertNodes(e, a)) : (a = Ca(r), o.Transforms.wrapNodes(e, a, { split: !0 }), o.Transforms.collapse(e, { edge: 'end' }))), [2];
              }
            }));
          }));
        }

        Ut({
          target: 'Array',
          proto: !0
        }, {
          includes: function (e) {
            return ba(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        }), Pr('includes');
        var Oa = {
            type: 'link',
            renderElem: function (e, t, n) {
              var o = e,
                i = o.url,
                a = o.target,
                u = void 0 === a ? '_blank' : a;
              return r.jsx('a', {
                href: i,
                target: u
              }, t);
            }
          },
          ka = {
            type: 'link',
            elemToHtml: function (e, t) {
              var n = e,
                r = n.url,
                o = n.target;
              return '<a href="' + r + '" target="' + (void 0 === o ? '_blank' : o) + '">' + t + '</a>';
            }
          },
          Ta = {
            selector: 'a',
            parseElemHtml: function (e, t, n) {
              var r = l.default(e);
              return 0 === (t = t.filter((function (e) {
                return !!o.Text.isText(e) || !!n.isInline(e);
              }))).length && (t = [{
                text: r.text()
                  .replace(/\s+/gm, ' ')
              }]), {
                type: 'link',
                url: r.attr('href') || '',
                target: r.attr('target') || '',
                children: t
              };
            }
          };

        function Ba() {
          return wa('w-e-insert-link');
        }

        var Fa = function () {
          function e() {
            this.title = n.t('link.insert'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>', this.tag = 'button', this.showModal = !0, this.modalWidth = 300, this.$content = null, this.textInputId = Ba(), this.urlInputId = Ba(), this.buttonId = Ba();
          }

          return e.prototype.getValue = function (e) {
            return '';
          }, e.prototype.isActive = function (e) {
            return !1;
          }, e.prototype.exec = function (e, t) {
          }, e.prototype.isDisabled = function (e) {
            return Sa(e);
          }, e.prototype.getModalPositionNode = function (e) {
            return null;
          }, e.prototype.getModalContentElem = function (e) {
            var t = e.selection,
              r = this,
              i = r.textInputId,
              a = r.urlInputId,
              u = r.buttonId,
              s = Eo(n.genModalInputElems(n.t('link.text'), i), 2),
              c = s[0],
              f = s[1],
              d = l.default(f),
              p = Eo(n.genModalInputElems(n.t('link.url'), a), 2),
              h = p[0],
              v = p[1],
              g = l.default(v),
              y = Eo(n.genModalButtonElems(u, n.t('common.ok')), 1)[0];
            if (null == this.$content) {
              var m = l.default('<div></div>');
              m.on('click', '#' + u, (function (t) {
                t.preventDefault();
                var n = m.find('#' + i)
                    .val(),
                  r = m.find('#' + a)
                    .val();
                Aa(e, n, r), e.hidePanelOrModal();
              })), this.$content = m;
            }
            var b = this.$content;
            if (b.empty(), b.append(c), b.append(h), b.append(y), null == t || o.Range.isCollapsed(t)) {
              d.val('');
            } else {
              var w = o.Editor.string(e, t);
              d.val(w);
            }
            return g.val(''), setTimeout((function () {
              d.focus();
            })), b[0];
          }, e;
        }();

        function _a() {
          return wa('w-e-update-link');
        }

        var Pa = function () {
            function e() {
              this.title = n.t('link.edit'), this.iconSvg = qo, this.tag = 'button', this.showModal = !0, this.modalWidth = 300, this.$content = null, this.urlInputId = _a(), this.buttonId = _a();
            }

            return e.prototype.getSelectedLinkElem = function (e) {
              var t = n.DomEditor.getSelectedNodeByType(e, 'link');
              return null == t ? null : t;
            }, e.prototype.getValue = function (e) {
              var t = this.getSelectedLinkElem(e);
              return t && t.url || '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.exec = function (e, t) {
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || null == this.getSelectedLinkElem(e);
            }, e.prototype.getModalPositionNode = function (e) {
              return n.DomEditor.getSelectedNodeByType(e, 'link');
            }, e.prototype.getModalContentElem = function (e) {
              var t = this.urlInputId,
                r = this.buttonId,
                i = Eo(n.genModalInputElems(n.t('link.url'), t), 2),
                a = i[0],
                u = i[1],
                s = l.default(u),
                c = Eo(n.genModalButtonElems(r, n.t('common.ok')), 1)[0];
              if (null == this.$content) {
                var f = l.default('<div></div>');
                f.on('click', 'button', (function (r) {
                  r.preventDefault(), e.restoreSelection();
                  var i = n.DomEditor.getSelectedNodeByType(e, 'link'),
                    a = i ? o.Node.string(i) : '',
                    u = f.find('#' + t)
                      .val();
                  !function (e, t, r) {
                    mo(this, void 0, void 0, (function () {
                      var i,
                        a;
                      return bo(this, (function (u) {
                        switch (u.label) {
                          case 0:
                            return r ? [4, Da('editLink', e, t, r)] : [2];
                          case 1:
                            return u.sent() ? [4, xa('editLink', e, r)] : [2];
                          case 2:
                            return i = u.sent(), a = { url: Ea(i) }, o.Transforms.setNodes(e, a, {
                              match: function (e) {
                                return n.DomEditor.checkNodeType(e, 'link');
                              }
                            }), [2];
                        }
                      }));
                    }));
                  }(e, a, u), e.hidePanelOrModal();
                })), this.$content = f;
              }
              var d = this.$content;
              d.empty(), d.append(a), d.append(c);
              var p = this.getValue(e);
              return s.val(p), setTimeout((function () {
                s.focus();
              })), d[0];
            }, e;
          }(),
          ja = function () {
            function e() {
              this.title = n.t('link.unLink'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>', this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || null == n.DomEditor.getSelectedNodeByType(e, 'link');
            }, e.prototype.exec = function (e, t) {
              this.isDisabled(e) || o.Transforms.unwrapNodes(e, {
                match: function (e) {
                  return n.DomEditor.checkNodeType(e, 'link');
                }
              });
            }, e;
          }(),
          Na = function () {
            function e() {
              this.title = n.t('link.view'), this.iconSvg = Ko, this.tag = 'button';
            }

            return e.prototype.getSelectedLinkElem = function (e) {
              var t = n.DomEditor.getSelectedNodeByType(e, 'link');
              return null == t ? null : t;
            }, e.prototype.getValue = function (e) {
              var t = this.getSelectedLinkElem(e);
              return t && t.url || '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || null == this.getSelectedLinkElem(e);
            }, e.prototype.exec = function (e, t) {
              if (!this.isDisabled(e)) {
                if (!t || 'string' != typeof t) throw new Error('View link failed, link url is \'' + t + '\'');
                window.open(t, '_blank');
              }
            }, e;
          }(),
          Ia = {
            checkLink: function (e, t) {
              return !0;
            },
            parseLinkUrl: function (e) {
              return e;
            }
          },
          Ra = {
            renderElems: [Oa],
            elemsToHtml: [ka],
            parseElemsHtml: [Ta],
            menus: [{
              key: 'insertLink',
              factory: function () {
                return new Fa;
              },
              config: Ia
            }, {
              key: 'editLink',
              factory: function () {
                return new Pa;
              },
              config: Ia
            }, {
              key: 'unLink',
              factory: function () {
                return new ja;
              }
            }, {
              key: 'viewLink',
              factory: function () {
                return new Na;
              }
            }],
            editorPlugin: function (e) {
              var t = e.isInline,
                r = e.insertData,
                i = e.normalizeNode;
              e.insertNode, e.insertText;
              var a = e;
              return a.isInline = function (e) {
                return 'link' === e.type || t(e);
              }, a.insertData = function (e) {
                var t = e.getData('text/plain');
                if (va(t)) {
                  if (!Sa(a)) {
                    var n = a.selection;
                    if (null != n) {
                      var i = o.Editor.string(a, n);
                      Aa(a, i, t);
                    }
                  }
                } else {
                  r(e);
                }
              }, a.normalizeNode = function (e) {
                var t = Eo(e, 2),
                  r = t[0],
                  u = t[1];
                return 'link' !== n.DomEditor.getNodeType(r) ? i([r, u]) : '' === o.Node.string(r) ? o.Transforms.removeNodes(a, { at: u }) : i([r, u]);
              }, a;
            }
          },
          Ma = P(1..valueOf),
          La = b.RangeError,
          za = b.RangeError,
          $a = b.String,
          Ha = Math.floor,
          Va = P((function (e) {
            var t = wn($(this)),
              n = '',
              r = yt(e);
            if (r < 0 || r == 1 / 0) throw La('Wrong number of repetitions');
            for (; r > 0; (r >>>= 1) && (t += t)) 1 & r && (n += t);
            return n;
          })),
          Ua = P(''.slice),
          Wa = P(1..toFixed),
          Ga = function (e, t, n) {
            return 0 === t ? n : t % 2 == 1 ? Ga(e, t - 1, n * e) : Ga(e * e, t / 2, n);
          },
          qa = function (e, t, n) {
            for (var r = -1, o = n; ++r < 6;) o += t * e[r], e[r] = o % 1e7, o = Ha(o / 1e7);
          },
          Ka = function (e, t) {
            for (var n = 6, r = 0; --n >= 0;) r += e[n], e[n] = Ha(r / t), r = r % t * 1e7;
          },
          Ya = function (e) {
            for (var t = 6, n = ''; --t >= 0;) {
              if ('' !== n || 0 === t || 0 !== e[t]) {
                var r = $a(e[t]);
                n = '' === n ? r : n + Va('0', 7 - r.length) + r;
              }
            }
            return n;
          };

        function Xa(e, t) {
          return 'w-e-image-container-' + n.DomEditor.findKey(e, t).id;
        }

        function Za(e, t, i, a) {
          var u = l.default('body'),
            s = Xa(e, t),
            f = a.width,
            d = a.height,
            p = 0,
            h = 0,
            v = 0,
            g = !1,
            y = null;

          function m(t) {
            y = function () {
              var e = l.default('#' + s);
              if (0 === e.length) throw new Error('Cannot find image container elem');
              return e;
            }(), p = t;
            var r = y.find('img');
            if (0 === r.length) throw new Error('Cannot find image elem');
            h = r.width(), v = r.height(), u.on('mousemove', b), u.on('mouseup', w);
            var o = n.DomEditor.getHoverbar(e);
            o && o.hideAndClean();
          }

          var b = c.default((function (e) {
            e.preventDefault();
            var t = e.clientX,
              n = h + (g ? p - t : t - p),
              r = v * (n / h);
            null != y && (n <= 15 || r <= 15 || (y.css('width', n + 'px'), y.css('height', r + 'px')));
          }), 100);

          function w(r) {
            if (u.off('mousemove', b), null != y) {
              var i = y.width()
                  .toFixed(2),
                a = y.height()
                  .toFixed(2),
                s = {
                  style: yo(yo({}, t.style), {
                    width: i + 'px',
                    height: a + 'px'
                  })
                };
              o.Transforms.setNodes(e, s, { at: n.DomEditor.findPath(e, t) }), u.off('mouseup', w);
            }
          }

          var E = {};
          return f && (E.width = f), d && (E.height = d), r.jsx('div', {
            id: s,
            style: E,
            className: 'w-e-image-container w-e-selected-image-container',
            on: {
              mousedown: function (e) {
                var t = l.default(e.target);
                t.hasClass('w-e-image-dragger') && (e.preventDefault(), (t.hasClass('left-top') || t.hasClass('left-bottom')) && (g = !0), m(e.clientX));
              }
            }
          }, i, r.jsx('div', { className: 'w-e-image-dragger left-top' }), r.jsx('div', { className: 'w-e-image-dragger right-top' }), r.jsx('div', { className: 'w-e-image-dragger left-bottom' }), r.jsx('div', { className: 'w-e-image-dragger right-bottom' }));
        }

        Ut({
          target: 'Number',
          proto: !0,
          forced: w((function () {
            return '0.000' !== Wa(8e-5, 3) || '1' !== Wa(.9, 0) || '1.25' !== Wa(1.255, 2) || '1000000000000000128' !== Wa(0xde0b6b3a7640080, 0);
          })) || !w((function () {
            Wa({});
          }))
        }, {
          toFixed: function (e) {
            var t,
              n,
              r,
              o,
              i = Ma(this),
              a = yt(e),
              u = [0, 0, 0, 0, 0, 0],
              s = '',
              l = '0';
            if (a < 0 || a > 20) throw za('Incorrect fraction digits');
            if (i != i) return 'NaN';
            if (i <= -1e21 || i >= 1e21) return $a(i);
            if (i < 0 && (s = '-', i = -i), i > 1e-21) {
              if (n = (t = function (e) {
                for (var t = 0, n = e; n >= 4096;) t += 12, n /= 4096;
                for (; n >= 2;) t += 1, n /= 2;
                return t;
              }(i * Ga(2, 69, 1)) - 69) < 0 ? i * Ga(2, -t, 1) : i / Ga(2, t, 1), n *= 4503599627370496, (t = 52 - t) > 0) {
                for (qa(u, 0, n), r = a; r >= 7;) qa(u, 1e7, 0), r -= 7;
                for (qa(u, Ga(10, r, 1), 0), r = t - 1; r >= 23;) Ka(u, 1 << 23), r -= 23;
                Ka(u, 1 << r), qa(u, 1, 1), Ka(u, 2), l = Ya(u);
              } else {
                qa(u, 0, n), qa(u, 1 << -t, 0), l = Ya(u) + Va('0', a);
              }
            }
            return a > 0 ? s + ((o = l.length) <= a ? '0.' + Va('0', a - o) + l : Ua(l, 0, o - a) + '.' + Ua(l, o - a)) : s + l;
          }
        });
        var Ja = {
            type: 'image',
            renderElem: function (e, t, o) {
              var i = e,
                a = i.src,
                u = i.alt,
                s = void 0 === u ? '' : u,
                l = i.href,
                c = void 0 === l ? '' : l,
                f = i.style,
                d = void 0 === f ? {} : f,
                p = d.width,
                h = void 0 === p ? '' : p,
                v = d.height,
                g = void 0 === v ? '' : v,
                y = n.DomEditor.isNodeSelected(o, e),
                m = {};
              h && (m.width = '100%'), g && (m.height = '100%');
              var b = r.jsx('img', {
                  style: m,
                  src: a,
                  alt: s,
                  'data-href': c
                }),
                w = o.isDisabled();
              return y && !w ? Za(o, e, b, {
                width: h,
                height: g
              }) : function (e, t, n, o) {
                var i = o.width,
                  a = o.height,
                  u = {};
                i && (u.width = i), a && (u.height = a);
                var s = Xa(e, t);
                return r.jsx('div', {
                  id: s,
                  style: u,
                  className: 'w-e-image-container'
                }, n);
              }(o, e, b, {
                width: h,
                height: g
              });
            }
          },
          Qa = {
            type: 'image',
            elemToHtml: function (e, t) {
              var n = e,
                r = n.src,
                o = n.alt,
                i = void 0 === o ? '' : o,
                a = n.href,
                u = void 0 === a ? '' : a,
                s = n.style,
                l = void 0 === s ? {} : s,
                c = l.width,
                f = void 0 === c ? '' : c,
                d = l.height,
                p = void 0 === d ? '' : d,
                h = '';
              return f && (h += 'width: ' + f + ';'), p && (h += 'height: ' + p + ';'), '<img src="' + r + '" alt="' + i + '" data-href="' + u + '" style="' + h + '"/>';
            }
          },
          eu = {
            selector: 'img',
            parseElemHtml: function (e, t, n) {
              var r = l.default(e),
                o = r.attr('data-href') || '';
              return o = decodeURIComponent(o), {
                type: 'image',
                src: r.attr('src') || '',
                alt: r.attr('alt') || '',
                href: o,
                style: {
                  width: ho(r, 'width'),
                  height: ho(r, 'height')
                },
                children: [{ text: '' }]
              };
            }
          };

        function tu(e, t, n, r, o) {
          return void 0 === r && (r = ''), void 0 === o && (o = ''), mo(this, void 0, void 0, (function () {
            var i,
              a;
            return bo(this, (function (u) {
              switch (u.label) {
                case 0:
                  return (i = t.getMenuConfig(e).checkImage) ? [4, i(n, r, o)] : [3, 2];
                case 1:
                  if ('string' == typeof (a = u.sent())) return t.alert(a, 'error'), [2, !1];
                  if (null == a) return [2, !1];
                  u.label = 2;
                case 2:
                  return [2, !0];
              }
            }));
          }));
        }

        function nu(e, t, n) {
          return mo(this, void 0, void 0, (function () {
            var r;
            return bo(this, (function (o) {
              switch (o.label) {
                case 0:
                  return (r = t.getMenuConfig(e).parseImageSrc) ? [4, r(n)] : [3, 2];
                case 1:
                  return [2, o.sent()];
                case 2:
                  return [2, n];
              }
            }));
          }));
        }

        function ru(e, t, r, i) {
          return void 0 === r && (r = ''), void 0 === i && (i = ''), mo(this, void 0, void 0, (function () {
            var a,
              u,
              s;
            return bo(this, (function (l) {
              switch (l.label) {
                case 0:
                  return [4, tu('insertImage', e, t, r, i)];
                case 1:
                  return l.sent() ? [4, nu('insertImage', e, t)] : [2];
                case 2:
                  return a = l.sent(), u = {
                    type: 'image',
                    src: Ea(a),
                    href: i,
                    alt: r,
                    style: {},
                    children: [{ text: '' }]
                  }, null === e.selection && e.restoreSelection(), n.DomEditor.getSelectedNodeByType(e, 'image') && e.move(1), iu(e) || (o.Transforms.insertNodes(e, u), (s = e.getMenuConfig('insertImage').onInsertedImage) && s(u)), [2];
              }
            }));
          }));
        }

        function ou(e, t, r, i, a) {
          return void 0 === r && (r = ''), void 0 === i && (i = ''), void 0 === a && (a = {}), mo(this, void 0, void 0, (function () {
            var u,
              s,
              l,
              c,
              f,
              d;
            return bo(this, (function (p) {
              switch (p.label) {
                case 0:
                  return [4, tu('editImage', e, t, r, i)];
                case 1:
                  return p.sent() ? [4, nu('editImage', e, t)] : [2];
                case 2:
                  return u = p.sent(), null == (s = n.DomEditor.getSelectedNodeByType(e, 'image')) || (l = s.style, c = {
                    src: u,
                    alt: r,
                    href: i,
                    style: yo(yo({}, void 0 === l ? {} : l), a)
                  }, o.Transforms.setNodes(e, c, {
                    match: function (e) {
                      return n.DomEditor.checkNodeType(e, 'image');
                    }
                  }), f = n.DomEditor.getSelectedNodeByType(e, 'image'), (d = e.getMenuConfig('editImage').onUpdatedImage) && d(f)), [2];
              }
            }));
          }));
        }

        function iu(e) {
          var t = e.selection;
          return null == t || !o.Range.isCollapsed(t) || !!Eo(o.Editor.nodes(e, {
            match: function (t) {
              var r = n.DomEditor.getNodeType(t);
              return 'code' === r || 'pre' === r || 'link' === r || 'list-item' === r || !!r.startsWith('header') || 'blockquote' === r || !!o.Editor.isVoid(e, t);
            },
            universal: !0
          }), 1)[0];
        }

        function au() {
          return wa('w-e-insert-image');
        }

        var uu = function () {
            function e() {
              this.title = n.t('image.netImage'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>', this.tag = 'button', this.showModal = !0, this.modalWidth = 300, this.$content = null, this.srcInputId = au(), this.altInputId = au(), this.hrefInputId = au(), this.buttonId = au();
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.exec = function (e, t) {
            }, e.prototype.isDisabled = function (e) {
              return iu(e);
            }, e.prototype.getModalPositionNode = function (e) {
              return null;
            }, e.prototype.getModalContentElem = function (e) {
              var t = this,
                r = this,
                o = r.srcInputId,
                i = r.altInputId,
                a = r.hrefInputId,
                u = r.buttonId,
                s = Eo(n.genModalInputElems(n.t('image.src'), o), 2),
                c = s[0],
                f = s[1],
                d = l.default(f),
                p = Eo(n.genModalInputElems(n.t('image.desc'), i), 2),
                h = p[0],
                v = p[1],
                g = l.default(v),
                y = Eo(n.genModalInputElems(n.t('image.link'), a), 2),
                m = y[0],
                b = y[1],
                w = l.default(b),
                E = Eo(n.genModalButtonElems(u, n.t('common.ok')), 1)[0];
              if (null == this.$content) {
                var D = l.default('<div></div>');
                D.on('click', '#' + u, (function (n) {
                  n.preventDefault();
                  var r = D.find('#' + o)
                      .val()
                      .trim(),
                    u = D.find('#' + i)
                      .val()
                      .trim(),
                    s = D.find('#' + a)
                      .val()
                      .trim();
                  t.insertImage(e, r, u, s), e.hidePanelOrModal();
                })), this.$content = D;
              }
              var x = this.$content;
              return x.empty(), x.append(c), x.append(h), x.append(m), x.append(E), d.val(''), g.val(''), w.val(''), setTimeout((function () {
                d.focus();
              })), x[0];
            }, e.prototype.insertImage = function (e, t, n, r) {
              void 0 === n && (n = ''), void 0 === r && (r = ''), t && (e.restoreSelection(), this.isDisabled(e) || ru(e, t, n, r));
            }, e;
          }(),
          su = function () {
            function e() {
              this.title = n.t('image.delete'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>', this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || null == n.DomEditor.getSelectedNodeByType(e, 'image');
            }, e.prototype.exec = function (e, t) {
              this.isDisabled(e) || o.Transforms.removeNodes(e, {
                match: function (e) {
                  return n.DomEditor.checkNodeType(e, 'image');
                }
              });
            }, e;
          }();

        function lu() {
          return wa('w-e-edit-image');
        }

        var cu = function () {
            function e() {
              this.title = n.t('image.edit'), this.iconSvg = qo, this.tag = 'button', this.showModal = !0, this.modalWidth = 300, this.$content = null, this.srcInputId = lu(), this.altInputId = lu(), this.hrefInputId = lu(), this.buttonId = lu();
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.getImageNode = function (e) {
              return n.DomEditor.getSelectedNodeByType(e, 'image');
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.exec = function (e, t) {
            }, e.prototype.isDisabled = function (e) {
              var t = e.selection;
              return null == t || !o.Range.isCollapsed(t) || null == n.DomEditor.getSelectedNodeByType(e, 'image');
            }, e.prototype.getModalPositionNode = function (e) {
              return this.getImageNode(e);
            }, e.prototype.getModalContentElem = function (e) {
              var t = this,
                r = this,
                o = r.srcInputId,
                i = r.altInputId,
                a = r.hrefInputId,
                u = r.buttonId,
                s = this.getImageNode(e);
              if (null == s) throw new Error('Not found selected image node');
              var c = Eo(n.genModalInputElems(n.t('image.src'), o), 2),
                f = c[0],
                d = c[1],
                p = l.default(d),
                h = Eo(n.genModalInputElems(n.t('image.desc'), i), 2),
                v = h[0],
                g = h[1],
                y = l.default(g),
                m = Eo(n.genModalInputElems(n.t('image.link'), a), 2),
                b = m[0],
                w = m[1],
                E = l.default(w),
                D = Eo(n.genModalButtonElems(u, n.t('common.ok')), 1)[0];
              if (null == this.$content) {
                var x = l.default('<div></div>');
                x.on('click', '#' + u, (function (n) {
                  n.preventDefault();
                  var r = x.find('#' + o)
                      .val(),
                    u = x.find('#' + i)
                      .val(),
                    s = x.find('#' + a)
                      .val();
                  t.updateImage(e, r, u, s), e.hidePanelOrModal();
                })), this.$content = x;
              }
              var S = this.$content;
              S.empty(), S.append(f), S.append(v), S.append(b), S.append(D);
              var C = s,
                A = C.src,
                O = C.alt,
                k = void 0 === O ? '' : O,
                T = C.href,
                B = void 0 === T ? '' : T;
              return p.val(A), y.val(k), E.val(B), setTimeout((function () {
                p.focus();
              })), S[0];
            }, e.prototype.updateImage = function (e, t, n, r, o) {
              void 0 === n && (n = ''), void 0 === r && (r = ''), void 0 === o && (o = {}), t && (e.restoreSelection(), this.isDisabled(e) || ou(e, t, n, r, o));
            }, e;
          }(),
          fu = function () {
            function e() {
              this.title = n.t('image.viewLink'), this.iconSvg = Ko, this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              var t = n.DomEditor.getSelectedNodeByType(e, 'image');
              return t && t.href || '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || !this.getValue(e);
            }, e.prototype.exec = function (e, t) {
              if (!this.isDisabled(e)) {
                if (!t || 'string' != typeof t) throw new Error('View image link failed, image.href is \'' + t + '\'');
                window.open(t, '_blank');
              }
            }, e;
          }(),
          du = function () {
            function e() {
              this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.getSelectedNode = function (e) {
              return n.DomEditor.getSelectedNodeByType(e, 'image');
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || null == this.getSelectedNode(e);
            }, e.prototype.exec = function (e, t) {
              if (!this.isDisabled(e)) {
                var r = this.getSelectedNode(e);
                if (null != r) {
                  var i = n.DomEditor.getHoverbar(e);
                  i && i.hideAndClean();
                  var a = r.style,
                    u = {
                      style: yo(yo({}, void 0 === a ? {} : a), {
                        width: this.value,
                        height: ''
                      })
                    };
                  o.Transforms.setNodes(e, u, {
                    match: function (e) {
                      return n.DomEditor.checkNodeType(e, 'image');
                    }
                  });
                }
              }
            }, e;
          }(),
          pu = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = '30%', t.value = '30%', t;
            }

            return go(t, e), t;
          }(du),
          hu = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = '50%', t.value = '50%', t;
            }

            return go(t, e), t;
          }(du),
          vu = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = '100%', t.value = '100%', t;
            }

            return go(t, e), t;
          }(du),
          gu = {
            onInsertedImage: function (e) {
            },
            onUpdatedImage: function (e) {
            },
            checkImage: function (e, t, n) {
              return !0;
            },
            parseImageSrc: function (e) {
              return e;
            }
          },
          yu = {
            renderElems: [Ja],
            elemsToHtml: [Qa],
            parseElemsHtml: [eu],
            menus: [{
              key: 'insertImage',
              factory: function () {
                return new uu;
              },
              config: gu
            }, {
              key: 'deleteImage',
              factory: function () {
                return new su;
              }
            }, {
              key: 'editImage',
              factory: function () {
                return new cu;
              },
              config: gu
            }, {
              key: 'viewImageLink',
              factory: function () {
                return new fu;
              }
            }, {
              key: 'imageWidth30',
              factory: function () {
                return new pu;
              }
            }, {
              key: 'imageWidth50',
              factory: function () {
                return new hu;
              }
            }, {
              key: 'imageWidth100',
              factory: function () {
                return new vu;
              }
            }],
            editorPlugin: function (e) {
              var t = e.isInline,
                n = e.isVoid;
              e.insertNode;
              var r = e;
              return r.isInline = function (e) {
                return 'image' === e.type || t(e);
              }, r.isVoid = function (e) {
                return 'image' === e.type || n(e);
              }, r;
            }
          },
          mu = {
            type: 'todo',
            renderElem: function (e, t, i) {
              var a = !1;
              i.isDisabled() && (a = !0);
              var u = e.checked,
                s = r.jsx('div', { style: { margin: '5px 0' } }, r.jsx('span', {
                  contentEditable: !1,
                  style: { marginRight: '0.5em' }
                }, r.jsx('input', {
                  type: 'checkbox',
                  checked: u,
                  disabled: a,
                  on: {
                    change: function (t) {
                      var r = n.DomEditor.findPath(i, e),
                        a = { checked: t.target.checked };
                      o.Transforms.setNodes(i, a, { at: r });
                    }
                  }
                })), r.jsx('span', null, t));
              return s;
            }
          },
          bu = function () {
            function e() {
              this.title = n.t('todo.todo'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>', this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !!n.DomEditor.getSelectedNodeByType(e, 'todo');
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || !!n.DomEditor.getSelectedElems(e)
                .some((function (t) {
                  if (o.Editor.isVoid(e, t) && o.Editor.isBlock(e, t)) return !0;
                  var n = t.type;
                  return !!['pre', 'table', 'bulleted-list', 'numbered-list'].includes(n) || void 0;
                }));
            }, e.prototype.exec = function (e, t) {
              var n = this.isActive(e);
              o.Transforms.setNodes(e, { type: n ? 'paragraph' : 'todo' });
            }, e;
          }(),
          wu = {
            renderElems: [mu],
            elemsToHtml: [{
              type: 'todo',
              elemToHtml: function (e, t) {
                return '<div data-w-e-type="todo"><input type="checkbox" disabled ' + (e.checked ? 'checked' : '') + '>' + t + '</div>';
              }
            }],
            preParseHtml: [{
              selector: 'ul.w-e-todo',
              preParseHtml: function (e) {
                var t = l.default(e)
                    .find('li'),
                  n = l.default('<div data-w-e-type="todo"></div>'),
                  r = t.find('input[type]');
                return n.append(r), t.children()[0].remove(), n[0].innerHTML = n[0].innerHTML + t[0].innerHTML, n[0];
              }
            }],
            parseElemsHtml: [{
              selector: 'div[data-w-e-type="todo"]',
              parseElemHtml: function (e, t, n) {
                var r = l.default(e);
                0 === (t = t.filter((function (e) {
                  return !!o.Text.isText(e) || !!n.isInline(e);
                }))).length && (t = [{
                  text: r.text()
                    .replace(/\s+/gm, ' ')
                }]);
                var i = !1;
                return null != r.find('input[type="checkbox"]')
                  .attr('checked') && (i = !0), {
                  type: 'todo',
                  checked: i,
                  children: t
                };
              }
            }],
            menus: [{
              key: 'todo',
              factory: function () {
                return new bu;
              }
            }],
            editorPlugin: function (e) {
              var t = e.deleteBackward,
                r = e;
              return r.deleteBackward = function (r) {
                var i = e.selection;
                if (i && o.Range.isCollapsed(i)) {
                  var a = n.DomEditor.getSelectedNodeByType(e, 'todo');
                  if (a && 0 === o.Node.string(a).length) return void o.Transforms.setNodes(e, { type: 'paragraph' }, { mode: 'highest' });
                }
                t(r);
              }, r;
            }
          },
          Eu = {
            type: 'blockquote',
            renderElem: function (e, t, n) {
              return r.jsx('blockquote', null, t);
            }
          },
          Du = {
            type: 'blockquote',
            elemToHtml: function (e, t) {
              return '<blockquote>' + t + '</blockquote>';
            }
          },
          xu = {
            selector: 'blockquote',
            parseElemHtml: function (e, t, n) {
              var r = l.default(e);
              return 0 === (t = t.filter((function (e) {
                return !!o.Text.isText(e) || !!n.isInline(e);
              }))).length && (t = [{
                text: r.text()
                  .replace(/\s+/gm, ' ')
              }]), {
                type: 'blockquote',
                children: t
              };
            }
          },
          Su = function () {
            function e() {
              this.title = n.t('blockQuote.title'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>', this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !!n.DomEditor.getSelectedNodeByType(e, 'blockquote');
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || !Eo(o.Editor.nodes(e, {
                match: function (e) {
                  var t = n.DomEditor.getNodeType(e);
                  return 'paragraph' === t || 'blockquote' === t;
                },
                universal: !0,
                mode: 'highest'
              }), 1)[0];
            }, e.prototype.exec = function (e, t) {
              if (!this.isDisabled(e)) {
                var n = this.isActive(e) ? 'paragraph' : 'blockquote';
                o.Transforms.setNodes(e, { type: n }, { mode: 'highest' });
              }
            }, e;
          }(),
          Cu = {
            key: 'blockquote',
            factory: function () {
              return new Su;
            }
          },
          Au = P([].slice),
          Ou = vn('slice'),
          ku = Oe('species'),
          Tu = b.Array,
          Bu = Math.max;
        Ut({
          target: 'Array',
          proto: !0,
          forced: !Ou
        }, {
          slice: function (e, t) {
            var n,
              r,
              o,
              i = H(this),
              a = xt(i),
              u = wt(e, a),
              s = wt(void 0 === t ? a : t, a);
            if (Gt(i) && (n = i.constructor, (un(n) && (n === Tu || Gt(n.prototype)) || U(n) && null === (n = n[ku])) && (n = void 0), n === Tu || void 0 === n)) return Au(i, u, s);
            for (r = new (void 0 === n ? Tu : n)(Bu(s - u, 0)), o = 0; u < s; u++, o++) u in i && Hr(r, o, i[u]);
            return r.length = o, r;
          }
        });
        var Fu = {
            renderElems: [Eu],
            elemsToHtml: [Du],
            parseElemsHtml: [xu],
            menus: [Cu],
            editorPlugin: function (e) {
              var t = e.insertBreak,
                r = e.insertText,
                i = e;
              return i.insertBreak = function () {
                var a = i.selection;
                if (null == a) return t();
                var u = Eo(o.Editor.nodes(e, {
                  match: function (e) {
                    return n.DomEditor.checkNodeType(e, 'blockquote');
                  },
                  universal: !0
                }), 1)[0];
                if (!u) return t();
                var s = u[0],
                  l = n.DomEditor.findPath(e, s),
                  c = o.Editor.end(e, l);
                if (o.Point.equals(c, a.focus)) {
                  var f = o.Node.string(s);
                  if (f && '\n' === f.slice(-1)) {
                    return e.deleteBackward('character'), void o.Transforms.insertNodes(i, {
                      type: 'paragraph',
                      children: [{ text: '' }]
                    }, { mode: 'highest' });
                  }
                }
                r('\n');
              }, i;
            }
          },
          _u = function () {
            function e() {
              this.title = n.t('emotion.title'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>', this.tag = 'button', this.showDropPanel = !0, this.$content = null;
            }

            return e.prototype.exec = function (e, t) {
            }, e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || !!Eo(o.Editor.nodes(e, {
                match: function (t) {
                  return 'pre' === n.DomEditor.getNodeType(t) || !!o.Editor.isVoid(e, t);
                },
                universal: !0
              }), 1)[0];
            }, e.prototype.getPanelContentElem = function (e) {
              if (null == this.$content) {
                var t = l.default('<ul class="w-e-panel-content-emotion"></ul>');
                t.on('click', 'li', (function (t) {
                  var n = t.target;
                  if (null != n) {
                    t.preventDefault();
                    var r = l.default(n)
                      .text();
                    e.insertText(r);
                  }
                })), this.$content = t;
              }
              var n = this.$content;
              if (null == n) return document.createElement('ul');
              n.empty();
              var r = e.getMenuConfig('emotion').emotions;
              return (void 0 === r ? [] : r).forEach((function (e) {
                var t = l.default('<li>' + e + '</li>');
                n.append(t);
              })), n[0];
            }, e;
          }(),
          Pu = {
            menus: [{
              key: 'emotion',
              factory: function () {
                return new _u;
              },
              config: { emotions: '😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏'.split(' ') }
            }]
          },
          ju = {
            1: '12px',
            2: '14px',
            3: '16px',
            4: '19px',
            5: '24px',
            6: '32px',
            7: '48px'
          },
          Nu = {
            selector: 'font',
            preParseHtml: function (e) {
              var t = l.default(e);
              if ('font' !== po(t)) return e;
              var n = t.attr('size') || '';
              n && (t.removeAttr('size'), t.css('font-size', ju[n]));
              var r = t.attr('face') || '';
              return r && (t.removeAttr('face'), t.css('font-family', r)), t[0];
            }
          },
          Iu = P(''.indexOf);
        Ut({
          target: 'String',
          proto: !0,
          forced: !Pi('includes')
        }, {
          includes: function (e) {
            return !!~Iu(wn($(this)), wn(Fi(e)), arguments.length > 1 ? arguments[1] : void 0);
          }
        });
        var Ru,
          Mu,
          Lu = function () {
            function e() {
              this.tag = 'select', this.width = 80;
            }

            return e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.getValue = function (e) {
              var t = this.mark,
                n = o.Editor.marks(e);
              return n && n[t] ? n[t] : '';
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || (this.mark, !!Eo(o.Editor.nodes(e, {
                match: function (t) {
                  return 'pre' === n.DomEditor.getNodeType(t) || !!o.Editor.isVoid(e, t);
                },
                universal: !0
              }), 1)[0]);
            }, e.prototype.exec = function (e, t) {
              var n = this.mark;
              t ? e.addMark(n, t) : e.removeMark(n);
            }, e;
          }(),
          zu = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = n.t('fontSize.title'), t.iconSvg = Zo, t.mark = 'fontSize', t;
            }

            return go(t, e), t.prototype.getOptions = function (e) {
              var t = [],
                r = e.getMenuConfig(this.mark).fontSizeList,
                o = void 0 === r ? [] : r;
              t.push({
                text: n.t('fontSize.default'),
                value: ''
              }), o.forEach((function (e) {
                t.push({
                  text: e,
                  value: e
                });
              }));
              var i = this.getValue(e);
              return t.forEach((function (e) {
                e.value === i ? e.selected = !0 : delete e.selected;
              })), t;
            }, t;
          }(Lu),
          $u = function (e) {
            return e && e.Math == Math && e;
          },
          Hu = $u('object' == typeof globalThis && globalThis) || $u('object' == typeof window && window) || $u('object' == typeof self && self) || $u('object' == typeof p && p) || function () {
            return this;
          }() || Function('return this')(),
          Vu = Function.prototype,
          Uu = Vu.apply,
          Wu = Vu.bind,
          Gu = Vu.call,
          qu = 'object' == typeof Reflect && Reflect.apply || (Wu ? Gu.bind(Uu) : function () {
            return Gu.apply(Uu, arguments);
          }),
          Ku = Function.prototype,
          Yu = Ku.bind,
          Xu = Ku.call,
          Zu = Yu && Yu.bind(Xu),
          Ju = Yu ? function (e) {
            return e && Zu(Xu, e);
          } : function (e) {
            return e && function () {
              return Xu.apply(e, arguments);
            };
          },
          Qu = function (e) {
            return 'function' == typeof e;
          },
          es = function (e) {
            try {
              return !!e();
            } catch (e) {
              return !0;
            }
          },
          ts = !es((function () {
            return 7 != Object.defineProperty({}, 1, {
              get: function () {
                return 7;
              }
            })[1];
          })),
          ns = Function.prototype.call,
          rs = ns.bind ? ns.bind(ns) : function () {
            return ns.apply(ns, arguments);
          },
          os = {}.propertyIsEnumerable,
          is = Object.getOwnPropertyDescriptor,
          as = is && !os.call({ 1: 2 }, 1) ? function (e) {
            var t = is(this, e);
            return !!t && t.enumerable;
          } : os,
          us = { f: as },
          ss = function (e, t) {
            return {
              enumerable: !(1 & e),
              configurable: !(2 & e),
              writable: !(4 & e),
              value: t
            };
          },
          ls = Ju({}.toString),
          cs = Ju(''.slice),
          fs = function (e) {
            return cs(ls(e), 8, -1);
          },
          ds = Hu.Object,
          ps = Ju(''.split),
          hs = es((function () {
            return !ds('z')
              .propertyIsEnumerable(0);
          })) ? function (e) {
            return 'String' == fs(e) ? ps(e, '') : ds(e);
          } : ds,
          vs = Hu.TypeError,
          gs = function (e) {
            if (null == e) throw vs('Can\'t call method on ' + e);
            return e;
          },
          ys = function (e) {
            return hs(gs(e));
          },
          ms = function (e) {
            return 'object' == typeof e ? null !== e : Qu(e);
          },
          bs = {},
          ws = function (e) {
            return Qu(e) ? e : void 0;
          },
          Es = function (e, t) {
            return arguments.length < 2 ? ws(bs[e]) || ws(Hu[e]) : bs[e] && bs[e][t] || Hu[e] && Hu[e][t];
          },
          Ds = Ju({}.isPrototypeOf),
          xs = Es('navigator', 'userAgent') || '',
          Ss = Hu.process,
          Cs = Hu.Deno,
          As = Ss && Ss.versions || Cs && Cs.version,
          Os = As && As.v8;
        Os && (Mu = (Ru = Os.split('.'))[0] > 0 && Ru[0] < 4 ? 1 : +(Ru[0] + Ru[1])), !Mu && xs && (!(Ru = xs.match(/Edge\/(\d+)/)) || Ru[1] >= 74) && (Ru = xs.match(/Chrome\/(\d+)/)) && (Mu = +Ru[1]);
        var ks = Mu,
          Ts = !!Object.getOwnPropertySymbols && !es((function () {
            var e = Symbol();
            return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && ks && ks < 41;
          })),
          Bs = Ts && !Symbol.sham && 'symbol' == typeof Symbol.iterator,
          Fs = Hu.Object,
          _s = Bs ? function (e) {
            return 'symbol' == typeof e;
          } : function (e) {
            var t = Es('Symbol');
            return Qu(t) && Ds(t.prototype, Fs(e));
          },
          Ps = Hu.String,
          js = Hu.TypeError,
          Ns = function (e) {
            if (Qu(e)) return e;
            throw js(function (e) {
              try {
                return Ps(e);
              } catch (e) {
                return 'Object';
              }
            }(e) + ' is not a function');
          },
          Is = Hu.TypeError,
          Rs = Object.defineProperty,
          Ms = '__core-js_shared__',
          Ls = Hu[Ms] || function (e, t) {
            try {
              Rs(Hu, e, {
                value: t,
                configurable: !0,
                writable: !0
              });
            } catch (n) {
              Hu[e] = t;
            }
            return t;
          }(Ms, {}),
          zs = v((function (e) {
            (e.exports = function (e, t) {
              return Ls[e] || (Ls[e] = void 0 !== t ? t : {});
            })('versions', [])
              .push({
                version: '3.19.3',
                mode: 'pure',
                copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
              });
          })),
          $s = Hu.Object,
          Hs = function (e) {
            return $s(gs(e));
          },
          Vs = Ju({}.hasOwnProperty),
          Us = Object.hasOwn || function (e, t) {
            return Vs(Hs(e), t);
          },
          Ws = 0,
          Gs = Math.random(),
          qs = Ju(1..toString),
          Ks = function (e) {
            return 'Symbol(' + (void 0 === e ? '' : e) + ')_' + qs(++Ws + Gs, 36);
          },
          Ys = zs('wks'),
          Xs = Hu.Symbol,
          Zs = Xs && Xs.for,
          Js = Bs ? Xs : Xs && Xs.withoutSetter || Ks,
          Qs = function (e) {
            if (!Us(Ys, e) || !Ts && 'string' != typeof Ys[e]) {
              var t = 'Symbol.' + e;
              Ts && Us(Xs, e) ? Ys[e] = Xs[e] : Ys[e] = Bs && Zs ? Zs(t) : Js(t);
            }
            return Ys[e];
          },
          el = Hu.TypeError,
          tl = Qs('toPrimitive'),
          nl = function (e, t) {
            if (!ms(e) || _s(e)) return e;
            var n,
              r,
              o = null == (n = e[tl]) ? void 0 : Ns(n);
            if (o) {
              if (void 0 === t && (t = 'default'), r = rs(o, e, t), !ms(r) || _s(r)) return r;
              throw el('Can\'t convert object to primitive value');
            }
            return void 0 === t && (t = 'number'), function (e, t) {
              var n,
                r;
              if ('string' === t && Qu(n = e.toString) && !ms(r = rs(n, e))) return r;
              if (Qu(n = e.valueOf) && !ms(r = rs(n, e))) return r;
              if ('string' !== t && Qu(n = e.toString) && !ms(r = rs(n, e))) return r;
              throw Is('Can\'t convert object to primitive value');
            }(e, t);
          },
          rl = function (e) {
            var t = nl(e, 'string');
            return _s(t) ? t : t + '';
          },
          ol = Hu.document,
          il = ms(ol) && ms(ol.createElement),
          al = function (e) {
            return il ? ol.createElement(e) : {};
          },
          ul = !ts && !es((function () {
            return 7 != Object.defineProperty(al('div'), 'a', {
              get: function () {
                return 7;
              }
            }).a;
          })),
          sl = Object.getOwnPropertyDescriptor,
          ll = {
            f: ts ? sl : function (e, t) {
              if (e = ys(e), t = rl(t), ul) {
                try {
                  return sl(e, t);
                } catch (e) {
                }
              }
              if (Us(e, t)) return ss(!rs(us.f, e, t), e[t]);
            }
          },
          cl = /#|\.prototype\./,
          fl = function (e, t) {
            var n = pl[dl(e)];
            return n == vl || n != hl && (Qu(t) ? es(t) : !!t);
          },
          dl = fl.normalize = function (e) {
            return String(e)
              .replace(cl, '.')
              .toLowerCase();
          },
          pl = fl.data = {},
          hl = fl.NATIVE = 'N',
          vl = fl.POLYFILL = 'P',
          gl = fl,
          yl = Ju(Ju.bind),
          ml = function (e, t) {
            return Ns(e), void 0 === t ? e : yl ? yl(e, t) : function () {
              return e.apply(t, arguments);
            };
          },
          bl = Hu.String,
          wl = Hu.TypeError,
          El = function (e) {
            if (ms(e)) return e;
            throw wl(bl(e) + ' is not an object');
          },
          Dl = Hu.TypeError,
          xl = Object.defineProperty,
          Sl = {
            f: ts ? xl : function (e, t, n) {
              if (El(e), t = rl(t), El(n), ul) {
                try {
                  return xl(e, t, n);
                } catch (e) {
                }
              }
              if ('get' in n || 'set' in n) throw Dl('Accessors not supported');
              return 'value' in n && (e[t] = n.value), e;
            }
          },
          Cl = ts ? function (e, t, n) {
            return Sl.f(e, t, ss(1, n));
          } : function (e, t, n) {
            return e[t] = n, e;
          },
          Al = ll.f,
          Ol = function (e) {
            var t = function (n, r, o) {
              if (this instanceof t) {
                switch (arguments.length) {
                  case 0:
                    return new e;
                  case 1:
                    return new e(n);
                  case 2:
                    return new e(n, r);
                }
                return new e(n, r, o);
              }
              return qu(e, this, arguments);
            };
            return t.prototype = e.prototype, t;
          },
          kl = function (e, t) {
            var n,
              r,
              o,
              i,
              a,
              u,
              s,
              l,
              c = e.target,
              f = e.global,
              d = e.stat,
              p = e.proto,
              h = f ? Hu : d ? Hu[c] : (Hu[c] || {}).prototype,
              v = f ? bs : bs[c] || Cl(bs, c, {})[c],
              g = v.prototype;
            for (o in t) n = !gl(f ? o : c + (d ? '.' : '#') + o, e.forced) && h && Us(h, o), a = v[o], n && (u = e.noTargetGet ? (l = Al(h, o)) && l.value : h[o]), i = n && u ? u : t[o], n && typeof a == typeof i || (s = e.bind && n ? ml(i, Hu) : e.wrap && n ? Ol(i) : p && Qu(i) ? Ju(i) : i, (e.sham || i && i.sham || a && a.sham) && Cl(s, 'sham', !0), Cl(v, o, s), p && (Us(bs, r = c + 'Prototype') || Cl(bs, r, {}), Cl(bs[r], o, i), e.real && g && !g[o] && Cl(g, o, i)));
          },
          Tl = Array.isArray || function (e) {
            return 'Array' == fs(e);
          },
          Bl = Math.ceil,
          Fl = Math.floor,
          _l = function (e) {
            var t = +e;
            return t != t || 0 === t ? 0 : (t > 0 ? Fl : Bl)(t);
          },
          Pl = Math.min,
          jl = function (e) {
            return (t = e.length) > 0 ? Pl(_l(t), 9007199254740991) : 0;
            var t;
          },
          Nl = function (e, t, n) {
            var r = rl(t);
            r in e ? Sl.f(e, r, ss(0, n)) : e[r] = n;
          },
          Il = {};
        Il[Qs('toStringTag')] = 'z';
        var Rl = '[object z]' === String(Il),
          Ml = Qs('toStringTag'),
          Ll = Hu.Object,
          zl = 'Arguments' == fs(function () {
            return arguments;
          }()),
          $l = Rl ? fs : function (e) {
            var t,
              n,
              r;
            return void 0 === e ? 'Undefined' : null === e ? 'Null' : 'string' == typeof (n = function (e, t) {
              try {
                return e[t];
              } catch (e) {
              }
            }(t = Ll(e), Ml)) ? n : zl ? fs(t) : 'Object' == (r = fs(t)) && Qu(t.callee) ? 'Arguments' : r;
          },
          Hl = Ju(Function.toString);
        Qu(Ls.inspectSource) || (Ls.inspectSource = function (e) {
          return Hl(e);
        });
        var Vl = Ls.inspectSource,
          Ul = function () {
          },
          Wl = [],
          Gl = Es('Reflect', 'construct'),
          ql = /^\s*(?:class|function)\b/,
          Kl = Ju(ql.exec),
          Yl = !ql.exec(Ul),
          Xl = function (e) {
            if (!Qu(e)) return !1;
            try {
              return Gl(Ul, Wl, e), !0;
            } catch (e) {
              return !1;
            }
          },
          Zl = !Gl || es((function () {
            var e;
            return Xl(Xl.call) || !Xl(Object) || !Xl((function () {
              e = !0;
            })) || e;
          })) ? function (e) {
            if (!Qu(e)) return !1;
            switch ($l(e)) {
              case'AsyncFunction':
              case'GeneratorFunction':
              case'AsyncGeneratorFunction':
                return !1;
            }
            return Yl || !!Kl(ql, Vl(e));
          } : Xl,
          Jl = Qs('species'),
          Ql = Hu.Array,
          ec = function (e, t) {
            return new (function (e) {
              var t;
              return Tl(e) && (t = e.constructor, (Zl(t) && (t === Ql || Tl(t.prototype)) || ms(t) && null === (t = t[Jl])) && (t = void 0)), void 0 === t ? Ql : t;
            }(e))(0 === t ? 0 : t);
          },
          tc = Qs('species'),
          nc = Qs('isConcatSpreadable'),
          rc = 9007199254740991,
          oc = 'Maximum allowed index exceeded',
          ic = Hu.TypeError,
          ac = ks >= 51 || !es((function () {
            var e = [];
            return e[nc] = !1, e.concat()[0] !== e;
          })),
          uc = function (e) {
            return ks >= 51 || !es((function () {
              var t = [];
              return (t.constructor = {})[tc] = function () {
                return { foo: 1 };
              }, 1 !== t[e](Boolean).foo;
            }));
          }('concat'),
          sc = function (e) {
            if (!ms(e)) return !1;
            var t = e[nc];
            return void 0 !== t ? !!t : Tl(e);
          };
        kl({
          target: 'Array',
          proto: !0,
          forced: !ac || !uc
        }, {
          concat: function (e) {
            var t,
              n,
              r,
              o,
              i,
              a = Hs(this),
              u = ec(a, 0),
              s = 0;
            for (t = -1, r = arguments.length; t < r; t++) {
              if (sc(i = -1 === t ? a : arguments[t])) {
                if (s + (o = jl(i)) > rc) throw ic(oc);
                for (n = 0; n < o; n++, s++) n in i && Nl(u, s, i[n]);
              } else {
                if (s >= rc) throw ic(oc);
                Nl(u, s++, i);
              }
            }
            return u.length = s, u;
          }
        });
        var lc,
          cc = Hu.String,
          fc = function (e) {
            if ('Symbol' === $l(e)) throw TypeError('Cannot convert a Symbol value to a string');
            return cc(e);
          },
          dc = Math.max,
          pc = Math.min,
          hc = function (e, t) {
            var n = _l(e);
            return n < 0 ? dc(n + t, 0) : pc(n, t);
          },
          vc = function (e) {
            return function (t, n, r) {
              var o,
                i = ys(t),
                a = jl(i),
                u = hc(r, a);
              if (e && n != n) {
                for (; a > u;) if ((o = i[u++]) != o) return !0;
              } else {
                for (; a > u; u++) if ((e || u in i) && i[u] === n) return e || u || 0;
              }
              return !e && -1;
            };
          },
          gc = {
            includes: vc(!0),
            indexOf: vc(!1)
          },
          yc = {},
          mc = gc.indexOf,
          bc = Ju([].push),
          wc = function (e, t) {
            var n,
              r = ys(e),
              o = 0,
              i = [];
            for (n in r) !Us(yc, n) && Us(r, n) && bc(i, n);
            for (; t.length > o;) Us(r, n = t[o++]) && (~mc(i, n) || bc(i, n));
            return i;
          },
          Ec = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'],
          Dc = Object.keys || function (e) {
            return wc(e, Ec);
          },
          xc = ts ? Object.defineProperties : function (e, t) {
            El(e);
            for (var n, r = ys(t), o = Dc(t), i = o.length, a = 0; i > a;) Sl.f(e, n = o[a++], r[n]);
            return e;
          },
          Sc = Es('document', 'documentElement'),
          Cc = zs('keys'),
          Ac = function (e) {
            return Cc[e] || (Cc[e] = Ks(e));
          },
          Oc = Ac('IE_PROTO'),
          kc = function () {
          },
          Tc = function (e) {
            return '<script>' + e + '<\/script>';
          },
          Bc = function (e) {
            e.write(Tc('')), e.close();
            var t = e.parentWindow.Object;
            return e = null, t;
          },
          Fc = function () {
            try {
              lc = new ActiveXObject('htmlfile');
            } catch (e) {
            }
            var e,
              t;
            Fc = 'undefined' != typeof document ? document.domain && lc ? Bc(lc) : ((t = al('iframe')).style.display = 'none', Sc.appendChild(t), t.src = String('javascript:'), (e = t.contentWindow.document).open(), e.write(Tc('document.F=Object')), e.close(), e.F) : Bc(lc);
            for (var n = Ec.length; n--;) delete Fc.prototype[Ec[n]];
            return Fc();
          };
        yc[Oc] = !0;
        var _c,
          Pc,
          jc,
          Nc = Object.create || function (e, t) {
            var n;
            return null !== e ? (kc.prototype = El(e), n = new kc, kc.prototype = null, n[Oc] = e) : n = Fc(), void 0 === t ? n : xc(n, t);
          },
          Ic = Ec.concat('length', 'prototype'),
          Rc = {
            f: Object.getOwnPropertyNames || function (e) {
              return wc(e, Ic);
            }
          },
          Mc = Hu.Array,
          Lc = Math.max,
          zc = Rc.f,
          $c = 'object' == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [],
          Hc = function (e) {
            try {
              return zc(e);
            } catch (e) {
              return function (e, t, n) {
                for (var r = jl(e), o = hc(t, r), i = hc(void 0 === n ? r : n, r), a = Mc(Lc(i - o, 0)), u = 0; o < i; o++, u++) Nl(a, u, e[o]);
                return a.length = u, a;
              }($c);
            }
          },
          Vc = {
            f: function (e) {
              return $c && 'Window' == fs(e) ? Hc(e) : zc(ys(e));
            }
          },
          Uc = { f: Object.getOwnPropertySymbols },
          Wc = Ju([].slice),
          Gc = function (e, t, n, r) {
            r && r.enumerable ? e[t] = n : Cl(e, t, n);
          },
          qc = { f: Qs },
          Kc = Sl.f,
          Yc = function (e) {
            var t = bs.Symbol || (bs.Symbol = {});
            Us(t, e) || Kc(t, e, { value: qc.f(e) });
          },
          Xc = Rl ? {}.toString : function () {
            return '[object ' + $l(this) + ']';
          },
          Zc = Sl.f,
          Jc = Qs('toStringTag'),
          Qc = function (e, t, n, r) {
            if (e) {
              var o = n ? e : e.prototype;
              Us(o, Jc) || Zc(o, Jc, {
                configurable: !0,
                value: t
              }), r && !Rl && Cl(o, 'toString', Xc);
            }
          },
          ef = Hu.WeakMap,
          tf = Qu(ef) && /native code/.test(Vl(ef)),
          nf = 'Object already initialized',
          rf = Hu.TypeError,
          of = Hu.WeakMap;
        if (tf || Ls.state) {
          var af = Ls.state || (Ls.state = new of),
            uf = Ju(af.get),
            sf = Ju(af.has),
            lf = Ju(af.set);
          _c = function (e, t) {
            if (sf(af, e)) throw new rf(nf);
            return t.facade = e, lf(af, e, t), t;
          }, Pc = function (e) {
            return uf(af, e) || {};
          }, jc = function (e) {
            return sf(af, e);
          };
        } else {
          var cf = Ac('state');
          yc[cf] = !0, _c = function (e, t) {
            if (Us(e, cf)) throw new rf(nf);
            return t.facade = e, Cl(e, cf, t), t;
          }, Pc = function (e) {
            return Us(e, cf) ? e[cf] : {};
          }, jc = function (e) {
            return Us(e, cf);
          };
        }
        var ff = {
            set: _c,
            get: Pc,
            has: jc,
            enforce: function (e) {
              return jc(e) ? Pc(e) : _c(e, {});
            },
            getterFor: function (e) {
              return function (t) {
                var n;
                if (!ms(t) || (n = Pc(t)).type !== e) throw rf('Incompatible receiver, ' + e + ' required');
                return n;
              };
            }
          },
          df = Ju([].push),
          pf = function (e) {
            var t = 1 == e,
              n = 2 == e,
              r = 3 == e,
              o = 4 == e,
              i = 6 == e,
              a = 7 == e,
              u = 5 == e || i;
            return function (s, l, c, f) {
              for (var d, p, h = Hs(s), v = hs(h), g = ml(l, c), y = jl(v), m = 0, b = f || ec, w = t ? b(s, y) : n || a ? b(s, 0) : void 0; y > m; m++) {
                if ((u || m in v) && (p = g(d = v[m], m, h), e)) {
                  if (t) {
                    w[m] = p;
                  } else if (p) {
                    switch (e) {
                      case 3:
                        return !0;
                      case 5:
                        return d;
                      case 6:
                        return m;
                      case 2:
                        df(w, d);
                    }
                  } else {
                    switch (e) {
                      case 4:
                        return !1;
                      case 7:
                        df(w, d);
                    }
                  }
                }
              }
              return i ? -1 : r || o ? o : w;
            };
          },
          hf = [pf(0), pf(1), pf(2), pf(3), pf(4), pf(5), pf(6), pf(7)][0],
          vf = Ac('hidden'),
          gf = 'Symbol',
          yf = Qs('toPrimitive'),
          mf = ff.set,
          bf = ff.getterFor(gf),
          wf = Object.prototype,
          Ef = Hu.Symbol,
          Df = Ef && Ef.prototype,
          xf = Hu.TypeError,
          Sf = Hu.QObject,
          Cf = Es('JSON', 'stringify'),
          Af = ll.f,
          Of = Sl.f,
          kf = Vc.f,
          Tf = us.f,
          Bf = Ju([].push),
          Ff = zs('symbols'),
          _f = zs('op-symbols'),
          Pf = zs('string-to-symbol-registry'),
          jf = zs('symbol-to-string-registry'),
          Nf = zs('wks'),
          If = !Sf || !Sf.prototype || !Sf.prototype.findChild,
          Rf = ts && es((function () {
            return 7 != Nc(Of({}, 'a', {
              get: function () {
                return Of(this, 'a', { value: 7 }).a;
              }
            })).a;
          })) ? function (e, t, n) {
            var r = Af(wf, t);
            r && delete wf[t], Of(e, t, n), r && e !== wf && Of(wf, t, r);
          } : Of,
          Mf = function (e, t) {
            var n = Ff[e] = Nc(Df);
            return mf(n, {
              type: gf,
              tag: e,
              description: t
            }), ts || (n.description = t), n;
          },
          Lf = function (e, t, n) {
            e === wf && Lf(_f, t, n), El(e);
            var r = rl(t);
            return El(n), Us(Ff, r) ? (n.enumerable ? (Us(e, vf) && e[vf][r] && (e[vf][r] = !1), n = Nc(n, { enumerable: ss(0, !1) })) : (Us(e, vf) || Of(e, vf, ss(1, {})), e[vf][r] = !0), Rf(e, r, n)) : Of(e, r, n);
          },
          zf = function (e, t) {
            El(e);
            var n = ys(t),
              r = Dc(n)
                .concat(Uf(n));
            return hf(r, (function (t) {
              ts && !rs($f, n, t) || Lf(e, t, n[t]);
            })), e;
          },
          $f = function (e) {
            var t = rl(e),
              n = rs(Tf, this, t);
            return !(this === wf && Us(Ff, t) && !Us(_f, t)) && (!(n || !Us(this, t) || !Us(Ff, t) || Us(this, vf) && this[vf][t]) || n);
          },
          Hf = function (e, t) {
            var n = ys(e),
              r = rl(t);
            if (n !== wf || !Us(Ff, r) || Us(_f, r)) {
              var o = Af(n, r);
              return !o || !Us(Ff, r) || Us(n, vf) && n[vf][r] || (o.enumerable = !0), o;
            }
          },
          Vf = function (e) {
            var t = kf(ys(e)),
              n = [];
            return hf(t, (function (e) {
              Us(Ff, e) || Us(yc, e) || Bf(n, e);
            })), n;
          },
          Uf = function (e) {
            var t = e === wf,
              n = kf(t ? _f : ys(e)),
              r = [];
            return hf(n, (function (e) {
              !Us(Ff, e) || t && !Us(wf, e) || Bf(r, Ff[e]);
            })), r;
          };
        if (Ts || (Ef = function () {
          if (Ds(Df, this)) throw xf('Symbol is not a constructor');
          var e = arguments.length && void 0 !== arguments[0] ? fc(arguments[0]) : void 0,
            t = Ks(e),
            n = function (e) {
              this === wf && rs(n, _f, e), Us(this, vf) && Us(this[vf], t) && (this[vf][t] = !1), Rf(this, t, ss(1, e));
            };
          return ts && If && Rf(wf, t, {
            configurable: !0,
            set: n
          }), Mf(t, e);
        }, Df = Ef.prototype, Gc(Df, 'toString', (function () {
          return bf(this).tag;
        })), Gc(Ef, 'withoutSetter', (function (e) {
          return Mf(Ks(e), e);
        })), us.f = $f, Sl.f = Lf, ll.f = Hf, Rc.f = Vc.f = Vf, Uc.f = Uf, qc.f = function (e) {
          return Mf(Qs(e), e);
        }, ts && Of(Df, 'description', {
          configurable: !0,
          get: function () {
            return bf(this).description;
          }
        })), kl({
          global: !0,
          wrap: !0,
          forced: !Ts,
          sham: !Ts
        }, { Symbol: Ef }), hf(Dc(Nf), (function (e) {
          Yc(e);
        })), kl({
          target: gf,
          stat: !0,
          forced: !Ts
        }, {
          for: function (e) {
            var t = fc(e);
            if (Us(Pf, t)) return Pf[t];
            var n = Ef(t);
            return Pf[t] = n, jf[n] = t, n;
          },
          keyFor: function (e) {
            if (!_s(e)) throw xf(e + ' is not a symbol');
            if (Us(jf, e)) return jf[e];
          },
          useSetter: function () {
            If = !0;
          },
          useSimple: function () {
            If = !1;
          }
        }), kl({
          target: 'Object',
          stat: !0,
          forced: !Ts,
          sham: !ts
        }, {
          create: function (e, t) {
            return void 0 === t ? Nc(e) : zf(Nc(e), t);
          },
          defineProperty: Lf,
          defineProperties: zf,
          getOwnPropertyDescriptor: Hf
        }), kl({
          target: 'Object',
          stat: !0,
          forced: !Ts
        }, {
          getOwnPropertyNames: Vf,
          getOwnPropertySymbols: Uf
        }), kl({
          target: 'Object',
          stat: !0,
          forced: es((function () {
            Uc.f(1);
          }))
        }, {
          getOwnPropertySymbols: function (e) {
            return Uc.f(Hs(e));
          }
        }), Cf) {
          var Wf = !Ts || es((function () {
            var e = Ef();
            return '[null]' != Cf([e]) || '{}' != Cf({ a: e }) || '{}' != Cf(Object(e));
          }));
          kl({
            target: 'JSON',
            stat: !0,
            forced: Wf
          }, {
            stringify: function (e, t, n) {
              var r = Wc(arguments),
                o = t;
              if ((ms(t) || void 0 !== e) && !_s(e)) {
                return Tl(t) || (t = function (e, t) {
                  if (Qu(o) && (t = rs(o, this, e, t)), !_s(t)) return t;
                }), r[1] = t, qu(Cf, null, r);
              }
            }
          });
        }
        if (!Df[yf]) {
          var Gf = Df.valueOf;
          Gc(Df, yf, (function (e) {
            return rs(Gf, this);
          }));
        }
        Qc(Ef, gf), yc[vf] = !0, Yc('asyncIterator'), Yc('hasInstance'), Yc('isConcatSpreadable'), Yc('iterator'), Yc('match'), Yc('matchAll'), Yc('replace'), Yc('search'), Yc('species'), Yc('split'), Yc('toPrimitive'), Yc('toStringTag'), Yc('unscopables'), Qc(Hu.JSON, 'JSON', !0);
        var qf,
          Kf,
          Yf,
          Xf = bs.Symbol,
          Zf = {},
          Jf = Function.prototype,
          Qf = ts && Object.getOwnPropertyDescriptor,
          ed = Us(Jf, 'name'),
          td = {
            EXISTS: ed,
            PROPER: ed && 'something' === function () {
            }.name,
            CONFIGURABLE: ed && (!ts || ts && Qf(Jf, 'name').configurable)
          },
          nd = !es((function () {
            function e() {
            }

            return e.prototype.constructor = null, Object.getPrototypeOf(new e) !== e.prototype;
          })),
          rd = Ac('IE_PROTO'),
          od = Hu.Object,
          id = od.prototype,
          ad = nd ? od.getPrototypeOf : function (e) {
            var t = Hs(e);
            if (Us(t, rd)) return t[rd];
            var n = t.constructor;
            return Qu(n) && t instanceof n ? n.prototype : t instanceof od ? id : null;
          },
          ud = Qs('iterator'),
          sd = !1;
        [].keys && ('next' in (Yf = [].keys()) ? (Kf = ad(ad(Yf))) !== Object.prototype && (qf = Kf) : sd = !0);
        var ld = null == qf || es((function () {
          var e = {};
          return qf[ud].call(e) !== e;
        }));
        qf = ld ? {} : Nc(qf), Qu(qf[ud]) || Gc(qf, ud, (function () {
          return this;
        }));
        var cd = {
            IteratorPrototype: qf,
            BUGGY_SAFARI_ITERATORS: sd
          },
          fd = cd.IteratorPrototype,
          dd = function () {
            return this;
          };
        Hu.String, Hu.TypeError, Object.setPrototypeOf || '__proto__' in {} && function () {
          var e = {};
          try {
            Ju(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set)(e, []);
          } catch (e) {
          }
        }();
        var pd = td.PROPER,
          hd = cd.BUGGY_SAFARI_ITERATORS,
          vd = Qs('iterator'),
          gd = 'keys',
          yd = 'values',
          md = 'entries',
          bd = function () {
            return this;
          },
          wd = function (e, t, n, r, o, i, a) {
            !function (e, t, n, r) {
              var o = t + ' Iterator';
              e.prototype = Nc(fd, { next: ss(+!r, n) }), Qc(e, o, !1, !0), Zf[o] = dd;
            }(n, t, r);
            var u,
              s,
              l,
              c = function (e) {
                if (e === o && v) return v;
                if (!hd && e in p) return p[e];
                switch (e) {
                  case gd:
                  case yd:
                  case md:
                    return function () {
                      return new n(this, e);
                    };
                }
                return function () {
                  return new n(this);
                };
              },
              f = t + ' Iterator',
              d = !1,
              p = e.prototype,
              h = p[vd] || p['@@iterator'] || o && p[o],
              v = !hd && h || c(o),
              g = 'Array' == t && p.entries || h;
            if (g && (u = ad(g.call(new e))) !== Object.prototype && u.next && (Qc(u, f, !0, !0), Zf[f] = bd), pd && o == yd && h && h.name !== yd && (d = !0, v = function () {
              return rs(h, this);
            }), o) {
              if (s = {
                values: c(yd),
                keys: i ? v : c(gd),
                entries: c(md)
              }, a) {
                for (l in s) (hd || d || !(l in p)) && Gc(p, l, s[l]);
              } else {
                kl({
                  target: t,
                  proto: !0,
                  forced: hd || d
                }, s);
              }
            }
            return a && p[vd] !== v && Gc(p, vd, v, { name: o }), Zf[t] = v, s;
          },
          Ed = 'Array Iterator',
          Dd = ff.set,
          xd = ff.getterFor(Ed);
        wd(Array, 'Array', (function (e, t) {
          Dd(this, {
            type: Ed,
            target: ys(e),
            index: 0,
            kind: t
          });
        }), (function () {
          var e = xd(this),
            t = e.target,
            n = e.kind,
            r = e.index++;
          return !t || r >= t.length ? (e.target = void 0, {
            value: void 0,
            done: !0
          }) : 'keys' == n ? {
            value: r,
            done: !1
          } : 'values' == n ? {
            value: t[r],
            done: !1
          } : {
            value: [r, t[r]],
            done: !1
          };
        }), 'values'), Zf.Arguments = Zf.Array;
        var Sd = Qs('toStringTag');
        for (var Cd in {
          CSSRuleList: 0,
          CSSStyleDeclaration: 0,
          CSSValueList: 0,
          ClientRectList: 0,
          DOMRectList: 0,
          DOMStringList: 0,
          DOMTokenList: 1,
          DataTransferItemList: 0,
          FileList: 0,
          HTMLAllCollection: 0,
          HTMLCollection: 0,
          HTMLFormElement: 0,
          HTMLSelectElement: 0,
          MediaList: 0,
          MimeTypeArray: 0,
          NamedNodeMap: 0,
          NodeList: 1,
          PaintRequestList: 0,
          Plugin: 0,
          PluginArray: 0,
          SVGLengthList: 0,
          SVGNumberList: 0,
          SVGPathSegList: 0,
          SVGPointList: 0,
          SVGStringList: 0,
          SVGTransformList: 0,
          SourceBufferList: 0,
          StyleSheetList: 0,
          TextTrackCueList: 0,
          TextTrackList: 0,
          TouchList: 0
        }) {
          var Ad = Hu[Cd],
            Od = Ad && Ad.prototype;
          Od && $l(Od) !== Sd && Cl(Od, Sd, Cd), Zf[Cd] = Zf.Array;
        }
        var kd = Xf;
        Yc('asyncDispose'), Yc('dispose'), Yc('matcher'), Yc('metadata'), Yc('observable'), Yc('patternMatch'), Yc('replaceAll');
        var Td = kd,
          Bd = Ju(''.charAt),
          Fd = Ju(''.charCodeAt),
          _d = Ju(''.slice),
          Pd = function (e) {
            return function (t, n) {
              var r,
                o,
                i = fc(gs(t)),
                a = _l(n),
                u = i.length;
              return a < 0 || a >= u ? e ? '' : void 0 : (r = Fd(i, a)) < 55296 || r > 56319 || a + 1 === u || (o = Fd(i, a + 1)) < 56320 || o > 57343 ? e ? Bd(i, a) : r : e ? _d(i, a, a + 2) : o - 56320 + (r - 55296 << 10) + 65536;
            };
          },
          jd = (Pd(!1), Pd(!0)),
          Nd = 'String Iterator',
          Id = ff.set,
          Rd = ff.getterFor(Nd);
        wd(String, 'String', (function (e) {
          Id(this, {
            type: Nd,
            string: fc(e),
            index: 0
          });
        }), (function () {
          var e,
            t = Rd(this),
            n = t.string,
            r = t.index;
          return r >= n.length ? {
            value: void 0,
            done: !0
          } : (e = jd(n, r), t.index += e.length, {
            value: e,
            done: !1
          });
        }));
        var Md = qc.f('iterator'),
          Ld = v((function (e) {
            function t(n) {
              return 'function' == typeof Td && 'symbol' == typeof Md ? (e.exports = t = function (e) {
                return typeof e;
              }, e.exports.default = e.exports, e.exports.__esModule = !0) : (e.exports = t = function (e) {
                return e && 'function' == typeof Td && e.constructor === Td && e !== Td.prototype ? 'symbol' : typeof e;
              }, e.exports.default = e.exports, e.exports.__esModule = !0), t(n);
            }

            e.exports = t, e.exports.default = e.exports, e.exports.__esModule = !0;
          })),
          zd = h(Ld),
          $d = pt.EXISTS,
          Hd = Ve.f,
          Vd = Function.prototype,
          Ud = P(Vd.toString),
          Wd = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,
          Gd = P(Wd.exec);
        E && !$d && Hd(Vd, 'name', {
          configurable: !0,
          get: function () {
            try {
              return Gd(Wd, Ud(this))[1];
            } catch (e) {
              return '';
            }
          }
        });
        var qd = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = n.t('fontFamily.title'), t.iconSvg = Jo, t.mark = 'fontFamily', t.selectPanelWidth = 150, t;
            }

            return go(t, e), t.prototype.getOptions = function (e) {
              var t = [],
                r = e.getMenuConfig(this.mark).fontFamilyList,
                o = void 0 === r ? [] : r;
              t.push({
                text: n.t('fontFamily.default'),
                value: ''
              }), o.forEach((function (e) {
                if ('string' == typeof e) {
                  t.push({
                    text: e,
                    value: e,
                    styleForRenderMenuList: { 'font-family': e }
                  });
                } else if ('object' === zd(e)) {
                  var n = e.name,
                    r = e.value;
                  t.push({
                    text: n,
                    value: r,
                    styleForRenderMenuList: { 'font-family': r }
                  });
                }
              }));
              var i = this.getValue(e);
              return t.forEach((function (e) {
                e.value === i ? e.selected = !0 : delete e.selected;
              })), t;
            }, t;
          }(Lu),
          Kd = {
            renderStyle: function (e, t) {
              var n = e,
                r = n.fontSize,
                o = n.fontFamily,
                i = t;
              return r && sa(i, { fontSize: r }), o && sa(i, { fontFamily: o }), i;
            },
            styleToHtml: function (e, t) {
              if (!o.Text.isText(e)) return t;
              var n,
                r = e,
                i = r.fontSize,
                a = r.fontFamily;
              return i || a ? ((co(t) || 'span' !== po(n = l.default(t))) && (n = l.default('<span>' + t + '</span>')), i && n.css('font-size', i), a && n.css('font-family', a), fo(n)) : t;
            },
            preParseHtml: [Nu],
            parseStyleHtml: function (e, t, n) {
              var r = l.default(e);
              if (!o.Text.isText(t)) return t;
              var i = t,
                a = n.getMenuConfig('fontSize').fontSizeList,
                u = void 0 === a ? [] : a,
                s = ho(r, 'font-size');
              s && u.includes(s) && (i.fontSize = s);
              var c = n.getMenuConfig('fontFamily').fontFamilyList,
                f = void 0 === c ? [] : c,
                d = ho(r, 'font-family'),
                p = f.find((function (e) {
                  return e.value && e.value === d;
                })) || f.includes(d);
              return d && p && (i.fontFamily = d), i;
            },
            menus: [{
              key: 'fontSize',
              factory: function () {
                return new zu;
              },
              config: { fontSizeList: ['12px', '13px', '14px', '15px', '16px', '19px', '22px', '24px', '29px', '32px', '40px', '48px'] }
            }, {
              key: 'fontFamily',
              factory: function () {
                return new qd;
              },
              config: {
                fontFamilyList: ['黑体', {
                  name: '仿宋',
                  value: '仿宋'
                }, '楷体', '标楷体', '华文仿宋', '华文楷体', {
                  name: '宋体',
                  value: '宋体'
                }, '微软雅黑', 'Arial', 'Tahoma', 'Verdana', 'Times New Roman', 'Courier New']
              }
            }]
          },
          Yd = {
            selector: 'p,h1,h2,h3,h4,h5',
            preParseHtml: function (e) {
              var t = l.default(e),
                n = ho(t, 'padding-left');
              return /\dem/.test(n) && t.css('text-indent', '2em'), /\dpx/.test(n) && parseInt(n, 10) % 32 == 0 && t.css('text-indent', '2em'), t[0];
            }
          },
          Xd = function () {
            function e() {
              this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              var t = Eo(o.Editor.nodes(e, {
                  match: function (e) {
                    return !!e.indent;
                  },
                  universal: !0
                }), 1),
                n = t[0];
              return null == n ? '' : Eo(n, 1)[0].indent || '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.getMatchNode = function (e) {
              var t = Eo(o.Editor.nodes(e, {
                match: function (e) {
                  var t = n.DomEditor.getNodeType(e);
                  return 'paragraph' === t || !!t.startsWith('header');
                },
                universal: !0,
                mode: 'highest'
              }), 1)[0];
              return null == t ? null : t[0];
            }, e;
          }(),
          Zd = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = n.t('indent.decrease'), t.iconSvg = Qo, t;
            }

            return go(t, e), t.prototype.isDisabled = function (e) {
              var t = this.getMatchNode(e);
              return null == t || !t.indent;
            }, t.prototype.exec = function (e, t) {
              o.Transforms.setNodes(e, { indent: null }, {
                match: function (e) {
                  return o.Element.isElement(e);
                }
              });
            }, t;
          }(Xd),
          Jd = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = n.t('indent.increase'), t.iconSvg = ei, t;
            }

            return go(t, e), t.prototype.isDisabled = function (e) {
              var t = this.getMatchNode(e);
              return null == t || !!t.indent;
            }, t.prototype.exec = function (e, t) {
              o.Transforms.setNodes(e, { indent: '2em' }, {
                match: function (e) {
                  return o.Element.isElement(e);
                },
                mode: 'highest'
              });
            }, t;
          }(Xd),
          Qd = {
            renderStyle: function (e, t) {
              if (!o.Element.isElement(e)) return t;
              var n = e.indent,
                r = t;
              return n && sa(r, { textIndent: n }), r;
            },
            styleToHtml: function (e, t) {
              if (!o.Element.isElement(e)) return t;
              var n = e.indent;
              if (!n) return t;
              var r = l.default(t);
              return r.css('text-indent', n), fo(r);
            },
            preParseHtml: [Yd],
            parseStyleHtml: function (e, t, n) {
              var r = l.default(e);
              if (!o.Element.isElement(t)) return t;
              var i = t,
                a = ho(r, 'text-indent'),
                u = parseInt(a, 10);
              return a && u > 0 && (i.indent = a), i;
            },
            menus: [{
              key: 'indent',
              factory: function () {
                return new Jd;
              }
            }, {
              key: 'delIndent',
              factory: function () {
                return new Zd;
              }
            }]
          },
          ep = function () {
            function e() {
              this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.getMatchNode = function (e) {
              var t = Eo(o.Editor.nodes(e, {
                match: function (e) {
                  var t = n.DomEditor.getNodeType(e);
                  return 'paragraph' === t || 'blockquote' === t || !!t.startsWith('header');
                },
                universal: !0,
                mode: 'highest'
              }), 1)[0];
              return null == t ? null : t[0];
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || !!n.DomEditor.getSelectedElems(e)
                .some((function (t) {
                  if (o.Editor.isVoid(e, t) && o.Editor.isBlock(e, t)) return !0;
                  var n = t.type;
                  return !!['pre', 'code'].includes(n) || void 0;
                }));
            }, e;
          }(),
          tp = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = n.t('justify.left'), t.iconSvg = ti, t;
            }

            return go(t, e), t.prototype.exec = function (e, t) {
              o.Transforms.setNodes(e, { textAlign: 'left' }, {
                match: function (t) {
                  return o.Element.isElement(t) && !e.isInline(t);
                }
              });
            }, t;
          }(ep),
          np = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = n.t('justify.right'), t.iconSvg = ni, t;
            }

            return go(t, e), t.prototype.exec = function (e, t) {
              o.Transforms.setNodes(e, { textAlign: 'right' }, {
                match: function (t) {
                  return o.Element.isElement(t) && !e.isInline(t);
                }
              });
            }, t;
          }(ep),
          rp = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = n.t('justify.center'), t.iconSvg = ri, t;
            }

            return go(t, e), t.prototype.exec = function (e, t) {
              o.Transforms.setNodes(e, { textAlign: 'center' }, {
                match: function (t) {
                  return o.Element.isElement(t) && !e.isInline(t);
                }
              });
            }, t;
          }(ep),
          op = function (e) {
            function t() {
              var t = null !== e && e.apply(this, arguments) || this;
              return t.title = n.t('justify.justify'), t.iconSvg = oi, t;
            }

            return go(t, e), t.prototype.exec = function (e, t) {
              o.Transforms.setNodes(e, { textAlign: 'justify' }, {
                match: function (t) {
                  return o.Element.isElement(t) && !e.isInline(t);
                }
              });
            }, t;
          }(ep),
          ip = {
            renderStyle: function (e, t) {
              if (!o.Element.isElement(e)) return t;
              var n = e.textAlign,
                r = t;
              return n && sa(r, { textAlign: n }), r;
            },
            styleToHtml: function (e, t) {
              if (!o.Element.isElement(e)) return t;
              var n = e.textAlign;
              if (!n) return t;
              var r = l.default(t);
              return r.css('text-align', n), fo(r);
            },
            parseStyleHtml: function (e, t, n) {
              var r = l.default(e);
              if (!o.Element.isElement(t)) return t;
              var i = t,
                a = ho(r, 'text-align');
              return a && (i.textAlign = a), i;
            },
            menus: [{
              key: 'justifyLeft',
              factory: function () {
                return new tp;
              }
            }, {
              key: 'justifyRight',
              factory: function () {
                return new np;
              }
            }, {
              key: 'justifyCenter',
              factory: function () {
                return new rp;
              }
            }, {
              key: 'justifyJustify',
              factory: function () {
                return new op;
              }
            }]
          },
          ap = function () {
            function e() {
              this.title = n.t('lineHeight.title'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>', this.tag = 'select', this.width = 80;
            }

            return e.prototype.getOptions = function (e) {
              var t = [],
                r = e.getMenuConfig('lineHeight').lineHeightList,
                o = void 0 === r ? [] : r;
              t.push({
                text: n.t('lineHeight.default'),
                value: ''
              }), o.forEach((function (e) {
                t.push({
                  text: e,
                  value: e
                });
              }));
              var i = this.getValue(e);
              return t.forEach((function (e) {
                e.value === i ? e.selected = !0 : delete e.selected;
              })), t;
            }, e.prototype.getMatchNode = function (e) {
              var t = Eo(o.Editor.nodes(e, {
                match: function (e) {
                  var t = n.DomEditor.getNodeType(e);
                  return !!t.startsWith('header') || !!['paragraph', 'blockquote', 'bulleted-list', 'numbered-list'].includes(t);
                },
                universal: !0,
                mode: 'highest'
              }), 1)[0];
              return null == t ? null : t[0];
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.getValue = function (e) {
              var t = this.getMatchNode(e);
              return null == t ? '' : o.Element.isElement(t) && t.lineHeight || '';
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || null == this.getMatchNode(e);
            }, e.prototype.exec = function (e, t) {
              o.Transforms.setNodes(e, { lineHeight: t.toString() }, { mode: 'highest' });
            }, e;
          }(),
          up = {
            renderStyle: function (e, t) {
              if (!o.Element.isElement(e)) return t;
              var n = e.lineHeight,
                r = t;
              return n && sa(r, { lineHeight: n }), r;
            },
            styleToHtml: function (e, t) {
              if (!o.Element.isElement(e)) return t;
              var n = e.lineHeight;
              if (!n) return t;
              var r = l.default(t);
              return r.css('line-height', n), fo(r);
            },
            parseStyleHtml: function (e, t, n) {
              var r = l.default(e);
              if (!o.Element.isElement(t)) return t;
              var i = t,
                a = n.getMenuConfig('lineHeight').lineHeightList,
                u = void 0 === a ? [] : a,
                s = ho(r, 'line-height');
              return s && u.includes(s) && (i.lineHeight = s), i;
            },
            menus: [{
              key: 'lineHeight',
              factory: function () {
                return new ap;
              },
              config: { lineHeightList: ['1', '1.15', '1.5', '2', '2.5', '3'] }
            }]
          },
          sp = function () {
            function e() {
              this.title = n.t('undo.redo'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>', this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection;
            }, e.prototype.exec = function (e, t) {
              'function' == typeof e.redo && e.redo();
            }, e;
          }(),
          lp = function () {
            function e() {
              this.title = n.t('undo.undo'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>', this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection;
            }, e.prototype.exec = function (e, t) {
              'function' == typeof e.undo && e.undo();
            }, e;
          }(),
          cp = {
            menus: [{
              key: 'redo',
              factory: function () {
                return new sp;
              }
            }, {
              key: 'undo',
              factory: function () {
                return new lp;
              }
            }]
          },
          fp = {
            type: 'divider',
            renderElem: function (e, t, o) {
              var i = n.DomEditor.isNodeSelected(o, e);
              return r.h('div', {
                props: {
                  contentEditable: !1,
                  className: 'w-e-textarea-divider'
                },
                dataset: { selected: i ? 'true' : '' },
                style: {},
                on: {
                  mousedown: function (e) {
                    return e.preventDefault();
                  }
                }
              }, [r.h('hr')]);
            }
          },
          dp = {
            type: 'divider',
            elemToHtml: function (e, t) {
              return '<hr/>';
            }
          },
          pp = {
            selector: 'hr',
            parseElemHtml: function (e, t, n) {
              return {
                type: 'divider',
                children: [{ text: '' }]
              };
            }
          },
          hp = function () {
            function e() {
              this.title = n.t('divider.title'), this.iconSvg = '<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>', this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || !!n.DomEditor.getSelectedElems(e)
                .some((function (t) {
                  if (e.isVoid(t)) return !0;
                  var r = n.DomEditor.getNodeType(t);
                  return 'table' === r || 'pre' === r || void 0;
                }));
            }, e.prototype.exec = function (e, t) {
              o.Transforms.insertNodes(e, {
                type: 'divider',
                children: [{ text: '' }]
              }, { mode: 'highest' });
            }, e;
          }(),
          vp = {
            renderElems: [fp],
            elemsToHtml: [dp],
            parseElemsHtml: [pp],
            menus: [{
              key: 'divider',
              factory: function () {
                return new hp;
              }
            }],
            editorPlugin: function (e) {
              var t = e.isVoid,
                r = e.normalizeNode,
                i = e;
              return i.isVoid = function (e) {
                return 'divider' === e.type || t(e);
              }, i.normalizeNode = function (e) {
                var t = Eo(e, 2),
                  a = t[0],
                  u = t[1];
                if ('divider' !== n.DomEditor.getNodeType(a)) return r([a, u]);
                n.DomEditor.isLastNode(i, a) && o.Transforms.insertNodes(i, n.DomEditor.genEmptyParagraph(), { at: [u[0] + 1] });
              }, i;
            }
          },
          gp = pn.map;
        Ut({
          target: 'Array',
          proto: !0,
          forced: !vn('map')
        }, {
          map: function (e) {
            return gp(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        });
        var yp = P([].join),
          mp = L != Object,
          bp = jo('join', ',');
        Ut({
          target: 'Array',
          proto: !0,
          forced: mp || !bp
        }, {
          join: function (e) {
            return yp(H(this), void 0 === e ? ',' : e);
          }
        });
        var wp = function () {
            function e() {
              this.title = n.t('codeBlock.title'), this.iconSvg = '<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>', this.tag = 'button';
            }

            return e.prototype.getSelectCodeElem = function (e) {
              var t = n.DomEditor.getSelectedNodeByType(e, 'code');
              if (null == t) return null;
              var r = n.DomEditor.getParentNode(e, t);
              return null == r || 'pre' !== n.DomEditor.getNodeType(r) ? null : t;
            }, e.prototype.getValue = function (e) {
              var t = this.getSelectCodeElem(e);
              return null == t ? '' : t.language || '';
            }, e.prototype.isActive = function (e) {
              return !!this.getSelectCodeElem(e);
            }, e.prototype.isDisabled = function (e) {
              if (null == e.selection) return !0;
              var t = n.DomEditor.getSelectedElems(e);
              return !!t.some((function (t) {
                return e.isVoid(t);
              })) || !t.some((function (e) {
                var t = n.DomEditor.getNodeType(e);
                if ('pre' === t || 'paragraph' === t) return !0;
              }));
            }, e.prototype.exec = function (e, t) {
              this.isActive(e) ? this.changeToPlainText(e) : this.changeToCodeBlock(e, t.toString());
            }, e.prototype.changeToPlainText = function (e) {
              var t = this.getSelectCodeElem(e);
              if (null != t) {
                var n = o.Node.string(t);
                o.Transforms.removeNodes(e, { mode: 'highest' });
                var r = n.split('\n')
                  .map((function (e) {
                    return {
                      type: 'paragraph',
                      children: [{ text: e }]
                    };
                  }));
                o.Transforms.insertNodes(e, r, { mode: 'highest' });
              }
            }, e.prototype.changeToCodeBlock = function (e, t) {
              var n,
                r,
                i = [],
                a = o.Editor.nodes(e, {
                  match: function (t) {
                    return e.children.includes(t);
                  },
                  universal: !0
                });
              try {
                for (var u = wo(a), s = u.next(); !s.done; s = u.next()) {
                  var l = Eo(s.value, 1)[0];
                  l && i.push(o.Node.string(l));
                }
              } catch (e) {
                n = { error: e };
              } finally {
                try {
                  s && !s.done && (r = u.return) && r.call(u);
                } finally {
                  if (n) throw n.error;
                }
              }
              o.Transforms.removeNodes(e, { mode: 'highest' });
              var c = {
                type: 'pre',
                children: [{
                  type: 'code',
                  language: t,
                  children: [{ text: i.join('\n') }]
                }]
              };
              o.Transforms.insertNodes(e, c, { mode: 'highest' });
            }, e;
          }(),
          Ep = {
            key: 'codeBlock',
            factory: function () {
              return new wp;
            }
          };
        Ut({
          target: 'String',
          proto: !0,
          forced: Oo('anchor')
        }, {
          anchor: function (e) {
            return Ao(this, 'a', 'name', e);
          }
        }), ar('match', (function (e, t, n) {
          return [function (t) {
            var n = $(this),
              r = null == t ? void 0 : se(t, e);
            return r ? x(r, t, n) : new RegExp(t)[e](wn(n));
          }, function (e) {
            var r = ze(this),
              o = wn(e),
              i = n(t, r, o);
            if (i.done) return i.value;
            if (!r.global) return Er(r, o);
            var a = r.unicode;
            r.lastIndex = 0;
            for (var u, s = [], l = 0; null !== (u = Er(r, o));) {
              var c = wn(u[0]);
              s[l] = c, '' === c && (r.lastIndex = dr(o, Dt(r.lastIndex), a)), l++;
            }
            return 0 === l ? null : s;
          }];
        }));
        var Dp = {
            menus: [Ep],
            editorPlugin: function (e) {
              var t = e.insertBreak,
                r = e.normalizeNode,
                i = e.insertData;
              e.insertNode;
              var a = e;
              return a.insertBreak = function () {
                var e = n.DomEditor.getSelectedNodeByType(a, 'code');
                if (null != e) {
                  var r = function (e, t) {
                    var n = t.selection;
                    if (null == n) return '';
                    var r = o.Node.string(e),
                      i = n.anchor.offset,
                      a = r.slice(0, i)
                        .split('\n'),
                      u = a.length;
                    return 0 === u ? '' : a[u - 1];
                  }(e, a);
                  if (r) {
                    var i = r.match(/^\s+/);
                    if (null != i && null != i[0]) {
                      var u = i[0];
                      return void a.insertText('\n' + u);
                    }
                  }
                  a.insertText('\n');
                } else {
                  t();
                }
              }, a.normalizeNode = function (e) {
                var t = Eo(e, 2),
                  i = t[0],
                  u = t[1],
                  s = n.DomEditor.getNodeType(i);
                return 'code' === s && u.length <= 1 && o.Transforms.setNodes(a, { type: 'paragraph' }, { at: u }), 'pre' === s && (n.DomEditor.isLastNode(a, i) && o.Transforms.insertNodes(a, n.DomEditor.genEmptyParagraph(), { at: [u[0] + 1] }), 'code' !== n.DomEditor.getNodeType(i.children[0]) && (o.Transforms.unwrapNodes(a), o.Transforms.setNodes(a, { type: 'paragraph' }, { mode: 'highest' }))), r([i, u]);
              }, a.insertData = function (e) {
                if (null != n.DomEditor.getSelectedNodeByType(a, 'code')) {
                  var t = e.getData('text/plain');
                  o.Editor.insertText(a, t);
                } else {
                  i(e);
                }
              }, a;
            },
            renderElems: [{
              type: 'pre',
              renderElem: function (e, t, n) {
                return r.jsx('pre', null, t);
              }
            }, {
              type: 'code',
              renderElem: function (e, t, n) {
                return r.jsx('code', null, t);
              }
            }],
            elemsToHtml: [{
              type: 'code',
              elemToHtml: function (e, t) {
                return '<code>' + t + '</code>';
              }
            }, {
              type: 'pre',
              elemToHtml: function (e, t) {
                return '<pre>' + t + '</pre>';
              }
            }],
            preParseHtml: [{
              selector: 'pre>code',
              preParseHtml: function (e) {
                var t = l.default(e);
                if ('code' !== po(t)) return e;
                var n = t.find('xmp');
                if (0 === n.length) return e;
                var r = n.text();
                return n.remove(), t.text(r), t[0];
              }
            }],
            parseElemsHtml: [{
              selector: 'pre>code',
              parseElemHtml: function (e, t, n) {
                return {
                  type: 'code',
                  language: '',
                  children: [{ text: l.default(e)[0].textContent || '' }]
                };
              }
            }, {
              selector: 'pre',
              parseElemHtml: function (e, t, r) {
                var o = l.default(e);
                return 0 === (t = t.filter((function (e) {
                  return 'code' === n.DomEditor.getNodeType(e);
                }))).length && (t = [{
                  type: 'code',
                  language: '',
                  children: [{ text: o[0].textContent || '' }]
                }]), {
                  type: 'pre',
                  children: t.filter((function (e) {
                    return 'code' === n.DomEditor.getNodeType(e);
                  }))
                };
              }
            }]
          },
          xp = function () {
            function e() {
              this.title = n.t('fullScreen.title'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>', this.tag = 'button', this.alwaysEnable = !0;
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return e.isFullScreen;
            }, e.prototype.isDisabled = function (e) {
              return !1;
            }, e.prototype.exec = function (e, t) {
              e.isFullScreen ? e.unFullScreen() : e.fullScreen();
            }, e;
          }(),
          Sp = {
            menus: [{
              key: 'fullScreen',
              factory: function () {
                return new xp;
              }
            }]
          },
          Cp = function () {
            function e() {
              this.title = n.t('common.enter'), this.iconSvg = '<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>', this.tag = 'button';
            }

            return e.prototype.getValue = function (e) {
              return '';
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.isDisabled = function (e) {
              var t = e.selection;
              return null == t || !!o.Range.isExpanded(t);
            }, e.prototype.exec = function (e, t) {
              var n = e.selection;
              if (null != n) {
                var r = [n.anchor.path[0]];
                o.Transforms.insertNodes(e, {
                  type: 'paragraph',
                  children: [{ text: '' }]
                }, { at: r }), e.select(o.Editor.start(e, r));
              }
            }, e;
          }(),
          Ap = [vi, ha, Kd, Qd, ip, up, yu, vp, Pu, Ra, Dp, Fu, ra, xo, wu, cp, Sp, {
            menus: [{
              key: 'enter',
              factory: function () {
                return new Cp;
              }
            }]
          }];
        e.default = Ap, e.insertImageNode = ru, e.isInsertImageMenuDisabled = iu, e.updateImageNode = ou, Object.defineProperty(e, '__esModule', { value: !0 });
      }(n, BE, TE, OE, kE, Jm, zg);
    })),
    JE = n(ZE),
    QE = r((function (e, n) {
      e.exports = function (e, n, r, o) {
        function i(e) {
          return e && 'object' == typeof e && 'default' in e ? e : { default: e };
        }

        var a = i(o);
        e.i18nAddResources('en', {
          listModule: {
            unOrderedList: 'Unordered list',
            orderedList: 'Ordered list'
          }
        }), e.i18nAddResources('zh-CN', {
          listModule: {
            unOrderedList: '无序列表',
            orderedList: '有序列表'
          }
        });
        var u = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof window ? window : void 0 !== t ? t : 'undefined' != typeof self ? self : {};

        function s(e) {
          var t = { exports: {} };
          return e(t, t.exports), t.exports;
        }

        var l,
          c,
          f = function (e) {
            return e && e.Math == Math && e;
          },
          d = f('object' == typeof globalThis && globalThis) || f('object' == typeof window && window) || f('object' == typeof self && self) || f('object' == typeof u && u) || function () {
            return this;
          }() || Function('return this')(),
          p = function (e) {
            try {
              return !!e();
            } catch (e) {
              return !0;
            }
          },
          h = !p((function () {
            return 7 != Object.defineProperty({}, 1, {
              get: function () {
                return 7;
              }
            })[1];
          })),
          v = Function.prototype.call,
          g = v.bind ? v.bind(v) : function () {
            return v.apply(v, arguments);
          },
          y = {}.propertyIsEnumerable,
          m = Object.getOwnPropertyDescriptor,
          b = {
            f: m && !y.call({ 1: 2 }, 1) ? function (e) {
              var t = m(this, e);
              return !!t && t.enumerable;
            } : y
          },
          w = function (e, t) {
            return {
              enumerable: !(1 & e),
              configurable: !(2 & e),
              writable: !(4 & e),
              value: t
            };
          },
          E = Function.prototype,
          D = E.bind,
          x = E.call,
          S = D && D.bind(x),
          C = D ? function (e) {
            return e && S(x, e);
          } : function (e) {
            return e && function () {
              return x.apply(e, arguments);
            };
          },
          A = C({}.toString),
          O = C(''.slice),
          k = function (e) {
            return O(A(e), 8, -1);
          },
          T = d.Object,
          B = C(''.split),
          F = p((function () {
            return !T('z')
              .propertyIsEnumerable(0);
          })) ? function (e) {
            return 'String' == k(e) ? B(e, '') : T(e);
          } : T,
          _ = d.TypeError,
          P = function (e) {
            if (null == e) throw _('Can\'t call method on ' + e);
            return e;
          },
          j = function (e) {
            return F(P(e));
          },
          N = function (e) {
            return 'function' == typeof e;
          },
          I = function (e) {
            return 'object' == typeof e ? null !== e : N(e);
          },
          R = function (e) {
            return N(e) ? e : void 0;
          },
          M = function (e, t) {
            return arguments.length < 2 ? R(d[e]) : d[e] && d[e][t];
          },
          L = C({}.isPrototypeOf),
          z = M('navigator', 'userAgent') || '',
          $ = d.process,
          H = d.Deno,
          V = $ && $.versions || H && H.version,
          U = V && V.v8;
        U && (c = (l = U.split('.'))[0] > 0 && l[0] < 4 ? 1 : +(l[0] + l[1])), !c && z && (!(l = z.match(/Edge\/(\d+)/)) || l[1] >= 74) && (l = z.match(/Chrome\/(\d+)/)) && (c = +l[1]);
        var W = c,
          G = !!Object.getOwnPropertySymbols && !p((function () {
            var e = Symbol();
            return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && W && W < 41;
          })),
          q = G && !Symbol.sham && 'symbol' == typeof Symbol.iterator,
          K = d.Object,
          Y = q ? function (e) {
            return 'symbol' == typeof e;
          } : function (e) {
            var t = M('Symbol');
            return N(t) && L(t.prototype, K(e));
          },
          X = d.String,
          Z = d.TypeError,
          J = function (e) {
            if (N(e)) return e;
            throw Z(function (e) {
              try {
                return X(e);
              } catch (e) {
                return 'Object';
              }
            }(e) + ' is not a function');
          },
          Q = function (e, t) {
            var n = e[t];
            return null == n ? void 0 : J(n);
          },
          ee = d.TypeError,
          te = Object.defineProperty,
          ne = function (e, t) {
            try {
              te(d, e, {
                value: t,
                configurable: !0,
                writable: !0
              });
            } catch (n) {
              d[e] = t;
            }
            return t;
          },
          re = '__core-js_shared__',
          oe = d[re] || ne(re, {}),
          ie = s((function (e) {
            (e.exports = function (e, t) {
              return oe[e] || (oe[e] = void 0 !== t ? t : {});
            })('versions', [])
              .push({
                version: '3.19.3',
                mode: 'global',
                copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
              });
          })),
          ae = d.Object,
          ue = function (e) {
            return ae(P(e));
          },
          se = C({}.hasOwnProperty),
          le = Object.hasOwn || function (e, t) {
            return se(ue(e), t);
          },
          ce = 0,
          fe = Math.random(),
          de = C(1..toString),
          pe = function (e) {
            return 'Symbol(' + (void 0 === e ? '' : e) + ')_' + de(++ce + fe, 36);
          },
          he = ie('wks'),
          ve = d.Symbol,
          ge = ve && ve.for,
          ye = q ? ve : ve && ve.withoutSetter || pe,
          me = function (e) {
            if (!le(he, e) || !G && 'string' != typeof he[e]) {
              var t = 'Symbol.' + e;
              G && le(ve, e) ? he[e] = ve[e] : he[e] = q && ge ? ge(t) : ye(t);
            }
            return he[e];
          },
          be = d.TypeError,
          we = me('toPrimitive'),
          Ee = function (e, t) {
            if (!I(e) || Y(e)) return e;
            var n,
              r = Q(e, we);
            if (r) {
              if (void 0 === t && (t = 'default'), n = g(r, e, t), !I(n) || Y(n)) return n;
              throw be('Can\'t convert object to primitive value');
            }
            return void 0 === t && (t = 'number'), function (e, t) {
              var n,
                r;
              if ('string' === t && N(n = e.toString) && !I(r = g(n, e))) return r;
              if (N(n = e.valueOf) && !I(r = g(n, e))) return r;
              if ('string' !== t && N(n = e.toString) && !I(r = g(n, e))) return r;
              throw ee('Can\'t convert object to primitive value');
            }(e, t);
          },
          De = function (e) {
            var t = Ee(e, 'string');
            return Y(t) ? t : t + '';
          },
          xe = d.document,
          Se = I(xe) && I(xe.createElement),
          Ce = function (e) {
            return Se ? xe.createElement(e) : {};
          },
          Ae = !h && !p((function () {
            return 7 != Object.defineProperty(Ce('div'), 'a', {
              get: function () {
                return 7;
              }
            }).a;
          })),
          Oe = Object.getOwnPropertyDescriptor,
          ke = {
            f: h ? Oe : function (e, t) {
              if (e = j(e), t = De(t), Ae) {
                try {
                  return Oe(e, t);
                } catch (e) {
                }
              }
              if (le(e, t)) return w(!g(b.f, e, t), e[t]);
            }
          },
          Te = d.String,
          Be = d.TypeError,
          Fe = function (e) {
            if (I(e)) return e;
            throw Be(Te(e) + ' is not an object');
          },
          _e = d.TypeError,
          Pe = Object.defineProperty,
          je = {
            f: h ? Pe : function (e, t, n) {
              if (Fe(e), t = De(t), Fe(n), Ae) {
                try {
                  return Pe(e, t, n);
                } catch (e) {
                }
              }
              if ('get' in n || 'set' in n) throw _e('Accessors not supported');
              return 'value' in n && (e[t] = n.value), e;
            }
          },
          Ne = h ? function (e, t, n) {
            return je.f(e, t, w(1, n));
          } : function (e, t, n) {
            return e[t] = n, e;
          },
          Ie = C(Function.toString);
        N(oe.inspectSource) || (oe.inspectSource = function (e) {
          return Ie(e);
        });
        var Re,
          Me,
          Le,
          ze = oe.inspectSource,
          $e = d.WeakMap,
          He = N($e) && /native code/.test(ze($e)),
          Ve = ie('keys'),
          Ue = function (e) {
            return Ve[e] || (Ve[e] = pe(e));
          },
          We = {},
          Ge = 'Object already initialized',
          qe = d.TypeError,
          Ke = d.WeakMap;
        if (He || oe.state) {
          var Ye = oe.state || (oe.state = new Ke),
            Xe = C(Ye.get),
            Ze = C(Ye.has),
            Je = C(Ye.set);
          Re = function (e, t) {
            if (Ze(Ye, e)) throw new qe(Ge);
            return t.facade = e, Je(Ye, e, t), t;
          }, Me = function (e) {
            return Xe(Ye, e) || {};
          }, Le = function (e) {
            return Ze(Ye, e);
          };
        } else {
          var Qe = Ue('state');
          We[Qe] = !0, Re = function (e, t) {
            if (le(e, Qe)) throw new qe(Ge);
            return t.facade = e, Ne(e, Qe, t), t;
          }, Me = function (e) {
            return le(e, Qe) ? e[Qe] : {};
          }, Le = function (e) {
            return le(e, Qe);
          };
        }
        var et,
          tt = {
            set: Re,
            get: Me,
            has: Le,
            enforce: function (e) {
              return Le(e) ? Me(e) : Re(e, {});
            },
            getterFor: function (e) {
              return function (t) {
                var n;
                if (!I(t) || (n = Me(t)).type !== e) throw qe('Incompatible receiver, ' + e + ' required');
                return n;
              };
            }
          },
          nt = Function.prototype,
          rt = h && Object.getOwnPropertyDescriptor,
          ot = le(nt, 'name'),
          it = {
            EXISTS: ot,
            PROPER: ot && 'something' === function () {
            }.name,
            CONFIGURABLE: ot && (!h || h && rt(nt, 'name').configurable)
          },
          at = s((function (e) {
            var t = it.CONFIGURABLE,
              n = tt.get,
              r = tt.enforce,
              o = String(String)
                .split('String');
            (e.exports = function (e, n, i, a) {
              var u,
                s = !!a && !!a.unsafe,
                l = !!a && !!a.enumerable,
                c = !!a && !!a.noTargetGet,
                f = a && void 0 !== a.name ? a.name : n;
              N(i) && ('Symbol(' === String(f)
                .slice(0, 7) && (f = '[' + String(f)
                .replace(/^Symbol\(([^)]*)\)/, '$1') + ']'), (!le(i, 'name') || t && i.name !== f) && Ne(i, 'name', f), (u = r(i)).source || (u.source = o.join('string' == typeof f ? f : ''))), e !== d ? (s ? !c && e[n] && (l = !0) : delete e[n], l ? e[n] = i : Ne(e, n, i)) : l ? e[n] = i : ne(n, i);
            })(Function.prototype, 'toString', (function () {
              return N(this) && n(this).source || ze(this);
            }));
          })),
          ut = Math.ceil,
          st = Math.floor,
          lt = function (e) {
            var t = +e;
            return t != t || 0 === t ? 0 : (t > 0 ? st : ut)(t);
          },
          ct = Math.max,
          ft = Math.min,
          dt = Math.min,
          pt = function (e) {
            return e > 0 ? dt(lt(e), 9007199254740991) : 0;
          },
          ht = function (e) {
            return pt(e.length);
          },
          vt = function (e) {
            return function (t, n, r) {
              var o,
                i = j(t),
                a = ht(i),
                u = function (e, t) {
                  var n = lt(e);
                  return n < 0 ? ct(n + t, 0) : ft(n, t);
                }(r, a);
              if (e && n != n) {
                for (; a > u;) if ((o = i[u++]) != o) return !0;
              } else {
                for (; a > u; u++) if ((e || u in i) && i[u] === n) return e || u || 0;
              }
              return !e && -1;
            };
          },
          gt = {
            includes: vt(!0),
            indexOf: vt(!1)
          },
          yt = gt.indexOf,
          mt = C([].push),
          bt = function (e, t) {
            var n,
              r = j(e),
              o = 0,
              i = [];
            for (n in r) !le(We, n) && le(r, n) && mt(i, n);
            for (; t.length > o;) le(r, n = t[o++]) && (~yt(i, n) || mt(i, n));
            return i;
          },
          wt = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'],
          Et = wt.concat('length', 'prototype'),
          Dt = {
            f: Object.getOwnPropertyNames || function (e) {
              return bt(e, Et);
            }
          },
          xt = { f: Object.getOwnPropertySymbols },
          St = C([].concat),
          Ct = M('Reflect', 'ownKeys') || function (e) {
            var t = Dt.f(Fe(e)),
              n = xt.f;
            return n ? St(t, n(e)) : t;
          },
          At = function (e, t) {
            for (var n = Ct(t), r = je.f, o = ke.f, i = 0; i < n.length; i++) {
              var a = n[i];
              le(e, a) || r(e, a, o(t, a));
            }
          },
          Ot = /#|\.prototype\./,
          kt = function (e, t) {
            var n = Bt[Tt(e)];
            return n == _t || n != Ft && (N(t) ? p(t) : !!t);
          },
          Tt = kt.normalize = function (e) {
            return String(e)
              .replace(Ot, '.')
              .toLowerCase();
          },
          Bt = kt.data = {},
          Ft = kt.NATIVE = 'N',
          _t = kt.POLYFILL = 'P',
          Pt = kt,
          jt = ke.f,
          Nt = function (e, t) {
            var n,
              r,
              o,
              i,
              a,
              u = e.target,
              s = e.global,
              l = e.stat;
            if (n = s ? d : l ? d[u] || ne(u, {}) : (d[u] || {}).prototype) {
              for (r in t) {
                if (i = t[r], o = e.noTargetGet ? (a = jt(n, r)) && a.value : n[r], !Pt(s ? r : u + (l ? '.' : '#') + r, e.forced) && void 0 !== o) {
                  if (typeof i == typeof o) continue;
                  At(i, o);
                }
                (e.sham || o && o.sham) && Ne(i, 'sham', !0), at(n, r, i, e);
              }
            }
          },
          It = Object.keys || function (e) {
            return bt(e, wt);
          },
          Rt = h ? Object.defineProperties : function (e, t) {
            Fe(e);
            for (var n, r = j(t), o = It(t), i = o.length, a = 0; i > a;) je.f(e, n = o[a++], r[n]);
            return e;
          },
          Mt = M('document', 'documentElement'),
          Lt = Ue('IE_PROTO'),
          zt = function () {
          },
          $t = function (e) {
            return '<script>' + e + '<\/script>';
          },
          Ht = function (e) {
            e.write($t('')), e.close();
            var t = e.parentWindow.Object;
            return e = null, t;
          },
          Vt = function () {
            try {
              et = new ActiveXObject('htmlfile');
            } catch (e) {
            }
            var e,
              t;
            Vt = 'undefined' != typeof document ? document.domain && et ? Ht(et) : ((t = Ce('iframe')).style.display = 'none', Mt.appendChild(t), t.src = String('javascript:'), (e = t.contentWindow.document).open(), e.write($t('document.F=Object')), e.close(), e.F) : Ht(et);
            for (var n = wt.length; n--;) delete Vt.prototype[wt[n]];
            return Vt();
          };
        We[Lt] = !0;
        var Ut = Object.create || function (e, t) {
            var n;
            return null !== e ? (zt.prototype = Fe(e), n = new zt, zt.prototype = null, n[Lt] = e) : n = Vt(), void 0 === t ? n : Rt(n, t);
          },
          Wt = me('unscopables'),
          Gt = Array.prototype;
        null == Gt[Wt] && je.f(Gt, Wt, {
          configurable: !0,
          value: Ut(null)
        });
        var qt,
          Kt = gt.includes;

        function Yt(e) {
          if ('bulleted-list' === e) return 'ul';
          if ('numbered-list' === e) return 'ol';
          if ('list-item' === e) return 'li';
          throw new Error('list type \'' + e + '\' is invalid');
        }

        function Xt(t) {
          var n = e.DomEditor.getNodeType(t);
          return ['bulleted-list', 'numbered-list'].includes(n);
        }

        function Zt(e) {
          return function (t, r, o) {
            var i = Yt(e);
            return n.jsx(i, null, r);
          };
        }

        Nt({
          target: 'Array',
          proto: !0
        }, {
          includes: function (e) {
            return Kt(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        }), qt = 'includes', Gt[Wt][qt] = !0;
        var Jt = {
            type: 'bulleted-list',
            renderElem: Zt('bulleted-list')
          },
          Qt = {
            type: 'numbered-list',
            renderElem: Zt('numbered-list')
          },
          en = {
            type: 'list-item',
            renderElem: Zt('list-item')
          };

        function tn(e) {
          var t = Yt(e);
          return function (e, n) {
            return '<' + t + '>' + n + '</' + t + '>';
          };
        }

        var nn = {
            type: 'bulleted-list',
            elemToHtml: tn('bulleted-list')
          },
          rn = {
            type: 'numbered-list',
            elemToHtml: tn('numbered-list')
          },
          on = {
            type: 'list-item',
            elemToHtml: tn('list-item')
          },
          an = C(C.bind),
          un = Array.isArray || function (e) {
            return 'Array' == k(e);
          },
          sn = {};
        sn[me('toStringTag')] = 'z';
        var ln = '[object z]' === String(sn),
          cn = me('toStringTag'),
          fn = d.Object,
          dn = 'Arguments' == k(function () {
            return arguments;
          }()),
          pn = ln ? k : function (e) {
            var t,
              n,
              r;
            return void 0 === e ? 'Undefined' : null === e ? 'Null' : 'string' == typeof (n = function (e, t) {
              try {
                return e[t];
              } catch (e) {
              }
            }(t = fn(e), cn)) ? n : dn ? k(t) : 'Object' == (r = k(t)) && N(t.callee) ? 'Arguments' : r;
          },
          hn = function () {
          },
          vn = [],
          gn = M('Reflect', 'construct'),
          yn = /^\s*(?:class|function)\b/,
          mn = C(yn.exec),
          bn = !yn.exec(hn),
          wn = function (e) {
            if (!N(e)) return !1;
            try {
              return gn(hn, vn, e), !0;
            } catch (e) {
              return !1;
            }
          },
          En = !gn || p((function () {
            var e;
            return wn(wn.call) || !wn(Object) || !wn((function () {
              e = !0;
            })) || e;
          })) ? function (e) {
            if (!N(e)) return !1;
            switch (pn(e)) {
              case'AsyncFunction':
              case'GeneratorFunction':
              case'AsyncGeneratorFunction':
                return !1;
            }
            return bn || !!mn(yn, ze(e));
          } : wn,
          Dn = me('species'),
          xn = d.Array,
          Sn = function (e, t) {
            return new (function (e) {
              var t;
              return un(e) && (t = e.constructor, (En(t) && (t === xn || un(t.prototype)) || I(t) && null === (t = t[Dn])) && (t = void 0)), void 0 === t ? xn : t;
            }(e))(0 === t ? 0 : t);
          },
          Cn = C([].push),
          An = function (e) {
            var t = 1 == e,
              n = 2 == e,
              r = 3 == e,
              o = 4 == e,
              i = 6 == e,
              a = 7 == e,
              u = 5 == e || i;
            return function (s, l, c, f) {
              for (var d, p, h = ue(s), v = F(h), g = function (e, t) {
                return J(e), void 0 === t ? e : an ? an(e, t) : function () {
                  return e.apply(t, arguments);
                };
              }(l, c), y = ht(v), m = 0, b = f || Sn, w = t ? b(s, y) : n || a ? b(s, 0) : void 0; y > m; m++) {
                if ((u || m in v) && (p = g(d = v[m], m, h), e)) {
                  if (t) {
                    w[m] = p;
                  } else if (p) {
                    switch (e) {
                      case 3:
                        return !0;
                      case 5:
                        return d;
                      case 6:
                        return m;
                      case 2:
                        Cn(w, d);
                    }
                  } else {
                    switch (e) {
                      case 4:
                        return !1;
                      case 7:
                        Cn(w, d);
                    }
                  }
                }
              }
              return i ? -1 : r || o ? o : w;
            };
          },
          On = {
            forEach: An(0),
            map: An(1),
            filter: An(2),
            some: An(3),
            every: An(4),
            find: An(5),
            findIndex: An(6),
            filterReject: An(7)
          },
          kn = me('species'),
          Tn = function (e) {
            return W >= 51 || !p((function () {
              var t = [];
              return (t.constructor = {})[kn] = function () {
                return { foo: 1 };
              }, 1 !== t[e](Boolean).foo;
            }));
          },
          Bn = On.filter;
        Nt({
          target: 'Array',
          proto: !0,
          forced: !Tn('filter')
        }, {
          filter: function (e) {
            return Bn(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        });
        var Fn = ln ? {}.toString : function () {
          return '[object ' + pn(this) + ']';
        };
        ln || at(Object.prototype, 'toString', Fn, { unsafe: !0 });
        var _n,
          Pn,
          jn = d.String,
          Nn = function (e) {
            if ('Symbol' === pn(e)) throw TypeError('Cannot convert a Symbol value to a string');
            return jn(e);
          },
          In = function () {
            var e = Fe(this),
              t = '';
            return e.global && (t += 'g'), e.ignoreCase && (t += 'i'), e.multiline && (t += 'm'), e.dotAll && (t += 's'), e.unicode && (t += 'u'), e.sticky && (t += 'y'), t;
          },
          Rn = d.RegExp,
          Mn = p((function () {
            var e = Rn('a', 'y');
            return e.lastIndex = 2, null != e.exec('abcd');
          })),
          Ln = Mn || p((function () {
            return !Rn('a', 'y').sticky;
          })),
          zn = {
            BROKEN_CARET: Mn || p((function () {
              var e = Rn('^r', 'gy');
              return e.lastIndex = 2, null != e.exec('str');
            })),
            MISSED_STICKY: Ln,
            UNSUPPORTED_Y: Mn
          },
          $n = d.RegExp,
          Hn = p((function () {
            var e = $n('.', 's');
            return !(e.dotAll && e.exec('\n') && 's' === e.flags);
          })),
          Vn = d.RegExp,
          Un = p((function () {
            var e = Vn('(?<a>b)', 'g');
            return 'b' !== e.exec('b').groups.a || 'bc' !== 'b'.replace(e, '$<a>c');
          })),
          Wn = tt.get,
          Gn = ie('native-string-replace', String.prototype.replace),
          qn = RegExp.prototype.exec,
          Kn = qn,
          Yn = C(''.charAt),
          Xn = C(''.indexOf),
          Zn = C(''.replace),
          Jn = C(''.slice),
          Qn = (Pn = /b*/g, g(qn, _n = /a/, 'a'), g(qn, Pn, 'a'), 0 !== _n.lastIndex || 0 !== Pn.lastIndex),
          er = zn.BROKEN_CARET,
          tr = void 0 !== /()??/.exec('')[1];
        (Qn || tr || er || Hn || Un) && (Kn = function (e) {
          var t,
            n,
            r,
            o,
            i,
            a,
            u,
            s = this,
            l = Wn(s),
            c = Nn(e),
            f = l.raw;
          if (f) return f.lastIndex = s.lastIndex, t = g(Kn, f, c), s.lastIndex = f.lastIndex, t;
          var d = l.groups,
            p = er && s.sticky,
            h = g(In, s),
            v = s.source,
            y = 0,
            m = c;
          if (p && (h = Zn(h, 'y', ''), -1 === Xn(h, 'g') && (h += 'g'), m = Jn(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && '\n' !== Yn(c, s.lastIndex - 1)) && (v = '(?: ' + v + ')', m = ' ' + m, y++), n = new RegExp('^(?:' + v + ')', h)), tr && (n = new RegExp('^' + v + '$(?!\\s)', h)), Qn && (r = s.lastIndex), o = g(qn, p ? n : s, m), p ? o ? (o.input = Jn(o.input, y), o[0] = Jn(o[0], y), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : Qn && o && (s.lastIndex = s.global ? o.index + o[0].length : r), tr && o && o.length > 1 && g(Gn, o[0], n, (function () {
            for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (o[i] = void 0);
          })), o && d) {
            for (o.groups = a = Ut(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
          }
          return o;
        });
        var nr = Kn;
        Nt({
          target: 'RegExp',
          proto: !0,
          forced: /./.exec !== nr
        }, { exec: nr });
        var rr = Function.prototype,
          or = rr.apply,
          ir = rr.bind,
          ar = rr.call,
          ur = 'object' == typeof Reflect && Reflect.apply || (ir ? ar.bind(or) : function () {
            return ar.apply(or, arguments);
          }),
          sr = me('species'),
          lr = RegExp.prototype,
          cr = C(''.charAt),
          fr = C(''.charCodeAt),
          dr = C(''.slice),
          pr = function (e) {
            return function (t, n) {
              var r,
                o,
                i = Nn(P(t)),
                a = lt(n),
                u = i.length;
              return a < 0 || a >= u ? e ? '' : void 0 : (r = fr(i, a)) < 55296 || r > 56319 || a + 1 === u || (o = fr(i, a + 1)) < 56320 || o > 57343 ? e ? cr(i, a) : r : e ? dr(i, a, a + 2) : o - 56320 + (r - 55296 << 10) + 65536;
            };
          },
          hr = (pr(!1), pr(!0)),
          vr = function (e, t, n) {
            return t + (n ? hr(e, t).length : 1);
          },
          gr = Math.floor,
          yr = C(''.charAt),
          mr = C(''.replace),
          br = C(''.slice),
          wr = /\$([$&'`]|\d{1,2}|<[^>]*>)/g,
          Er = /\$([$&'`]|\d{1,2})/g,
          Dr = function (e, t, n, r, o, i) {
            var a = n + e.length,
              u = r.length,
              s = Er;
            return void 0 !== o && (o = ue(o), s = wr), mr(i, s, (function (i, s) {
              var l;
              switch (yr(s, 0)) {
                case'$':
                  return '$';
                case'&':
                  return e;
                case'`':
                  return br(t, 0, n);
                case'\'':
                  return br(t, a);
                case'<':
                  l = o[br(s, 1, -1)];
                  break;
                default:
                  var c = +s;
                  if (0 === c) return i;
                  if (c > u) {
                    var f = gr(c / 10);
                    return 0 === f ? i : f <= u ? void 0 === r[f - 1] ? yr(s, 1) : r[f - 1] + yr(s, 1) : i;
                  }
                  l = r[c - 1];
              }
              return void 0 === l ? '' : l;
            }));
          },
          xr = d.TypeError,
          Sr = function (e, t) {
            var n = e.exec;
            if (N(n)) {
              var r = g(n, e, t);
              return null !== r && Fe(r), r;
            }
            if ('RegExp' === k(e)) return g(nr, e, t);
            throw xr('RegExp#exec called on incompatible receiver');
          },
          Cr = me('replace'),
          Ar = Math.max,
          Or = Math.min,
          kr = C([].concat),
          Tr = C([].push),
          Br = C(''.indexOf),
          Fr = C(''.slice),
          _r = '$0' === 'a'.replace(/./, '$0'),
          Pr = !!/./[Cr] && '' === /./[Cr]('a', '$0');
        !function (e, t, n, r) {
          var o = me(e),
            i = !p((function () {
              var t = {};
              return t[o] = function () {
                return 7;
              }, 7 != ''[e](t);
            })),
            a = i && !p((function () {
              var t = !1,
                n = /a/;
              return 'split' === e && ((n = {}).constructor = {}, n.constructor[sr] = function () {
                return n;
              }, n.flags = '', n[o] = /./[o]), n.exec = function () {
                return t = !0, null;
              }, n[o](''), !t;
            }));
          if (!i || !a || n) {
            var u = C(/./[o]),
              s = t(o, ''[e], (function (e, t, n, r, o) {
                var a = C(e),
                  s = t.exec;
                return s === nr || s === lr.exec ? i && !o ? {
                  done: !0,
                  value: u(t, n, r)
                } : {
                  done: !0,
                  value: a(n, t, r)
                } : { done: !1 };
              }));
            at(String.prototype, e, s[0]), at(lr, o, s[1]);
          }
          r && Ne(lr[o], 'sham', !0);
        }('replace', (function (e, t, n) {
          var r = Pr ? '$' : '$0';
          return [function (e, n) {
            var r = P(this),
              o = null == e ? void 0 : Q(e, Cr);
            return o ? g(o, e, r, n) : g(t, Nn(r), e, n);
          }, function (e, o) {
            var i = Fe(this),
              a = Nn(e);
            if ('string' == typeof o && -1 === Br(o, r) && -1 === Br(o, '$<')) {
              var u = n(t, i, a, o);
              if (u.done) return u.value;
            }
            var s = N(o);
            s || (o = Nn(o));
            var l = i.global;
            if (l) {
              var c = i.unicode;
              i.lastIndex = 0;
            }
            for (var f = []; ;) {
              var d = Sr(i, a);
              if (null === d) break;
              if (Tr(f, d), !l) break;
              '' === Nn(d[0]) && (i.lastIndex = vr(a, pt(i.lastIndex), c));
            }
            for (var p, h = '', v = 0, g = 0; g < f.length; g++) {
              for (var y = Nn((d = f[g])[0]), m = Ar(Or(lt(d.index), a.length), 0), b = [], w = 1; w < d.length; w++) Tr(b, void 0 === (p = d[w]) ? p : String(p));
              var E = d.groups;
              if (s) {
                var D = kr([y], b, m, a);
                void 0 !== E && Tr(D, E);
                var x = Nn(ur(o, void 0, D));
              } else {
                x = Dr(y, a, m, b, E, o);
              }
              m >= v && (h += Fr(a, v, m) + x, v = m + y.length);
            }
            return h + Fr(a, v);
          }];
        }), !!p((function () {
          var e = /./;
          return e.exec = function () {
            var e = [];
            return e.groups = { a: '7' }, e;
          }, '7' !== ''.replace(e, '$<a>');
        })) || !_r || Pr), Nt({ global: !0 }, { globalThis: d });
        var jr = {
            selector: 'li',
            parseElemHtml: function (e, t, n) {
              var o = a.default(e);
              return 0 === (t = t.filter((function (e) {
                return !!r.Text.isText(e) || !!n.isInline(e);
              }))).length && (t = [{
                text: o.text()
                  .replace(/\s+/gm, ' ')
              }]), {
                type: 'list-item',
                children: t
              };
            }
          },
          Nr = {
            selector: 'ul',
            parseElemHtml: function (t, n, r) {
              return {
                type: 'bulleted-list',
                children: n.filter((function (t) {
                  return 'list-item' === e.DomEditor.getNodeType(t);
                }))
              };
            }
          },
          Ir = {
            selector: 'ol',
            parseElemHtml: function (t, n, r) {
              return {
                type: 'numbered-list',
                children: n.filter((function (t) {
                  return 'list-item' === e.DomEditor.getNodeType(t);
                }))
              };
            }
          },
          Rr = function (e, t) {
            return Rr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (e, t) {
              e.__proto__ = t;
            } || function (e, t) {
              for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
            }, Rr(e, t);
            /*! *****************************************************************************
        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.
        ***************************************************************************** */
          };

        function Mr(e, t) {
          if ('function' != typeof t && null !== t) throw new TypeError('Class extends value ' + String(t) + ' is not a constructor or null');

          function n() {
            this.constructor = e;
          }

          Rr(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n);
        }

        function Lr(e, t) {
          var n = 'function' == typeof Symbol && e[Symbol.iterator];
          if (!n) return e;
          var r,
            o,
            i = n.call(e),
            a = [];
          try {
            for (; (void 0 === t || t-- > 0) && !(r = i.next()).done;) a.push(r.value);
          } catch (e) {
            o = { error: e };
          } finally {
            try {
              r && !r.done && (n = i.return) && n.call(i);
            } finally {
              if (o) throw o.error;
            }
          }
          return a;
        }

        var zr,
          $r = function () {
            function t() {
              this.tag = 'button';
            }

            return t.prototype.getListNode = function (t) {
              var n = this.type;
              return e.DomEditor.getSelectedNodeByType(t, n);
            }, t.prototype.getValue = function (e) {
              return '';
            }, t.prototype.isActive = function (e) {
              return !!this.getListNode(e);
            }, t.prototype.isDisabled = function (t) {
              return null == t.selection || !!e.DomEditor.getSelectedElems(t)
                .some((function (e) {
                  if (r.Editor.isVoid(t, e) && r.Editor.isBlock(t, e)) return !0;
                  var n = e.type;
                  return !!['pre', 'code', 'table'].includes(n) || void 0;
                }));
            }, t.prototype.getMatchListType = function (t) {
              var n = Lr(r.Editor.nodes(t, {
                  match: function (e) {
                    return Xt(e);
                  },
                  universal: !0
                }), 1),
                o = n[0];
              if (null == o) return '';
              var i = Lr(o, 1)[0];
              return e.DomEditor.getNodeType(i);
            }, t.prototype.exec = function (e, t) {
              var n = this.type,
                o = this.isActive(e);
              r.Transforms.unwrapNodes(e, {
                match: function (e) {
                  return Xt(e);
                },
                split: !0
              }), r.Transforms.setNodes(e, { type: o ? 'paragraph' : 'list-item' });
              var i = {
                type: n,
                children: []
              };
              o || r.Transforms.wrapNodes(e, i);
              var a = this.getMatchListType(e);
              '' != a && a !== n && r.Transforms.wrapNodes(e, i);
            }, t;
          }(),
          Hr = '<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',
          Vr = '<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',
          Ur = function (t) {
            function n() {
              var n = null !== t && t.apply(this, arguments) || this;
              return n.type = 'bulleted-list', n.title = e.t('listModule.unOrderedList'), n.iconSvg = Hr, n;
            }

            return Mr(n, t), n;
          }($r),
          Wr = function (t) {
            function n() {
              var n = null !== t && t.apply(this, arguments) || this;
              return n.type = 'numbered-list', n.title = e.t('listModule.orderedList'), n.iconSvg = Vr, n;
            }

            return Mr(n, t), n;
          }($r),
          Gr = {
            key: 'bulletedList',
            factory: function () {
              return new Ur;
            }
          },
          qr = {
            key: 'numberedList',
            factory: function () {
              return new Wr;
            }
          },
          Kr = /"/g,
          Yr = C(''.replace);
        Nt({
          target: 'String',
          proto: !0,
          forced: (zr = 'anchor', p((function () {
            var e = ''[zr]('"');
            return e !== e.toLowerCase() || e.split('"').length > 3;
          })))
        }, {
          anchor: function (e) {
            return t = 'a', n = 'name', r = e, o = Nn(P(this)), i = '<' + t, '' !== n && (i += ' ' + n + '="' + Yr(Nn(r), Kr, '&quot;') + '"'), i + '>' + o + '</' + t + '>';
            var t,
              n,
              r,
              o,
              i;
          }
        });
        var Xr = function (e, t, n) {
            var r = De(t);
            r in e ? je.f(e, r, w(0, n)) : e[r] = n;
          },
          Zr = me('isConcatSpreadable'),
          Jr = 9007199254740991,
          Qr = 'Maximum allowed index exceeded',
          eo = d.TypeError,
          to = W >= 51 || !p((function () {
            var e = [];
            return e[Zr] = !1, e.concat()[0] !== e;
          })),
          no = Tn('concat'),
          ro = function (e) {
            if (!I(e)) return !1;
            var t = e[Zr];
            return void 0 !== t ? !!t : un(e);
          };
        return Nt({
          target: 'Array',
          proto: !0,
          forced: !to || !no
        }, {
          concat: function (e) {
            var t,
              n,
              r,
              o,
              i,
              a = ue(this),
              u = Sn(a, 0),
              s = 0;
            for (t = -1, r = arguments.length; t < r; t++) {
              if (ro(i = -1 === t ? a : arguments[t])) {
                if (s + (o = ht(i)) > Jr) throw eo(Qr);
                for (n = 0; n < o; n++, s++) n in i && Xr(u, s, i[n]);
              } else {
                if (s >= Jr) throw eo(Qr);
                Xr(u, s++, i);
              }
            }
            return u.length = s, u;
          }
        }), {
          renderElems: [Jt, Qt, en],
          elemsToHtml: [nn, rn, on],
          parseElemsHtml: [jr, Ir, Nr],
          menus: [Gr, qr],
          editorPlugin: function (t) {
            var n = t.insertBreak,
              o = t.deleteBackward;
            t.insertNode;
            var i = t;
            return i.insertBreak = function () {
              var t = i.selection;
              if (null != t) {
                var o = e.DomEditor.getSelectedNodeByType(i, 'list-item');
                if (null != o) {
                  var a = e.DomEditor.getParentNode(i, o),
                    u = (null == a ? void 0 : a.children) || [];
                  if (o === u[u.length - 1] && '' === r.Node.string(o)) {
                    r.Transforms.removeNodes(i, {
                      match: function (t) {
                        return e.DomEditor.checkNodeType(t, 'list-item');
                      }
                    });
                    var s = [t.anchor.path[0] + 1];
                    return r.Transforms.insertNodes(i, e.DomEditor.genEmptyParagraph(), { at: s }), void i.select({
                      path: s.concat(0),
                      offset: 0
                    });
                  }
                  n();
                } else {
                  n();
                }
              } else {
                n();
              }
            }, i.deleteBackward = function (e) {
              var t = function (e) {
                var t = Lr(r.Editor.nodes(e, {
                  match: function (t) {
                    return e.children[0] === t;
                  },
                  mode: 'highest'
                }), 1)[0];
                if (null == t) return !1;
                var n = t[0];
                return !(!r.Element.isElement(n) || r.Node.string(n) || !Xt(n) || (r.Transforms.unwrapNodes(e, {
                  match: function (e) {
                    return Xt(e);
                  },
                  split: !0
                }), r.Transforms.setNodes(e, { type: 'paragraph' }), 0));
              }(i);
              t || o(e);
            }, i;
          }
        };
      }(BE, TE, OE, kE);
    })),
    eD = r((function (e, n) {
      var r = '__lodash_hash_undefined__',
        o = 9007199254740991,
        i = '[object Arguments]',
        a = '[object Array]',
        u = '[object Boolean]',
        s = '[object Date]',
        l = '[object Error]',
        c = '[object Function]',
        f = '[object Map]',
        d = '[object Number]',
        p = '[object Object]',
        h = '[object Promise]',
        v = '[object RegExp]',
        g = '[object Set]',
        y = '[object String]',
        m = '[object Symbol]',
        b = '[object WeakMap]',
        w = '[object ArrayBuffer]',
        E = '[object DataView]',
        D = /^\[object .+?Constructor\]$/,
        x = /^(?:0|[1-9]\d*)$/,
        S = {};
      S['[object Float32Array]'] = S['[object Float64Array]'] = S['[object Int8Array]'] = S['[object Int16Array]'] = S['[object Int32Array]'] = S['[object Uint8Array]'] = S['[object Uint8ClampedArray]'] = S['[object Uint16Array]'] = S['[object Uint32Array]'] = !0, S[i] = S[a] = S[w] = S[u] = S[E] = S[s] = S[l] = S[c] = S[f] = S[d] = S[p] = S[v] = S[g] = S[y] = S[b] = !1;
      var C = 'object' == typeof t && t && t.Object === Object && t,
        A = 'object' == typeof self && self && self.Object === Object && self,
        O = C || A || Function('return this')(),
        k = n && !n.nodeType && n,
        T = k && e && !e.nodeType && e,
        B = T && T.exports === k,
        F = B && C.process,
        _ = function () {
          try {
            return F && F.binding && F.binding('util');
          } catch (e) {
          }
        }(),
        P = _ && _.isTypedArray;

      function j(e, t) {
        for (var n = -1, r = null == e ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
        return !1;
      }

      function N(e) {
        var t = -1,
          n = Array(e.size);
        return e.forEach((function (e, r) {
          n[++t] = [r, e];
        })), n;
      }

      function I(e) {
        var t = -1,
          n = Array(e.size);
        return e.forEach((function (e) {
          n[++t] = e;
        })), n;
      }

      var R = Array.prototype,
        M = Function.prototype,
        L = Object.prototype,
        z = O['__core-js_shared__'],
        $ = M.toString,
        H = L.hasOwnProperty,
        V = function () {
          var e = /[^.]+$/.exec(z && z.keys && z.keys.IE_PROTO || '');
          return e ? 'Symbol(src)_1.' + e : '';
        }(),
        U = L.toString,
        W = RegExp('^' + $.call(H)
          .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
          .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'),
        G = B ? O.Buffer : void 0,
        q = O.Symbol,
        K = O.Uint8Array,
        Y = L.propertyIsEnumerable,
        X = R.splice,
        Z = q ? q.toStringTag : void 0,
        J = Object.getOwnPropertySymbols,
        Q = G ? G.isBuffer : void 0,
        ee = function (e, t) {
          return function (n) {
            return e(t(n));
          };
        }(Object.keys, Object),
        te = Te(O, 'DataView'),
        ne = Te(O, 'Map'),
        re = Te(O, 'Promise'),
        oe = Te(O, 'Set'),
        ie = Te(O, 'WeakMap'),
        ae = Te(Object, 'create'),
        ue = Pe(te),
        se = Pe(ne),
        le = Pe(re),
        ce = Pe(oe),
        fe = Pe(ie),
        de = q ? q.prototype : void 0,
        pe = de ? de.valueOf : void 0;

      function he(e) {
        var t = -1,
          n = null == e ? 0 : e.length;
        for (this.clear(); ++t < n;) {
          var r = e[t];
          this.set(r[0], r[1]);
        }
      }

      function ve(e) {
        var t = -1,
          n = null == e ? 0 : e.length;
        for (this.clear(); ++t < n;) {
          var r = e[t];
          this.set(r[0], r[1]);
        }
      }

      function ge(e) {
        var t = -1,
          n = null == e ? 0 : e.length;
        for (this.clear(); ++t < n;) {
          var r = e[t];
          this.set(r[0], r[1]);
        }
      }

      function ye(e) {
        var t = -1,
          n = null == e ? 0 : e.length;
        for (this.__data__ = new ge; ++t < n;) this.add(e[t]);
      }

      function me(e) {
        var t = this.__data__ = new ve(e);
        this.size = t.size;
      }

      function be(e, t) {
        var n = Ie(e),
          r = !n && Ne(e),
          o = !n && !r && Re(e),
          i = !n && !r && !o && Ve(e),
          a = n || r || o || i,
          u = a ? function (e, t) {
            for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
            return r;
          }(e.length, String) : [],
          s = u.length;
        for (var l in e) !t && !H.call(e, l) || a && ('length' == l || o && ('offset' == l || 'parent' == l) || i && ('buffer' == l || 'byteLength' == l || 'byteOffset' == l) || _e(l, s)) || u.push(l);
        return u;
      }

      function we(e, t) {
        for (var n = e.length; n--;) if (je(e[n][0], t)) return n;
        return -1;
      }

      function Ee(e) {
        return null == e ? void 0 === e ? '[object Undefined]' : '[object Null]' : Z && Z in Object(e) ? function (e) {
          var t = H.call(e, Z),
            n = e[Z];
          try {
            e[Z] = void 0;
            var r = !0;
          } catch (e) {
          }
          var o = U.call(e);
          r && (t ? e[Z] = n : delete e[Z]);
          return o;
        }(e) : function (e) {
          return U.call(e);
        }(e);
      }

      function De(e) {
        return $e(e) && Ee(e) == i;
      }

      function xe(e, t, n, r, o) {
        return e === t || (null == e || null == t || !$e(e) && !$e(t) ? e != e && t != t : function (e, t, n, r, o, c) {
          var h = Ie(e),
            b = Ie(t),
            D = h ? a : Fe(e),
            x = b ? a : Fe(t),
            S = (D = D == i ? p : D) == p,
            C = (x = x == i ? p : x) == p,
            A = D == x;
          if (A && Re(e)) {
            if (!Re(t)) return !1;
            h = !0, S = !1;
          }
          if (A && !S) {
            return c || (c = new me), h || Ve(e) ? Ae(e, t, n, r, o, c) : function (e, t, n, r, o, i, a) {
              switch (n) {
                case E:
                  if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
                  e = e.buffer, t = t.buffer;
                case w:
                  return !(e.byteLength != t.byteLength || !i(new K(e), new K(t)));
                case u:
                case s:
                case d:
                  return je(+e, +t);
                case l:
                  return e.name == t.name && e.message == t.message;
                case v:
                case y:
                  return e == t + '';
                case f:
                  var c = N;
                case g:
                  var p = 1 & r;
                  if (c || (c = I), e.size != t.size && !p) return !1;
                  var h = a.get(e);
                  if (h) return h == t;
                  r |= 2, a.set(e, t);
                  var b = Ae(c(e), c(t), r, o, i, a);
                  return a.delete(e), b;
                case m:
                  if (pe) return pe.call(e) == pe.call(t);
              }
              return !1;
            }(e, t, D, n, r, o, c);
          }
          if (!(1 & n)) {
            var O = S && H.call(e, '__wrapped__'),
              k = C && H.call(t, '__wrapped__');
            if (O || k) {
              var T = O ? e.value() : e,
                B = k ? t.value() : t;
              return c || (c = new me), o(T, B, n, r, c);
            }
          }
          if (!A) return !1;
          return c || (c = new me), function (e, t, n, r, o, i) {
            var a = 1 & n,
              u = Oe(e),
              s = u.length,
              l = Oe(t).length;
            if (s != l && !a) return !1;
            var c = s;
            for (; c--;) {
              var f = u[c];
              if (!(a ? f in t : H.call(t, f))) return !1;
            }
            var d = i.get(e);
            if (d && i.get(t)) return d == t;
            var p = !0;
            i.set(e, t), i.set(t, e);
            var h = a;
            for (; ++c < s;) {
              var v = e[f = u[c]],
                g = t[f];
              if (r) var y = a ? r(g, v, f, t, e, i) : r(v, g, f, e, t, i);
              if (!(void 0 === y ? v === g || o(v, g, n, r, i) : y)) {
                p = !1;
                break;
              }
              h || (h = 'constructor' == f);
            }
            if (p && !h) {
              var m = e.constructor,
                b = t.constructor;
              m == b || !('constructor' in e) || !('constructor' in t) || 'function' == typeof m && m instanceof m && 'function' == typeof b && b instanceof b || (p = !1);
            }
            return i.delete(e), i.delete(t), p;
          }(e, t, n, r, o, c);
        }(e, t, n, r, xe, o));
      }

      function Se(e) {
        return !(!ze(e) || (t = e, V && V in t)) && (Me(e) ? W : D).test(Pe(e));
        var t;
      }

      function Ce(e) {
        if (!function (e) {
          var t = e && e.constructor,
            n = 'function' == typeof t && t.prototype || L;
          return e === n;
        }(e)) {
          return ee(e);
        }
        var t = [];
        for (var n in Object(e)) H.call(e, n) && 'constructor' != n && t.push(n);
        return t;
      }

      function Ae(e, t, n, r, o, i) {
        var a = 1 & n,
          u = e.length,
          s = t.length;
        if (u != s && !(a && s > u)) return !1;
        var l = i.get(e);
        if (l && i.get(t)) return l == t;
        var c = -1,
          f = !0,
          d = 2 & n ? new ye : void 0;
        for (i.set(e, t), i.set(t, e); ++c < u;) {
          var p = e[c],
            h = t[c];
          if (r) var v = a ? r(h, p, c, t, e, i) : r(p, h, c, e, t, i);
          if (void 0 !== v) {
            if (v) continue;
            f = !1;
            break;
          }
          if (d) {
            if (!j(t, (function (e, t) {
              if (a = t, !d.has(a) && (p === e || o(p, e, n, r, i))) return d.push(t);
              var a;
            }))) {
              f = !1;
              break;
            }
          } else if (p !== h && !o(p, h, n, r, i)) {
            f = !1;
            break;
          }
        }
        return i.delete(e), i.delete(t), f;
      }

      function Oe(e) {
        return function (e, t, n) {
          var r = t(e);
          return Ie(e) ? r : function (e, t) {
            for (var n = -1, r = t.length, o = e.length; ++n < r;) e[o + n] = t[n];
            return e;
          }(r, n(e));
        }(e, Ue, Be);
      }

      function ke(e, t) {
        var n = e.__data__;
        return function (e) {
          var t = typeof e;
          return 'string' == t || 'number' == t || 'symbol' == t || 'boolean' == t ? '__proto__' !== e : null === e;
        }(t) ? n['string' == typeof t ? 'string' : 'hash'] : n.map;
      }

      function Te(e, t) {
        var n = function (e, t) {
          return null == e ? void 0 : e[t];
        }(e, t);
        return Se(n) ? n : void 0;
      }

      he.prototype.clear = function () {
        this.__data__ = ae ? ae(null) : {}, this.size = 0;
      }, he.prototype.delete = function (e) {
        var t = this.has(e) && delete this.__data__[e];
        return this.size -= t ? 1 : 0, t;
      }, he.prototype.get = function (e) {
        var t = this.__data__;
        if (ae) {
          var n = t[e];
          return n === r ? void 0 : n;
        }
        return H.call(t, e) ? t[e] : void 0;
      }, he.prototype.has = function (e) {
        var t = this.__data__;
        return ae ? void 0 !== t[e] : H.call(t, e);
      }, he.prototype.set = function (e, t) {
        var n = this.__data__;
        return this.size += this.has(e) ? 0 : 1, n[e] = ae && void 0 === t ? r : t, this;
      }, ve.prototype.clear = function () {
        this.__data__ = [], this.size = 0;
      }, ve.prototype.delete = function (e) {
        var t = this.__data__,
          n = we(t, e);
        return !(n < 0) && (n == t.length - 1 ? t.pop() : X.call(t, n, 1), --this.size, !0);
      }, ve.prototype.get = function (e) {
        var t = this.__data__,
          n = we(t, e);
        return n < 0 ? void 0 : t[n][1];
      }, ve.prototype.has = function (e) {
        return we(this.__data__, e) > -1;
      }, ve.prototype.set = function (e, t) {
        var n = this.__data__,
          r = we(n, e);
        return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
      }, ge.prototype.clear = function () {
        this.size = 0, this.__data__ = {
          hash: new he,
          map: new (ne || ve),
          string: new he
        };
      }, ge.prototype.delete = function (e) {
        var t = ke(this, e)
          .delete(e);
        return this.size -= t ? 1 : 0, t;
      }, ge.prototype.get = function (e) {
        return ke(this, e)
          .get(e);
      }, ge.prototype.has = function (e) {
        return ke(this, e)
          .has(e);
      }, ge.prototype.set = function (e, t) {
        var n = ke(this, e),
          r = n.size;
        return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
      }, ye.prototype.add = ye.prototype.push = function (e) {
        return this.__data__.set(e, r), this;
      }, ye.prototype.has = function (e) {
        return this.__data__.has(e);
      }, me.prototype.clear = function () {
        this.__data__ = new ve, this.size = 0;
      }, me.prototype.delete = function (e) {
        var t = this.__data__,
          n = t.delete(e);
        return this.size = t.size, n;
      }, me.prototype.get = function (e) {
        return this.__data__.get(e);
      }, me.prototype.has = function (e) {
        return this.__data__.has(e);
      }, me.prototype.set = function (e, t) {
        var n = this.__data__;
        if (n instanceof ve) {
          var r = n.__data__;
          if (!ne || r.length < 199) return r.push([e, t]), this.size = ++n.size, this;
          n = this.__data__ = new ge(r);
        }
        return n.set(e, t), this.size = n.size, this;
      };
      var Be = J ? function (e) {
          return null == e ? [] : (e = Object(e), function (e, t) {
            for (var n = -1, r = null == e ? 0 : e.length, o = 0, i = []; ++n < r;) {
              var a = e[n];
              t(a, n, e) && (i[o++] = a);
            }
            return i;
          }(J(e), (function (t) {
            return Y.call(e, t);
          })));
        } : function () {
          return [];
        },
        Fe = Ee;

      function _e(e, t) {
        return !!(t = null == t ? o : t) && ('number' == typeof e || x.test(e)) && e > -1 && e % 1 == 0 && e < t;
      }

      function Pe(e) {
        if (null != e) {
          try {
            return $.call(e);
          } catch (e) {
          }
          try {
            return e + '';
          } catch (e) {
          }
        }
        return '';
      }

      function je(e, t) {
        return e === t || e != e && t != t;
      }

      (te && Fe(new te(new ArrayBuffer(1))) != E || ne && Fe(new ne) != f || re && Fe(re.resolve()) != h || oe && Fe(new oe) != g || ie && Fe(new ie) != b) && (Fe = function (e) {
        var t = Ee(e),
          n = t == p ? e.constructor : void 0,
          r = n ? Pe(n) : '';
        if (r) {
          switch (r) {
            case ue:
              return E;
            case se:
              return f;
            case le:
              return h;
            case ce:
              return g;
            case fe:
              return b;
          }
        }
        return t;
      });
      var Ne = De(function () {
          return arguments;
        }()) ? De : function (e) {
          return $e(e) && H.call(e, 'callee') && !Y.call(e, 'callee');
        },
        Ie = Array.isArray;
      var Re = Q || function () {
        return !1;
      };

      function Me(e) {
        if (!ze(e)) return !1;
        var t = Ee(e);
        return t == c || '[object GeneratorFunction]' == t || '[object AsyncFunction]' == t || '[object Proxy]' == t;
      }

      function Le(e) {
        return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= o;
      }

      function ze(e) {
        var t = typeof e;
        return null != e && ('object' == t || 'function' == t);
      }

      function $e(e) {
        return null != e && 'object' == typeof e;
      }

      var He,
        Ve = P ? (He = P, function (e) {
          return He(e);
        }) : function (e) {
          return $e(e) && Le(e.length) && !!S[Ee(e)];
        };

      function Ue(e) {
        return function (e) {
          return null != e && Le(e.length) && !Me(e);
        }(e) ? be(e) : Ce(e);
      }

      e.exports = function (e, t) {
        return xe(e, t);
      };
    })),
    tD = r((function (e, n) {
      e.exports = function (e, n, r, o, i, a, u) {
        function s(e) {
          return e && 'object' == typeof e && 'default' in e ? e : { default: e };
        }

        var l = s(o),
          c = s(i),
          f = s(u);
        e.i18nAddResources('en', {
          tableModule: {
            deleteCol: 'Delete column',
            deleteRow: 'Delete row',
            deleteTable: 'Delete table',
            widthAuto: 'Width auto',
            insertCol: 'Insert column',
            insertRow: 'Insert row',
            insertTable: 'Insert table',
            header: 'Header'
          }
        }), e.i18nAddResources('zh-CN', {
          tableModule: {
            deleteCol: '删除列',
            deleteRow: '删除行',
            deleteTable: '删除表格',
            widthAuto: '宽度自适应',
            insertCol: '插入列',
            insertRow: '插入行',
            insertTable: '插入表格',
            header: '表头'
          }
        });
        var d = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof window ? window : void 0 !== t ? t : 'undefined' != typeof self ? self : {};

        function p(e) {
          var t = { exports: {} };
          return e(t, t.exports), t.exports;
        }

        var h,
          v,
          g = function (e) {
            return e && e.Math == Math && e;
          },
          y = g('object' == typeof globalThis && globalThis) || g('object' == typeof window && window) || g('object' == typeof self && self) || g('object' == typeof d && d) || function () {
            return this;
          }() || Function('return this')(),
          m = function (e) {
            try {
              return !!e();
            } catch (e) {
              return !0;
            }
          },
          b = !m((function () {
            return 7 != Object.defineProperty({}, 1, {
              get: function () {
                return 7;
              }
            })[1];
          })),
          w = Function.prototype.call,
          E = w.bind ? w.bind(w) : function () {
            return w.apply(w, arguments);
          },
          D = {}.propertyIsEnumerable,
          x = Object.getOwnPropertyDescriptor,
          S = {
            f: x && !D.call({ 1: 2 }, 1) ? function (e) {
              var t = x(this, e);
              return !!t && t.enumerable;
            } : D
          },
          C = function (e, t) {
            return {
              enumerable: !(1 & e),
              configurable: !(2 & e),
              writable: !(4 & e),
              value: t
            };
          },
          A = Function.prototype,
          O = A.bind,
          k = A.call,
          T = O && O.bind(k),
          B = O ? function (e) {
            return e && T(k, e);
          } : function (e) {
            return e && function () {
              return k.apply(e, arguments);
            };
          },
          F = B({}.toString),
          _ = B(''.slice),
          P = function (e) {
            return _(F(e), 8, -1);
          },
          j = y.Object,
          N = B(''.split),
          I = m((function () {
            return !j('z')
              .propertyIsEnumerable(0);
          })) ? function (e) {
            return 'String' == P(e) ? N(e, '') : j(e);
          } : j,
          R = y.TypeError,
          M = function (e) {
            if (null == e) throw R('Can\'t call method on ' + e);
            return e;
          },
          L = function (e) {
            return I(M(e));
          },
          z = function (e) {
            return 'function' == typeof e;
          },
          $ = function (e) {
            return 'object' == typeof e ? null !== e : z(e);
          },
          H = function (e) {
            return z(e) ? e : void 0;
          },
          V = function (e, t) {
            return arguments.length < 2 ? H(y[e]) : y[e] && y[e][t];
          },
          U = B({}.isPrototypeOf),
          W = V('navigator', 'userAgent') || '',
          G = y.process,
          q = y.Deno,
          K = G && G.versions || q && q.version,
          Y = K && K.v8;
        Y && (v = (h = Y.split('.'))[0] > 0 && h[0] < 4 ? 1 : +(h[0] + h[1])), !v && W && (!(h = W.match(/Edge\/(\d+)/)) || h[1] >= 74) && (h = W.match(/Chrome\/(\d+)/)) && (v = +h[1]);
        var X = v,
          Z = !!Object.getOwnPropertySymbols && !m((function () {
            var e = Symbol();
            return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && X && X < 41;
          })),
          J = Z && !Symbol.sham && 'symbol' == typeof Symbol.iterator,
          Q = y.Object,
          ee = J ? function (e) {
            return 'symbol' == typeof e;
          } : function (e) {
            var t = V('Symbol');
            return z(t) && U(t.prototype, Q(e));
          },
          te = y.String,
          ne = function (e) {
            try {
              return te(e);
            } catch (e) {
              return 'Object';
            }
          },
          re = y.TypeError,
          oe = function (e) {
            if (z(e)) return e;
            throw re(ne(e) + ' is not a function');
          },
          ie = function (e, t) {
            var n = e[t];
            return null == n ? void 0 : oe(n);
          },
          ae = y.TypeError,
          ue = Object.defineProperty,
          se = function (e, t) {
            try {
              ue(y, e, {
                value: t,
                configurable: !0,
                writable: !0
              });
            } catch (n) {
              y[e] = t;
            }
            return t;
          },
          le = '__core-js_shared__',
          ce = y[le] || se(le, {}),
          fe = p((function (e) {
            (e.exports = function (e, t) {
              return ce[e] || (ce[e] = void 0 !== t ? t : {});
            })('versions', [])
              .push({
                version: '3.19.3',
                mode: 'global',
                copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
              });
          })),
          de = y.Object,
          pe = function (e) {
            return de(M(e));
          },
          he = B({}.hasOwnProperty),
          ve = Object.hasOwn || function (e, t) {
            return he(pe(e), t);
          },
          ge = 0,
          ye = Math.random(),
          me = B(1..toString),
          be = function (e) {
            return 'Symbol(' + (void 0 === e ? '' : e) + ')_' + me(++ge + ye, 36);
          },
          we = fe('wks'),
          Ee = y.Symbol,
          De = Ee && Ee.for,
          xe = J ? Ee : Ee && Ee.withoutSetter || be,
          Se = function (e) {
            if (!ve(we, e) || !Z && 'string' != typeof we[e]) {
              var t = 'Symbol.' + e;
              Z && ve(Ee, e) ? we[e] = Ee[e] : we[e] = J && De ? De(t) : xe(t);
            }
            return we[e];
          },
          Ce = y.TypeError,
          Ae = Se('toPrimitive'),
          Oe = function (e, t) {
            if (!$(e) || ee(e)) return e;
            var n,
              r = ie(e, Ae);
            if (r) {
              if (void 0 === t && (t = 'default'), n = E(r, e, t), !$(n) || ee(n)) return n;
              throw Ce('Can\'t convert object to primitive value');
            }
            return void 0 === t && (t = 'number'), function (e, t) {
              var n,
                r;
              if ('string' === t && z(n = e.toString) && !$(r = E(n, e))) return r;
              if (z(n = e.valueOf) && !$(r = E(n, e))) return r;
              if ('string' !== t && z(n = e.toString) && !$(r = E(n, e))) return r;
              throw ae('Can\'t convert object to primitive value');
            }(e, t);
          },
          ke = function (e) {
            var t = Oe(e, 'string');
            return ee(t) ? t : t + '';
          },
          Te = y.document,
          Be = $(Te) && $(Te.createElement),
          Fe = function (e) {
            return Be ? Te.createElement(e) : {};
          },
          _e = !b && !m((function () {
            return 7 != Object.defineProperty(Fe('div'), 'a', {
              get: function () {
                return 7;
              }
            }).a;
          })),
          Pe = Object.getOwnPropertyDescriptor,
          je = {
            f: b ? Pe : function (e, t) {
              if (e = L(e), t = ke(t), _e) {
                try {
                  return Pe(e, t);
                } catch (e) {
                }
              }
              if (ve(e, t)) return C(!E(S.f, e, t), e[t]);
            }
          },
          Ne = y.String,
          Ie = y.TypeError,
          Re = function (e) {
            if ($(e)) return e;
            throw Ie(Ne(e) + ' is not an object');
          },
          Me = y.TypeError,
          Le = Object.defineProperty,
          ze = {
            f: b ? Le : function (e, t, n) {
              if (Re(e), t = ke(t), Re(n), _e) {
                try {
                  return Le(e, t, n);
                } catch (e) {
                }
              }
              if ('get' in n || 'set' in n) throw Me('Accessors not supported');
              return 'value' in n && (e[t] = n.value), e;
            }
          },
          $e = b ? function (e, t, n) {
            return ze.f(e, t, C(1, n));
          } : function (e, t, n) {
            return e[t] = n, e;
          },
          He = B(Function.toString);
        z(ce.inspectSource) || (ce.inspectSource = function (e) {
          return He(e);
        });
        var Ve,
          Ue,
          We,
          Ge = ce.inspectSource,
          qe = y.WeakMap,
          Ke = z(qe) && /native code/.test(Ge(qe)),
          Ye = fe('keys'),
          Xe = function (e) {
            return Ye[e] || (Ye[e] = be(e));
          },
          Ze = {},
          Je = 'Object already initialized',
          Qe = y.TypeError,
          et = y.WeakMap;
        if (Ke || ce.state) {
          var tt = ce.state || (ce.state = new et),
            nt = B(tt.get),
            rt = B(tt.has),
            ot = B(tt.set);
          Ve = function (e, t) {
            if (rt(tt, e)) throw new Qe(Je);
            return t.facade = e, ot(tt, e, t), t;
          }, Ue = function (e) {
            return nt(tt, e) || {};
          }, We = function (e) {
            return rt(tt, e);
          };
        } else {
          var it = Xe('state');
          Ze[it] = !0, Ve = function (e, t) {
            if (ve(e, it)) throw new Qe(Je);
            return t.facade = e, $e(e, it, t), t;
          }, Ue = function (e) {
            return ve(e, it) ? e[it] : {};
          }, We = function (e) {
            return ve(e, it);
          };
        }
        var at = {
            set: Ve,
            get: Ue,
            has: We,
            enforce: function (e) {
              return We(e) ? Ue(e) : Ve(e, {});
            },
            getterFor: function (e) {
              return function (t) {
                var n;
                if (!$(t) || (n = Ue(t)).type !== e) throw Qe('Incompatible receiver, ' + e + ' required');
                return n;
              };
            }
          },
          ut = Function.prototype,
          st = b && Object.getOwnPropertyDescriptor,
          lt = ve(ut, 'name'),
          ct = {
            EXISTS: lt,
            PROPER: lt && 'something' === function () {
            }.name,
            CONFIGURABLE: lt && (!b || b && st(ut, 'name').configurable)
          },
          ft = p((function (e) {
            var t = ct.CONFIGURABLE,
              n = at.get,
              r = at.enforce,
              o = String(String)
                .split('String');
            (e.exports = function (e, n, i, a) {
              var u,
                s = !!a && !!a.unsafe,
                l = !!a && !!a.enumerable,
                c = !!a && !!a.noTargetGet,
                f = a && void 0 !== a.name ? a.name : n;
              z(i) && ('Symbol(' === String(f)
                .slice(0, 7) && (f = '[' + String(f)
                .replace(/^Symbol\(([^)]*)\)/, '$1') + ']'), (!ve(i, 'name') || t && i.name !== f) && $e(i, 'name', f), (u = r(i)).source || (u.source = o.join('string' == typeof f ? f : ''))), e !== y ? (s ? !c && e[n] && (l = !0) : delete e[n], l ? e[n] = i : $e(e, n, i)) : l ? e[n] = i : se(n, i);
            })(Function.prototype, 'toString', (function () {
              return z(this) && n(this).source || Ge(this);
            }));
          })),
          dt = Math.ceil,
          pt = Math.floor,
          ht = function (e) {
            var t = +e;
            return t != t || 0 === t ? 0 : (t > 0 ? pt : dt)(t);
          },
          vt = Math.max,
          gt = Math.min,
          yt = function (e, t) {
            var n = ht(e);
            return n < 0 ? vt(n + t, 0) : gt(n, t);
          },
          mt = Math.min,
          bt = function (e) {
            return e > 0 ? mt(ht(e), 9007199254740991) : 0;
          },
          wt = function (e) {
            return bt(e.length);
          },
          Et = function (e) {
            return function (t, n, r) {
              var o,
                i = L(t),
                a = wt(i),
                u = yt(r, a);
              if (e && n != n) {
                for (; a > u;) if ((o = i[u++]) != o) return !0;
              } else {
                for (; a > u; u++) if ((e || u in i) && i[u] === n) return e || u || 0;
              }
              return !e && -1;
            };
          },
          Dt = (Et(!0), Et(!1)),
          xt = B([].push),
          St = function (e, t) {
            var n,
              r = L(e),
              o = 0,
              i = [];
            for (n in r) !ve(Ze, n) && ve(r, n) && xt(i, n);
            for (; t.length > o;) ve(r, n = t[o++]) && (~Dt(i, n) || xt(i, n));
            return i;
          },
          Ct = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'],
          At = Ct.concat('length', 'prototype'),
          Ot = {
            f: Object.getOwnPropertyNames || function (e) {
              return St(e, At);
            }
          },
          kt = { f: Object.getOwnPropertySymbols },
          Tt = B([].concat),
          Bt = V('Reflect', 'ownKeys') || function (e) {
            var t = Ot.f(Re(e)),
              n = kt.f;
            return n ? Tt(t, n(e)) : t;
          },
          Ft = function (e, t) {
            for (var n = Bt(t), r = ze.f, o = je.f, i = 0; i < n.length; i++) {
              var a = n[i];
              ve(e, a) || r(e, a, o(t, a));
            }
          },
          _t = /#|\.prototype\./,
          Pt = function (e, t) {
            var n = Nt[jt(e)];
            return n == Rt || n != It && (z(t) ? m(t) : !!t);
          },
          jt = Pt.normalize = function (e) {
            return String(e)
              .replace(_t, '.')
              .toLowerCase();
          },
          Nt = Pt.data = {},
          It = Pt.NATIVE = 'N',
          Rt = Pt.POLYFILL = 'P',
          Mt = Pt,
          Lt = je.f,
          zt = function (e, t) {
            var n,
              r,
              o,
              i,
              a,
              u = e.target,
              s = e.global,
              l = e.stat;
            if (n = s ? y : l ? y[u] || se(u, {}) : (y[u] || {}).prototype) {
              for (r in t) {
                if (i = t[r], o = e.noTargetGet ? (a = Lt(n, r)) && a.value : n[r], !Mt(s ? r : u + (l ? '.' : '#') + r, e.forced) && void 0 !== o) {
                  if (typeof i == typeof o) continue;
                  Ft(i, o);
                }
                (e.sham || o && o.sham) && $e(i, 'sham', !0), ft(n, r, i, e);
              }
            }
          },
          $t = {};
        $t[Se('toStringTag')] = 'z';
        var Ht,
          Vt = '[object z]' === String($t),
          Ut = Se('toStringTag'),
          Wt = y.Object,
          Gt = 'Arguments' == P(function () {
            return arguments;
          }()),
          qt = Vt ? P : function (e) {
            var t,
              n,
              r;
            return void 0 === e ? 'Undefined' : null === e ? 'Null' : 'string' == typeof (n = function (e, t) {
              try {
                return e[t];
              } catch (e) {
              }
            }(t = Wt(e), Ut)) ? n : Gt ? P(t) : 'Object' == (r = P(t)) && z(t.callee) ? 'Arguments' : r;
          },
          Kt = y.String,
          Yt = function (e) {
            if ('Symbol' === qt(e)) throw TypeError('Cannot convert a Symbol value to a string');
            return Kt(e);
          },
          Xt = /"/g,
          Zt = B(''.replace);
        zt({
          target: 'String',
          proto: !0,
          forced: (Ht = 'anchor', m((function () {
            var e = ''[Ht]('"');
            return e !== e.toLowerCase() || e.split('"').length > 3;
          })))
        }, {
          anchor: function (e) {
            return t = 'a', n = 'name', r = e, o = Yt(M(this)), i = '<' + t, '' !== n && (i += ' ' + n + '="' + Zt(Yt(r), Xt, '&quot;') + '"'), i + '>' + o + '</' + t + '>';
            var t,
              n,
              r,
              o,
              i;
          }
        });
        var Jt,
          Qt = function () {
            var e = Re(this),
              t = '';
            return e.global && (t += 'g'), e.ignoreCase && (t += 'i'), e.multiline && (t += 'm'), e.dotAll && (t += 's'), e.unicode && (t += 'u'), e.sticky && (t += 'y'), t;
          },
          en = y.RegExp,
          tn = m((function () {
            var e = en('a', 'y');
            return e.lastIndex = 2, null != e.exec('abcd');
          })),
          nn = tn || m((function () {
            return !en('a', 'y').sticky;
          })),
          rn = {
            BROKEN_CARET: tn || m((function () {
              var e = en('^r', 'gy');
              return e.lastIndex = 2, null != e.exec('str');
            })),
            MISSED_STICKY: nn,
            UNSUPPORTED_Y: tn
          },
          on = Object.keys || function (e) {
            return St(e, Ct);
          },
          an = b ? Object.defineProperties : function (e, t) {
            Re(e);
            for (var n, r = L(t), o = on(t), i = o.length, a = 0; i > a;) ze.f(e, n = o[a++], r[n]);
            return e;
          },
          un = V('document', 'documentElement'),
          sn = Xe('IE_PROTO'),
          ln = function () {
          },
          cn = function (e) {
            return '<script>' + e + '<\/script>';
          },
          fn = function (e) {
            e.write(cn('')), e.close();
            var t = e.parentWindow.Object;
            return e = null, t;
          },
          dn = function () {
            try {
              Jt = new ActiveXObject('htmlfile');
            } catch (e) {
            }
            var e,
              t;
            dn = 'undefined' != typeof document ? document.domain && Jt ? fn(Jt) : ((t = Fe('iframe')).style.display = 'none', un.appendChild(t), t.src = String('javascript:'), (e = t.contentWindow.document).open(), e.write(cn('document.F=Object')), e.close(), e.F) : fn(Jt);
            for (var n = Ct.length; n--;) delete dn.prototype[Ct[n]];
            return dn();
          };
        Ze[sn] = !0;
        var pn,
          hn,
          vn = Object.create || function (e, t) {
            var n;
            return null !== e ? (ln.prototype = Re(e), n = new ln, ln.prototype = null, n[sn] = e) : n = dn(), void 0 === t ? n : an(n, t);
          },
          gn = y.RegExp,
          yn = m((function () {
            var e = gn('.', 's');
            return !(e.dotAll && e.exec('\n') && 's' === e.flags);
          })),
          mn = y.RegExp,
          bn = m((function () {
            var e = mn('(?<a>b)', 'g');
            return 'b' !== e.exec('b').groups.a || 'bc' !== 'b'.replace(e, '$<a>c');
          })),
          wn = at.get,
          En = fe('native-string-replace', String.prototype.replace),
          Dn = RegExp.prototype.exec,
          xn = Dn,
          Sn = B(''.charAt),
          Cn = B(''.indexOf),
          An = B(''.replace),
          On = B(''.slice),
          kn = (hn = /b*/g, E(Dn, pn = /a/, 'a'), E(Dn, hn, 'a'), 0 !== pn.lastIndex || 0 !== hn.lastIndex),
          Tn = rn.BROKEN_CARET,
          Bn = void 0 !== /()??/.exec('')[1];
        (kn || Bn || Tn || yn || bn) && (xn = function (e) {
          var t,
            n,
            r,
            o,
            i,
            a,
            u,
            s = this,
            l = wn(s),
            c = Yt(e),
            f = l.raw;
          if (f) return f.lastIndex = s.lastIndex, t = E(xn, f, c), s.lastIndex = f.lastIndex, t;
          var d = l.groups,
            p = Tn && s.sticky,
            h = E(Qt, s),
            v = s.source,
            g = 0,
            y = c;
          if (p && (h = An(h, 'y', ''), -1 === Cn(h, 'g') && (h += 'g'), y = On(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && '\n' !== Sn(c, s.lastIndex - 1)) && (v = '(?: ' + v + ')', y = ' ' + y, g++), n = new RegExp('^(?:' + v + ')', h)), Bn && (n = new RegExp('^' + v + '$(?!\\s)', h)), kn && (r = s.lastIndex), o = E(Dn, p ? n : s, y), p ? o ? (o.input = On(o.input, g), o[0] = On(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : kn && o && (s.lastIndex = s.global ? o.index + o[0].length : r), Bn && o && o.length > 1 && E(En, o[0], n, (function () {
            for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (o[i] = void 0);
          })), o && d) {
            for (o.groups = a = vn(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
          }
          return o;
        });
        var Fn = xn;
        zt({
          target: 'RegExp',
          proto: !0,
          forced: /./.exec !== Fn
        }, { exec: Fn });
        var _n = Array.isArray || function (e) {
            return 'Array' == P(e);
          },
          Pn = function () {
          },
          jn = [],
          Nn = V('Reflect', 'construct'),
          In = /^\s*(?:class|function)\b/,
          Rn = B(In.exec),
          Mn = !In.exec(Pn),
          Ln = function (e) {
            if (!z(e)) return !1;
            try {
              return Nn(Pn, jn, e), !0;
            } catch (e) {
              return !1;
            }
          },
          zn = !Nn || m((function () {
            var e;
            return Ln(Ln.call) || !Ln(Object) || !Ln((function () {
              e = !0;
            })) || e;
          })) ? function (e) {
            if (!z(e)) return !1;
            switch (qt(e)) {
              case'AsyncFunction':
              case'GeneratorFunction':
              case'AsyncGeneratorFunction':
                return !1;
            }
            return Mn || !!Rn(In, Ge(e));
          } : Ln,
          $n = function (e, t, n) {
            var r = ke(t);
            r in e ? ze.f(e, r, C(0, n)) : e[r] = n;
          },
          Hn = Se('species'),
          Vn = function (e) {
            return X >= 51 || !m((function () {
              var t = [];
              return (t.constructor = {})[Hn] = function () {
                return { foo: 1 };
              }, 1 !== t[e](Boolean).foo;
            }));
          },
          Un = B([].slice),
          Wn = Vn('slice'),
          Gn = Se('species'),
          qn = y.Array,
          Kn = Math.max;

        function Yn(e, t) {
          var n = 'function' == typeof Symbol && e[Symbol.iterator];
          if (!n) return e;
          var r,
            o,
            i = n.call(e),
            a = [];
          try {
            for (; (void 0 === t || t-- > 0) && !(r = i.next()).done;) a.push(r.value);
          } catch (e) {
            o = { error: e };
          } finally {
            try {
              r && !r.done && (n = i.return) && n.call(i);
            } finally {
              if (o) throw o.error;
            }
          }
          return a;
        }

        function Xn(t) {
          var r = t.selection;
          if (null == r) return !1;
          var o = Yn(n.Editor.nodes(t, {
            match: function (t) {
              return e.DomEditor.checkNodeType(t, 'table-cell');
            }
          }), 1)[0];
          if (o) {
            var i = Yn(o, 2)[1],
              a = n.Editor.start(t, i);
            if (n.Point.equals(r.anchor, a)) return !0;
          }
          return !1;
        }

        function Zn(t, r) {
          var o,
            i,
            a = n.Editor.nodes(t, {
              at: r,
              match: function (t) {
                return 'table' === e.DomEditor.getNodeType(t);
              }
            }),
            u = !1;
          try {
            for (var s =
              /*! *****************************************************************************
        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.
        ***************************************************************************** */
              function (e) {
                var t = 'function' == typeof Symbol && Symbol.iterator,
                  n = t && e[t],
                  r = 0;
                if (n) return n.call(e);
                if (e && 'number' == typeof e.length) {
                  return {
                    next: function () {
                      return e && r >= e.length && (e = void 0), {
                        value: e && e[r++],
                        done: !e
                      };
                    }
                  };
                }
                throw new TypeError(t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.');
              }(a), l = s.next(); !l.done; l = s.next()) {
              l.value, u = !0;
            }
          } catch (e) {
            o = { error: e };
          } finally {
            try {
              l && !l.done && (i = s.return) && i.call(s);
            } finally {
              if (o) throw o.error;
            }
          }
          return u;
        }

        zt({
          target: 'Array',
          proto: !0,
          forced: !Wn
        }, {
          slice: function (e, t) {
            var n,
              r,
              o,
              i = L(this),
              a = wt(i),
              u = yt(e, a),
              s = yt(void 0 === t ? a : t, a);
            if (_n(i) && (n = i.constructor, (zn(n) && (n === qn || _n(n.prototype)) || $(n) && null === (n = n[Gn])) && (n = void 0), n === qn || void 0 === n)) return Un(i, u, s);
            for (r = new (void 0 === n ? qn : n)(Kn(s - u, 0)), o = 0; u < s; u++, o++) u in i && $n(r, o, i[u]);
            return r.length = o, r;
          }
        });
        var Jn = B(B.bind),
          Qn = Se('species'),
          er = y.Array,
          tr = function (e, t) {
            return new (function (e) {
              var t;
              return _n(e) && (t = e.constructor, (zn(t) && (t === er || _n(t.prototype)) || $(t) && null === (t = t[Qn])) && (t = void 0)), void 0 === t ? er : t;
            }(e))(0 === t ? 0 : t);
          },
          nr = B([].push),
          rr = function (e) {
            var t = 1 == e,
              n = 2 == e,
              r = 3 == e,
              o = 4 == e,
              i = 6 == e,
              a = 7 == e,
              u = 5 == e || i;
            return function (s, l, c, f) {
              for (var d, p, h = pe(s), v = I(h), g = function (e, t) {
                return oe(e), void 0 === t ? e : Jn ? Jn(e, t) : function () {
                  return e.apply(t, arguments);
                };
              }(l, c), y = wt(v), m = 0, b = f || tr, w = t ? b(s, y) : n || a ? b(s, 0) : void 0; y > m; m++) {
                if ((u || m in v) && (p = g(d = v[m], m, h), e)) {
                  if (t) {
                    w[m] = p;
                  } else if (p) {
                    switch (e) {
                      case 3:
                        return !0;
                      case 5:
                        return d;
                      case 6:
                        return m;
                      case 2:
                        nr(w, d);
                    }
                  } else {
                    switch (e) {
                      case 4:
                        return !1;
                      case 7:
                        nr(w, d);
                    }
                  }
                }
              }
              return i ? -1 : r || o ? o : w;
            };
          },
          or = {
            forEach: rr(0),
            map: rr(1),
            filter: rr(2),
            some: rr(3),
            every: rr(4),
            find: rr(5),
            findIndex: rr(6),
            filterReject: rr(7)
          },
          ir = or.map;
        zt({
          target: 'Array',
          proto: !0,
          forced: !Vn('map')
        }, {
          map: function (e) {
            return ir(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        });
        var ar = Vt ? {}.toString : function () {
          return '[object ' + qt(this) + ']';
        };

        function ur(e) {
          var t = e.children || [];
          return 0 === t.length ? [] : (t[0] || {}).children || [];
        }

        function sr(e) {
          return ur(e)
            .every((function (e) {
              return !!e.isHeader;
            }));
        }

        Vt || ft(Object.prototype, 'toString', ar, { unsafe: !0 });
        var lr = ct.PROPER,
          cr = 'toString',
          fr = RegExp.prototype,
          dr = fr.toString,
          pr = B(Qt),
          hr = m((function () {
            return '/a/b' != dr.call({
              source: 'a',
              flags: 'b'
            });
          })),
          vr = lr && dr.name != cr;
        (hr || vr) && ft(RegExp.prototype, cr, (function () {
          var e = Re(this),
            t = Yt(e.source),
            n = e.flags;
          return '/' + t + '/' + Yt(void 0 === n && U(fr, e) && !('flags' in fr) ? pr(e) : n);
        }), { unsafe: !0 });
        var gr = Se('unscopables'),
          yr = Array.prototype;
        null == yr[gr] && ze.f(yr, gr, {
          configurable: !0,
          value: vn(null)
        });
        var mr,
          br = or.find,
          wr = 'find',
          Er = !0;
        wr in [] && Array(1)
          .find((function () {
            Er = !1;
          })), zt({
          target: 'Array',
          proto: !0,
          forced: Er
        }, {
          find: function (e) {
            return br(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        }), mr = wr, yr[gr][mr] = !0;
        var Dr = Function.prototype,
          xr = Dr.apply,
          Sr = Dr.bind,
          Cr = Dr.call,
          Ar = 'object' == typeof Reflect && Reflect.apply || (Sr ? Cr.bind(xr) : function () {
            return Cr.apply(xr, arguments);
          }),
          Or = Se('species'),
          kr = RegExp.prototype,
          Tr = function (e, t, n, r) {
            var o = Se(e),
              i = !m((function () {
                var t = {};
                return t[o] = function () {
                  return 7;
                }, 7 != ''[e](t);
              })),
              a = i && !m((function () {
                var t = !1,
                  n = /a/;
                return 'split' === e && ((n = {}).constructor = {}, n.constructor[Or] = function () {
                  return n;
                }, n.flags = '', n[o] = /./[o]), n.exec = function () {
                  return t = !0, null;
                }, n[o](''), !t;
              }));
            if (!i || !a || n) {
              var u = B(/./[o]),
                s = t(o, ''[e], (function (e, t, n, r, o) {
                  var a = B(e),
                    s = t.exec;
                  return s === Fn || s === kr.exec ? i && !o ? {
                    done: !0,
                    value: u(t, n, r)
                  } : {
                    done: !0,
                    value: a(n, t, r)
                  } : { done: !1 };
                }));
              ft(String.prototype, e, s[0]), ft(kr, o, s[1]);
            }
            r && $e(kr[o], 'sham', !0);
          },
          Br = Se('match'),
          Fr = y.TypeError,
          _r = Se('species'),
          Pr = function (e, t) {
            var n,
              r = Re(e).constructor;
            return void 0 === r || null == (n = Re(r)[_r]) ? t : function (e) {
              if (zn(e)) return e;
              throw Fr(ne(e) + ' is not a constructor');
            }(n);
          },
          jr = B(''.charAt),
          Nr = B(''.charCodeAt),
          Ir = B(''.slice),
          Rr = function (e) {
            return function (t, n) {
              var r,
                o,
                i = Yt(M(t)),
                a = ht(n),
                u = i.length;
              return a < 0 || a >= u ? e ? '' : void 0 : (r = Nr(i, a)) < 55296 || r > 56319 || a + 1 === u || (o = Nr(i, a + 1)) < 56320 || o > 57343 ? e ? jr(i, a) : r : e ? Ir(i, a, a + 2) : o - 56320 + (r - 55296 << 10) + 65536;
            };
          },
          Mr = (Rr(!1), Rr(!0)),
          Lr = function (e, t, n) {
            return t + (n ? Mr(e, t).length : 1);
          },
          zr = y.Array,
          $r = Math.max,
          Hr = function (e, t, n) {
            for (var r = wt(e), o = yt(t, r), i = yt(void 0 === n ? r : n, r), a = zr($r(i - o, 0)), u = 0; o < i; o++, u++) $n(a, u, e[o]);
            return a.length = u, a;
          },
          Vr = y.TypeError,
          Ur = function (e, t) {
            var n = e.exec;
            if (z(n)) {
              var r = E(n, e, t);
              return null !== r && Re(r), r;
            }
            if ('RegExp' === P(e)) return E(Fn, e, t);
            throw Vr('RegExp#exec called on incompatible receiver');
          },
          Wr = rn.UNSUPPORTED_Y,
          Gr = 4294967295,
          qr = Math.min,
          Kr = [].push,
          Yr = B(/./.exec),
          Xr = B(Kr),
          Zr = B(''.slice),
          Jr = !m((function () {
            var e = /(?:)/,
              t = e.exec;
            e.exec = function () {
              return t.apply(this, arguments);
            };
            var n = 'ab'.split(e);
            return 2 !== n.length || 'a' !== n[0] || 'b' !== n[1];
          }));
        Tr('split', (function (e, t, n) {
          var r;
          return r = 'c' == 'abbc'.split(/(b)*/)[1] || 4 != 'test'.split(/(?:)/, -1).length || 2 != 'ab'.split(/(?:ab)*/).length || 4 != '.'.split(/(.?)(.?)/).length || '.'.split(/()()/).length > 1 || ''.split(/.?/).length ? function (e, n) {
            var r,
              o,
              i = Yt(M(this)),
              a = void 0 === n ? Gr : n >>> 0;
            if (0 === a) return [];
            if (void 0 === e) return [i];
            if (!$(r = e) || !(void 0 !== (o = r[Br]) ? o : 'RegExp' == P(r))) return E(t, i, e, a);
            for (var u, s, l, c = [], f = (e.ignoreCase ? 'i' : '') + (e.multiline ? 'm' : '') + (e.unicode ? 'u' : '') + (e.sticky ? 'y' : ''), d = 0, p = new RegExp(e.source, f + 'g'); (u = E(Fn, p, i)) && !((s = p.lastIndex) > d && (Xr(c, Zr(i, d, u.index)), u.length > 1 && u.index < i.length && Ar(Kr, c, Hr(u, 1)), l = u[0].length, d = s, c.length >= a));) p.lastIndex === u.index && p.lastIndex++;
            return d === i.length ? !l && Yr(p, '') || Xr(c, '') : Xr(c, Zr(i, d)), c.length > a ? Hr(c, 0, a) : c;
          } : '0'.split(void 0, 0).length ? function (e, n) {
            return void 0 === e && 0 === n ? [] : E(t, this, e, n);
          } : t, [function (t, n) {
            var o = M(this),
              i = null == t ? void 0 : ie(t, e);
            return i ? E(i, t, o, n) : E(r, Yt(o), t, n);
          }, function (e, o) {
            var i = Re(this),
              a = Yt(e),
              u = n(r, i, a, o, r !== t);
            if (u.done) return u.value;
            var s = Pr(i, RegExp),
              l = i.unicode,
              c = (i.ignoreCase ? 'i' : '') + (i.multiline ? 'm' : '') + (i.unicode ? 'u' : '') + (Wr ? 'g' : 'y'),
              f = new s(Wr ? '^(?:' + i.source + ')' : i, c),
              d = void 0 === o ? Gr : o >>> 0;
            if (0 === d) return [];
            if (0 === a.length) return null === Ur(f, a) ? [a] : [];
            for (var p = 0, h = 0, v = []; h < a.length;) {
              f.lastIndex = Wr ? 0 : h;
              var g,
                y = Ur(f, Wr ? Zr(a, h) : a);
              if (null === y || (g = qr(bt(f.lastIndex + (Wr ? h : 0)), a.length)) === p) {
                h = Lr(a, h, l);
              } else {
                if (Xr(v, Zr(a, p, h)), v.length === d) return v;
                for (var m = 1; m <= y.length - 1; m++) if (Xr(v, y[m]), v.length === d) return v;
                h = p = g;
              }
            }
            return Xr(v, Zr(a, p)), v;
          }];
        }), !Jr, Wr);
        var Qr = '\t\n\v\f\r                　\u2028\u2029\ufeff',
          eo = B(''.replace),
          to = '[' + Qr + ']',
          no = RegExp('^' + to + to + '*'),
          ro = RegExp(to + to + '*$'),
          oo = function (e) {
            return function (t) {
              var n = Yt(M(t));
              return 1 & e && (n = eo(n, no, '')), 2 & e && (n = eo(n, ro, '')), n;
            };
          },
          io = {
            start: oo(1),
            end: oo(2),
            trim: oo(3)
          },
          ao = ct.PROPER,
          uo = io.trim;

        function so(e) {
          return e.length ? e[0].tagName.toLowerCase() : '';
        }

        zt({
          target: 'String',
          proto: !0,
          forced: function (e) {
            return m((function () {
              return !!Qr[e]() || '​᠎' !== '​᠎'[e]() || ao && Qr[e].name !== e;
            }));
          }('trim')
        }, {
          trim: function () {
            return uo(this);
          }
        }), zt({ global: !0 }, { globalThis: y }), i.append && (c.default.fn.append = i.append), i.on && (c.default.fn.on = i.on), i.focus && (c.default.fn.focus = i.focus), i.attr && (c.default.fn.attr = i.attr), i.val && (c.default.fn.val = i.val), i.html && (c.default.fn.html = i.html), i.dataset && (c.default.fn.dataset = i.dataset), i.addClass && (c.default.fn.addClass = i.addClass), i.removeClass && (c.default.fn.removeClass = i.removeClass), i.children && (c.default.fn.children = i.children), i.each && (c.default.fn.each = i.each), i.find && (c.default.fn.find = i.find);
        var lo = !1,
          co = 0,
          fo = 0,
          po = null,
          ho = null,
          vo = c.default('body');

        function go(e) {
          lo = !1, ho = null, po = null, vo.off('mousemove', yo), vo.off('mouseup', go);
        }

        vo.on('mousedown', (function (e) {
          var t = e.target;
          if (('TH' === t.tagName || 'TD' === t.tagName) && 'col-resize' === t.style.cursor) {
            t.style.cursor = 'auto', e.preventDefault(), lo = !0;
            var n = e.clientX;
            co = n;
            var r = t.getBoundingClientRect().width;
            fo = r, vo.on('mousemove', yo), vo.on('mouseup', go);
          }
        }));
        var yo = l.default((function (e) {
            if (lo && null != ho && null != po) {
              e.preventDefault();
              var t = e.clientX,
                r = fo + (t - co);
              (r = Math.floor(100 * r) / 100) < 30 && (r = 30), n.Transforms.setNodes(ho, { width: r.toString() }, { at: po });
            }
          }), 100),
          mo = {
            type: 'table',
            renderElem: function (t, o, i) {
              var a = function (t, r) {
                  if (t.isDisabled()) return !1;
                  var o = t.selection;
                  if (null == o) return !0;
                  if (n.Range.isCollapsed(o)) return !0;
                  var i = o.anchor,
                    a = o.focus,
                    u = e.DomEditor.findPath(t, r),
                    s = n.Editor.start(t, u),
                    l = n.Editor.end(t, u),
                    c = n.Point.compare(i, l) <= 0 && n.Point.compare(i, s) >= 0,
                    f = n.Point.compare(a, l) <= 0 && n.Point.compare(a, s) >= 0;
                  return !!(c && f && n.Path.equals(i.path.slice(0, 3), a.path.slice(0, 3)));
                }(i, t),
                u = t.width,
                s = void 0 === u ? 'auto' : u,
                l = e.DomEditor.isNodeSelected(i, t),
                c = ur(t),
                f = r.jsx('div', {
                  className: 'table-container',
                  'data-selected': l,
                  on: {
                    mousedown: function (r) {
                      if ('DIV' === r.target.tagName && r.preventDefault(), !i.isDisabled()) {
                        var o = e.DomEditor.findPath(i, t),
                          a = n.Editor.start(i, o),
                          u = i.selection;
                        null != u ? u.anchor.path[0] !== o[0] && i.select(a) : i.select(a);
                      }
                    }
                  }
                }, r.jsx('table', {
                  width: s,
                  contentEditable: a
                }, r.jsx('colgroup', null, c.map((function (e) {
                  var t = e.width,
                    n = void 0 === t ? 'auto' : t;
                  return r.jsx('col', { width: n });
                }))), r.jsx('tbody', null, o)));
              return f;
            }
          },
          bo = {
            type: 'table-row',
            renderElem: function (e, t, n) {
              return r.jsx('tr', null, t);
            }
          },
          wo = {
            type: 'table-cell',
            renderElem: function (t, n, o) {
              var i = function (t, n) {
                  var r = e.DomEditor.getParentNode(t, n);
                  if (null == r) return !1;
                  var o = e.DomEditor.getParentNode(t, r);
                  return null != o && ur(o)
                    .some((function (e) {
                      return e === n;
                    }));
                }(o, t),
                a = t,
                u = a.colSpan,
                s = void 0 === u ? 1 : u,
                c = a.rowSpan,
                f = void 0 === c ? 1 : c,
                d = a.isHeader,
                p = void 0 !== d && d;
              if (!i) {
                return r.jsx('td', {
                  colSpan: s,
                  rowSpan: f
                }, n);
              }
              var h = p ? 'th' : 'td',
                v = r.jsx(h, {
                  colSpan: s,
                  rowSpan: f,
                  style: { borderRightWidth: '3px' },
                  on: {
                    mousemove: l.default((function (n) {
                      var r = this.elm;
                      if (null != r) {
                        var i = r.getBoundingClientRect(),
                          a = i.left,
                          u = i.width,
                          s = i.top,
                          l = i.height,
                          c = n.clientX,
                          f = n.clientY;
                        lo || (c > a + u - 5 && c < a + u && f > s && f < s + l ? (r.style.cursor = 'col-resize', ho = o, po = e.DomEditor.findPath(o, t)) : lo || (r.style.cursor = 'auto', ho = null, po = null));
                      }
                    }), 100)
                  }
                }, n);
              return v;
            }
          },
          Eo = {
            type: 'table',
            elemToHtml: function (e, t) {
              var n = e.width;
              return '<table style="width: ' + (void 0 === n ? 'auto' : n) + ';"><tbody>' + t + '</tbody></table>';
            }
          },
          Do = {
            type: 'table-row',
            elemToHtml: function (e, t) {
              return '<tr>' + t + '</tr>';
            }
          },
          xo = {
            type: 'table-cell',
            elemToHtml: function (e, t) {
              var n = e,
                r = n.colSpan,
                o = void 0 === r ? 1 : r,
                i = n.rowSpan,
                a = void 0 === i ? 1 : i,
                u = n.isHeader,
                s = void 0 !== u && u,
                l = n.width,
                c = s ? 'th' : 'td';
              return '<' + c + ' colSpan="' + o + '" rowSpan="' + a + '" width="' + (void 0 === l ? 'auto' : l) + '">' + t + '</' + c + '>';
            }
          },
          So = {
            selector: 'table',
            preParseHtml: function (e) {
              var t = c.default(e);
              if ('table' !== so(t)) return e;
              var n = t.find('tbody');
              if (0 === n.length) return e;
              var r = t.find('tr');
              return t.append(r), n.remove(), t[0];
            }
          },
          Co = or.filter;
        zt({
          target: 'Array',
          proto: !0,
          forced: !Vn('filter')
        }, {
          filter: function (e) {
            return Co(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        });
        var Ao = Math.floor,
          Oo = B(''.charAt),
          ko = B(''.replace),
          To = B(''.slice),
          Bo = /\$([$&'`]|\d{1,2}|<[^>]*>)/g,
          Fo = /\$([$&'`]|\d{1,2})/g,
          _o = function (e, t, n, r, o, i) {
            var a = n + e.length,
              u = r.length,
              s = Fo;
            return void 0 !== o && (o = pe(o), s = Bo), ko(i, s, (function (i, s) {
              var l;
              switch (Oo(s, 0)) {
                case'$':
                  return '$';
                case'&':
                  return e;
                case'`':
                  return To(t, 0, n);
                case'\'':
                  return To(t, a);
                case'<':
                  l = o[To(s, 1, -1)];
                  break;
                default:
                  var c = +s;
                  if (0 === c) return i;
                  if (c > u) {
                    var f = Ao(c / 10);
                    return 0 === f ? i : f <= u ? void 0 === r[f - 1] ? Oo(s, 1) : r[f - 1] + Oo(s, 1) : i;
                  }
                  l = r[c - 1];
              }
              return void 0 === l ? '' : l;
            }));
          },
          Po = Se('replace'),
          jo = Math.max,
          No = Math.min,
          Io = B([].concat),
          Ro = B([].push),
          Mo = B(''.indexOf),
          Lo = B(''.slice),
          zo = '$0' === 'a'.replace(/./, '$0'),
          $o = !!/./[Po] && '' === /./[Po]('a', '$0');
        Tr('replace', (function (e, t, n) {
          var r = $o ? '$' : '$0';
          return [function (e, n) {
            var r = M(this),
              o = null == e ? void 0 : ie(e, Po);
            return o ? E(o, e, r, n) : E(t, Yt(r), e, n);
          }, function (e, o) {
            var i = Re(this),
              a = Yt(e);
            if ('string' == typeof o && -1 === Mo(o, r) && -1 === Mo(o, '$<')) {
              var u = n(t, i, a, o);
              if (u.done) return u.value;
            }
            var s = z(o);
            s || (o = Yt(o));
            var l = i.global;
            if (l) {
              var c = i.unicode;
              i.lastIndex = 0;
            }
            for (var f = []; ;) {
              var d = Ur(i, a);
              if (null === d) break;
              if (Ro(f, d), !l) break;
              '' === Yt(d[0]) && (i.lastIndex = Lr(a, bt(i.lastIndex), c));
            }
            for (var p, h = '', v = 0, g = 0; g < f.length; g++) {
              for (var y = Yt((d = f[g])[0]), m = jo(No(ht(d.index), a.length), 0), b = [], w = 1; w < d.length; w++) Ro(b, void 0 === (p = d[w]) ? p : String(p));
              var E = d.groups;
              if (s) {
                var D = Io([y], b, m, a);
                void 0 !== E && Ro(D, E);
                var x = Yt(Ar(o, void 0, D));
              } else {
                x = _o(y, a, m, b, E, o);
              }
              m >= v && (h += Lo(a, v, m) + x, v = m + y.length);
            }
            return h + Lo(a, v);
          }];
        }), !!m((function () {
          var e = /./;
          return e.exec = function () {
            var e = [];
            return e.groups = { a: '7' }, e;
          }, '7' !== ''.replace(e, '$<a>');
        })) || !zo || $o);
        var Ho = {
            selector: 'td,th',
            parseElemHtml: function (e, t, r) {
              var o = c.default(e);
              0 === (t = t.filter((function (e) {
                return !!n.Text.isText(e) || !!r.isInline(e);
              }))).length && (t = [{
                text: o.text()
                  .replace(/\s+/gm, ' ')
              }]);
              var i = parseInt(o.attr('colSpan') || '1'),
                a = parseInt(o.attr('rowSpan') || '1'),
                u = o.attr('width') || 'auto';
              return {
                type: 'table-cell',
                isHeader: 'th' === so(o),
                colSpan: i,
                rowSpan: a,
                width: u,
                children: t
              };
            }
          },
          Vo = {
            selector: 'tr',
            parseElemHtml: function (t, n, r) {
              return {
                type: 'table-row',
                children: n.filter((function (t) {
                  return 'table-cell' === e.DomEditor.getNodeType(t);
                }))
              };
            }
          },
          Uo = {
            selector: 'table',
            parseElemHtml: function (t, n, r) {
              var o = c.default(t),
                i = 'auto';
              return '100%' === function (e, t) {
                for (var n = '', r = (e.attr('style') || '').split(';'), o = r.length, i = 0; i < o; i++) {
                  var a = r[i];
                  if (a) {
                    var u = a.split(':');
                    u[0].trim() === t && (n = u[1].trim());
                  }
                }
                return n;
              }(o, 'width') && (i = '100%'), '100%' === o.attr('width') && (i = '100%'), {
                type: 'table',
                width: i,
                children: n.filter((function (t) {
                  return 'table-row' === e.DomEditor.getNodeType(t);
                }))
              };
            }
          },
          Wo = function () {
            function t() {
              this.title = e.t('tableModule.insertTable'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>', this.tag = 'button', this.showDropPanel = !0, this.$content = null;
            }

            return t.prototype.getValue = function (e) {
              return '';
            }, t.prototype.isActive = function (e) {
              return !1;
            }, t.prototype.exec = function (e, t) {
            }, t.prototype.isDisabled = function (t) {
              var r = t.selection;
              return null == r || !n.Range.isCollapsed(r) || !!e.DomEditor.getSelectedElems(t)
                .some((function (n) {
                  var r = e.DomEditor.getNodeType(n);
                  return 'pre' === r || 'table' === r || !!t.isVoid(n);
                }));
            }, t.prototype.getPanelContentElem = function (e) {
              var t = this;
              if (this.$content) return this.$content[0];
              for (var n = c.default('<div class="w-e-panel-content-table"></div>'), r = c.default('<span>0 &times; 0</span>'), o = c.default('<table></table>'), i = 0; i < 10; i++) {
                for (var a = c.default('<tr></tr>'), u = 0; u < 10; u++) {
                  var s = c.default('<td></td>');
                  s.attr('data-x', u.toString()), s.attr('data-y', i.toString()), a.append(s), s.on('mouseenter', (function (e) {
                    var t = e.target;
                    if (null != t) {
                      var n = c.default(t)
                          .dataset(),
                        i = n.x,
                        a = n.y;
                      r[0].innerHTML = i + 1 + ' &times; ' + (a + 1), o.children()
                        .each((function (e) {
                          c.default(e)
                            .children()
                            .each((function (e) {
                              var t = c.default(e),
                                n = t.dataset(),
                                r = n.x,
                                o = n.y;
                              r <= i && o <= a ? t.addClass('active') : t.removeClass('active');
                            }));
                        }));
                    }
                  })), s.on('click', (function (n) {
                    n.preventDefault();
                    var r = n.target;
                    if (null != r) {
                      var o = c.default(r)
                          .dataset(),
                        i = o.x,
                        a = o.y;
                      t.insertTable(e, a + 1, i + 1);
                    }
                  }));
                }
                o.append(a);
              }
              return n.append(o), n.append(r), this.$content = n, n[0];
            }, t.prototype.insertTable = function (t, r, o) {
              var i = parseInt(r, 10),
                a = parseInt(o, 10);
              if (i && a && !(i <= 0 || a <= 0)) {
                var u = e.DomEditor.getSelectedNodeByType(t, 'paragraph');
                u && '' === n.Node.string(u) && n.Transforms.removeNodes(t, { mode: 'highest' });
                var s = function (e, t) {
                  for (var n = [], r = 0; r < e; r++) {
                    for (var o = [], i = 0; i < t; i++) {
                      var a = {
                        type: 'table-cell',
                        children: [{ text: '' }]
                      };
                      0 === r && (a.isHeader = !0), o.push(a);
                    }
                    n.push({
                      type: 'table-row',
                      children: o
                    });
                  }
                  return {
                    type: 'table',
                    width: 'auto',
                    children: n
                  };
                }(i, a);
                n.Transforms.insertNodes(t, s, { mode: 'highest' });
              }
            }, t;
          }(),
          Go = function () {
            function t() {
              this.title = e.t('tableModule.deleteTable'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>', this.tag = 'button';
            }

            return t.prototype.getValue = function (e) {
              return '';
            }, t.prototype.isActive = function (e) {
              return !1;
            }, t.prototype.isDisabled = function (t) {
              return null == t.selection || null == e.DomEditor.getSelectedNodeByType(t, 'table');
            }, t.prototype.exec = function (e, t) {
              this.isDisabled(e) || n.Transforms.removeNodes(e, { mode: 'highest' });
            }, t;
          }(),
          qo = function () {
            function t() {
              this.title = e.t('tableModule.insertRow'), this.iconSvg = '<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>', this.tag = 'button';
            }

            return t.prototype.getValue = function (e) {
              return '';
            }, t.prototype.isActive = function (e) {
              return !1;
            }, t.prototype.isDisabled = function (t) {
              var r = t.selection;
              return null == r || !n.Range.isCollapsed(r) || null == e.DomEditor.getSelectedNodeByType(t, 'table');
            }, t.prototype.exec = function (t, r) {
              if (!this.isDisabled(t)) {
                var o = Yn(n.Editor.nodes(t, {
                    match: function (t) {
                      return e.DomEditor.checkNodeType(t, 'table-cell');
                    },
                    universal: !0
                  }), 1),
                  i = Yn(o[0], 2),
                  a = i[0],
                  u = i[1],
                  s = e.DomEditor.getParentNode(t, a),
                  l = (null == s ? void 0 : s.children.length) || 0;
                if (0 !== l) {
                  for (var c = {
                    type: 'table-row',
                    children: []
                  }, f = 0; f < l; f++) {
                    c.children.push({
                      type: 'table-cell',
                      children: [{ text: '' }]
                    });
                  }
                  var d = n.Path.parent(u),
                    p = n.Path.next(d);
                  n.Transforms.insertNodes(t, c, { at: p });
                }
              }
            }, t;
          }(),
          Ko = function () {
            function t() {
              this.title = e.t('tableModule.deleteRow'), this.iconSvg = '<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>', this.tag = 'button';
            }

            return t.prototype.getValue = function (e) {
              return '';
            }, t.prototype.isActive = function (e) {
              return !1;
            }, t.prototype.isDisabled = function (t) {
              var r = t.selection;
              return null == r || !n.Range.isCollapsed(r) || null == e.DomEditor.getSelectedNodeByType(t, 'table-row');
            }, t.prototype.exec = function (t, r) {
              if (!this.isDisabled(t)) {
                var o = Yn(n.Editor.nodes(t, {
                    match: function (t) {
                      return e.DomEditor.checkNodeType(t, 'table-row');
                    },
                    universal: !0
                  }), 1),
                  i = Yn(o[0], 2),
                  a = i[0],
                  u = i[1],
                  s = e.DomEditor.getParentNode(t, a);
                ((null == s ? void 0 : s.children.length) || 0) <= 1 ? n.Transforms.removeNodes(t, { mode: 'highest' }) : n.Transforms.removeNodes(t, { at: u });
              }
            }, t;
          }(),
          Yo = {
            CSSRuleList: 0,
            CSSStyleDeclaration: 0,
            CSSValueList: 0,
            ClientRectList: 0,
            DOMRectList: 0,
            DOMStringList: 0,
            DOMTokenList: 1,
            DataTransferItemList: 0,
            FileList: 0,
            HTMLAllCollection: 0,
            HTMLCollection: 0,
            HTMLFormElement: 0,
            HTMLSelectElement: 0,
            MediaList: 0,
            MimeTypeArray: 0,
            NamedNodeMap: 0,
            NodeList: 1,
            PaintRequestList: 0,
            Plugin: 0,
            PluginArray: 0,
            SVGLengthList: 0,
            SVGNumberList: 0,
            SVGPathSegList: 0,
            SVGPointList: 0,
            SVGStringList: 0,
            SVGTransformList: 0,
            SourceBufferList: 0,
            StyleSheetList: 0,
            TextTrackCueList: 0,
            TextTrackList: 0,
            TouchList: 0
          },
          Xo = Fe('span').classList,
          Zo = Xo && Xo.constructor && Xo.constructor.prototype,
          Jo = Zo === Object.prototype ? void 0 : Zo,
          Qo = or.forEach,
          ei = function (e, t) {
            var n = [].forEach;
            return !!n && m((function () {
              n.call(null, t || function () {
                throw 1;
              }, 1);
            }));
          }(),
          ti = ei ? [].forEach : function (e) {
            return Qo(this, e, arguments.length > 1 ? arguments[1] : void 0);
          },
          ni = function (e) {
            if (e && e.forEach !== ti) {
              try {
                $e(e, 'forEach', ti);
              } catch (t) {
                e.forEach = ti;
              }
            }
          };
        for (var ri in Yo) Yo[ri] && ni(y[ri] && y[ri].prototype);
        ni(Jo);
        var oi = function () {
            function t() {
              this.title = e.t('tableModule.insertCol'), this.iconSvg = '<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>', this.tag = 'button';
            }

            return t.prototype.getValue = function (e) {
              return '';
            }, t.prototype.isActive = function (e) {
              return !1;
            }, t.prototype.isDisabled = function (t) {
              var r = t.selection;
              return null == r || !n.Range.isCollapsed(r) || null == e.DomEditor.getSelectedNodeByType(t, 'table');
            }, t.prototype.exec = function (t, r) {
              if (!this.isDisabled(t)) {
                var o = Yn(n.Editor.nodes(t, {
                    match: function (t) {
                      return e.DomEditor.checkNodeType(t, 'table-cell');
                    },
                    universal: !0
                  }), 1),
                  i = Yn(o[0], 2),
                  a = i[0],
                  u = i[1],
                  s = e.DomEditor.getParentNode(t, a);
                if (null != s) {
                  var l = e.DomEditor.getParentNode(t, s);
                  null != l && (l.children || []).forEach((function (r, o) {
                    n.Element.isElement(r) && (r.children || []).forEach((function (r) {
                      var i = e.DomEditor.findPath(t, r);
                      if (i.length === u.length && f.default(i.slice(-1), u.slice(-1))) {
                        var a = {
                          type: 'table-cell',
                          children: [{ text: '' }]
                        };
                        0 === o && sr(l) && (a.isHeader = !0), n.Transforms.insertNodes(t, a, { at: i });
                      }
                    }));
                  }));
                }
              }
            }, t;
          }(),
          ii = function () {
            function t() {
              this.title = e.t('tableModule.deleteCol'), this.iconSvg = '<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>', this.tag = 'button';
            }

            return t.prototype.getValue = function (e) {
              return '';
            }, t.prototype.isActive = function (e) {
              return !1;
            }, t.prototype.isDisabled = function (t) {
              var r = t.selection;
              return null == r || !n.Range.isCollapsed(r) || null == e.DomEditor.getSelectedNodeByType(t, 'table-cell');
            }, t.prototype.exec = function (t, r) {
              if (!this.isDisabled(t)) {
                var o = Yn(n.Editor.nodes(t, {
                    match: function (t) {
                      return e.DomEditor.checkNodeType(t, 'table-cell');
                    },
                    universal: !0
                  }), 1),
                  i = Yn(o[0], 2),
                  a = i[0],
                  u = i[1],
                  s = e.DomEditor.getParentNode(t, a),
                  l = (null == s ? void 0 : s.children.length) || 0;
                if (!s || l <= 1) {
                  n.Transforms.removeNodes(t, { mode: 'highest' });
                } else {
                  var c = e.DomEditor.getParentNode(t, s);
                  null != c && (c.children || []).forEach((function (r) {
                    n.Element.isElement(r) && (r.children || []).forEach((function (r) {
                      var o = e.DomEditor.findPath(t, r);
                      o.length === u.length && f.default(o.slice(-1), u.slice(-1)) && n.Transforms.removeNodes(t, { at: o });
                    }));
                  }));
                }
              }
            }, t;
          }(),
          ai = function () {
            function t() {
              this.title = e.t('tableModule.header'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>', this.tag = 'button';
            }

            return t.prototype.getValue = function (t) {
              var n = e.DomEditor.getSelectedNodeByType(t, 'table');
              return null != n && sr(n);
            }, t.prototype.isActive = function (e) {
              return !!this.getValue(e);
            }, t.prototype.isDisabled = function (t) {
              var r = t.selection;
              return null == r || !n.Range.isCollapsed(r) || null == e.DomEditor.getSelectedNodeByType(t, 'table');
            }, t.prototype.exec = function (t, r) {
              if (!this.isDisabled(t)) {
                var o = !r,
                  i = e.DomEditor.getSelectedNodeByType(t, 'table');
                null != i && ur(i)
                  .forEach((function (r) {
                    return n.Transforms.setNodes(t, { isHeader: o }, { at: e.DomEditor.findPath(t, r) });
                  }));
              }
            }, t;
          }(),
          ui = function () {
            function t() {
              this.title = e.t('tableModule.widthAuto'), this.iconSvg = '<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>', this.tag = 'button';
            }

            return t.prototype.getValue = function (t) {
              var n = e.DomEditor.getSelectedNodeByType(t, 'table');
              return null != n && '100%' === n.width;
            }, t.prototype.isActive = function (e) {
              return !!this.getValue(e);
            }, t.prototype.isDisabled = function (t) {
              var r = t.selection;
              return null == r || !n.Range.isCollapsed(r) || null == e.DomEditor.getSelectedNodeByType(t, 'table');
            }, t.prototype.exec = function (e, t) {
              if (!this.isDisabled(e)) {
                var r = { width: t ? 'auto' : '100%' };
                n.Transforms.setNodes(e, r, { mode: 'highest' });
              }
            }, t;
          }(),
          si = {
            renderElems: [mo, bo, wo],
            elemsToHtml: [Eo, Do, xo],
            preParseHtml: [So],
            parseElemsHtml: [Ho, Vo, Uo],
            menus: [{
              key: 'insertTable',
              factory: function () {
                return new Wo;
              }
            }, {
              key: 'deleteTable',
              factory: function () {
                return new Go;
              }
            }, {
              key: 'insertTableRow',
              factory: function () {
                return new qo;
              }
            }, {
              key: 'deleteTableRow',
              factory: function () {
                return new Ko;
              }
            }, {
              key: 'insertTableCol',
              factory: function () {
                return new oi;
              }
            }, {
              key: 'deleteTableCol',
              factory: function () {
                return new ii;
              }
            }, {
              key: 'tableHeader',
              factory: function () {
                return new ai;
              }
            }, {
              key: 'tableFullWidth',
              factory: function () {
                return new ui;
              }
            }],
            editorPlugin: function (t) {
              var r = t.insertBreak,
                o = t.deleteBackward,
                i = t.deleteForward,
                a = t.normalizeNode,
                u = t.insertData,
                s = t.handleTab,
                l = t.selectAll,
                c = t;
              return c.insertBreak = function () {
                null == e.DomEditor.getSelectedNodeByType(c, 'table') ? r() : c.insertText('\n');
              }, c.deleteBackward = function (e) {
                if (!Xn(c)) {
                  var t = c.selection;
                  if (t) {
                    var r = n.Editor.before(c, t);
                    if (r) {
                      var i = Zn(c, r),
                        a = Zn(c, t);
                      if (i && !a) return;
                    }
                  }
                  o(e);
                }
              }, c.handleTab = function () {
                var r;
                if (e.DomEditor.getSelectedNodeByType(c, 'table')) {
                  var o = n.Editor.above(t);
                  e.DomEditor.checkNodeType(o[0], 'table-cell') && n.Transforms.select(t, o[1]);
                  var i = n.Editor.next(t);
                  if (i) {
                    i[0] && i[0].text && (i = null !== (r = n.Editor.above(t, { at: i[1] })) && void 0 !== r ? r : i), n.Transforms.select(t, i[1]);
                  } else {
                    var a = c.children || [],
                      u = a.length;
                    if (e.DomEditor.checkNodeType(a[u - 1], 'table')) {
                      var l = e.DomEditor.genEmptyParagraph();
                      n.Transforms.insertNodes(c, l, { at: [u] }), c.handleTab();
                    }
                  }
                } else {
                  s();
                }
              }, c.deleteForward = function (e) {
                Xn(c) || i(e);
              }, c.normalizeNode = function (t) {
                var r = Yn(t, 2),
                  o = r[0],
                  i = r[1];
                if ('table' !== e.DomEditor.getNodeType(o)) return a([o, i]);
                if (e.DomEditor.isLastNode(c, o)) {
                  var u = e.DomEditor.genEmptyParagraph();
                  n.Transforms.insertNodes(c, u, { at: [i[0] + 1] });
                }
              }, c.insertData = function (t) {
                if (null != e.DomEditor.getSelectedNodeByType(c, 'table')) {
                  var r = t.getData('text/plain');
                  '\n' === r || /<img[^>]+>/.test(t.getData('text/html')) ? u(t) : n.Editor.insertText(c, r);
                } else {
                  u(t);
                }
              }, c.selectAll = function () {
                var t = c.selection;
                if (null != t) {
                  var r = e.DomEditor.getSelectedNodeByType(c, 'table-cell');
                  if (null != r) {
                    var o = t.anchor,
                      i = t.focus;
                    if (n.Path.equals(o.path.slice(0, 3), i.path.slice(0, 3))) {
                      if (0 !== n.Node.string(r).length) {
                        var a = e.DomEditor.findPath(c, r),
                          u = {
                            anchor: n.Editor.start(c, a),
                            focus: n.Editor.end(c, a)
                          };
                        c.select(u);
                      } else {
                        l();
                      }
                    } else {
                      l();
                    }
                  } else {
                    l();
                  }
                } else {
                  l();
                }
              }, c;
            }
          };
        return si;
      }(BE, OE, TE, zg, kE, 0, eD);
    })),
    nD = r((function (e, n) {
      e.exports = function (e, n, r, o, i) {
        function a(e) {
          return e && 'object' == typeof e && 'default' in e ? e : { default: e };
        }

        var u = a(o);
        e.i18nAddResources('en', {
          videoModule: {
            delete: 'Delete',
            uploadVideo: 'Upload video',
            insertVideo: 'Insert video',
            videoSrc: 'Video source',
            videoSrcPlaceHolder: 'Video file url, or third-party <iframe>',
            videoPoster: 'Video poster',
            videoPosterPlaceHolder: 'Poster image url',
            ok: 'Ok',
            editSize: 'Edit size',
            width: 'Width',
            height: 'Height'
          }
        }), e.i18nAddResources('zh-CN', {
          videoModule: {
            delete: '删除视频',
            uploadVideo: '上传视频',
            insertVideo: '插入视频',
            videoSrc: '视频地址',
            videoSrcPlaceHolder: '视频文件 url 或第三方 <iframe>',
            videoPoster: '视频封面',
            videoPosterPlaceHolder: '封面图片 url',
            ok: '确定',
            editSize: '修改尺寸',
            width: '宽度',
            height: '高度'
          }
        });
        /*! *****************************************************************************
        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 s = function () {
          return s = Object.assign || function (e) {
            for (var t, n = 1, r = arguments.length; n < r; n++) for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
            return e;
          }, s.apply(this, arguments);
        };

        function l(e, t, n, r) {
          return new (n || (n = Promise))((function (o, i) {
            function a(e) {
              try {
                s(r.next(e));
              } catch (e) {
                i(e);
              }
            }

            function u(e) {
              try {
                s(r.throw(e));
              } catch (e) {
                i(e);
              }
            }

            function s(e) {
              var t;
              e.done ? o(e.value) : (t = e.value, t instanceof n ? t : new n((function (e) {
                e(t);
              }))).then(a, u);
            }

            s((r = r.apply(e, t || [])).next());
          }));
        }

        function c(e, t) {
          var n,
            r,
            o,
            i,
            a = {
              label: 0,
              sent: function () {
                if (1 & o[0]) throw o[1];
                return o[1];
              },
              trys: [],
              ops: []
            };
          return i = {
            next: u(0),
            throw: u(1),
            return: u(2)
          }, 'function' == typeof Symbol && (i[Symbol.iterator] = function () {
            return this;
          }), i;

          function u(i) {
            return function (u) {
              return function (i) {
                if (n) throw new TypeError('Generator is already executing.');
                for (; a;) {
                  try {
                    if (n = 1, r && (o = 2 & i[0] ? r.return : i[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, i[1])).done) return o;
                    switch (r = 0, o && (i = [2 & i[0], o.value]), i[0]) {
                      case 0:
                      case 1:
                        o = i;
                        break;
                      case 4:
                        return a.label++, {
                          value: i[1],
                          done: !1
                        };
                      case 5:
                        a.label++, r = i[1], i = [0];
                        continue;
                      case 7:
                        i = a.ops.pop(), a.trys.pop();
                        continue;
                      default:
                        if (!((o = (o = a.trys).length > 0 && o[o.length - 1]) || 6 !== i[0] && 2 !== i[0])) {
                          a = 0;
                          continue;
                        }
                        if (3 === i[0] && (!o || i[1] > o[0] && i[1] < o[3])) {
                          a.label = i[1];
                          break;
                        }
                        if (6 === i[0] && a.label < o[1]) {
                          a.label = o[1], o = i;
                          break;
                        }
                        if (o && a.label < o[2]) {
                          a.label = o[2], a.ops.push(i);
                          break;
                        }
                        o[2] && a.ops.pop(), a.trys.pop();
                        continue;
                    }
                    i = t.call(e, a);
                  } catch (e) {
                    i = [6, e], r = 0;
                  } finally {
                    n = o = 0;
                  }
                }
                if (5 & i[0]) throw i[1];
                return {
                  value: i[0] ? i[1] : void 0,
                  done: !0
                };
              }([i, u]);
            };
          }
        }

        function f(e) {
          var t = 'function' == typeof Symbol && Symbol.iterator,
            n = t && e[t],
            r = 0;
          if (n) return n.call(e);
          if (e && 'number' == typeof e.length) {
            return {
              next: function () {
                return e && r >= e.length && (e = void 0), {
                  value: e && e[r++],
                  done: !e
                };
              }
            };
          }
          throw new TypeError(t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.');
        }

        function d(e, t) {
          var n = 'function' == typeof Symbol && e[Symbol.iterator];
          if (!n) return e;
          var r,
            o,
            i = n.call(e),
            a = [];
          try {
            for (; (void 0 === t || t-- > 0) && !(r = i.next()).done;) a.push(r.value);
          } catch (e) {
            o = { error: e };
          } finally {
            try {
              r && !r.done && (n = i.return) && n.call(i);
            } finally {
              if (o) throw o.error;
            }
          }
          return a;
        }

        function p(e) {
          if (!Symbol.asyncIterator) throw new TypeError('Symbol.asyncIterator is not defined.');
          var t,
            n = e[Symbol.asyncIterator];
          return n ? n.call(e) : (e = f(e), t = {}, r('next'), r('throw'), r('return'), t[Symbol.asyncIterator] = function () {
            return this;
          }, t);

          function r(n) {
            t[n] = e[n] && function (t) {
              return new Promise((function (r, o) {
                !function (e, t, n, r) {
                  Promise.resolve(r)
                    .then((function (t) {
                      e({
                        value: t,
                        done: n
                      });
                    }), t);
                }(r, o, (t = e[n](t)).done, t.value);
              }));
            };
          }
        }

        var h = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof window ? window : void 0 !== t ? t : 'undefined' != typeof self ? self : {};

        function v(e) {
          var t = { exports: {} };
          return e(t, t.exports), t.exports;
        }

        var g,
          y,
          m = function (e) {
            return e && e.Math == Math && e;
          },
          b = m('object' == typeof globalThis && globalThis) || m('object' == typeof window && window) || m('object' == typeof self && self) || m('object' == typeof h && h) || function () {
            return this;
          }() || Function('return this')(),
          w = function (e) {
            try {
              return !!e();
            } catch (e) {
              return !0;
            }
          },
          E = !w((function () {
            return 7 != Object.defineProperty({}, 1, {
              get: function () {
                return 7;
              }
            })[1];
          })),
          D = Function.prototype.call,
          x = D.bind ? D.bind(D) : function () {
            return D.apply(D, arguments);
          },
          S = {}.propertyIsEnumerable,
          C = Object.getOwnPropertyDescriptor,
          A = {
            f: C && !S.call({ 1: 2 }, 1) ? function (e) {
              var t = C(this, e);
              return !!t && t.enumerable;
            } : S
          },
          O = function (e, t) {
            return {
              enumerable: !(1 & e),
              configurable: !(2 & e),
              writable: !(4 & e),
              value: t
            };
          },
          k = Function.prototype,
          T = k.bind,
          B = k.call,
          F = T && T.bind(B),
          _ = T ? function (e) {
            return e && F(B, e);
          } : function (e) {
            return e && function () {
              return B.apply(e, arguments);
            };
          },
          P = _({}.toString),
          j = _(''.slice),
          N = function (e) {
            return j(P(e), 8, -1);
          },
          I = b.Object,
          R = _(''.split),
          M = w((function () {
            return !I('z')
              .propertyIsEnumerable(0);
          })) ? function (e) {
            return 'String' == N(e) ? R(e, '') : I(e);
          } : I,
          L = b.TypeError,
          z = function (e) {
            if (null == e) throw L('Can\'t call method on ' + e);
            return e;
          },
          $ = function (e) {
            return M(z(e));
          },
          H = function (e) {
            return 'function' == typeof e;
          },
          V = function (e) {
            return 'object' == typeof e ? null !== e : H(e);
          },
          U = function (e) {
            return H(e) ? e : void 0;
          },
          W = function (e, t) {
            return arguments.length < 2 ? U(b[e]) : b[e] && b[e][t];
          },
          G = _({}.isPrototypeOf),
          q = W('navigator', 'userAgent') || '',
          K = b.process,
          Y = b.Deno,
          X = K && K.versions || Y && Y.version,
          Z = X && X.v8;
        Z && (y = (g = Z.split('.'))[0] > 0 && g[0] < 4 ? 1 : +(g[0] + g[1])), !y && q && (!(g = q.match(/Edge\/(\d+)/)) || g[1] >= 74) && (g = q.match(/Chrome\/(\d+)/)) && (y = +g[1]);
        var J = y,
          Q = !!Object.getOwnPropertySymbols && !w((function () {
            var e = Symbol();
            return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && J && J < 41;
          })),
          ee = Q && !Symbol.sham && 'symbol' == typeof Symbol.iterator,
          te = b.Object,
          ne = ee ? function (e) {
            return 'symbol' == typeof e;
          } : function (e) {
            var t = W('Symbol');
            return H(t) && G(t.prototype, te(e));
          },
          re = b.String,
          oe = function (e) {
            try {
              return re(e);
            } catch (e) {
              return 'Object';
            }
          },
          ie = b.TypeError,
          ae = function (e) {
            if (H(e)) return e;
            throw ie(oe(e) + ' is not a function');
          },
          ue = function (e, t) {
            var n = e[t];
            return null == n ? void 0 : ae(n);
          },
          se = b.TypeError,
          le = Object.defineProperty,
          ce = function (e, t) {
            try {
              le(b, e, {
                value: t,
                configurable: !0,
                writable: !0
              });
            } catch (n) {
              b[e] = t;
            }
            return t;
          },
          fe = '__core-js_shared__',
          de = b[fe] || ce(fe, {}),
          pe = v((function (e) {
            (e.exports = function (e, t) {
              return de[e] || (de[e] = void 0 !== t ? t : {});
            })('versions', [])
              .push({
                version: '3.19.3',
                mode: 'global',
                copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
              });
          })),
          he = b.Object,
          ve = function (e) {
            return he(z(e));
          },
          ge = _({}.hasOwnProperty),
          ye = Object.hasOwn || function (e, t) {
            return ge(ve(e), t);
          },
          me = 0,
          be = Math.random(),
          we = _(1..toString),
          Ee = function (e) {
            return 'Symbol(' + (void 0 === e ? '' : e) + ')_' + we(++me + be, 36);
          },
          De = pe('wks'),
          xe = b.Symbol,
          Se = xe && xe.for,
          Ce = ee ? xe : xe && xe.withoutSetter || Ee,
          Ae = function (e) {
            if (!ye(De, e) || !Q && 'string' != typeof De[e]) {
              var t = 'Symbol.' + e;
              Q && ye(xe, e) ? De[e] = xe[e] : De[e] = ee && Se ? Se(t) : Ce(t);
            }
            return De[e];
          },
          Oe = b.TypeError,
          ke = Ae('toPrimitive'),
          Te = function (e, t) {
            if (!V(e) || ne(e)) return e;
            var n,
              r = ue(e, ke);
            if (r) {
              if (void 0 === t && (t = 'default'), n = x(r, e, t), !V(n) || ne(n)) return n;
              throw Oe('Can\'t convert object to primitive value');
            }
            return void 0 === t && (t = 'number'), function (e, t) {
              var n,
                r;
              if ('string' === t && H(n = e.toString) && !V(r = x(n, e))) return r;
              if (H(n = e.valueOf) && !V(r = x(n, e))) return r;
              if ('string' !== t && H(n = e.toString) && !V(r = x(n, e))) return r;
              throw se('Can\'t convert object to primitive value');
            }(e, t);
          },
          Be = function (e) {
            var t = Te(e, 'string');
            return ne(t) ? t : t + '';
          },
          Fe = b.document,
          _e = V(Fe) && V(Fe.createElement),
          Pe = function (e) {
            return _e ? Fe.createElement(e) : {};
          },
          je = !E && !w((function () {
            return 7 != Object.defineProperty(Pe('div'), 'a', {
              get: function () {
                return 7;
              }
            }).a;
          })),
          Ne = Object.getOwnPropertyDescriptor,
          Ie = {
            f: E ? Ne : function (e, t) {
              if (e = $(e), t = Be(t), je) {
                try {
                  return Ne(e, t);
                } catch (e) {
                }
              }
              if (ye(e, t)) return O(!x(A.f, e, t), e[t]);
            }
          },
          Re = b.String,
          Me = b.TypeError,
          Le = function (e) {
            if (V(e)) return e;
            throw Me(Re(e) + ' is not an object');
          },
          ze = b.TypeError,
          $e = Object.defineProperty,
          He = {
            f: E ? $e : function (e, t, n) {
              if (Le(e), t = Be(t), Le(n), je) {
                try {
                  return $e(e, t, n);
                } catch (e) {
                }
              }
              if ('get' in n || 'set' in n) throw ze('Accessors not supported');
              return 'value' in n && (e[t] = n.value), e;
            }
          },
          Ve = E ? function (e, t, n) {
            return He.f(e, t, O(1, n));
          } : function (e, t, n) {
            return e[t] = n, e;
          },
          Ue = _(Function.toString);
        H(de.inspectSource) || (de.inspectSource = function (e) {
          return Ue(e);
        });
        var We,
          Ge,
          qe,
          Ke = de.inspectSource,
          Ye = b.WeakMap,
          Xe = H(Ye) && /native code/.test(Ke(Ye)),
          Ze = pe('keys'),
          Je = function (e) {
            return Ze[e] || (Ze[e] = Ee(e));
          },
          Qe = {},
          et = 'Object already initialized',
          tt = b.TypeError,
          nt = b.WeakMap;
        if (Xe || de.state) {
          var rt = de.state || (de.state = new nt),
            ot = _(rt.get),
            it = _(rt.has),
            at = _(rt.set);
          We = function (e, t) {
            if (it(rt, e)) throw new tt(et);
            return t.facade = e, at(rt, e, t), t;
          }, Ge = function (e) {
            return ot(rt, e) || {};
          }, qe = function (e) {
            return it(rt, e);
          };
        } else {
          var ut = Je('state');
          Qe[ut] = !0, We = function (e, t) {
            if (ye(e, ut)) throw new tt(et);
            return t.facade = e, Ve(e, ut, t), t;
          }, Ge = function (e) {
            return ye(e, ut) ? e[ut] : {};
          }, qe = function (e) {
            return ye(e, ut);
          };
        }
        var st = {
            set: We,
            get: Ge,
            has: qe,
            enforce: function (e) {
              return qe(e) ? Ge(e) : We(e, {});
            },
            getterFor: function (e) {
              return function (t) {
                var n;
                if (!V(t) || (n = Ge(t)).type !== e) throw tt('Incompatible receiver, ' + e + ' required');
                return n;
              };
            }
          },
          lt = Function.prototype,
          ct = E && Object.getOwnPropertyDescriptor,
          ft = ye(lt, 'name'),
          dt = {
            EXISTS: ft,
            PROPER: ft && 'something' === function () {
            }.name,
            CONFIGURABLE: ft && (!E || E && ct(lt, 'name').configurable)
          },
          pt = v((function (e) {
            var t = dt.CONFIGURABLE,
              n = st.get,
              r = st.enforce,
              o = String(String)
                .split('String');
            (e.exports = function (e, n, i, a) {
              var u,
                s = !!a && !!a.unsafe,
                l = !!a && !!a.enumerable,
                c = !!a && !!a.noTargetGet,
                f = a && void 0 !== a.name ? a.name : n;
              H(i) && ('Symbol(' === String(f)
                .slice(0, 7) && (f = '[' + String(f)
                .replace(/^Symbol\(([^)]*)\)/, '$1') + ']'), (!ye(i, 'name') || t && i.name !== f) && Ve(i, 'name', f), (u = r(i)).source || (u.source = o.join('string' == typeof f ? f : ''))), e !== b ? (s ? !c && e[n] && (l = !0) : delete e[n], l ? e[n] = i : Ve(e, n, i)) : l ? e[n] = i : ce(n, i);
            })(Function.prototype, 'toString', (function () {
              return H(this) && n(this).source || Ke(this);
            }));
          })),
          ht = Math.ceil,
          vt = Math.floor,
          gt = function (e) {
            var t = +e;
            return t != t || 0 === t ? 0 : (t > 0 ? vt : ht)(t);
          },
          yt = Math.max,
          mt = Math.min,
          bt = function (e, t) {
            var n = gt(e);
            return n < 0 ? yt(n + t, 0) : mt(n, t);
          },
          wt = Math.min,
          Et = function (e) {
            return e > 0 ? wt(gt(e), 9007199254740991) : 0;
          },
          Dt = function (e) {
            return Et(e.length);
          },
          xt = function (e) {
            return function (t, n, r) {
              var o,
                i = $(t),
                a = Dt(i),
                u = bt(r, a);
              if (e && n != n) {
                for (; a > u;) if ((o = i[u++]) != o) return !0;
              } else {
                for (; a > u; u++) if ((e || u in i) && i[u] === n) return e || u || 0;
              }
              return !e && -1;
            };
          },
          St = {
            includes: xt(!0),
            indexOf: xt(!1)
          },
          Ct = St.indexOf,
          At = _([].push),
          Ot = function (e, t) {
            var n,
              r = $(e),
              o = 0,
              i = [];
            for (n in r) !ye(Qe, n) && ye(r, n) && At(i, n);
            for (; t.length > o;) ye(r, n = t[o++]) && (~Ct(i, n) || At(i, n));
            return i;
          },
          kt = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'],
          Tt = kt.concat('length', 'prototype'),
          Bt = {
            f: Object.getOwnPropertyNames || function (e) {
              return Ot(e, Tt);
            }
          },
          Ft = { f: Object.getOwnPropertySymbols },
          _t = _([].concat),
          Pt = W('Reflect', 'ownKeys') || function (e) {
            var t = Bt.f(Le(e)),
              n = Ft.f;
            return n ? _t(t, n(e)) : t;
          },
          jt = function (e, t) {
            for (var n = Pt(t), r = He.f, o = Ie.f, i = 0; i < n.length; i++) {
              var a = n[i];
              ye(e, a) || r(e, a, o(t, a));
            }
          },
          Nt = /#|\.prototype\./,
          It = function (e, t) {
            var n = Mt[Rt(e)];
            return n == zt || n != Lt && (H(t) ? w(t) : !!t);
          },
          Rt = It.normalize = function (e) {
            return String(e)
              .replace(Nt, '.')
              .toLowerCase();
          },
          Mt = It.data = {},
          Lt = It.NATIVE = 'N',
          zt = It.POLYFILL = 'P',
          $t = It,
          Ht = Ie.f,
          Vt = function (e, t) {
            var n,
              r,
              o,
              i,
              a,
              u = e.target,
              s = e.global,
              l = e.stat;
            if (n = s ? b : l ? b[u] || ce(u, {}) : (b[u] || {}).prototype) {
              for (r in t) {
                if (i = t[r], o = e.noTargetGet ? (a = Ht(n, r)) && a.value : n[r], !$t(s ? r : u + (l ? '.' : '#') + r, e.forced) && void 0 !== o) {
                  if (typeof i == typeof o) continue;
                  jt(i, o);
                }
                (e.sham || o && o.sham) && Ve(i, 'sham', !0), pt(n, r, i, e);
              }
            }
          },
          Ut = {};
        Ut[Ae('toStringTag')] = 'z';
        var Wt,
          Gt = '[object z]' === String(Ut),
          qt = Ae('toStringTag'),
          Kt = b.Object,
          Yt = 'Arguments' == N(function () {
            return arguments;
          }()),
          Xt = Gt ? N : function (e) {
            var t,
              n,
              r;
            return void 0 === e ? 'Undefined' : null === e ? 'Null' : 'string' == typeof (n = function (e, t) {
              try {
                return e[t];
              } catch (e) {
              }
            }(t = Kt(e), qt)) ? n : Yt ? N(t) : 'Object' == (r = N(t)) && H(t.callee) ? 'Arguments' : r;
          },
          Zt = b.String,
          Jt = function (e) {
            if ('Symbol' === Xt(e)) throw TypeError('Cannot convert a Symbol value to a string');
            return Zt(e);
          },
          Qt = '\t\n\v\f\r                　\u2028\u2029\ufeff',
          en = _(''.replace),
          tn = '[' + Qt + ']',
          nn = RegExp('^' + tn + tn + '*'),
          rn = RegExp(tn + tn + '*$'),
          on = function (e) {
            return function (t) {
              var n = Jt(z(t));
              return 1 & e && (n = en(n, nn, '')), 2 & e && (n = en(n, rn, '')), n;
            };
          },
          an = {
            start: on(1),
            end: on(2),
            trim: on(3)
          },
          un = dt.PROPER,
          sn = an.trim;

        function ln(e) {
          return e.length ? e[0].tagName.toLowerCase() : '';
        }

        function cn(e, t, n) {
          void 0 === t && (t = 'auto'), void 0 === n && (n = 'auto');
          var r = u.default(e);
          return r.attr('width', t), r.attr('height', n), r[0].outerHTML;
        }

        Vt({
          target: 'String',
          proto: !0,
          forced: (Wt = 'trim', w((function () {
            return !!Qt[Wt]() || '​᠎' !== '​᠎'[Wt]() || un && Qt[Wt].name !== Wt;
          })))
        }, {
          trim: function () {
            return sn(this);
          }
        }), Vt({ global: !0 }, { globalThis: b }), o.append && (u.default.fn.append = o.append), o.on && (u.default.fn.on = o.on), o.focus && (u.default.fn.focus = o.focus), o.attr && (u.default.fn.attr = o.attr), o.val && (u.default.fn.val = o.val), o.html && (u.default.fn.html = o.html), o.parent && (u.default.fn.parent = o.parent), o.hasClass && (u.default.fn.hasClass = o.hasClass), o.empty && (u.default.fn.empty = o.empty);
        var fn,
          dn = {
            type: 'video',
            renderElem: function (t, n, o) {
              var i,
                a = t,
                u = a.src,
                s = void 0 === u ? '' : u,
                l = a.poster,
                c = void 0 === l ? '' : l,
                f = a.width,
                d = void 0 === f ? 'auto' : f,
                p = a.height,
                h = void 0 === p ? 'auto' : p,
                v = e.DomEditor.isNodeSelected(o, t);
              if (0 === s.trim()
                .indexOf('<iframe ')) {
                var g = cn(s, d, h);
                i = r.jsx('div', {
                  className: 'w-e-textarea-video-container',
                  'data-selected': v ? 'true' : '',
                  innerHTML: g
                });
              } else {
                var y = r.jsx('video', {
                  poster: c,
                  controls: !0
                }, r.jsx('source', {
                  src: s,
                  type: 'video/mp4'
                }), 'Sorry, your browser doesn\'t support embedded videos.\n 抱歉，浏览器不支持 video 视频');
                'auto' !== d && (y.data.width = d), 'auto' !== h && (y.data.height = h), i = r.jsx('div', {
                  className: 'w-e-textarea-video-container',
                  'data-selected': v ? 'true' : ''
                }, y);
              }
              return r.h('div', {
                props: { contentEditable: !1 },
                on: {
                  mousedown: function (e) {
                    return e.preventDefault();
                  }
                }
              }, i);
            }
          },
          pn = {
            type: 'video',
            elemToHtml: function (e, t) {
              var n = e,
                r = n.src,
                o = void 0 === r ? '' : r,
                i = n.poster,
                a = void 0 === i ? '' : i,
                u = n.width,
                s = void 0 === u ? 'auto' : u,
                l = n.height,
                c = void 0 === l ? 'auto' : l,
                f = '<div data-w-e-type="video" data-w-e-is-void>\n';
              return 0 === o.trim()
                .indexOf('<iframe ') ? f += cn(o, s, c) : f += '<video poster="' + a + '" controls="true" width="' + s + '" height="' + c + '"><source src="' + o + '" type="video/mp4"/></video>', f + '\n</div>';
            }
          },
          hn = Object.keys || function (e) {
            return Ot(e, kt);
          },
          vn = E ? Object.defineProperties : function (e, t) {
            Le(e);
            for (var n, r = $(t), o = hn(t), i = o.length, a = 0; i > a;) He.f(e, n = o[a++], r[n]);
            return e;
          },
          gn = W('document', 'documentElement'),
          yn = Je('IE_PROTO'),
          mn = function () {
          },
          bn = function (e) {
            return '<script>' + e + '<\/script>';
          },
          wn = function (e) {
            e.write(bn('')), e.close();
            var t = e.parentWindow.Object;
            return e = null, t;
          },
          En = function () {
            try {
              fn = new ActiveXObject('htmlfile');
            } catch (e) {
            }
            var e,
              t;
            En = 'undefined' != typeof document ? document.domain && fn ? wn(fn) : ((t = Pe('iframe')).style.display = 'none', gn.appendChild(t), t.src = String('javascript:'), (e = t.contentWindow.document).open(), e.write(bn('document.F=Object')), e.close(), e.F) : wn(fn);
            for (var n = kt.length; n--;) delete En.prototype[kt[n]];
            return En();
          };
        Qe[yn] = !0;
        var Dn = Object.create || function (e, t) {
            var n;
            return null !== e ? (mn.prototype = Le(e), n = new mn, mn.prototype = null, n[yn] = e) : n = En(), void 0 === t ? n : vn(n, t);
          },
          xn = Ae('unscopables'),
          Sn = Array.prototype;
        null == Sn[xn] && He.f(Sn, xn, {
          configurable: !0,
          value: Dn(null)
        });
        var Cn = function (e) {
            Sn[xn][e] = !0;
          },
          An = St.includes;
        Vt({
          target: 'Array',
          proto: !0
        }, {
          includes: function (e) {
            return An(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        }), Cn('includes');
        var On = {
            selector: 'iframe,video,p',
            preParseHtml: function (e) {
              var t = u.default(e),
                n = t;
              if ('p' === ln(t)) {
                var r = t.children();
                if (1 === r.length) {
                  var o = r[0],
                    i = o.tagName.toLowerCase();
                  ['iframe', 'video'].includes(i) && (n = u.default(o));
                }
              }
              var a = ln(n);
              if ('iframe' !== a && 'video' !== a) return n[0];
              if ('video' === n.parent()
                .attr('data-w-e-type')) {
                return n[0];
              }
              var s = u.default('<div data-w-e-type="video" data-w-e-is-void></div>');
              return s.append(n), s[0];
            }
          },
          kn = _(_.bind),
          Tn = function (e, t) {
            return ae(e), void 0 === t ? e : kn ? kn(e, t) : function () {
              return e.apply(t, arguments);
            };
          },
          Bn = Array.isArray || function (e) {
            return 'Array' == N(e);
          },
          Fn = function () {
          },
          _n = [],
          Pn = W('Reflect', 'construct'),
          jn = /^\s*(?:class|function)\b/,
          Nn = _(jn.exec),
          In = !jn.exec(Fn),
          Rn = function (e) {
            if (!H(e)) return !1;
            try {
              return Pn(Fn, _n, e), !0;
            } catch (e) {
              return !1;
            }
          },
          Mn = !Pn || w((function () {
            var e;
            return Rn(Rn.call) || !Rn(Object) || !Rn((function () {
              e = !0;
            })) || e;
          })) ? function (e) {
            if (!H(e)) return !1;
            switch (Xt(e)) {
              case'AsyncFunction':
              case'GeneratorFunction':
              case'AsyncGeneratorFunction':
                return !1;
            }
            return In || !!Nn(jn, Ke(e));
          } : Rn,
          Ln = Ae('species'),
          zn = b.Array,
          $n = function (e, t) {
            return new (function (e) {
              var t;
              return Bn(e) && (t = e.constructor, (Mn(t) && (t === zn || Bn(t.prototype)) || V(t) && null === (t = t[Ln])) && (t = void 0)), void 0 === t ? zn : t;
            }(e))(0 === t ? 0 : t);
          },
          Hn = _([].push),
          Vn = function (e) {
            var t = 1 == e,
              n = 2 == e,
              r = 3 == e,
              o = 4 == e,
              i = 6 == e,
              a = 7 == e,
              u = 5 == e || i;
            return function (s, l, c, f) {
              for (var d, p, h = ve(s), v = M(h), g = Tn(l, c), y = Dt(v), m = 0, b = f || $n, w = t ? b(s, y) : n || a ? b(s, 0) : void 0; y > m; m++) {
                if ((u || m in v) && (p = g(d = v[m], m, h), e)) {
                  if (t) {
                    w[m] = p;
                  } else if (p) {
                    switch (e) {
                      case 3:
                        return !0;
                      case 5:
                        return d;
                      case 6:
                        return m;
                      case 2:
                        Hn(w, d);
                    }
                  } else {
                    switch (e) {
                      case 4:
                        return !1;
                      case 7:
                        Hn(w, d);
                    }
                  }
                }
              }
              return i ? -1 : r || o ? o : w;
            };
          },
          Un = {
            forEach: Vn(0),
            map: Vn(1),
            filter: Vn(2),
            some: Vn(3),
            every: Vn(4),
            find: Vn(5),
            findIndex: Vn(6),
            filterReject: Vn(7)
          },
          Wn = Un.find,
          Gn = 'find',
          qn = !0;
        Gn in [] && Array(1)
          .find((function () {
            qn = !1;
          })), Vt({
          target: 'Array',
          proto: !0,
          forced: qn
        }, {
          find: function (e) {
            return Wn(this, e, arguments.length > 1 ? arguments[1] : void 0);
          }
        }), Cn(Gn);
        var Kn = Gt ? {}.toString : function () {
          return '[object ' + Xt(this) + ']';
        };

        function Yn(e, t, n, r) {
          return void 0 === t && (t = ''), void 0 === n && (n = 'auto'), void 0 === r && (r = 'auto'), {
            type: 'video',
            src: e,
            poster: t,
            width: n,
            height: r,
            children: [{ text: '' }]
          };
        }

        Gt || pt(Object.prototype, 'toString', Kn, { unsafe: !0 });
        var Xn,
          Zn,
          Jn = {
            selector: 'div[data-w-e-type="video"]',
            parseElemHtml: function (e, t, n) {
              var r = u.default(e),
                o = '',
                i = '',
                a = 'auto',
                s = 'auto',
                l = r.find('iframe');
              if (l.length > 0) return a = l.attr('width') || 'auto', s = l.attr('height') || 'auto', Yn(o = l[0].outerHTML, i, a, s);
              var c = r.find('video');
              return (o = c.attr('src') || '') || c.length > 0 && (o = c.find('source')
                .attr('src') || ''), a = c.attr('width') || 'auto', s = c.attr('height') || 'auto', Yn(o, i = c.attr('poster') || '', a, s);
            }
          },
          Qn = function () {
            var e = Le(this),
              t = '';
            return e.global && (t += 'g'), e.ignoreCase && (t += 'i'), e.multiline && (t += 'm'), e.dotAll && (t += 's'), e.unicode && (t += 'u'), e.sticky && (t += 'y'), t;
          },
          er = b.RegExp,
          tr = w((function () {
            var e = er('a', 'y');
            return e.lastIndex = 2, null != e.exec('abcd');
          })),
          nr = tr || w((function () {
            return !er('a', 'y').sticky;
          })),
          rr = {
            BROKEN_CARET: tr || w((function () {
              var e = er('^r', 'gy');
              return e.lastIndex = 2, null != e.exec('str');
            })),
            MISSED_STICKY: nr,
            UNSUPPORTED_Y: tr
          },
          or = b.RegExp,
          ir = w((function () {
            var e = or('.', 's');
            return !(e.dotAll && e.exec('\n') && 's' === e.flags);
          })),
          ar = b.RegExp,
          ur = w((function () {
            var e = ar('(?<a>b)', 'g');
            return 'b' !== e.exec('b').groups.a || 'bc' !== 'b'.replace(e, '$<a>c');
          })),
          sr = st.get,
          lr = pe('native-string-replace', String.prototype.replace),
          cr = RegExp.prototype.exec,
          fr = cr,
          dr = _(''.charAt),
          pr = _(''.indexOf),
          hr = _(''.replace),
          vr = _(''.slice),
          gr = (Zn = /b*/g, x(cr, Xn = /a/, 'a'), x(cr, Zn, 'a'), 0 !== Xn.lastIndex || 0 !== Zn.lastIndex),
          yr = rr.BROKEN_CARET,
          mr = void 0 !== /()??/.exec('')[1];
        (gr || mr || yr || ir || ur) && (fr = function (e) {
          var t,
            n,
            r,
            o,
            i,
            a,
            u,
            s = this,
            l = sr(s),
            c = Jt(e),
            f = l.raw;
          if (f) return f.lastIndex = s.lastIndex, t = x(fr, f, c), s.lastIndex = f.lastIndex, t;
          var d = l.groups,
            p = yr && s.sticky,
            h = x(Qn, s),
            v = s.source,
            g = 0,
            y = c;
          if (p && (h = hr(h, 'y', ''), -1 === pr(h, 'g') && (h += 'g'), y = vr(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && '\n' !== dr(c, s.lastIndex - 1)) && (v = '(?: ' + v + ')', y = ' ' + y, g++), n = new RegExp('^(?:' + v + ')', h)), mr && (n = new RegExp('^' + v + '$(?!\\s)', h)), gr && (r = s.lastIndex), o = x(cr, p ? n : s, y), p ? o ? (o.input = vr(o.input, g), o[0] = vr(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : gr && o && (s.lastIndex = s.global ? o.index + o[0].length : r), mr && o && o.length > 1 && x(lr, o[0], n, (function () {
            for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (o[i] = void 0);
          })), o && d) {
            for (o.groups = a = Dn(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
          }
          return o;
        });
        var br = fr;
        Vt({
          target: 'RegExp',
          proto: !0,
          forced: /./.exec !== br
        }, { exec: br });
        var wr = Function.prototype,
          Er = wr.apply,
          Dr = wr.bind,
          xr = wr.call,
          Sr = 'object' == typeof Reflect && Reflect.apply || (Dr ? xr.bind(Er) : function () {
            return xr.apply(Er, arguments);
          }),
          Cr = Ae('species'),
          Ar = RegExp.prototype,
          Or = _(''.charAt),
          kr = _(''.charCodeAt),
          Tr = _(''.slice),
          Br = function (e) {
            return function (t, n) {
              var r,
                o,
                i = Jt(z(t)),
                a = gt(n),
                u = i.length;
              return a < 0 || a >= u ? e ? '' : void 0 : (r = kr(i, a)) < 55296 || r > 56319 || a + 1 === u || (o = kr(i, a + 1)) < 56320 || o > 57343 ? e ? Or(i, a) : r : e ? Tr(i, a, a + 2) : o - 56320 + (r - 55296 << 10) + 65536;
            };
          },
          Fr = {
            codeAt: Br(!1),
            charAt: Br(!0)
          },
          _r = Fr.charAt,
          Pr = function (e, t, n) {
            return t + (n ? _r(e, t).length : 1);
          },
          jr = Math.floor,
          Nr = _(''.charAt),
          Ir = _(''.replace),
          Rr = _(''.slice),
          Mr = /\$([$&'`]|\d{1,2}|<[^>]*>)/g,
          Lr = /\$([$&'`]|\d{1,2})/g,
          zr = function (e, t, n, r, o, i) {
            var a = n + e.length,
              u = r.length,
              s = Lr;
            return void 0 !== o && (o = ve(o), s = Mr), Ir(i, s, (function (i, s) {
              var l;
              switch (Nr(s, 0)) {
                case'$':
                  return '$';
                case'&':
                  return e;
                case'`':
                  return Rr(t, 0, n);
                case'\'':
                  return Rr(t, a);
                case'<':
                  l = o[Rr(s, 1, -1)];
                  break;
                default:
                  var c = +s;
                  if (0 === c) return i;
                  if (c > u) {
                    var f = jr(c / 10);
                    return 0 === f ? i : f <= u ? void 0 === r[f - 1] ? Nr(s, 1) : r[f - 1] + Nr(s, 1) : i;
                  }
                  l = r[c - 1];
              }
              return void 0 === l ? '' : l;
            }));
          },
          $r = b.TypeError,
          Hr = function (e, t) {
            var n = e.exec;
            if (H(n)) {
              var r = x(n, e, t);
              return null !== r && Le(r), r;
            }
            if ('RegExp' === N(e)) return x(br, e, t);
            throw $r('RegExp#exec called on incompatible receiver');
          },
          Vr = Ae('replace'),
          Ur = Math.max,
          Wr = Math.min,
          Gr = _([].concat),
          qr = _([].push),
          Kr = _(''.indexOf),
          Yr = _(''.slice),
          Xr = '$0' === 'a'.replace(/./, '$0'),
          Zr = !!/./[Vr] && '' === /./[Vr]('a', '$0');

        function Jr(e) {
          return void 0 === e && (e = 'r'), e + '-' + i.nanoid();
        }

        !function (e, t, n, r) {
          var o = Ae(e),
            i = !w((function () {
              var t = {};
              return t[o] = function () {
                return 7;
              }, 7 != ''[e](t);
            })),
            a = i && !w((function () {
              var t = !1,
                n = /a/;
              return 'split' === e && ((n = {}).constructor = {}, n.constructor[Cr] = function () {
                return n;
              }, n.flags = '', n[o] = /./[o]), n.exec = function () {
                return t = !0, null;
              }, n[o](''), !t;
            }));
          if (!i || !a || n) {
            var u = _(/./[o]),
              s = t(o, ''[e], (function (e, t, n, r, o) {
                var a = _(e),
                  s = t.exec;
                return s === br || s === Ar.exec ? i && !o ? {
                  done: !0,
                  value: u(t, n, r)
                } : {
                  done: !0,
                  value: a(n, t, r)
                } : { done: !1 };
              }));
            pt(String.prototype, e, s[0]), pt(Ar, o, s[1]);
          }
          r && Ve(Ar[o], 'sham', !0);
        }('replace', (function (e, t, n) {
          var r = Zr ? '$' : '$0';
          return [function (e, n) {
            var r = z(this),
              o = null == e ? void 0 : ue(e, Vr);
            return o ? x(o, e, r, n) : x(t, Jt(r), e, n);
          }, function (e, o) {
            var i = Le(this),
              a = Jt(e);
            if ('string' == typeof o && -1 === Kr(o, r) && -1 === Kr(o, '$<')) {
              var u = n(t, i, a, o);
              if (u.done) return u.value;
            }
            var s = H(o);
            s || (o = Jt(o));
            var l = i.global;
            if (l) {
              var c = i.unicode;
              i.lastIndex = 0;
            }
            for (var f = []; ;) {
              var d = Hr(i, a);
              if (null === d) break;
              if (qr(f, d), !l) break;
              '' === Jt(d[0]) && (i.lastIndex = Pr(a, Et(i.lastIndex), c));
            }
            for (var p, h = '', v = 0, g = 0; g < f.length; g++) {
              for (var y = Jt((d = f[g])[0]), m = Ur(Wr(gt(d.index), a.length), 0), b = [], w = 1; w < d.length; w++) qr(b, void 0 === (p = d[w]) ? p : String(p));
              var E = d.groups;
              if (s) {
                var D = Gr([y], b, m, a);
                void 0 !== E && qr(D, E);
                var x = Jt(Sr(o, void 0, D));
              } else {
                x = zr(y, a, m, b, E, o);
              }
              m >= v && (h += Yr(a, v, m) + x, v = m + y.length);
            }
            return h + Yr(a, v);
          }];
        }), !!w((function () {
          var e = /./;
          return e.exec = function () {
            var e = [];
            return e.groups = { a: '7' }, e;
          }, '7' !== ''.replace(e, '$<a>');
        })) || !Xr || Zr);
        var Qr = b.Promise,
          eo = function (e, t, n) {
            for (var r in t) pt(e, r, t[r], n);
            return e;
          },
          to = b.String,
          no = b.TypeError,
          ro = Object.setPrototypeOf || ('__proto__' in {} ? function () {
            var e,
              t = !1,
              n = {};
            try {
              (e = _(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set))(n, []), t = n instanceof Array;
            } catch (e) {
            }
            return function (n, r) {
              return Le(n), function (e) {
                if ('object' == typeof e || H(e)) return e;
                throw no('Can\'t set ' + to(e) + ' as a prototype');
              }(r), t ? e(n, r) : n.__proto__ = r, n;
            };
          }() : void 0),
          oo = He.f,
          io = Ae('toStringTag'),
          ao = function (e, t, n) {
            e && !ye(e = n ? e : e.prototype, io) && oo(e, io, {
              configurable: !0,
              value: t
            });
          },
          uo = Ae('species'),
          so = b.TypeError,
          lo = function (e, t) {
            if (G(t, e)) return e;
            throw so('Incorrect invocation');
          },
          co = {},
          fo = Ae('iterator'),
          po = Array.prototype,
          ho = Ae('iterator'),
          vo = function (e) {
            if (null != e) return ue(e, ho) || ue(e, '@@iterator') || co[Xt(e)];
          },
          go = b.TypeError,
          yo = function (e, t, n) {
            var r,
              o;
            Le(e);
            try {
              if (!(r = ue(e, 'return'))) {
                if ('throw' === t) throw n;
                return n;
              }
              r = x(r, e);
            } catch (e) {
              o = !0, r = e;
            }
            if ('throw' === t) throw n;
            if (o) throw r;
            return Le(r), n;
          },
          mo = b.TypeError,
          bo = function (e, t) {
            this.stopped = e, this.result = t;
          },
          wo = bo.prototype,
          Eo = function (e, t, n) {
            var r,
              o,
              i,
              a,
              u,
              s,
              l,
              c,
              f = n && n.that,
              d = !(!n || !n.AS_ENTRIES),
              p = !(!n || !n.IS_ITERATOR),
              h = !(!n || !n.INTERRUPTED),
              v = Tn(t, f),
              g = function (e) {
                return r && yo(r, 'normal', e), new bo(!0, e);
              },
              y = function (e) {
                return d ? (Le(e), h ? v(e[0], e[1], g) : v(e[0], e[1])) : h ? v(e, g) : v(e);
              };
            if (p) {
              r = e;
            } else {
              if (!(o = vo(e))) throw mo(oe(e) + ' is not iterable');
              if (void 0 !== (c = o) && (co.Array === c || po[fo] === c)) {
                for (i = 0, a = Dt(e); a > i; i++) if ((u = y(e[i])) && G(wo, u)) return u;
                return new bo(!1);
              }
              r = function (e, t) {
                var n = arguments.length < 2 ? vo(e) : t;
                if (ae(n)) return Le(x(n, e));
                throw go(oe(e) + ' is not iterable');
              }(e, o);
            }
            for (s = r.next; !(l = x(s, r)).done;) {
              try {
                u = y(l.value);
              } catch (e) {
                yo(r, 'throw', e);
              }
              if ('object' == typeof u && u && G(wo, u)) return u;
            }
            return new bo(!1);
          },
          Do = Ae('iterator'),
          xo = !1;
        try {
          var So = 0,
            Co = {
              next: function () {
                return { done: !!So++ };
              },
              return: function () {
                xo = !0;
              }
            };
          Co[Do] = function () {
            return this;
          }, Array.from(Co, (function () {
            throw 2;
          }));
        } catch (e) {
        }
        var Ao,
          Oo,
          ko,
          To,
          Bo = function (e, t) {
            if (!t && !xo) return !1;
            var n = !1;
            try {
              var r = {};
              r[Do] = function () {
                return {
                  next: function () {
                    return { done: n = !0 };
                  }
                };
              }, e(r);
            } catch (e) {
            }
            return n;
          },
          Fo = b.TypeError,
          _o = Ae('species'),
          Po = function (e, t) {
            var n,
              r = Le(e).constructor;
            return void 0 === r || null == (n = Le(r)[_o]) ? t : function (e) {
              if (Mn(e)) return e;
              throw Fo(oe(e) + ' is not a constructor');
            }(n);
          },
          jo = _([].slice),
          No = /(?:ipad|iphone|ipod).*applewebkit/i.test(q),
          Io = 'process' == N(b.process),
          Ro = b.setImmediate,
          Mo = b.clearImmediate,
          Lo = b.process,
          zo = b.Dispatch,
          $o = b.Function,
          Ho = b.MessageChannel,
          Vo = b.String,
          Uo = 0,
          Wo = {},
          Go = 'onreadystatechange';
        try {
          Ao = b.location;
        } catch (e) {
        }
        var qo = function (e) {
            if (ye(Wo, e)) {
              var t = Wo[e];
              delete Wo[e], t();
            }
          },
          Ko = function (e) {
            return function () {
              qo(e);
            };
          },
          Yo = function (e) {
            qo(e.data);
          },
          Xo = function (e) {
            b.postMessage(Vo(e), Ao.protocol + '//' + Ao.host);
          };
        Ro && Mo || (Ro = function (e) {
          var t = jo(arguments, 1);
          return Wo[++Uo] = function () {
            Sr(H(e) ? e : $o(e), void 0, t);
          }, Oo(Uo), Uo;
        }, Mo = function (e) {
          delete Wo[e];
        }, Io ? Oo = function (e) {
          Lo.nextTick(Ko(e));
        } : zo && zo.now ? Oo = function (e) {
          zo.now(Ko(e));
        } : Ho && !No ? (To = (ko = new Ho).port2, ko.port1.onmessage = Yo, Oo = Tn(To.postMessage, To)) : b.addEventListener && H(b.postMessage) && !b.importScripts && Ao && 'file:' !== Ao.protocol && !w(Xo) ? (Oo = Xo, b.addEventListener('message', Yo, !1)) : Oo = Go in Pe('script') ? function (e) {
          gn.appendChild(Pe('script')).onreadystatechange = function () {
            gn.removeChild(this), qo(e);
          };
        } : function (e) {
          setTimeout(Ko(e), 0);
        });
        var Zo,
          Jo,
          Qo,
          ei,
          ti,
          ni,
          ri,
          oi,
          ii = {
            set: Ro,
            clear: Mo
          },
          ai = /ipad|iphone|ipod/i.test(q) && void 0 !== b.Pebble,
          ui = /web0s(?!.*chrome)/i.test(q),
          si = Ie.f,
          li = ii.set,
          ci = b.MutationObserver || b.WebKitMutationObserver,
          fi = b.document,
          di = b.process,
          pi = b.Promise,
          hi = si(b, 'queueMicrotask'),
          vi = hi && hi.value;
        vi || (Zo = function () {
          var e,
            t;
          for (Io && (e = di.domain) && e.exit(); Jo;) {
            t = Jo.fn, Jo = Jo.next;
            try {
              t();
            } catch (e) {
              throw Jo ? ei() : Qo = void 0, e;
            }
          }
          Qo = void 0, e && e.enter();
        }, No || Io || ui || !ci || !fi ? !ai && pi && pi.resolve ? ((ri = pi.resolve(void 0)).constructor = pi, oi = Tn(ri.then, ri), ei = function () {
          oi(Zo);
        }) : Io ? ei = function () {
          di.nextTick(Zo);
        } : (li = Tn(li, b), ei = function () {
          li(Zo);
        }) : (ti = !0, ni = fi.createTextNode(''), new ci(Zo).observe(ni, { characterData: !0 }), ei = function () {
          ni.data = ti = !ti;
        }));
        var gi,
          yi,
          mi,
          bi,
          wi = vi || function (e) {
            var t = {
              fn: e,
              next: void 0
            };
            Qo && (Qo.next = t), Jo || (Jo = t, ei()), Qo = t;
          },
          Ei = function (e) {
            var t,
              n;
            this.promise = new e((function (e, r) {
              if (void 0 !== t || void 0 !== n) throw TypeError('Bad Promise constructor');
              t = e, n = r;
            })), this.resolve = ae(t), this.reject = ae(n);
          },
          Di = {
            f: function (e) {
              return new Ei(e);
            }
          },
          xi = function (e) {
            try {
              return {
                error: !1,
                value: e()
              };
            } catch (e) {
              return {
                error: !0,
                value: e
              };
            }
          },
          Si = 'object' == typeof window,
          Ci = ii.set,
          Ai = Ae('species'),
          Oi = 'Promise',
          ki = st.getterFor(Oi),
          Ti = st.set,
          Bi = st.getterFor(Oi),
          Fi = Qr && Qr.prototype,
          _i = Qr,
          Pi = Fi,
          ji = b.TypeError,
          Ni = b.document,
          Ii = b.process,
          Ri = Di.f,
          Mi = Ri,
          Li = !!(Ni && Ni.createEvent && b.dispatchEvent),
          zi = H(b.PromiseRejectionEvent),
          $i = 'unhandledrejection',
          Hi = !1,
          Vi = $t(Oi, (function () {
            var e = Ke(_i),
              t = e !== String(_i);
            if (!t && 66 === J) return !0;
            if (J >= 51 && /native code/.test(e)) return !1;
            var n = new _i((function (e) {
                e(1);
              })),
              r = function (e) {
                e((function () {
                }), (function () {
                }));
              };
            return (n.constructor = {})[Ai] = r, !(Hi = n.then((function () {
            })) instanceof r) || !t && Si && !zi;
          })),
          Ui = Vi || !Bo((function (e) {
            _i.all(e)
              .catch((function () {
              }));
          })),
          Wi = function (e) {
            var t;
            return !(!V(e) || !H(t = e.then)) && t;
          },
          Gi = function (e, t) {
            if (!e.notified) {
              e.notified = !0;
              var n = e.reactions;
              wi((function () {
                for (var r = e.value, o = 1 == e.state, i = 0; n.length > i;) {
                  var a,
                    u,
                    s,
                    l = n[i++],
                    c = o ? l.ok : l.fail,
                    f = l.resolve,
                    d = l.reject,
                    p = l.domain;
                  try {
                    c ? (o || (2 === e.rejection && Xi(e), e.rejection = 1), !0 === c ? a = r : (p && p.enter(), a = c(r), p && (p.exit(), s = !0)), a === l.promise ? d(ji('Promise-chain cycle')) : (u = Wi(a)) ? x(u, a, f, d) : f(a)) : d(r);
                  } catch (e) {
                    p && !s && p.exit(), d(e);
                  }
                }
                e.reactions = [], e.notified = !1, t && !e.rejection && Ki(e);
              }));
            }
          },
          qi = function (e, t, n) {
            var r,
              o;
            Li ? ((r = Ni.createEvent('Event')).promise = t, r.reason = n, r.initEvent(e, !1, !0), b.dispatchEvent(r)) : r = {
              promise: t,
              reason: n
            }, !zi && (o = b['on' + e]) ? o(r) : e === $i && function (e, t) {
              var n = b.console;
              n && n.error && (1 == arguments.length ? n.error(e) : n.error(e, t));
            }('Unhandled promise rejection', n);
          },
          Ki = function (e) {
            x(Ci, b, (function () {
              var t,
                n = e.facade,
                r = e.value;
              if (Yi(e) && (t = xi((function () {
                Io ? Ii.emit('unhandledRejection', r, n) : qi($i, n, r);
              })), e.rejection = Io || Yi(e) ? 2 : 1, t.error)) {
                throw t.value;
              }
            }));
          },
          Yi = function (e) {
            return 1 !== e.rejection && !e.parent;
          },
          Xi = function (e) {
            x(Ci, b, (function () {
              var t = e.facade;
              Io ? Ii.emit('rejectionHandled', t) : qi('rejectionhandled', t, e.value);
            }));
          },
          Zi = function (e, t, n) {
            return function (r) {
              e(t, r, n);
            };
          },
          Ji = function (e, t, n) {
            e.done || (e.done = !0, n && (e = n), e.value = t, e.state = 2, Gi(e, !0));
          },
          Qi = function (e, t, n) {
            if (!e.done) {
              e.done = !0, n && (e = n);
              try {
                if (e.facade === t) throw ji('Promise can\'t be resolved itself');
                var r = Wi(t);
                r ? wi((function () {
                  var n = { done: !1 };
                  try {
                    x(r, t, Zi(Qi, n, e), Zi(Ji, n, e));
                  } catch (t) {
                    Ji(n, t, e);
                  }
                })) : (e.value = t, e.state = 1, Gi(e, !1));
              } catch (t) {
                Ji({ done: !1 }, t, e);
              }
            }
          };
        if (Vi && (Pi = (_i = function (e) {
          lo(this, Pi), ae(e), x(gi, this);
          var t = ki(this);
          try {
            e(Zi(Qi, t), Zi(Ji, t));
          } catch (e) {
            Ji(t, e);
          }
        }).prototype, (gi = function (e) {
          Ti(this, {
            type: Oi,
            done: !1,
            notified: !1,
            parent: !1,
            reactions: [],
            rejection: !1,
            state: 0,
            value: void 0
          });
        }).prototype = eo(Pi, {
          then: function (e, t) {
            var n = Bi(this),
              r = n.reactions,
              o = Ri(Po(this, _i));
            return o.ok = !H(e) || e, o.fail = H(t) && t, o.domain = Io ? Ii.domain : void 0, n.parent = !0, r[r.length] = o, 0 != n.state && Gi(n, !1), o.promise;
          },
          catch: function (e) {
            return this.then(void 0, e);
          }
        }), yi = function () {
          var e = new gi,
            t = ki(e);
          this.promise = e, this.resolve = Zi(Qi, t), this.reject = Zi(Ji, t);
        }, Di.f = Ri = function (e) {
          return e === _i || e === mi ? new yi(e) : Mi(e);
        }, H(Qr) && Fi !== Object.prototype)) {
          bi = Fi.then, Hi || (pt(Fi, 'then', (function (e, t) {
            var n = this;
            return new _i((function (e, t) {
              x(bi, n, e, t);
            })).then(e, t);
          }), { unsafe: !0 }), pt(Fi, 'catch', Pi.catch, { unsafe: !0 }));
          try {
            delete Fi.constructor;
          } catch (e) {
          }
          ro && ro(Fi, Pi);
        }

        function ea(e, t, r) {
          return void 0 === r && (r = ''), l(this, void 0, void 0, (function () {
            var o,
              i,
              a,
              u,
              s,
              l,
              f;
            return c(this, (function (c) {
              switch (c.label) {
                case 0:
                  return t ? (e.restoreSelection(), o = e.getMenuConfig('insertVideo'), i = o.onInsertedVideo, a = o.checkVideo, u = o.parseVideoSrc, [4, a(t)]) : [2];
                case 1:
                  return 'string' == typeof (s = c.sent()) ? (e.alert(s, 'error'), [2]) : null == s ? [2] : [4, u(t)];
                case 2:
                  return 0 !== (l = c.sent()).trim()
                    .indexOf('<iframe ') && (l = l.replace(/</g, '&lt;')
                    .replace(/>/g, '&gt;')), f = {
                    type: 'video',
                    src: l,
                    poster: r,
                    children: [{ text: '' }]
                  }, Promise.resolve()
                    .then((function () {
                      n.Transforms.insertNodes(e, f);
                    })), i(f), [2];
              }
            }));
          }));
        }

        function ta() {
          return Jr('w-e-insert-video');
        }

        Vt({
          global: !0,
          wrap: !0,
          forced: Vi
        }, { Promise: _i }), ao(_i, Oi, !1), function (e) {
          var t = W(e),
            n = He.f;
          E && t && !t[uo] && n(t, uo, {
            configurable: !0,
            get: function () {
              return this;
            }
          });
        }(Oi), mi = W(Oi), Vt({
          target: Oi,
          stat: !0,
          forced: Vi
        }, {
          reject: function (e) {
            var t = Ri(this);
            return x(t.reject, void 0, e), t.promise;
          }
        }), Vt({
          target: Oi,
          stat: !0,
          forced: Vi
        }, {
          resolve: function (e) {
            return function (e, t) {
              if (Le(e), V(t) && t.constructor === e) return t;
              var n = Di.f(e);
              return (0, n.resolve)(t), n.promise;
            }(this, e);
          }
        }), Vt({
          target: Oi,
          stat: !0,
          forced: Ui
        }, {
          all: function (e) {
            var t = this,
              n = Ri(t),
              r = n.resolve,
              o = n.reject,
              i = xi((function () {
                var n = ae(t.resolve),
                  i = [],
                  a = 0,
                  u = 1;
                Eo(e, (function (e) {
                  var s = a++,
                    l = !1;
                  u++, x(n, t, e)
                    .then((function (e) {
                      l || (l = !0, i[s] = e, --u || r(i));
                    }), o);
                })), --u || r(i);
              }));
            return i.error && o(i.value), n.promise;
          },
          race: function (e) {
            var t = this,
              n = Ri(t),
              r = n.reject,
              o = xi((function () {
                var o = ae(t.resolve);
                Eo(e, (function (e) {
                  x(o, t, e)
                    .then(n.resolve, r);
                }));
              }));
            return o.error && r(o.value), n.promise;
          }
        });
        var na = function () {
            function t() {
              this.title = e.t('videoModule.insertVideo'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>', this.tag = 'button', this.showModal = !0, this.modalWidth = 320, this.$content = null, this.srcInputId = ta(), this.posterInputId = ta(), this.buttonId = ta();
            }

            return t.prototype.getValue = function (e) {
              return '';
            }, t.prototype.isActive = function (e) {
              return !1;
            }, t.prototype.exec = function (e, t) {
            }, t.prototype.isDisabled = function (t) {
              var r = t.selection;
              return null == r || !n.Range.isCollapsed(r) || !!e.DomEditor.getSelectedElems(t)
                .some((function (n) {
                  return 'pre' === e.DomEditor.getNodeType(n) || !!t.isVoid(n);
                }));
            }, t.prototype.getModalPositionNode = function (e) {
              return null;
            }, t.prototype.getModalContentElem = function (t) {
              var n = this,
                r = this,
                o = r.srcInputId,
                i = r.posterInputId,
                a = r.buttonId,
                s = d(e.genModalInputElems(e.t('videoModule.videoSrc'), o, e.t('videoModule.videoSrcPlaceHolder')), 2),
                f = s[0],
                p = s[1],
                h = d(e.genModalInputElems(e.t('videoModule.videoPoster'), i, e.t('videoModule.videoPosterPlaceHolder')), 2),
                v = h[0],
                g = h[1],
                y = u.default(p),
                m = u.default(g),
                b = d(e.genModalButtonElems(a, e.t('videoModule.ok')), 1)[0];
              if (null == this.$content) {
                var w = u.default('<div></div>');
                w.on('click', '#' + a, (function (e) {
                  return l(n, void 0, void 0, (function () {
                    var n,
                      r;
                    return c(this, (function (a) {
                      switch (a.label) {
                        case 0:
                          return e.preventDefault(), n = w.find('#' + o)
                            .val()
                            .trim(), r = w.find('#' + i)
                            .val()
                            .trim(), [4, ea(t, n, r)];
                        case 1:
                          return a.sent(), t.hidePanelOrModal(), [2];
                      }
                    }));
                  }));
                })), this.$content = w;
              }
              var E = this.$content;
              return E.empty(), E.append(f), E.append(v), E.append(b), y.val(''), m.val(''), setTimeout((function () {
                y.focus();
              })), E[0];
            }, t;
          }(),
          ra = _([].join),
          oa = M != Object,
          ia = function (e, t) {
            var n = [].join;
            return !!n && w((function () {
              n.call(null, t || function () {
                throw 1;
              }, 1);
            }));
          }(0, ',');
        Vt({
          target: 'Array',
          proto: !0,
          forced: oa || !ia
        }, {
          join: function (e) {
            return ra($(this), void 0 === e ? ',' : e);
          }
        });
        var aa,
          ua,
          sa,
          la = !w((function () {
            function e() {
            }

            return e.prototype.constructor = null, Object.getPrototypeOf(new e) !== e.prototype;
          })),
          ca = Je('IE_PROTO'),
          fa = b.Object,
          da = fa.prototype,
          pa = la ? fa.getPrototypeOf : function (e) {
            var t = ve(e);
            if (ye(t, ca)) return t[ca];
            var n = t.constructor;
            return H(n) && t instanceof n ? n.prototype : t instanceof fa ? da : null;
          },
          ha = Ae('iterator'),
          va = !1;
        [].keys && ('next' in (sa = [].keys()) ? (ua = pa(pa(sa))) !== Object.prototype && (aa = ua) : va = !0);
        var ga = null == aa || w((function () {
          var e = {};
          return aa[ha].call(e) !== e;
        }));
        ga && (aa = {}), H(aa[ha]) || pt(aa, ha, (function () {
          return this;
        }));
        var ya = {
            IteratorPrototype: aa,
            BUGGY_SAFARI_ITERATORS: va
          },
          ma = ya.IteratorPrototype,
          ba = function () {
            return this;
          },
          wa = dt.PROPER,
          Ea = dt.CONFIGURABLE,
          Da = ya.IteratorPrototype,
          xa = ya.BUGGY_SAFARI_ITERATORS,
          Sa = Ae('iterator'),
          Ca = 'keys',
          Aa = 'values',
          Oa = 'entries',
          ka = function () {
            return this;
          },
          Ta = function (e, t, n, r, o, i, a) {
            !function (e, t, n, r) {
              var o = t + ' Iterator';
              e.prototype = Dn(ma, { next: O(+!r, n) }), ao(e, o, !1), co[o] = ba;
            }(n, t, r);
            var u,
              s,
              l,
              c = function (e) {
                if (e === o && v) return v;
                if (!xa && e in p) return p[e];
                switch (e) {
                  case Ca:
                  case Aa:
                  case Oa:
                    return function () {
                      return new n(this, e);
                    };
                }
                return function () {
                  return new n(this);
                };
              },
              f = t + ' Iterator',
              d = !1,
              p = e.prototype,
              h = p[Sa] || p['@@iterator'] || o && p[o],
              v = !xa && h || c(o),
              g = 'Array' == t && p.entries || h;
            if (g && (u = pa(g.call(new e))) !== Object.prototype && u.next && (pa(u) !== Da && (ro ? ro(u, Da) : H(u[Sa]) || pt(u, Sa, ka)), ao(u, f, !0)), wa && o == Aa && h && h.name !== Aa && (Ea ? Ve(p, 'name', Aa) : (d = !0, v = function () {
              return x(h, this);
            })), o) {
              if (s = {
                values: c(Aa),
                keys: i ? v : c(Ca),
                entries: c(Oa)
              }, a) {
                for (l in s) (xa || d || !(l in p)) && pt(p, l, s[l]);
              } else {
                Vt({
                  target: t,
                  proto: !0,
                  forced: xa || d
                }, s);
              }
            }
            return p[Sa] !== v && pt(p, Sa, v, { name: o }), co[t] = v, s;
          },
          Ba = 'Array Iterator',
          Fa = st.set,
          _a = st.getterFor(Ba),
          Pa = Ta(Array, 'Array', (function (e, t) {
            Fa(this, {
              type: Ba,
              target: $(e),
              index: 0,
              kind: t
            });
          }), (function () {
            var e = _a(this),
              t = e.target,
              n = e.kind,
              r = e.index++;
            return !t || r >= t.length ? (e.target = void 0, {
              value: void 0,
              done: !0
            }) : 'keys' == n ? {
              value: r,
              done: !1
            } : 'values' == n ? {
              value: t[r],
              done: !1
            } : {
              value: [r, t[r]],
              done: !1
            };
          }), 'values');
        co.Arguments = co.Array, Cn('keys'), Cn('values'), Cn('entries');
        var ja = Fr.charAt,
          Na = 'String Iterator',
          Ia = st.set,
          Ra = st.getterFor(Na);
        Ta(String, 'String', (function (e) {
          Ia(this, {
            type: Na,
            string: Jt(e),
            index: 0
          });
        }), (function () {
          var e,
            t = Ra(this),
            n = t.string,
            r = t.index;
          return r >= n.length ? {
            value: void 0,
            done: !0
          } : (e = ja(n, r), t.index += e.length, {
            value: e,
            done: !1
          });
        }));
        var Ma = function (e, t, n) {
            var r = Be(t);
            r in e ? He.f(e, r, O(0, n)) : e[r] = n;
          },
          La = b.Array,
          za = Math.max,
          $a = Bt.f,
          Ha = 'object' == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [],
          Va = function (e) {
            try {
              return $a(e);
            } catch (e) {
              return function (e, t, n) {
                for (var r = Dt(e), o = bt(t, r), i = bt(void 0 === n ? r : n, r), a = La(za(i - o, 0)), u = 0; o < i; o++, u++) Ma(a, u, e[o]);
                return a.length = u, a;
              }(Ha);
            }
          },
          Ua = {
            f: function (e) {
              return Ha && 'Window' == N(e) ? Va(e) : $a($(e));
            }
          },
          Wa = w((function () {
            if ('function' == typeof ArrayBuffer) {
              var e = new ArrayBuffer(8);
              Object.isExtensible(e) && Object.defineProperty(e, 'a', { value: 8 });
            }
          })),
          Ga = Object.isExtensible,
          qa = w((function () {
            Ga(1);
          })) || Wa ? function (e) {
            return !!V(e) && (!Wa || 'ArrayBuffer' != N(e)) && (!Ga || Ga(e));
          } : Ga,
          Ka = !w((function () {
            return Object.isExtensible(Object.preventExtensions({}));
          })),
          Ya = v((function (e) {
            var t = He.f,
              n = !1,
              r = Ee('meta'),
              o = 0,
              i = function (e) {
                t(e, r, {
                  value: {
                    objectID: 'O' + o++,
                    weakData: {}
                  }
                });
              },
              a = e.exports = {
                enable: function () {
                  a.enable = function () {
                  }, n = !0;
                  var e = Bt.f,
                    t = _([].splice),
                    o = {};
                  o[r] = 1, e(o).length && (Bt.f = function (n) {
                    for (var o = e(n), i = 0, a = o.length; i < a; i++) {
                      if (o[i] === r) {
                        t(o, i, 1);
                        break;
                      }
                    }
                    return o;
                  }, Vt({
                    target: 'Object',
                    stat: !0,
                    forced: !0
                  }, { getOwnPropertyNames: Ua.f }));
                },
                fastKey: function (e, t) {
                  if (!V(e)) return 'symbol' == typeof e ? e : ('string' == typeof e ? 'S' : 'P') + e;
                  if (!ye(e, r)) {
                    if (!qa(e)) return 'F';
                    if (!t) return 'E';
                    i(e);
                  }
                  return e[r].objectID;
                },
                getWeakData: function (e, t) {
                  if (!ye(e, r)) {
                    if (!qa(e)) return !0;
                    if (!t) return !1;
                    i(e);
                  }
                  return e[r].weakData;
                },
                onFreeze: function (e) {
                  return Ka && n && qa(e) && !ye(e, r) && i(e), e;
                }
              };
            Qe[r] = !0;
          })),
          Xa = Ya.getWeakData,
          Za = st.set,
          Ja = st.getterFor,
          Qa = Un.find,
          eu = Un.findIndex,
          tu = _([].splice),
          nu = 0,
          ru = function (e) {
            return e.frozen || (e.frozen = new ou);
          },
          ou = function () {
            this.entries = [];
          },
          iu = function (e, t) {
            return Qa(e.entries, (function (e) {
              return e[0] === t;
            }));
          };
        ou.prototype = {
          get: function (e) {
            var t = iu(this, e);
            if (t) return t[1];
          },
          has: function (e) {
            return !!iu(this, e);
          },
          set: function (e, t) {
            var n = iu(this, e);
            n ? n[1] = t : this.entries.push([e, t]);
          },
          delete: function (e) {
            var t = eu(this.entries, (function (t) {
              return t[0] === e;
            }));
            return ~t && tu(this.entries, t, 1), !!~t;
          }
        };
        var au,
          uu = {
            getConstructor: function (e, t, n, r) {
              var o = e((function (e, o) {
                  lo(e, i), Za(e, {
                    type: t,
                    id: nu++,
                    frozen: void 0
                  }), null != o && Eo(o, e[r], {
                    that: e,
                    AS_ENTRIES: n
                  });
                })),
                i = o.prototype,
                a = Ja(t),
                u = function (e, t, n) {
                  var r = a(e),
                    o = Xa(Le(t), !0);
                  return !0 === o ? ru(r)
                    .set(t, n) : o[r.id] = n, e;
                };
              return eo(i, {
                delete: function (e) {
                  var t = a(this);
                  if (!V(e)) return !1;
                  var n = Xa(e);
                  return !0 === n ? ru(t)
                    .delete(e) : n && ye(n, t.id) && delete n[t.id];
                },
                has: function (e) {
                  var t = a(this);
                  if (!V(e)) return !1;
                  var n = Xa(e);
                  return !0 === n ? ru(t)
                    .has(e) : n && ye(n, t.id);
                }
              }), eo(i, n ? {
                get: function (e) {
                  var t = a(this);
                  if (V(e)) {
                    var n = Xa(e);
                    return !0 === n ? ru(t)
                      .get(e) : n ? n[t.id] : void 0;
                  }
                },
                set: function (e, t) {
                  return u(this, e, t);
                }
              } : {
                add: function (e) {
                  return u(this, e, !0);
                }
              }), o;
            }
          },
          su = st.enforce,
          lu = !b.ActiveXObject && 'ActiveXObject' in b,
          cu = function (e) {
            return function () {
              return e(this, arguments.length ? arguments[0] : void 0);
            };
          },
          fu = function (e, t, n) {
            var r = -1 !== e.indexOf('Map'),
              o = -1 !== e.indexOf('Weak'),
              i = r ? 'set' : 'add',
              a = b[e],
              u = a && a.prototype,
              s = a,
              l = {},
              c = function (e) {
                var t = _(u[e]);
                pt(u, e, 'add' == e ? function (e) {
                  return t(this, 0 === e ? 0 : e), this;
                } : 'delete' == e ? function (e) {
                  return !(o && !V(e)) && t(this, 0 === e ? 0 : e);
                } : 'get' == e ? function (e) {
                  return o && !V(e) ? void 0 : t(this, 0 === e ? 0 : e);
                } : 'has' == e ? function (e) {
                  return !(o && !V(e)) && t(this, 0 === e ? 0 : e);
                } : function (e, n) {
                  return t(this, 0 === e ? 0 : e, n), this;
                });
              };
            if ($t(e, !H(a) || !(o || u.forEach && !w((function () {
              (new a).entries()
                .next();
            }))))) {
              s = n.getConstructor(t, e, r, i), Ya.enable();
            } else if ($t(e, !0)) {
              var f = new s,
                d = f[i](o ? {} : -0, 1) != f,
                p = w((function () {
                  f.has(1);
                })),
                h = Bo((function (e) {
                  new a(e);
                })),
                v = !o && w((function () {
                  for (var e = new a, t = 5; t--;) e[i](t, t);
                  return !e.has(-0);
                }));
              h || ((s = t((function (e, t) {
                lo(e, u);
                var n = function (e, t, n) {
                  var r,
                    o;
                  return ro && H(r = t.constructor) && r !== n && V(o = r.prototype) && o !== n.prototype && ro(e, o), e;
                }(new a, e, s);
                return null != t && Eo(t, n[i], {
                  that: n,
                  AS_ENTRIES: r
                }), n;
              }))).prototype = u, u.constructor = s), (p || v) && (c('delete'), c('has'), r && c('get')), (v || d) && c(i), o && u.clear && delete u.clear;
            }
            return l[e] = s, Vt({
              global: !0,
              forced: s != a
            }, l), ao(s, e), o || n.setStrong(s, e, r), s;
          }('WeakMap', cu, uu);
        if (Xe && lu) {
          au = uu.getConstructor(cu, 'WeakMap', !0), Ya.enable();
          var du = fu.prototype,
            pu = _(du.delete),
            hu = _(du.has),
            vu = _(du.get),
            gu = _(du.set);
          eo(du, {
            delete: function (e) {
              if (V(e) && !qa(e)) {
                var t = su(this);
                return t.frozen || (t.frozen = new au), pu(this, e) || t.frozen.delete(e);
              }
              return pu(this, e);
            },
            has: function (e) {
              if (V(e) && !qa(e)) {
                var t = su(this);
                return t.frozen || (t.frozen = new au), hu(this, e) || t.frozen.has(e);
              }
              return hu(this, e);
            },
            get: function (e) {
              if (V(e) && !qa(e)) {
                var t = su(this);
                return t.frozen || (t.frozen = new au), hu(this, e) ? vu(this, e) : t.frozen.get(e);
              }
              return vu(this, e);
            },
            set: function (e, t) {
              if (V(e) && !qa(e)) {
                var n = su(this);
                n.frozen || (n.frozen = new au), hu(this, e) ? gu(this, e, t) : n.frozen.set(e, t);
              } else {
                gu(this, e, t);
              }
              return this;
            }
          });
        }
        var yu = {
            CSSRuleList: 0,
            CSSStyleDeclaration: 0,
            CSSValueList: 0,
            ClientRectList: 0,
            DOMRectList: 0,
            DOMStringList: 0,
            DOMTokenList: 1,
            DataTransferItemList: 0,
            FileList: 0,
            HTMLAllCollection: 0,
            HTMLCollection: 0,
            HTMLFormElement: 0,
            HTMLSelectElement: 0,
            MediaList: 0,
            MimeTypeArray: 0,
            NamedNodeMap: 0,
            NodeList: 1,
            PaintRequestList: 0,
            Plugin: 0,
            PluginArray: 0,
            SVGLengthList: 0,
            SVGNumberList: 0,
            SVGPathSegList: 0,
            SVGPointList: 0,
            SVGStringList: 0,
            SVGTransformList: 0,
            SourceBufferList: 0,
            StyleSheetList: 0,
            TextTrackCueList: 0,
            TextTrackList: 0,
            TouchList: 0
          },
          mu = Pe('span').classList,
          bu = mu && mu.constructor && mu.constructor.prototype,
          wu = bu === Object.prototype ? void 0 : bu,
          Eu = Ae('iterator'),
          Du = Ae('toStringTag'),
          xu = Pa.values,
          Su = function (e, t) {
            if (e) {
              if (e[Eu] !== xu) {
                try {
                  Ve(e, Eu, xu);
                } catch (t) {
                  e[Eu] = xu;
                }
              }
              if (e[Du] || Ve(e, Du, t), yu[t]) {
                for (var n in Pa) {
                  if (e[n] !== Pa[n]) {
                    try {
                      Ve(e, n, Pa[n]);
                    } catch (t) {
                      e[n] = Pa[n];
                    }
                  }
                }
              }
            }
          };
        for (var Cu in yu) Su(b[Cu] && b[Cu].prototype, Cu);
        Su(wu, 'DOMTokenList');
        var Au = dt.EXISTS,
          Ou = He.f,
          ku = Function.prototype,
          Tu = _(ku.toString),
          Bu = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,
          Fu = _(Bu.exec);
        E && !Au && Ou(ku, 'name', {
          configurable: !0,
          get: function () {
            try {
              return Fu(Bu, Tu(this))[1];
            } catch (e) {
              return '';
            }
          }
        });
        var _u = Ae('species'),
          Pu = function (e) {
            return J >= 51 || !w((function () {
              var t = [];
              return (t.constructor = {})[_u] = function () {
                return { foo: 1 };
              }, 1 !== t[e](Boolean).foo;
            }));
          }('slice'),
          ju = Ae('species'),
          Nu = b.Array,
          Iu = Math.max;

        function Ru(e) {
          return e.getMenuConfig('uploadVideo');
        }

        Vt({
          target: 'Array',
          proto: !0,
          forced: !Pu
        }, {
          slice: function (e, t) {
            var n,
              r,
              o,
              i = $(this),
              a = Dt(i),
              u = bt(e, a),
              s = bt(void 0 === t ? a : t, a);
            if (Bn(i) && (n = i.constructor, (Mn(n) && (n === Nu || Bn(n.prototype)) || V(n) && null === (n = n[ju])) && (n = void 0), n === Nu || void 0 === n)) return jo(i, u, s);
            for (r = new (void 0 === n ? Nu : n)(Iu(s - u, 0)), o = 0; u < s; u++, o++) u in i && Ma(r, o, i[u]);
            return r.length = o, r;
          }
        });
        var Mu = new WeakMap;

        function Lu(t, n) {
          return l(this, void 0, void 0, (function () {
            var r,
              o,
              i,
              a;
            return c(this, (function (u) {
              switch (u.label) {
                case 0:
                  return r = function (t) {
                    var n = Mu.get(t);
                    if (null != n) return n;
                    var r = Ru(t),
                      o = r.onSuccess,
                      i = r.onProgress,
                      a = r.onFailed,
                      u = r.customInsert,
                      l = r.onError;
                    return n = e.createUploader(s(s({}, r), {
                      onProgress: function (e) {
                        t.showProgressBar(e), i && i(e);
                      },
                      onSuccess: function (e, n) {
                        if (u) {
                          u(n, (function (e, n) {
                            return ea(t, e, n);
                          }));
                        } else {
                          var r = n.errno,
                            i = void 0 === r ? 1 : r,
                            s = n.data,
                            l = void 0 === s ? {} : s;
                          if (0 !== i) return console.error('\'' + e.name + '\' upload failed', n), void a(e, n);
                          var c = l.url,
                            f = void 0 === c ? '' : c,
                            d = l.poster;
                          ea(t, f, void 0 === d ? '' : d), o(e, n);
                        }
                      },
                      onError: function (e, t, n) {
                        var r = e.name;
                        console.error('\'' + r + ' upload error', t, n), l && l(e, t, n);
                      }
                    })), Mu.set(t, n), n;
                  }(t), o = n.name, i = n.type, a = n.size, r.addFile({
                    name: o,
                    type: i,
                    size: a,
                    data: n
                  }), [4, r.upload()];
                case 1:
                  return u.sent(), [2];
              }
            }));
          }));
        }

        var zu = function () {
            function t() {
              this.title = e.t('videoModule.uploadVideo'), this.iconSvg = '<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>', this.tag = 'button';
            }

            return t.prototype.getValue = function (e) {
              return '';
            }, t.prototype.isActive = function (e) {
              return !1;
            }, t.prototype.exec = function (e, t) {
              var n = this.getMenuConfig(e),
                r = n.allowedFileTypes,
                o = void 0 === r ? [] : r,
                i = n.customBrowseAndUpload;
              if (i) {
                i((function (t) {
                  return ea(e, t);
                }));
              } else {
                var a = '';
                o.length > 0 && (a = 'accept="' + o.join(', ') + '"');
                var s = u.default('body'),
                  f = u.default('<input type="file" ' + a + ' multiple/>');
                f.hide(), s.append(f), f.click(), f.on('change', (function () {
                  var t = f[0].files;
                  !function (e, t) {
                    var n,
                      r;
                    l(this, void 0, void 0, (function () {
                      var o,
                        i,
                        a,
                        u,
                        s,
                        l;
                      return c(this, (function (c) {
                        switch (c.label) {
                          case 0:
                            if (null == t) return [2];
                            o = Array.prototype.slice.call(t), i = Ru(e).customUpload, c.label = 1;
                          case 1:
                            c.trys.push([1, 9, 10, 15]), a = p(o), c.label = 2;
                          case 2:
                            return [4, a.next()];
                          case 3:
                            return (u = c.sent()).done ? [3, 8] : (s = u.value, i ? [4, i(s, (function (t, n) {
                              return ea(e, t, n);
                            }))] : [3, 5]);
                          case 4:
                            return c.sent(), [3, 7];
                          case 5:
                            return [4, Lu(e, s)];
                          case 6:
                            c.sent(), c.label = 7;
                          case 7:
                            return [3, 2];
                          case 8:
                            return [3, 15];
                          case 9:
                            return l = c.sent(), n = { error: l }, [3, 15];
                          case 10:
                            return c.trys.push([10, , 13, 14]), u && !u.done && (r = a.return) ? [4, r.call(a)] : [3, 12];
                          case 11:
                            c.sent(), c.label = 12;
                          case 12:
                            return [3, 14];
                          case 13:
                            if (n) throw n.error;
                            return [7];
                          case 14:
                            return [7];
                          case 15:
                            return [2];
                        }
                      }));
                    }));
                  }(e, t);
                }));
              }
            }, t.prototype.isDisabled = function (t) {
              var r = t.selection;
              return null == r || !n.Range.isCollapsed(r) || !!e.DomEditor.getSelectedElems(t)
                .some((function (n) {
                  return 'pre' === e.DomEditor.getNodeType(n) || !!t.isVoid(n);
                }));
            }, t.prototype.getMenuConfig = function (e) {
              return e.getMenuConfig('uploadVideo');
            }, t;
          }(),
          $u = dt.PROPER,
          Hu = 'toString',
          Vu = RegExp.prototype,
          Uu = Vu.toString,
          Wu = _(Qn),
          Gu = w((function () {
            return '/a/b' != Uu.call({
              source: 'a',
              flags: 'b'
            });
          })),
          qu = $u && Uu.name != Hu;

        function Ku() {
          return Jr('w-e-insert-video');
        }

        (Gu || qu) && pt(RegExp.prototype, Hu, (function () {
          var e = Le(this),
            t = Jt(e.source),
            n = e.flags;
          return '/' + t + '/' + Jt(void 0 === n && G(Vu, e) && !('flags' in Vu) ? Wu(e) : n);
        }), { unsafe: !0 });
        var Yu = function () {
            function t() {
              this.title = e.t('videoModule.editSize'), this.tag = 'button', this.showModal = !0, this.modalWidth = 320, this.$content = null, this.widthInputId = Ku(), this.heightInputId = Ku(), this.buttonId = Ku();
            }

            return t.prototype.getSelectedVideoNode = function (t) {
              return e.DomEditor.getSelectedNodeByType(t, 'video');
            }, t.prototype.getValue = function (e) {
              return '';
            }, t.prototype.isActive = function (e) {
              return !1;
            }, t.prototype.exec = function (e, t) {
            }, t.prototype.isDisabled = function (e) {
              return null == e.selection || null == this.getSelectedVideoNode(e);
            }, t.prototype.getModalPositionNode = function (e) {
              return this.getSelectedVideoNode(e);
            }, t.prototype.getModalContentElem = function (t) {
              var r = this,
                o = r.widthInputId,
                i = r.heightInputId,
                a = r.buttonId,
                s = d(e.genModalInputElems(e.t('videoModule.width'), o, 'auto'), 2),
                l = s[0],
                c = s[1],
                f = u.default(c),
                p = d(e.genModalInputElems(e.t('videoModule.height'), i, 'auto'), 2),
                h = p[0],
                v = p[1],
                g = u.default(v),
                y = d(e.genModalButtonElems(a, e.t('videoModule.ok')), 1)[0];
              if (null == this.$content) {
                var m = u.default('<div></div>');
                m.on('click', '#' + a, (function (r) {
                  r.preventDefault();
                  var a = m.find('#' + o)
                      .val()
                      .trim(),
                    u = m.find('#' + i)
                      .val()
                      .trim(),
                    s = parseInt(a),
                    l = parseInt(u),
                    c = s ? s.toString() : 'auto',
                    f = l ? l.toString() : 'auto';
                  t.restoreSelection(), n.Transforms.setNodes(t, {
                    width: c,
                    height: f
                  }, {
                    match: function (t) {
                      return e.DomEditor.checkNodeType(t, 'video');
                    }
                  }), t.hidePanelOrModal();
                })), this.$content = m;
              }
              var b = this.$content;
              b.empty(), b.append(l), b.append(h), b.append(y);
              var w = this.getSelectedVideoNode(t);
              if (null == w) return b[0];
              var E = w.width,
                D = void 0 === E ? 'auto' : E,
                x = w.height,
                S = void 0 === x ? 'auto' : x;
              return f.val(D), g.val(S), setTimeout((function () {
                f.focus();
              })), b[0];
            }, t;
          }(),
          Xu = {
            renderElems: [dn],
            elemsToHtml: [pn],
            preParseHtml: [On],
            parseElemsHtml: [Jn],
            menus: [{
              key: 'insertVideo',
              factory: function () {
                return new na;
              },
              config: {
                onInsertedVideo: function (e) {
                },
                checkVideo: function (e) {
                  return !0;
                },
                parseVideoSrc: function (e) {
                  return e;
                }
              }
            }, {
              key: 'uploadVideo',
              factory: function () {
                return new zu;
              },
              config: {
                server: '',
                fieldName: 'wangeditor-uploaded-video',
                maxFileSize: 10485760,
                maxNumberOfFiles: 5,
                allowedFileTypes: ['video/*'],
                meta: {},
                metaWithUrl: !1,
                withCredentials: !1,
                timeout: 3e4,
                onBeforeUpload: function (e) {
                  return e;
                },
                onProgress: function (e) {
                },
                onSuccess: function (e, t) {
                },
                onFailed: function (e, t) {
                },
                onError: function (e, t, n) {
                }
              }
            }, {
              key: 'editVideoSize',
              factory: function () {
                return new Yu;
              }
            }],
            editorPlugin: function (t) {
              var r = t.isVoid,
                o = t.normalizeNode,
                i = t;
              return i.isVoid = function (e) {
                return 'video' === e.type || r(e);
              }, i.normalizeNode = function (t) {
                var r = d(t, 2),
                  a = r[0],
                  u = r[1];
                return 'video' === e.DomEditor.getNodeType(a) && e.DomEditor.isLastNode(i, a) && n.Transforms.insertNodes(i, e.DomEditor.genEmptyParagraph(), { at: [u[0] + 1] }), o([a, u]);
              }, i;
            }
          };
        return Xu;
      }(BE, OE, TE, kE, Jm);
    })),
    rD = r((function (e, n) {
      e.exports = function (e, n, r) {
        function o(e) {
          return e && 'object' == typeof e && 'default' in e ? e : { default: e };
        }

        var i = o(r);
        e.i18nAddResources('en', {
          uploadImgModule: {
            uploadImage: 'Upload Image',
            uploadError: '{{fileName}} upload error'
          }
        }), e.i18nAddResources('zh-CN', {
          uploadImgModule: {
            uploadImage: '上传图片',
            uploadError: '{{fileName}} 上传出错'
          }
        });
        var a = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof window ? window : void 0 !== t ? t : 'undefined' != typeof self ? self : {};

        function u(e) {
          var t = { exports: {} };
          return e(t, t.exports), t.exports;
        }

        var s,
          l,
          c = function (e) {
            return e && e.Math == Math && e;
          },
          f = c('object' == typeof globalThis && globalThis) || c('object' == typeof window && window) || c('object' == typeof self && self) || c('object' == typeof a && a) || function () {
            return this;
          }() || Function('return this')(),
          d = function (e) {
            try {
              return !!e();
            } catch (e) {
              return !0;
            }
          },
          p = !d((function () {
            return 7 != Object.defineProperty({}, 1, {
              get: function () {
                return 7;
              }
            })[1];
          })),
          h = Function.prototype.call,
          v = h.bind ? h.bind(h) : function () {
            return h.apply(h, arguments);
          },
          g = {}.propertyIsEnumerable,
          y = Object.getOwnPropertyDescriptor,
          m = {
            f: y && !g.call({ 1: 2 }, 1) ? function (e) {
              var t = y(this, e);
              return !!t && t.enumerable;
            } : g
          },
          b = function (e, t) {
            return {
              enumerable: !(1 & e),
              configurable: !(2 & e),
              writable: !(4 & e),
              value: t
            };
          },
          w = Function.prototype,
          E = w.bind,
          D = w.call,
          x = E && E.bind(D),
          S = E ? function (e) {
            return e && x(D, e);
          } : function (e) {
            return e && function () {
              return D.apply(e, arguments);
            };
          },
          C = S({}.toString),
          A = S(''.slice),
          O = function (e) {
            return A(C(e), 8, -1);
          },
          k = f.Object,
          T = S(''.split),
          B = d((function () {
            return !k('z')
              .propertyIsEnumerable(0);
          })) ? function (e) {
            return 'String' == O(e) ? T(e, '') : k(e);
          } : k,
          F = f.TypeError,
          _ = function (e) {
            if (null == e) throw F('Can\'t call method on ' + e);
            return e;
          },
          P = function (e) {
            return B(_(e));
          },
          j = function (e) {
            return 'function' == typeof e;
          },
          N = function (e) {
            return 'object' == typeof e ? null !== e : j(e);
          },
          I = function (e) {
            return j(e) ? e : void 0;
          },
          R = function (e, t) {
            return arguments.length < 2 ? I(f[e]) : f[e] && f[e][t];
          },
          M = S({}.isPrototypeOf),
          L = R('navigator', 'userAgent') || '',
          z = f.process,
          $ = f.Deno,
          H = z && z.versions || $ && $.version,
          V = H && H.v8;
        V && (l = (s = V.split('.'))[0] > 0 && s[0] < 4 ? 1 : +(s[0] + s[1])), !l && L && (!(s = L.match(/Edge\/(\d+)/)) || s[1] >= 74) && (s = L.match(/Chrome\/(\d+)/)) && (l = +s[1]);
        var U = l,
          W = !!Object.getOwnPropertySymbols && !d((function () {
            var e = Symbol();
            return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && U && U < 41;
          })),
          G = W && !Symbol.sham && 'symbol' == typeof Symbol.iterator,
          q = f.Object,
          K = G ? function (e) {
            return 'symbol' == typeof e;
          } : function (e) {
            var t = R('Symbol');
            return j(t) && M(t.prototype, q(e));
          },
          Y = f.String,
          X = function (e) {
            try {
              return Y(e);
            } catch (e) {
              return 'Object';
            }
          },
          Z = f.TypeError,
          J = function (e) {
            if (j(e)) return e;
            throw Z(X(e) + ' is not a function');
          },
          Q = function (e, t) {
            var n = e[t];
            return null == n ? void 0 : J(n);
          },
          ee = f.TypeError,
          te = Object.defineProperty,
          ne = function (e, t) {
            try {
              te(f, e, {
                value: t,
                configurable: !0,
                writable: !0
              });
            } catch (n) {
              f[e] = t;
            }
            return t;
          },
          re = '__core-js_shared__',
          oe = f[re] || ne(re, {}),
          ie = u((function (e) {
            (e.exports = function (e, t) {
              return oe[e] || (oe[e] = void 0 !== t ? t : {});
            })('versions', [])
              .push({
                version: '3.19.3',
                mode: 'global',
                copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
              });
          })),
          ae = f.Object,
          ue = function (e) {
            return ae(_(e));
          },
          se = S({}.hasOwnProperty),
          le = Object.hasOwn || function (e, t) {
            return se(ue(e), t);
          },
          ce = 0,
          fe = Math.random(),
          de = S(1..toString),
          pe = function (e) {
            return 'Symbol(' + (void 0 === e ? '' : e) + ')_' + de(++ce + fe, 36);
          },
          he = ie('wks'),
          ve = f.Symbol,
          ge = ve && ve.for,
          ye = G ? ve : ve && ve.withoutSetter || pe,
          me = function (e) {
            if (!le(he, e) || !W && 'string' != typeof he[e]) {
              var t = 'Symbol.' + e;
              W && le(ve, e) ? he[e] = ve[e] : he[e] = G && ge ? ge(t) : ye(t);
            }
            return he[e];
          },
          be = f.TypeError,
          we = me('toPrimitive'),
          Ee = function (e, t) {
            if (!N(e) || K(e)) return e;
            var n,
              r = Q(e, we);
            if (r) {
              if (void 0 === t && (t = 'default'), n = v(r, e, t), !N(n) || K(n)) return n;
              throw be('Can\'t convert object to primitive value');
            }
            return void 0 === t && (t = 'number'), function (e, t) {
              var n,
                r;
              if ('string' === t && j(n = e.toString) && !N(r = v(n, e))) return r;
              if (j(n = e.valueOf) && !N(r = v(n, e))) return r;
              if ('string' !== t && j(n = e.toString) && !N(r = v(n, e))) return r;
              throw ee('Can\'t convert object to primitive value');
            }(e, t);
          },
          De = function (e) {
            var t = Ee(e, 'string');
            return K(t) ? t : t + '';
          },
          xe = f.document,
          Se = N(xe) && N(xe.createElement),
          Ce = function (e) {
            return Se ? xe.createElement(e) : {};
          },
          Ae = !p && !d((function () {
            return 7 != Object.defineProperty(Ce('div'), 'a', {
              get: function () {
                return 7;
              }
            }).a;
          })),
          Oe = Object.getOwnPropertyDescriptor,
          ke = {
            f: p ? Oe : function (e, t) {
              if (e = P(e), t = De(t), Ae) {
                try {
                  return Oe(e, t);
                } catch (e) {
                }
              }
              if (le(e, t)) return b(!v(m.f, e, t), e[t]);
            }
          },
          Te = f.String,
          Be = f.TypeError,
          Fe = function (e) {
            if (N(e)) return e;
            throw Be(Te(e) + ' is not an object');
          },
          _e = f.TypeError,
          Pe = Object.defineProperty,
          je = {
            f: p ? Pe : function (e, t, n) {
              if (Fe(e), t = De(t), Fe(n), Ae) {
                try {
                  return Pe(e, t, n);
                } catch (e) {
                }
              }
              if ('get' in n || 'set' in n) throw _e('Accessors not supported');
              return 'value' in n && (e[t] = n.value), e;
            }
          },
          Ne = p ? function (e, t, n) {
            return je.f(e, t, b(1, n));
          } : function (e, t, n) {
            return e[t] = n, e;
          },
          Ie = S(Function.toString);
        j(oe.inspectSource) || (oe.inspectSource = function (e) {
          return Ie(e);
        });
        var Re,
          Me,
          Le,
          ze = oe.inspectSource,
          $e = f.WeakMap,
          He = j($e) && /native code/.test(ze($e)),
          Ve = ie('keys'),
          Ue = function (e) {
            return Ve[e] || (Ve[e] = pe(e));
          },
          We = {},
          Ge = 'Object already initialized',
          qe = f.TypeError,
          Ke = f.WeakMap;
        if (He || oe.state) {
          var Ye = oe.state || (oe.state = new Ke),
            Xe = S(Ye.get),
            Ze = S(Ye.has),
            Je = S(Ye.set);
          Re = function (e, t) {
            if (Ze(Ye, e)) throw new qe(Ge);
            return t.facade = e, Je(Ye, e, t), t;
          }, Me = function (e) {
            return Xe(Ye, e) || {};
          }, Le = function (e) {
            return Ze(Ye, e);
          };
        } else {
          var Qe = Ue('state');
          We[Qe] = !0, Re = function (e, t) {
            if (le(e, Qe)) throw new qe(Ge);
            return t.facade = e, Ne(e, Qe, t), t;
          }, Me = function (e) {
            return le(e, Qe) ? e[Qe] : {};
          }, Le = function (e) {
            return le(e, Qe);
          };
        }
        var et = {
            set: Re,
            get: Me,
            has: Le,
            enforce: function (e) {
              return Le(e) ? Me(e) : Re(e, {});
            },
            getterFor: function (e) {
              return function (t) {
                var n;
                if (!N(t) || (n = Me(t)).type !== e) throw qe('Incompatible receiver, ' + e + ' required');
                return n;
              };
            }
          },
          tt = Function.prototype,
          nt = p && Object.getOwnPropertyDescriptor,
          rt = le(tt, 'name'),
          ot = {
            EXISTS: rt,
            PROPER: rt && 'something' === function () {
            }.name,
            CONFIGURABLE: rt && (!p || p && nt(tt, 'name').configurable)
          },
          it = u((function (e) {
            var t = ot.CONFIGURABLE,
              n = et.get,
              r = et.enforce,
              o = String(String)
                .split('String');
            (e.exports = function (e, n, i, a) {
              var u,
                s = !!a && !!a.unsafe,
                l = !!a && !!a.enumerable,
                c = !!a && !!a.noTargetGet,
                d = a && void 0 !== a.name ? a.name : n;
              j(i) && ('Symbol(' === String(d)
                .slice(0, 7) && (d = '[' + String(d)
                .replace(/^Symbol\(([^)]*)\)/, '$1') + ']'), (!le(i, 'name') || t && i.name !== d) && Ne(i, 'name', d), (u = r(i)).source || (u.source = o.join('string' == typeof d ? d : ''))), e !== f ? (s ? !c && e[n] && (l = !0) : delete e[n], l ? e[n] = i : Ne(e, n, i)) : l ? e[n] = i : ne(n, i);
            })(Function.prototype, 'toString', (function () {
              return j(this) && n(this).source || ze(this);
            }));
          })),
          at = Math.ceil,
          ut = Math.floor,
          st = function (e) {
            var t = +e;
            return t != t || 0 === t ? 0 : (t > 0 ? ut : at)(t);
          },
          lt = Math.max,
          ct = Math.min,
          ft = function (e, t) {
            var n = st(e);
            return n < 0 ? lt(n + t, 0) : ct(n, t);
          },
          dt = Math.min,
          pt = function (e) {
            return e > 0 ? dt(st(e), 9007199254740991) : 0;
          },
          ht = function (e) {
            return pt(e.length);
          },
          vt = function (e) {
            return function (t, n, r) {
              var o,
                i = P(t),
                a = ht(i),
                u = ft(r, a);
              if (e && n != n) {
                for (; a > u;) if ((o = i[u++]) != o) return !0;
              } else {
                for (; a > u; u++) if ((e || u in i) && i[u] === n) return e || u || 0;
              }
              return !e && -1;
            };
          },
          gt = (vt(!0), vt(!1)),
          yt = S([].push),
          mt = function (e, t) {
            var n,
              r = P(e),
              o = 0,
              i = [];
            for (n in r) !le(We, n) && le(r, n) && yt(i, n);
            for (; t.length > o;) le(r, n = t[o++]) && (~gt(i, n) || yt(i, n));
            return i;
          },
          bt = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'],
          wt = bt.concat('length', 'prototype'),
          Et = {
            f: Object.getOwnPropertyNames || function (e) {
              return mt(e, wt);
            }
          },
          Dt = { f: Object.getOwnPropertySymbols },
          xt = S([].concat),
          St = R('Reflect', 'ownKeys') || function (e) {
            var t = Et.f(Fe(e)),
              n = Dt.f;
            return n ? xt(t, n(e)) : t;
          },
          Ct = function (e, t) {
            for (var n = St(t), r = je.f, o = ke.f, i = 0; i < n.length; i++) {
              var a = n[i];
              le(e, a) || r(e, a, o(t, a));
            }
          },
          At = /#|\.prototype\./,
          Ot = function (e, t) {
            var n = Tt[kt(e)];
            return n == Ft || n != Bt && (j(t) ? d(t) : !!t);
          },
          kt = Ot.normalize = function (e) {
            return String(e)
              .replace(At, '.')
              .toLowerCase();
          },
          Tt = Ot.data = {},
          Bt = Ot.NATIVE = 'N',
          Ft = Ot.POLYFILL = 'P',
          _t = Ot,
          Pt = ke.f,
          jt = function (e, t) {
            var n,
              r,
              o,
              i,
              a,
              u = e.target,
              s = e.global,
              l = e.stat;
            if (n = s ? f : l ? f[u] || ne(u, {}) : (f[u] || {}).prototype) {
              for (r in t) {
                if (i = t[r], o = e.noTargetGet ? (a = Pt(n, r)) && a.value : n[r], !_t(s ? r : u + (l ? '.' : '#') + r, e.forced) && void 0 !== o) {
                  if (typeof i == typeof o) continue;
                  Ct(i, o);
                }
                (e.sham || o && o.sham) && Ne(i, 'sham', !0), it(n, r, i, e);
              }
            }
          },
          Nt = Array.isArray || function (e) {
            return 'Array' == O(e);
          },
          It = {};
        It[me('toStringTag')] = 'z';
        var Rt,
          Mt = '[object z]' === String(It),
          Lt = me('toStringTag'),
          zt = f.Object,
          $t = 'Arguments' == O(function () {
            return arguments;
          }()),
          Ht = Mt ? O : function (e) {
            var t,
              n,
              r;
            return void 0 === e ? 'Undefined' : null === e ? 'Null' : 'string' == typeof (n = function (e, t) {
              try {
                return e[t];
              } catch (e) {
              }
            }(t = zt(e), Lt)) ? n : $t ? O(t) : 'Object' == (r = O(t)) && j(t.callee) ? 'Arguments' : r;
          },
          Vt = function () {
          },
          Ut = [],
          Wt = R('Reflect', 'construct'),
          Gt = /^\s*(?:class|function)\b/,
          qt = S(Gt.exec),
          Kt = !Gt.exec(Vt),
          Yt = function (e) {
            if (!j(e)) return !1;
            try {
              return Wt(Vt, Ut, e), !0;
            } catch (e) {
              return !1;
            }
          },
          Xt = !Wt || d((function () {
            var e;
            return Yt(Yt.call) || !Yt(Object) || !Yt((function () {
              e = !0;
            })) || e;
          })) ? function (e) {
            if (!j(e)) return !1;
            switch (Ht(e)) {
              case'AsyncFunction':
              case'GeneratorFunction':
              case'AsyncGeneratorFunction':
                return !1;
            }
            return Kt || !!qt(Gt, ze(e));
          } : Yt,
          Zt = function (e, t, n) {
            var r = De(t);
            r in e ? je.f(e, r, b(0, n)) : e[r] = n;
          },
          Jt = me('species'),
          Qt = S([].slice),
          en = (Rt = 'slice', U >= 51 || !d((function () {
            var e = [];
            return (e.constructor = {})[Jt] = function () {
              return { foo: 1 };
            }, 1 !== e[Rt](Boolean).foo;
          }))),
          tn = me('species'),
          nn = f.Array,
          rn = Math.max;
        jt({
          target: 'Array',
          proto: !0,
          forced: !en
        }, {
          slice: function (e, t) {
            var n,
              r,
              o,
              i = P(this),
              a = ht(i),
              u = ft(e, a),
              s = ft(void 0 === t ? a : t, a);
            if (Nt(i) && (n = i.constructor, (Xt(n) && (n === nn || Nt(n.prototype)) || N(n) && null === (n = n[tn])) && (n = void 0), n === nn || void 0 === n)) return Qt(i, u, s);
            for (r = new (void 0 === n ? nn : n)(rn(s - u, 0)), o = 0; u < s; u++, o++) u in i && Zt(r, o, i[u]);
            return r.length = o, r;
          }
        });
        var on = Mt ? {}.toString : function () {
          return '[object ' + Ht(this) + ']';
        };
        Mt || it(Object.prototype, 'toString', on, { unsafe: !0 });
        var an,
          un = f.String,
          sn = function (e) {
            if ('Symbol' === Ht(e)) throw TypeError('Cannot convert a Symbol value to a string');
            return un(e);
          },
          ln = function () {
            var e = Fe(this),
              t = '';
            return e.global && (t += 'g'), e.ignoreCase && (t += 'i'), e.multiline && (t += 'm'), e.dotAll && (t += 's'), e.unicode && (t += 'u'), e.sticky && (t += 'y'), t;
          },
          cn = f.RegExp,
          fn = d((function () {
            var e = cn('a', 'y');
            return e.lastIndex = 2, null != e.exec('abcd');
          })),
          dn = fn || d((function () {
            return !cn('a', 'y').sticky;
          })),
          pn = {
            BROKEN_CARET: fn || d((function () {
              var e = cn('^r', 'gy');
              return e.lastIndex = 2, null != e.exec('str');
            })),
            MISSED_STICKY: dn,
            UNSUPPORTED_Y: fn
          },
          hn = Object.keys || function (e) {
            return mt(e, bt);
          },
          vn = p ? Object.defineProperties : function (e, t) {
            Fe(e);
            for (var n, r = P(t), o = hn(t), i = o.length, a = 0; i > a;) je.f(e, n = o[a++], r[n]);
            return e;
          },
          gn = R('document', 'documentElement'),
          yn = Ue('IE_PROTO'),
          mn = function () {
          },
          bn = function (e) {
            return '<script>' + e + '<\/script>';
          },
          wn = function (e) {
            e.write(bn('')), e.close();
            var t = e.parentWindow.Object;
            return e = null, t;
          },
          En = function () {
            try {
              an = new ActiveXObject('htmlfile');
            } catch (e) {
            }
            var e,
              t;
            En = 'undefined' != typeof document ? document.domain && an ? wn(an) : ((t = Ce('iframe')).style.display = 'none', gn.appendChild(t), t.src = String('javascript:'), (e = t.contentWindow.document).open(), e.write(bn('document.F=Object')), e.close(), e.F) : wn(an);
            for (var n = bt.length; n--;) delete En.prototype[bt[n]];
            return En();
          };
        We[yn] = !0;
        var Dn,
          xn,
          Sn = Object.create || function (e, t) {
            var n;
            return null !== e ? (mn.prototype = Fe(e), n = new mn, mn.prototype = null, n[yn] = e) : n = En(), void 0 === t ? n : vn(n, t);
          },
          Cn = f.RegExp,
          An = d((function () {
            var e = Cn('.', 's');
            return !(e.dotAll && e.exec('\n') && 's' === e.flags);
          })),
          On = f.RegExp,
          kn = d((function () {
            var e = On('(?<a>b)', 'g');
            return 'b' !== e.exec('b').groups.a || 'bc' !== 'b'.replace(e, '$<a>c');
          })),
          Tn = et.get,
          Bn = ie('native-string-replace', String.prototype.replace),
          Fn = RegExp.prototype.exec,
          _n = Fn,
          Pn = S(''.charAt),
          jn = S(''.indexOf),
          Nn = S(''.replace),
          In = S(''.slice),
          Rn = (xn = /b*/g, v(Fn, Dn = /a/, 'a'), v(Fn, xn, 'a'), 0 !== Dn.lastIndex || 0 !== xn.lastIndex),
          Mn = pn.BROKEN_CARET,
          Ln = void 0 !== /()??/.exec('')[1];
        (Rn || Ln || Mn || An || kn) && (_n = function (e) {
          var t,
            n,
            r,
            o,
            i,
            a,
            u,
            s = this,
            l = Tn(s),
            c = sn(e),
            f = l.raw;
          if (f) return f.lastIndex = s.lastIndex, t = v(_n, f, c), s.lastIndex = f.lastIndex, t;
          var d = l.groups,
            p = Mn && s.sticky,
            h = v(ln, s),
            g = s.source,
            y = 0,
            m = c;
          if (p && (h = Nn(h, 'y', ''), -1 === jn(h, 'g') && (h += 'g'), m = In(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && '\n' !== Pn(c, s.lastIndex - 1)) && (g = '(?: ' + g + ')', m = ' ' + m, y++), n = new RegExp('^(?:' + g + ')', h)), Ln && (n = new RegExp('^' + g + '$(?!\\s)', h)), Rn && (r = s.lastIndex), o = v(Fn, p ? n : s, m), p ? o ? (o.input = In(o.input, y), o[0] = In(o[0], y), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : Rn && o && (s.lastIndex = s.global ? o.index + o[0].length : r), Ln && o && o.length > 1 && v(Bn, o[0], n, (function () {
            for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (o[i] = void 0);
          })), o && d) {
            for (o.groups = a = Sn(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
          }
          return o;
        });
        var zn = _n;
        jt({
          target: 'RegExp',
          proto: !0,
          forced: /./.exec !== zn
        }, { exec: zn });
        var $n = Function.prototype,
          Hn = $n.apply,
          Vn = $n.bind,
          Un = $n.call,
          Wn = 'object' == typeof Reflect && Reflect.apply || (Vn ? Un.bind(Hn) : function () {
            return Un.apply(Hn, arguments);
          }),
          Gn = me('species'),
          qn = RegExp.prototype,
          Kn = me('match'),
          Yn = f.TypeError,
          Xn = me('species'),
          Zn = function (e, t) {
            var n,
              r = Fe(e).constructor;
            return void 0 === r || null == (n = Fe(r)[Xn]) ? t : function (e) {
              if (Xt(e)) return e;
              throw Yn(X(e) + ' is not a constructor');
            }(n);
          },
          Jn = S(''.charAt),
          Qn = S(''.charCodeAt),
          er = S(''.slice),
          tr = function (e) {
            return function (t, n) {
              var r,
                o,
                i = sn(_(t)),
                a = st(n),
                u = i.length;
              return a < 0 || a >= u ? e ? '' : void 0 : (r = Qn(i, a)) < 55296 || r > 56319 || a + 1 === u || (o = Qn(i, a + 1)) < 56320 || o > 57343 ? e ? Jn(i, a) : r : e ? er(i, a, a + 2) : o - 56320 + (r - 55296 << 10) + 65536;
            };
          },
          nr = {
            codeAt: tr(!1),
            charAt: tr(!0)
          },
          rr = nr.charAt,
          or = function (e, t, n) {
            return t + (n ? rr(e, t).length : 1);
          },
          ir = f.Array,
          ar = Math.max,
          ur = function (e, t, n) {
            for (var r = ht(e), o = ft(t, r), i = ft(void 0 === n ? r : n, r), a = ir(ar(i - o, 0)), u = 0; o < i; o++, u++) Zt(a, u, e[o]);
            return a.length = u, a;
          },
          sr = f.TypeError,
          lr = function (e, t) {
            var n = e.exec;
            if (j(n)) {
              var r = v(n, e, t);
              return null !== r && Fe(r), r;
            }
            if ('RegExp' === O(e)) return v(zn, e, t);
            throw sr('RegExp#exec called on incompatible receiver');
          },
          cr = pn.UNSUPPORTED_Y,
          fr = 4294967295,
          dr = Math.min,
          pr = [].push,
          hr = S(/./.exec),
          vr = S(pr),
          gr = S(''.slice),
          yr = !d((function () {
            var e = /(?:)/,
              t = e.exec;
            e.exec = function () {
              return t.apply(this, arguments);
            };
            var n = 'ab'.split(e);
            return 2 !== n.length || 'a' !== n[0] || 'b' !== n[1];
          }));
        !function (e, t, n, r) {
          var o = me(e),
            i = !d((function () {
              var t = {};
              return t[o] = function () {
                return 7;
              }, 7 != ''[e](t);
            })),
            a = i && !d((function () {
              var t = !1,
                n = /a/;
              return 'split' === e && ((n = {}).constructor = {}, n.constructor[Gn] = function () {
                return n;
              }, n.flags = '', n[o] = /./[o]), n.exec = function () {
                return t = !0, null;
              }, n[o](''), !t;
            }));
          if (!i || !a || n) {
            var u = S(/./[o]),
              s = t(o, ''[e], (function (e, t, n, r, o) {
                var a = S(e),
                  s = t.exec;
                return s === zn || s === qn.exec ? i && !o ? {
                  done: !0,
                  value: u(t, n, r)
                } : {
                  done: !0,
                  value: a(n, t, r)
                } : { done: !1 };
              }));
            it(String.prototype, e, s[0]), it(qn, o, s[1]);
          }
          r && Ne(qn[o], 'sham', !0);
        }('split', (function (e, t, n) {
          var r;
          return r = 'c' == 'abbc'.split(/(b)*/)[1] || 4 != 'test'.split(/(?:)/, -1).length || 2 != 'ab'.split(/(?:ab)*/).length || 4 != '.'.split(/(.?)(.?)/).length || '.'.split(/()()/).length > 1 || ''.split(/.?/).length ? function (e, n) {
            var r,
              o,
              i = sn(_(this)),
              a = void 0 === n ? fr : n >>> 0;
            if (0 === a) return [];
            if (void 0 === e) return [i];
            if (!N(r = e) || !(void 0 !== (o = r[Kn]) ? o : 'RegExp' == O(r))) return v(t, i, e, a);
            for (var u, s, l, c = [], f = (e.ignoreCase ? 'i' : '') + (e.multiline ? 'm' : '') + (e.unicode ? 'u' : '') + (e.sticky ? 'y' : ''), d = 0, p = new RegExp(e.source, f + 'g'); (u = v(zn, p, i)) && !((s = p.lastIndex) > d && (vr(c, gr(i, d, u.index)), u.length > 1 && u.index < i.length && Wn(pr, c, ur(u, 1)), l = u[0].length, d = s, c.length >= a));) p.lastIndex === u.index && p.lastIndex++;
            return d === i.length ? !l && hr(p, '') || vr(c, '') : vr(c, gr(i, d)), c.length > a ? ur(c, 0, a) : c;
          } : '0'.split(void 0, 0).length ? function (e, n) {
            return void 0 === e && 0 === n ? [] : v(t, this, e, n);
          } : t, [function (t, n) {
            var o = _(this),
              i = null == t ? void 0 : Q(t, e);
            return i ? v(i, t, o, n) : v(r, sn(o), t, n);
          }, function (e, o) {
            var i = Fe(this),
              a = sn(e),
              u = n(r, i, a, o, r !== t);
            if (u.done) return u.value;
            var s = Zn(i, RegExp),
              l = i.unicode,
              c = (i.ignoreCase ? 'i' : '') + (i.multiline ? 'm' : '') + (i.unicode ? 'u' : '') + (cr ? 'g' : 'y'),
              f = new s(cr ? '^(?:' + i.source + ')' : i, c),
              d = void 0 === o ? fr : o >>> 0;
            if (0 === d) return [];
            if (0 === a.length) return null === lr(f, a) ? [a] : [];
            for (var p = 0, h = 0, v = []; h < a.length;) {
              f.lastIndex = cr ? 0 : h;
              var g,
                y = lr(f, cr ? gr(a, h) : a);
              if (null === y || (g = dr(pt(f.lastIndex + (cr ? h : 0)), a.length)) === p) {
                h = or(a, h, l);
              } else {
                if (vr(v, gr(a, p, h)), v.length === d) return v;
                for (var m = 1; m <= y.length - 1; m++) if (vr(v, y[m]), v.length === d) return v;
                h = p = g;
              }
            }
            return vr(v, gr(a, p)), v;
          }];
        }), !yr, cr);
        /*! *****************************************************************************
        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 mr = function () {
          return mr = Object.assign || function (e) {
            for (var t, n = 1, r = arguments.length; n < r; n++) for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
            return e;
          }, mr.apply(this, arguments);
        };

        function br(e, t, n, r) {
          return new (n || (n = Promise))((function (o, i) {
            function a(e) {
              try {
                s(r.next(e));
              } catch (e) {
                i(e);
              }
            }

            function u(e) {
              try {
                s(r.throw(e));
              } catch (e) {
                i(e);
              }
            }

            function s(e) {
              var t;
              e.done ? o(e.value) : (t = e.value, t instanceof n ? t : new n((function (e) {
                e(t);
              }))).then(a, u);
            }

            s((r = r.apply(e, t || [])).next());
          }));
        }

        function wr(e, t) {
          var n,
            r,
            o,
            i,
            a = {
              label: 0,
              sent: function () {
                if (1 & o[0]) throw o[1];
                return o[1];
              },
              trys: [],
              ops: []
            };
          return i = {
            next: u(0),
            throw: u(1),
            return: u(2)
          }, 'function' == typeof Symbol && (i[Symbol.iterator] = function () {
            return this;
          }), i;

          function u(i) {
            return function (u) {
              return function (i) {
                if (n) throw new TypeError('Generator is already executing.');
                for (; a;) {
                  try {
                    if (n = 1, r && (o = 2 & i[0] ? r.return : i[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, i[1])).done) return o;
                    switch (r = 0, o && (i = [2 & i[0], o.value]), i[0]) {
                      case 0:
                      case 1:
                        o = i;
                        break;
                      case 4:
                        return a.label++, {
                          value: i[1],
                          done: !1
                        };
                      case 5:
                        a.label++, r = i[1], i = [0];
                        continue;
                      case 7:
                        i = a.ops.pop(), a.trys.pop();
                        continue;
                      default:
                        if (!((o = (o = a.trys).length > 0 && o[o.length - 1]) || 6 !== i[0] && 2 !== i[0])) {
                          a = 0;
                          continue;
                        }
                        if (3 === i[0] && (!o || i[1] > o[0] && i[1] < o[3])) {
                          a.label = i[1];
                          break;
                        }
                        if (6 === i[0] && a.label < o[1]) {
                          a.label = o[1], o = i;
                          break;
                        }
                        if (o && a.label < o[2]) {
                          a.label = o[2], a.ops.push(i);
                          break;
                        }
                        o[2] && a.ops.pop(), a.trys.pop();
                        continue;
                    }
                    i = t.call(e, a);
                  } catch (e) {
                    i = [6, e], r = 0;
                  } finally {
                    n = o = 0;
                  }
                }
                if (5 & i[0]) throw i[1];
                return {
                  value: i[0] ? i[1] : void 0,
                  done: !0
                };
              }([i, u]);
            };
          }
        }

        function Er(e) {
          var t = 'function' == typeof Symbol && Symbol.iterator,
            n = t && e[t],
            r = 0;
          if (n) return n.call(e);
          if (e && 'number' == typeof e.length) {
            return {
              next: function () {
                return e && r >= e.length && (e = void 0), {
                  value: e && e[r++],
                  done: !e
                };
              }
            };
          }
          throw new TypeError(t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.');
        }

        function Dr(e) {
          if (!Symbol.asyncIterator) throw new TypeError('Symbol.asyncIterator is not defined.');
          var t,
            n = e[Symbol.asyncIterator];
          return n ? n.call(e) : (e = Er(e), t = {}, r('next'), r('throw'), r('return'), t[Symbol.asyncIterator] = function () {
            return this;
          }, t);

          function r(n) {
            t[n] = e[n] && function (t) {
              return new Promise((function (r, o) {
                !function (e, t, n, r) {
                  Promise.resolve(r)
                    .then((function (t) {
                      e({
                        value: t,
                        done: n
                      });
                    }), t);
                }(r, o, (t = e[n](t)).done, t.value);
              }));
            };
          }
        }

        var xr = me('unscopables'),
          Sr = Array.prototype;
        null == Sr[xr] && je.f(Sr, xr, {
          configurable: !0,
          value: Sn(null)
        });
        var Cr,
          Ar,
          Or,
          kr = function (e) {
            Sr[xr][e] = !0;
          },
          Tr = {},
          Br = !d((function () {
            function e() {
            }

            return e.prototype.constructor = null, Object.getPrototypeOf(new e) !== e.prototype;
          })),
          Fr = Ue('IE_PROTO'),
          _r = f.Object,
          Pr = _r.prototype,
          jr = Br ? _r.getPrototypeOf : function (e) {
            var t = ue(e);
            if (le(t, Fr)) return t[Fr];
            var n = t.constructor;
            return j(n) && t instanceof n ? n.prototype : t instanceof _r ? Pr : null;
          },
          Nr = me('iterator'),
          Ir = !1;
        [].keys && ('next' in (Or = [].keys()) ? (Ar = jr(jr(Or))) !== Object.prototype && (Cr = Ar) : Ir = !0);
        var Rr = null == Cr || d((function () {
          var e = {};
          return Cr[Nr].call(e) !== e;
        }));
        Rr && (Cr = {}), j(Cr[Nr]) || it(Cr, Nr, (function () {
          return this;
        }));
        var Mr = {
            IteratorPrototype: Cr,
            BUGGY_SAFARI_ITERATORS: Ir
          },
          Lr = je.f,
          zr = me('toStringTag'),
          $r = function (e, t, n) {
            e && !le(e = n ? e : e.prototype, zr) && Lr(e, zr, {
              configurable: !0,
              value: t
            });
          },
          Hr = Mr.IteratorPrototype,
          Vr = function () {
            return this;
          },
          Ur = f.String,
          Wr = f.TypeError,
          Gr = Object.setPrototypeOf || ('__proto__' in {} ? function () {
            var e,
              t = !1,
              n = {};
            try {
              (e = S(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set))(n, []), t = n instanceof Array;
            } catch (e) {
            }
            return function (n, r) {
              return Fe(n), function (e) {
                if ('object' == typeof e || j(e)) return e;
                throw Wr('Can\'t set ' + Ur(e) + ' as a prototype');
              }(r), t ? e(n, r) : n.__proto__ = r, n;
            };
          }() : void 0),
          qr = ot.PROPER,
          Kr = ot.CONFIGURABLE,
          Yr = Mr.IteratorPrototype,
          Xr = Mr.BUGGY_SAFARI_ITERATORS,
          Zr = me('iterator'),
          Jr = 'keys',
          Qr = 'values',
          eo = 'entries',
          to = function () {
            return this;
          },
          no = function (e, t, n, r, o, i, a) {
            !function (e, t, n, r) {
              var o = t + ' Iterator';
              e.prototype = Sn(Hr, { next: b(+!r, n) }), $r(e, o, !1), Tr[o] = Vr;
            }(n, t, r);
            var u,
              s,
              l,
              c = function (e) {
                if (e === o && g) return g;
                if (!Xr && e in p) return p[e];
                switch (e) {
                  case Jr:
                  case Qr:
                  case eo:
                    return function () {
                      return new n(this, e);
                    };
                }
                return function () {
                  return new n(this);
                };
              },
              f = t + ' Iterator',
              d = !1,
              p = e.prototype,
              h = p[Zr] || p['@@iterator'] || o && p[o],
              g = !Xr && h || c(o),
              y = 'Array' == t && p.entries || h;
            if (y && (u = jr(y.call(new e))) !== Object.prototype && u.next && (jr(u) !== Yr && (Gr ? Gr(u, Yr) : j(u[Zr]) || it(u, Zr, to)), $r(u, f, !0)), qr && o == Qr && h && h.name !== Qr && (Kr ? Ne(p, 'name', Qr) : (d = !0, g = function () {
              return v(h, this);
            })), o) {
              if (s = {
                values: c(Qr),
                keys: i ? g : c(Jr),
                entries: c(eo)
              }, a) {
                for (l in s) (Xr || d || !(l in p)) && it(p, l, s[l]);
              } else {
                jt({
                  target: t,
                  proto: !0,
                  forced: Xr || d
                }, s);
              }
            }
            return p[Zr] !== g && it(p, Zr, g, { name: o }), Tr[t] = g, s;
          },
          ro = 'Array Iterator',
          oo = et.set,
          io = et.getterFor(ro),
          ao = no(Array, 'Array', (function (e, t) {
            oo(this, {
              type: ro,
              target: P(e),
              index: 0,
              kind: t
            });
          }), (function () {
            var e = io(this),
              t = e.target,
              n = e.kind,
              r = e.index++;
            return !t || r >= t.length ? (e.target = void 0, {
              value: void 0,
              done: !0
            }) : 'keys' == n ? {
              value: r,
              done: !1
            } : 'values' == n ? {
              value: t[r],
              done: !1
            } : {
              value: [r, t[r]],
              done: !1
            };
          }), 'values');
        Tr.Arguments = Tr.Array, kr('keys'), kr('values'), kr('entries');
        var uo = nr.charAt,
          so = 'String Iterator',
          lo = et.set,
          co = et.getterFor(so);
        no(String, 'String', (function (e) {
          lo(this, {
            type: so,
            string: sn(e),
            index: 0
          });
        }), (function () {
          var e,
            t = co(this),
            n = t.string,
            r = t.index;
          return r >= n.length ? {
            value: void 0,
            done: !0
          } : (e = uo(n, r), t.index += e.length, {
            value: e,
            done: !1
          });
        }));
        var fo = function (e, t, n) {
            for (var r in t) it(e, r, t[r], n);
            return e;
          },
          po = Et.f,
          ho = 'object' == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [],
          vo = {
            f: function (e) {
              return ho && 'Window' == O(e) ? function (e) {
                try {
                  return po(e);
                } catch (e) {
                  return ur(ho);
                }
              }(e) : po(P(e));
            }
          },
          go = d((function () {
            if ('function' == typeof ArrayBuffer) {
              var e = new ArrayBuffer(8);
              Object.isExtensible(e) && Object.defineProperty(e, 'a', { value: 8 });
            }
          })),
          yo = Object.isExtensible,
          mo = d((function () {
            yo(1);
          })) || go ? function (e) {
            return !!N(e) && (!go || 'ArrayBuffer' != O(e)) && (!yo || yo(e));
          } : yo,
          bo = !d((function () {
            return Object.isExtensible(Object.preventExtensions({}));
          })),
          wo = u((function (e) {
            var t = je.f,
              n = !1,
              r = pe('meta'),
              o = 0,
              i = function (e) {
                t(e, r, {
                  value: {
                    objectID: 'O' + o++,
                    weakData: {}
                  }
                });
              },
              a = e.exports = {
                enable: function () {
                  a.enable = function () {
                  }, n = !0;
                  var e = Et.f,
                    t = S([].splice),
                    o = {};
                  o[r] = 1, e(o).length && (Et.f = function (n) {
                    for (var o = e(n), i = 0, a = o.length; i < a; i++) {
                      if (o[i] === r) {
                        t(o, i, 1);
                        break;
                      }
                    }
                    return o;
                  }, jt({
                    target: 'Object',
                    stat: !0,
                    forced: !0
                  }, { getOwnPropertyNames: vo.f }));
                },
                fastKey: function (e, t) {
                  if (!N(e)) return 'symbol' == typeof e ? e : ('string' == typeof e ? 'S' : 'P') + e;
                  if (!le(e, r)) {
                    if (!mo(e)) return 'F';
                    if (!t) return 'E';
                    i(e);
                  }
                  return e[r].objectID;
                },
                getWeakData: function (e, t) {
                  if (!le(e, r)) {
                    if (!mo(e)) return !0;
                    if (!t) return !1;
                    i(e);
                  }
                  return e[r].weakData;
                },
                onFreeze: function (e) {
                  return bo && n && mo(e) && !le(e, r) && i(e), e;
                }
              };
            We[r] = !0;
          })),
          Eo = S(S.bind),
          Do = function (e, t) {
            return J(e), void 0 === t ? e : Eo ? Eo(e, t) : function () {
              return e.apply(t, arguments);
            };
          },
          xo = me('iterator'),
          So = Array.prototype,
          Co = me('iterator'),
          Ao = function (e) {
            if (null != e) return Q(e, Co) || Q(e, '@@iterator') || Tr[Ht(e)];
          },
          Oo = f.TypeError,
          ko = function (e, t, n) {
            var r,
              o;
            Fe(e);
            try {
              if (!(r = Q(e, 'return'))) {
                if ('throw' === t) throw n;
                return n;
              }
              r = v(r, e);
            } catch (e) {
              o = !0, r = e;
            }
            if ('throw' === t) throw n;
            if (o) throw r;
            return Fe(r), n;
          },
          To = f.TypeError,
          Bo = function (e, t) {
            this.stopped = e, this.result = t;
          },
          Fo = Bo.prototype,
          _o = function (e, t, n) {
            var r,
              o,
              i,
              a,
              u,
              s,
              l,
              c,
              f = n && n.that,
              d = !(!n || !n.AS_ENTRIES),
              p = !(!n || !n.IS_ITERATOR),
              h = !(!n || !n.INTERRUPTED),
              g = Do(t, f),
              y = function (e) {
                return r && ko(r, 'normal', e), new Bo(!0, e);
              },
              m = function (e) {
                return d ? (Fe(e), h ? g(e[0], e[1], y) : g(e[0], e[1])) : h ? g(e, y) : g(e);
              };
            if (p) {
              r = e;
            } else {
              if (!(o = Ao(e))) throw To(X(e) + ' is not iterable');
              if (void 0 !== (c = o) && (Tr.Array === c || So[xo] === c)) {
                for (i = 0, a = ht(e); a > i; i++) if ((u = m(e[i])) && M(Fo, u)) return u;
                return new Bo(!1);
              }
              r = function (e, t) {
                var n = arguments.length < 2 ? Ao(e) : t;
                if (J(n)) return Fe(v(n, e));
                throw Oo(X(e) + ' is not iterable');
              }(e, o);
            }
            for (s = r.next; !(l = v(s, r)).done;) {
              try {
                u = m(l.value);
              } catch (e) {
                ko(r, 'throw', e);
              }
              if ('object' == typeof u && u && M(Fo, u)) return u;
            }
            return new Bo(!1);
          },
          Po = f.TypeError,
          jo = function (e, t) {
            if (M(t, e)) return e;
            throw Po('Incorrect invocation');
          },
          No = me('iterator'),
          Io = !1;
        try {
          var Ro = 0,
            Mo = {
              next: function () {
                return { done: !!Ro++ };
              },
              return: function () {
                Io = !0;
              }
            };
          Mo[No] = function () {
            return this;
          }, Array.from(Mo, (function () {
            throw 2;
          }));
        } catch (e) {
        }
        var Lo = function (e, t) {
            if (!t && !Io) return !1;
            var n = !1;
            try {
              var r = {};
              r[No] = function () {
                return {
                  next: function () {
                    return { done: n = !0 };
                  }
                };
              }, e(r);
            } catch (e) {
            }
            return n;
          },
          zo = me('species'),
          $o = f.Array,
          Ho = function (e, t) {
            return new (function (e) {
              var t;
              return Nt(e) && (t = e.constructor, (Xt(t) && (t === $o || Nt(t.prototype)) || N(t) && null === (t = t[zo])) && (t = void 0)), void 0 === t ? $o : t;
            }(e))(0 === t ? 0 : t);
          },
          Vo = S([].push),
          Uo = function (e) {
            var t = 1 == e,
              n = 2 == e,
              r = 3 == e,
              o = 4 == e,
              i = 6 == e,
              a = 7 == e,
              u = 5 == e || i;
            return function (s, l, c, f) {
              for (var d, p, h = ue(s), v = B(h), g = Do(l, c), y = ht(v), m = 0, b = f || Ho, w = t ? b(s, y) : n || a ? b(s, 0) : void 0; y > m; m++) {
                if ((u || m in v) && (p = g(d = v[m], m, h), e)) {
                  if (t) {
                    w[m] = p;
                  } else if (p) {
                    switch (e) {
                      case 3:
                        return !0;
                      case 5:
                        return d;
                      case 6:
                        return m;
                      case 2:
                        Vo(w, d);
                    }
                  } else {
                    switch (e) {
                      case 4:
                        return !1;
                      case 7:
                        Vo(w, d);
                    }
                  }
                }
              }
              return i ? -1 : r || o ? o : w;
            };
          },
          Wo = {
            forEach: Uo(0),
            map: Uo(1),
            filter: Uo(2),
            some: Uo(3),
            every: Uo(4),
            find: Uo(5),
            findIndex: Uo(6),
            filterReject: Uo(7)
          },
          Go = wo.getWeakData,
          qo = et.set,
          Ko = et.getterFor,
          Yo = Wo.find,
          Xo = Wo.findIndex,
          Zo = S([].splice),
          Jo = 0,
          Qo = function (e) {
            return e.frozen || (e.frozen = new ei);
          },
          ei = function () {
            this.entries = [];
          },
          ti = function (e, t) {
            return Yo(e.entries, (function (e) {
              return e[0] === t;
            }));
          };
        ei.prototype = {
          get: function (e) {
            var t = ti(this, e);
            if (t) return t[1];
          },
          has: function (e) {
            return !!ti(this, e);
          },
          set: function (e, t) {
            var n = ti(this, e);
            n ? n[1] = t : this.entries.push([e, t]);
          },
          delete: function (e) {
            var t = Xo(this.entries, (function (t) {
              return t[0] === e;
            }));
            return ~t && Zo(this.entries, t, 1), !!~t;
          }
        };
        var ni,
          ri = {
            getConstructor: function (e, t, n, r) {
              var o = e((function (e, o) {
                  jo(e, i), qo(e, {
                    type: t,
                    id: Jo++,
                    frozen: void 0
                  }), null != o && _o(o, e[r], {
                    that: e,
                    AS_ENTRIES: n
                  });
                })),
                i = o.prototype,
                a = Ko(t),
                u = function (e, t, n) {
                  var r = a(e),
                    o = Go(Fe(t), !0);
                  return !0 === o ? Qo(r)
                    .set(t, n) : o[r.id] = n, e;
                };
              return fo(i, {
                delete: function (e) {
                  var t = a(this);
                  if (!N(e)) return !1;
                  var n = Go(e);
                  return !0 === n ? Qo(t)
                    .delete(e) : n && le(n, t.id) && delete n[t.id];
                },
                has: function (e) {
                  var t = a(this);
                  if (!N(e)) return !1;
                  var n = Go(e);
                  return !0 === n ? Qo(t)
                    .has(e) : n && le(n, t.id);
                }
              }), fo(i, n ? {
                get: function (e) {
                  var t = a(this);
                  if (N(e)) {
                    var n = Go(e);
                    return !0 === n ? Qo(t)
                      .get(e) : n ? n[t.id] : void 0;
                  }
                },
                set: function (e, t) {
                  return u(this, e, t);
                }
              } : {
                add: function (e) {
                  return u(this, e, !0);
                }
              }), o;
            }
          },
          oi = et.enforce,
          ii = !f.ActiveXObject && 'ActiveXObject' in f,
          ai = function (e) {
            return function () {
              return e(this, arguments.length ? arguments[0] : void 0);
            };
          },
          ui = function (e, t, n) {
            var r = -1 !== e.indexOf('Map'),
              o = -1 !== e.indexOf('Weak'),
              i = r ? 'set' : 'add',
              a = f[e],
              u = a && a.prototype,
              s = a,
              l = {},
              c = function (e) {
                var t = S(u[e]);
                it(u, e, 'add' == e ? function (e) {
                  return t(this, 0 === e ? 0 : e), this;
                } : 'delete' == e ? function (e) {
                  return !(o && !N(e)) && t(this, 0 === e ? 0 : e);
                } : 'get' == e ? function (e) {
                  return o && !N(e) ? void 0 : t(this, 0 === e ? 0 : e);
                } : 'has' == e ? function (e) {
                  return !(o && !N(e)) && t(this, 0 === e ? 0 : e);
                } : function (e, n) {
                  return t(this, 0 === e ? 0 : e, n), this;
                });
              };
            if (_t(e, !j(a) || !(o || u.forEach && !d((function () {
              (new a).entries()
                .next();
            }))))) {
              s = n.getConstructor(t, e, r, i), wo.enable();
            } else if (_t(e, !0)) {
              var p = new s,
                h = p[i](o ? {} : -0, 1) != p,
                v = d((function () {
                  p.has(1);
                })),
                g = Lo((function (e) {
                  new a(e);
                })),
                y = !o && d((function () {
                  for (var e = new a, t = 5; t--;) e[i](t, t);
                  return !e.has(-0);
                }));
              g || ((s = t((function (e, t) {
                jo(e, u);
                var n = function (e, t, n) {
                  var r,
                    o;
                  return Gr && j(r = t.constructor) && r !== n && N(o = r.prototype) && o !== n.prototype && Gr(e, o), e;
                }(new a, e, s);
                return null != t && _o(t, n[i], {
                  that: n,
                  AS_ENTRIES: r
                }), n;
              }))).prototype = u, u.constructor = s), (v || y) && (c('delete'), c('has'), r && c('get')), (y || h) && c(i), o && u.clear && delete u.clear;
            }
            return l[e] = s, jt({
              global: !0,
              forced: s != a
            }, l), $r(s, e), o || n.setStrong(s, e, r), s;
          }('WeakMap', ai, ri);
        if (He && ii) {
          ni = ri.getConstructor(ai, 'WeakMap', !0), wo.enable();
          var si = ui.prototype,
            li = S(si.delete),
            ci = S(si.has),
            fi = S(si.get),
            di = S(si.set);
          fo(si, {
            delete: function (e) {
              if (N(e) && !mo(e)) {
                var t = oi(this);
                return t.frozen || (t.frozen = new ni), li(this, e) || t.frozen.delete(e);
              }
              return li(this, e);
            },
            has: function (e) {
              if (N(e) && !mo(e)) {
                var t = oi(this);
                return t.frozen || (t.frozen = new ni), ci(this, e) || t.frozen.has(e);
              }
              return ci(this, e);
            },
            get: function (e) {
              if (N(e) && !mo(e)) {
                var t = oi(this);
                return t.frozen || (t.frozen = new ni), ci(this, e) ? fi(this, e) : t.frozen.get(e);
              }
              return fi(this, e);
            },
            set: function (e, t) {
              if (N(e) && !mo(e)) {
                var n = oi(this);
                n.frozen || (n.frozen = new ni), ci(this, e) ? di(this, e, t) : n.frozen.set(e, t);
              } else {
                di(this, e, t);
              }
              return this;
            }
          });
        }
        var pi = {
            CSSRuleList: 0,
            CSSStyleDeclaration: 0,
            CSSValueList: 0,
            ClientRectList: 0,
            DOMRectList: 0,
            DOMStringList: 0,
            DOMTokenList: 1,
            DataTransferItemList: 0,
            FileList: 0,
            HTMLAllCollection: 0,
            HTMLCollection: 0,
            HTMLFormElement: 0,
            HTMLSelectElement: 0,
            MediaList: 0,
            MimeTypeArray: 0,
            NamedNodeMap: 0,
            NodeList: 1,
            PaintRequestList: 0,
            Plugin: 0,
            PluginArray: 0,
            SVGLengthList: 0,
            SVGNumberList: 0,
            SVGPathSegList: 0,
            SVGPointList: 0,
            SVGStringList: 0,
            SVGTransformList: 0,
            SourceBufferList: 0,
            StyleSheetList: 0,
            TextTrackCueList: 0,
            TextTrackList: 0,
            TouchList: 0
          },
          hi = Ce('span').classList,
          vi = hi && hi.constructor && hi.constructor.prototype,
          gi = vi === Object.prototype ? void 0 : vi,
          yi = me('iterator'),
          mi = me('toStringTag'),
          bi = ao.values,
          wi = function (e, t) {
            if (e) {
              if (e[yi] !== bi) {
                try {
                  Ne(e, yi, bi);
                } catch (t) {
                  e[yi] = bi;
                }
              }
              if (e[mi] || Ne(e, mi, t), pi[t]) {
                for (var n in ao) {
                  if (e[n] !== ao[n]) {
                    try {
                      Ne(e, n, ao[n]);
                    } catch (t) {
                      e[n] = ao[n];
                    }
                  }
                }
              }
            }
          };
        for (var Ei in pi) wi(f[Ei] && f[Ei].prototype, Ei);
        wi(gi, 'DOMTokenList');
        var Di = ot.EXISTS,
          xi = je.f,
          Si = Function.prototype,
          Ci = S(Si.toString),
          Ai = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,
          Oi = S(Ai.exec);
        p && !Di && xi(Si, 'name', {
          configurable: !0,
          get: function () {
            try {
              return Oi(Ai, Ci(this))[1];
            } catch (e) {
              return '';
            }
          }
        });
        var ki = function (e, t) {
            var n = [][e];
            return !!n && d((function () {
              n.call(null, t || function () {
                throw 1;
              }, 1);
            }));
          },
          Ti = Wo.forEach,
          Bi = ki('forEach') ? [].forEach : function (e) {
            return Ti(this, e, arguments.length > 1 ? arguments[1] : void 0);
          },
          Fi = function (e) {
            if (e && e.forEach !== Bi) {
              try {
                Ne(e, 'forEach', Bi);
              } catch (t) {
                e.forEach = Bi;
              }
            }
          };
        for (var _i in pi) pi[_i] && Fi(f[_i] && f[_i].prototype);
        Fi(gi);
        var Pi,
          ji,
          Ni,
          Ii,
          Ri = f.Promise,
          Mi = me('species'),
          Li = /(?:ipad|iphone|ipod).*applewebkit/i.test(L),
          zi = 'process' == O(f.process),
          $i = f.setImmediate,
          Hi = f.clearImmediate,
          Vi = f.process,
          Ui = f.Dispatch,
          Wi = f.Function,
          Gi = f.MessageChannel,
          qi = f.String,
          Ki = 0,
          Yi = {},
          Xi = 'onreadystatechange';
        try {
          Pi = f.location;
        } catch (e) {
        }
        var Zi = function (e) {
            if (le(Yi, e)) {
              var t = Yi[e];
              delete Yi[e], t();
            }
          },
          Ji = function (e) {
            return function () {
              Zi(e);
            };
          },
          Qi = function (e) {
            Zi(e.data);
          },
          ea = function (e) {
            f.postMessage(qi(e), Pi.protocol + '//' + Pi.host);
          };
        $i && Hi || ($i = function (e) {
          var t = Qt(arguments, 1);
          return Yi[++Ki] = function () {
            Wn(j(e) ? e : Wi(e), void 0, t);
          }, ji(Ki), Ki;
        }, Hi = function (e) {
          delete Yi[e];
        }, zi ? ji = function (e) {
          Vi.nextTick(Ji(e));
        } : Ui && Ui.now ? ji = function (e) {
          Ui.now(Ji(e));
        } : Gi && !Li ? (Ii = (Ni = new Gi).port2, Ni.port1.onmessage = Qi, ji = Do(Ii.postMessage, Ii)) : f.addEventListener && j(f.postMessage) && !f.importScripts && Pi && 'file:' !== Pi.protocol && !d(ea) ? (ji = ea, f.addEventListener('message', Qi, !1)) : ji = Xi in Ce('script') ? function (e) {
          gn.appendChild(Ce('script')).onreadystatechange = function () {
            gn.removeChild(this), Zi(e);
          };
        } : function (e) {
          setTimeout(Ji(e), 0);
        });
        var ta,
          na,
          ra,
          oa,
          ia,
          aa,
          ua,
          sa,
          la = {
            set: $i,
            clear: Hi
          },
          ca = /ipad|iphone|ipod/i.test(L) && void 0 !== f.Pebble,
          fa = /web0s(?!.*chrome)/i.test(L),
          da = ke.f,
          pa = la.set,
          ha = f.MutationObserver || f.WebKitMutationObserver,
          va = f.document,
          ga = f.process,
          ya = f.Promise,
          ma = da(f, 'queueMicrotask'),
          ba = ma && ma.value;
        ba || (ta = function () {
          var e,
            t;
          for (zi && (e = ga.domain) && e.exit(); na;) {
            t = na.fn, na = na.next;
            try {
              t();
            } catch (e) {
              throw na ? oa() : ra = void 0, e;
            }
          }
          ra = void 0, e && e.enter();
        }, Li || zi || fa || !ha || !va ? !ca && ya && ya.resolve ? ((ua = ya.resolve(void 0)).constructor = ya, sa = Do(ua.then, ua), oa = function () {
          sa(ta);
        }) : zi ? oa = function () {
          ga.nextTick(ta);
        } : (pa = Do(pa, f), oa = function () {
          pa(ta);
        }) : (ia = !0, aa = va.createTextNode(''), new ha(ta).observe(aa, { characterData: !0 }), oa = function () {
          aa.data = ia = !ia;
        }));
        var wa,
          Ea,
          Da,
          xa,
          Sa = ba || function (e) {
            var t = {
              fn: e,
              next: void 0
            };
            ra && (ra.next = t), na || (na = t, oa()), ra = t;
          },
          Ca = function (e) {
            var t,
              n;
            this.promise = new e((function (e, r) {
              if (void 0 !== t || void 0 !== n) throw TypeError('Bad Promise constructor');
              t = e, n = r;
            })), this.resolve = J(t), this.reject = J(n);
          },
          Aa = {
            f: function (e) {
              return new Ca(e);
            }
          },
          Oa = function (e) {
            try {
              return {
                error: !1,
                value: e()
              };
            } catch (e) {
              return {
                error: !0,
                value: e
              };
            }
          },
          ka = 'object' == typeof window,
          Ta = la.set,
          Ba = me('species'),
          Fa = 'Promise',
          _a = et.getterFor(Fa),
          Pa = et.set,
          ja = et.getterFor(Fa),
          Na = Ri && Ri.prototype,
          Ia = Ri,
          Ra = Na,
          Ma = f.TypeError,
          La = f.document,
          za = f.process,
          $a = Aa.f,
          Ha = $a,
          Va = !!(La && La.createEvent && f.dispatchEvent),
          Ua = j(f.PromiseRejectionEvent),
          Wa = 'unhandledrejection',
          Ga = !1,
          qa = _t(Fa, (function () {
            var e = ze(Ia),
              t = e !== String(Ia);
            if (!t && 66 === U) return !0;
            if (U >= 51 && /native code/.test(e)) return !1;
            var n = new Ia((function (e) {
                e(1);
              })),
              r = function (e) {
                e((function () {
                }), (function () {
                }));
              };
            return (n.constructor = {})[Ba] = r, !(Ga = n.then((function () {
            })) instanceof r) || !t && ka && !Ua;
          })),
          Ka = qa || !Lo((function (e) {
            Ia.all(e)
              .catch((function () {
              }));
          })),
          Ya = function (e) {
            var t;
            return !(!N(e) || !j(t = e.then)) && t;
          },
          Xa = function (e, t) {
            if (!e.notified) {
              e.notified = !0;
              var n = e.reactions;
              Sa((function () {
                for (var r = e.value, o = 1 == e.state, i = 0; n.length > i;) {
                  var a,
                    u,
                    s,
                    l = n[i++],
                    c = o ? l.ok : l.fail,
                    f = l.resolve,
                    d = l.reject,
                    p = l.domain;
                  try {
                    c ? (o || (2 === e.rejection && eu(e), e.rejection = 1), !0 === c ? a = r : (p && p.enter(), a = c(r), p && (p.exit(), s = !0)), a === l.promise ? d(Ma('Promise-chain cycle')) : (u = Ya(a)) ? v(u, a, f, d) : f(a)) : d(r);
                  } catch (e) {
                    p && !s && p.exit(), d(e);
                  }
                }
                e.reactions = [], e.notified = !1, t && !e.rejection && Ja(e);
              }));
            }
          },
          Za = function (e, t, n) {
            var r,
              o;
            Va ? ((r = La.createEvent('Event')).promise = t, r.reason = n, r.initEvent(e, !1, !0), f.dispatchEvent(r)) : r = {
              promise: t,
              reason: n
            }, !Ua && (o = f['on' + e]) ? o(r) : e === Wa && function (e, t) {
              var n = f.console;
              n && n.error && (1 == arguments.length ? n.error(e) : n.error(e, t));
            }('Unhandled promise rejection', n);
          },
          Ja = function (e) {
            v(Ta, f, (function () {
              var t,
                n = e.facade,
                r = e.value;
              if (Qa(e) && (t = Oa((function () {
                zi ? za.emit('unhandledRejection', r, n) : Za(Wa, n, r);
              })), e.rejection = zi || Qa(e) ? 2 : 1, t.error)) {
                throw t.value;
              }
            }));
          },
          Qa = function (e) {
            return 1 !== e.rejection && !e.parent;
          },
          eu = function (e) {
            v(Ta, f, (function () {
              var t = e.facade;
              zi ? za.emit('rejectionHandled', t) : Za('rejectionhandled', t, e.value);
            }));
          },
          tu = function (e, t, n) {
            return function (r) {
              e(t, r, n);
            };
          },
          nu = function (e, t, n) {
            e.done || (e.done = !0, n && (e = n), e.value = t, e.state = 2, Xa(e, !0));
          },
          ru = function (e, t, n) {
            if (!e.done) {
              e.done = !0, n && (e = n);
              try {
                if (e.facade === t) throw Ma('Promise can\'t be resolved itself');
                var r = Ya(t);
                r ? Sa((function () {
                  var n = { done: !1 };
                  try {
                    v(r, t, tu(ru, n, e), tu(nu, n, e));
                  } catch (t) {
                    nu(n, t, e);
                  }
                })) : (e.value = t, e.state = 1, Xa(e, !1));
              } catch (t) {
                nu({ done: !1 }, t, e);
              }
            }
          };
        if (qa && (Ra = (Ia = function (e) {
          jo(this, Ra), J(e), v(wa, this);
          var t = _a(this);
          try {
            e(tu(ru, t), tu(nu, t));
          } catch (e) {
            nu(t, e);
          }
        }).prototype, (wa = function (e) {
          Pa(this, {
            type: Fa,
            done: !1,
            notified: !1,
            parent: !1,
            reactions: [],
            rejection: !1,
            state: 0,
            value: void 0
          });
        }).prototype = fo(Ra, {
          then: function (e, t) {
            var n = ja(this),
              r = n.reactions,
              o = $a(Zn(this, Ia));
            return o.ok = !j(e) || e, o.fail = j(t) && t, o.domain = zi ? za.domain : void 0, n.parent = !0, r[r.length] = o, 0 != n.state && Xa(n, !1), o.promise;
          },
          catch: function (e) {
            return this.then(void 0, e);
          }
        }), Ea = function () {
          var e = new wa,
            t = _a(e);
          this.promise = e, this.resolve = tu(ru, t), this.reject = tu(nu, t);
        }, Aa.f = $a = function (e) {
          return e === Ia || e === Da ? new Ea(e) : Ha(e);
        }, j(Ri) && Na !== Object.prototype)) {
          xa = Na.then, Ga || (it(Na, 'then', (function (e, t) {
            var n = this;
            return new Ia((function (e, t) {
              v(xa, n, e, t);
            })).then(e, t);
          }), { unsafe: !0 }), it(Na, 'catch', Ra.catch, { unsafe: !0 }));
          try {
            delete Na.constructor;
          } catch (e) {
          }
          Gr && Gr(Na, Ra);
        }
        jt({
          global: !0,
          wrap: !0,
          forced: qa
        }, { Promise: Ia }), $r(Ia, Fa, !1), function (e) {
          var t = R(e),
            n = je.f;
          p && t && !t[Mi] && n(t, Mi, {
            configurable: !0,
            get: function () {
              return this;
            }
          });
        }(Fa), Da = R(Fa), jt({
          target: Fa,
          stat: !0,
          forced: qa
        }, {
          reject: function (e) {
            var t = $a(this);
            return v(t.reject, void 0, e), t.promise;
          }
        }), jt({
          target: Fa,
          stat: !0,
          forced: qa
        }, {
          resolve: function (e) {
            return function (e, t) {
              if (Fe(e), N(t) && t.constructor === e) return t;
              var n = Aa.f(e);
              return (0, n.resolve)(t), n.promise;
            }(this, e);
          }
        }), jt({
          target: Fa,
          stat: !0,
          forced: Ka
        }, {
          all: function (e) {
            var t = this,
              n = $a(t),
              r = n.resolve,
              o = n.reject,
              i = Oa((function () {
                var n = J(t.resolve),
                  i = [],
                  a = 0,
                  u = 1;
                _o(e, (function (e) {
                  var s = a++,
                    l = !1;
                  u++, v(n, t, e)
                    .then((function (e) {
                      l || (l = !0, i[s] = e, --u || r(i));
                    }), o);
                })), --u || r(i);
              }));
            return i.error && o(i.value), n.promise;
          },
          race: function (e) {
            var t = this,
              n = $a(t),
              r = n.reject,
              o = Oa((function () {
                var o = J(t.resolve);
                _o(e, (function (e) {
                  v(o, t, e)
                    .then(n.resolve, r);
                }));
              }));
            return o.error && r(o.value), n.promise;
          }
        });
        var ou = ot.PROPER,
          iu = 'toString',
          au = RegExp.prototype,
          uu = au.toString,
          su = S(ln),
          lu = d((function () {
            return '/a/b' != uu.call({
              source: 'a',
              flags: 'b'
            });
          })),
          cu = ou && uu.name != iu;
        (lu || cu) && it(RegExp.prototype, iu, (function () {
          var e = Fe(this),
            t = sn(e.source),
            n = e.flags;
          return '/' + t + '/' + sn(void 0 === n && M(au, e) && !('flags' in au) ? su(e) : n);
        }), { unsafe: !0 });
        var fu = new WeakMap;

        function du(e) {
          return e.getMenuConfig('uploadImage');
        }

        function pu(e, t) {
          return br(this, void 0, void 0, (function () {
            return wr(this, (function (r) {
              return [2, new Promise((function (r) {
                var o = new FileReader;
                o.readAsDataURL(t), o.onload = function () {
                  var i = o.result;
                  if (i) {
                    var a = i.toString(),
                      u = 0 === a.indexOf('data:image') ? '' : a;
                    n.insertImageNode(e, a, t.name, u), r('ok');
                  }
                };
              }))];
            }));
          }));
        }

        function hu(t, r) {
          return br(this, void 0, void 0, (function () {
            var o,
              i,
              a,
              u;
            return wr(this, (function (s) {
              switch (s.label) {
                case 0:
                  return o = function (t) {
                    var r = fu.get(t);
                    if (null != r) return r;
                    var o = du(t),
                      i = o.onSuccess,
                      a = o.onProgress,
                      u = o.onFailed,
                      s = o.customInsert,
                      l = o.onError;
                    return r = e.createUploader(mr(mr({}, o), {
                      onProgress: function (e) {
                        t.showProgressBar(e), a && a(e);
                      },
                      onSuccess: function (e, r) {
                        if (s) {
                          s(r, (function (e, r, o) {
                            return n.insertImageNode(t, e, r, o);
                          }));
                        } else {
                          var o = r.errno,
                            a = void 0 === o ? 1 : o,
                            l = r.data,
                            c = void 0 === l ? {} : l;
                          if (0 !== a) return console.error('\'' + e.name + '\' upload failed', r), void u(e, r);
                          if (Array.isArray(c)) {
                            c.forEach((function (e) {
                              var r = e.url,
                                o = void 0 === r ? '' : r,
                                i = e.alt,
                                a = void 0 === i ? '' : i,
                                u = e.href,
                                s = void 0 === u ? '' : u;
                              n.insertImageNode(t, o, a, s);
                            }));
                          } else {
                            var f = c.url,
                              d = void 0 === f ? '' : f,
                              p = c.alt,
                              h = void 0 === p ? '' : p,
                              v = c.href,
                              g = void 0 === v ? '' : v;
                            n.insertImageNode(t, d, h, g);
                          }
                          i(e, r);
                        }
                      },
                      onError: function (e, t, n) {
                        var r = e.name;
                        console.error('\'' + r + ' upload error', t, n), l && l(e, t, n);
                      }
                    })), fu.set(t, r), r;
                  }(t), i = r.name, a = r.type, u = r.size, o.addFile({
                    name: i,
                    type: a,
                    size: u,
                    data: r
                  }), [4, o.upload()];
                case 1:
                  return s.sent(), [2];
              }
            }));
          }));
        }

        function vu(e, t) {
          var r,
            o;
          return br(this, void 0, void 0, (function () {
            var i,
              a,
              u,
              s,
              l,
              c,
              f,
              d,
              p;
            return wr(this, (function (h) {
              switch (h.label) {
                case 0:
                  if (null == t) return [2];
                  i = Array.prototype.slice.call(t), a = du(e), u = a.customUpload, s = a.base64LimitSize, h.label = 1;
                case 1:
                  h.trys.push([1, 11, 12, 17]), l = Dr(i), h.label = 2;
                case 2:
                  return [4, l.next()];
                case 3:
                  return (c = h.sent()).done ? [3, 10] : (f = c.value, d = f.size, s && d <= s ? [4, pu(e, f)] : [3, 5]);
                case 4:
                  return h.sent(), [3, 9];
                case 5:
                  return u ? [4, u(f, (function (t, r, o) {
                    return n.insertImageNode(e, t, r, o);
                  }))] : [3, 7];
                case 6:
                  return h.sent(), [3, 9];
                case 7:
                  return [4, hu(e, f)];
                case 8:
                  h.sent(), h.label = 9;
                case 9:
                  return [3, 2];
                case 10:
                  return [3, 17];
                case 11:
                  return p = h.sent(), r = { error: p }, [3, 17];
                case 12:
                  return h.trys.push([12, , 15, 16]), c && !c.done && (o = l.return) ? [4, o.call(l)] : [3, 14];
                case 13:
                  h.sent(), h.label = 14;
                case 14:
                  return [3, 16];
                case 15:
                  if (r) throw r.error;
                  return [7];
                case 16:
                  return [7];
                case 17:
                  return [2];
              }
            }));
          }));
        }

        var gu = S([].join),
          yu = B != Object,
          mu = ki('join', ',');
        jt({
          target: 'Array',
          proto: !0,
          forced: yu || !mu
        }, {
          join: function (e) {
            return gu(P(this), void 0 === e ? ',' : e);
          }
        }), r.append && (i.default.fn.append = r.append), r.on && (i.default.fn.on = r.on), r.remove && (i.default.fn.remove = r.remove), r.val && (i.default.fn.val = r.val), r.click && (i.default.fn.click = r.click), r.hide && (i.default.fn.hide = r.hide);
        var bu = function () {
            function t() {
              this.title = e.t('uploadImgModule.uploadImage'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>', this.tag = 'button';
            }

            return t.prototype.getValue = function (e) {
              return '';
            }, t.prototype.isActive = function (e) {
              return !1;
            }, t.prototype.isDisabled = function (e) {
              return n.isInsertImageMenuDisabled(e);
            }, t.prototype.getMenuConfig = function (e) {
              return e.getMenuConfig('uploadImage');
            }, t.prototype.exec = function (e, t) {
              var r = this.getMenuConfig(e),
                o = r.allowedFileTypes,
                a = void 0 === o ? [] : o,
                u = r.customBrowseAndUpload;
              if (u) {
                u((function (t, r, o) {
                  return n.insertImageNode(e, t, r, o);
                }));
              } else {
                var s = '';
                a.length > 0 && (s = 'accept="' + a.join(', ') + '"');
                var l = i.default('body'),
                  c = i.default('<input type="file" ' + s + ' multiple/>');
                c.hide(), l.append(c), c.click(), c.on('change', (function () {
                  var t = c[0].files;
                  vu(e, t);
                }));
              }
            }, t;
          }(),
          wu = {
            menus: [{
              key: 'uploadImage',
              factory: function () {
                return new bu;
              },
              config: {
                server: '',
                fieldName: 'wangeditor-uploaded-image',
                maxFileSize: 2097152,
                maxNumberOfFiles: 100,
                allowedFileTypes: ['image/*'],
                meta: {},
                metaWithUrl: !1,
                withCredentials: !1,
                timeout: 1e4,
                onBeforeUpload: function (e) {
                  return e;
                },
                onProgress: function (e) {
                },
                onSuccess: function (e, t) {
                },
                onFailed: function (e, t) {
                },
                onError: function (e, t, n) {
                },
                base64LimitSize: 0
              }
            }],
            editorPlugin: function (e) {
              var t = e.insertData,
                r = e;
              return r.insertData = function (o) {
                if (n.isInsertImageMenuDisabled(r)) {
                  t(o);
                } else if (o.getData('text/plain')) {
                  t(o);
                } else {
                  var i = o.files;
                  i.length <= 0 ? t(o) : Array.prototype.slice.call(i)
                    .some((function (e) {
                      return 'image' === function (e, t) {
                        var n = 'function' == typeof Symbol && e[Symbol.iterator];
                        if (!n) return e;
                        var r,
                          o,
                          i = n.call(e),
                          a = [];
                        try {
                          for (; (void 0 === t || t-- > 0) && !(r = i.next()).done;) a.push(r.value);
                        } catch (e) {
                          o = { error: e };
                        } finally {
                          try {
                            r && !r.done && (n = i.return) && n.call(i);
                          } finally {
                            if (o) throw o.error;
                          }
                        }
                        return a;
                      }(e.type.split('/'), 1)[0];
                    })) ? vu(e, i) : t(o);
                }
              }, r;
            }
          };
        return wu;
      }(BE, ZE, kE);
    })),
    oD = r((function (e, n) {
      !function (e, n, r, o) {
        function i(e) {
          return e && 'object' == typeof e && 'default' in e ? e : { default: e };
        }

        var a = i(r);
        n.i18nAddResources('en', { highLightModule: { selectLang: 'Language' } }), n.i18nAddResources('zh-CN', { highLightModule: { selectLang: '选择语言' } });
        var u = 'undefined' != typeof globalThis ? globalThis : 'undefined' != typeof window ? window : void 0 !== t ? t : 'undefined' != typeof self ? self : {};

        function s(e) {
          var t = { exports: {} };
          return e(t, t.exports), t.exports;
        }

        var l,
          c,
          f = function (e) {
            return e && e.Math == Math && e;
          },
          d = f('object' == typeof globalThis && globalThis) || f('object' == typeof window && window) || f('object' == typeof self && self) || f('object' == typeof u && u) || function () {
            return this;
          }() || Function('return this')(),
          p = Object.defineProperty,
          h = function (e, t) {
            try {
              p(d, e, {
                value: t,
                configurable: !0,
                writable: !0
              });
            } catch (n) {
              d[e] = t;
            }
            return t;
          },
          v = '__core-js_shared__',
          g = d[v] || h(v, {}),
          y = s((function (e) {
            (e.exports = function (e, t) {
              return g[e] || (g[e] = void 0 !== t ? t : {});
            })('versions', [])
              .push({
                version: '3.19.3',
                mode: 'global',
                copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
              });
          })),
          m = Function.prototype,
          b = m.bind,
          w = m.call,
          E = b && b.bind(w),
          D = b ? function (e) {
            return e && E(w, e);
          } : function (e) {
            return e && function () {
              return w.apply(e, arguments);
            };
          },
          x = d.TypeError,
          S = function (e) {
            if (null == e) throw x('Can\'t call method on ' + e);
            return e;
          },
          C = d.Object,
          A = function (e) {
            return C(S(e));
          },
          O = D({}.hasOwnProperty),
          k = Object.hasOwn || function (e, t) {
            return O(A(e), t);
          },
          T = 0,
          B = Math.random(),
          F = D(1..toString),
          _ = function (e) {
            return 'Symbol(' + (void 0 === e ? '' : e) + ')_' + F(++T + B, 36);
          },
          P = function (e) {
            return 'function' == typeof e;
          },
          j = function (e) {
            return P(e) ? e : void 0;
          },
          N = function (e, t) {
            return arguments.length < 2 ? j(d[e]) : d[e] && d[e][t];
          },
          I = N('navigator', 'userAgent') || '',
          R = d.process,
          M = d.Deno,
          L = R && R.versions || M && M.version,
          z = L && L.v8;
        z && (c = (l = z.split('.'))[0] > 0 && l[0] < 4 ? 1 : +(l[0] + l[1])), !c && I && (!(l = I.match(/Edge\/(\d+)/)) || l[1] >= 74) && (l = I.match(/Chrome\/(\d+)/)) && (c = +l[1]);
        var $ = c,
          H = function (e) {
            try {
              return !!e();
            } catch (e) {
              return !0;
            }
          },
          V = !!Object.getOwnPropertySymbols && !H((function () {
            var e = Symbol();
            return !String(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && $ && $ < 41;
          })),
          U = V && !Symbol.sham && 'symbol' == typeof Symbol.iterator,
          W = y('wks'),
          G = d.Symbol,
          q = G && G.for,
          K = U ? G : G && G.withoutSetter || _,
          Y = function (e) {
            if (!k(W, e) || !V && 'string' != typeof W[e]) {
              var t = 'Symbol.' + e;
              V && k(G, e) ? W[e] = G[e] : W[e] = U && q ? q(t) : K(t);
            }
            return W[e];
          },
          X = {};
        X[Y('toStringTag')] = 'z';
        var Z = '[object z]' === String(X),
          J = !H((function () {
            return 7 != Object.defineProperty({}, 1, {
              get: function () {
                return 7;
              }
            })[1];
          })),
          Q = function (e) {
            return 'object' == typeof e ? null !== e : P(e);
          },
          ee = d.document,
          te = Q(ee) && Q(ee.createElement),
          ne = function (e) {
            return te ? ee.createElement(e) : {};
          },
          re = !J && !H((function () {
            return 7 != Object.defineProperty(ne('div'), 'a', {
              get: function () {
                return 7;
              }
            }).a;
          })),
          oe = d.String,
          ie = d.TypeError,
          ae = function (e) {
            if (Q(e)) return e;
            throw ie(oe(e) + ' is not an object');
          },
          ue = Function.prototype.call,
          se = ue.bind ? ue.bind(ue) : function () {
            return ue.apply(ue, arguments);
          },
          le = D({}.isPrototypeOf),
          ce = d.Object,
          fe = U ? function (e) {
            return 'symbol' == typeof e;
          } : function (e) {
            var t = N('Symbol');
            return P(t) && le(t.prototype, ce(e));
          },
          de = d.String,
          pe = function (e) {
            try {
              return de(e);
            } catch (e) {
              return 'Object';
            }
          },
          he = d.TypeError,
          ve = function (e) {
            if (P(e)) return e;
            throw he(pe(e) + ' is not a function');
          },
          ge = function (e, t) {
            var n = e[t];
            return null == n ? void 0 : ve(n);
          },
          ye = d.TypeError,
          me = d.TypeError,
          be = Y('toPrimitive'),
          we = function (e, t) {
            if (!Q(e) || fe(e)) return e;
            var n,
              r = ge(e, be);
            if (r) {
              if (void 0 === t && (t = 'default'), n = se(r, e, t), !Q(n) || fe(n)) return n;
              throw me('Can\'t convert object to primitive value');
            }
            return void 0 === t && (t = 'number'), function (e, t) {
              var n,
                r;
              if ('string' === t && P(n = e.toString) && !Q(r = se(n, e))) return r;
              if (P(n = e.valueOf) && !Q(r = se(n, e))) return r;
              if ('string' !== t && P(n = e.toString) && !Q(r = se(n, e))) return r;
              throw ye('Can\'t convert object to primitive value');
            }(e, t);
          },
          Ee = function (e) {
            var t = we(e, 'string');
            return fe(t) ? t : t + '';
          },
          De = d.TypeError,
          xe = Object.defineProperty,
          Se = {
            f: J ? xe : function (e, t, n) {
              if (ae(e), t = Ee(t), ae(n), re) {
                try {
                  return xe(e, t, n);
                } catch (e) {
                }
              }
              if ('get' in n || 'set' in n) throw De('Accessors not supported');
              return 'value' in n && (e[t] = n.value), e;
            }
          },
          Ce = function (e, t) {
            return {
              enumerable: !(1 & e),
              configurable: !(2 & e),
              writable: !(4 & e),
              value: t
            };
          },
          Ae = J ? function (e, t, n) {
            return Se.f(e, t, Ce(1, n));
          } : function (e, t, n) {
            return e[t] = n, e;
          },
          Oe = D(Function.toString);
        P(g.inspectSource) || (g.inspectSource = function (e) {
          return Oe(e);
        });
        var ke,
          Te,
          Be,
          Fe = g.inspectSource,
          _e = d.WeakMap,
          Pe = P(_e) && /native code/.test(Fe(_e)),
          je = y('keys'),
          Ne = function (e) {
            return je[e] || (je[e] = _(e));
          },
          Ie = {},
          Re = 'Object already initialized',
          Me = d.TypeError,
          Le = d.WeakMap;
        if (Pe || g.state) {
          var ze = g.state || (g.state = new Le),
            $e = D(ze.get),
            He = D(ze.has),
            Ve = D(ze.set);
          ke = function (e, t) {
            if (He(ze, e)) throw new Me(Re);
            return t.facade = e, Ve(ze, e, t), t;
          }, Te = function (e) {
            return $e(ze, e) || {};
          }, Be = function (e) {
            return He(ze, e);
          };
        } else {
          var Ue = Ne('state');
          Ie[Ue] = !0, ke = function (e, t) {
            if (k(e, Ue)) throw new Me(Re);
            return t.facade = e, Ae(e, Ue, t), t;
          }, Te = function (e) {
            return k(e, Ue) ? e[Ue] : {};
          }, Be = function (e) {
            return k(e, Ue);
          };
        }
        var We = {
            set: ke,
            get: Te,
            has: Be,
            enforce: function (e) {
              return Be(e) ? Te(e) : ke(e, {});
            },
            getterFor: function (e) {
              return function (t) {
                var n;
                if (!Q(t) || (n = Te(t)).type !== e) throw Me('Incompatible receiver, ' + e + ' required');
                return n;
              };
            }
          },
          Ge = Function.prototype,
          qe = J && Object.getOwnPropertyDescriptor,
          Ke = k(Ge, 'name'),
          Ye = {
            EXISTS: Ke,
            PROPER: Ke && 'something' === function () {
            }.name,
            CONFIGURABLE: Ke && (!J || J && qe(Ge, 'name').configurable)
          },
          Xe = s((function (e) {
            var t = Ye.CONFIGURABLE,
              n = We.get,
              r = We.enforce,
              o = String(String)
                .split('String');
            (e.exports = function (e, n, i, a) {
              var u,
                s = !!a && !!a.unsafe,
                l = !!a && !!a.enumerable,
                c = !!a && !!a.noTargetGet,
                f = a && void 0 !== a.name ? a.name : n;
              P(i) && ('Symbol(' === String(f)
                .slice(0, 7) && (f = '[' + String(f)
                .replace(/^Symbol\(([^)]*)\)/, '$1') + ']'), (!k(i, 'name') || t && i.name !== f) && Ae(i, 'name', f), (u = r(i)).source || (u.source = o.join('string' == typeof f ? f : ''))), e !== d ? (s ? !c && e[n] && (l = !0) : delete e[n], l ? e[n] = i : Ae(e, n, i)) : l ? e[n] = i : h(n, i);
            })(Function.prototype, 'toString', (function () {
              return P(this) && n(this).source || Fe(this);
            }));
          })),
          Ze = D({}.toString),
          Je = D(''.slice),
          Qe = function (e) {
            return Je(Ze(e), 8, -1);
          },
          et = Y('toStringTag'),
          tt = d.Object,
          nt = 'Arguments' == Qe(function () {
            return arguments;
          }()),
          rt = Z ? Qe : function (e) {
            var t,
              n,
              r;
            return void 0 === e ? 'Undefined' : null === e ? 'Null' : 'string' == typeof (n = function (e, t) {
              try {
                return e[t];
              } catch (e) {
              }
            }(t = tt(e), et)) ? n : nt ? Qe(t) : 'Object' == (r = Qe(t)) && P(t.callee) ? 'Arguments' : r;
          },
          ot = Z ? {}.toString : function () {
            return '[object ' + rt(this) + ']';
          };
        Z || Xe(Object.prototype, 'toString', ot, { unsafe: !0 });
        var it,
          at,
          ut = {
            CSSRuleList: 0,
            CSSStyleDeclaration: 0,
            CSSValueList: 0,
            ClientRectList: 0,
            DOMRectList: 0,
            DOMStringList: 0,
            DOMTokenList: 1,
            DataTransferItemList: 0,
            FileList: 0,
            HTMLAllCollection: 0,
            HTMLCollection: 0,
            HTMLFormElement: 0,
            HTMLSelectElement: 0,
            MediaList: 0,
            MimeTypeArray: 0,
            NamedNodeMap: 0,
            NodeList: 1,
            PaintRequestList: 0,
            Plugin: 0,
            PluginArray: 0,
            SVGLengthList: 0,
            SVGNumberList: 0,
            SVGPathSegList: 0,
            SVGPointList: 0,
            SVGStringList: 0,
            SVGTransformList: 0,
            SourceBufferList: 0,
            StyleSheetList: 0,
            TextTrackCueList: 0,
            TextTrackList: 0,
            TouchList: 0
          },
          st = ne('span').classList,
          lt = st && st.constructor && st.constructor.prototype,
          ct = lt === Object.prototype ? void 0 : lt,
          ft = D(D.bind),
          dt = d.Object,
          pt = D(''.split),
          ht = H((function () {
            return !dt('z')
              .propertyIsEnumerable(0);
          })) ? function (e) {
            return 'String' == Qe(e) ? pt(e, '') : dt(e);
          } : dt,
          vt = Math.ceil,
          gt = Math.floor,
          yt = function (e) {
            var t = +e;
            return t != t || 0 === t ? 0 : (t > 0 ? gt : vt)(t);
          },
          mt = Math.min,
          bt = function (e) {
            return e > 0 ? mt(yt(e), 9007199254740991) : 0;
          },
          wt = function (e) {
            return bt(e.length);
          },
          Et = Array.isArray || function (e) {
            return 'Array' == Qe(e);
          },
          Dt = function () {
          },
          xt = [],
          St = N('Reflect', 'construct'),
          Ct = /^\s*(?:class|function)\b/,
          At = D(Ct.exec),
          Ot = !Ct.exec(Dt),
          kt = function (e) {
            if (!P(e)) return !1;
            try {
              return St(Dt, xt, e), !0;
            } catch (e) {
              return !1;
            }
          },
          Tt = !St || H((function () {
            var e;
            return kt(kt.call) || !kt(Object) || !kt((function () {
              e = !0;
            })) || e;
          })) ? function (e) {
            if (!P(e)) return !1;
            switch (rt(e)) {
              case'AsyncFunction':
              case'GeneratorFunction':
              case'AsyncGeneratorFunction':
                return !1;
            }
            return Ot || !!At(Ct, Fe(e));
          } : kt,
          Bt = Y('species'),
          Ft = d.Array,
          _t = function (e, t) {
            return new (function (e) {
              var t;
              return Et(e) && (t = e.constructor, (Tt(t) && (t === Ft || Et(t.prototype)) || Q(t) && null === (t = t[Bt])) && (t = void 0)), void 0 === t ? Ft : t;
            }(e))(0 === t ? 0 : t);
          },
          Pt = D([].push),
          jt = function (e) {
            var t = 1 == e,
              n = 2 == e,
              r = 3 == e,
              o = 4 == e,
              i = 6 == e,
              a = 7 == e,
              u = 5 == e || i;
            return function (s, l, c, f) {
              for (var d, p, h = A(s), v = ht(h), g = function (e, t) {
                return ve(e), void 0 === t ? e : ft ? ft(e, t) : function () {
                  return e.apply(t, arguments);
                };
              }(l, c), y = wt(v), m = 0, b = f || _t, w = t ? b(s, y) : n || a ? b(s, 0) : void 0; y > m; m++) {
                if ((u || m in v) && (p = g(d = v[m], m, h), e)) {
                  if (t) {
                    w[m] = p;
                  } else if (p) {
                    switch (e) {
                      case 3:
                        return !0;
                      case 5:
                        return d;
                      case 6:
                        return m;
                      case 2:
                        Pt(w, d);
                    }
                  } else {
                    switch (e) {
                      case 4:
                        return !1;
                      case 7:
                        Pt(w, d);
                    }
                  }
                }
              }
              return i ? -1 : r || o ? o : w;
            };
          },
          Nt = [jt(0), jt(1), jt(2), jt(3), jt(4), jt(5), jt(6), jt(7)][0],
          It = (at = [].forEach) && H((function () {
            at.call(null, it || function () {
              throw 1;
            }, 1);
          })) ? [].forEach : function (e) {
            return Nt(this, e, arguments.length > 1 ? arguments[1] : void 0);
          },
          Rt = function (e) {
            if (e && e.forEach !== It) {
              try {
                Ae(e, 'forEach', It);
              } catch (t) {
                e.forEach = It;
              }
            }
          };
        for (var Mt in ut) ut[Mt] && Rt(d[Mt] && d[Mt].prototype);
        Rt(ct);
        var Lt = {}.propertyIsEnumerable,
          zt = Object.getOwnPropertyDescriptor,
          $t = {
            f: zt && !Lt.call({ 1: 2 }, 1) ? function (e) {
              var t = zt(this, e);
              return !!t && t.enumerable;
            } : Lt
          },
          Ht = function (e) {
            return ht(S(e));
          },
          Vt = Object.getOwnPropertyDescriptor,
          Ut = {
            f: J ? Vt : function (e, t) {
              if (e = Ht(e), t = Ee(t), re) {
                try {
                  return Vt(e, t);
                } catch (e) {
                }
              }
              if (k(e, t)) return Ce(!se($t.f, e, t), e[t]);
            }
          },
          Wt = Math.max,
          Gt = Math.min,
          qt = function (e, t) {
            var n = yt(e);
            return n < 0 ? Wt(n + t, 0) : Gt(n, t);
          },
          Kt = function (e) {
            return function (t, n, r) {
              var o,
                i = Ht(t),
                a = wt(i),
                u = qt(r, a);
              if (e && n != n) {
                for (; a > u;) if ((o = i[u++]) != o) return !0;
              } else {
                for (; a > u; u++) if ((e || u in i) && i[u] === n) return e || u || 0;
              }
              return !e && -1;
            };
          },
          Yt = (Kt(!0), Kt(!1)),
          Xt = D([].push),
          Zt = function (e, t) {
            var n,
              r = Ht(e),
              o = 0,
              i = [];
            for (n in r) !k(Ie, n) && k(r, n) && Xt(i, n);
            for (; t.length > o;) k(r, n = t[o++]) && (~Yt(i, n) || Xt(i, n));
            return i;
          },
          Jt = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'],
          Qt = Jt.concat('length', 'prototype'),
          en = {
            f: Object.getOwnPropertyNames || function (e) {
              return Zt(e, Qt);
            }
          },
          tn = { f: Object.getOwnPropertySymbols },
          nn = D([].concat),
          rn = N('Reflect', 'ownKeys') || function (e) {
            var t = en.f(ae(e)),
              n = tn.f;
            return n ? nn(t, n(e)) : t;
          },
          on = function (e, t) {
            for (var n = rn(t), r = Se.f, o = Ut.f, i = 0; i < n.length; i++) {
              var a = n[i];
              k(e, a) || r(e, a, o(t, a));
            }
          },
          an = /#|\.prototype\./,
          un = function (e, t) {
            var n = ln[sn(e)];
            return n == fn || n != cn && (P(t) ? H(t) : !!t);
          },
          sn = un.normalize = function (e) {
            return String(e)
              .replace(an, '.')
              .toLowerCase();
          },
          ln = un.data = {},
          cn = un.NATIVE = 'N',
          fn = un.POLYFILL = 'P',
          dn = un,
          pn = Ut.f,
          hn = function (e, t) {
            var n,
              r,
              o,
              i,
              a,
              u = e.target,
              s = e.global,
              l = e.stat;
            if (n = s ? d : l ? d[u] || h(u, {}) : (d[u] || {}).prototype) {
              for (r in t) {
                if (i = t[r], o = e.noTargetGet ? (a = pn(n, r)) && a.value : n[r], !dn(s ? r : u + (l ? '.' : '#') + r, e.forced) && void 0 !== o) {
                  if (typeof i == typeof o) continue;
                  on(i, o);
                }
                (e.sham || o && o.sham) && Ae(i, 'sham', !0), Xe(n, r, i, e);
              }
            }
          },
          vn = Object.keys || function (e) {
            return Zt(e, Jt);
          },
          gn = Object.assign,
          yn = Object.defineProperty,
          mn = D([].concat),
          bn = !gn || H((function () {
            if (J && 1 !== gn({ b: 1 }, gn(yn({}, 'a', {
              enumerable: !0,
              get: function () {
                yn(this, 'b', {
                  value: 3,
                  enumerable: !1
                });
              }
            }), { b: 2 })).b) {
              return !0;
            }
            var e = {},
              t = {},
              n = Symbol(),
              r = 'abcdefghijklmnopqrst';
            return e[n] = 7, r.split('')
              .forEach((function (e) {
                t[e] = e;
              })), 7 != gn({}, e)[n] || vn(gn({}, t))
              .join('') != r;
          })) ? function (e, t) {
            for (var n = A(e), r = arguments.length, o = 1, i = tn.f, a = $t.f; r > o;) for (var u, s = ht(arguments[o++]), l = i ? mn(vn(s), i(s)) : vn(s), c = l.length, f = 0; c > f;) u = l[f++], J && !se(a, s, u) || (n[u] = s[u]);
            return n;
          } : gn;
        hn({
          target: 'Object',
          stat: !0,
          forced: Object.assign !== bn
        }, { assign: bn });
        var wn = s((function (e) {
          var t = function (e) {
            var t = /\blang(?:uage)?-([\w-]+)\b/i,
              n = 0,
              r = {},
              o = {
                manual: e.Prism && e.Prism.manual,
                disableWorkerMessageHandler: e.Prism && e.Prism.disableWorkerMessageHandler,
                util: {
                  encode: function e(t) {
                    return t instanceof i ? new i(t.type, e(t.content), t.alias) : Array.isArray(t) ? t.map(e) : t.replace(/&/g, '&amp;')
                      .replace(/</g, '&lt;')
                      .replace(/\u00a0/g, ' ');
                  },
                  type: function (e) {
                    return Object.prototype.toString.call(e)
                      .slice(8, -1);
                  },
                  objId: function (e) {
                    return e.__id || Object.defineProperty(e, '__id', { value: ++n }), e.__id;
                  },
                  clone: function e(t, n) {
                    var r,
                      i;
                    switch (n = n || {}, o.util.type(t)) {
                      case'Object':
                        if (i = o.util.objId(t), n[i]) return n[i];
                        for (var a in r = {}, n[i] = r, t) t.hasOwnProperty(a) && (r[a] = e(t[a], n));
                        return r;
                      case'Array':
                        return i = o.util.objId(t), n[i] ? n[i] : (r = [], n[i] = r, t.forEach((function (t, o) {
                          r[o] = e(t, n);
                        })), r);
                      default:
                        return t;
                    }
                  },
                  getLanguage: function (e) {
                    for (; e && !t.test(e.className);) e = e.parentElement;
                    return e ? (e.className.match(t) || [, 'none'])[1].toLowerCase() : 'none';
                  },
                  currentScript: function () {
                    if ('undefined' == typeof document) return null;
                    if ('currentScript' in document) return document.currentScript;
                    try {
                      throw new Error;
                    } catch (r) {
                      var e = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack) || [])[1];
                      if (e) {
                        var t = document.getElementsByTagName('script');
                        for (var n in t) if (t[n].src == e) return t[n];
                      }
                      return null;
                    }
                  },
                  isActive: function (e, t, n) {
                    for (var r = 'no-' + t; e;) {
                      var o = e.classList;
                      if (o.contains(t)) return !0;
                      if (o.contains(r)) return !1;
                      e = e.parentElement;
                    }
                    return !!n;
                  }
                },
                languages: {
                  plain: r,
                  plaintext: r,
                  text: r,
                  txt: r,
                  extend: function (e, t) {
                    var n = o.util.clone(o.languages[e]);
                    for (var r in t) n[r] = t[r];
                    return n;
                  },
                  insertBefore: function (e, t, n, r) {
                    var i = (r = r || o.languages)[e],
                      a = {};
                    for (var u in i) {
                      if (i.hasOwnProperty(u)) {
                        if (u == t) for (var s in n) n.hasOwnProperty(s) && (a[s] = n[s]);
                        n.hasOwnProperty(u) || (a[u] = i[u]);
                      }
                    }
                    var l = r[e];
                    return r[e] = a, o.languages.DFS(o.languages, (function (t, n) {
                      n === l && t != e && (this[t] = a);
                    })), a;
                  },
                  DFS: function e(t, n, r, i) {
                    i = i || {};
                    var a = o.util.objId;
                    for (var u in t) {
                      if (t.hasOwnProperty(u)) {
                        n.call(t, u, t[u], r || u);
                        var s = t[u],
                          l = o.util.type(s);
                        'Object' !== l || i[a(s)] ? 'Array' !== l || i[a(s)] || (i[a(s)] = !0, e(s, n, u, i)) : (i[a(s)] = !0, e(s, n, null, i));
                      }
                    }
                  }
                },
                plugins: {},
                highlightAll: function (e, t) {
                  o.highlightAllUnder(document, e, t);
                },
                highlightAllUnder: function (e, t, n) {
                  var r = {
                    callback: n,
                    container: e,
                    selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
                  };
                  o.hooks.run('before-highlightall', r), r.elements = Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)), o.hooks.run('before-all-elements-highlight', r);
                  for (var i, a = 0; i = r.elements[a++];) o.highlightElement(i, !0 === t, r.callback);
                },
                highlightElement: function (n, r, i) {
                  var a = o.util.getLanguage(n),
                    u = o.languages[a];
                  n.className = n.className.replace(t, '')
                    .replace(/\s+/g, ' ') + ' language-' + a;
                  var s = n.parentElement;
                  s && 'pre' === s.nodeName.toLowerCase() && (s.className = s.className.replace(t, '')
                    .replace(/\s+/g, ' ') + ' language-' + a);
                  var l = {
                    element: n,
                    language: a,
                    grammar: u,
                    code: n.textContent
                  };

                  function c(e) {
                    l.highlightedCode = e, o.hooks.run('before-insert', l), l.element.innerHTML = l.highlightedCode, o.hooks.run('after-highlight', l), o.hooks.run('complete', l), i && i.call(l.element);
                  }

                  if (o.hooks.run('before-sanity-check', l), (s = l.element.parentElement) && 'pre' === s.nodeName.toLowerCase() && !s.hasAttribute('tabindex') && s.setAttribute('tabindex', '0'), !l.code) return o.hooks.run('complete', l), void (i && i.call(l.element));
                  if (o.hooks.run('before-highlight', l), l.grammar) {
                    if (r && e.Worker) {
                      var f = new Worker(o.filename);
                      f.onmessage = function (e) {
                        c(e.data);
                      }, f.postMessage(JSON.stringify({
                        language: l.language,
                        code: l.code,
                        immediateClose: !0
                      }));
                    } else {
                      c(o.highlight(l.code, l.grammar, l.language));
                    }
                  } else {
                    c(o.util.encode(l.code));
                  }
                },
                highlight: function (e, t, n) {
                  var r = {
                    code: e,
                    grammar: t,
                    language: n
                  };
                  return o.hooks.run('before-tokenize', r), r.tokens = o.tokenize(r.code, r.grammar), o.hooks.run('after-tokenize', r), i.stringify(o.util.encode(r.tokens), r.language);
                },
                tokenize: function (e, t) {
                  var n = t.rest;
                  if (n) {
                    for (var r in n) t[r] = n[r];
                    delete t.rest;
                  }
                  var o = new s;
                  return l(o, o.head, e), u(e, o, t, o.head, 0), function (e) {
                    for (var t = [], n = e.head.next; n !== e.tail;) t.push(n.value), n = n.next;
                    return t;
                  }(o);
                },
                hooks: {
                  all: {},
                  add: function (e, t) {
                    var n = o.hooks.all;
                    n[e] = n[e] || [], n[e].push(t);
                  },
                  run: function (e, t) {
                    var n = o.hooks.all[e];
                    if (n && n.length) for (var r, i = 0; r = n[i++];) r(t);
                  }
                },
                Token: i
              };

            function i(e, t, n, r) {
              this.type = e, this.content = t, this.alias = n, this.length = 0 | (r || '').length;
            }

            function a(e, t, n, r) {
              e.lastIndex = t;
              var o = e.exec(n);
              if (o && r && o[1]) {
                var i = o[1].length;
                o.index += i, o[0] = o[0].slice(i);
              }
              return o;
            }

            function u(e, t, n, r, s, f) {
              for (var d in n) {
                if (n.hasOwnProperty(d) && n[d]) {
                  var p = n[d];
                  p = Array.isArray(p) ? p : [p];
                  for (var h = 0; h < p.length; ++h) {
                    if (f && f.cause == d + ',' + h) return;
                    var v = p[h],
                      g = v.inside,
                      y = !!v.lookbehind,
                      m = !!v.greedy,
                      b = v.alias;
                    if (m && !v.pattern.global) {
                      var w = v.pattern.toString()
                        .match(/[imsuy]*$/)[0];
                      v.pattern = RegExp(v.pattern.source, w + 'g');
                    }
                    for (var E = v.pattern || v, D = r.next, x = s; D !== t.tail && !(f && x >= f.reach); x += D.value.length, D = D.next) {
                      var S = D.value;
                      if (t.length > e.length) return;
                      if (!(S instanceof i)) {
                        var C,
                          A = 1;
                        if (m) {
                          if (!(C = a(E, x, e, y))) break;
                          var O = C.index,
                            k = C.index + C[0].length,
                            T = x;
                          for (T += D.value.length; O >= T;) T += (D = D.next).value.length;
                          if (x = T -= D.value.length, D.value instanceof i) continue;
                          for (var B = D; B !== t.tail && (T < k || "string" == typeof B.value); B = B.next) A++, T += B.value.length;
                          A--, S = e.slice(x, T), C.index -= x;
                        } else if (!(C = a(E, 0, S, y))) continue;
                        O = C.index;
                        var F = C[0],
                          _ = S.slice(0, O),
                          P = S.slice(O + F.length),
                          j = x + S.length;
                        f && j > f.reach && (f.reach = j);
                        var N = D.prev;
                        if (_ && (N = l(t, N, _), x += _.length), c(t, N, A), D = l(t, N, new i(d, g ? o.tokenize(F, g) : F, b, F)), P && l(t, D, P), A > 1) {
                          var I = {
                            cause: d + ',' + h,
                            reach: j
                          };
                          u(e, t, n, D.prev, x, I), f && I.reach > f.reach && (f.reach = I.reach);
                        }
                      }
                    }
                  }
                }
              }
            }

            function s() {
              var e = {
                  value: null,
                  prev: null,
                  next: null
                },
                t = {
                  value: null,
                  prev: e,
                  next: null
                };
              e.next = t, this.head = e, this.tail = t, this.length = 0;
            }

            function l(e, t, n) {
              var r = t.next,
                o = {
                  value: n,
                  prev: t,
                  next: r
                };
              return t.next = o, r.prev = o, e.length++, o;
            }

            function c(e, t, n) {
              for (var r = t.next, o = 0; o < n && r !== e.tail; o++) r = r.next;
              t.next = r, r.prev = t, e.length -= o;
            }

            if (e.Prism = o, i.stringify = function e(t, n) {
              if ('string' == typeof t) return t;
              if (Array.isArray(t)) {
                var r = '';
                return t.forEach((function (t) {
                  r += e(t, n);
                })), r;
              }
              var i = {
                  type: t.type,
                  content: e(t.content, n),
                  tag: 'span',
                  classes: ['token', t.type],
                  attributes: {},
                  language: n
                },
                a = t.alias;
              a && (Array.isArray(a) ? Array.prototype.push.apply(i.classes, a) : i.classes.push(a)), o.hooks.run('wrap', i);
              var u = '';
              for (var s in i.attributes) u += ' ' + s + '="' + (i.attributes[s] || '').replace(/"/g, '&quot;') + '"';
              return '<' + i.tag + ' class="' + i.classes.join(' ') + '"' + u + '>' + i.content + '</' + i.tag + '>';
            }, !e.document) {
              return e.addEventListener ? (o.disableWorkerMessageHandler || e.addEventListener('message', (function (t) {
                var n = JSON.parse(t.data),
                  r = n.language,
                  i = n.code,
                  a = n.immediateClose;
                e.postMessage(o.highlight(i, o.languages[r], r)), a && e.close();
              }), !1), o) : o;
            }
            var f = o.util.currentScript();

            function d() {
              o.manual || o.highlightAll();
            }

            if (f && (o.filename = f.src, f.hasAttribute('data-manual') && (o.manual = !0)), !o.manual) {
              var p = document.readyState;
              'loading' === p || 'interactive' === p && f && f.defer ? document.addEventListener('DOMContentLoaded', d) : window.requestAnimationFrame ? window.requestAnimationFrame(d) : window.setTimeout(d, 16);
            }
            return o;
          }('undefined' != typeof window ? window : 'undefined' != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope ? self : {});
          /**
           * Prism: Lightweight, robust, elegant syntax highlighting
           *
           * @license MIT <https://opensource.org/licenses/MIT>
           * @author Lea Verou <https://lea.verou.me>
           * @namespace
           * @public
           */e.exports && (e.exports = t), void 0 !== u && (u.Prism = t), t.languages.markup = {
            comment: {
              pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
              greedy: !0
            },
            prolog: {
              pattern: /<\?[\s\S]+?\?>/,
              greedy: !0
            },
            doctype: {
              pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
              greedy: !0,
              inside: {
                'internal-subset': {
                  pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
                  lookbehind: !0,
                  greedy: !0,
                  inside: null
                },
                string: {
                  pattern: /"[^"]*"|'[^']*'/,
                  greedy: !0
                },
                punctuation: /^<!|>$|[[\]]/,
                'doctype-tag': /^DOCTYPE/i,
                name: /[^\s<>'"]+/
              }
            },
            cdata: {
              pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
              greedy: !0
            },
            tag: {
              pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
              greedy: !0,
              inside: {
                tag: {
                  pattern: /^<\/?[^\s>\/]+/,
                  inside: {
                    punctuation: /^<\/?/,
                    namespace: /^[^\s>\/:]+:/
                  }
                },
                'special-attr': [],
                'attr-value': {
                  pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
                  inside: {
                    punctuation: [{
                      pattern: /^=/,
                      alias: 'attr-equals'
                    }, /"|'/]
                  }
                },
                punctuation: /\/?>/,
                'attr-name': {
                  pattern: /[^\s>\/]+/,
                  inside: { namespace: /^[^\s>\/:]+:/ }
                }
              }
            },
            entity: [{
              pattern: /&[\da-z]{1,8};/i,
              alias: 'named-entity'
            }, /&#x?[\da-f]{1,8};/i]
          }, t.languages.markup.tag.inside['attr-value'].inside.entity = t.languages.markup.entity, t.languages.markup.doctype.inside['internal-subset'].inside = t.languages.markup, t.hooks.add('wrap', (function (e) {
            'entity' === e.type && (e.attributes.title = e.content.replace(/&amp;/, '&'));
          })), Object.defineProperty(t.languages.markup.tag, 'addInlined', {
            value: function (e, n) {
              var r = {};
              r['language-' + n] = {
                pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
                lookbehind: !0,
                inside: t.languages[n]
              }, r.cdata = /^<!\[CDATA\[|\]\]>$/i;
              var o = {
                'included-cdata': {
                  pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
                  inside: r
                }
              };
              o['language-' + n] = {
                pattern: /[\s\S]+/,
                inside: t.languages[n]
              };
              var i = {};
              i[e] = {
                pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, (function () {
                  return e;
                })), 'i'),
                lookbehind: !0,
                greedy: !0,
                inside: o
              }, t.languages.insertBefore('markup', 'cdata', i);
            }
          }), Object.defineProperty(t.languages.markup.tag, 'addAttribute', {
            value: function (e, n) {
              t.languages.markup.tag.inside['special-attr'].push({
                pattern: RegExp(/(^|["'\s])/.source + '(?:' + e + ')' + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, 'i'),
                lookbehind: !0,
                inside: {
                  'attr-name': /^[^\s=]+/,
                  'attr-value': {
                    pattern: /=[\s\S]+/,
                    inside: {
                      value: {
                        pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
                        lookbehind: !0,
                        alias: [n, 'language-' + n],
                        inside: t.languages[n]
                      },
                      punctuation: [{
                        pattern: /^=/,
                        alias: 'attr-equals'
                      }, /"|'/]
                    }
                  }
                }
              });
            }
          }), t.languages.html = t.languages.markup, t.languages.mathml = t.languages.markup, t.languages.svg = t.languages.markup, t.languages.xml = t.languages.extend('markup', {}), t.languages.ssml = t.languages.xml, t.languages.atom = t.languages.xml, t.languages.rss = t.languages.xml, function (e) {
            var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
            e.languages.css = {
              comment: /\/\*[\s\S]*?\*\//,
              atrule: {
                pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,
                inside: {
                  rule: /^@[\w-]+/,
                  'selector-function-argument': {
                    pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
                    lookbehind: !0,
                    alias: 'selector'
                  },
                  keyword: {
                    pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
                    lookbehind: !0
                  }
                }
              },
              url: {
                pattern: RegExp('\\burl\\((?:' + t.source + '|' + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ')\\)', 'i'),
                greedy: !0,
                inside: {
                  function: /^url/i,
                  punctuation: /^\(|\)$/,
                  string: {
                    pattern: RegExp('^' + t.source + '$'),
                    alias: 'url'
                  }
                }
              },
              selector: {
                pattern: RegExp('(^|[{}\\s])[^{}\\s](?:[^{};"\'\\s]|\\s+(?![\\s{])|' + t.source + ')*(?=\\s*\\{)'),
                lookbehind: !0
              },
              string: {
                pattern: t,
                greedy: !0
              },
              property: {
                pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
                lookbehind: !0
              },
              important: /!important\b/i,
              function: {
                pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
                lookbehind: !0
              },
              punctuation: /[(){};:,]/
            }, e.languages.css.atrule.inside.rest = e.languages.css;
            var n = e.languages.markup;
            n && (n.tag.addInlined('style', 'css'), n.tag.addAttribute('style', 'css'));
          }(t), t.languages.clike = {
            comment: [{
              pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
              lookbehind: !0,
              greedy: !0
            }, {
              pattern: /(^|[^\\:])\/\/.*/,
              lookbehind: !0,
              greedy: !0
            }],
            string: {
              pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
              greedy: !0
            },
            'class-name': {
              pattern: /(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,
              lookbehind: !0,
              inside: { punctuation: /[.\\]/ }
            },
            keyword: /\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,
            boolean: /\b(?:true|false)\b/,
            function: /\b\w+(?=\()/,
            number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
            operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
            punctuation: /[{}[\];(),.:]/
          }, t.languages.javascript = t.languages.extend('clike', {
            'class-name': [t.languages.clike['class-name'], {
              pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,
              lookbehind: !0
            }],
            keyword: [{
              pattern: /((?:^|\})\s*)catch\b/,
              lookbehind: !0
            }, {
              pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
              lookbehind: !0
            }],
            function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
            number: /\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,
            operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
          }), t.languages.javascript['class-name'][0].pattern = /(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/, t.languages.insertBefore('javascript', 'keyword', {
            regex: {
              pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,
              lookbehind: !0,
              greedy: !0,
              inside: {
                'regex-source': {
                  pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
                  lookbehind: !0,
                  alias: 'language-regex',
                  inside: t.languages.regex
                },
                'regex-delimiter': /^\/|\/$/,
                'regex-flags': /^[a-z]+$/
              }
            },
            'function-variable': {
              pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
              alias: 'function'
            },
            parameter: [{
              pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
              lookbehind: !0,
              inside: t.languages.javascript
            }, {
              pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
              lookbehind: !0,
              inside: t.languages.javascript
            }, {
              pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,
              lookbehind: !0,
              inside: t.languages.javascript
            }, {
              pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
              lookbehind: !0,
              inside: t.languages.javascript
            }],
            constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/
          }), t.languages.insertBefore('javascript', 'string', {
            hashbang: {
              pattern: /^#!.*/,
              greedy: !0,
              alias: 'comment'
            },
            'template-string': {
              pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,
              greedy: !0,
              inside: {
                'template-punctuation': {
                  pattern: /^`|`$/,
                  alias: 'string'
                },
                interpolation: {
                  pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
                  lookbehind: !0,
                  inside: {
                    'interpolation-punctuation': {
                      pattern: /^\$\{|\}$/,
                      alias: 'punctuation'
                    },
                    rest: t.languages.javascript
                  }
                },
                string: /[\s\S]+/
              }
            }
          }), t.languages.markup && (t.languages.markup.tag.addInlined('script', 'javascript'), t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, 'javascript')), t.languages.js = t.languages.javascript, function () {
            if (void 0 !== t && 'undefined' != typeof document) {
              Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
              var e = {
                  js: 'javascript',
                  py: 'python',
                  rb: 'ruby',
                  ps1: 'powershell',
                  psm1: 'powershell',
                  sh: 'bash',
                  bat: 'batch',
                  h: 'c',
                  tex: 'latex'
                },
                n = 'data-src-status',
                r = 'loading',
                o = 'loaded',
                i = 'pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',
                a = /\blang(?:uage)?-([\w-]+)\b/i;
              t.hooks.add('before-highlightall', (function (e) {
                e.selector += ', ' + i;
              })), t.hooks.add('before-sanity-check', (function (a) {
                var u = a.element;
                if (u.matches(i)) {
                  a.code = '', u.setAttribute(n, r);
                  var l = u.appendChild(document.createElement('CODE'));
                  l.textContent = 'Loading…';
                  var c = u.getAttribute('data-src'),
                    f = a.language;
                  if ('none' === f) {
                    var d = (/\.(\w+)$/.exec(c) || [, 'none'])[1];
                    f = e[d] || d;
                  }
                  s(l, f), s(u, f);
                  var p = t.plugins.autoloader;
                  p && p.loadLanguages(f);
                  var h = new XMLHttpRequest;
                  h.open('GET', c, !0), h.onreadystatechange = function () {
                    4 == h.readyState && (h.status < 400 && h.responseText ? (u.setAttribute(n, o), l.textContent = h.responseText, t.highlightElement(l)) : (u.setAttribute(n, 'failed'), h.status >= 400 ? l.textContent = '✖ Error ' + h.status + ' while fetching file: ' + h.statusText : l.textContent = '✖ Error: File does not exist or is empty'));
                  }, h.send(null);
                }
              })), t.plugins.fileHighlight = {
                highlight: function (e) {
                  for (var n, r = (e || document).querySelectorAll(i), o = 0; n = r[o++];) t.highlightElement(n);
                }
              };
              var u = !1;
              t.fileHighlight = function () {
                u || (console.warn('Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead.'), u = !0), t.plugins.fileHighlight.highlight.apply(this, arguments);
              };
            }

            function s(e, t) {
              var n = e.className;
              n = n.replace(a, ' ') + ' language-' + t, e.className = n.replace(/\s+/g, ' ')
                .trim();
            }
          }();
        }));
        !function (e) {
          var t = e.util.clone(e.languages.javascript),
            n = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,
            r = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,
            o = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;

          function i(e, t) {
            return e = e.replace(/<S>/g, (function () {
              return n;
            }))
              .replace(/<BRACES>/g, (function () {
                return r;
              }))
              .replace(/<SPREAD>/g, (function () {
                return o;
              })), RegExp(e, t);
          }

          o = i(o).source, e.languages.jsx = e.languages.extend('markup', t), e.languages.jsx.tag.pattern = i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/i, e.languages.jsx.tag.inside['attr-value'].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i, e.languages.jsx.tag.inside.tag.inside['class-name'] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore('inside', 'attr-name', {
            spread: {
              pattern: i(/<SPREAD>/.source),
              inside: e.languages.jsx
            }
          }, e.languages.jsx.tag), e.languages.insertBefore('inside', 'special-attr', {
            script: {
              pattern: i(/=<BRACES>/.source),
              inside: {
                'script-punctuation': {
                  pattern: /^=(?=\{)/,
                  alias: 'punctuation'
                },
                rest: e.languages.jsx
              },
              alias: 'language-javascript'
            }
          }, e.languages.jsx.tag);
          var a = function (e) {
              return e ? 'string' == typeof e ? e : 'string' == typeof e.content ? e.content : e.content.map(a)
                .join('') : '';
            },
            u = function (t) {
              for (var n = [], r = 0; r < t.length; r++) {
                var o = t[r],
                  i = !1;
                if ('string' != typeof o && ('tag' === o.type && o.content[0] && 'tag' === o.content[0].type ? '</' === o.content[0].content[0].content ? n.length > 0 && n[n.length - 1].tagName === a(o.content[0].content[1]) && n.pop() : '/>' === o.content[o.content.length - 1].content || n.push({
                  tagName: a(o.content[0].content[1]),
                  openedBraces: 0
                }) : n.length > 0 && 'punctuation' === o.type && '{' === o.content ? n[n.length - 1].openedBraces++ : n.length > 0 && n[n.length - 1].openedBraces > 0 && 'punctuation' === o.type && '}' === o.content ? n[n.length - 1].openedBraces-- : i = !0), (i || 'string' == typeof o) && n.length > 0 && 0 === n[n.length - 1].openedBraces) {
                  var s = a(o);
                  r < t.length - 1 && ('string' == typeof t[r + 1] || 'plain-text' === t[r + 1].type) && (s += a(t[r + 1]), t.splice(r + 1, 1)), r > 0 && ('string' == typeof t[r - 1] || 'plain-text' === t[r - 1].type) && (s = a(t[r - 1]) + s, t.splice(r - 1, 1), r--), t[r] = new e.Token('plain-text', s, null, s);
                }
                o.content && 'string' != typeof o.content && u(o.content);
              }
            };
          e.hooks.add('after-tokenize', (function (e) {
            'jsx' !== e.language && 'tsx' !== e.language || u(e.tokens);
          }));
        }(Prism), function (e) {
          e.languages.typescript = e.languages.extend('javascript', {
            'class-name': {
              pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
              lookbehind: !0,
              greedy: !0,
              inside: null
            },
            builtin: /\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/
          }), e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter;
          var t = e.languages.extend('typescript', {});
          delete t['class-name'], e.languages.typescript['class-name'].inside = t, e.languages.insertBefore('typescript', 'function', {
            decorator: {
              pattern: /@[$\w\xA0-\uFFFF]+/,
              inside: {
                at: {
                  pattern: /^@/,
                  alias: 'operator'
                },
                function: /^[\s\S]+/
              }
            },
            'generic-function': {
              pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
              greedy: !0,
              inside: {
                function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
                generic: {
                  pattern: /<[\s\S]+/,
                  alias: 'class-name',
                  inside: t
                }
              }
            }
          }), e.languages.ts = e.languages.typescript;
        }(Prism), Prism.languages.markup = {
          comment: {
            pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
            greedy: !0
          },
          prolog: {
            pattern: /<\?[\s\S]+?\?>/,
            greedy: !0
          },
          doctype: {
            pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
            greedy: !0,
            inside: {
              'internal-subset': {
                pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
                lookbehind: !0,
                greedy: !0,
                inside: null
              },
              string: {
                pattern: /"[^"]*"|'[^']*'/,
                greedy: !0
              },
              punctuation: /^<!|>$|[[\]]/,
              'doctype-tag': /^DOCTYPE/i,
              name: /[^\s<>'"]+/
            }
          },
          cdata: {
            pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
            greedy: !0
          },
          tag: {
            pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
            greedy: !0,
            inside: {
              tag: {
                pattern: /^<\/?[^\s>\/]+/,
                inside: {
                  punctuation: /^<\/?/,
                  namespace: /^[^\s>\/:]+:/
                }
              },
              'special-attr': [],
              'attr-value': {
                pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
                inside: {
                  punctuation: [{
                    pattern: /^=/,
                    alias: 'attr-equals'
                  }, /"|'/]
                }
              },
              punctuation: /\/?>/,
              'attr-name': {
                pattern: /[^\s>\/]+/,
                inside: { namespace: /^[^\s>\/:]+:/ }
              }
            }
          },
          entity: [{
            pattern: /&[\da-z]{1,8};/i,
            alias: 'named-entity'
          }, /&#x?[\da-f]{1,8};/i]
        }, Prism.languages.markup.tag.inside['attr-value'].inside.entity = Prism.languages.markup.entity, Prism.languages.markup.doctype.inside['internal-subset'].inside = Prism.languages.markup, Prism.hooks.add('wrap', (function (e) {
          'entity' === e.type && (e.attributes.title = e.content.replace(/&amp;/, '&'));
        })), Object.defineProperty(Prism.languages.markup.tag, 'addInlined', {
          value: function (e, t) {
            var n = {};
            n['language-' + t] = {
              pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
              lookbehind: !0,
              inside: Prism.languages[t]
            }, n.cdata = /^<!\[CDATA\[|\]\]>$/i;
            var r = {
              'included-cdata': {
                pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
                inside: n
              }
            };
            r['language-' + t] = {
              pattern: /[\s\S]+/,
              inside: Prism.languages[t]
            };
            var o = {};
            o[e] = {
              pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, (function () {
                return e;
              })), 'i'),
              lookbehind: !0,
              greedy: !0,
              inside: r
            }, Prism.languages.insertBefore('markup', 'cdata', o);
          }
        }), Object.defineProperty(Prism.languages.markup.tag, 'addAttribute', {
          value: function (e, t) {
            Prism.languages.markup.tag.inside['special-attr'].push({
              pattern: RegExp(/(^|["'\s])/.source + '(?:' + e + ')' + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, 'i'),
              lookbehind: !0,
              inside: {
                'attr-name': /^[^\s=]+/,
                'attr-value': {
                  pattern: /=[\s\S]+/,
                  inside: {
                    value: {
                      pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
                      lookbehind: !0,
                      alias: [t, 'language-' + t],
                      inside: Prism.languages[t]
                    },
                    punctuation: [{
                      pattern: /^=/,
                      alias: 'attr-equals'
                    }, /"|'/]
                  }
                }
              }
            });
          }
        }), Prism.languages.html = Prism.languages.markup, Prism.languages.mathml = Prism.languages.markup, Prism.languages.svg = Prism.languages.markup, Prism.languages.xml = Prism.languages.extend('markup', {}), Prism.languages.ssml = Prism.languages.xml, Prism.languages.atom = Prism.languages.xml, Prism.languages.rss = Prism.languages.xml, Prism.languages.go = Prism.languages.extend('clike', {
          string: {
            pattern: /(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,
            greedy: !0
          },
          keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,
          boolean: /\b(?:_|iota|nil|true|false)\b/,
          number: /(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,
          operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,
          builtin: /\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/
        }), delete Prism.languages.go['class-name'], function (e) {
          var t = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,
            n = [{
              pattern: /\b(?:false|true)\b/i,
              alias: 'boolean'
            }, {
              pattern: /(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,
              greedy: !0,
              lookbehind: !0
            }, {
              pattern: /(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,
              greedy: !0,
              lookbehind: !0
            }, /\b(?:null)\b/i, /\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],
            r = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
            o = /<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,
            i = /[{}\[\](),:;]/;
          e.languages.php = {
            delimiter: {
              pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
              alias: 'important'
            },
            comment: t,
            variable: /\$+(?:\w+\b|(?=\{))/i,
            package: {
              pattern: /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
              lookbehind: !0,
              inside: { punctuation: /\\/ }
            },
            'class-name-definition': {
              pattern: /(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,
              lookbehind: !0,
              alias: 'class-name'
            },
            'function-definition': {
              pattern: /(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,
              lookbehind: !0,
              alias: 'function'
            },
            keyword: [{
              pattern: /(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,
              alias: 'type-casting',
              greedy: !0,
              lookbehind: !0
            }, {
              pattern: /([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,
              alias: 'type-hint',
              greedy: !0,
              lookbehind: !0
            }, {
              pattern: /([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,
              alias: 'type-hint',
              greedy: !0,
              lookbehind: !0
            }, {
              pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,
              alias: 'return-type',
              greedy: !0,
              lookbehind: !0
            }, {
              pattern: /(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,
              alias: 'return-type',
              greedy: !0,
              lookbehind: !0
            }, {
              pattern: /\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,
              alias: 'type-declaration',
              greedy: !0
            }, {
              pattern: /(\|\s*)(?:null|false)\b/i,
              alias: 'type-declaration',
              greedy: !0,
              lookbehind: !0
            }, {
              pattern: /\b(?:parent|self|static)(?=\s*::)/i,
              alias: 'static-context',
              greedy: !0
            }, {
              pattern: /(\byield\s+)from\b/i,
              lookbehind: !0
            }, /\bclass\b/i, {
              pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,
              lookbehind: !0
            }],
            'argument-name': {
              pattern: /([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,
              lookbehind: !0
            },
            'class-name': [{
              pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,
              greedy: !0,
              lookbehind: !0
            }, {
              pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i,
              greedy: !0,
              lookbehind: !0
            }, {
              pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,
              greedy: !0
            }, {
              pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,
              alias: 'class-name-fully-qualified',
              greedy: !0,
              lookbehind: !0,
              inside: { punctuation: /\\/ }
            }, {
              pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,
              alias: 'class-name-fully-qualified',
              greedy: !0,
              inside: { punctuation: /\\/ }
            }, {
              pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
              alias: 'class-name-fully-qualified',
              greedy: !0,
              lookbehind: !0,
              inside: { punctuation: /\\/ }
            }, {
              pattern: /\b[a-z_]\w*(?=\s*\$)/i,
              alias: 'type-declaration',
              greedy: !0
            }, {
              pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
              alias: ['class-name-fully-qualified', 'type-declaration'],
              greedy: !0,
              inside: { punctuation: /\\/ }
            }, {
              pattern: /\b[a-z_]\w*(?=\s*::)/i,
              alias: 'static-context',
              greedy: !0
            }, {
              pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,
              alias: ['class-name-fully-qualified', 'static-context'],
              greedy: !0,
              inside: { punctuation: /\\/ }
            }, {
              pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,
              alias: 'type-hint',
              greedy: !0,
              lookbehind: !0
            }, {
              pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
              alias: ['class-name-fully-qualified', 'type-hint'],
              greedy: !0,
              lookbehind: !0,
              inside: { punctuation: /\\/ }
            }, {
              pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,
              alias: 'return-type',
              greedy: !0,
              lookbehind: !0
            }, {
              pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
              alias: ['class-name-fully-qualified', 'return-type'],
              greedy: !0,
              lookbehind: !0,
              inside: { punctuation: /\\/ }
            }],
            constant: n,
            function: {
              pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
              lookbehind: !0,
              inside: { punctuation: /\\/ }
            },
            property: {
              pattern: /(->\s*)\w+/,
              lookbehind: !0
            },
            number: r,
            operator: o,
            punctuation: i
          };
          var a = {
              pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,
              lookbehind: !0,
              inside: e.languages.php
            },
            u = [{
              pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,
              alias: 'nowdoc-string',
              greedy: !0,
              inside: {
                delimiter: {
                  pattern: /^<<<'[^']+'|[a-z_]\w*;$/i,
                  alias: 'symbol',
                  inside: { punctuation: /^<<<'?|[';]$/ }
                }
              }
            }, {
              pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,
              alias: 'heredoc-string',
              greedy: !0,
              inside: {
                delimiter: {
                  pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,
                  alias: 'symbol',
                  inside: { punctuation: /^<<<"?|[";]$/ }
                },
                interpolation: a
              }
            }, {
              pattern: /`(?:\\[\s\S]|[^\\`])*`/,
              alias: 'backtick-quoted-string',
              greedy: !0
            }, {
              pattern: /'(?:\\[\s\S]|[^\\'])*'/,
              alias: 'single-quoted-string',
              greedy: !0
            }, {
              pattern: /"(?:\\[\s\S]|[^\\"])*"/,
              alias: 'double-quoted-string',
              greedy: !0,
              inside: { interpolation: a }
            }];
          e.languages.insertBefore('php', 'variable', {
            string: u,
            attribute: {
              pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,
              greedy: !0,
              inside: {
                'attribute-content': {
                  pattern: /^(#\[)[\s\S]+(?=\]$)/,
                  lookbehind: !0,
                  inside: {
                    comment: t,
                    string: u,
                    'attribute-class-name': [{
                      pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i,
                      alias: 'class-name',
                      greedy: !0,
                      lookbehind: !0
                    }, {
                      pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i,
                      alias: ['class-name', 'class-name-fully-qualified'],
                      greedy: !0,
                      lookbehind: !0,
                      inside: { punctuation: /\\/ }
                    }],
                    constant: n,
                    number: r,
                    operator: o,
                    punctuation: i
                  }
                },
                delimiter: {
                  pattern: /^#\[|\]$/,
                  alias: 'punctuation'
                }
              }
            }
          }), e.hooks.add('before-tokenize', (function (t) {
            /<\?/.test(t.code) && e.languages['markup-templating'].buildPlaceholders(t, 'php', /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi);
          })), e.hooks.add('after-tokenize', (function (t) {
            e.languages['markup-templating'].tokenizePlaceholders(t, 'php');
          }));
        }(Prism), Prism.languages.c = Prism.languages.extend('clike', {
          comment: {
            pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,
            greedy: !0
          },
          'class-name': {
            pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,
            lookbehind: !0
          },
          keyword: /\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,
          function: /\b[a-z_]\w*(?=\s*\()/i,
          number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,
          operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/
        }), Prism.languages.insertBefore('c', 'string', {
          macro: {
            pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,
            lookbehind: !0,
            greedy: !0,
            alias: 'property',
            inside: {
              string: [{
                pattern: /^(#\s*include\s*)<[^>]+>/,
                lookbehind: !0
              }, Prism.languages.c.string],
              comment: Prism.languages.c.comment,
              'macro-name': [{
                pattern: /(^#\s*define\s+)\w+\b(?!\()/i,
                lookbehind: !0
              }, {
                pattern: /(^#\s*define\s+)\w+\b(?=\()/i,
                lookbehind: !0,
                alias: 'function'
              }],
              directive: {
                pattern: /^(#\s*)[a-z]+/,
                lookbehind: !0,
                alias: 'keyword'
              },
              'directive-hash': /^#/,
              punctuation: /##|\\(?=[\r\n])/,
              expression: {
                pattern: /\S[\s\S]*/,
                inside: Prism.languages.c
              }
            }
          },
          constant: /\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/
        }), delete Prism.languages.c.boolean, Prism.languages.python = {
          comment: {
            pattern: /(^|[^\\])#.*/,
            lookbehind: !0
          },
          'string-interpolation': {
            pattern: /(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
            greedy: !0,
            inside: {
              interpolation: {
                pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
                lookbehind: !0,
                inside: {
                  'format-spec': {
                    pattern: /(:)[^:(){}]+(?=\}$)/,
                    lookbehind: !0
                  },
                  'conversion-option': {
                    pattern: /![sra](?=[:}]$)/,
                    alias: 'punctuation'
                  },
                  rest: null
                }
              },
              string: /[\s\S]+/
            }
          },
          'triple-quoted-string': {
            pattern: /(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,
            greedy: !0,
            alias: 'string'
          },
          string: {
            pattern: /(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
            greedy: !0
          },
          function: {
            pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
            lookbehind: !0
          },
          'class-name': {
            pattern: /(\bclass\s+)\w+/i,
            lookbehind: !0
          },
          decorator: {
            pattern: /(^[\t ]*)@\w+(?:\.\w+)*/im,
            lookbehind: !0,
            alias: ['annotation', 'punctuation'],
            inside: { punctuation: /\./ }
          },
          keyword: /\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
          builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
          boolean: /\b(?:True|False|None)\b/,
          number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,
          operator: /[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
          punctuation: /[{}[\];(),.:]/
        }, Prism.languages.python['string-interpolation'].inside.interpolation.inside.rest = Prism.languages.python, Prism.languages.py = Prism.languages.python, function (e) {
          var t = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,
            n = /(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,
            r = {
              pattern: RegExp(n + /[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),
              lookbehind: !0,
              inside: {
                namespace: {
                  pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
                  inside: { punctuation: /\./ }
                },
                punctuation: /\./
              }
            };
          e.languages.java = e.languages.extend('clike', {
            'class-name': [r, {
              pattern: RegExp(n + /[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),
              lookbehind: !0,
              inside: r.inside
            }],
            keyword: t,
            function: [e.languages.clike.function, {
              pattern: /(::\s*)[a-z_]\w*/,
              lookbehind: !0
            }],
            number: /\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,
            operator: {
              pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,
              lookbehind: !0
            }
          }), e.languages.insertBefore('java', 'string', {
            'triple-quoted-string': {
              pattern: /"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,
              greedy: !0,
              alias: 'string'
            }
          }), e.languages.insertBefore('java', 'class-name', {
            annotation: {
              pattern: /(^|[^.])@\w+(?:\s*\.\s*\w+)*/,
              lookbehind: !0,
              alias: 'punctuation'
            },
            generics: {
              pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
              inside: {
                'class-name': r,
                keyword: t,
                punctuation: /[<>(),.:]/,
                operator: /[?&|]/
              }
            },
            namespace: {
              pattern: RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g, (function () {
                return t.source;
              }))),
              lookbehind: !0,
              inside: { punctuation: /\./ }
            }
          });
        }(Prism), function (e) {
          var t = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,
            n = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, (function () {
              return t.source;
            }));
          e.languages.cpp = e.languages.extend('c', {
            'class-name': [{
              pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g, (function () {
                return t.source;
              }))),
              lookbehind: !0
            }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],
            keyword: t,
            number: {
              pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,
              greedy: !0
            },
            operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,
            boolean: /\b(?:true|false)\b/
          }), e.languages.insertBefore('cpp', 'string', {
            module: {
              pattern: RegExp(/(\b(?:module|import)\s+)/.source + '(?:' + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + '|' + /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, (function () {
                return n;
              })) + ')'),
              lookbehind: !0,
              greedy: !0,
              inside: {
                string: /^[<"][\s\S]+/,
                operator: /:/,
                punctuation: /\./
              }
            },
            'raw-string': {
              pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,
              alias: 'string',
              greedy: !0
            }
          }), e.languages.insertBefore('cpp', 'keyword', {
            'generic-function': {
              pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,
              inside: {
                function: /^\w+/,
                generic: {
                  pattern: /<[\s\S]+/,
                  alias: 'class-name',
                  inside: e.languages.cpp
                }
              }
            }
          }), e.languages.insertBefore('cpp', 'operator', {
            'double-colon': {
              pattern: /::/,
              alias: 'punctuation'
            }
          }), e.languages.insertBefore('cpp', 'class-name', {
            'base-clause': {
              pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,
              lookbehind: !0,
              greedy: !0,
              inside: e.languages.extend('cpp', {})
            }
          }), e.languages.insertBefore('inside', 'double-colon', { 'class-name': /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp['base-clause']);
        }(Prism), function (e) {
          function t(e, t) {
            return e.replace(/<<(\d+)>>/g, (function (e, n) {
              return '(?:' + t[+n] + ')';
            }));
          }

          function n(e, n, r) {
            return RegExp(t(e, n), r || '');
          }

          function r(e, t) {
            for (var n = 0; n < t; n++) {
              e = e.replace(/<<self>>/g, (function () {
                return '(?:' + e + ')';
              }));
            }
            return e.replace(/<<self>>/g, '[^\\s\\S]');
          }

          var o = 'bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void',
            i = 'class enum interface record struct',
            a = 'add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)',
            u = 'abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield';

          function s(e) {
            return '\\b(?:' + e.trim()
              .replace(/ /g, '|') + ')\\b';
          }

          var l = s(i),
            c = RegExp(s(o + ' ' + i + ' ' + a + ' ' + u)),
            f = s(i + ' ' + a + ' ' + u),
            d = s(o + ' ' + i + ' ' + u),
            p = r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2),
            h = r(/\((?:[^()]|<<self>>)*\)/.source, 2),
            v = /@?\b[A-Za-z_]\w*\b/.source,
            g = t(/<<0>>(?:\s*<<1>>)?/.source, [v, p]),
            y = t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [f, g]),
            m = /\[\s*(?:,\s*)*\]/.source,
            b = t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source, [y, m]),
            w = t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source, [p, h, m]),
            E = t(/\(<<0>>+(?:,<<0>>+)+\)/.source, [w]),
            D = t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source, [E, y, m]),
            x = {
              keyword: c,
              punctuation: /[<>()?,.:[\]]/
            },
            S = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,
            C = /"(?:\\.|[^\\"\r\n])*"/.source,
            A = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
          e.languages.csharp = e.languages.extend('clike', {
            string: [{
              pattern: n(/(^|[^$\\])<<0>>/.source, [A]),
              lookbehind: !0,
              greedy: !0
            }, {
              pattern: n(/(^|[^@$\\])<<0>>/.source, [C]),
              lookbehind: !0,
              greedy: !0
            }, {
              pattern: RegExp(S),
              greedy: !0,
              alias: 'character'
            }],
            'class-name': [{
              pattern: n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source, [y]),
              lookbehind: !0,
              inside: x
            }, {
              pattern: n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [v, D]),
              lookbehind: !0,
              inside: x
            }, {
              pattern: n(/(\busing\s+)<<0>>(?=\s*=)/.source, [v]),
              lookbehind: !0
            }, {
              pattern: n(/(\b<<0>>\s+)<<1>>/.source, [l, g]),
              lookbehind: !0,
              inside: x
            }, {
              pattern: n(/(\bcatch\s*\(\s*)<<0>>/.source, [y]),
              lookbehind: !0,
              inside: x
            }, {
              pattern: n(/(\bwhere\s+)<<0>>/.source, [v]),
              lookbehind: !0
            }, {
              pattern: n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [b]),
              lookbehind: !0,
              inside: x
            }, {
              pattern: n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source, [D, d, v]),
              inside: x
            }],
            keyword: c,
            number: /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,
            operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,
            punctuation: /\?\.?|::|[{}[\];(),.:]/
          }), e.languages.insertBefore('csharp', 'number', {
            range: {
              pattern: /\.\./,
              alias: 'operator'
            }
          }), e.languages.insertBefore('csharp', 'punctuation', {
            'named-parameter': {
              pattern: n(/([(,]\s*)<<0>>(?=\s*:)/.source, [v]),
              lookbehind: !0,
              alias: 'punctuation'
            }
          }), e.languages.insertBefore('csharp', 'class-name', {
            namespace: {
              pattern: n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source, [v]),
              lookbehind: !0,
              inside: { punctuation: /\./ }
            },
            'type-expression': {
              pattern: n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source, [h]),
              lookbehind: !0,
              alias: 'class-name',
              inside: x
            },
            'return-type': {
              pattern: n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source, [D, y]),
              inside: x,
              alias: 'class-name'
            },
            'constructor-invocation': {
              pattern: n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [D]),
              lookbehind: !0,
              inside: x,
              alias: 'class-name'
            },
            'generic-method': {
              pattern: n(/<<0>>\s*<<1>>(?=\s*\()/.source, [v, p]),
              inside: {
                function: n(/^<<0>>/.source, [v]),
                generic: {
                  pattern: RegExp(p),
                  alias: 'class-name',
                  inside: x
                }
              }
            },
            'type-list': {
              pattern: n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source, [l, g, v, D, c.source, h, /\bnew\s*\(\s*\)/.source]),
              lookbehind: !0,
              inside: {
                'record-arguments': {
                  pattern: n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source, [g, h]),
                  lookbehind: !0,
                  greedy: !0,
                  inside: e.languages.csharp
                },
                keyword: c,
                'class-name': {
                  pattern: RegExp(D),
                  greedy: !0,
                  inside: x
                },
                punctuation: /[,()]/
              }
            },
            preprocessor: {
              pattern: /(^[\t ]*)#.*/m,
              lookbehind: !0,
              alias: 'property',
              inside: {
                directive: {
                  pattern: /(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,
                  lookbehind: !0,
                  alias: 'keyword'
                }
              }
            }
          });
          var O = C + '|' + S,
            k = t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source, [O]),
            T = r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [k]), 2),
            B = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,
            F = t(/<<0>>(?:\s*\(<<1>>*\))?/.source, [y, T]);
          e.languages.insertBefore('csharp', 'class-name', {
            attribute: {
              pattern: n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source, [B, F]),
              lookbehind: !0,
              greedy: !0,
              inside: {
                target: {
                  pattern: n(/^<<0>>(?=\s*:)/.source, [B]),
                  alias: 'keyword'
                },
                'attribute-arguments': {
                  pattern: n(/\(<<0>>*\)/.source, [T]),
                  inside: e.languages.csharp
                },
                'class-name': {
                  pattern: RegExp(y),
                  inside: { punctuation: /\./ }
                },
                punctuation: /[:,]/
              }
            }
          });
          var _ = /:[^}\r\n]+/.source,
            P = r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [k]), 2),
            j = t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [P, _]),
            N = r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source, [O]), 2),
            I = t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [N, _]);

          function R(t, r) {
            return {
              interpolation: {
                pattern: n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [t]),
                lookbehind: !0,
                inside: {
                  'format-string': {
                    pattern: n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [r, _]),
                    lookbehind: !0,
                    inside: { punctuation: /^:/ }
                  },
                  punctuation: /^\{|\}$/,
                  expression: {
                    pattern: /[\s\S]+/,
                    alias: 'language-csharp',
                    inside: e.languages.csharp
                  }
                }
              },
              string: /[\s\S]+/
            };
          }

          e.languages.insertBefore('csharp', 'string', {
            'interpolation-string': [{
              pattern: n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source, [j]),
              lookbehind: !0,
              greedy: !0,
              inside: R(j, P)
            }, {
              pattern: n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [I]),
              lookbehind: !0,
              greedy: !0,
              inside: R(I, N)
            }]
          });
        }(Prism), Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp, Prism.languages['visual-basic'] = {
          comment: {
            pattern: /(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,
            inside: { keyword: /^REM/i }
          },
          directive: {
            pattern: /#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,
            alias: 'comment',
            greedy: !0
          },
          string: {
            pattern: /\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,
            greedy: !0
          },
          date: {
            pattern: /#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,
            alias: 'builtin'
          },
          number: /(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,
          boolean: /\b(?:True|False|Nothing)\b/i,
          keyword: /\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,
          operator: [/[+\-*/\\^<=>&#@$%!]/, {
            pattern: /([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,
            lookbehind: !0
          }],
          punctuation: /[{}().,:?]/
        }, Prism.languages.vb = Prism.languages['visual-basic'], Prism.languages.vba = Prism.languages['visual-basic'], Prism.languages.sql = {
          comment: {
            pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
            lookbehind: !0
          },
          variable: [{
            pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,
            greedy: !0
          }, /@[\w.$]+/],
          string: {
            pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,
            greedy: !0,
            lookbehind: !0
          },
          function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,
          keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,
          boolean: /\b(?:TRUE|FALSE|NULL)\b/i,
          number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,
          operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
          punctuation: /[;[\]()`,.]/
        }, function (e) {
          e.languages.ruby = e.languages.extend('clike', {
            comment: [/#.*/, {
              pattern: /^=begin\s[\s\S]*?^=end/m,
              greedy: !0
            }],
            'class-name': {
              pattern: /(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,
              lookbehind: !0,
              inside: { punctuation: /[.\\]/ }
            },
            keyword: /\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/
          });
          var t = {
            pattern: /#\{[^}]+\}/,
            inside: {
              delimiter: {
                pattern: /^#\{|\}$/,
                alias: 'tag'
              },
              rest: e.languages.ruby
            }
          };
          delete e.languages.ruby.function, e.languages.insertBefore('ruby', 'keyword', {
            regex: [{
              pattern: RegExp(/%r/.source + '(?:' + [/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source, /\((?:[^()\\]|\\[\s\S])*\)/.source, /\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source, /\[(?:[^\[\]\\]|\\[\s\S])*\]/.source, /<(?:[^<>\\]|\\[\s\S])*>/.source].join('|') + ')' + /[egimnosux]{0,6}/.source),
              greedy: !0,
              inside: { interpolation: t }
            }, {
              pattern: /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,
              lookbehind: !0,
              greedy: !0,
              inside: { interpolation: t }
            }],
            variable: /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,
            symbol: {
              pattern: /(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,
              lookbehind: !0
            },
            'method-definition': {
              pattern: /(\bdef\s+)[\w.]+/,
              lookbehind: !0,
              inside: {
                function: /\w+$/,
                rest: e.languages.ruby
              }
            }
          }), e.languages.insertBefore('ruby', 'number', {
            builtin: /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,
            constant: /\b[A-Z]\w*(?:[?!]|\b)/
          }), e.languages.ruby.string = [{
            pattern: RegExp(/%[qQiIwWxs]?/.source + '(?:' + [/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source, /\((?:[^()\\]|\\[\s\S])*\)/.source, /\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source, /\[(?:[^\[\]\\]|\\[\s\S])*\]/.source, /<(?:[^<>\\]|\\[\s\S])*>/.source].join('|') + ')'),
            greedy: !0,
            inside: { interpolation: t }
          }, {
            pattern: /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,
            greedy: !0,
            inside: { interpolation: t }
          }, {
            pattern: /<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
            alias: 'heredoc-string',
            greedy: !0,
            inside: {
              delimiter: {
                pattern: /^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,
                alias: 'symbol',
                inside: { punctuation: /^<<[-~]?/ }
              },
              interpolation: t
            }
          }, {
            pattern: /<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
            alias: 'heredoc-string',
            greedy: !0,
            inside: {
              delimiter: {
                pattern: /^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,
                alias: 'symbol',
                inside: { punctuation: /^<<[-~]?'|'$/ }
              }
            }
          }], e.languages.rb = e.languages.ruby;
        }(Prism), Prism.languages.swift = {
          comment: {
            pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,
            lookbehind: !0,
            greedy: !0
          },
          'string-literal': [{
            pattern: RegExp(/(^|[^"#])/.source + '(?:' + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + '|' + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ')' + /(?!["#])/.source),
            lookbehind: !0,
            greedy: !0,
            inside: {
              interpolation: {
                pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/,
                lookbehind: !0,
                inside: null
              },
              'interpolation-punctuation': {
                pattern: /^\)|\\\($/,
                alias: 'punctuation'
              },
              punctuation: /\\(?=[\r\n])/,
              string: /[\s\S]+/
            }
          }, {
            pattern: RegExp(/(^|[^"#])(#+)/.source + '(?:' + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + '|' + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ')\\2'),
            lookbehind: !0,
            greedy: !0,
            inside: {
              interpolation: {
                pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,
                lookbehind: !0,
                inside: null
              },
              'interpolation-punctuation': {
                pattern: /^\)|\\#+\($/,
                alias: 'punctuation'
              },
              string: /[\s\S]+/
            }
          }],
          directive: {
            pattern: RegExp(/#/.source + '(?:' + /(?:elseif|if)\b/.source + '(?:[ \t]*' + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ')+|' + /(?:else|endif)\b/.source + ')'),
            alias: 'property',
            inside: {
              'directive-name': /^#\w+/,
              boolean: /\b(?:true|false)\b/,
              number: /\b\d+(?:\.\d+)*\b/,
              operator: /!|&&|\|\||[<>]=?/,
              punctuation: /[(),]/
            }
          },
          literal: {
            pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,
            alias: 'constant'
          },
          'other-directive': {
            pattern: /#\w+\b/,
            alias: 'property'
          },
          attribute: {
            pattern: /@\w+/,
            alias: 'atrule'
          },
          'function-definition': {
            pattern: /(\bfunc\s+)\w+/,
            lookbehind: !0,
            alias: 'function'
          },
          label: {
            pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,
            lookbehind: !0,
            alias: 'important'
          },
          keyword: /\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,
          boolean: /\b(?:true|false)\b/,
          nil: {
            pattern: /\bnil\b/,
            alias: 'constant'
          },
          'short-argument': /\$\d+\b/,
          omit: {
            pattern: /\b_\b/,
            alias: 'keyword'
          },
          number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,
          'class-name': /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,
          function: /\b[a-z_]\w*(?=\s*\()/i,
          constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,
          operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,
          punctuation: /[{}[\]();,.:\\]/
        }, Prism.languages.swift['string-literal'].forEach((function (e) {
          e.inside.interpolation.inside = Prism.languages.swift;
        })), function (e) {
          var t = '\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b',
            n = {
              pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
              lookbehind: !0,
              alias: 'punctuation',
              inside: null
            },
            r = {
              bash: n,
              environment: {
                pattern: RegExp('\\$' + t),
                alias: 'constant'
              },
              variable: [{
                pattern: /\$?\(\([\s\S]+?\)\)/,
                greedy: !0,
                inside: {
                  variable: [{
                    pattern: /(^\$\(\([\s\S]+)\)\)/,
                    lookbehind: !0
                  }, /^\$\(\(/],
                  number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
                  operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
                  punctuation: /\(\(?|\)\)?|,|;/
                }
              }, {
                pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
                greedy: !0,
                inside: { variable: /^\$\(|^`|\)$|`$/ }
              }, {
                pattern: /\$\{[^}]+\}/,
                greedy: !0,
                inside: {
                  operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
                  punctuation: /[\[\]]/,
                  environment: {
                    pattern: RegExp('(\\{)' + t),
                    lookbehind: !0,
                    alias: 'constant'
                  }
                }
              }, /\$(?:\w+|[#?*!@$])/],
              entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/
            };
          e.languages.bash = {
            shebang: {
              pattern: /^#!\s*\/.*/,
              alias: 'important'
            },
            comment: {
              pattern: /(^|[^"{\\$])#.*/,
              lookbehind: !0
            },
            'function-name': [{
              pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
              lookbehind: !0,
              alias: 'function'
            }, {
              pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
              alias: 'function'
            }],
            'for-or-select': {
              pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
              alias: 'variable',
              lookbehind: !0
            },
            'assign-left': {
              pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,
              inside: {
                environment: {
                  pattern: RegExp('(^|[\\s;|&]|[<>]\\()' + t),
                  lookbehind: !0,
                  alias: 'constant'
                }
              },
              alias: 'variable',
              lookbehind: !0
            },
            string: [{
              pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
              lookbehind: !0,
              greedy: !0,
              inside: r
            }, {
              pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
              lookbehind: !0,
              greedy: !0,
              inside: { bash: n }
            }, {
              pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
              lookbehind: !0,
              greedy: !0,
              inside: r
            }, {
              pattern: /(^|[^$\\])'[^']*'/,
              lookbehind: !0,
              greedy: !0
            }, {
              pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
              greedy: !0,
              inside: { entity: r.entity }
            }],
            environment: {
              pattern: RegExp('\\$?' + t),
              alias: 'constant'
            },
            variable: r.variable,
            function: {
              pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
              lookbehind: !0
            },
            keyword: {
              pattern: /(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,
              lookbehind: !0
            },
            builtin: {
              pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,
              lookbehind: !0,
              alias: 'class-name'
            },
            boolean: {
              pattern: /(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,
              lookbehind: !0
            },
            'file-descriptor': {
              pattern: /\B&\d\b/,
              alias: 'important'
            },
            operator: {
              pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
              inside: {
                'file-descriptor': {
                  pattern: /^\d/,
                  alias: 'important'
                }
              }
            },
            punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
            number: {
              pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
              lookbehind: !0
            }
          }, n.inside = e.languages.bash;
          for (var o = ['comment', 'function-name', 'for-or-select', 'assign-left', 'string', 'environment', 'function', 'keyword', 'builtin', 'boolean', 'file-descriptor', 'operator', 'punctuation', 'number'], i = r.variable[1].inside, a = 0; a < o.length; a++) i[o[a]] = e.languages.bash[o[a]];
          e.languages.shell = e.languages.bash;
        }(Prism), function (e) {
          var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;

          function n(e) {
            return e = e.replace(/<inner>/g, (function () {
              return t;
            })), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + '(?:' + e + ')');
          }

          var r = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,
            o = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, (function () {
              return r;
            })),
            i = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
          e.languages.markdown = e.languages.extend('markup', {}), e.languages.insertBefore('markdown', 'prolog', {
            'front-matter-block': {
              pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
              lookbehind: !0,
              greedy: !0,
              inside: {
                punctuation: /^---|---$/,
                'font-matter': {
                  pattern: /\S+(?:\s+\S+)*/,
                  alias: ['yaml', 'language-yaml'],
                  inside: e.languages.yaml
                }
              }
            },
            blockquote: {
              pattern: /^>(?:[\t ]*>)*/m,
              alias: 'punctuation'
            },
            table: {
              pattern: RegExp('^' + o + i + '(?:' + o + ')*', 'm'),
              inside: {
                'table-data-rows': {
                  pattern: RegExp('^(' + o + i + ')(?:' + o + ')*$'),
                  lookbehind: !0,
                  inside: {
                    'table-data': {
                      pattern: RegExp(r),
                      inside: e.languages.markdown
                    },
                    punctuation: /\|/
                  }
                },
                'table-line': {
                  pattern: RegExp('^(' + o + ')' + i + '$'),
                  lookbehind: !0,
                  inside: { punctuation: /\||:?-{3,}:?/ }
                },
                'table-header-row': {
                  pattern: RegExp('^' + o + '$'),
                  inside: {
                    'table-header': {
                      pattern: RegExp(r),
                      alias: 'important',
                      inside: e.languages.markdown
                    },
                    punctuation: /\|/
                  }
                }
              }
            },
            code: [{
              pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
              lookbehind: !0,
              alias: 'keyword'
            }, {
              pattern: /^```[\s\S]*?^```$/m,
              greedy: !0,
              inside: {
                'code-block': {
                  pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
                  lookbehind: !0
                },
                'code-language': {
                  pattern: /^(```).+/,
                  lookbehind: !0
                },
                punctuation: /```/
              }
            }],
            title: [{
              pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
              alias: 'important',
              inside: { punctuation: /==+$|--+$/ }
            }, {
              pattern: /(^\s*)#.+/m,
              lookbehind: !0,
              alias: 'important',
              inside: { punctuation: /^#+|#+$/ }
            }],
            hr: {
              pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
              lookbehind: !0,
              alias: 'punctuation'
            },
            list: {
              pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
              lookbehind: !0,
              alias: 'punctuation'
            },
            'url-reference': {
              pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
              inside: {
                variable: {
                  pattern: /^(!?\[)[^\]]+/,
                  lookbehind: !0
                },
                string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
                punctuation: /^[\[\]!:]|[<>]/
              },
              alias: 'url'
            },
            bold: {
              pattern: n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),
              lookbehind: !0,
              greedy: !0,
              inside: {
                content: {
                  pattern: /(^..)[\s\S]+(?=..$)/,
                  lookbehind: !0,
                  inside: {}
                },
                punctuation: /\*\*|__/
              }
            },
            italic: {
              pattern: n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),
              lookbehind: !0,
              greedy: !0,
              inside: {
                content: {
                  pattern: /(^.)[\s\S]+(?=.$)/,
                  lookbehind: !0,
                  inside: {}
                },
                punctuation: /[*_]/
              }
            },
            strike: {
              pattern: n(/(~~?)(?:(?!~)<inner>)+\2/.source),
              lookbehind: !0,
              greedy: !0,
              inside: {
                content: {
                  pattern: /(^~~?)[\s\S]+(?=\1$)/,
                  lookbehind: !0,
                  inside: {}
                },
                punctuation: /~~?/
              }
            },
            'code-snippet': {
              pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
              lookbehind: !0,
              greedy: !0,
              alias: ['code', 'keyword']
            },
            url: {
              pattern: n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),
              lookbehind: !0,
              greedy: !0,
              inside: {
                operator: /^!/,
                content: {
                  pattern: /(^\[)[^\]]+(?=\])/,
                  lookbehind: !0,
                  inside: {}
                },
                variable: {
                  pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
                  lookbehind: !0
                },
                url: {
                  pattern: /(^\]\()[^\s)]+/,
                  lookbehind: !0
                },
                string: {
                  pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
                  lookbehind: !0
                }
              }
            }
          }), ['url', 'bold', 'italic', 'strike'].forEach((function (t) {
            ['url', 'bold', 'italic', 'strike', 'code-snippet'].forEach((function (n) {
              t !== n && (e.languages.markdown[t].inside.content.inside[n] = e.languages.markdown[n]);
            }));
          })), e.hooks.add('after-tokenize', (function (e) {
            'markdown' !== e.language && 'md' !== e.language || function e(t) {
              if (t && 'string' != typeof t) {
                for (var n = 0, r = t.length; n < r; n++) {
                  var o = t[n];
                  if ('code' === o.type) {
                    var i = o.content[1],
                      a = o.content[3];
                    if (i && a && 'code-language' === i.type && 'code-block' === a.type && 'string' == typeof i.content) {
                      var u = i.content.replace(/\b#/g, 'sharp')
                          .replace(/\b\+\+/g, 'pp'),
                        s = 'language-' + (u = (/[a-z][\w-]*/i.exec(u) || [''])[0].toLowerCase());
                      a.alias ? 'string' == typeof a.alias ? a.alias = [a.alias, s] : a.alias.push(s) : a.alias = [s];
                    }
                  } else {
                    e(o.content);
                  }
                }
              }
            }(e.tokens);
          })), e.hooks.add('wrap', (function (t) {
            if ('code-block' === t.type) {
              for (var n = '', r = 0, o = t.classes.length; r < o; r++) {
                var i = t.classes[r],
                  l = /language-(.+)/.exec(i);
                if (l) {
                  n = l[1];
                  break;
                }
              }
              var c = e.languages[n];
              if (c) {
                t.content = e.highlight(function (e) {
                  var t = e.replace(a, '');
                  return t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, (function (e, t) {
                    var n;
                    return '#' === (t = t.toLowerCase())[0] ? (n = 'x' === t[1] ? parseInt(t.slice(2), 16) : Number(t.slice(1)), s(n)) : u[t] || e;
                  }));
                }(t.content), c, n);
              } else if (n && 'none' !== n && e.plugins.autoloader) {
                var f = 'md-' + (new Date).valueOf() + '-' + Math.floor(1e16 * Math.random());
                t.attributes.id = f, e.plugins.autoloader.loadLanguages(n, (function () {
                  var t = document.getElementById(f);
                  t && (t.innerHTML = e.highlight(t.textContent, e.languages[n], n));
                }));
              }
            }
          }));
          var a = RegExp(e.languages.markup.tag.pattern.source, 'gi'),
            u = {
              amp: '&',
              lt: '<',
              gt: '>',
              quot: '"'
            },
            s = String.fromCodePoint || String.fromCharCode;
          e.languages.md = e.languages.markdown;
        }(Prism);
        var En = ['comment', 'prolog', 'doctype', 'cdata', 'punctuation', 'namespace', 'property', 'tag', 'boolean', 'number', 'constant', 'symbol', 'deleted', 'selector', 'attr-name', 'string', 'builtin', 'inserted', 'operator', 'entity', 'url', 'string', 'atrule', 'attr-value', 'keyword', 'function', 'class-name', 'regex', 'important', 'variable', 'bold', 'italic', 'entity', 'char'];

        function Dn(e) {
          return 'string' == typeof e ? e.length : 'string' == typeof e.content ? e.content.length : e.content.reduce((function (e, t) {
            return e + Dn(t);
          }), 0);
        }

        var xn,
          Sn = d.String,
          Cn = function (e) {
            if ('Symbol' === rt(e)) throw TypeError('Cannot convert a Symbol value to a string');
            return Sn(e);
          },
          An = function () {
            var e = ae(this),
              t = '';
            return e.global && (t += 'g'), e.ignoreCase && (t += 'i'), e.multiline && (t += 'm'), e.dotAll && (t += 's'), e.unicode && (t += 'u'), e.sticky && (t += 'y'), t;
          },
          On = d.RegExp,
          kn = H((function () {
            var e = On('a', 'y');
            return e.lastIndex = 2, null != e.exec('abcd');
          })),
          Tn = kn || H((function () {
            return !On('a', 'y').sticky;
          })),
          Bn = {
            BROKEN_CARET: kn || H((function () {
              var e = On('^r', 'gy');
              return e.lastIndex = 2, null != e.exec('str');
            })),
            MISSED_STICKY: Tn,
            UNSUPPORTED_Y: kn
          },
          Fn = J ? Object.defineProperties : function (e, t) {
            ae(e);
            for (var n, r = Ht(t), o = vn(t), i = o.length, a = 0; i > a;) Se.f(e, n = o[a++], r[n]);
            return e;
          },
          _n = N('document', 'documentElement'),
          Pn = Ne('IE_PROTO'),
          jn = function () {
          },
          Nn = function (e) {
            return '<script>' + e + '<\/script>';
          },
          In = function (e) {
            e.write(Nn('')), e.close();
            var t = e.parentWindow.Object;
            return e = null, t;
          },
          Rn = function () {
            try {
              xn = new ActiveXObject('htmlfile');
            } catch (e) {
            }
            var e,
              t;
            Rn = 'undefined' != typeof document ? document.domain && xn ? In(xn) : ((t = ne('iframe')).style.display = 'none', _n.appendChild(t), t.src = String('javascript:'), (e = t.contentWindow.document).open(), e.write(Nn('document.F=Object')), e.close(), e.F) : In(xn);
            for (var n = Jt.length; n--;) delete Rn.prototype[Jt[n]];
            return Rn();
          };
        Ie[Pn] = !0;
        var Mn,
          Ln,
          zn = Object.create || function (e, t) {
            var n;
            return null !== e ? (jn.prototype = ae(e), n = new jn, jn.prototype = null, n[Pn] = e) : n = Rn(), void 0 === t ? n : Fn(n, t);
          },
          $n = d.RegExp,
          Hn = H((function () {
            var e = $n('.', 's');
            return !(e.dotAll && e.exec('\n') && 's' === e.flags);
          })),
          Vn = d.RegExp,
          Un = H((function () {
            var e = Vn('(?<a>b)', 'g');
            return 'b' !== e.exec('b').groups.a || 'bc' !== 'b'.replace(e, '$<a>c');
          })),
          Wn = We.get,
          Gn = y('native-string-replace', String.prototype.replace),
          qn = RegExp.prototype.exec,
          Kn = qn,
          Yn = D(''.charAt),
          Xn = D(''.indexOf),
          Zn = D(''.replace),
          Jn = D(''.slice),
          Qn = (Ln = /b*/g, se(qn, Mn = /a/, 'a'), se(qn, Ln, 'a'), 0 !== Mn.lastIndex || 0 !== Ln.lastIndex),
          er = Bn.BROKEN_CARET,
          tr = void 0 !== /()??/.exec('')[1];
        (Qn || tr || er || Hn || Un) && (Kn = function (e) {
          var t,
            n,
            r,
            o,
            i,
            a,
            u,
            s = this,
            l = Wn(s),
            c = Cn(e),
            f = l.raw;
          if (f) return f.lastIndex = s.lastIndex, t = se(Kn, f, c), s.lastIndex = f.lastIndex, t;
          var d = l.groups,
            p = er && s.sticky,
            h = se(An, s),
            v = s.source,
            g = 0,
            y = c;
          if (p && (h = Zn(h, 'y', ''), -1 === Xn(h, 'g') && (h += 'g'), y = Jn(c, s.lastIndex), s.lastIndex > 0 && (!s.multiline || s.multiline && '\n' !== Yn(c, s.lastIndex - 1)) && (v = '(?: ' + v + ')', y = ' ' + y, g++), n = new RegExp('^(?:' + v + ')', h)), tr && (n = new RegExp('^' + v + '$(?!\\s)', h)), Qn && (r = s.lastIndex), o = se(qn, p ? n : s, y), p ? o ? (o.input = Jn(o.input, g), o[0] = Jn(o[0], g), o.index = s.lastIndex, s.lastIndex += o[0].length) : s.lastIndex = 0 : Qn && o && (s.lastIndex = s.global ? o.index + o[0].length : r), tr && o && o.length > 1 && se(Gn, o[0], n, (function () {
            for (i = 1; i < arguments.length - 2; i++) void 0 === arguments[i] && (o[i] = void 0);
          })), o && d) {
            for (o.groups = a = zn(null), i = 0; i < d.length; i++) a[(u = d[i])[0]] = o[u[1]];
          }
          return o;
        });
        var nr = Kn;
        hn({
          target: 'RegExp',
          proto: !0,
          forced: /./.exec !== nr
        }, { exec: nr });
        var rr = Function.prototype,
          or = rr.apply,
          ir = rr.bind,
          ar = rr.call,
          ur = 'object' == typeof Reflect && Reflect.apply || (ir ? ar.bind(or) : function () {
            return ar.apply(or, arguments);
          }),
          sr = Y('species'),
          lr = RegExp.prototype,
          cr = Y('match'),
          fr = d.TypeError,
          dr = Y('species'),
          pr = function (e, t) {
            var n,
              r = ae(e).constructor;
            return void 0 === r || null == (n = ae(r)[dr]) ? t : function (e) {
              if (Tt(e)) return e;
              throw fr(pe(e) + ' is not a constructor');
            }(n);
          },
          hr = D(''.charAt),
          vr = D(''.charCodeAt),
          gr = D(''.slice),
          yr = function (e) {
            return function (t, n) {
              var r,
                o,
                i = Cn(S(t)),
                a = yt(n),
                u = i.length;
              return a < 0 || a >= u ? e ? '' : void 0 : (r = vr(i, a)) < 55296 || r > 56319 || a + 1 === u || (o = vr(i, a + 1)) < 56320 || o > 57343 ? e ? hr(i, a) : r : e ? gr(i, a, a + 2) : o - 56320 + (r - 55296 << 10) + 65536;
            };
          },
          mr = (yr(!1), yr(!0)),
          br = function (e, t, n) {
            return t + (n ? mr(e, t).length : 1);
          },
          wr = d.Array,
          Er = Math.max,
          Dr = function (e, t, n) {
            for (var r, o, i, a, u = wt(e), s = qt(t, u), l = qt(void 0 === n ? u : n, u), c = wr(Er(l - s, 0)), f = 0; s < l; s++, f++) r = c, o = f, i = e[s], a = void 0, (a = Ee(o)) in r ? Se.f(r, a, Ce(0, i)) : r[a] = i;
            return c.length = f, c;
          },
          xr = d.TypeError,
          Sr = function (e, t) {
            var n = e.exec;
            if (P(n)) {
              var r = se(n, e, t);
              return null !== r && ae(r), r;
            }
            if ('RegExp' === Qe(e)) return se(nr, e, t);
            throw xr('RegExp#exec called on incompatible receiver');
          },
          Cr = Bn.UNSUPPORTED_Y,
          Ar = 4294967295,
          Or = Math.min,
          kr = [].push,
          Tr = D(/./.exec),
          Br = D(kr),
          Fr = D(''.slice),
          _r = !H((function () {
            var e = /(?:)/,
              t = e.exec;
            e.exec = function () {
              return t.apply(this, arguments);
            };
            var n = 'ab'.split(e);
            return 2 !== n.length || 'a' !== n[0] || 'b' !== n[1];
          }));
        !function (e, t, n, r) {
          var o = Y(e),
            i = !H((function () {
              var t = {};
              return t[o] = function () {
                return 7;
              }, 7 != ''[e](t);
            })),
            a = i && !H((function () {
              var t = !1,
                n = /a/;
              return 'split' === e && ((n = {}).constructor = {}, n.constructor[sr] = function () {
                return n;
              }, n.flags = '', n[o] = /./[o]), n.exec = function () {
                return t = !0, null;
              }, n[o](''), !t;
            }));
          if (!i || !a || n) {
            var u = D(/./[o]),
              s = t(o, ''[e], (function (e, t, n, r, o) {
                var a = D(e),
                  s = t.exec;
                return s === nr || s === lr.exec ? i && !o ? {
                  done: !0,
                  value: u(t, n, r)
                } : {
                  done: !0,
                  value: a(n, t, r)
                } : { done: !1 };
              }));
            Xe(String.prototype, e, s[0]), Xe(lr, o, s[1]);
          }
          r && Ae(lr[o], 'sham', !0);
        }('split', (function (e, t, n) {
          var r;
          return r = 'c' == 'abbc'.split(/(b)*/)[1] || 4 != 'test'.split(/(?:)/, -1).length || 2 != 'ab'.split(/(?:ab)*/).length || 4 != '.'.split(/(.?)(.?)/).length || '.'.split(/()()/).length > 1 || ''.split(/.?/).length ? function (e, n) {
            var r,
              o,
              i = Cn(S(this)),
              a = void 0 === n ? Ar : n >>> 0;
            if (0 === a) return [];
            if (void 0 === e) return [i];
            if (!Q(r = e) || !(void 0 !== (o = r[cr]) ? o : 'RegExp' == Qe(r))) return se(t, i, e, a);
            for (var u, s, l, c = [], f = (e.ignoreCase ? 'i' : '') + (e.multiline ? 'm' : '') + (e.unicode ? 'u' : '') + (e.sticky ? 'y' : ''), d = 0, p = new RegExp(e.source, f + 'g'); (u = se(nr, p, i)) && !((s = p.lastIndex) > d && (Br(c, Fr(i, d, u.index)), u.length > 1 && u.index < i.length && ur(kr, c, Dr(u, 1)), l = u[0].length, d = s, c.length >= a));) p.lastIndex === u.index && p.lastIndex++;
            return d === i.length ? !l && Tr(p, '') || Br(c, '') : Br(c, Fr(i, d)), c.length > a ? Dr(c, 0, a) : c;
          } : '0'.split(void 0, 0).length ? function (e, n) {
            return void 0 === e && 0 === n ? [] : se(t, this, e, n);
          } : t, [function (t, n) {
            var o = S(this),
              i = null == t ? void 0 : ge(t, e);
            return i ? se(i, t, o, n) : se(r, Cn(o), t, n);
          }, function (e, o) {
            var i = ae(this),
              a = Cn(e),
              u = n(r, i, a, o, r !== t);
            if (u.done) return u.value;
            var s = pr(i, RegExp),
              l = i.unicode,
              c = (i.ignoreCase ? 'i' : '') + (i.multiline ? 'm' : '') + (i.unicode ? 'u' : '') + (Cr ? 'g' : 'y'),
              f = new s(Cr ? '^(?:' + i.source + ')' : i, c),
              d = void 0 === o ? Ar : o >>> 0;
            if (0 === d) return [];
            if (0 === a.length) return null === Sr(f, a) ? [a] : [];
            for (var p = 0, h = 0, v = []; h < a.length;) {
              f.lastIndex = Cr ? 0 : h;
              var g,
                y = Sr(f, Cr ? Fr(a, h) : a);
              if (null === y || (g = Or(bt(f.lastIndex + (Cr ? h : 0)), a.length)) === p) {
                h = br(a, h, l);
              } else {
                if (Br(v, Fr(a, p, h)), v.length === d) return v;
                for (var m = 1; m <= y.length - 1; m++) if (Br(v, y[m]), v.length === d) return v;
                h = p = g;
              }
            }
            return Br(v, Fr(a, p)), v;
          }];
        }), !_r, Cr), hn({ global: !0 }, { globalThis: d }), r.attr && (a.default.fn.attr = r.attr);
        var Pr = Ye.PROPER,
          jr = 'toString',
          Nr = RegExp.prototype,
          Ir = Nr.toString,
          Rr = D(An),
          Mr = H((function () {
            return '/a/b' != Ir.call({
              source: 'a',
              flags: 'b'
            });
          })),
          Lr = Pr && Ir.name != jr;
        (Mr || Lr) && Xe(RegExp.prototype, jr, (function () {
          var e = ae(this),
            t = Cn(e.source),
            n = e.flags;
          return '/' + t + '/' + Cn(void 0 === n && le(Nr, e) && !('flags' in Nr) ? Rr(e) : n);
        }), { unsafe: !0 });
        var zr = function () {
            function e() {
              this.title = n.t('highLightModule.selectLang'), this.iconSvg = '<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>', this.tag = 'select', this.width = 95, this.selectPanelWidth = 115;
            }

            return e.prototype.getOptions = function (e) {
              var t = [],
                n = e.getMenuConfig('codeSelectLang').codeLangs,
                r = void 0 === n ? [] : n;
              t.push({
                text: 'plain text',
                value: ''
              }), r.forEach((function (e) {
                var n = e.text,
                  r = e.value;
                t.push({
                  text: n,
                  value: r
                });
              }));
              var o = this.getValue(e);
              return t.forEach((function (e) {
                e.value === o ? e.selected = !0 : delete e.selected;
              })), t;
            }, e.prototype.isActive = function (e) {
              return !1;
            }, e.prototype.getValue = function (e) {
              var t = this.getSelectCodeElem(e);
              if (null == t) return '';
              if (!o.Element.isElement(t)) return '';
              var n = t.language.toString(),
                r = e.getMenuConfig('codeSelectLang').codeLangs;
              return (void 0 === r ? [] : r).some((function (e) {
                return e.value === n
              })) ? n : ""
            }, e.prototype.isDisabled = function (e) {
              return null == e.selection || !this.getSelectCodeElem(e)
            }, e.prototype.exec = function (e, t) {
              if (null != this.getSelectCodeElem(e)) {
                var r = { language: t.toString() };
                o.Transforms.setNodes(e, r, {
                  match: function (e) {
                    return n.DomEditor.checkNodeType(e, "code")
                  }
                })
              }
            }, e.prototype.getSelectCodeElem = function (e) {
              var t = n.DomEditor.getSelectedNodeByType(e, "code");
              if (null == t) return null;
              var r = n.DomEditor.getParentNode(e, t);
              return o.Element.isElement(r) ? "pre" !== r.type ? null : t : null
            }, e
          }(),
          $r = {
            renderStyle: function (e, t) {
              var n = e,
                r = t,
                o = "";
              return En.forEach((function (e) {
                n[e] && (o = e)
              })), o && function (e, t) {
                null == e.data && (e.data = {});
                var n = e.data;
                null == n.props && (n.props = {}), Object.assign(n.props, { className: t })
              }(r, o = "token " + o), r
            },
            parseStyleHtml: function (e, t, r) {
              var i = a.default(e);
              if (!o.Element.isElement(t)) return t;
              if ("code" !== n.DomEditor.getNodeType(t)) return t;
              var u = t,
                s = i.attr("class") || "";
              return 0 === s.indexOf("language-") ? u.language = s.split("-")[1] || "" : u.language = s.toLowerCase(), u
            },
            menus: [{
              key: "codeSelectLang",
              factory: function () {
                return new zr
              },
              config: {
                codeLangs: [{
                  text: "CSS",
                  value: "css"
                }, {
                  text: "HTML",
                  value: "html"
                }, {
                  text: "XML",
                  value: "xml"
                }, {
                  text: "Javascript",
                  value: "javascript"
                }, {
                  text: "Typescript",
                  value: "typescript"
                }, {
                  text: "JSX",
                  value: "jsx"
                }, {
                  text: "Go",
                  value: "go"
                }, {
                  text: "PHP",
                  value: "php"
                }, {
                  text: "C",
                  value: "c"
                }, {
                  text: "Python",
                  value: "python"
                }, {
                  text: "Java",
                  value: "java"
                }, {
                  text: "C++",
                  value: "cpp"
                }, {
                  text: "C#",
                  value: "csharp"
                }, {
                  text: "Visual Basic",
                  value: "visual-basic"
                }, {
                  text: "SQL",
                  value: "sql"
                }, {
                  text: "Ruby",
                  value: "ruby"
                }, {
                  text: "Swift",
                  value: "swift"
                }, {
                  text: "Bash",
                  value: "bash"
                }, {
                  text: "Markdown",
                  value: "markdown"
                }]
              }
            }],
            elemsToHtml: [{
              type: "code",
              elemToHtml: function (e, t) {
                var n = e.language,
                  r = void 0 === n ? "" : n;
                return "<code " + (r ? 'class="language-' + r + '"' : "") + ">" + t + "</code>"
              }
            }]
          },
          Hr = /"/g,
          Vr = D("".replace);
        hn({
          target: "String",
          proto: !0,
          forced: function (e) {
            return H((function () {
              var t = ""[e]('"');
              return t !== t.toLowerCase() || t.split('"').length > 3
            }))
          }("anchor")
        }, {
          anchor: function (e) {
            return t = "a", n = "name", r = e, o = Cn(S(this)), i = "<" + t, "" !== n && (i += " " + n + '="' + Vr(Cn(r), Hr, "&quot;") + '"'), i + ">" + o + "</" + t + ">";
            var t,
              n,
              r,
              o,
              i
          }
        }), e.wangEditorCodeHighLightDecorate = function (e) {
          var t,
            r,
            i,
            a = function (e, t) {
              var n = "function" == typeof Symbol && e[Symbol.iterator];
              if (!n) return e;
              var r,
                o,
                i = n.call(e),
                a = [];
              try {
                for (; (void 0 === t || t-- > 0) && !(r = i.next()).done;) a.push(r.value)
              } catch (e) {
                o = { error: e }
              } finally {
                try {
                  r && !r.done && (n = i.return) && n.call(i)
                } finally {
                  if (o) throw o.error
                }
              }
              return a
            }(e, 2),
            u = a[0],
            s = a[1],
            l = [],
            c = function (e) {
              if (!o.Text.isText(e)) return null;
              var t = n.DomEditor.getParentNode(null, e);
              if (t && "code" === n.DomEditor.getNodeType(t)) {
                var r = n.DomEditor.getParentNode(null, t);
                if (r && "pre" === n.DomEditor.getNodeType(r)) return t
              }
              return null
            }(u);
          if (null == c) return l;
          var f = c.language,
            d = void 0 === f ? "" : f;
          if (!d) return l;
          var p = function (e, t) {
              if (!t) return [];
              var n = wn.languages[t];
              return n ? wn.tokenize(e.text, n) : []
            }(u, d),
            h = 0;
          try {
            for (var v =
              /*! *****************************************************************************
        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.
        ***************************************************************************** */
              function (e) {
                var t = "function" == typeof Symbol && Symbol.iterator,
                  n = t && e[t],
                  r = 0;
                if (n) return n.call(e);
                if (e && "number" == typeof e.length) {
                  return {
                    next: function () {
                      return e && r >= e.length && (e = void 0), {
                        value: e && e[r++],
                        done: !e
                      }
                    }
                  };
                }
                throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.")
              }(p), g = v.next(); !g.done; g = v.next()) {
              var y = g.value,
                m = h + Dn(y);
              "string" != typeof y && l.push(((i = {})[y.type] = !0, i.anchor = {
                path: s,
                offset: h
              }, i.focus = {
                path: s,
                offset: m
              }, i)), h = m
            }
          } catch (e) {
            t = { error: e }
          } finally {
            try {
              g && !g.done && (r = v.return) && r.call(v)
            } finally {
              if (t) throw t.error
            }
          }
          return l
        }, e.wangEditorCodeHighlightModule = $r, Object.defineProperty(e, "__esModule", { value: !0 })
      }(n, BE, kE, OE)
    })),
    iD = function () {
      return iD = Object.assign || function (e) {
        for (var t, n = 1, r = arguments.length; n < r; n++) for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
        return e
      }, iD.apply(this, arguments)
    },
    aD = function () {
      function e() {
        throw new Error("不能实例化\nCan not construct a instance")
      }

      return e.setEditorConfig = function (e) {
        void 0 === e && (e = {}), this.editorConfig = iD(iD({}, this.editorConfig), e)
      }, e.setSimpleEditorConfig = function (e) {
        void 0 === e && (e = {}), this.simpleEditorConfig = iD(iD({}, this.simpleEditorConfig), e)
      }, e.setToolbarConfig = function (e) {
        void 0 === e && (e = {}), this.toolbarConfig = iD(iD({}, this.toolbarConfig), e)
      }, e.setSimpleToolbarConfig = function (e) {
        void 0 === e && (e = {}), this.simpleToolbarConfig = iD(iD({}, this.simpleToolbarConfig), e)
      }, e.registerPlugin = function (e) {
        this.plugins.push(e)
      }, e.registerMenu = function (e, t) {
        BE.registerMenu(e, t)
      }, e.registerRenderElem = function (e) {
        BE.registerRenderElemConf(e)
      }, e.registerRenderStyle = function (e) {
        BE.registerStyleHandler(e)
      }, e.registerElemToHtml = function (e) {
        BE.registerElemToHtmlConf(e)
      }, e.registerStyleToHtml = function (e) {
        BE.registerStyleToHtmlHandler(e)
      }, e.registerPreParseHtml = function (e) {
        BE.registerPreParseHtmlConf(e)
      }, e.registerParseElemHtml = function (e) {
        BE.registerParseElemHtmlConf(e)
      }, e.registerParseStyleHtml = function (e) {
        BE.registerParseStyleHtmlHandler(e)
      }, e.registerModule = function (e) {
        uD(e)
      }, e.editorConfig = {}, e.simpleEditorConfig = {}, e.toolbarConfig = {}, e.simpleToolbarConfig = {}, e.plugins = [], e
    }();

  function uD(e) {
    var t = e.menus,
      n = e.renderElems,
      r = e.renderStyle,
      o = e.elemsToHtml,
      i = e.styleToHtml,
      a = e.preParseHtml,
      u = e.parseElemsHtml,
      s = e.parseStyleHtml,
      l = e.editorPlugin;
    t && t.forEach((function (e) {
      return aD.registerMenu(e)
    })), n && n.forEach((function (e) {
      return aD.registerRenderElem(e)
    })), r && aD.registerRenderStyle(r), o && o.forEach((function (e) {
      return aD.registerElemToHtml(e)
    })), i && aD.registerStyleToHtml(i), a && a.forEach((function (e) {
      return aD.registerPreParseHtml(e)
    })), u && u.forEach((function (e) {
      return aD.registerParseElemHtml(e)
    })), s && aD.registerParseStyleHtml(s), l && aD.registerPlugin(l)
  }

  JE.forEach((function (e) {
    return uD(e)
  })), uD(QE), uD(tD), uD(nD), uD(rD), uD(oD.wangEditorCodeHighlightModule);
  var sD = '<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';
  var lD = {
    link: { menuKeys: ["editLink", "unLink", "viewLink"] },
    image: { menuKeys: ["imageWidth30", "imageWidth50", "imageWidth100", "editImage", "viewImageLink", "deleteImage"] },
    pre: { menuKeys: ["enter", "codeBlock", "codeSelectLang"] },
    table: { menuKeys: ["enter", "tableHeader", "tableFullWidth", "insertTableRow", "deleteTableRow", "insertTableCol", "deleteTableCol", "deleteTable"] },
    divider: { menuKeys: ["enter"] },
    video: { menuKeys: ["enter", "editVideoSize"] }
  };
  var cD = { hoverbarKeys: iD(iD({}, lD), { text: { menuKeys: ["headerSelect", "insertLink", "bulletedList", "|", "bold", "through", "color", "bgColor", "clearStyle"] } }) };
  aD.setEditorConfig(iD(iD({}, cD), { decorate: oD.wangEditorCodeHighLightDecorate }));
  var fD = { hoverbarKeys: lD };
  aD.setSimpleEditorConfig(iD(iD({}, fD), { decorate: oD.wangEditorCodeHighLightDecorate }));
  var dD = {
    toolbarKeys: ["headerSelect", "blockquote", "|", "bold", "underline", "italic", {
      key: "group-more-style",
      title: BE.t("editor.more"),
      iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',
      menuKeys: ["through", "code", "sup", "sub", "clearStyle"]
    }, "color", "bgColor", "|", "fontSize", "fontFamily", "lineHeight", "|", "bulletedList", "numberedList", "todo", {
      key: "group-justify",
      title: BE.t("editor.justify"),
      iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',
      menuKeys: ["justifyLeft", "justifyRight", "justifyCenter", "justifyJustify"]
    }, {
      key: "group-indent",
      title: BE.t("editor.indent"),
      iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',
      menuKeys: ["indent", "delIndent"]
    }, "|", "emotion", "insertLink", {
      key: "group-image",
      title: BE.t("editor.image"),
      iconSvg: sD,
      menuKeys: ["insertImage", "uploadImage"]
    }, {
      key: "group-video",
      title: BE.t("editor.video"),
      iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',
      menuKeys: ["insertVideo", "uploadVideo"]
    }, "insertTable", "codeBlock", "divider", "|", "undo", "redo", "|", "fullScreen"]
  };
  aD.setToolbarConfig(dD);
  var pD = {
    toolbarKeys: ["blockquote", "header1", "header2", "header3", "|", "bold", "underline", "italic", "through", "color", "bgColor", "clearStyle", "|", "bulletedList", "numberedList", "todo", "justifyLeft", "justifyRight", "justifyCenter", "|", "insertLink", {
      key: "group-image",
      title: BE.t("editor.image"),
      iconSvg: sD,
      menuKeys: ["insertImage", "uploadImage"]
    }, "insertVideo", "insertTable", "codeBlock", "|", "undo", "redo", "|", "fullScreen"]
  };
  aD.setSimpleToolbarConfig(pD);
  e.Boot = aD, e.DomEditor = BE.DomEditor, e.SlateEditor = hd, e.SlateElement = vd, e.SlateLocation = gd, e.SlateNode = yd, e.SlatePath = bd, e.SlatePoint = Ed, e.SlateRange = xd, e.SlateText = Ad, e.SlateTransforms = Od, e.Toolbar = BE.Toolbar, e.createEditor = function (e) {
    void 0 === e && (e = {});
    var t = e.selector,
      n = void 0 === t ? "" : t,
      r = e.content,
      o = void 0 === r ? [] : r,
      i = e.html,
      a = e.config,
      u = void 0 === a ? {} : a,
      s = e.mode,
      l = "simple" === (void 0 === s ? "default" : s) ? aD.simpleEditorConfig : aD.editorConfig,
      c = iD(iD({}, l.hoverbarKeys || {}), u.hoverbarKeys || {});
    return BE.coreCreateEditor({
      selector: n,
      config: iD(iD(iD({}, l), u), { hoverbarKeys: c }),
      content: o,
      html: i,
      plugins: aD.plugins
    })
  }, e.createToolbar = function (e) {
    var t = e.selector,
      n = e.editor,
      r = e.config,
      o = void 0 === r ? {} : r,
      i = e.mode,
      a = void 0 === i ? "default" : i;
    if (!t) throw new Error("Cannot find 'selector' when create toolbar");
    var u = "simple" === a ? aD.simpleToolbarConfig : aD.toolbarConfig;
    return BE.coreCreateToolbar(n, {
      selector: t,
      config: iD(iD({}, u), o)
    })
  }, e.createUploader = BE.createUploader, e.default = {}, e.genModalButtonElems = BE.genModalButtonElems, e.genModalInputElems = BE.genModalInputElems, e.genModalTextareaElems = BE.genModalTextareaElems, e.i18nAddResources = BE.i18nAddResources, e.i18nChangeLanguage = BE.i18nChangeLanguage, e.i18nGetResources = BE.i18nGetResources, e.t = BE.t, Object.defineProperty(e, "__esModule", { value: !0 })
}));
//# sourceMappingURL=index.js.map
